/* ashrafdaoud.com — design system and components */

/* Self-hosted fonts (no third-party CDN). Files under /assets/fonts/. */
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/satoshi-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/satoshi-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/satoshi-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/satoshi-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
/* Newsreader: serif, article reading body only (Insights articles).
   Latin subset, instanced to optical size 18 from the Google variable font. */
@font-face {
  font-family: 'Newsreader';
  src: url('/assets/fonts/newsreader-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/assets/fonts/newsreader-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/assets/fonts/newsreader-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

/* Design tokens */
:root {
  /* Color */
  --dark: #0B1320;
  --dark-lift-1: #131D32;
  --dark-lift-2: #1A2540;
  --light: #F5F3EE;
  --light-card: #FBFAF7;
  --light-card-active: #F0EBDD;
  --reading-bg: #F6F5F1;   /* warm off-white reading surface for Insights articles */

  --text-headline: #0B1320;
  --text-body: #2A3340;
  --text-label: #6B7280;

  /* 4-token dark-section text color system */
  --text-primary:   #FFFFFF;   /* Headings (H1/H2/H3) + primary button text only */
  --text-secondary: #D1D5DB;   /* All body paragraphs and subheadings */
  --text-meta:      #9CA3AF;   /* Monospaced labels, overlines, tags, "STARTING FROM", "WHAT'S INCLUDED" */
  --text-accent:    var(--yellow); /* Reserved: prices, hero CTA button, checkmarks, single-word highlights */

  --yellow: #F5C518;
  --yellow-deep: #E0B30C;
  --blue: #1500FE;

  --hairline-light: rgba(11, 19, 32, 0.10);
  --hairline-dark: rgba(255, 255, 255, 0.08);
}

/* Base */
html, body {
  background: var(--dark);
  color: var(--text-secondary);
  font-family: 'Satoshi', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-size: 17px;
}

/* Section primitives — every section is one of these two */
.section {
  position: relative;
  padding: 160px 60px;
}
.section.dark { background: var(--dark); color: var(--text-secondary); }
.section.light { background: var(--light); color: var(--text-headline); }

/* Subtle radial accent glows on dark sections (yellow + faint yellow,
   matching the v13 mockup — soft warmth in the corners) */
.section.dark::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.section.dark::after {
  content: '';
  position: absolute;
  bottom: -300px;
  left: -200px;
  width: 660px;
  height: 660px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.025) 0%, transparent 70%);
  pointer-events: none;
}
.section > * { position: relative; z-index: 1; }

/* Typography helpers (used inside sections) */
.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.24em;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 32px;
  text-align: center;
}
.section.dark .label { color: var(--text-meta); }
.section.light .label { color: var(--text-label); }
.label.left { text-align: left; }

.headline {
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 32px;
}
.section.dark .headline { color: var(--text-primary); }
.section.light .headline { color: var(--text-headline); }
.headline.left { text-align: left; max-width: 1100px; margin: 0 0 32px 0; }

.subhead {
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 80px;
}
.section.dark .subhead { color: var(--text-secondary); }
.section.light .subhead { color: var(--text-body); }
.subhead.left { text-align: left; max-width: 760px; margin: 0 0 80px 0; }

/* Section transitions — hairline between sections */
.transition-strip {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 197, 24, 0.12) 50%, transparent 100%);
}

/* CTA system — three tiers */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: #000;
  padding: 17px 34px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid var(--yellow);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(245, 197, 24, 0.4);
  background: var(--yellow-deep);
  border-color: var(--yellow-deep);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--yellow);
  padding: 16px 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid var(--yellow);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-ghost:hover {
  background: var(--yellow);
  color: #000;
  transform: translateY(-2px);
}

.btn-blue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  padding: 14px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(21, 0, 254, 0.3);
  transition: all 0.2s ease;
}
.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(21, 0, 254, 0.5);
}

/* Focus ring — accessibility */
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Scroll-triggered fade-up — standard intensity */
.scroll-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-fade[data-delay="1"].visible { transition-delay: 0.1s; }
.scroll-fade[data-delay="2"].visible { transition-delay: 0.2s; }
.scroll-fade[data-delay="3"].visible { transition-delay: 0.3s; }
.scroll-fade[data-delay="4"].visible { transition-delay: 0.4s; }

/* Scroll-triggered fade-up — strong intensity (Section 4 shift lines) */
.scroll-fade-strong {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.scroll-fade-strong.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-fade-strong[data-delay="1"].visible { transition-delay: 0.15s; }
.scroll-fade-strong[data-delay="2"].visible { transition-delay: 0.35s; }
.scroll-fade-strong[data-delay="3"].visible { transition-delay: 0.55s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  /* Keep a gentle opacity reveal but drop the movement. Opacity fades don't
     trigger vestibular issues the way transforms do, so this stays accessible
     while still giving a soft text reveal on scroll. */
  .scroll-fade, .scroll-fade-strong {
    transform: none;
    transition: opacity 0.5s ease;
  }
}

/* Site nav (sticky frosted glass) */
.site-nav {
  background: rgba(11, 19, 32, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline-dark);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px clamp(28px, 4vw, 64px);
  max-width: none;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}
.nav-brand {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 15px;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a[aria-current="page"] { color: var(--text-primary); }

/* Hamburger toggle button — hidden on desktop, shown ≤ 800px */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-bar {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: top 0.2s ease, transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle-bar:nth-child(1) { top: 14px; }
.nav-toggle-bar:nth-child(2) { top: 21px; }
.nav-toggle-bar:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* Mobile menu overlay — hidden by default, shown when .open is added */
.mobile-menu {
  display: none;
}
.mobile-menu.open {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--dark);
  flex-direction: column;
  padding: 88px 28px 40px;
  gap: 32px;
  animation: mobile-menu-fade 0.22s ease;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline-dark);
}
.mobile-menu-links a {
  display: block;
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Satoshi', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  padding: 20px 4px;
  border-bottom: 1px solid var(--hairline-dark);
  transition: color 0.2s;
}
.mobile-menu-links a[aria-current="page"] { color: var(--yellow); }
.mobile-menu-cta {
  display: block;
  margin-top: auto;
  padding: 18px 24px;
  background: var(--yellow);
  color: var(--dark);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu-cta:hover { background: var(--yellow-deep); }
@keyframes mobile-menu-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body.menu-open { overflow: hidden; }

/* Hero */
.hero {
  padding: 110px 60px;
  text-align: center;
  position: relative;
}
.hero-rule {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 0 auto 36px;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-primary);
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(245, 197, 24, 0.55);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 36px;
}
.hero-label-dot {
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--yellow);
}
.hero-headline {
  font-size: clamp(40px, 4.6vw, 68px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0 auto 36px;
  max-width: 1100px;
}
.yellow-word {
  color: var(--yellow);
  font-weight: 700;
  display: inline-block;
  min-width: 1ch;
}
.yellow-cursor {
  display: inline-block;
  width: 4px;
  height: 0.85em;
  background: var(--yellow);
  margin-left: 6px;
  vertical-align: -8%;
  animation: blink 1s infinite step-end;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.hero-subhead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 52px;
}
.hero-ctas {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-cta-primary-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.hero-cta-explainer {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-meta);
  margin: 0;
  text-align: left;
  font-weight: 400;
  padding-left: 2px;
  max-width: 100%;
}
.hero-tagline {
  font-size: 13px;
  color: var(--text-meta);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Hero ghost button override — white outline (not yellow) for hero context */
.hero .btn-ghost {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.5);
}
.hero .btn-ghost:hover {
  background: var(--text-primary);
  color: var(--dark);
  border-color: var(--text-primary);
}

/* Marquee — horizontal scrolling band below hero */
.marquee-band {
  background: var(--dark);
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  position: relative;
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee-group {
  display: inline-flex;
  align-items: center;
}
.marquee-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--text-meta);
  text-transform: uppercase;
  padding: 0 32px;
}
.marquee-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.85;
  flex-shrink: 0;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Section 2 — Pain Grid */
.section-2-header { max-width: 1240px; margin: 0 auto; }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  align-items: stretch;
}
.pain-card {
  background: linear-gradient(180deg, var(--dark-lift-1) 0%, var(--dark-lift-2) 100%);
  border: 1px solid rgba(245, 197, 24, 0.2);
  border-radius: 14px;
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 197, 24, 0.55) 50%, transparent 100%);
  opacity: 0.55;
}
.pain-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 197, 24, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}
.pain-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-meta);
  margin-bottom: 32px;
  display: block;
}
.pain-card h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.pain-card p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.pain-transition {
  text-align: center;
  margin-top: 80px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-meta);
  text-transform: uppercase;
}
.pain-transition .accent { color: var(--yellow); }

/* Section 4 — The Shift */
.shift-grid {
  display: flex;
  flex-direction: column;
  max-width: 940px;
  margin: 0 auto;
}
.shift-line {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 36px;
  padding: 44px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  align-items: start;
  transition: padding-left 0.25s ease;
}
.shift-line:hover { padding-left: 8px; }
.shift-line:last-of-type { border-bottom: 1px solid rgba(255,255,255,0.08); }
.shift-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-meta);
  padding-top: 8px;
  text-transform: uppercase;
}
.shift-line h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.shift-line p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.shift-connector {
  text-align: center;
  margin-top: 72px;
  margin-bottom: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-meta);
  text-transform: uppercase;
}
.shift-closing {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.4;
}
.shift-closing .accent { color: var(--yellow); }
.yellow-text { color: var(--yellow); }

