/* ============================================================
   Louie — Design Tokens
   ============================================================ */
:root {
  /* Color */
  --ink:        #11202F;
  --ink-soft:   #1C3040;
  --paper:      #F7F4ED;
  --paper-dim:  #EFEAE0;
  --white:      #FFFFFF;
  --signal:     #D98E2B;
  --signal-soft:#F2B25C;
  --signal-dim: rgba(217, 142, 43, 0.12);
  --cyan:       #2BC4DE;
  --cyan-soft:  #8FE6F2;
  --cyan-dim:   rgba(43, 196, 222, 0.12);
  --slate:      #5C6B73;
  --slate-light:#9AA8AE;
  --line:       #E6E1D6;
  --line-dark:  rgba(247, 244, 237, 0.14);

  /* Type */
  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Lato', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  /* Layout */
  --nav-h: 76px;
  --max: 1240px;
  --pad: clamp(1.5rem, 5vw, 3rem);

  /* Spacing scale */
  --sp-xs:  0.5rem;
  --sp-sm:  0.75rem;
  --sp-md:  1.25rem;
  --sp-lg:  2rem;
  --sp-xl:  3rem;
  --sp-2xl: 4.5rem;
  --sp-3xl: 6rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Semantic status colors */
  --error:     #e05c5c;
  --error-dim: rgba(224, 92, 92, 0.12);
}

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

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 5.2vw, 3.8rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

p { color: var(--slate); text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--sp-md);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

.eyebrow--light { color: var(--signal-soft); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.95rem 1.9rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}

.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--signal);
  color: var(--ink);
  transform: translateY(-2px);
}

.btn-on-dark {
  background: var(--signal);
  color: var(--ink);
}

.btn-on-dark:hover {
  background: var(--signal-soft);
  transform: translateY(-2px);
}

/* ============================================================
   Layout helpers
   ============================================================ */
.section { padding: var(--sp-3xl) var(--pad); }

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-inner--narrow { max-width: 760px; }

.section-head {
  max-width: 640px;
  margin-bottom: var(--sp-2xl);
}

.section-head p { margin-top: var(--sp-sm); }

/* Scroll reveal — gated on .js class so content is visible without JS */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }
  .js .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(247, 244, 237, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), height 0.3s var(--ease-out);
}

.nav--scrolled {
  height: calc(var(--nav-h) - 12px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(17, 32, 47, 0.06);
}

.nav-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 30px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
}

.nav-links > li > a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links > li > a:hover { color: var(--signal); }

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: var(--signal);
  color: var(--ink) !important;
}

.nav-dropdown { position: relative; }

.nav-caret {
  width: 9px; height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  padding-top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu { display: flex; }

.nav-dropdown-menu-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(17, 32, 47, 0.08);
  padding: var(--sp-md);
  width: 100%;
}

.nav-dropdown-menu--wide {
  flex-direction: column;
}

.nav-dropdown-menu--wide .nav-dropdown-menu-panel {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 280px;
}

.nav-dropdown-menu--narrow {
  flex-direction: column;
}

.nav-dropdown-menu--narrow .nav-dropdown-menu-panel {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 200px;
}

.nav-dropdown-group {
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid var(--line);
}

.nav-dropdown-group:last-child { border-bottom: none; }

.nav-dropdown-title {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
  padding: 0.4rem 0.5rem 0.2rem;
}

.nav-dropdown-link {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  padding: 0.38rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-link:hover { background: var(--signal-dim); color: var(--signal); }

.nav-dropdown-menu--narrow .nav-dropdown-menu-panel a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--ink);
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu--narrow .nav-dropdown-menu-panel a:hover { background: var(--signal-dim); color: var(--signal); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-top: calc(var(--nav-h) + var(--sp-xl));
  padding-bottom: var(--sp-3xl);
  padding-left: var(--pad);
  padding-right: var(--pad);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, var(--signal-dim) 0%, transparent 70%),
    radial-gradient(ellipse 50% 45% at 5% 95%, var(--cyan-dim) 0%, transparent 70%),
    var(--paper);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--sp-2xl);
  align-items: center;
}

.hero--page .hero-inner { grid-template-columns: 1fr 1.1fr; align-items: center; }
.hero--page { padding-bottom: 0; }

.hero--blog {
  padding-top: calc(var(--nav-h) + var(--sp-md));
  padding-bottom: var(--sp-lg);
}
.hero--blog .hero-inner {
  grid-template-columns: 1fr;
  max-width: 860px;
  gap: var(--sp-sm);
}
.hero--blog h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  margin-bottom: 0;
}
.hero--blog .hero-sub {
  color: var(--slate-light);
  max-width: 620px;
  margin-top: var(--sp-xs);
}

.hero--body { display: flex; flex-direction: column; justify-content: center; }

