:root {
  --bg: #060609;
  --card: #0C0C12;
  --card-border: rgba(245, 244, 240, 0.08);
  --accent: #FFB454;
  --ink: #F5F4F0;
  --ink-muted: rgba(245, 244, 240, 0.68);
  --ink-faint: rgba(245, 244, 240, 0.42);
  --sans: 'Inter Tight', 'Inter', Arial, sans-serif;
  --quiet: 'Inter', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'Menlo', monospace;
  --container: 1200px;
  --section-pad: clamp(4rem, 8vw, 8rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--quiet);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.accent { color: var(--accent); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}
.eyebrow.center { text-align: center; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ---------- background starfield ---------- */
.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(245,244,240,0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 25% 65%, rgba(245,244,240,0.25) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 15%, rgba(245,244,240,0.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 80%, rgba(245,244,240,0.2) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 35%, rgba(245,244,240,0.3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(245,244,240,0.22) 50%, transparent 51%),
    radial-gradient(1px 1px at 95% 10%, rgba(255,180,84,0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 15% 90%, rgba(255,180,84,0.25) 50%, transparent 51%);
  background-size: 900px 900px;
  background-repeat: repeat;
  animation: drift 90s linear infinite;
  will-change: transform;
}
@keyframes drift {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-300px, -300px, 0); }
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6,6,9,0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand-mark { height: 26px; width: auto; }
.brand-word {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
}
.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { font-size: 0.85rem; padding: 0.6rem 1.15rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--quiet);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-solid {
  background: var(--accent);
  color: #060609;
}
.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(255,180,84,0.55);
}
.btn-outline {
  border: 1px solid var(--card-border);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  min-height: calc(100svh - 72px);
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink);
  max-width: 34ch;
  margin: 0 0 1.25rem;
}
.hero-body {
  color: var(--ink-muted);
  max-width: 46ch;
  margin: 0 0 2.25rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
}
#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- sections ---------- */
.section {
  padding: var(--section-pad) 0;
}
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015), transparent);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

/* ---------- cards ---------- */
.cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover {
  border-color: rgba(255,180,84,0.4);
  transform: translateY(-4px);
}
.card-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  position: relative;
}
.card-icon canvas { width: 100%; height: 100%; display: block; }
.card-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin: 0 0 0.25rem;
}
.card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.card-tag {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.85rem;
}
.card-desc {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin: 0;
}
.read-more {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.read-more span { transition: transform 0.2s ease; color: var(--accent); }
.card:hover .read-more span { transform: translateX(4px); }

/* ---------- process (Map / Pilot / Run) ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.process-step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.25rem 2rem;
}
.process-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin: 0 0 0.75rem;
}
.process-step h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.process-step p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--card-border);
}
.pillar .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 1rem;
}
.pillar h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.pillar p {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- founder ---------- */
.founder-inner {
  display: grid;
  grid-template-columns: 0.32fr 0.68fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.founder-art {
  position: relative;
  aspect-ratio: 4 / 5;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(245, 244, 240, 0.06),
    40px 40px 80px -30px rgba(255, 180, 84, 0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.founder-art:hover {
  transform: translateY(-4px);
  box-shadow:
    0 36px 70px -18px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 180, 84, 0.2),
    40px 40px 90px -25px rgba(255, 180, 84, 0.35);
}
.founder-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(255, 180, 84, 0.18), transparent 45%);
  pointer-events: none;
}
.founder-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.founder h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  margin-bottom: 1.25rem;
}
.founder-bio {
  color: var(--ink-muted);
  max-width: 58ch;
  margin: 0 0 1.5rem;
}
.founder-substack-heading {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}
.founder .read-more { font-size: 0.85rem; }

/* ---------- contact ---------- */
.contact-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}
.contact-sub {
  color: var(--ink-muted);
  max-width: 42ch;
  margin: 0;
}
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.contact-domain {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 0.85rem;
}
.contact-domain:hover { color: var(--accent); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.footer a:hover { color: var(--accent); }

/* ---------- scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cards-3 .card:nth-child(2) { transition-delay: 0.08s; }
.cards-3 .card:nth-child(3) { transition-delay: 0.16s; }
.process .process-step:nth-child(2) { transition-delay: 0.08s; }
.process .process-step:nth-child(3) { transition-delay: 0.16s; }
.pillars .pillar:nth-child(2) { transition-delay: 0.06s; }
.pillars .pillar:nth-child(3) { transition-delay: 0.12s; }
.pillars .pillar:nth-child(4) { transition-delay: 0.18s; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-art { order: -1; max-width: 340px; margin: 0 auto; }
  .nav-links { display: none; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .founder-inner { grid-template-columns: 1fr; }
  .founder-art { max-width: 240px; margin: 0 auto; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
  .contact-links { align-items: flex-start; }
}

@media (max-width: 560px) {
  .cards-3, .pillars { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .footer-inner { flex-direction: column; }
  .brand-word { font-size: 0.7rem; letter-spacing: 0.12em; }
  .nav-cta { padding: 0.55rem 0.9rem; font-size: 0.8rem; }
}

@media (max-width: 380px) {
  .brand-word span:last-child { display: none; }
}

/* ---------- multi-page: breadcrumbs ---------- */
.breadcrumbs {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.breadcrumbs a { color: var(--ink-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: 0.5; }

/* ---------- multi-page: page hero ---------- */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--card-border);
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  max-width: 18ch;
  margin-bottom: 1.25rem;
}
.page-hero .lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-muted);
  max-width: 58ch;
  margin: 0 0 1.75rem;
}
.page-hero .hero-ctas { margin-top: 0.5rem; }