/* Section 6 — Services */
.services-stinger {
  text-align: center;
  margin-bottom: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-meta);
  text-transform: uppercase;
}
.services-secondary {
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 80px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: stretch;
}
.pricing-card {
  background: linear-gradient(180deg, var(--dark-lift-1) 0%, var(--dark-lift-2) 100%);
  border: 1px solid rgba(245, 197, 24, 0.18);
  border-radius: 14px;
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 197, 24, 0.5) 50%, transparent 100%);
  opacity: 0.5;
}
.pricing-card:hover {
  transform: translateY(-12px);
  border-color: var(--yellow);
  box-shadow: 0 20px 60px rgba(245, 197, 24, 0.2), 0 0 0 1px rgba(245, 197, 24, 0.4);
}
.pricing-name {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.1;
}
.pricing-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
  line-height: 1.35;
  margin-bottom: 16px;
}
.pricing-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
  min-height: 120px;
}
.pricing-price-block {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pricing-price-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-meta);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pricing-price {
  font-size: 38px;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price .price-suffix { font-size: 16px; font-weight: 600; color: var(--text-meta); }
.pricing-price-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-meta);
  text-transform: uppercase;
  margin-top: 6px;
}
.pricing-guarantee {
  background: rgba(245, 197, 24, 0.07);
  border: 1px solid rgba(245, 197, 24, 0.28);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 22px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.pricing-guarantee strong {
  color: var(--text-meta);
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pricing-features-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-meta);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  flex-grow: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.pricing-check { flex-shrink: 0; margin-top: 4px; }
.pricing-cta {
  width: 100%;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: var(--yellow);
  border: 1.5px solid var(--yellow);
  text-decoration: none;
}
.pricing-cta:hover {
  background: var(--yellow);
  color: #000;
  transform: translateY(-2px);
}

/* Section 3 — The Difference */
.difference-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
}
.diff-card {
  position: relative;
  padding: 44px 36px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}
.diff-card.muted {
  background: var(--light-card);
  border: 1px solid var(--hairline-light);
  color: var(--text-body);
  transform: scale(0.96);
}
.diff-card.muted .corner {
  position: absolute;
  width: 12px;
  height: 12px;
  color: rgba(11,19,32,0.22);
}
.diff-card.muted .corner.tl { top: -1px; left: -1px; }
.diff-card.muted .corner.tr { top: -1px; right: -1px; }
.diff-card.muted .corner.bl { bottom: -1px; left: -1px; }
.diff-card.muted .corner.br { bottom: -1px; right: -1px; }
.diff-card.muted .card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 28px;
}
.diff-card.muted .card-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 32px;
}
.diff-card.muted .missing {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline-light);
  font-size: 13px;
  color: var(--text-body);
}
.diff-card.muted .missing-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.diff-card.elevated {
  background: var(--dark);
  color: var(--text-secondary);
  border: 1px solid rgba(245, 197, 24, 0.4);
  transform: translateY(-16px);
  box-shadow: 0 20px 60px rgba(245, 197, 24, 0.12), 0 0 0 1px rgba(245, 197, 24, 0.18);
  position: relative;
  overflow: hidden;
}
.diff-card.elevated::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--yellow) 50%, transparent 100%);
  opacity: 0.6;
}
.diff-card.elevated::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.10) 0%, transparent 70%);
  pointer-events: none;
}
.diff-card.elevated .card-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 28px;
  border: 1px solid rgba(245, 197, 24, 0.5);
  padding: 6px 14px;
  border-radius: 999px;
  background: transparent;
}
.diff-card.elevated .card-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--yellow);
}
.diff-card.elevated .card-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.diff-card.elevated .card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.diff-card.elevated .card-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.diff-card.elevated .card-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
  margin-top: 7px;
}

/* Privacy Bar — light micro-section */
.privacy-band {
  background: var(--light);
  padding: 80px 60px 100px;
}
.privacy-block {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--dark);
  color: var(--text-secondary);
  border-radius: 16px;
  padding: 64px 72px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(11, 19, 32, 0.18);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}
.privacy-block::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(21, 0, 254, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.privacy-content { position: relative; z-index: 1; }
.privacy-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-meta);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.privacy-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--yellow);
}
.privacy-block h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 22px;
}
.privacy-block h2 .accent { color: var(--yellow); }
.privacy-block p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.privacy-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.privacy-trust-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-meta);
  text-transform: uppercase;
}
.trust-item .check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.18);
  color: #22C55E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
}

/* Section 5 — Proof + Find Your Leverage */
.proof-block { max-width: 880px; margin: 0 auto; text-align: center; }
.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border: 1px solid rgba(245, 197, 24, 0.5);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-headline);
  margin-bottom: 56px;
}
.proof-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--yellow);
}
.proof-quote-wrap { position: relative; margin-bottom: 48px; }
.proof-quote-mark {
  position: absolute;
  top: -56px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Satoshi', sans-serif;
  font-size: 110px;
  font-weight: 800;
  line-height: 1;
  color: var(--yellow);
  opacity: 0.18;
  pointer-events: none;
}
.proof-quote {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-headline);
  letter-spacing: -0.01em;
}
.proof-quote .highlight,
.article-quote-body .highlight {
  color: var(--text-headline);
  background: rgba(245, 197, 24, 0.32);
  padding: 0 4px;
}
.proof-author {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dark-lift-2) 0%, var(--dark) 100%);
  border: 2px solid var(--yellow);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.avatar-circle.avatar-photo {
  width: 64px;
  height: 64px;
  background: none;
  padding: 0;
  object-fit: cover;
  object-position: center 30%;
}
.author-info { text-align: left; }
.author-name {
  font-weight: 600;
  color: var(--text-headline);
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 2px;
}
.author-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-body);
  text-transform: uppercase;
}
.proof-divider {
  width: 60px;
  height: 1px;
  background: rgba(11, 19, 32, 0.15);
  margin: 0 auto 48px;
}
.proof-bridge {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-body);
  max-width: 600px;
  margin: 0 auto 36px;
}
.proof-story-row {
  text-align: center;
  line-height: 1;
  margin-bottom: 52px;
}
.proof-story-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-headline);
  text-decoration: none;
  letter-spacing: 0.01em;
  border-bottom: 1.5px solid rgba(11, 19, 32, 0.65);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.proof-story-link span[aria-hidden] { color: var(--text-headline); }
.proof-story-link:hover {
  color: var(--yellow-deep);
  border-bottom-color: var(--yellow);
}
.proof-story-link:hover span[aria-hidden] { color: var(--yellow-deep); }

/* ============================================================
   Case Study page (/clients/<name>/)
   Layout: dark hero (text + portrait) -> light story with
   pipeline animation -> dark testimonial signature + CTA close.
   Animation uses pure CSS, respects prefers-reduced-motion,
   degrades gracefully without JS. All .cs-* prefixed.
   ============================================================ */
.cs-hero { padding-top: 64px; padding-bottom: 88px; }
.cs-breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-meta);
  margin-bottom: 40px;
}
.cs-breadcrumb a {
  color: var(--text-meta);
  text-decoration: none;
  transition: color 0.2s;
}
.cs-breadcrumb a:hover { color: var(--yellow); }
.cs-breadcrumb .current { color: var(--text-primary); }
.cs-breadcrumb [aria-hidden="true"] {
  color: rgba(255, 255, 255, 0.25);
  margin: 0 10px;
}

.cs-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  text-align: left;
  max-width: 1100px;
  margin: 0 auto;
}
/* Text-only hero variant (photo removed; story unfolds without a face
   at the top, so it doesn't read as Mila-authored). */
.cs-hero-grid--text-only {
  grid-template-columns: 1fr;
  max-width: 820px;
  text-align: center;
}
.cs-hero-grid--text-only .cs-hero-text { align-items: center; }
.cs-hero-grid--text-only .hero-headline { text-align: center; }
.cs-hero-grid--text-only .hero-subhead { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.cs-hero-grid--text-only .cs-hero-quote { margin: 0 auto; }
.cs-hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.cs-hero .hero-label { margin-bottom: 24px; }
.cs-hero .hero-headline { margin-bottom: 18px; text-align: left; }
.cs-hero .hero-subhead { margin-bottom: 38px; text-align: left; max-width: 540px; }

/* Big outcome stat in hero: '4 days -> 5 minutes' */
.cs-stat-big {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 32px;
  background: rgba(245, 197, 24, 0.04);
  border: 1px solid rgba(245, 197, 24, 0.22);
  border-radius: 16px;
  margin-bottom: 36px;
}
.cs-stat-big-value {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.cs-stat-big-before { color: var(--text-primary); }
.cs-stat-big-after { color: var(--yellow); }
.cs-stat-big-arrow {
  font-size: 28px;
  color: var(--yellow);
  font-weight: 300;
  position: relative;
  top: -1px;
}
.cs-stat-big-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-meta);
}

/* Hero pull-quote */
.cs-hero-quote {
  border-left: 2px solid var(--yellow);
  padding: 4px 0 4px 20px;
  margin: 0;
  max-width: 480px;
}
.cs-hero-quote p {
  font-size: 19px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-style: italic;
}
.cs-hero-quote cite {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-meta);
  font-style: normal;
}

/* Hero photo */
.cs-hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
}
.cs-hero-photo img {
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(245, 197, 24, 0.18);
  filter: contrast(1.03);
}

/* ============ Story sections (light) ============ */
.cs-story-section { padding-top: 96px; padding-bottom: 96px; }
.cs-story { max-width: 760px; margin: 0 auto; }
.cs-section { margin-bottom: 72px; }
.cs-section:last-child { margin-bottom: 0; }
.cs-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-headline);
  font-weight: 500;
  margin-bottom: 18px;
}
.cs-eyebrow--yellow { color: var(--yellow); }
.cs-h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--text-headline);
  margin-bottom: 22px;
}
.cs-h2--dark { color: var(--text-primary); }
.cs-section p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 16px;
}
.cs-section p:last-child { margin-bottom: 0; }

/* Privacy aside in The Outcome */
.cs-privacy-note {
  margin-top: 28px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--hairline-light);
  border-left: 3px solid var(--yellow);
  border-radius: 12px;
}
.cs-privacy-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow-deep);
  margin-bottom: 10px !important;
  font-weight: 500;
}
.cs-privacy-note p:not(.cs-privacy-eyebrow) {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  margin: 0;
}

