/* ═══════════════════════════════════════════════════════════════════════════
   THE STORYTELLING COLLAB — SERVICE PAGES
   Currently: ai-seo.html

   Built on the tokens in colors_and_type.css. No new colours, no new families.
   Nav and footer rules mirror the static pages so this reads as one site.

   Static HTML on purpose. A page selling AI visibility that AI crawlers
   cannot read would be an embarrassment, and we have already made that
   mistake once on the homepage.
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans-body);
  color: var(--ink);
  line-height: var(--lh-body);
  background-color: var(--ivory);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.32 0 0 0 0 0.2 0 0 0 0 0.08 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 400px 400px;
  background-attachment: fixed;
}

/* ── NAV ───────────────────────────────────────────────────────────────────*/
nav#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 1.4rem var(--sp-5);
  transition: all .35s cubic-bezier(.2,.8,.2,1);
  background: rgba(234, 221, 190, 0.92);
  backdrop-filter: blur(20px) saturate(1.05);
  border-bottom: 1px solid transparent;
}
nav#nav.scrolled { padding: 0.9rem var(--sp-5); border-bottom-color: rgba(120, 88, 50, 0.18); }
.nav-logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif-display); font-size: 1.25rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: var(--ls-tight);
  font-variation-settings: var(--opsz-display);
}
.nav-logo-mark { width: 26px; height: 26px; object-fit: contain; }
.nav-center { display: flex; gap: 2rem; justify-content: center; }
.nav-center a {
  font-size: 0.78rem; color: var(--soft); text-decoration: none;
  font-weight: 500; letter-spacing: 0.02em; position: relative; white-space: nowrap;
}
.nav-center a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav-center a:hover::after, .nav-center a[aria-current]::after { transform: scaleX(1); }
.nav-center a[aria-current] { color: var(--ink); }
.nav-right { display: flex; justify-content: flex-end; }
.nav-cta {
  font-size: 0.78rem; font-weight: 600; color: var(--ink); text-decoration: none;
  padding: 0.65rem 1.4rem; border: 1px solid currentColor; transition: all .25s;
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

/* ── SHELL ─────────────────────────────────────────────────────────────────*/
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--sp-5); }
.measure { max-width: 62ch; }
.section { padding: var(--sp-7) 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: none; }
.eyebrow {
  font-family: var(--serif-display); font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-rail); text-transform: uppercase;
  color: var(--ink); font-weight: 600;
  display: flex; align-items: center; gap: 1.2rem; margin-bottom: var(--sp-3);
}
.eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--ink); }