.answer-block {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--accent);
  border-radius: 0 16px 16px 0;
  padding: 1.35rem 1.5rem;
  max-width: 68ch;
  margin: 0 0 2rem;
}
.answer-block p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}
.answer-block strong { color: var(--ink); font-weight: 600; }

/* ---------- multi-page: prose ---------- */
.prose {
  max-width: 68ch;
}
.prose h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 2.75rem 0 1rem;
}
.prose h3 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
}
.prose p {
  color: var(--ink-muted);
  margin: 0 0 1.15rem;
}
.prose ul, .prose ol {
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--accent); }
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { opacity: 0.85; }
/* Solid CTAs must keep dark ink on accent — prose link color would wash them out */
.prose a.btn,
.prose a.btn-solid,
.cta-band a.btn,
.cta-band a.btn-solid {
  color: #060609;
  text-decoration: none;
}
.prose a.btn:hover,
.prose a.btn-solid:hover,
.cta-band a.btn:hover,
.cta-band a.btn-solid:hover {
  opacity: 1;
  color: #060609;
}
.prose strong { color: var(--ink); font-weight: 600; }

.content-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
}
.toc p {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}
.toc ol {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
}
.toc li { margin-bottom: 0.45rem; }
.toc a:hover { color: var(--accent); }

.callout {
  background: rgba(255, 180, 84, 0.06);
  border: 1px solid rgba(255, 180, 84, 0.25);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  margin: 1.75rem 0;
}
.callout p { margin: 0; color: var(--ink-muted); }
.callout strong { color: var(--ink); }

/* ---------- resource cards ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.resource-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 2rem;
}
@media (max-width: 960px) {
  .resource-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .resource-grid-3 { grid-template-columns: 1fr; }
}

.series-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #060609;
  background: var(--accent);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}
.series-badge.muted {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(255,180,84,0.35);
}

.library-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin: 1.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.library-stats strong {
  color: var(--accent);
  font-weight: 600;
}

.topic-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.topic-list li {
  border-bottom: 1px solid var(--card-border);
}
.topic-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: baseline;
  padding: 1rem 0.15rem;
  color: var(--ink);
}
.topic-list a:hover { color: var(--accent); }
.topic-list .num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  min-width: 2.5rem;
}
.topic-list .meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.notice {
  background: rgba(255,180,84,0.08);
  border: 1px solid rgba(255,180,84,0.22);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
  max-width: 68ch;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
}
.pill-row a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  color: var(--ink-muted);
}
.pill-row a:hover {
  border-color: rgba(255,180,84,0.45);
  color: var(--accent);
}

/* ---------- vision page ---------- */
.diagram {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin: 1.75rem 0 2.25rem;
  overflow-x: auto;
}
.diagram figcaption {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 1rem;
}
.diagram svg { width: 100%; height: auto; display: block; max-width: 920px; margin: 0 auto; }
.article-diagram { margin: 2rem 0; }
.prose .diagram { max-width: none; }

.vision-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
@media (max-width: 720px) {
  .vision-grid-2 { grid-template-columns: 1fr; }
}
.vision-panel {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.35rem 1.4rem;
}
.vision-panel h3 {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}
.vision-panel.accent-edge {
  border-left: 3px solid var(--accent);
}
.vision-panel.fade {
  color: var(--ink-muted);
  opacity: 0.85;
}
.vision-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.vision-panel li { margin-bottom: 0.4rem; }

.trap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
@media (max-width: 720px) {
  .trap-grid { grid-template-columns: 1fr; }
}
.trap-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}
.trap-pair .bad {
  background: rgba(245,244,240,0.04);
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  color: var(--ink-faint);
}
.trap-pair .good {
  background: rgba(255,180,84,0.1);
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  color: var(--ink);
  border-left: 1px solid rgba(255,180,84,0.35);
}
.trap-pair .label {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: var(--accent);
}
.trap-pair .bad .label { color: var(--ink-faint); }

.horizon-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}
.horizon-table th,
.horizon-table td {
  border-bottom: 1px solid var(--card-border);
  padding: 0.75rem 0.65rem;
  text-align: left;
  color: var(--ink-muted);
}
.horizon-table th {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.horizon-table tr.hl td {
  color: var(--ink);
  background: rgba(255,180,84,0.06);
}
.horizon-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-style: italic;
}
.resource-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.75rem 1.6rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.resource-card:hover {
  border-color: rgba(255, 180, 84, 0.4);
  transform: translateY(-3px);
}
.resource-card .meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.65rem;
}
.resource-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.65rem;
}
.resource-card p {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 72ch;
  margin-top: 1.5rem;
}
.faq-item {
  border-bottom: 1px solid var(--card-border);
  padding: 1.35rem 0;
}
.faq-item h3,
.faq-item summary {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-family: var(--mono);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  color: var(--ink-muted);
  margin: 0;
  max-width: 62ch;
}

/* ---------- checklist asset ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.checklist li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2.25rem;
  border-bottom: 1px solid var(--card-border);
  color: var(--ink-muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
}
.checklist strong { color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band {
  margin: clamp(2rem, 4vw, 3.5rem) 0;
  padding: clamp(2rem, 4vw, 2.75rem);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.cta-band h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 0.5rem;
}
.cta-band p {
  color: var(--ink-muted);
  margin: 0;
  max-width: 42ch;
}

/* ---------- related links ---------- */
.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.related a {
  display: block;
  padding: 1.25rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.related a:hover { border-color: rgba(255, 180, 84, 0.4); }
.related span {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* ---------- footer expand ---------- */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  font-family: var(--quiet);
  font-size: 0.85rem;
  letter-spacing: 0;
  color: var(--ink-muted);
}
.footer-nav a:hover { color: var(--accent); }
.footer-legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* ---------- mobile nav toggle (simple always-visible secondary) ---------- */
.nav-links a[aria-current="page"] { color: var(--accent); }

@media (max-width: 960px) {
  .content-grid { grid-template-columns: 1fr; }
  .toc { position: static; margin-bottom: 1.5rem; }
  .resource-grid { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(6, 6, 9, 0.96);
    border-bottom: 1px solid var(--card-border);
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.85rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--ink);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    margin-left: auto;
    margin-right: 0.75rem;
  }
}