/* Stat grid in The Outcome */
.cs-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 32px 0 32px;
}
.cs-stat-card {
  background: #fff;
  border: 1px solid var(--hairline-light);
  border-radius: 14px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.cs-stat-card--key {
  border-color: var(--yellow);
  background: rgba(245, 197, 24, 0.05);
}
.cs-stat-card-num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-headline);
  line-height: 1.1;
}
.cs-stat-card--key .cs-stat-card-num { color: var(--yellow-deep); font-size: 19px; }
.cs-stat-arrow-inline {
  font-weight: 400;
  margin: 0 4px;
  color: var(--yellow);
}
.cs-stat-card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-body);
  line-height: 1.4;
}
.cs-stat-card--key .cs-stat-card-label {
  color: rgba(11, 19, 32, 0.72);
}

/* ============================================================
   Pipeline animation section (live iframe of the real prototype).
   Full-width breakout from the narrow story column. The animation
   itself lives in assets/nightguides-workflow-animation.html so
   it can be updated independently of this page.
   ============================================================ */
.cs-pipeline-section {
  padding-top: 24px;
  padding-bottom: 88px;
}
.cs-pipeline-section.section.light { /* override default section padding without breaking the light bg */
  padding-top: 24px;
}
.cs-pipeline-wide {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.cs-pipeline-eyebrow {
  text-align: center;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.24em;
}
.cs-pipeline-h2 { text-align: center; margin-bottom: 14px; }
.cs-pipeline-sub {
  text-align: center;
  font-size: 16px;
  color: var(--text-body);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
  margin: 0 auto 32px;
  max-width: 580px;
}
.cs-pipeline-frame-wrap {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(11, 19, 32, 0.18);
  background: #0e1116;
}
.cs-pipeline-frame {
  display: block;
  width: 100%;
  height: 540px;
  border: 0;
  background: transparent;
}
.cs-story-section--continued { padding-top: 64px; padding-bottom: 96px; }

/* Testimonial single-quote variant */
.cs-testimonial-lead {
  font-size: 21px !important;
  line-height: 1.55 !important;
  font-weight: 500;
  color: var(--text-primary) !important;
}
.cs-highlight {
  background: linear-gradient(180deg, transparent 58%, rgba(245, 197, 24, 0.45) 58%, rgba(245, 197, 24, 0.45) 92%, transparent 92%);
  color: var(--text-primary);
  padding: 0 2px;
}

/* ============================================================
   Pipeline animation (legacy CSS-only fallback, currently unused
   on the case study page in favour of the real prototype iframe).
   Left in place for future reuse.
   ============================================================ */
.cs-pipeline {
  max-width: 1000px;
  margin: 16px auto 72px;
  padding: 36px 32px 28px;
  background: linear-gradient(180deg, #fff 0%, #FAF8F2 100%);
  border: 1px solid var(--hairline-light);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(11, 19, 32, 0.06);
}
.cs-pipe-caption {
  text-align: center;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cs-pipe-caption-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow-deep);
  font-weight: 500;
}
.cs-pipe-caption-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-headline);
  letter-spacing: -0.01em;
}

.cs-pipe-wrap {
  display: grid;
  grid-template-columns: 170px 1fr 200px;
  gap: 20px;
  align-items: stretch;
}

.cs-pipe-zone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.cs-pipe-zone-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-meta);
  margin-bottom: 4px;
}

/* Input fragments */
.cs-pipe-fragments {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cs-frag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  line-height: 1.4;
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--text-headline);
  background: rgba(245, 197, 24, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.20);
  position: relative;
  transition: opacity .4s ease, filter .4s ease;
  animation: cs-frag-shimmer 8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.cs-frag--drop {
  background: rgba(11, 19, 32, 0.04);
  border-color: rgba(11, 19, 32, 0.10);
  color: var(--text-meta);
  text-decoration: line-through;
  text-decoration-color: rgba(11, 19, 32, 0.4);
  animation: cs-frag-fade 8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes cs-frag-shimmer {
  0%, 20% { background: rgba(11, 19, 32, 0.05); border-color: rgba(11, 19, 32, 0.10); }
  35%, 55% { background: rgba(245, 197, 24, 0.12); border-color: rgba(245, 197, 24, 0.28); }
  70%, 100% { background: rgba(245, 197, 24, 0.08); border-color: rgba(245, 197, 24, 0.20); }
}
@keyframes cs-frag-fade {
  0%, 30% { opacity: 1; filter: none; }
  45%, 100% { opacity: 0.35; filter: grayscale(1); }
}

/* Stages */
.cs-pipe-stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  position: relative;
  align-self: center;
}
.cs-pipe-stages::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245,197,24,0.35) 20%, rgba(245,197,24,0.35) 80%, transparent 100%);
  z-index: 0;
}
.cs-pipe-stage {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1.5px solid var(--hairline-light);
  border-radius: 10px;
  padding: 14px 8px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: cs-stage-pulse 8s ease-in-out infinite;
  animation-delay: calc(2s + (var(--i) * 0.5s));
}
.cs-pipe-stage-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--text-meta);
  font-weight: 500;
}
.cs-pipe-stage-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-headline);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.cs-pipe-stage-desc {
  font-size: 9.5px;
  line-height: 1.3;
  color: var(--text-meta);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.cs-pipe-stage--out {
  background: rgba(245, 197, 24, 0.06);
  border-color: rgba(245, 197, 24, 0.35);
}
.cs-pipe-stage--out .cs-pipe-stage-name { color: var(--yellow-deep); }

@keyframes cs-stage-pulse {
  0%, 6% {
    border-color: var(--hairline-light);
    background: #fff;
    box-shadow: 0 0 0 0 rgba(245, 197, 24, 0);
    transform: translateY(0);
  }
  10%, 14% {
    border-color: var(--yellow);
    background: rgba(245, 197, 24, 0.10);
    box-shadow: 0 6px 16px rgba(245, 197, 24, 0.22);
    transform: translateY(-3px);
  }
  20%, 100% {
    border-color: var(--hairline-light);
    background: #fff;
    box-shadow: 0 0 0 0 rgba(245, 197, 24, 0);
    transform: translateY(0);
  }
}
.cs-pipe-stage--out {
  animation: cs-stage-pulse-out 8s ease-in-out infinite;
  animation-delay: calc(2s + (var(--i) * 0.5s));
}
@keyframes cs-stage-pulse-out {
  0%, 6% {
    background: rgba(245, 197, 24, 0.06);
    border-color: rgba(245, 197, 24, 0.35);
    box-shadow: none;
    transform: translateY(0);
  }
  10%, 22% {
    background: rgba(245, 197, 24, 0.14);
    border-color: var(--yellow);
    box-shadow: 0 8px 22px rgba(245, 197, 24, 0.28);
    transform: translateY(-3px);
  }
  30%, 100% {
    background: rgba(245, 197, 24, 0.06);
    border-color: rgba(245, 197, 24, 0.35);
    box-shadow: none;
    transform: translateY(0);
  }
}

/* Output rows */
.cs-pipe-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cs-pipe-rows li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 1px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--hairline-light);
  border-left: 3px solid var(--yellow);
  border-radius: 6px;
  opacity: 0;
  transform: translateX(-6px);
  animation: cs-row-appear 8s ease-in-out infinite;
  animation-delay: calc(4.4s + (var(--i) * 0.35s));
}
.cs-row-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--yellow-deep);
  grid-row: 1;
  grid-column: 1;
}
.cs-row-loc {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-headline);
  grid-row: 1;
  grid-column: 2;
}
.cs-row-res {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--text-meta);
  letter-spacing: 0.04em;
  grid-row: 2;
  grid-column: 1 / -1;
  line-height: 1.3;
}
@keyframes cs-row-appear {
  0%, 50% { opacity: 0; transform: translateX(-6px); }
  56%, 96% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(0); }
}

.cs-pipe-footnote {
  margin: 20px 0 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--text-meta);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .cs-frag, .cs-pipe-stage, .cs-pipe-stage--out, .cs-pipe-rows li {
    animation: none !important;
  }
  /* Static "active" stage: Extract is mid-flow */
  .cs-pipe-stage:nth-child(2) {
    border-color: var(--yellow);
    background: rgba(245, 197, 24, 0.08);
  }
  .cs-pipe-rows li { opacity: 1; transform: none; }
  .cs-frag--drop { opacity: 0.5; filter: grayscale(1); }
}

/* ============ Testimonial signature (dark) ============ */
.cs-testimonial-section { padding-top: 96px; padding-bottom: 80px; }
.cs-testimonial-block {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.cs-testimonial-block .cs-eyebrow { margin-bottom: 16px; }
.cs-testimonial-block .cs-h2 { margin-bottom: 48px; }
.cs-testimonial-quote {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  text-align: left;
  align-items: start;
}
.cs-byline-photo {
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.cs-testimonial-body {
  position: relative;
  padding-left: 16px;
}
.cs-quote-mark {
  position: absolute;
  left: -28px;
  top: -18px;
  font-size: 80px;
  line-height: 1;
  color: var(--yellow);
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
}
.cs-testimonial-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.cs-testimonial-body p:last-of-type { margin-bottom: 28px; }
.cs-byline {
  border-top: 1px solid var(--hairline-dark);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cs-byline-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cs-byline-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.cs-byline-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-meta);
}

/* ============ Final CTA section ============ */
.cs-cta-wrap {
  max-width: 720px;
  margin: 88px auto 0;
  text-align: center;
}
.cs-cta-divider {
  background: rgba(255, 255, 255, 0.18);
  margin: 0 auto 36px;
}
.cs-cta-heading {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.2;
}
.cs-cta-bridge {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 30px;
}
.cs-final-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section 9 — FAQ */
.faq-block { max-width: 880px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--hairline-light);
  transition: background 0.2s;
}
.faq-item:first-child { border-top: 1px solid var(--hairline-light); }
.faq-item:hover { background: rgba(11, 19, 32, 0.02); }
.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 28px 0;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: inherit;
  color: var(--text-headline);
}
.faq-question h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(11, 19, 32, 0.06);
  color: var(--text-headline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.2s;
}
.faq-item.open .faq-icon {
  background: var(--yellow);
  color: #000;
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 28px;
}
.faq-answer p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 720px;
}
.faq-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-headline);
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--text-headline);
  padding-bottom: 4px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.faq-link:hover { color: var(--yellow); border-color: var(--yellow); }