.hero--dark {
  background-color: var(--ink);
  background-image:
    url('../images/texture-waves-dark.svg'),
    radial-gradient(ellipse 60% 50% at 85% 10%, var(--cyan-dim) 0%, transparent 70%),
    radial-gradient(ellipse 50% 45% at 5% 95%, var(--signal-dim) 0%, transparent 70%);
  background-size: cover, auto, auto;
  background-position: center, 0 0, 0 0;
  background-repeat: no-repeat;
}

.hero--dark .hero-headline,
.hero--dark h1 { color: var(--paper); }

.hero--dark .hero-sub,
.hero--dark .hero-note { color: var(--slate-light); }

.hero--dark .eyebrow { color: var(--cyan-soft); }
.hero--dark .eyebrow::before { background: var(--cyan-soft); }

.hero--dark .btn-primary { background: var(--signal); color: var(--ink); }
.hero--dark .btn-primary:hover { background: var(--signal-soft); }

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

.hero-headline { margin-bottom: var(--sp-lg); }

.hero-headline .accent {
  color: #0E95A8;
  text-shadow: 0 0 36px var(--cyan-dim);
  position: relative;
}

.hero-headline .accent::after {
  content: '';
  position: absolute;
  bottom: -0.06em;
  left: 0;
  right: 0;
  height: 2px;
  background: #0E95A8;
  transform-origin: left center;
  transform: scaleX(0);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-headline .accent::after {
    animation: underlineSweep 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
  }
}

@keyframes underlineSweep {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero-sub {
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: var(--sp-xl);
}

.hero-actions { display: flex; align-items: center; gap: var(--sp-lg); }

.hero-note {
  font-size: 0.85rem;
  color: var(--slate);
}

/* ---- AI Answer Card (signature element) ---- */
.hero-visual {
  perspective: 1000px;
}

.ai-card {
  background: var(--ink);
  border-radius: 16px;
  padding: var(--sp-lg);
  box-shadow: 0 24px 60px rgba(17, 32, 47, 0.18), 0 0 80px var(--cyan-dim);
  position: relative;
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s var(--ease-out);
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  will-change: transform;
}

.ai-card:hover {
  box-shadow: 0 32px 70px rgba(17, 32, 47, 0.22), 0 0 100px var(--cyan-dim);
}

.ai-card-chrome {
  display: flex;
  gap: 6px;
  margin-bottom: var(--sp-md);
}

.ai-card-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-dark);
}

.ai-card-query {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--paper);
  background: rgba(247, 244, 237, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  margin-bottom: var(--sp-md);
}

.ai-card-query svg { flex-shrink: 0; color: var(--slate-light); }

.ai-card-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: var(--sp-sm);
}

.ai-card-pulse {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

@media (prefers-reduced-motion: no-preference) {
  .ai-card-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--cyan);
    animation: pulseRing 2s var(--ease-out) infinite;
  }

  @keyframes pulseRing {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 0; transform: scale(2.8); }
  }
}

.ai-card-results { display: flex; flex-direction: column; gap: 0.6rem; }

.ai-card-result {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 10px;
  background: rgba(247, 244, 237, 0.04);
  border: 1px solid transparent;
}

.ai-card-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.ai-card-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--paper);
  margin-bottom: 0.15rem;
}

.ai-card-meta {
  font-size: 0.8rem;
  color: var(--slate-light);
}

.ai-card-result--empty {
  border: 1px dashed rgba(242, 178, 92, 0.45);
  background: transparent;
}

.ai-card-result--empty .ai-card-num {
  background: transparent;
  border: 1px dashed rgba(242, 178, 92, 0.45);
  color: var(--signal-soft);
}

.ai-card-result--empty .ai-card-name { color: var(--signal-soft); }
.ai-card-result--empty .ai-card-meta { color: rgba(242, 178, 92, 0.55); }