@media (min-width: 961px) {
  .nav-toggle { display: none; }
}

@media (max-width: 560px) {
  .page-hero h1 { max-width: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .starfield { animation: none; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .card, .read-more span, .resource-card { transition: none; }
}


/* Figure title + explanatory note */
.fig-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 0.85rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.fig-note {
  font-family: var(--quiet) !important;
  font-size: 0.92rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--ink-muted) !important;
  margin-top: 0.9rem !important;
  line-height: 1.55;
  max-width: 68ch;
}
.diagram .fig-title { padding: 0 0.15rem; }

/* ========== Premium polish layer ========== */
::selection {
  background: rgba(255, 180, 84, 0.28);
  color: var(--ink);
}

body {
  text-rendering: optimizeLegibility;
}

/* Reading comfort for long essays */
.prose {
  font-size: 1.0625rem;
  line-height: 1.72;
}
.prose h2 {
  margin-top: 2.75rem;
  padding-top: 0.35rem;
  border-top: 1px solid transparent;
}
.prose > h2:first-of-type {
  margin-top: 1.25rem;
}
.prose p + p {
  margin-top: 0.15rem;
}

/* Premium cards */
.card, .resource-card, .process-step, .vision-panel, .diagram {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 18px 50px -28px rgba(0,0,0,0.75);
}
.card:hover, .resource-card:hover {
  box-shadow: 0 0 0 1px rgba(255,180,84,0.18), 0 22px 55px -24px rgba(255,180,84,0.18);
}

/* Page hero more editorial */
.page-hero {
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(255,180,84,0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(255,180,84,0.03), transparent 50%);
}
.page-hero h1 {
  max-width: 16ch;
  letter-spacing: -0.03em;
}

/* Library / article reading width */
.content-section .prose {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.content-section .diagram,
.content-section .cta-band,
.content-section .related {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

/* Premium figures */
.article-diagram {
  border: 1px solid rgba(255,180,84,0.12);
  background: linear-gradient(180deg, #0e0e14 0%, #0C0C12 100%);
}
.fig-title {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  letter-spacing: -0.02em;
}
.fig-note {
  border-top: 1px solid var(--card-border);
  padding-top: 0.85rem;
}

/* Nav glass stronger */
.nav {
  background: rgba(6, 6, 9, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

/* Buttons more refined */
.btn {
  letter-spacing: 0.01em;
}
.btn-solid {
  box-shadow: 0 8px 24px -10px rgba(255,180,84,0.55);
}

/* Topic lists denser / cleaner */
.topic-list a {
  transition: color 0.15s ease, background 0.15s ease;
  border-radius: 8px;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}
.topic-list a:hover {
  background: rgba(255,180,84,0.06);
}

/* Series badge tighter */
.series-badge {
  font-size: 0.65rem;
  padding: 0.32rem 0.65rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #0e0e16 0%, #0C0C12 50%, rgba(255,180,84,0.06) 100%);
  border-color: rgba(255,180,84,0.2);
}

/* Answer block editorial */
.answer-block {
  background: linear-gradient(90deg, rgba(255,180,84,0.08), rgba(255,180,84,0.02));
}

/* Footer quieter */
.footer {
  background: rgba(0,0,0,0.25);
}

/* Library hub stats */
.library-stats strong {
  font-size: 1.05rem;
}

/* Trap pairs sharper */
.trap-pair .good {
  background: linear-gradient(180deg, rgba(255,180,84,0.12), rgba(255,180,84,0.05));
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Mobile reading */
@media (max-width: 720px) {
  .content-section .prose {
    font-size: 1.03rem;
  }
  .page-hero h1 {
    max-width: none;
  }
}


/* ========== A+ polish ========== */
html { color-scheme: dark; }
.hero h1, .page-hero h1 {
  text-wrap: balance;
}
.prose {
  text-wrap: pretty;
}
.nav-links a {
  position: relative;
}
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.library-stats {
  gap: 1.5rem 2rem;
}
.resource-card h3, .card h3 {
  letter-spacing: -0.02em;
}
.footer-nav a {
  opacity: 0.85;
}
.footer-nav a:hover { opacity: 1; }
/* smoother starfield fade under content */
main { position: relative; z-index: 1; }


/* ========== Design pass: Home / Article / Vision (Playwright audit) ========== */
.page-hero {
  padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.25rem);
}
/* Library articles: hero flows into body — no giant black void */
body:has(.series-badge) .page-hero,
.page-hero + .content-section {
  /* fallback for browsers without :has */
}
.page-hero + .content-section {
  padding-top: clamp(1.25rem, 3vw, 2rem);
}
.content-section .prose > .series-badge:first-child {
  margin-top: 0;
}
/* Article reading column more premium */
.content-section .prose {
  max-width: 40.5rem;
}
.content-section .diagram,
.content-section .cta-band,
.content-section .related,
.content-section .answer-block {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}
/* Breadcrumbs quieter */
.breadcrumbs {
  margin-bottom: 1rem;
  opacity: 0.9;
}
/* Lede: don’t scream full title quotes */
.page-hero .lede {
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--ink-muted);
}
.page-hero h1 {
  max-width: 14ch;
}
/* Home hero: keep CTAs above the fold on desktop */
.hero {
  min-height: auto;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.hero-art {
  max-width: min(100%, 420px);
  margin-left: auto;
}
/* Mobile: art must not dominate the fold */
@media (max-width: 960px) {
  .hero-art {
    max-width: 220px;
    margin: 0 auto 0.5rem;
  }
  .hero {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
    gap: 1.25rem;
  }
  .hero h1 {
    font-size: clamp(2.35rem, 10vw, 3.25rem);
  }
  .page-hero {
    padding-top: 1.75rem;
    padding-bottom: 1.25rem;
  }
  .page-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    max-width: none;
  }
  .page-hero .lede {
    font-size: 1.02rem;
  }
}
/* Vision: slightly richer hero, less empty right void */
.page-hero .answer-block {
  max-width: 58ch;
}
/* Premium divider between hero and body */
.page-hero {
  border-bottom-color: rgba(255,180,84,0.08);
}

/* ==========================================================================
   PREMIUM EXPERIENCE LAYER — atmosphere, motion, micro-interactions
   Playwright design audit 2026-07-31
   ========================================================================== */

:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --glow: rgba(255, 180, 84, 0.45);
  --glow-soft: rgba(255, 180, 84, 0.12);
  --surface-elevated: #101018;
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 100;
  background: linear-gradient(90deg, transparent, var(--accent), #ffd89a);
  box-shadow: 0 0 12px var(--glow);
  pointer-events: none;
  transform-origin: left center;
}

/* ---------- ambient atmosphere (injected) ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
  animation: orb-drift 28s var(--ease-soft) infinite alternate;
}
.ambient-orb--1 {
  width: min(55vw, 640px);
  height: min(55vw, 640px);
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(255,180,84,0.22) 0%, transparent 68%);
  animation-duration: 32s;
}
.ambient-orb--2 {
  width: min(45vw, 520px);
  height: min(45vw, 520px);
  top: 35%;
  right: -12%;
  background: radial-gradient(circle, rgba(120,140,255,0.10) 0%, transparent 70%);
  animation-duration: 38s;
  animation-delay: -8s;
}
.ambient-orb--3 {
  width: min(50vw, 580px);
  height: min(50vw, 580px);
  bottom: -18%;
  left: 25%;
  background: radial-gradient(circle, rgba(255,180,84,0.10) 0%, transparent 72%);
  animation-duration: 42s;
  animation-delay: -14s;
}
@keyframes orb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 50px, 0) scale(1.08); }
}

/* subtle film grain */
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.starfield {
  z-index: 0;
  opacity: 0.7;
}
main, .nav, .footer {
  position: relative;
  z-index: 1;
}

/* ---------- nav: scrolled + hover underline ---------- */
.nav {
  transition: background 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft), border-color 0.35s ease;
}
.nav.is-scrolled {
  background: rgba(6, 6, 9, 0.9);
  box-shadow: 0 12px 40px -20px rgba(0,0,0,0.75);
  border-bottom-color: rgba(255,180,84,0.1);
}
.nav-links a {
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), transparent 90%);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease-out-expo);
  opacity: 0.9;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}
.brand {
  transition: opacity 0.2s ease, transform 0.3s var(--ease-soft);
}
.brand:hover {
  opacity: 0.92;
}
.brand-mark {
  transition: transform 0.45s var(--ease-out-expo), filter 0.35s ease;
}
.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.05);
  filter: drop-shadow(0 0 8px rgba(255,180,84,0.45));
}