/* Section 7 — Workflow Examples */
/* Section 7 — slightly tighter padding to give the SVG canvas more room */
.section.workflows-section { padding: 130px 60px; }

.workflow-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.5fr;
  gap: 36px;
  max-width: 1240px;
  margin: 56px auto 0;
  align-items: start;
}
.workflow-tabs { display: flex; flex-direction: column; gap: 14px; }
.workflow-tab {
  background: var(--light-card);
  border: 1px solid var(--hairline-light);
  border-left-width: 3px;
  border-left-color: transparent;
  border-radius: 8px;
  padding: 22px 24px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  color: var(--text-headline);
  font-family: inherit;
  width: 100%;
}
.workflow-tab:hover { border-color: rgba(11, 19, 32, 0.2); }
.workflow-tab.active {
  background: var(--light-card-active);
  border-color: rgba(245, 197, 24, 0.4);
  border-left-color: var(--yellow);
  box-shadow: 0 4px 16px rgba(11, 19, 32, 0.06);
  transform: translateX(4px);
}
.workflow-tab .tab-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  gap: 12px;
}
.workflow-tab h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-headline);
}
.workflow-tab.active h3 { font-weight: 700; }
.workflow-tab .hours {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-body);
  text-transform: uppercase;
  white-space: nowrap;
}
.workflow-tab.active .hours {
  color: var(--text-headline);
  font-weight: 600;
}
.workflow-tab p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-body);
  margin: 0;
}
.workflow-preview {
  position: relative;
  background: var(--dark);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(245, 197, 24, 0.18);
  box-shadow: 0 20px 60px rgba(11, 19, 32, 0.18);
}
.preview-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 900 / 520;
}
.preview-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.preview-panel.active {
  opacity: 1;
  pointer-events: auto;
}
.preview-panel svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--text-secondary);
  padding: 100px 60px 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.2fr;
  gap: 56px;
  max-width: 1240px;
  margin: 0 auto;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand h4 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-meta);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.footer-links-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-meta);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-links-col a:hover { color: var(--yellow); }
.footer-newsletter h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-meta);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-newsletter h6 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.footer-newsletter p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-meta);
  margin-bottom: 18px;
}
.footer-newsletter-form { display: flex; gap: 8px; }
.footer-newsletter-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  min-width: 0;
}
.footer-newsletter-input:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(21, 0, 254, 0.06);
}
.footer-newsletter-input::placeholder { color: rgba(255,255,255,0.3); }
.footer-bottom {
  max-width: 1240px;
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-meta);
  text-transform: uppercase;
}
.footer-bottom .tagline { color: var(--yellow); }

/* Utility — visually-hidden for accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* About page — 2-column layout */
.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 64px;
  max-width: 1100px;
  margin: 48px auto 0;
  align-items: start;
}
.about-portrait {
  position: sticky;
  top: 96px;
}
.portrait-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--dark-lift-1) 0%, var(--dark-lift-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait-placeholder span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-meta);
  text-transform: uppercase;
}
.about-narrative {
  max-width: 68ch;
}
.about-narrative p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 22px;
}
.about-narrative p:first-of-type {
  font-size: 22px;
  line-height: 1.4;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 32px;
}
.about-rules-headline {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 56px;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.about-rules {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-rules li {
  padding: 14px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.about-rules li:last-child { border-bottom: none; }
.about-rules strong {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 800px) {
  /* Hamburger replaces inline nav links */
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { padding: 18px 24px; }
  .nav-brand { font-size: 18px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-portrait {
    position: static;
    max-width: 240px;   /* small, centered */
    margin: 0 auto;
  }
  .about-portrait img { aspect-ratio: 1 / 1; }   /* keep the square on phones (approved); 4/5 only on desktop */

  /* Contact: capture the form before the call/email options on phones.
     Single-column stack here (from the ≤1024 rule), so reordering the
     grid items is safe; desktop keeps its 2-column options-then-form layout. */
  .contact-form { order: -1; }
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.contact-options { display: flex; flex-direction: column; gap: 32px; }
.contact-option {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.contact-option:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.contact-option-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-meta);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.contact-option a {
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-option a:hover { color: var(--text-accent); }
.contact-option p {
  color: var(--text-secondary);
  font-size: 16px;
}
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-meta);
  text-transform: uppercase;
}
.form-row input,
.form-row textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  transition: all 0.2s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(245, 197, 24, 0.04);
}
.form-row textarea { resize: vertical; min-height: 120px; }
textarea::placeholder, input::placeholder {
  color: var(--text-meta);
  opacity: 1;
}
.contact-intro {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 720px;
}

/* Insights listing + article reading styles live at the end of this file
   under the ".post-*" (listing) and ".article-*" (reading) prefixes. */

/* Find Your Leverage page */
.fyl-block { max-width: 640px; margin: 0 auto; text-align: center; }
.fyl-card {
  background: linear-gradient(180deg, var(--dark-lift-1) 0%, var(--dark-lift-2) 100%);
  border: 1px solid rgba(245, 197, 24, 0.2);
  border-radius: 14px;
  padding: 40px;
  margin-bottom: 32px;
}
.fyl-card-headline {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.fyl-card-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.fyl-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fyl-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  min-width: 0;
}
.fyl-input:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(245, 197, 24, 0.04);
}
.fyl-input::placeholder { color: rgba(255,255,255,0.3); }
.fyl-fallback {
  font-size: 14px;
  color: var(--text-meta);
}
.fyl-fallback a {
  color: var(--text-secondary);
  text-decoration: underline;
}
.fyl-fallback a:hover { color: var(--yellow); }

/* Full FAQ page -- group headings */
.faq-group-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-meta);
  text-transform: uppercase;
  margin-top: 56px;
  margin-bottom: 24px;
}
.faq-group-heading:first-child { margin-top: 0; }

/* Legal pages (Privacy, Terms) */
.legal-body {
  max-width: 720px;
  margin: 0 auto;
}
.legal-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.legal-body strong {
  color: var(--text-meta);
  font-weight: 600;
}
.legal-body a {
  color: var(--text-secondary);
  text-decoration: underline;
}
.legal-body a:hover { color: var(--yellow); }
.legal-body h2 {
  font-family: 'Satoshi', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-top: 36px;
  margin-bottom: 12px;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.legal-body li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}
.legal-body li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 13px;
  width: 6px;
  height: 1px;
  background: var(--yellow);
}
.legal-updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-meta);
  margin-top: 40px;
}

/* ========================== Responsive ========================== */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .section { padding: 110px 40px; }
  .nav-inner { padding: 18px 40px; }

  /* 3-column grids → 2-column on tablet */
  .pain-grid,
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Difference: keep elevated card 2 in its own row, centered */
  .difference-grid {
    grid-template-columns: 1fr 1fr;
  }
  .difference-grid > :nth-child(2) {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
    transform: none;
  }

  /* Workflow tabs: above the preview in 2-column grid; preview full width */
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .workflow-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  /* Privacy block stacks vertically */
  .privacy-block {
    grid-template-columns: 1fr;
    padding: 48px 40px;
    gap: 24px;
  }
  .privacy-trust-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  /* Footer collapses to single column with 3 sub-columns + newsletter */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-links { grid-template-columns: repeat(2, 1fr); }

  /* Contact: stack form below options */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Hide section markers and decorative privacy glow on tablet */
  .section-marker, .privacy-block::after { display: none; }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
  .section { padding: 80px 20px; }
  .nav-inner { padding: 16px 20px; }
  .nav-brand { font-size: 17px; }

  .hero { padding: 70px 20px; }
  .hero-headline { font-size: clamp(28px, 7.5vw, 44px); line-height: 1.2; }
  .hero-subhead { font-size: 16px; }
  .hero-tagline { font-size: 11px; }

  /* All multi-column grids stack to single column */
  .pain-grid,
  .difference-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  .difference-grid > :nth-child(2) { transform: none; }

  .workflow-tabs { grid-template-columns: 1fr; }

  .footer-links { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Shift section: stack the line number above the body */
  .shift-line {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }
  .shift-num { padding-top: 0; }
  .shift-line:hover { padding-left: 0; }

  /* Pricing cards: tighter padding */
  .pricing-card { padding: 32px 24px; }
  .pricing-name { font-size: 24px; }

  /* Footer newsletter form stacks input above button */
  .footer-newsletter-form { flex-direction: column; }
  .footer-newsletter-form .btn-blue {
    width: 100%;
    justify-content: center;
  }

  /* Privacy bar tighter on mobile */
  .privacy-band { padding: 60px 20px 80px; }
  .privacy-block { padding: 36px 24px; }

  /* About bio padding reduced — font-size only, color already set via tokens */
  .about-narrative p, .about-rules li { font-size: 16px; }

  /* Hero CTAs stack full-width for thumb-friendly taps */
  .hero-ctas {
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 18px 24px;
    font-size: 13px;
  }
  .hero-cta-primary-group {
    width: 100%;
    align-items: center;
  }
  .hero-cta-explainer {
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    padding-left: 0;
  }
  .hero-label {
    font-size: 10px;
    padding: 7px 14px;
    letter-spacing: 0.18em;
    margin-bottom: 28px;
  }

  /* Marquee items tighter on mobile so more fits per loop */
  .marquee-item { padding: 0 18px; font-size: 11px; letter-spacing: 0.22em; }
  .marquee-band { padding: 16px 0; }

  /* Footer tightens up on mobile */
  .footer { padding: 64px 20px 32px; }
  .footer-grid {
    gap: 36px;
    padding-bottom: 36px;
  }
  .footer-brand h4 { font-size: 18px; margin-bottom: 12px; }
  .footer-brand p { font-size: 12px; }
  .footer-links { gap: 28px; }
  .footer-links-col h5 { margin-bottom: 10px; }
  .footer-links-col a { padding: 8px 0; font-size: 15px; }
  .footer-newsletter h6 { font-size: 16px; }
  .footer-bottom {
    margin-top: 24px;
    font-size: 10px;
  }
}