@media (prefers-reduced-motion: no-preference) {
  /* Results hidden until typewriter completes and results-ready class fires */
  .js .ai-card-result {
    opacity: 0;
    transform: translateY(10px);
  }
  .ai-card.results-ready .ai-card-result {
    animation: aiCardIn 0.55s var(--ease-out) forwards;
  }
  .ai-card.results-ready .ai-card-result:nth-child(1) { animation-delay: 0.08s; }
  .ai-card.results-ready .ai-card-result:nth-child(2) { animation-delay: 0.28s; }
  .ai-card.results-ready .ai-card-result:nth-child(3) { animation-delay: 0.48s; }

  @keyframes aiCardIn {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Typewriter cursor */
.ai-card-query-text.typing::after {
  content: '|';
  color: var(--cyan);
  animation: cursorBlink 0.7s step-end infinite;
  margin-left: 1px;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ============================================================
   Problem & differentiator sections
   ============================================================ */
.prose-section h2 { margin-bottom: var(--sp-md); max-width: 760px; }
.prose-section p:not(.eyebrow) { max-width: 640px; margin-bottom: var(--sp-md); font-size: 1.05rem; }
.prose-section p:last-of-type { margin-bottom: var(--sp-lg); }

.lede {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  max-width: 640px;
  margin: var(--sp-lg) 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.section--inverted .check-list li { color: var(--paper); }

/* Pull quote */
.pullquote {
  padding: var(--sp-xl);
  background: var(--paper-dim);
  border-radius: 14px;
  align-self: center;
}

.pullquote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--cyan);
  line-height: 0.75;
  display: block;
  margin-bottom: var(--sp-sm);
  letter-spacing: -0.03em;
}

.pullquote p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  color: var(--ink);
  line-height: 1.3;
  max-width: none;
  margin: 0;
}

/* How it works timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
}

.timeline-item {
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--line);
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 40px; height: 1px;
  background: var(--cyan);
}

.timeline-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.8rem;
  color: var(--ink);
  opacity: 0.08;
  line-height: 1;
  margin-bottom: var(--sp-sm);
  letter-spacing: -0.03em;
}

.timeline-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--sp-sm);
  display: block;
}

.timeline-text {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.65;
}

/* Split two-column layout (What you get / Who this is for) */
.split-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-2xl);
  align-items: start;
  margin-bottom: var(--sp-xl);
}

.split-main h2 { margin-bottom: var(--sp-md); }
.split-main > p { font-size: 1.05rem; }

.callout-card {
  background: var(--ink-soft);
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--cyan);
  border-radius: 14px;
  padding: var(--sp-xl);
}

.callout-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--cyan-dim);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-md);
}

.callout-card h3 {
  font-size: 1.3rem;
  color: var(--paper);
  margin-bottom: var(--sp-sm);
}

.callout-card p { color: var(--slate-light); font-size: 1rem; }

.split-footer {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--paper);
  border-top: 1px solid var(--line-dark);
  padding-top: var(--sp-lg);
  max-width: 640px;
}

.check-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--cyan-dim);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

/* Sticky scroll-stack: sections slide over each other on scroll */
.scroll-stack {
  position: relative;
}

.scroll-stack__item {
  position: sticky;
  top: var(--nav-h);
  z-index: 1;
  background: var(--paper);
}

.scroll-stack__item--over {
  z-index: 2;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(17, 32, 47, 0.1);
}

/* Stat split layout (prose left, 2x2 data grid right) */
.stats-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: center;
}

.stats-prose h2 { margin-bottom: var(--sp-md); max-width: 520px; }
.stats-prose p { max-width: 480px; margin-bottom: var(--sp-md); font-size: 1.05rem; }
.stats-prose p:last-of-type { margin-bottom: 0; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
}

.stat-item {
  padding: var(--sp-md) var(--sp-md) var(--sp-md) 0;
  border-top: 2px solid var(--line);
  position: relative;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: -2px; left: 0;
  width: var(--pct, 50%); height: 2px;
  background: var(--cyan);
  transition: width 0.8s var(--ease-out);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-detail {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.stat-source {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
}

.differentiator {
  background-color: var(--paper-dim);
  background-image: url('../images/texture-waves.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Two-discipline block inside differentiator */
.prose-section .discipline-subhead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  max-width: none;
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-lg);
}

.discipline-grid { margin-bottom: var(--sp-md); }

.discipline-card {
  border-top-width: 3px;
  border-top-style: solid;
  border-top-color: var(--line);
}

.discipline-card--seo { border-top-color: var(--signal); }
.discipline-card--geo { border-top-color: var(--cyan); }

.discipline-card h3 { color: var(--ink); }

.prose-section .discipline-card p {
  font-size: 0.95rem;
  max-width: none;
}

.prose-section p.discipline-closer {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  max-width: none;
  margin-top: var(--sp-md);
}

/* ============================================================
   Card grids
   ============================================================ */
.card-grid {
  display: grid;
  gap: var(--sp-lg);
}

.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: var(--sp-lg);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

a.card { cursor: pointer; }

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(17, 32, 47, 0.08);
  border-color: var(--signal-soft);
}

.card:has(.card-icon--cyan):hover {
  box-shadow: 0 20px 40px rgba(43, 196, 222, 0.14);
  border-color: var(--cyan-soft);
}

.card-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--signal-dim);
  color: var(--signal);
  margin-bottom: var(--sp-md);
  transition: transform 0.35s var(--ease-out), background 0.25s, color 0.25s;
}

.card-icon--cyan { background: var(--cyan-dim); color: var(--cyan); }

.card:hover .card-icon { transform: rotate(-6deg) scale(1.1); }