/* ---------- hero atmosphere ---------- */
.hero {
  position: relative;
}
.hero-copy .eyebrow {
  animation: fade-up 0.9s var(--ease-out-expo) both;
}
.hero h1 {
  animation: fade-up 1s var(--ease-out-expo) 0.08s both;
  color: var(--ink);
  letter-spacing: -0.035em;
}
.hero h1 .accent {
  background: linear-gradient(135deg, #FFE0A8 0%, #FFB454 42%, #E89A2E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 28px rgba(255,180,84,0.28));
}
.hero-sub {
  animation: fade-up 1s var(--ease-out-expo) 0.16s both;
}
.hero .answer-block {
  animation: fade-up 1s var(--ease-out-expo) 0.24s both;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255,180,84,0.18);
  box-shadow: 0 20px 50px -30px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.04);
}
.hero-body {
  animation: fade-up 1s var(--ease-out-expo) 0.3s both;
}
.hero-ctas {
  animation: fade-up 1s var(--ease-out-expo) 0.38s both;
}
.hero-art {
  animation: fade-up 1.15s var(--ease-out-expo) 0.2s both;
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-art {
  position: relative;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,180,84,0.28) 0%, rgba(255,180,84,0.08) 35%, transparent 68%);
  filter: blur(18px);
  animation: hero-glow 6s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(255,180,84,0.12);
  animation: hero-ring 8s linear infinite;
  pointer-events: none;
  z-index: 0;
}
#hero-canvas {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 24px rgba(255,180,84,0.12));
}
@keyframes hero-glow {
  from { opacity: 0.65; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.06); }
}
@keyframes hero-ring {
  from { transform: rotate(0deg) scale(1); opacity: 0.5; }
  50% { opacity: 0.9; }
  to { transform: rotate(360deg) scale(1.02); opacity: 0.5; }
}

