/* ─────────────────────────────────────────────
   Statistically Significant — Main Stylesheet
   ───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500&display=swap');

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

/* ── Tokens ───────────────────────────────────── */
:root {
  --bg:           #F8F6F1;
  --text:         #1A1A18;
  --accent:       #2E4D3F;
  --accent-hover: #243D31;
  --muted:        #767672;
  --border:       #E2DDD6;
  --white:        #FFFFFF;
}

/* ── Base ─────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ───────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.12;
  font-weight: 700;
}

/* ── Navigation ───────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links .nav-cta a {
  color: var(--accent);
  font-weight: 500;
}

.nav-links .nav-cta a:hover {
  color: var(--accent-hover);
}

.nav-links a[href="diagnostic.html"] {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a[href="diagnostic.html"]::after {
  content: "3 min";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.45rem;
  border: 1px solid rgba(46, 77, 63, 0.2);
  background: rgba(46, 77, 63, 0.08);
  color: var(--accent);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.nav-links a[href="diagnostic.html"]:hover,
.nav-links a[href="diagnostic.html"].active {
  color: var(--accent-hover);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 4px;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  position: relative;
  z-index: 230;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Layout Utility ───────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
  display: block;
}

.js-enhanced .reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js-enhanced .reveal-on-scroll[data-reveal="left"] {
  transform: translate3d(-28px, 18px, 0);
}

.js-enhanced .reveal-on-scroll[data-reveal="right"] {
  transform: translate3d(28px, 18px, 0);
}

.js-enhanced .reveal-on-scroll[data-reveal="soft"] {
  transform: translate3d(0, 18px, 0) scale(0.985);
}

.js-enhanced .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.9375rem 2.25rem;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover { background: var(--accent); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
  padding: calc(0.9375rem - 1.5px) calc(2.25rem - 1.5px);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-accent {
  background: var(--accent);
}
.btn-accent:hover { background: var(--accent-hover); }

/* ── Divider ──────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); }

/* ═══════════════════════════════════════════════
   HOME PAGE
   ═══════════════════════════════════════════════ */

/* Hero */
.hero {
  position: relative;
  padding: 136px 0 112px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(46, 77, 63, 0.12), transparent 0 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(248, 246, 241, 0));
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.78fr);
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 640px;
}

.hero-visual {
  display: block;
}

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  display: block;
}

.hero h1 {
  font-size: clamp(3.8rem, 7.8vw, 7rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  max-width: 16ch;
}

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 2rem;
  line-height: 1.8;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(46, 77, 63, 0.14);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.8125rem;
  color: var(--muted);
}

.hero-summary-card,
.hero-side-note {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
}

.hero-summary-card {
  padding: 2.1rem;
  box-shadow: 0 18px 44px rgba(26, 26, 24, 0.05);
}

.hero-summary-label,
.hero-side-note-label {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-summary-label {
  color: var(--accent);
}

.hero-summary-card h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 11ch;
}

.hero-summary-list {
  list-style: none;
  display: grid;
  gap: 0.95rem;
}

.hero-summary-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.75;
  font-weight: 300;
}

.hero-summary-list li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-side-note {
  margin-top: 1rem;
  padding: 1.4rem 1.5rem;
}

.hero-side-note-label {
  color: var(--muted);
}

.hero-side-note p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 0.75rem;
}

/* What I Do */
.what-i-do {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.service-card {
  padding: 2.5rem 2rem 2.5rem 0;
  border-top: 2px solid var(--text);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.service-card:not(:last-child) {
  padding-right: 2.5rem;
}

.service-icon {
  display: block;
  margin-bottom: 1.5rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.875rem;
  color: var(--border);
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.875rem;
  line-height: 1.25;
}

.service-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  font-weight: 300;
}

/* Why Work With Me */
.why-work {
  background: var(--text);
  color: var(--bg);
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.why-work .section-label {
  color: rgba(248, 246, 241, 0.4);
}

.why-work h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--bg);
  max-width: 20ch;
  margin-bottom: 3.5rem;
  letter-spacing: -0.02em;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(248, 246, 241, 0.08);
}

.why-item {
  padding: 2.5rem 2.5rem 2.5rem 0;
  background: var(--text);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease;
}

.why-item:nth-child(2),
.why-item:nth-child(4) {
  padding-left: 2.5rem;
  padding-right: 0;
}

.why-icon {
  display: block;
  margin-bottom: 1rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
  }

  .service-card:hover .service-icon,
  .why-item:hover .why-icon {
    transform: translateY(-4px);
  }

  .why-item:hover {
    transform: translateY(-6px);
    background: #20201d;
  }
}

.why-item h4 {
  font-size: 1.0625rem;
  color: var(--bg);
  margin-bottom: 0.625rem;
  font-weight: 600;
}