.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; }

/* Staggered cascade on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .card-grid .card {
    opacity: 0;
    transform: translateY(48px) scale(0.94);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out),
                box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  }

  .js .card-grid.is-visible .card {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .js .card-grid.is-visible .card:nth-child(1) { transition-delay: 0.05s; }
  .js .card-grid.is-visible .card:nth-child(2) { transition-delay: 0.22s; }
  .js .card-grid.is-visible .card:nth-child(3) { transition-delay: 0.39s; }
  .js .card-grid.is-visible .card:nth-child(4) { transition-delay: 0.05s; }
  .js .card-grid.is-visible .card:nth-child(5) { transition-delay: 0.22s; }

  .js .card-grid.is-visible .card:hover { transition-delay: 0s; }
}

/* ============================================================
   Inverted (dark) section variant
   ============================================================ */
.section--tinted { background: var(--paper-dim); }

.section--inverted {
  background: var(--ink);
  color: var(--paper);
}

.section--wheat {
  background-image: url('../images/texture-wheat.svg');
  background-repeat: repeat;
  background-size: 90px 157px;
}

.section--inverted .eyebrow { color: var(--cyan-soft); }

.section--inverted p { color: var(--slate-light); }

.section--inverted .card {
  background: var(--ink-soft);
  border-color: var(--line-dark);
}

.section--inverted .card:hover {
  box-shadow: 0 20px 50px rgba(43, 196, 222, 0.25);
}

/* ============================================================
   Free tool CTA (homepage)
   ============================================================ */
.free-tool-cta .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.free-tool-cta h2 { max-width: 32ch; }

.free-tool-cta p:not(.eyebrow) {
  max-width: 52ch;
  color: var(--slate);
  margin-bottom: var(--sp-lg);
}

.free-tool-cta .btn { margin-top: var(--sp-xs); }

/* ============================================================
   FAQ accordion
   ============================================================ */
.accordion { border-top: 1px solid var(--line); }

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding: 1.4rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
}

.accordion-item summary::-webkit-details-marker { display: none; }

.accordion-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s var(--ease-out), border-color 0.2s;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  transition: transform 0.2s var(--ease-out), background 0.2s;
}

.accordion-icon::before { width: 10px; height: 1.5px; }
.accordion-icon::after { width: 1.5px; height: 10px; }

.accordion-item[open] summary { color: var(--ink); }
.accordion-item[open] .accordion-icon { border-color: var(--signal); }
.accordion-item[open] .accordion-icon::before,
.accordion-item[open] .accordion-icon::after { background: var(--signal); }
.accordion-item[open] .accordion-icon::after { transform: scaleY(0); }

.accordion-item p {
  padding-bottom: 1.4rem;
  max-width: 640px;
  font-size: 0.95rem;
}

/* ============================================================
   Contact / global CTA
   ============================================================ */
.contact {
  background: var(--ink);
  color: var(--paper);
}

.contact h2 { color: var(--paper); }
.contact p { color: var(--slate-light); }

.contact .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: start;
}

.contact-copy h2 { margin-bottom: var(--sp-md); max-width: 420px; }
.contact-copy p { max-width: 420px; }

.contact-form {
  flex-direction: column;
  gap: var(--sp-md);
}

.contact-form:not([hidden]) {
  display: flex;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-light);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--paper);
  background: rgba(247, 244, 237, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--slate-light);
  opacity: 1;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 0;
  border-color: var(--cyan);
}

.field textarea { resize: vertical; min-height: 90px; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239AA8AE' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.field select option { color: var(--ink); }

.contact-form .btn { margin-top: var(--sp-xs); align-self: flex-start; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  padding: var(--sp-xl) var(--pad);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-2xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  max-width: 280px;
}

.footer-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--paper); }

.footer-tagline {
  font-size: 0.88rem;
  color: var(--slate-light);
  line-height: 1.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--slate-light);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--signal); }

/* ============================================================
   Privacy page prose
   ============================================================ */
.privacy-content h2 {
  font-size: 1.15rem;
  margin-top: var(--sp-2xl);
  margin-bottom: var(--sp-sm);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--line);
}
.privacy-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: var(--sp-lg);
  margin-bottom: var(--sp-xs);
}
.privacy-content p { margin-bottom: var(--sp-md); }

/* ============================================================
   Blog / article styles
   ============================================================ */
.article-header { padding: calc(var(--nav-h) + var(--sp-2xl)) 0 var(--sp-xl); }
.article-header h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 720px; }

.article-byline {
  font-size: 0.82rem;
  color: var(--slate-light);
  margin-top: var(--sp-xs);
}
.article-byline a { color: var(--slate-light); text-decoration: underline; text-underline-offset: 3px; }
.article-byline a:hover { color: var(--ink); }