/* ---------- buttons: shine + magnetic feel ---------- */
.btn {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease-out-expo),
    box-shadow 0.35s var(--ease-soft),
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}
.btn-solid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255,255,255,0.35) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out-expo);
  pointer-events: none;
}
.btn-solid:hover::before {
  transform: translateX(120%);
}
.btn-solid:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 36px -10px rgba(255,180,84,0.55),
    0 0 0 1px rgba(255,255,255,0.08) inset;
}
.btn-solid:active {
  transform: translateY(-1px) scale(0.98);
}
.btn-outline {
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-outline:hover {
  border-color: rgba(255,180,84,0.55);
  background: rgba(255,180,84,0.06);
  box-shadow: 0 12px 32px -16px rgba(255,180,84,0.35);
}

/* ---------- enhanced scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 0.85s var(--ease-out-expo),
    transform 0.85s var(--ease-out-expo),
    filter 0.85s var(--ease-soft);
  will-change: opacity, transform, filter;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
/* stagger helpers */
[data-reveal-delay="1"] { transition-delay: 0.06s; }
[data-reveal-delay="2"] { transition-delay: 0.12s; }
[data-reveal-delay="3"] { transition-delay: 0.18s; }
[data-reveal-delay="4"] { transition-delay: 0.24s; }
[data-reveal-delay="5"] { transition-delay: 0.3s; }

.cards-3 .card:nth-child(1) { transition-delay: 0s; }
.cards-3 .card:nth-child(2) { transition-delay: 0.1s; }
.cards-3 .card:nth-child(3) { transition-delay: 0.2s; }
.process .process-step:nth-child(1) { transition-delay: 0s; }
.process .process-step:nth-child(2) { transition-delay: 0.1s; }
.process .process-step:nth-child(3) { transition-delay: 0.2s; }

/* ---------- premium cards ---------- */
.card {
  background:
    linear-gradient(165deg, rgba(255,255,255,0.03) 0%, transparent 40%),
    var(--card);
  overflow: hidden;
  transition:
    border-color 0.35s var(--ease-soft),
    transform 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-soft);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(255,180,84,0.35),
    transparent 40%,
    transparent 60%,
    rgba(255,255,255,0.06)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 60%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transform: rotate(18deg) translateX(-40%);
  transition: transform 0.7s var(--ease-out-expo);
  pointer-events: none;
}
.card:hover {
  border-color: rgba(255,180,84,0.35);
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(255,180,84,0.12),
    0 28px 60px -28px rgba(0,0,0,0.85),
    0 0 60px -20px rgba(255,180,84,0.2);
}
.card:hover::before { opacity: 1; }
.card:hover::after {
  transform: rotate(18deg) translateX(280%);
}
.card-icon {
  background: radial-gradient(circle at 50% 50%, rgba(255,180,84,0.12), transparent 70%);
  transition: transform 0.45s var(--ease-out-expo);
}
.card:hover .card-icon {
  transform: scale(1.06);
}

/* ---------- process steps ---------- */
.process {
  position: relative;
}
.process-step {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.025) 0%, transparent 45%),
    var(--card);
  transition:
    transform 0.4s var(--ease-out-expo),
    border-color 0.35s ease,
    box-shadow 0.4s var(--ease-soft);
}
.process-step::before {
  content: attr(data-step);
  position: absolute;
  right: 0.85rem;
  top: 0.35rem;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(3.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255,180,84,0.06);
  pointer-events: none;
  transition: color 0.35s ease, transform 0.45s var(--ease-out-expo);
}
.process-step:hover {
  transform: translateY(-5px);
  border-color: rgba(255,180,84,0.32);
  box-shadow: 0 24px 50px -28px rgba(255,180,84,0.18);
}
.process-step:hover::before {
  color: rgba(255,180,84,0.12);
  transform: scale(1.05);
}
.process-num {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.process-num::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.7;
}

/* ---------- pillars ---------- */
.pillar {
  position: relative;
  padding: 0.25rem 0.15rem;
  transition: transform 0.35s var(--ease-out-expo);
}
.pillar:hover {
  transform: translateY(-3px);
}
.pillar .dot {
  box-shadow: 0 0 0 0 rgba(255,180,84,0.4);
  animation: pulse-dot 2.8s ease-out infinite;
}
.pillar:nth-child(2) .dot { animation-delay: 0.4s; }
.pillar:nth-child(3) .dot { animation-delay: 0.8s; }
.pillar:nth-child(4) .dot { animation-delay: 1.2s; }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(255,180,84,0.45); }
  70% { box-shadow: 0 0 0 10px rgba(255,180,84,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,180,84,0); }
}

/* ---------- resource cards ---------- */
.resource-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.03) 0%, transparent 42%),
    var(--card);
  transition:
    border-color 0.35s ease,
    transform 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-soft);
}
.resource-card::after {
  content: "→";
  position: absolute;
  right: 1.35rem;
  top: 1.55rem;
  font-family: var(--mono);
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease-out-expo);
}
.resource-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,180,84,0.4);
  box-shadow: 0 22px 50px -26px rgba(255,180,84,0.2);
}
.resource-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- vision strip & contact as premium bands ---------- */
#vision-strip.section-alt {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(255,180,84,0.08), transparent 60%),
    linear-gradient(180deg, transparent, rgba(255,255,255,0.015), transparent);
}
#vision-strip .btn {
  margin-top: 0.25rem;
}