/* Body text reading-width cap (65-75ch) for desktop comfort */
.section p:not(.subhead):not(.shift-closing):not(.services-stinger):not(.services-secondary):not(.pain-transition):not(.pricing-summary):not(.pricing-price-note):not(.pricing-features-label) {
  max-width: 68ch;
}

/* Ambient background glow — subtle, fixed-position, breaks up navy flatness */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(21, 0, 254, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
/* Make sure all content is above ambient glows */
main, footer { position: relative; z-index: 1; }
.site-nav { z-index: 50; }
.back-to-top { z-index: 100; }

/* Back to Top floating button */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yellow);
  color: #000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 100;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--yellow-deep);
}
.back-to-top[hidden] { display: flex; }  /* override default hidden — controlled via class */

/* Skip-to-main-content link — accessible jump for keyboard users */
.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  background: var(--yellow);
  color: #000;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

/* ============================================================
   Footer — reorganized layout on mobile (applied site-wide)
   Desktop keeps its grid; only ≤800px restructures.
   ============================================================ */
.mob-foot-org { display: none; }   /* visible on mobile only */
@media (max-width: 800px) {
  .mob-footer .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }
  .mob-footer .footer-newsletter { order: -1; margin-bottom: 32px; }
  .mob-footer .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    padding: 28px 0;
    border-top: 1px solid var(--hairline-dark);
    border-bottom: 1px solid var(--hairline-dark);
  }
  .mob-footer .footer-brand { display: none; }   /* org info relocated into the bottom row */
  .mob-footer .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    margin-top: 26px;
  }
  .mob-footer .footer-bottom .footer-url { display: none; }
  .mob-footer .footer-bottom .mob-foot-org {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--text-meta);
  }
  .mob-footer .footer-bottom .mob-foot-org .sep { color: var(--yellow); margin: 0 7px; }
  .mob-footer .footer-bottom .tagline {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
}

/* ============================================================
   About portrait — real image (replaces placeholder when present)
   ============================================================ */
.about-portrait img {
  width: 100%;
  height: auto;          /* override the height="800" attribute so aspect-ratio wins (else the box goes tall + crops) */
  aspect-ratio: 4 / 5;   /* fills the original portrait placeholder frame (desktop); mild side-crop of the square source */
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
}

/* ============================================================
   Mobile interaction patterns (homepage) — ported from the
   approved mobile-demo.html. These restyle 5 homepage zones
   on phones (≤800px) ONLY. Desktop keeps its original grids:
   the mobile-pattern blocks are hidden >800px, so desktop is
   untouched. Where a pattern needs different DOM, both sets of
   markup exist and CSS toggles which one shows.
   ============================================================ */

/* Desktop default: hide the mobile-pattern blocks. .mob-wf-stage
   uses display:contents so the shared workflow preview stays a
   direct grid child of .workflow-grid (desktop layout unchanged). */
.mob-flip-stack,
.mob-carousel,
.mob-wf-grid,
.mob-wf-caption { display: none; }
.mob-wf-stage { display: contents; }

@media (max-width: 800px) {
  /* ---- Swap desktop grids for the mobile patterns ---- */
  .pain-grid,
  .shift-grid,
  .difference-grid,
  .services-grid,
  .workflow-tabs { display: none; }

  /* ---- Hero: ~one full screen with breathing room (minus sticky nav) ---- */
  .hero {
    min-height: calc(100svh - 62px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 20px;
  }

  /* ---- PATTERN A: tap-to-flip cards (Philosophy + Shift) ---- */
  .mob-flip-stack { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
  .mob-flip { perspective: 1400px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .mob-flip-inner { display: grid; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.4,0,.2,1); border-radius: 14px; }
  .mob-flip.flipped .mob-flip-inner { transform: rotateY(180deg); }
  .mob-flip-front, .mob-flip-back {
    grid-area: 1/1; -webkit-backface-visibility: hidden; backface-visibility: hidden;
    border-radius: 14px; padding: 26px 22px; display: flex; flex-direction: column;
    border: 1px solid rgba(245,197,24,.18);
    background: linear-gradient(180deg, var(--dark-lift-1) 0%, var(--dark-lift-2) 100%);
  }
  .mob-flip-back { transform: rotateY(180deg); justify-content: center; }
  .mob-flip-icon { color: var(--yellow); margin-bottom: 16px; }
  .mob-flip-num { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-meta); margin-bottom: 10px; }
  .mob-flip-front h3 { font-size: 21px; font-weight: 700; color: var(--text-primary); line-height: 1.25; letter-spacing: -.01em; margin: 0; }
  .mob-flip-back p { font-size: 15px; line-height: 1.6; color: var(--text-secondary); margin: 0; }
  .mob-flip-hint { margin-top: auto; padding-top: 18px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
  .mob-flip-back .mob-flip-hint { color: var(--text-meta); }

  /* ---- PATTERN B: swipe carousel (Difference + Services) ---- */
  .mob-carousel { display: block; margin: 10px -20px 0; }
  .mob-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .mob-track::-webkit-scrollbar { display: none; }
  .mob-slide { scroll-snap-align: center; opacity: .5; transform: scale(.95);
    transition: box-shadow .35s ease, border-color .35s ease, transform .35s ease, opacity .35s ease; }
  .mob-slide.is-active { opacity: 1; transform: scale(1); }
  /* peek widths */
  .mob-carousel.peek-md .mob-track { gap: 14px; padding: 14px 12%; }
  .mob-carousel.peek-md .mob-slide { flex: 0 0 76%; }
  .mob-carousel.peek-sm .mob-track { gap: 12px; padding: 14px 5%; }
  .mob-carousel.peek-sm .mob-slide { flex: 0 0 90%; }
  /* slide skins (Difference) */
  .mob-slide.lite, .mob-slide.dark { border-radius: 16px; padding: 28px 22px; }
  .mob-slide.lite { background: var(--light-card); border: 1px solid var(--hairline-light); }
  .mob-slide.dark { background: linear-gradient(165deg,#0F1A2A 0%, #142336 100%); border: 1px solid rgba(245,197,24,.22); }
  .mob-slide.lite.is-active, .mob-slide.dark.is-active { border-color: var(--yellow);
    box-shadow: 0 0 0 1px var(--yellow), 0 14px 50px rgba(245,197,24,.25); }
  /* pricing card as a slide: keep its real skin, just glow when centered */
  .pricing-card.mob-slide { height: auto; }
  .pricing-card.mob-slide.is-active { box-shadow: 0 0 0 1px var(--yellow), 0 14px 50px rgba(245,197,24,.25); }

  /* Difference slide internals */
  .mob-s-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
  .mob-slide.lite .mob-s-label { color: var(--text-label); }
  .mob-slide.dark .mob-s-label { color: var(--yellow); }
  .mob-s-body { font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
  .mob-slide.lite .mob-s-body { color: var(--text-body); }
  .mob-slide.dark .mob-s-body { color: var(--text-secondary); }
  .mob-s-missing { display: flex; align-items: center; gap: 8px; font-size: 13px; padding-top: 14px; border-top: 1px solid var(--hairline-light); color: var(--text-label); }
  .mob-s-missing .x { color: #d9534f; font-weight: 700; }
  .mob-s-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
  .mob-s-list li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
  .mob-s-list li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 8px; height: 1.5px; background: var(--yellow); }

  /* dots + hint */
  .mob-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .mob-dot { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.22); cursor: pointer; transition: all .25s; }
  .mob-carousel.on-light .mob-dot { background: rgba(11,19,32,.18); }
  .mob-dot.on { background: var(--yellow); width: 22px; border-radius: 4px; }
  .mob-swipe-hint { text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-meta); margin-top: 12px; }

  /* ---- PATTERN C: ChatSpark workflow chips + big reveal ---- */
  .workflow-grid.mob-wf { gap: 0; margin-top: 24px; }
  .mob-wf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 22px; }
  .mob-wf-chip { text-align: left; cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent;
    background: var(--light-card); border: 1.5px solid var(--hairline-light); border-radius: 12px; padding: 14px;
    display: flex; flex-direction: column; gap: 8px; transition: all .2s; }
  .mob-wf-chip .ic { width: 26px; height: 26px; border-radius: 7px; background: rgba(245,197,24,.14); display: flex; align-items: center; justify-content: center; color: var(--yellow-deep); }
  .mob-wf-chip-title { font-size: 14px; font-weight: 700; color: var(--text-headline); line-height: 1.25; }
  .mob-wf-chip-hours { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .08em; color: var(--text-label); }
  .mob-wf-chip.active { border-color: var(--yellow); background: #fff; box-shadow: 0 8px 24px rgba(245,197,24,.18); }
  /* Title + description + diagram together inside ONE rounded dark box */
  .mob-wf-stage { display: block; background: var(--dark); border: 1px solid rgba(245,197,24,.22); border-radius: 16px; padding: 20px 16px; }
  .mob-wf-caption { display: block; margin-bottom: 14px; }
  .mob-wf-caption h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; letter-spacing: -.01em; }
  .mob-wf-caption p { font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
  .mob-wf-stage .workflow-preview { margin: 0; border: 0; border-radius: 10px; box-shadow: none; }
}

/* ============================================================
   Case Study page — mobile (≤800px)
   ============================================================ */
@media (max-width: 800px) {
  .cs-hero { padding-top: 48px; padding-bottom: 56px; }
  .cs-breadcrumb { font-size: 10px; margin-bottom: 24px; }
  .cs-breadcrumb [aria-hidden="true"] { margin: 0 6px; }

  /* Hero: text-only on the case study page, single column */
  .cs-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .cs-hero-text { align-items: center; }
  .cs-hero .hero-label { margin-bottom: 20px; }
  .cs-hero .hero-headline { font-size: clamp(32px, 9vw, 44px); text-align: center; }
  .cs-hero .hero-subhead { margin-bottom: 32px; font-size: 16px; text-align: center; }

  .cs-stat-big {
    padding: 18px 24px;
    margin-bottom: 28px;
    align-self: center;
  }
  .cs-stat-big-value { font-size: 24px; gap: 10px; }
  .cs-stat-big-arrow { font-size: 22px; }
  .cs-stat-big-label { font-size: 10px; letter-spacing: 0.18em; }

  .cs-hero-quote { max-width: 100%; padding-left: 16px; text-align: left; }
  .cs-hero-quote p { font-size: 16px; }

  /* Story */
  .cs-story-section { padding-top: 56px; padding-bottom: 56px; }
  .cs-story { padding: 0 4px; }
  .cs-section { margin-bottom: 48px; }
  .cs-h2 { font-size: 24px; }
  .cs-section p { font-size: 16px; line-height: 1.6; }

  /* Privacy aside */
  .cs-privacy-note { padding: 18px 20px; }
  .cs-privacy-note p:not(.cs-privacy-eyebrow) { font-size: 14px; }

  /* Outcome stat grid -> 2 cols on mobile */
  .cs-stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 24px 0 24px;
  }
  .cs-stat-card { padding: 16px 14px; }
  .cs-stat-card-num { font-size: 18px; }
  .cs-stat-card--key .cs-stat-card-num { font-size: 15px; }
  .cs-stat-card-label { font-size: 9px; letter-spacing: 0.12em; }

  /* Pipeline -> stacked vertical: input on top, stages middle, output bottom.
     Stages keep horizontal row for visual flow, scaled down. */
  .cs-pipeline {
    padding: 24px 16px 22px;
    margin: 12px auto 56px;
  }
  .cs-pipe-caption { margin-bottom: 22px; }
  .cs-pipe-caption-title { font-size: 15px; }
  .cs-pipe-wrap {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .cs-pipe-stages {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
  .cs-pipe-stages::before {
    top: 50%; left: 4%; right: 4%;
  }
  .cs-pipe-stage { padding: 10px 4px 8px; gap: 3px; }
  .cs-pipe-stage-num { font-size: 8.5px; }
  .cs-pipe-stage-name { font-size: 10.5px; }
  .cs-pipe-stage-desc { display: none; }
  .cs-frag { font-size: 10px; padding: 5px 8px; }
  .cs-pipe-rows li {
    grid-template-columns: auto 1fr;
    padding: 7px 9px;
  }
  .cs-row-time, .cs-row-loc { font-size: 10.5px; }
  .cs-row-res { font-size: 9px; }

  /* Pipeline section (real prototype iframe). Vertical animation
     layout kicks in inside the iframe at <560px on its own. */
  .cs-pipeline-section { padding-top: 16px; padding-bottom: 64px; }
  .cs-pipeline-wide { padding: 0 12px; }
  .cs-pipeline-sub { font-size: 14px; margin-bottom: 22px; }
  .cs-pipeline-frame { height: 500px; }
  .cs-story-section--continued { padding-top: 40px; padding-bottom: 64px; }

  /* Testimonial */
  .cs-testimonial-section { padding-top: 64px; padding-bottom: 56px; }
  .cs-testimonial-block .cs-h2 { margin-bottom: 32px; }
  .cs-testimonial-quote {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
  }
  .cs-byline-photo {
    max-width: 200px;
    margin: 0 auto;
  }
  .cs-testimonial-body { padding-left: 0; padding-top: 14px; }
  .cs-quote-mark {
    position: static;
    display: block;
    font-size: 56px;
    margin-bottom: -16px;
  }
  .cs-testimonial-body p { font-size: 16px; line-height: 1.65; }
  .cs-testimonial-lead { font-size: 18px !important; line-height: 1.55 !important; }

  /* CTA */
  .cs-cta-wrap { margin-top: 56px; }
  .cs-cta-heading { font-size: 22px; }
  .cs-cta-bridge { font-size: 16px; }
  .cs-final-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .cs-final-ctas .btn-primary,
  .cs-final-ctas .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   Find Your Leverage tool (/find-your-leverage/)
   4 screens: intro (dark) -> question (light) -> form (light) -> result (dark).
   All .fyl-* prefixed to avoid collisions with site primitives.
   Ported from the approved mockup, with tweaks where the
   tool renders dynamically rather than as static screens.
   ============================================================ */
.fyl-tool { max-width: 1080px; margin: 0 auto; }
.fyl-screen { /* sections already carry section/dark/light padding */ }

.fyl-label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 28px;
}

/* ============ INTRO SCREEN (dark) ============ */
.fyl-intro { max-width: 760px; margin: 0 auto; text-align: center; }
.fyl-h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 28px;
}
.fyl-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 38px;
}
.fyl-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-meta);
  padding: 10px 18px;
  border: 1px solid rgba(245, 197, 24, 0.22);
  border-radius: 999px;
  margin-bottom: 34px;
}
.fyl-meta-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}
.fyl-privacy {
  font-size: 13px;
  color: var(--text-meta);
  max-width: 480px;
  margin: 32px auto 0;
  font-style: italic;
}