.article-meta {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  color: var(--slate-light);
  margin-top: var(--sp-md);
}
.article-meta span { margin: 0 0.5em; opacity: 0.4; }

.article-body h2 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin-top: var(--sp-2xl);
  margin-bottom: var(--sp-md);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--line);
}
.article-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-xs);
}
.article-body p { margin-bottom: var(--sp-md); line-height: 1.75; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--paper-dim);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  color: var(--ink);
}
.article-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: var(--sp-2xl) 0;
}
.article-body blockquote {
  margin: var(--sp-xl) 0;
  padding: var(--sp-lg) var(--sp-xl);
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.article-body blockquote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--cyan);
  line-height: 0.75;
  display: block;
  margin-bottom: var(--sp-sm);
}
.article-body blockquote p {
  font-style: italic;
  color: var(--slate);
  margin: 0;
}

.post-cta {
  text-align: center;
}
.post-cta h2 { margin-bottom: var(--sp-md); }
.post-cta p { max-width: 560px; margin: 0 auto var(--sp-xl); }

/* Blog index cards */
.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover { box-shadow: 0 12px 40px rgba(17,32,47,0.1); transform: translateY(-2px); }
.post-card .eyebrow { margin-bottom: var(--sp-sm); }
.post-card h3 { font-size: 1.05rem; margin-bottom: var(--sp-sm); line-height: 1.35; }
.post-card p { font-size: 0.9rem; color: var(--slate); line-height: 1.6; flex: 1; margin-bottom: var(--sp-lg); }
.post-card-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
  text-decoration: none;
  margin-top: auto;
}
.post-card-link:hover { color: var(--ink); }

/* Blog filter tags */
.blog-filters {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  padding: var(--sp-xl) 0 0;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--sp-xl);
  padding-right: var(--sp-xl);
}
.blog-filter-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--slate);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.blog-filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.blog-filter-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.blog-section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--line);
}

.footer-bottom {
  max-width: var(--max);
  margin: var(--sp-xl) auto 0;
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-legal-links span { color: var(--slate-light); font-size: 0.8rem; }
.footer-privacy {
  font-size: 0.8rem;
  color: var(--slate-light);
  text-decoration: none;
}
.footer-privacy:hover { color: var(--paper); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--slate-light);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero--page .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .contact .section-inner { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-sm) var(--pad) var(--sp-lg);
    display: none;
  }

  .nav-links.is-open { display: flex; }

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

  .nav-links > li > a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    justify-content: space-between;
  }

  .nav-cta { text-align: center; margin-top: var(--sp-sm); border-bottom: none !important; }

  .nav-dropdown-menu {
    position: static;
    display: none;
    transform: none;
    padding: 0 0 0 var(--sp-md);
    flex-direction: column;
  }

  .nav-dropdown-menu-panel {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
  }

  .nav-dropdown.is-open .nav-dropdown-menu { display: flex; }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.is-open:hover .nav-dropdown-menu { display: flex; }

  .card-grid--3, .card-grid--2 { grid-template-columns: 1fr; }
  .split-content { grid-template-columns: 1fr; }
  .stats-layout { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  h1 { font-size: 2.4rem; }
  .section { padding: var(--sp-2xl) var(--pad); }

  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .footer-brand { grid-column: auto; }
}

/* ============================================================
   Author bio
   ============================================================ */
.author-bio {
  display: flex;
  gap: var(--sp-xl);
  align-items: flex-start;
  padding: var(--sp-xl);
  background: var(--paper-dim);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.author-bio-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.author-bio-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.1rem;
  line-height: 1.3;
}

.author-bio-role {
  font-size: 0.82rem;
  color: var(--slate-light);
  margin-bottom: var(--sp-sm);
  line-height: 1.4;
}

.author-bio-role a { color: var(--slate-light); text-decoration: underline; text-underline-offset: 3px; }
.author-bio-role a:hover { color: var(--ink); }

.author-bio-text {
  font-size: 0.88rem;
  color: var(--slate);
  margin-bottom: var(--sp-sm);
  line-height: 1.65;
}

.author-bio-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
}
.author-bio-linkedin:hover { color: var(--ink); }

@media (max-width: 560px) {
  .author-bio { flex-direction: column; gap: var(--sp-md); }
  .author-bio-photo { width: 56px; height: 56px; }
}

/* ============================================================
   Related reading — editorial article list
   ============================================================ */
.related-reading h2 {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 700;
  margin-bottom: 0;
}

.related-reading-links {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--ink);
  margin-top: var(--sp-lg);
}

.related-reading-link {
  display: block;
  padding: var(--sp-lg) 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s var(--ease-out), padding-left 0.2s var(--ease-out);
}

.related-reading-link::before { content: none; }