.contact {
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,180,84,0.1), transparent 65%);
  pointer-events: none;
  filter: blur(10px);
}
.contact-inner {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 24px;
  border: 1px solid rgba(255,180,84,0.18);
  background:
    linear-gradient(135deg, rgba(255,180,84,0.08) 0%, transparent 45%),
    linear-gradient(180deg, #101018 0%, #0C0C12 100%);
  box-shadow:
    0 30px 70px -40px rgba(0,0,0,0.9),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.contact h2 {
  background: linear-gradient(180deg, #fff, rgba(245,244,240,0.88));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- section rhythm ---------- */
.section {
  position: relative;
}
.section > .wrap > .eyebrow.center {
  position: relative;
}
.section > .wrap > .eyebrow.center::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  margin: 0.85rem auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.55;
}

/* fix adjacent alt bands — how-we-work sits on base bg when after vision-strip */
#vision-strip + #how-we-work.section-alt {
  background: transparent;
  border-top: none;
}

/* ---------- founder polish ---------- */
.founder-art {
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-soft);
}
.founder-art img {
  transition: transform 0.7s var(--ease-soft);
}
.founder-art:hover img {
  transform: scale(1.03);
}

/* ---------- read-more ---------- */
.read-more {
  transition: color 0.25s ease;
}
.read-more:hover {
  color: var(--accent);
}
.read-more span {
  transition: transform 0.3s var(--ease-out-expo);
  display: inline-block;
}
.read-more:hover span {
  transform: translateX(5px);
}

/* ---------- page heroes ---------- */
.page-hero h1 {
  animation: fade-up 0.9s var(--ease-out-expo) both;
}
.page-hero .lede,
.page-hero .answer-block,
.page-hero .hero-ctas,
.page-hero .breadcrumbs {
  animation: fade-up 0.9s var(--ease-out-expo) 0.1s both;
}

/* ---------- CTA band glow ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.4s ease, transform 0.35s var(--ease-soft);
}
.cta-band:hover {
  border-color: rgba(255,180,84,0.35);
  box-shadow: 0 24px 50px -30px rgba(255,180,84,0.25);
}

/* ---------- footer ---------- */
.footer {
  position: relative;
  z-index: 1;
}
.footer-nav a {
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.25s ease;
}
.footer-nav a:hover {
  transform: translateY(-1px);
}

/* ---------- selection + smooth link transitions ---------- */
a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* ---------- reduced motion: kill premium animations ---------- */
@media (prefers-reduced-motion: reduce) {
  .ambient-orb,
  .hero-art::before,
  .hero-art::after,
  .pillar .dot,
  .hero-copy .eyebrow,
  .hero h1,
  .hero-sub,
  .hero .answer-block,
  .hero-body,
  .hero-ctas,
  .page-hero h1,
  .page-hero .lede,
  .page-hero .answer-block,
  .page-hero .hero-ctas,
  .page-hero .breadcrumbs {
    animation: none !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .btn-solid::before,
  .card::after {
    display: none;
  }
}

/* Desktop: slightly taller hero presence without crushing fold CTAs */
@media (min-width: 961px) {
  .hero {
    min-height: min(calc(100svh - 72px), 820px);
    align-items: center;
  }
  .hero-art {
    max-width: min(100%, 460px);
  }
}

/* Mobile: ambient less aggressive */
@media (max-width: 720px) {
  .ambient-orb {
    filter: blur(60px);
    opacity: 0.4;
  }
  .contact-inner {
    padding: 1.35rem 1.15rem;
    border-radius: 18px;
  }
  .hero h1 {
    /* keep gradient text readable */
    -webkit-text-fill-color: unset;
  }
  .process-step::before {
    font-size: 3.25rem;
    opacity: 0.9;
  }
}

/* ==========================================================================
   P0 A+ pass — a11y, mobile fold, contact form
   ========================================================================== */

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--accent);
  color: #060609;
  font-family: var(--quiet);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 0 10px 10px;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* main focus for skip target */
main:focus {
  outline: none;
}
main:focus-visible {
  outline: none;
}

/* ---------- nav toggle icon (hamburger → X) ---------- */
.nav-toggle {
  display: none;
}
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: background 0.2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}
body.nav-open {
  overflow: hidden;
}
@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ---------- mobile hero fold (primary CTA above fold) ---------- */
@media (max-width: 960px) {
  .hero {
    padding-top: 1.15rem;
    padding-bottom: 2rem;
    gap: 0.85rem;
    min-height: auto;
  }
  .hero-art {
    max-width: 148px !important;
    margin: 0 auto 0.15rem !important;
  }
  .hero-art::before {
    filter: blur(12px);
    opacity: 0.85;
  }
  .hero-art::after {
    display: none;
  }
  .hero .eyebrow {
    margin-bottom: 0.75rem;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }
  .hero h1 {
    font-size: clamp(2.15rem, 9.5vw, 2.85rem);
    margin-bottom: 0.75rem;
  }
  .hero-sub {
    font-size: 1.02rem;
    margin-bottom: 0.85rem;
    max-width: 32ch;
  }
  .hero .answer-block {
    padding: 0.95rem 1.05rem;
    margin-bottom: 1rem;
    border-radius: 0 12px 12px 0;
  }
  .hero .answer-block p {
    font-size: 0.92rem;
    line-height: 1.5;
  }
  /* body copy drops on small screens — detail lives in services */
  .hero-body {
    display: none;
  }
  .hero-ctas {
    gap: 0.65rem;
  }
  .hero-ctas .btn {
    padding: 0.8rem 1.25rem;
    font-size: 0.92rem;
  }
  /* secondary outline can sit as text-ish on very small */
  .hero-ctas .btn-outline {
    border-color: rgba(245, 244, 240, 0.14);
  }
}

@media (max-width: 420px) {
  .hero-art {
    max-width: 120px !important;
  }
  .nav-cta {
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
  }
}

/* Desktop hero: slightly airier after copy cut */
@media (min-width: 961px) {
  .hero-body {
    max-width: 42ch;
  }
  .hero .answer-block {
    max-width: 48ch;
  }
}