/* ── HERO ──────────────────────────────────────────────────────────────────*/
.svc-hero { padding: 12rem 0 var(--sp-6); }
.svc-h1 {
  font-family: var(--serif-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 300; line-height: 1.02; letter-spacing: var(--ls-display);
  font-variation-settings: var(--opsz-display);
  max-width: 17ch;
}
.svc-h1 em { font-weight: 700; }
.svc-lede {
  font-family: var(--serif-display); font-variation-settings: 'opsz' 24;
  font-size: 1.24rem; font-weight: 400; line-height: 1.62;
  color: var(--soft); max-width: 56ch; margin-top: var(--sp-4);
}
.svc-hero-cta {
  display: inline-flex; align-items: center; gap: 0.7rem;
  margin-top: var(--sp-4);
  background: var(--royal); color: var(--paper);
  padding: 1.05rem 2.2rem; font-size: 0.84rem; font-weight: 600;
  letter-spacing: 0.04em; text-decoration: none; transition: all .3s;
}
.svc-hero-cta:hover { background: var(--royal-d); transform: translateY(-1px); }

/* ── SECTION TYPE ──────────────────────────────────────────────────────────*/
.svc-h2 {
  font-family: var(--serif-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400; line-height: var(--lh-display);
  letter-spacing: var(--ls-tight); font-variation-settings: var(--opsz-display);
  max-width: 20ch; margin-bottom: var(--sp-3);
}
.svc-h2 em { font-weight: 700; }
.svc-p {
  font-family: var(--serif-display); font-variation-settings: 'opsz' 24;
  font-size: 1.12rem; line-height: 1.72; color: var(--char);
  max-width: 62ch; margin-bottom: var(--sp-3);
}
.svc-p strong { font-weight: 700; color: var(--ink); }

/* ── THE PIVOT — the one line the page is built around ─────────────────────*/
.pivot {
  background: rgba(14, 35, 71, 0.94);
  color: var(--paper);
  padding: var(--sp-7) var(--sp-5);
  margin: 0;
}
.pivot-inner { max-width: 1120px; margin: 0 auto; }
.pivot-line {
  font-family: var(--serif-display);
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  font-weight: 300; line-height: 1.22; letter-spacing: var(--ls-tight);
  font-variation-settings: var(--opsz-display);
  max-width: 24ch;
}
.pivot-line em { font-weight: 700; }
.pivot-line + .pivot-line { margin-top: var(--sp-3); }
.pivot-rule { width: 60px; height: 2px; background: var(--gold); margin: var(--sp-4) 0; }
.pivot-sub {
  font-family: var(--sans-body); font-size: 1rem; line-height: 1.75;
  color: rgba(244, 235, 211, 0.75); max-width: 58ch;
}

/* ── ENGINE ROW ────────────────────────────────────────────────────────────*/
.engines {
  display: flex; flex-wrap: wrap; gap: 0.6rem 0.7rem; margin-top: var(--sp-3);
  max-width: 62ch;
}
.engine {
  font-family: var(--sans-body); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--soft);
  border: 1px solid var(--line); padding: 0.5rem 1rem;
}

/* ── THE FOUR MOVEMENTS ────────────────────────────────────────────────────*/
.movements { list-style: none; border-top: 2px solid var(--ink); margin-top: var(--sp-4); }
.movement {
  display: grid; grid-template-columns: 4rem 1fr 1.15fr; gap: var(--sp-4);
  padding: var(--sp-4) 0; border-bottom: 1px solid var(--line);
  align-items: start;
}
.mv-n {
  font-family: var(--serif-display); font-size: 1rem;
  color: var(--gold); font-weight: 500; padding-top: 0.35rem;
}
.mv-name {
  font-family: var(--serif-display); font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 500; line-height: 1.2; letter-spacing: var(--ls-tight);
  font-variation-settings: var(--opsz-mid); margin-bottom: 0.6rem;
}
.mv-what {
  font-family: var(--sans-body); font-size: 0.9rem; line-height: 1.65;
  color: var(--soft);
}
.mv-list { list-style: none; }
.mv-list li {
  font-family: var(--sans-body); font-size: 0.92rem; line-height: 1.6;
  color: var(--char); padding: 0.55rem 0 0.55rem 1.5rem; position: relative;
  border-bottom: 1px solid var(--line-l);
}
.mv-list li:last-child { border-bottom: none; }
.mv-list li::before {
  content: ''; position: absolute; left: 0; top: 1.15rem;
  width: 12px; height: 1px; background: var(--gold);
}

/* ── EVIDENCE STRIP ────────────────────────────────────────────────────────*/
.svc-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink); margin-top: var(--sp-4);
}
.svc-stat { padding: var(--sp-3) var(--sp-2) 0 0; border-right: 1px solid var(--line-l); }
.svc-stat:not(:first-child) { padding-left: var(--sp-3); }
.svc-stat:last-child { border-right: none; }
.svc-stat-n {
  display: block; font-family: var(--serif-display);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 500; color: var(--ink);
  line-height: 1; letter-spacing: var(--ls-tight);
  font-variation-settings: var(--opsz-display);
}
.svc-stat-l {
  display: block; margin-top: var(--sp-1); font-family: var(--sans-body);
  font-size: 0.74rem; color: var(--soft); line-height: 1.5; font-weight: 500;
}
.svc-note {
  font-family: var(--sans-body); font-size: 0.74rem; line-height: 1.7;
  color: var(--soft); margin-top: var(--sp-3); max-width: 90ch;
}
.svc-note strong { font-weight: 600; }

/* ── FIT: for / not for ────────────────────────────────────────────────────*/
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: var(--sp-4); }
.fit-col { padding: var(--sp-3) var(--sp-4) var(--sp-3) 0; }
.fit-col + .fit-col { border-left: 1px solid var(--line); padding-left: var(--sp-4); padding-right: 0; }
.fit-h {
  font-family: var(--sans-body); font-size: var(--fs-eyebrow);
  letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  color: var(--soft); margin-bottom: var(--sp-2);
}
.fit-col ul { list-style: none; }
.fit-col li {
  font-family: var(--serif-display); font-variation-settings: 'opsz' 24;
  font-size: 1.02rem; line-height: 1.6; color: var(--char);
  padding: 0.6rem 0; border-bottom: 1px solid var(--line-l);
}
.fit-col li:last-child { border-bottom: none; }