.related-reading-link:hover {
  color: var(--signal);
  padding-left: var(--sp-sm);
}

/* ============================================================
   Article TOC
   ============================================================ */
.article-toc {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: var(--sp-lg) var(--sp-xl);
  margin-bottom: var(--sp-2xl);
}

.article-toc-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: var(--sp-md);
}

.article-toc-list { list-style: none; padding: 0; margin: 0; }

.article-toc-item {
  border-top: 1px solid var(--line);
  padding: 0.5rem 0;
}
.article-toc-item:first-child { border-top: none; padding-top: 0; }

.article-toc-link {
  font-size: 0.88rem;
  color: var(--slate);
  text-decoration: none;
  line-height: 1.5;
  display: block;
}
.article-toc-link:hover { color: var(--ink); }

/* ============================================================
   Article key takeaways box
   ============================================================ */
.article-takeaways {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: 0 10px 10px 0;
  padding: var(--sp-lg) var(--sp-xl);
  margin-bottom: var(--sp-2xl);
}

.article-takeaways-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--sp-md);
}

.article-takeaways-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.article-takeaways-list li {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.65;
  padding-left: 1.25rem;
  position: relative;
}

.article-takeaways-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--signal);
  font-size: 1.4rem;
  line-height: 1.25;
  font-weight: 700;
}

/* ============================================================
   Article breadcrumb, deck, and table (blog post additions)
   ============================================================ */
.article-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--slate-light);
  margin-bottom: var(--sp-md);
}
.article-breadcrumb a {
  color: var(--slate-light);
  text-decoration: none;
}
.article-breadcrumb a:hover { color: var(--ink); }
.article-breadcrumb .sep { margin: 0 0.4em; opacity: 0.5; }

.article-deck {
  font-size: 1.05rem;
  color: var(--slate-light);
  line-height: 1.7;
  margin-top: var(--sp-md);
  max-width: 640px;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-xl) 0;
  font-size: 0.9rem;
}
.article-body th {
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-sm) var(--sp-md);
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
}
.article-body td {
  padding: var(--sp-sm) var(--sp-md);
  border-bottom: 1px solid var(--line);
  color: var(--slate);
  vertical-align: top;
  line-height: 1.55;
}
.article-body tr:last-child td { border-bottom: none; }
.article-body tbody tr:nth-child(even) td { background: var(--paper-dim); }

/* ============================================================
   Skip link (a11y — keyboard users only)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 500;
  padding: 0.6rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0 0 8px 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus-visible {
  top: 0;
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ============================================================
   Global focus-visible ring
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Nav keyboard access — dropdown opens when any child is focused */
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }

/* ============================================================
   Service page — visual enhancements
   ============================================================ */

/* Service page heroes: isometric diamond grid instead of organic waves.
   Scoped to hero--page so the homepage hero--dark keeps its wave texture. */
.hero--page.hero--dark {
  background-image:
    url('../images/texture-iso-dark.svg'),
    radial-gradient(ellipse 60% 50% at 85% 10%, var(--cyan-dim) 0%, transparent 70%),
    radial-gradient(ellipse 55% 50% at 8% 30%, var(--signal-dim) 0%, transparent 70%);
  background-size: 160px 47px, auto, auto;
  background-position: 0 0, 0 0, 0 0;
  background-repeat: repeat, no-repeat, no-repeat;
}

/* Service page hero: all copy consolidates into left column */
.hero--page .hero-copy h1 {
  margin-bottom: var(--sp-lg);
}

/* Hero: copy left (all text + CTA), diagram right */
.svc-diagram-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: var(--sp-md);
}

.svc-diagram-wrap svg {
  width: 100%;
  max-width: none;
  height: auto;
}

/* Photography placeholder / image break between hero and content */
.svc-photo-break {
  width: 100%;
  line-height: 0;
  position: relative;
}

/* Dark-to-transparent gradient fades the photo into the ink hero above.
   Multi-stop holds dark over the illustration top before releasing. */
.svc-photo-break:not(.photo-placeholder)::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: clamp(160px, 40%, 280px);
  background: linear-gradient(
    to bottom,
    rgba(17, 32, 47, 1)   0%,
    rgba(17, 32, 47, 0.9) 25%,
    rgba(17, 32, 47, 0.5) 60%,
    rgba(17, 32, 47, 0)   100%
  );
  z-index: 1;
  pointer-events: none;
}

.svc-photo {
  width: 100%;
  height: clamp(240px, 32vw, 460px);
  object-fit: cover;
  object-position: center top;
  display: block;
}

.photo-placeholder {
  height: 180px;
  background: var(--paper-dim);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--slate-light);
  text-align: center;
  padding: 0 var(--pad);
  line-height: 1.7;
}

/* Feature list — replaces identical icon-card-grid on service pages */
.feature-list {
  border-top: 1px solid var(--line);
}