/* ---------- contact form ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  max-width: 1040px;
}
.contact-form-panel {
  background:
    linear-gradient(165deg, rgba(255,255,255,0.03) 0%, transparent 42%),
    var(--card);
  border: 1px solid rgba(255, 180, 84, 0.16);
  border-radius: 22px;
  padding: clamp(1.5rem, 3vw, 2.15rem);
  box-shadow: 0 28px 60px -36px rgba(0,0,0,0.85);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-field label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.form-field .req {
  color: var(--accent);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  appearance: none;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--quiet);
  font-size: 0.98rem;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.55;
}
.form-field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--ink-faint);
}
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: rgba(255, 180, 84, 0.28);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(255, 180, 84, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 180, 84, 0.12);
  background: rgba(0, 0, 0, 0.45);
}
.form-field input:user-invalid:not(:placeholder-shown),
.form-field textarea:user-invalid:not(:placeholder-shown),
.form-field select:user-invalid {
  border-color: rgba(255, 120, 100, 0.55);
}
.form-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.form-hint a {
  color: var(--accent);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.25rem;
}
.form-error {
  margin: 0;
  color: #ffb4a8;
  font-size: 0.9rem;
}
/* ---------- contact celebration (post-submit) ---------- */
.contact-layout.is-sent {
  display: block;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.contact-layout.is-sent .contact-form-panel,
.contact-layout.is-sent .contact-aside {
  display: none !important;
}

.contact-celebration {
  display: none;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem);
  border-radius: 24px;
  border: 1px solid rgba(255, 180, 84, 0.18);
  background:
    radial-gradient(ellipse 80% 70% at 50% 20%, rgba(255, 180, 84, 0.12), transparent 60%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    var(--card);
  box-shadow:
    0 30px 70px -40px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  outline: none;
}
.contact-layout.is-sent .contact-celebration:not([hidden]),
.contact-celebration.is-visible:not([hidden]) {
  display: block;
}
.contact-celebration.is-visible {
  animation: celebration-enter 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes celebration-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.celebration-visual {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.75rem;
}
.celebration-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 180, 84, 0.2);
  pointer-events: none;
}
.celebration-ring--outer {
  inset: 0;
  animation: celebration-ring-out 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.celebration-ring--mid {
  inset: 14%;
  border-color: rgba(255, 180, 84, 0.28);
  animation: celebration-ring-out 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}
.celebration-ring--inner {
  inset: 28%;
  border-color: rgba(255, 180, 84, 0.4);
  animation: celebration-ring-out 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}
@keyframes celebration-ring-out {
  from {
    opacity: 0;
    transform: scale(0.55);
  }
  60% {
    opacity: 1;
  }
  to {
    opacity: 0.85;
    transform: scale(1);
  }
}
.celebration-core {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(255, 180, 84, 0.55), rgba(255, 180, 84, 0.08) 55%, transparent 70%);
  animation: celebration-core-pulse 2.4s ease-in-out 0.4s infinite alternate;
}
@keyframes celebration-core-pulse {
  from { opacity: 0.7; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.06); }
}
.celebration-check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  filter: drop-shadow(0 0 18px rgba(255, 180, 84, 0.45));
  animation: celebration-check-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
@keyframes celebration-check-in {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.celebration-spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 180, 84, 0.8);
  top: 50%;
  left: 50%;
  opacity: 0;
}
.contact-celebration.is-visible .celebration-spark {
  animation: celebration-spark 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}
.celebration-spark--1 { --dx: 0px; --dy: -52px; animation-delay: 0.22s !important; }
.celebration-spark--2 { --dx: 45px; --dy: -28px; animation-delay: 0.28s !important; }
.celebration-spark--3 { --dx: 48px; --dy: 22px; animation-delay: 0.32s !important; }
.celebration-spark--4 { --dx: 0px; --dy: 50px; animation-delay: 0.26s !important; }
.celebration-spark--5 { --dx: -46px; --dy: 24px; animation-delay: 0.3s !important; }
.celebration-spark--6 { --dx: -44px; --dy: -30px; animation-delay: 0.24s !important; }
@keyframes celebration-spark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2);
  }
}

.celebration-eyebrow {
  margin-bottom: 0.65rem !important;
  animation: celebration-enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
.celebration-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  color: var(--ink);
  animation: celebration-enter 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}
.celebration-sub {
  margin: 0 auto 1.75rem;
  max-width: 28ch;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.5;
  animation: celebration-enter 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.celebration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  justify-content: center;
  animation: celebration-enter 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
}
.celebration-again {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-family: var(--quiet);
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0.5rem 0.25rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 180, 84, 0.35);
  transition: color 0.2s ease;
}
.celebration-again:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .contact-celebration.is-visible,
  .celebration-ring,
  .celebration-core,
  .celebration-check,
  .celebration-spark,
  .celebration-eyebrow,
  .celebration-title,
  .celebration-sub,
  .celebration-actions {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

#contact-mailto-fallback {
  display: inline-flex;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.contact-aside {
  max-width: none;
}
.contact-aside h2 {
  font-size: 1.15rem;
  margin-top: 0;
}
.contact-aside h2 + ul {
  margin-bottom: 1.75rem;
}
@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-aside {
    order: 2;
  }
}

/* Contact page hero slightly tighter above form */
.page-hero + .content-section .contact-layout {
  margin-top: 0.25rem;
}

/* Disabled submit state */
.btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none !important;
  pointer-events: none;
}

/* Stronger focus for interactive controls sitewide */
.btn:focus-visible,
.nav-toggle:focus-visible,
.nav-links a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================================
   A+ pass — library search, pricing, service depth, media
   ========================================================================== */