/* ============ QUESTION SCREEN (light) ============ */
.fyl-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-label);
}
.fyl-progress-track {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(11, 19, 32, 0.10);
  position: relative;
  overflow: hidden;
}
.fyl-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--yellow);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(.4, 0, .2, 1);
}

.fyl-q-wrap { position: relative; }
.fyl-q-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: center;
  min-height: 460px;
}
.fyl-q-left { /* container for overline + title + sub */ }
.fyl-overline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow-deep);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fyl-overline .dash { color: var(--text-label); }
.fyl-q-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text-headline);
  margin-bottom: 18px;
}
.fyl-q-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-body);
  max-width: 380px;
}

.fyl-q-card {
  background: var(--light-card);
  border: 1px solid var(--hairline-light);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 6px 22px rgba(11, 19, 32, 0.05);
}
.fyl-opt {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1.5px solid var(--hairline-light);
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
  font-family: inherit;
  text-align: left;
  width: 100%;
}
.fyl-opt:last-child { margin-bottom: 0; }
.fyl-opt:hover { border-color: rgba(11, 19, 32, 0.22); }
.fyl-opt:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.fyl-opt-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--hairline-light);
  background: #fff;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
}
.fyl-opt-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-headline);
  font-weight: 500;
}
.fyl-opt.is-selected {
  border-color: var(--yellow);
  background: rgba(245, 197, 24, 0.06);
}
.fyl-opt.is-selected .fyl-opt-radio { border-color: var(--yellow); }
.fyl-opt.is-selected .fyl-opt-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--yellow);
}

.fyl-q-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--hairline-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-headline);
  transition: all .2s;
}
.fyl-q-nav:hover {
  border-color: var(--yellow);
  color: var(--yellow-deep);
  background: rgba(245, 197, 24, 0.06);
}
.fyl-q-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.fyl-q-nav.prev { left: -76px; }
.fyl-q-nav.next { right: -76px; }
.fyl-q-nav svg { width: 18px; height: 18px; }

.fyl-q-arrows-mob { display: none; }
.fyl-q-nav-mob {
  width: 48px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--hairline-light);
  border-radius: 50%;
  color: var(--text-headline);
  cursor: pointer;
  transition: all .2s;
}
.fyl-q-nav-mob:hover { border-color: var(--yellow); color: var(--yellow-deep); }
.fyl-q-nav-mob svg { width: 18px; height: 18px; }
.fyl-q-nav-mob:disabled { opacity: 0.35; cursor: not-allowed; }

/* ============ FORM SCREEN (light) ============ */
.fyl-form-screen { max-width: 680px; margin: 0 auto; }
.fyl-form-head { margin-bottom: 36px; }
.fyl-h2 {
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text-headline);
  margin-bottom: 14px;
}
.fyl-form-head p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-body);
  max-width: 540px;
}
.fyl-form-card {
  background: var(--light-card);
  border: 1px solid var(--hairline-light);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 6px 22px rgba(11, 19, 32, 0.05);
}
.fyl-form-card-head {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hairline-light);
}
.fyl-form-card-head h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-headline);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.fyl-form-card-head p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-body);
}
.fyl-form-field { margin-bottom: 18px; }
.fyl-form-field:last-of-type { margin-bottom: 0; }
.fyl-form-field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 8px;
}
.fyl-form-field label .opt {
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-meta);
  font-size: 11px;
  margin-left: 4px;
}
.fyl-form-input, .fyl-form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--hairline-light);
  border-radius: 10px;
  color: var(--text-headline);
  transition: all .2s;
}
.fyl-form-input:focus, .fyl-form-textarea:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(245, 197, 24, 0.04);
}
.fyl-form-textarea { min-height: 84px; resize: vertical; }
.fyl-form-error {
  font-size: 13px;
  color: #c0392b;
  margin: 14px 0 0;
  padding: 10px 14px;
  background: rgba(192, 57, 43, 0.05);
  border: 1px solid rgba(192, 57, 43, 0.18);
  border-radius: 8px;
}
.fyl-form-submit { width: 100%; margin-top: 24px; }
.fyl-form-foot {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-meta);
  text-align: center;
}
.fyl-form-foot a { color: var(--text-meta); text-decoration: underline; }
.fyl-form-back { text-align: center; margin-top: 24px; }
.fyl-back-link {
  background: none;
  border: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-meta);
  cursor: pointer;
  padding: 6px 10px;
  transition: color 0.2s;
}
.fyl-back-link:hover { color: var(--yellow-deep); }