.why-item p {
  color: rgba(248, 246, 241, 0.55);
  font-size: 0.9375rem;
  line-height: 1.7;
  font-weight: 300;
}

/* Insights */
.insights-home,
.insights-library {
  padding: 88px 0;
  border-bottom: 1px solid var(--border);
}

.insights-header {
  background:
    radial-gradient(circle at top right, rgba(46, 77, 63, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(248, 246, 241, 0));
}

.insights-home-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.insights-home-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.insights-library-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 3rem;
}

.insights-library-intro h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.insights-library-intro p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  font-weight: 300;
  max-width: 44ch;
}

.insights-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.insights-filter-chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  padding: 0.65rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.insights-filter-chip:hover,
.insights-filter-chip:focus-visible {
  border-color: rgba(46, 77, 63, 0.4);
  color: var(--text);
  outline: none;
}

.insights-filter-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.insights-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.insight-index-card {
  display: block;
  color: inherit;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.insight-index-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 77, 63, 0.35);
  box-shadow: 0 16px 36px rgba(26, 26, 24, 0.06);
}

.insight-index-card a {
  color: inherit;
  text-decoration: none;
}

.insight-index-card a:hover h3,
.insight-index-card h3 a:hover {
  color: var(--accent);
}

.insight-index-card h3 {
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 0.875rem;
  max-width: 16ch;
}