/* ---------- library search ---------- */
.library-search {
  margin: 1.75rem 0 0;
  max-width: 720px;
}
.library-search-bar {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
}
.library-search-bar input[type="search"] {
  flex: 1;
  min-width: 0;
  appearance: none;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--quiet);
  font-size: 0.98rem;
  padding: 0.85rem 1.15rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.library-search-bar input[type="search"]::placeholder {
  color: var(--ink-faint);
}
.library-search-bar input[type="search"]:focus {
  outline: none;
  border-color: rgba(255,180,84,0.5);
  box-shadow: 0 0 0 3px rgba(255,180,84,0.12);
}
.library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}
.library-filter {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--ink-muted);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.library-filter:hover,
.library-filter.is-active {
  border-color: rgba(255,180,84,0.45);
  color: var(--accent);
  background: rgba(255,180,84,0.08);
}
.library-search-meta {
  margin: 0.85rem 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.library-search-meta strong {
  color: var(--accent);
  font-weight: 600;
}
.library-results {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  border-top: 1px solid var(--card-border);
}
.library-results[hidden] { display: none; }
.library-results li {
  border-bottom: 1px solid var(--card-border);
}
.library-results a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  padding: 1rem 0.15rem;
  color: var(--ink);
  transition: background 0.15s ease;
  border-radius: 8px;
}
.library-results a:hover {
  background: rgba(255,180,84,0.05);
  color: var(--ink);
}
.library-results .series-tag {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: 0.2rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  min-width: 6.5rem;
}
.library-results .result-title {
  grid-column: 2;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.library-results .result-blurb {
  grid-column: 2;
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.library-empty {
  margin: 1.25rem 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.library-empty[hidden] { display: none; }
@media (max-width: 560px) {
  .library-results a {
    grid-template-columns: 1fr;
  }
  .library-results .series-tag {
    grid-row: auto;
    min-width: 0;
  }
  .library-results .result-title,
  .library-results .result-blurb {
    grid-column: 1;
  }
}

/* ---------- pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin: 1.75rem 0 0;
}
.pricing-card {
  position: relative;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.03) 0%, transparent 42%),
    var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.3s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease;
}
.pricing-card:hover {
  border-color: rgba(255,180,84,0.35);
  transform: translateY(-4px);
  box-shadow: 0 22px 50px -28px rgba(255,180,84,0.18);
}
.pricing-card.is-featured {
  border-color: rgba(255,180,84,0.35);
  background:
    linear-gradient(165deg, rgba(255,180,84,0.1) 0%, transparent 50%),
    var(--card);
}
.pricing-card .phase {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.65rem;
}
.pricing-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
.pricing-card .price {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
.pricing-card .price span {
  display: block;
  font-family: var(--quiet);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-faint);
  letter-spacing: 0;
  margin-top: 0.25rem;
}
.pricing-card p {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}
.pricing-card ul {
  margin: 0;
  padding: 0 0 0 1.05rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.pricing-card li {
  margin-bottom: 0.4rem;
}
.pricing-card li::marker {
  color: var(--accent);
}
.pricing-note {
  margin: 1.25rem 0 0;
  color: var(--ink-faint);
  font-size: 0.88rem;
  max-width: 62ch;
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---------- service depth blocks ---------- */
.deliverables,
.fit-grid {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}
.deliverables {
  grid-template-columns: repeat(2, 1fr);
}
.deliverable {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.2rem 1.25rem;
}
.deliverable h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
}
.deliverable p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.fit-grid {
  grid-template-columns: 1fr 1fr;
}
.fit-panel {
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--card-border);
  background: var(--card);
}
.fit-panel.good {
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(255,180,84,0.07), transparent 55%), var(--card);
}
.fit-panel.bad {
  border-left: 3px solid rgba(245,244,240,0.2);
}
.fit-panel h3 {
  font-size: 0.95rem;
  margin: 0 0 0.65rem;
}
.fit-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.fit-panel li { margin-bottom: 0.4rem; }
@media (max-width: 720px) {
  .deliverables,
  .fit-grid { grid-template-columns: 1fr; }
}

/* service hub comparison */
.service-compare {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 0;
  font-size: 0.92rem;
}
.service-compare th,
.service-compare td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--card-border);
  color: var(--ink-muted);
  vertical-align: top;
}
.service-compare th {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.service-compare td:first-child,
.service-compare th:first-child {
  color: var(--ink);
  font-weight: 600;
}
.service-compare a {
  color: var(--accent);
}

/* responsive media */
.founder-art picture,
.founder-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
img.brand-mark {
  height: 26px;
  width: auto;
}

/* screen-reader only */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==========================================================================
   Series hubs + related reading + analytics helpers
   ========================================================================== */

.series-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
}
.series-chip {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  color: var(--ink-muted);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.series-chip:hover,
.series-chip.is-active,
.series-chip[aria-current="page"] {
  border-color: rgba(255,180,84,0.45);
  color: var(--accent);
  background: rgba(255,180,84,0.08);
}

.cluster-nav {
  margin: 2.25rem 0 1.5rem;
  padding: 1.15rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
}
.cluster-nav-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.cluster-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
}
.cluster-nav-links a {
  font-size: 0.85rem;
  color: var(--ink-muted);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.cluster-nav-links a span {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-faint);
  margin-left: 0.25rem;
}
.cluster-nav-links a:hover {
  color: var(--accent);
  border-color: rgba(255,180,84,0.3);
  background: rgba(255,180,84,0.06);
}

.series-section-title {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}
.resource-grid-featured {
  margin-bottom: 0.5rem;
}
.series-cluster {
  margin-top: 2.5rem;
  scroll-margin-top: 96px;
}
.series-cluster h2 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}
.cluster-count {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.topic-list a {
  align-items: start;
}
.topic-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.topic-title {
  color: var(--ink);
}
.topic-blurb {
  font-size: 0.85rem;
  color: var(--ink-faint);
  line-height: 1.4;
}
.topic-list a:hover .topic-title {
  color: var(--accent);
}

/* Enhanced related */
.related.related-enhanced {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.related a span {
  color: var(--accent);
}

.series-search {
  max-width: none;
}