/* ── FAQ ───────────────────────────────────────────────────────────────────*/
.faq { list-style: none; border-top: 2px solid var(--ink); margin-top: var(--sp-4); }
.faq-item { padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.faq-q {
  font-family: var(--serif-display); font-size: 1.2rem; font-weight: 600;
  line-height: 1.35; letter-spacing: var(--ls-tight); color: var(--ink);
  font-variation-settings: var(--opsz-mid); margin-bottom: 0.6rem;
}
.faq-a {
  font-family: var(--serif-display); font-variation-settings: 'opsz' 24;
  font-size: 1.04rem; line-height: 1.7; color: var(--char); max-width: 66ch;
}

/* ── CLOSING ───────────────────────────────────────────────────────────────*/
.svc-close {
  background: var(--royal); color: var(--paper);
  padding: var(--sp-7) var(--sp-5); text-align: center; margin-top: var(--sp-6);
}
.svc-close-h {
  font-family: var(--serif-display);
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 300; line-height: 1.15;
  letter-spacing: var(--ls-tight); font-variation-settings: var(--opsz-display);
  max-width: 22ch; margin: 0 auto var(--sp-3);
}
.svc-close-h em { font-weight: 700; }
.svc-close-sub {
  font-family: var(--sans-body); font-size: 0.98rem;
  color: rgba(244, 235, 211, 0.75); max-width: 46ch; margin: 0 auto var(--sp-4);
}
.svc-close a {
  background: var(--paper); color: var(--ink); padding: 1.05rem 2.4rem;
  font-size: 0.84rem; font-weight: 600; letter-spacing: 0.04em;
  text-decoration: none; display: inline-flex; gap: 0.7rem; transition: all .3s;
}
.svc-close a:hover { background: var(--ivory); transform: translateY(-1px); }

/* ── FOOTER ────────────────────────────────────────────────────────────────*/
footer {
  background: var(--royal-d); color: var(--paper);
  padding: var(--sp-4) var(--sp-5) var(--sp-3);
  border-top: 1px solid rgba(244, 235, 211, 0.08);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto; display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-2);
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-mark { width: 26px; height: 26px; object-fit: contain; opacity: 0.75; }
.footer-logo {
  font-family: var(--serif-display); font-size: 0.9rem; font-weight: 600;
  color: rgba(244, 235, 211, 0.6); font-variation-settings: var(--opsz-display);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; }
.footer-nav a {
  font-family: var(--sans-body); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.04em; color: rgba(244, 235, 211, 0.6);
  text-decoration: none; transition: color .25s;
}
.footer-nav a:hover { color: var(--paper); }
.footer-meta { font-size: var(--fs-eyebrow); color: rgba(244, 235, 211, 0.4); letter-spacing: 0.04em; }

/* ── RESPONSIVE ────────────────────────────────────────────────────────────*/
@media (max-width: 1100px) { nav#nav { padding: 1.2rem 1.5rem; } }
@media (max-width: 980px) {
  nav#nav { grid-template-columns: 1fr auto; }
  .nav-center { display: none; }
  .wrap { padding: 0 1.5rem; }
  .svc-hero { padding-top: 9rem; }
  .movement { grid-template-columns: 2.5rem 1fr; gap: var(--sp-2) var(--sp-3); }
  .movement .mv-list { grid-column: 2; margin-top: var(--sp-2); }
  .svc-stats { grid-template-columns: 1fr 1fr; }
  .svc-stat { border-bottom: 1px solid var(--line-l); padding-bottom: var(--sp-3); }
  .svc-stat:nth-child(2n) { border-right: none; }
  .svc-stat:nth-last-child(-n+2) { border-bottom: none; }
  .fit { grid-template-columns: 1fr; }
  .fit-col + .fit-col { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: var(--sp-3); }
  .pivot { padding: var(--sp-6) 1.5rem; }
  .svc-close { padding: var(--sp-6) 1.5rem; }
  footer { padding: 2.5rem 1.5rem 2rem; }
  .footer-inner { flex-direction: column; gap: 1.2rem; text-align: center; }
  .footer-nav { justify-content: center; }
  .svc-h1, .svc-h2, .pivot-line { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   THE BRIDGE — where AI SEO meets traditional search
   Three columns: the work, what it pays in search, what it pays in answers.
   The bordered-grid language again, so it reads as part of the same argument
   as the engagement and the evidence rows.
   ═══════════════════════════════════════════════════════════════════════════ */
.bridge { margin-top: var(--sp-4); border-top: 2px solid var(--ink); }
.bridge-head, .bridge-row {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr 1.15fr;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  align-items: start;
}
.bridge-head {
  padding-top: var(--sp-2); padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line);
}
.bridge-head span {
  font-family: var(--sans-body); font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--soft); font-weight: 600; line-height: 1.5;
}
.bridge-head span:first-child { color: var(--ink); }
.bridge-row { border-bottom: 1px solid var(--line-l); }
.bridge-row:last-child { border-bottom: none; }
.bridge-row span {
  font-family: var(--sans-body); font-size: 0.9rem;
  line-height: 1.65; color: var(--char);
}
.bridge-k {
  font-family: var(--serif-display) !important;
  font-size: 1.12rem !important;
  font-weight: 600;
  line-height: 1.3 !important;
  letter-spacing: var(--ls-tight);
  font-variation-settings: var(--opsz-mid);
  color: var(--ink) !important;
}
/* The AI column is the point of the page — give it the accent rule. */
.bridge-row span:last-child { border-left: 2px solid var(--gold); padding-left: var(--sp-3); }
.bridge-head span:last-child { border-left: 2px solid var(--gold); padding-left: var(--sp-3); }

@media (max-width: 980px) {
  .bridge-head { display: none; }
  .bridge-row { grid-template-columns: 1fr; gap: var(--sp-2); padding: var(--sp-3) 0; }
  .bridge-row span:last-child { padding-left: var(--sp-3); }
  .bridge-row span:nth-child(2) {
    border-left: 2px solid var(--line); padding-left: var(--sp-3);
  }
}