.insight-index-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.insight-index-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.insight-index-tag,
.insight-reading-time {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-index-tag {
  background: rgba(46, 77, 63, 0.06);
  color: var(--accent);
}

.insight-reading-time {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.insight-index-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1rem;
}

.insight-index-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

.insight-request-hub {
  margin-bottom: 2.5rem;
}

.insights-empty-state {
  margin-top: -1rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.insight-feature-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2.4rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.insight-feature-tag,
.insight-request-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.insight-feature-tag {
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.insight-feature-copy h3,
.insight-library-copy h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin-bottom: 1.25rem;
}

.insight-intro-lead,
.insight-feature-copy p:first-of-type {
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.insight-feature-copy p,
.insight-library-copy p,
.insight-request-panel p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  font-weight: 300;
}

.insight-feature-copy p + p,
.insight-library-copy p + p {
  margin-top: 1rem;
}

.insight-request-panel {
  align-self: start;
  padding: 2rem;
  background: rgba(248, 246, 241, 0.72);
  border: 1px solid var(--border);
}

.insight-request-panel-shared {
  position: sticky;
  top: 92px;
}

.insight-home-panel .btn {
  margin-top: 0.5rem;
}

.insight-request-label {
  color: var(--muted);
  margin-bottom: 1rem;
}

.insight-request-panel h3,
.insight-request-panel h4 {
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.insight-request-panel .contact-form {
  margin-top: 1.5rem;
}

.insight-selected-meta {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.insight-selected-meta strong {
  color: var(--text);
  font-weight: 500;
}

.insight-select-btn.is-selected {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.insight-articles {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.insight-article {
  padding: 3rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(248, 246, 241, 0.98)),
    radial-gradient(circle at top left, rgba(46, 77, 63, 0.05), transparent 34%);
  box-shadow: 0 18px 48px rgba(26, 26, 24, 0.05);
}

.insight-article-header {
  margin-bottom: 1.5rem;
}

.insight-article-header h3 {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.insight-article-body p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  font-weight: 300;
}

.insight-article-body p + p {
  margin-top: 1rem;
}

.insight-article-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.insight-article-actions p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1rem;
}

.insight-request-panel-inline {
  margin-bottom: 1.5rem;
}

.insight-request-panel-inline .contact-form {
  max-width: 680px;
}

.insight-article-secondary-actions {
  margin-top: 0.5rem;
}

.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-link:hover {
  color: var(--accent-hover);
}

.insights-page {
  padding-bottom: 180px;
}

.insights-signup-banner {
  position: fixed;
  left: 1.5rem;
  right: 1.5rem;
  bottom: calc(1rem + var(--cookie-banner-offset, 0px));
  z-index: 350;
}

.insights-signup-banner-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(26, 26, 24, 0.08);
  background:
    linear-gradient(135deg, rgba(46, 77, 63, 0.96), rgba(36, 61, 49, 0.96)),
    var(--accent);
  color: var(--bg);
  box-shadow: 0 22px 48px rgba(26, 26, 24, 0.22);
}

.insights-signup-dismiss {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(248, 246, 241, 0.28);
  background: rgba(248, 246, 241, 0.08);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.insights-signup-dismiss:hover,
.insights-signup-dismiss:focus-visible {
  background: rgba(248, 246, 241, 0.16);
  border-color: rgba(248, 246, 241, 0.48);
  transform: translateY(-1px);
}

.insights-signup-dismiss span {
  font-size: 1.35rem;
  line-height: 1;
}

.insights-signup-copy .section-label {
  color: rgba(248, 246, 241, 0.72);
  margin-bottom: 0.75rem;
}

.insights-signup-copy h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.insights-signup-copy p {
  color: rgba(248, 246, 241, 0.82);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
  max-width: 48ch;
}

.insights-signup-form-wrap {
  width: 100%;
}

.insights-signup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.insights-signup-form input {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(248, 246, 241, 0.08);
  color: var(--bg);
  padding: 0.95rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
}

.insights-signup-form input::placeholder {
  color: rgba(248, 246, 241, 0.58);
}

.insights-signup-form input:focus {
  border-color: rgba(248, 246, 241, 0.72);
}

.insights-signup-form .btn {
  background: var(--bg);
  color: var(--accent);
}

.insights-signup-form .btn:hover {
  background: rgba(248, 246, 241, 0.88);
}

.insights-signup-success,
.insights-signup-error {
  margin-bottom: 0;
  padding: 1rem 1.25rem;
}

.insights-signup-success {
  background: rgba(248, 246, 241, 0.08);
  border-color: rgba(248, 246, 241, 0.35);
}

.insights-signup-success .form-success-title,
.insights-signup-success .form-success-body {
  color: var(--bg);
}

.insights-signup-success .form-success-title {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.insights-signup-success .form-success-body {
  opacity: 0.82;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* CTA Banner */
.cta-banner {
  padding: 110px 0;
  text-align: center;
}

.diagnostic-prompt {
  padding: 40px 0;
}

.diagnostic-prompt-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 3rem;
  background:
    linear-gradient(135deg, rgba(46, 77, 63, 0.08), rgba(46, 77, 63, 0.02)),
    var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  box-shadow: 0 18px 44px rgba(26, 26, 24, 0.06);
}

.diagnostic-prompt-copy {
  max-width: 58ch;
}

.diagnostic-prompt-copy .section-label {
  margin-bottom: 1rem;
  color: var(--accent);
}

.diagnostic-prompt-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.875rem;
}

.diagnostic-prompt-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
}

.diagnostic-prompt-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
}

.diagnostic-prompt-note {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.cta-banner h2 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner p {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 auto 2.75rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 300;
}

/* ═══════════════════════════════════════════════
   PAGE HEADER (shared)
   ═══════════════════════════════════════════════ */
.page-header {
  padding: 90px 0 60px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

.page-header .lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.75;
  font-weight: 300;
}

/* ═══════════════════════════════════════════════
   SERVICES PAGE
   ═══════════════════════════════════════════════ */
.services-list {
  padding: 60px 0;
}

.service-full {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 5rem;
  align-items: start;
}

.service-full:last-child {
  border-bottom: none;
}

.service-meta {
  padding-top: 0.25rem;
}

.service-full-num {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

.service-full-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.service-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.service-content p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.8;
  font-weight: 300;
  max-width: 62ch;
}

.services-next-steps {
  padding: 0 0 72px;
}

.services-next-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.services-next-step-card {
  display: block;
  padding: 1.75rem 1.75rem 1.9rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  color: var(--text);
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.services-next-step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 77, 63, 0.35);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 36px rgba(26, 26, 24, 0.06);
}

.services-next-step-label {
  display: inline-block;
  margin-bottom: 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.services-next-step-card h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════ */
.about-body-section {
  border-bottom: 1px solid var(--border);
}

.about-body-inner {
  padding: 80px 0;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 7rem;
  align-items: start;
}

.about-text p {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--muted);
  font-weight: 300;
}

.about-text p + p {
  margin-top: 1.5rem;
}

.about-text .intro-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-style: italic;
  color: var(--text);
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 2rem;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
}

.about-sidebar {}

.about-sidebar .section-label {
  margin-bottom: 1.5rem;
}

.differentiators-copy p {
  font-size: 0.9875rem;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
}

.differentiators-copy p + p {
  margin-top: 1.25rem;
}

/* Approach */
.about-approach {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.about-approach h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1.75rem;
  letter-spacing: -0.015em;
  max-width: 22ch;
}

.about-approach p {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.8;
  font-weight: 300;
}

.about-approach p + p {
  margin-top: 1.25rem;
}

/* ═══════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════ */
.contact-body {
  padding: 80px 0;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 8rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
}

.contact-info p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
  transition: color 0.2s;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-link:hover {
  color: var(--accent);
}

.contact-link-icon {
  width: 36px;
  height: 36px;
  background: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-link-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--bg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.9375rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--border);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--text);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-error {
  padding: 1.25rem 1.5rem;
  border: 1px solid #8B3A2A;
  background: rgba(139, 58, 42, 0.04);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  color: #8B3A2A;
  line-height: 1.6;
}

.form-error a {
  color: inherit;
}

.form-success {
  padding: 2.5rem;
  border: 1px solid var(--accent);
  background: rgba(46, 77, 63, 0.04);
}