/* ============ RESULT SCREEN (dark) ============ */
.fyl-result { max-width: 880px; margin: 0 auto; }
.fyl-result-top {
  text-align: center;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--hairline-dark);
  margin-bottom: 56px;
}
.fyl-result-overline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 22px;
}
.fyl-score {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 22px;
}
.fyl-score-num {
  font-size: clamp(80px, 13vw, 156px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--yellow);
}
.fyl-score-denom {
  font-size: 32px;
  font-weight: 700;
  color: rgba(245, 197, 24, 0.5);
}
.fyl-score-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-meta);
  margin-bottom: 30px;
}
.fyl-readiness-band {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid rgba(245, 197, 24, 0.35);
  background: rgba(245, 197, 24, 0.06);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 28px;
}
.fyl-readiness-band .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
}
.fyl-hours-line {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}
.fyl-hours-line strong { color: var(--text-primary); }

.fyl-opp {
  background: linear-gradient(165deg, #0F1A2A 0%, #142336 100%);
  border: 1px solid rgba(245, 197, 24, 0.22);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 18px;
  position: relative;
}
.fyl-opp .rank {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 500;
}
.fyl-opp h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 8px;
  padding-right: 110px;
}
.fyl-opp .opp-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}
.fyl-opp p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.fyl-readiness-detail {
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline-dark);
  border-radius: 16px;
  padding: 32px;
}
.fyl-readiness-detail .head {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}
.fyl-readiness-detail h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.fyl-readiness-detail p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.fyl-result-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline-dark);
  flex-wrap: wrap;
}
.fyl-result-confirmation {
  margin-top: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-meta);
  text-align: center;
}
.fyl-result-confirmation strong { color: var(--text-primary); }

/* ============ Mobile (≤800px) ============ */
@media (max-width: 800px) {
  .fyl-progress { margin-bottom: 36px; }

  .fyl-q-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
  }
  .fyl-q-title { font-size: 26px; }
  .fyl-q-sub { max-width: none; }
  .fyl-q-card { padding: 16px; }
  .fyl-opt { padding: 16px 16px; }

  /* Hide absolute-positioned desktop arrows on mobile, show inline mobile row */
  .fyl-q-nav.prev, .fyl-q-nav.next { display: none; }
  .fyl-q-arrows-mob {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
  }

  .fyl-opp { padding: 24px; }
  .fyl-opp h3 { font-size: 20px; padding-right: 60px; }
  .fyl-opp .rank { top: 20px; right: 20px; }

  .fyl-result-ctas { flex-direction: column; }
  .fyl-result-ctas .btn-primary,
  .fyl-result-ctas .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .fyl-h1 {
    font-size: clamp(28px, 7.5vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.015em;
  }
  .fyl-sub { font-size: 17px; }
  .fyl-form-head { margin-bottom: 28px; }
  .fyl-h2 { font-size: clamp(28px, 7.5vw, 44px); }
  .fyl-form-head p { font-size: 16px; }
  .fyl-form-card { padding: 24px; }
  .fyl-form-card-head h3 { font-size: 20px; }
}

/* ============================================================
   Pipeline iframe: extra-narrow viewport (≤560px).
   The embedded animation flips to vertical mode when its own
   container is <560px wide. The vertical layout is taller, so
   the iframe needs more height.
   ============================================================ */
@media (max-width: 560px) {
  .cs-pipeline-frame { height: 1180px; }
}

/* ============================================================
   Work page (/work/)
   Editorial portfolio: dark hero, then a stacked column of
   project cards on a light section. Each card is treated like
   a numbered portfolio plate: oversized JetBrains Mono case
   number, asymmetric two-column with the workflow diagram on
   the left and editorial hierarchy on the right.
   ============================================================ */

/* Hero: restrained, headline-driven */
.work-hero { padding-top: 96px; padding-bottom: 88px; text-align: center; }
.work-hero .hero-label { margin-bottom: 28px; }
.work-hero .hero-headline { margin-bottom: 18px; }
.work-hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* Card section */
.work-section { padding-top: 80px; padding-bottom: 96px; }
.work-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Card shell. Dark navy on cream so it lifts off the section. */
.work-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  padding: 44px 48px;
  border-radius: 18px;
  background: linear-gradient(180deg, #0F1A2A 0%, #142336 100%);
  border: 1px solid rgba(245, 197, 24, 0.20);
  text-decoration: none;
  color: var(--text-primary);
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.32s ease,
              box-shadow 0.32s ease;
}
.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--yellow);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(245, 197, 24, 0.45),
              0 0 80px rgba(245, 197, 24, 0.10);
  outline: none;
}
.work-card--reverse {
  /* For alternating layout when project #2 ships. */
  grid-template-columns: 1fr 1.05fr;
}
.work-card--reverse .work-card-media { order: 2; }
.work-card--reverse .work-card-meta  { order: 1; }

/* Media column: the static workflow diagram, framed in a subtle
   inner panel so it reads as "a system". On hover the wires glow
   a touch brighter and the whole svg edges up very gently. */
.work-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(245, 197, 24, 0.025);
  border: 1px solid rgba(245, 197, 24, 0.10);
  border-radius: 14px;
  min-height: 220px;
  transition: background 0.32s ease, border-color 0.32s ease;
}
.work-card:hover .work-card-media {
  background: rgba(245, 197, 24, 0.05);
  border-color: rgba(245, 197, 24, 0.22);
}
.work-flow {
  width: 100%;
  height: auto;
  max-width: 460px;
  display: block;
}
.work-card:hover .wf-card {
  stroke-opacity: 0.85;
}
.wf-card,
.wf-wire { transition: stroke-opacity 0.32s ease, stroke 0.32s ease; }

/* Meta column: typographic hierarchy.
   Order on screen:
     [01]      <- oversized display number
     Case study
     NightGuides     <- H2
     Amsterdam · 2026 · ...
     "From 4 days to 5 minutes per report."
     Read the full case study →
*/
.work-card-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: center;
}
.work-card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--yellow);
  margin-bottom: 14px;
  transition: color 0.32s ease, transform 0.32s ease;
}
.work-card:hover .work-card-num { color: var(--text-primary); }
.work-card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-meta);
  margin-bottom: 4px;
}
.work-card-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.work-card-dateline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-meta);
  margin: 0 0 18px;
}
.work-card-hook {
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.45;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0 0 26px;
  max-width: 440px;
}
.work-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yellow);
  padding-bottom: 6px;
  border-bottom: 1.5px solid rgba(245, 197, 24, 0.45);
  align-self: flex-start;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.work-card-arrow {
  display: inline-block;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.work-card:hover .work-card-cta {
  color: var(--text-primary);
  border-bottom-color: var(--yellow);
}
.work-card:hover .work-card-arrow {
  transform: translateX(6px);
}

/* Mobile (≤800px): single column, media on top, meta below.
   Display number stays expressive but scales down. */
@media (max-width: 800px) {
  .work-hero { padding-top: 64px; padding-bottom: 56px; }
  .work-hero .hero-headline { font-size: clamp(34px, 9vw, 48px); }
  .work-hero-sub { font-size: 16px; padding: 0 8px; }

  .work-section { padding-top: 48px; padding-bottom: 64px; }
  .work-grid { gap: 22px; padding: 0 4px; }

  .work-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 24px 32px;
  }
  .work-card--reverse {
    grid-template-columns: 1fr; /* override desktop swap */
  }
  .work-card--reverse .work-card-media { order: 0; }
  .work-card--reverse .work-card-meta  { order: 0; }
  .work-card-media { min-height: 170px; padding: 16px; }

  .work-card-num { font-size: 56px; margin-bottom: 10px; }
  .work-card-title { font-size: clamp(28px, 8vw, 36px); }
  .work-card-hook { font-size: 16px; }
  .work-card-cta { font-size: 13px; }
}

/* ============================================================
   INSIGHTS BLOG
   Listing page  -> dark navy gallery   (.post-* prefix)
   Article pages -> light reading room  (.article-* prefix)
   Shared owned cover style: blueprint / technical-line motif
   (.cover-art), one 16:9 slot used by every article + card.
   ============================================================ */

/* ---- Shared blueprint cover placeholder + image slot ---- */
.cover-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
}
.cover-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0C1626;
  color: #9BACE0;                 /* line + node colour on dark */
  overflow: hidden;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.30);
}
.cover-art::before {               /* fine blueprint grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, currentColor 0, currentColor 0.6px, transparent 0.6px, transparent 30px),
    repeating-linear-gradient(90deg, currentColor 0, currentColor 0.6px, transparent 0.6px, transparent 30px);
  opacity: 0.08;
}
.cover-art-svg {
  position: relative;
  width: 60%;
  max-width: 340px;
  height: auto;
  display: block;
}
.cover-art--light {                /* same motif inverted for the light article surface */
  background: #ECEAE0;
  color: #0B1320;
  box-shadow: inset 0 0 0 1px rgba(11, 19, 32, 0.04);
}
/* When real artwork ships, drop an <img class="cover-img"> into the frame. */
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   LISTING PAGE  (dark)
   ============================================================ */
.insights-inner { max-width: 1140px; margin: 0 auto; }
.insights-section.section.light { background: var(--reading-bg); padding: 72px 60px 140px; }

/* ---- Cover / landing section: page identity first, cards second ---- */
.insights-hero {
  display: grid;
  grid-template-columns: 1fr 400px;
  align-items: end;
  gap: 32px 56px;
  margin-bottom: 40px;
}
.insights-hero .label { margin-bottom: 20px; }
.insights-hero .headline { margin-bottom: 0; }
.insights-hero-standfirst {
  font-size: 16.5px;
  line-height: 1.65;
  color: #4A5363;
  margin: 0 0 10px;
}

/* Wide page-cover slot (~21:9). Holds the .cover-art node-motif placeholder
   until real cover art exists; an <img class="cover-img"> drops in later. */
.insights-cover {
  position: relative;
  aspect-ratio: 21 / 9;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 56px;
  box-shadow: 0 18px 50px rgba(11, 19, 32, 0.12);
}
.insights-cover .cover-art-svg { width: 44%; max-width: 540px; }

