/* ============================================================
   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);
}

/* ============================================================
   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;
}

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); }

.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(--signal);
  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 */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }
  .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 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.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: 1.1fr 1fr; align-items: center; }

.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: var(--cyan);
  text-shadow: 0 0 36px var(--cyan-dim);
}

.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) {
  .ai-card-result {
    opacity: 0;
    transform: translateY(10px);
  }
  .ai-card.is-visible .ai-card-result {
    animation: aiCardIn 0.55s var(--ease-out) forwards;
  }
  .ai-card.is-visible .ai-card-result:nth-child(1) { animation-delay: 0.25s; }
  .ai-card.is-visible .ai-card-result:nth-child(2) { animation-delay: 0.55s; }
  .ai-card.is-visible .ai-card-result:nth-child(3) { animation-delay: 0.85s; }

  @keyframes aiCardIn {
    to { opacity: 1; transform: translateY(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 {
  border-left: 3px solid var(--cyan);
  padding: var(--sp-xl);
  background: var(--paper-dim);
  border-radius: 0 14px 14px 0;
  align-self: center;
}

.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 p.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) {
  .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);
  }

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

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

  .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);
}

/* ============================================================
   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(--signal); }
.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 {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.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:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  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: var(--sp-2xl) 0 var(--sp-xl); }
.article-header h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); 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(--paper); }

.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 {
  border-left: 3px solid var(--cyan);
  margin: var(--sp-xl) 0;
  padding: var(--sp-md) var(--sp-xl);
  background: var(--paper-dim);
  border-radius: 0 8px 8px 0;
}
.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-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 { order: -1; 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
   ============================================================ */
.related-reading h2 {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  margin-bottom: var(--sp-lg);
}

.related-reading-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.related-reading-link {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.related-reading-link::before {
  content: '→';
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.related-reading-link:hover {
  background: var(--paper-dim);
  border-color: var(--signal);
  transform: translateX(4px);
}

/* ============================================================
   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); }