.feature-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--sp-2xl);
  padding: var(--sp-xl) var(--sp-sm);
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.2s var(--ease-out);
}

.feature-row:hover { background: rgba(43, 196, 222, 0.04); }

.feature-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.1rem;
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.feature-label h3 {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
}

.feature-detail {
  font-size: 0.97rem;
  color: var(--slate);
  line-height: 1.72;
  padding-top: 0.15rem;
  max-width: 600px;
}

@media (max-width: 980px) {
  .svc-diagram-wrap { justify-content: center; margin-top: var(--sp-lg); }
  .svc-diagram-wrap svg { max-width: 380px; }
}

@media (max-width: 760px) {
  .feature-row { grid-template-columns: 1fr; gap: var(--sp-sm); }
}

/* ============================================================
   Contact identity / trust signal
   ============================================================ */
.contact-identity {
  display: flex;
  align-items: center;
  gap: 0.5rem var(--sp-md);
  margin-top: var(--sp-lg);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--line-dark);
  flex-wrap: wrap;
}

.contact-identity-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--paper);
}

.contact-identity-sep {
  color: var(--slate-light);
  font-size: 0.85rem;
}

.contact-identity-phone {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.contact-identity-phone:hover { color: var(--paper); }

.contact-identity-note {
  font-size: 0.85rem;
  color: var(--slate-light);
  line-height: 1.5;
  width: 100%;
  margin-top: 0;
}

/* ============================================================
   Contact form wrapper, error, loading, and success states
   ============================================================ */
.contact-form-wrap { display: contents; }

.field-error {
  font-size: 0.88rem;
  color: var(--error);
  padding: var(--sp-sm) var(--sp-md);
  background: var(--error-dim);
  border: 1px solid rgba(224, 92, 92, 0.3);
  border-radius: 8px;
}

.btn[aria-busy="true"] {
  opacity: 0.65;
  pointer-events: none;
  cursor: not-allowed;
}

.contact-success {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-md);
}

/* Only show as flex when the hidden attribute has been removed by JS */
.contact-success:not([hidden]) {
  display: flex;
}

.contact-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  flex-shrink: 0;
}

.contact-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--paper);
  margin: 0;
}

.contact-success p {
  color: var(--slate-light);
  max-width: 420px;
  margin: 0;
  font-size: 0.95rem;
}

.contact-success-footer a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-success-footer a:hover { color: var(--paper); }

/* ============================================================
   About page: founder photo + bio layout
   ============================================================ */
.founder-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--sp-3xl);
  align-items: start;
}

.founder-photo {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 25%;
}

.founder-bio h2 { margin-bottom: var(--sp-md); }
.founder-bio p { font-size: 1rem; max-width: 560px; margin-bottom: var(--sp-md); }
.founder-bio p:last-of-type { margin-bottom: 0; }

@media (max-width: 760px) {
  .founder-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   About page: book promotion section
   ============================================================ */
.book-promo-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3xl);
  align-items: center;
}

.book-promo-img {
  width: clamp(160px, 22vw, 300px);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 48px rgba(17, 32, 47, 0.22));
}

.book-promo-content h2 {
  margin-bottom: var(--sp-lg);
  max-width: 500px;
}

.book-promo-content > p {
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: var(--sp-xl);
}

.book-promo-content .eyebrow { margin-bottom: var(--sp-md); }

@media (max-width: 760px) {
  .book-promo-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .book-promo-content h2,
  .book-promo-content > p { max-width: none; }
}

/* ============================================================
   Article: two-column layout with sticky sidebar TOC
   ============================================================ */
.article-layout {
  max-width: 980px;
  margin: 0 auto;
  padding: var(--sp-3xl) var(--pad);
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: var(--sp-2xl) var(--sp-3xl);
  align-items: start;
}

.article-main { min-width: 0; }

.article-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-xl));
}

/* TOC in sidebar: compact, no heavy box */
.article-sidebar .article-toc {
  background: none;
  border: none;
  border-top: 2px solid var(--ink);
  border-radius: 0;
  padding: var(--sp-md) 0 0;
  margin-bottom: 0;
}

.article-sidebar .article-toc-label {
  color: var(--ink);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  margin-bottom: var(--sp-md);
}

.article-sidebar .article-toc-item {
  border-top-color: var(--line);
  padding: 0.4rem 0;
}

.article-sidebar .article-toc-link {
  font-size: 0.78rem;
  line-height: 1.4;
}

.article-sidebar .article-toc-link:hover { color: var(--signal); }

@media (max-width: 760px) {
  .article-layout {
    grid-template-columns: 1fr;
    padding: var(--sp-2xl) var(--pad);
  }
  .article-sidebar {
    position: static;
    order: -1;
  }
  .article-sidebar .article-toc {
    border-bottom: 1px solid var(--line);
    padding-bottom: var(--sp-md);
    margin-bottom: var(--sp-lg);
  }
}