.form-success-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
}

.form-success-body {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}

/* ── Consent checkboxes (shared: contact form + diagnostic capture) ──────── */
.consent-group {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.consent-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.65;
  font-weight: 300;
}

.consent-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.consent-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 0.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}

.consent-label:has(input:checked) .consent-box {
  background: var(--accent);
  border-color: var(--accent);
}

.consent-label:has(input:checked) .consent-box::after {
  content: '';
  display: block;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg) translateY(-1px);
}

.consent-label a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-label a:hover {
  color: var(--accent-hover);
}

/* ── Cookie / privacy notice banner ─────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text);
  color: rgba(248, 246, 241, 0.75);
  padding: 1.25rem 2.5rem;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.65;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.dismissed {
  transform: translateY(100%);
}

.cookie-banner a {
  color: rgba(248, 246, 241, 0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner a:hover {
  color: var(--bg);
}

.cookie-banner-accept {
  background: none;
  border: 1px solid rgba(248, 246, 241, 0.3);
  color: rgba(248, 246, 241, 0.85);
  padding: 0.5rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}

.cookie-banner-accept:hover {
  border-color: rgba(248, 246, 241, 0.7);
  color: var(--bg);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1rem;
  }
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-meta p,
.footer-meta a {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-meta a:hover {
  color: var(--text);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1180px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
    gap: 3rem;
  }

  .hero-visual {
    padding-left: 1rem;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    padding-left: 0;
    max-width: 560px;
    margin-top: 0.75rem;
  }

  .about-body-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-body {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .service-full {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .insights-library-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .insight-request-panel-shared {
    position: static;
  }

  .service-full-num {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  .nav-inner { padding: 0 1.5rem; }

  nav {
    overflow: visible;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    align-items: flex-start;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 0.28s ease,
      transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.28s ease;
    box-shadow: 0 18px 38px rgba(26, 26, 24, 0.08);
    z-index: 220;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 0.9375rem;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: inline-block;
    width: 100%;
  }

  .nav-links a[href="diagnostic.html"] {
    justify-content: space-between;
  }

  .nav-toggle { display: flex; }

  .hero { padding: 72px 0 60px; }

  .hero-visual {
    display: block;
  }

  .what-i-do { padding: 60px 0; }

  .insights-home,
  .insights-library { padding: 60px 0; }

  .insights-page {
    padding-bottom: 220px;
  }

  .insights-signup-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + var(--cookie-banner-offset, 0px));
  }

  .insights-signup-banner-inner {
    grid-template-columns: 1fr;
    padding: 3.5rem 1.25rem 1.25rem;
    gap: 1.25rem;
  }

  .insights-signup-form {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-next-steps-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 2rem 0;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-item,
  .why-item:nth-child(2),
  .why-item:nth-child(4) {
    padding: 2rem 0;
  }

  .cta-banner { padding: 72px 0; }

  .diagnostic-prompt-card {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 1.5rem;
  }

  .insights-home-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2.5rem;
  }

  .hero-actions,
  .hero-highlights {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-highlights span {
    width: 100%;
    justify-content: center;
  }

  .hero-summary-card,
  .hero-side-note {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .insight-feature-card { padding: 1.5rem; gap: 2rem; }

  .insight-article {
    padding: 1.5rem;
  }

  .insight-request-panel {
    padding: 1.5rem;
  }

  .insight-index-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .insight-index-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header { padding: 60px 0 40px; }

  .services-list { padding: 40px 0; }

  .service-full { padding: 2.5rem 0; }

  .about-approach { padding: 60px 0; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ── Service Packages ─────────────────────────── */
.services-packages {
  padding: 80px 0;
}

.package-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.package-card:last-child {
  margin-bottom: 0;
}

.package-featured {
  border-color: var(--accent);
  border-width: 2px;
  position: relative;
}

.package-featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  right: 2rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
}

.package-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.package-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.6;
}

.package-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
}

.package-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.package-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.package-includes {
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
}

.package-includes li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.package-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.package-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.package-duration,
.package-investment {
  font-size: 0.875rem;
  color: var(--muted);
}

.package-duration::before {
  content: "Duration: ";
  color: var(--text);
  font-weight: 500;
}

.package-investment::before {
  content: "Investment: ";
  color: var(--text);
  font-weight: 500;
}

/* ── Capabilities Grid ─────────────────────────── */
.services-capabilities {
  padding: 80px 0;
  background: var(--bg);
}

.section-lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.capability-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.capability-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.capability-item p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Who It's For ─────────────────────────────── */
.who-its-for {
  padding: 80px 0;
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.who-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.who-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.who-item p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .who-grid {
    grid-template-columns: 1fr;
  }

  .package-card {
    padding: 1.5rem;
  }

  .package-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle span,
  .nav-links {
    transition: none;
  }
}

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