/* ---- Featured / latest post: white card, cover inset left ---- */
.post-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--hairline-light);
  border-radius: 18px;
  padding: 16px;
  text-decoration: none;
  color: var(--text-headline);
  box-shadow: 0 10px 30px rgba(11, 19, 32, 0.07);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease;
}
.post-feature:hover,
.post-feature:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(11, 19, 32, 0.14);
  outline: none;
}
.post-feature-cover { border-radius: 12px; }
.post-feature-meta {
  padding: 18px 28px 18px 4px;
  display: flex;
  flex-direction: column;
}

/* Tags — pale tint chips on white. Never bright #1500FE, never yellow. */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.post-tag {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.post-tag--type  { background: rgba(21, 0, 254, 0.06); color: #231CB0; border-color: rgba(21, 0, 254, 0.16); }
.post-tag--topic { background: rgba(11, 19, 32, 0.05); color: #4A5363; border-color: rgba(11, 19, 32, 0.10); }

.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 14px;
}
.post-meta-sep { color: rgba(11, 19, 32, 0.30); }

.post-feature-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-headline);
  margin: 0 0 14px;
}
.post-feature-standfirst {
  font-size: 16px;
  line-height: 1.6;
  color: #4A5363;
  margin: 0 0 22px;
  max-width: 460px;
}

.post-readmore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-headline);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--yellow);
  align-self: flex-start;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.post-arrow { display: inline-block; transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
.post-feature:hover .post-readmore { border-bottom-color: var(--yellow-deep); }
.post-feature:hover .post-arrow { transform: translateX(6px); }

/* ---- Grid of posts: white cards per the golden sample ---- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hairline-light);
  border-radius: 18px;
  padding: 16px;
  text-decoration: none;
  color: var(--text-headline);
  box-shadow: 0 10px 30px rgba(11, 19, 32, 0.07);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease;
}
.post-card:hover,
.post-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(11, 19, 32, 0.13);
  outline: none;
}
.post-card-cover { border-radius: 12px; }
.post-card-body { padding: 18px 8px 8px; display: flex; flex-direction: column; flex: 1; }
.post-card-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-label);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.post-card-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-headline);
  margin: 0 0 8px;
}
.post-card-excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: #4A5363;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-body .post-tags { margin: auto 0 0; }   /* tags anchor the card footer */

/* ---- Listing responsive ---- */
@media (max-width: 960px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .insights-hero { grid-template-columns: 1fr; align-items: start; }
  .insights-hero-standfirst { max-width: 560px; margin: 0; }
}
@media (max-width: 800px) {
  .insights-section.section.light { padding: 56px 24px 88px; }
  .insights-cover { aspect-ratio: 16 / 9; border-radius: 14px; margin-bottom: 40px; }
  .post-feature { grid-template-columns: 1fr; gap: 0; }
  .post-feature-meta { padding: 18px 8px 8px; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ARTICLE READING ROOM  (light)
   ============================================================ */
.article-page { background: var(--reading-bg); }
.article-wrap { max-width: 1080px; margin: 0 auto; padding: 56px 24px 96px; }

/* Header */
.article-header { max-width: 720px; margin: 0 auto; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-label);
  text-decoration: none;
  margin-bottom: 36px;
  transition: color 0.2s ease;
}
.article-back:hover { color: var(--blue); }
.article-back .post-arrow { transition: transform 0.25s ease; }
.article-back:hover .post-arrow { transform: translateX(-4px); }

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 22px;
}
.article-meta-sep { color: rgba(11, 19, 32, 0.25); }
.article-tag {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.article-tag--type  { background: rgba(21, 0, 254, 0.06); color: #231CB0; border-color: rgba(21, 0, 254, 0.16); }
.article-tag--topic { background: rgba(11, 19, 32, 0.05); color: #4A5363; border-color: rgba(11, 19, 32, 0.10); }

.article-title {
  font-family: 'Satoshi', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 5.4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-headline);
  margin: 6px 0 24px;
}
.article-lead {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: clamp(20px, 2.3vw, 23px);
  line-height: 1.5;
  color: #3A4350;
  margin-bottom: 34px;
}
.article-byline { display: flex; align-items: center; gap: 14px; }
.article-byline img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.article-byline-name { font-family: 'Satoshi', sans-serif; font-weight: 600; font-size: 15px; color: var(--text-headline); line-height: 1.2; }
.article-byline-role { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em; color: var(--text-label); margin-top: 3px; }

/* Cover (full wrap width, breaks out wider than the text column) */
.article-cover { max-width: 1080px; margin: 48px auto 0; }
.article-cover .cover-frame { border: 1px solid var(--hairline-light); box-shadow: 0 18px 50px rgba(11, 19, 32, 0.10); }

/* Reading column */
.article-body { max-width: 680px; margin: 38px auto 0; }
.article-body > :first-child { margin-top: 0; }
.article-body p {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 1.5em;
}
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { font-weight: 600; color: var(--text-headline); }
.article-body em { font-style: italic; }
.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}
.article-body a:hover { color: #1000B0; }
.article-body h2 {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text-headline);
  margin: 1.9em 0 0.55em;
}
.article-body h3 {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-headline);
  margin: 1.7em 0 0.4em;
}

/* Inline figure (before/after still, screenshots) */
.article-figure { max-width: 760px; margin: 44px auto 0; }
.article-figure--full { max-width: 1080px; }
.article-figure .cover-frame { border: 1px solid var(--hairline-light); box-shadow: 0 14px 40px rgba(11, 19, 32, 0.08); }
.article-figure figcaption,
.article-embed figcaption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--text-label);
  text-align: center;
  margin-top: 14px;
}

/* Embedded animation / diagram — reuses the case-study pipeline frame */
.article-embed { max-width: 1140px; margin: 56px auto 0; padding: 0 24px; }

/* Stat band */
.article-stats {
  max-width: 760px;
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}
.article-stat {
  background: #fff;
  border: 1px solid var(--hairline-light);
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-stat--key { border-color: var(--yellow); background: rgba(245, 197, 24, 0.05); }
.article-stat-num {
  font-family: 'Satoshi', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--text-headline);
  line-height: 1.12;
}
.article-stat--key .article-stat-num { color: var(--yellow-deep); font-size: 16px; }
.article-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-body);
  line-height: 1.45;
}

/* Pull-quote / testimonial */
.article-quote {
  max-width: 760px;
  margin: 48px auto 0;
  background: #fff;
  border: 1px solid var(--hairline-light);
  border-radius: 16px;
  padding: 36px 44px 32px;
  box-shadow: 0 14px 40px rgba(11, 19, 32, 0.06);
}
.article-quote-mark {
  display: block;
  font-family: 'Satoshi', sans-serif;
  font-weight: 900;
  font-size: 56px;
  line-height: 0.5;
  color: rgba(245, 197, 24, 0.9);   /* surgical yellow */
  margin-bottom: 14px;
}
.article-quote-body p {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 19.5px;
  line-height: 1.62;
  color: var(--text-body);
  margin-bottom: 1em;
}
.article-quote-cite {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-light);
}
.article-quote-cite img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.article-quote-name { font-family: 'Satoshi', sans-serif; font-weight: 600; font-size: 15px; color: var(--text-headline); }
.article-quote-role { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em; color: var(--text-label); margin-top: 3px; }

/* Callout / aside — skippable depth */
.article-callout {
  max-width: 680px;
  margin: 40px auto 0;
  padding: 26px 30px;
  background: rgba(21, 0, 254, 0.025);
  border: 1px solid var(--hairline-light);
  border-left: 3px solid rgba(21, 0, 254, 0.42);
  border-radius: 12px;
}
.article-callout-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #231CB0;
  font-weight: 500;
  margin-bottom: 12px;
}
.article-callout h3 {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  color: var(--text-headline);
  margin-bottom: 10px;
}
.article-callout p {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 0.8em;
}
.article-callout p:last-child { margin-bottom: 0; }

/* End-of-article CTA */
.article-cta {
  max-width: 720px;
  margin: 64px auto 0;
  padding: 44px;
  background: #fff;
  border: 1px solid var(--hairline-light);
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 14px 40px rgba(11, 19, 32, 0.06);
}
.article-cta-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow-deep);
  font-weight: 500;
  margin-bottom: 16px;
}
.article-cta h2 {
  font-family: 'Satoshi', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-headline);
  margin-bottom: 12px;
}
.article-cta p {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 520px;
  margin: 0 auto 28px;
}
.article-cta-actions { display: flex; flex-wrap: wrap; gap: 18px 24px; justify-content: center; align-items: center; }
.article-cta-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-headline);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1.5px solid rgba(11, 19, 32, 0.25);
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.article-cta-link:hover { color: var(--blue); border-color: var(--blue); }

/* ---- Article responsive ---- */
@media (max-width: 800px) {
  .article-wrap { padding: 40px 20px 72px; }
  .article-cover { margin-top: 36px; }
  .article-quote { padding: 28px 24px 26px; }
  .article-callout { padding: 22px 22px; }
  .article-cta { padding: 32px 24px; }
  .article-embed { padding: 0 4px; }
}
@media (max-width: 600px) {
  .article-stats { grid-template-columns: 1fr 1fr; }
}

/* Real product screenshots — kept in their native light n8n look, framed as
   windows on the reading surface (not navy). Used alongside the dark blueprint
   diagrams: light = the actual product, dark = the concept. */
.article-shot { max-width: 820px; margin: 44px auto 0; }
.article-shot--wide { max-width: 1040px; }
.article-shot--narrow { max-width: 600px; }
/* Bare: the screenshot's own surround already matches the reading surface, so
   it blends into the page with no added frame (used for the upload form). */
.article-shot--bare img { border: none; box-shadow: none; border-radius: 0; background: none; }
.article-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--hairline-light);
  box-shadow: 0 14px 40px rgba(11, 19, 32, 0.10);
  background: #fff;
}
.article-shot figcaption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--text-label);
  text-align: center;
  margin-top: 14px;
}