.article-header-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-top: var(--sp-md);
  flex-wrap: wrap;
}

.article-header-meta .article-meta { margin-top: 0; }

/* ============================================================
   Author card — redesigned from .author-bio
   ============================================================ */
.author-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  padding: var(--sp-xl) var(--sp-2xl);
  background: var(--ink);
  border-radius: 16px;
}

.author-card-identity {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}

.author-card-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 2px solid rgba(247, 244, 237, 0.15);
}

.author-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--paper);
  margin: 0 0 0.15rem;
  line-height: 1.2;
}

.author-card-role {
  font-size: 0.85rem;
  color: var(--slate-light);
  margin: 0 0 0.3rem;
  line-height: 1.4;
}

.author-card-awards {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal-soft);
  margin: 0;
}

.author-card-bio {
  font-size: 0.9rem;
  color: var(--slate-light);
  line-height: 1.7;
  margin: 0;
  max-width: 580px;
}

.author-card-links {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--line-dark);
}

.author-card-link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s;
}

.author-card-link:hover { color: var(--paper); }

@media (max-width: 560px) {
  .author-card { padding: var(--sp-lg); }
  .author-card-identity { flex-direction: column; align-items: flex-start; gap: var(--sp-sm); }
}

/* ============================================================
   FAQ accordion: smooth answer reveal on open
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .accordion-opening {
    animation: accordionReveal 0.32s var(--ease-out);
  }
}

@keyframes accordionReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Contact: founder credential line
   ============================================================ */
.contact-identity-cred {
  font-size: 0.75rem;
  color: var(--slate-light);
  width: 100%;
  margin-top: var(--sp-xs);
  letter-spacing: 0.01em;
}

/* ============================================================
   Industry list — editorial row layout replacing card grid
   ============================================================ */
.industry-list {
  border-top: 1px solid var(--line);
}

.industry-item {
  display: grid;
  grid-template-columns: 1fr minmax(auto, 340px) 48px;
  align-items: center;
  gap: var(--sp-2xl);
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.industry-item-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
  transition: color 0.2s var(--ease-out);
}

.industry-item-desc {
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.6;
  margin: 0;
}

.industry-item-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
  flex-shrink: 0;
  justify-self: end;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out),
              color 0.2s var(--ease-out), transform 0.25s var(--ease-out);
}

.industry-item:hover .industry-item-name { color: var(--signal); }

.industry-item:hover .industry-item-arrow {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
  transform: translateX(5px);
}

@media (max-width: 760px) {
  .industry-item {
    grid-template-columns: 1fr 44px;
    gap: var(--sp-lg);
  }

  .industry-item-desc { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .industry-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out),
                color 0.2s var(--ease-out);
  }

  .js .reveal.is-visible .industry-item {
    opacity: 1;
    transform: translateY(0);
  }

  .js .reveal.is-visible .industry-item:nth-child(1) { transition-delay: 0.08s; }
  .js .reveal.is-visible .industry-item:nth-child(2) { transition-delay: 0.2s; }
  .js .reveal.is-visible .industry-item:nth-child(3) { transition-delay: 0.32s; }
}

/* ============================================================
   Service grid — "What We Do" on dark background
   Names dominate; numbers annotate.
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 var(--sp-xl);
}

.service-item {
  display: flex;
  flex-direction: column;
  padding: var(--sp-xl) 0;
  border-top: 1px solid var(--line-dark);
  text-decoration: none;
  position: relative;
}

.service-item::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 40px; height: 1px;
  background: var(--cyan);
}

.service-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 800;
  color: var(--paper);
  opacity: 0.14;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-md);
}

.service-name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: var(--sp-md);
  transition: color 0.2s var(--ease-out);
}

.service-item:hover .service-name { color: var(--cyan); }

.service-desc {
  font-size: 0.95rem;
  color: var(--slate-light);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--sp-lg);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-top: auto;
  transition: color 0.2s var(--ease-out);
}

.service-link .btn-arrow {
  transition: transform 0.25s var(--ease-out);
}

.service-item:hover .service-link { color: var(--cyan); }
.service-item:hover .service-link .btn-arrow { transform: translateX(4px); }

@media (max-width: 760px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .service-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  }

  .js .reveal.is-visible .service-item { opacity: 1; transform: translateY(0); }
  .js .reveal.is-visible .service-item:nth-child(1) { transition-delay: 0.08s; }
  .js .reveal.is-visible .service-item:nth-child(2) { transition-delay: 0.2s; }
  .js .reveal.is-visible .service-item:nth-child(3) { transition-delay: 0.32s; }
}
