/* ============================================================
   crowdflowco: shared styles (interior pages)
   Warm editorial system: cream paper base, terracotta accent,
   Instrument Serif headlines, DM Sans body, DM Mono labels.
   Matches the homepage design language.
============================================================ */

/* SKIP LINK (a11y) */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 999;
  background: var(--accent); color: #fff;
  padding: 12px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

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

/* PALETTE */
:root {
  /* warm paper base */
  --bg:          oklch(0.972 0.008 85);
  --paper-hi:    oklch(0.995 0.004 85);

  /* Dark surfaces. These were a warm brown-black, which on cream read muddy
     rather than premium. It was the single worst colour on the site. They are
     the thesis page's deep navy now, which is the one dark treatment here that
     already looked right. One dark, everywhere. */
  --navy:        oklch(0.19 0.030 258);
  --navy-mid:    oklch(0.24 0.028 258);
  --navy-light:  oklch(0.30 0.026 258);
  --dark:        oklch(0.19 0.030 258);

  /* ink + lines on paper */
  --ink:         oklch(0.24 0.02 60);
  --ink-2:       oklch(0.36 0.02 60);
  --ink-3:       oklch(0.44 0.02 60);
  --ink-soft:    oklch(0.55 0.015 60);
  --line:        oklch(0.89 0.012 80);
  --line-2:      oklch(0.86 0.015 80);

  /* Accent is seasonal and written by tools/season.py. It lives here as well
     as in index.html because for a while only the homepage swapped: the site
     ran blue on the front page and terracotta on every other, which is most
     of what "no congruency" meant. One accent, one season, everywhere. */
  /* season:accent */--accent:      oklch(0.50 0.13 248);
  --accent-dk:   oklch(0.42 0.13 248);
  --accent-h:    248;
  --accent-c:    0.13;/* /season:accent */
  /* The third colour. Cream and blue are the two main colours; Sage takes
     every other tint on the site: badges, glows, dots, ticks, and the
     highlights on the dark bands. --sage-deep is for small text on cream. */
  --sage:        #9DB89A;
  --sage-deep:   #476045;
  --green:       var(--sage);
  --green-mid:   var(--sage-deep);
  --green-light: #E6EDE4;

  /* cream text for dark surfaces */
  --cream:       #F5EEE6;
  --cream-dark:  #E8DDD0;

  /* aliases used across page markup */
  --surface:      #ffffff;
  --surface-2:    oklch(0.995 0.004 85);
  --border:       oklch(0.89 0.012 80);
  --border-strong:oklch(0.84 0.015 80);
  --text-hi:     oklch(0.24 0.02 60);
  --text:        oklch(0.44 0.02 60);
  --text-dim:    oklch(0.55 0.015 60);
  --text-faint:  oklch(0.62 0.012 60);

  /* legacy tokens: dark ink inside white "device" mockups */
  --text-dark:   #2A2118;
  --text-mid:    #57493C;
  --text-muted:  #8A7B6C;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* dotted paper texture */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(oklch(0.55 0.03 60 / 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
}
body > * { position: relative; z-index: 1; }

::selection { background: color-mix(in oklab, var(--sage) 44%, transparent); color: var(--ink); }

a { color: var(--accent); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--accent-dk); }
/* Buttons manage their own colours. Without this they inherit
   --accent-dk on hover, which matches their hover background and
   makes the label vanish. */
a[class*="btn-"]:hover, a.nav-cta:hover, a.grow-btn:hover,
a.relc:hover, a.mq-logo:hover, a.soc:hover { color: inherit; }
* { scrollbar-width: thin; scrollbar-color: oklch(0.8 0.02 70) transparent; }

/* BUTTONS: rounded-12 rectangles per design */
.btn-accent {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: oklch(0.98 0.01 85);
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700;
  padding: 15px 26px; border-radius: 12px; text-decoration: none;
  border: none; cursor: pointer;
  box-shadow: 0 10px 26px -12px color-mix(in oklab, var(--accent) 85%, transparent);
  transition: all 0.2s ease; letter-spacing: 0.1px;
}
.btn-accent:hover { background: var(--accent-dk); color: oklch(0.98 0.01 85); transform: translateY(-2px); box-shadow: 0 16px 32px -14px color-mix(in oklab, var(--accent) 90%, transparent); }

.btn-cream {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: oklch(0.97 0.008 85);
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
  padding: 14px 24px; border-radius: 12px; text-decoration: none;
  transition: all 0.2s ease; white-space: nowrap;
}
.btn-cream:hover { background: var(--accent); color: oklch(0.98 0.01 85); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper-hi); color: oklch(0.3 0.02 60);
  border: 1px solid var(--line-2);
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500;
  padding: 14px 24px; border-radius: 12px; text-decoration: none;
  transition: all 0.2s ease; white-space: nowrap;
}
.btn-ghost:hover { color: var(--accent) !important; border-color: var(--accent); transform: translateY(-2px); }

/* FOCUS STATES (a11y) */
.btn-accent:focus-visible,
.btn-cream:focus-visible,
.btn-ghost:focus-visible,
.nav-cta:focus-visible,
nav a:focus-visible,
.faq-q:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* EYEBROW: mono terracotta label */
.eyebrow, .section-eyebrow, .hero-label {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.eyebrow-line, .section-eyebrow .line { width: 26px; height: 1px; background: var(--accent); flex-shrink: 0; }
.eyebrow span, .section-eyebrow span {
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent);
}

/* SECTION KICKER: the small mono label above an h2.
   This lived only in the homepage's inline <style>, so every interior page
   using .kicker (the vertical pages, the case studies) rendered it as plain
   16px body copy. Shared, so it looks the same everywhere it is used. */
.kicker {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent);
}

/* ============================================================
   NAV: sticky light header (shared, id kept for legacy JS)
============================================================ */
#mainNav {
  position: sticky; top: 0; left: auto; right: auto; transform: none;
  z-index: 200; width: 100%; max-width: none; border-radius: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 15px 28px; height: auto;
  background: oklch(0.972 0.008 85 / 0.82);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: none; border-bottom: 1px solid var(--line);
  padding-left: max(28px, calc((100% - 1180px) / 2 + 28px));
  padding-right: max(28px, calc((100% - 1180px) / 2 + 28px));
  box-shadow: 0 1px 0 oklch(0.24 0.02 60 / 0.04), 0 6px 20px -18px oklch(0.24 0.02 60 / 0.5);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
#mainNav.scrolled {
  background: oklch(0.972 0.008 85 / 0.96);
  box-shadow: 0 1px 0 oklch(0.24 0.02 60 / 0.06), 0 16px 40px -26px oklch(0.24 0.02 60 / 0.62);
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 30px; width: auto; display: block; }
.foot-logo { height: 27px; }
.brand-mark {
  width: 27px; height: 27px; border-radius: 8px; background: var(--accent); color: oklch(0.98 0.01 85);
  display: grid; place-items: center; font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500;
  box-shadow: 0 4px 12px -4px color-mix(in oklab, var(--accent) 80%, transparent);
}
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 15px; }
.nav-links > a { color: oklch(0.42 0.02 60); text-decoration: none; transition: color 0.18s; }
.nav-links > a:hover, .nav-links > a.active { color: var(--accent); }

.nav-ctas { display: flex; align-items: center; gap: 12px; }

/* ---------- nav dropdowns ----------
   Label says where, the <em> line says why. Opens on hover and on keyboard
   focus, so it is reachable without a mouse. Hidden entirely below 980px.
   the mobile panel already lists every destination flat, and a hover menu on
   a touch screen is a trap. */
.nav-drop { position: relative; display: inline-flex; align-items: center; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-drop .caret { font-size: 9px; opacity: .55; transition: transform .18s ease; }
.nav-drop:hover .caret, .nav-drop:focus-within .caret { transform: translateY(1px); opacity: 1; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 11px); left: -22px; transform: translateY(-6px);
  display: grid; gap: 2px; min-width: 288px; padding: 8px;
  background: var(--paper-hi, #fff); border: 1px solid var(--line, #e7e2d9);
  border-radius: 16px; box-shadow: 0 24px 48px -26px oklch(0.24 0.02 60 / 0.55);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 300;
}
/* a hoverable bridge, so the pointer can cross the gap without the menu closing */
.nav-drop::after { content: ''; position: absolute; top: 100%; left: -22px; right: -22px; height: 13px; }
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.nav-drop-menu a {
  display: block; padding: 11px 14px; border-radius: 11px; text-decoration: none;
  font-size: 14.5px; font-weight: 600; color: var(--ink, #2a2118); line-height: 1.3;
  transition: background .16s ease, color .16s ease;
}
.nav-drop-menu a em {
  display: block; margin-top: 3px; font-style: normal; font-weight: 400;
  font-size: 13px; line-height: 1.4; color: var(--ink-soft, #8a7b6c);
}
.nav-drop-menu a:hover, .nav-drop-menu a:focus-visible {
  background: oklch(0.955 0.012 85); color: var(--accent);
}
.nav-drop-menu a:hover em, .nav-drop-menu a:focus-visible em { color: var(--ink-2, #57493c); }
@media (prefers-reduced-motion: reduce) {
  .nav-drop-menu { transition: none; }
}
@media (max-width: 980px) {
  .nav-drop-menu, .nav-drop .caret { display: none; }
}

/* Matches .btn-outline on the homepage so the header reads the same on
   every page. */
.nav-ghost {
  font-size: 15px; font-weight: 500; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--line-2); color: oklch(0.3 0.02 60) !important;
  text-decoration: none; transition: all 0.2s ease; white-space: nowrap;
}
.nav-ghost:hover { border-color: var(--accent); color: var(--accent) !important; transform: translateY(-1px); }
.nav-cta {
  font-size: 15px; font-weight: 500; padding: 10px 18px; border-radius: 10px;
  background: var(--ink); color: oklch(0.97 0.008 85) !important;
  text-decoration: none; transition: all 0.2s ease; white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }

/* MOBILE MENU (hamburger + panel) */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 5px 0; border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

#mainNav .mobile-menu { display: none; }
@media (max-width: 900px) {
  /* A full-height sheet, not a panel hanging off the header. Sized to its own
     content it stopped mid-page and the hero showed underneath, which reads as
     a rendering fault rather than a menu.
     The nav sets backdrop-filter, and that makes it the containing block for
     position:fixed children, so `bottom:0` resolved against the 73px nav, not
     the viewport, and the sheet collapsed. Hence top:100% (the nav's own lower
     edge) plus an explicit viewport-based height. dvh so mobile browser chrome
     does not cut it off. */
  #mainNav .mobile-menu.nav-open {
    display: flex; flex-direction: column; gap: 2px;
    position: fixed; top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--navh, 62px));
    height: calc(100dvh - var(--navh, 62px));
    background: oklch(0.985 0.006 85);
    box-shadow: 0 30px 50px -30px oklch(0.24 0.02 60 / 0.45);
    padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  /* the sheet owns the screen while it is open */
  body.nav-locked { overflow: hidden; }
  #mainNav .mobile-menu a, #mainNav .mobile-menu .mp-head {
    display: block; padding: 14px 12px; border-radius: 10px;
    font-size: 16.5px; color: var(--ink-2); text-decoration: none;
  }
  #mainNav .mobile-menu a:active, #mainNav .mobile-menu a.active { background: oklch(0.95 0.012 80); color: var(--ink); }
  /* a dropdown becomes a disclosure: the sheet opens on five rows, not eleven */
  #mainNav .mobile-menu .mp-head {
    width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
    font-family: inherit; font-weight: 400;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
  }
  #mainNav .mobile-menu .mp-chev { font-size: 11px; opacity: .5; transition: transform .2s ease; }
  #mainNav .mobile-menu .mp-head[aria-expanded="true"] { color: var(--ink); font-weight: 600; }
  #mainNav .mobile-menu .mp-head[aria-expanded="true"] .mp-chev { transform: rotate(180deg); opacity: 1; }
  #mainNav .mobile-menu .mp-sub {
    display: grid; gap: 1px; margin: 2px 0 6px 12px;
    border-left: 1px solid var(--line);
  }
  #mainNav .mobile-menu .mp-sub[hidden] { display: none; }
  #mainNav .mobile-menu .mp-sub a { font-size: 15.5px; padding: 11px 12px; color: var(--ink-soft); }
  #mainNav .mobile-menu .mp-cta {
    margin-top: 10px; text-align: center; background: var(--ink);
    color: oklch(0.97 0.008 85); font-weight: 600; border-radius: 11px;
  }
}

/* NAV DROPDOWN (sub-services) */
.has-sub { position: relative; }
.nav-sub-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 400;
  color: oklch(0.42 0.02 60); transition: color 0.18s;
}
.nav-sub-toggle:hover, .has-sub:hover .nav-sub-toggle, .has-sub:focus-within .nav-sub-toggle { color: var(--accent); }
.nav-sub-toggle svg { width: 9px; height: 9px; transition: transform 0.25s; }
.has-sub:hover .nav-sub-toggle svg, .has-sub:focus-within .nav-sub-toggle svg { transform: rotate(180deg); }
.nav-sub {
  position: absolute; top: calc(100% + 14px); right: 0; min-width: 210px;
  background: var(--paper-hi);
  border: 1px solid var(--line); border-radius: 14px; padding: 10px;
  box-shadow: 0 24px 50px -24px oklch(0.24 0.02 60 / 0.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub, .has-sub.open .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-sub::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-sub-head {
  display: block; font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-faint); padding: 8px 12px 6px;
}
.nav-sub a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
  font-size: 14px; color: var(--ink-2); text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-sub a:hover, .nav-sub a.active { background: oklch(0.95 0.012 80); color: var(--ink); }
.nav-sub a .sub-ic {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: color-mix(in oklab, var(--sage) 20%, transparent); border: 1px solid color-mix(in oklab, var(--sage) 40%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.nav-sub a .sub-ic svg { width: 13px; height: 13px; stroke: var(--accent); }

/* ============================================================
   FOOTER: light warm (shared markup)
============================================================ */
footer { margin-top: 92px; border-top: 1px solid var(--line); background: oklch(0.955 0.01 85 / 0.8); }
.foot-main {
  max-width: 1180px; margin: 0 auto; padding: 56px 28px 32px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 0.9fr 1.15fr; gap: 34px;
}
.foot-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; margin-bottom: 14px; color: var(--ink); }
.foot-about { font-size: 15px; line-height: 1.6; color: oklch(0.46 0.02 60); margin-bottom: 16px; max-width: 30em; }
.foot-mail { font-size: 15px; font-weight: 500; color: var(--accent); text-decoration: none; }
/* Grow sits under the address in the first column rather than in Resources.
   it is an off-site property, not one of this site's pages. */
.foot-grow {
  display: block; margin-top: 12px; font-size: 14.5px; font-weight: 500;
  color: var(--ink-3); text-decoration: none;
}
.foot-grow:hover { color: var(--accent); }
.foot-col h4, .foot-col .foot-h {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 500; margin-bottom: 14px;
}
.foot-links { display: grid; gap: 10px; font-size: 15px; }
.foot-links a { color: oklch(0.4 0.02 60); text-decoration: none; transition: color 0.18s; }
.foot-links a:hover { color: var(--accent); }
.foot-bottom {
  max-width: 1180px; margin: 0 auto; padding: 20px 28px 40px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between;
  font-size: 13px; color: var(--ink-soft);
}
.foot-bottom a { color: var(--ink-soft); text-decoration: none; }
.foot-bottom a:hover { color: var(--accent); }

/* ============================================================
   SHARED SERVICE-PAGE SECTIONS (light)
============================================================ */
.hero-svc {
  position: relative; min-height: auto; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
}
.hero-svc::before {
  content: ''; position: absolute; width: 640px; height: 640px; border-radius: 50%;
  top: -18%; right: -10%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, color-mix(in oklab, var(--sage) 42%, transparent), transparent 68%);
  filter: blur(30px);
  animation: drift 26s ease-in-out infinite;
}
.hero-svc-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0.5; }
.hero-svc-inner {
  position: relative; z-index: 2; width: 100%;
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px;
  align-items: center; padding: 72px 28px 64px;
}
.hero-text h1 {
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: clamp(42px, 5.5vw, 60px); color: var(--ink);
  line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 20px; text-wrap: pretty;
}
.hero-text h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero-text p {
  font-size: 17px; color: var(--ink-3);
  line-height: 1.6; font-weight: 400; max-width: 33em; margin-bottom: 26px; text-wrap: pretty;
}

.hero-label { margin-bottom: 20px; }
.hero-label-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}
.hero-label span {
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent);
}

.hero-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.hero-feat { display: flex; align-items: center; gap: 10px; }
.hero-feat-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: color-mix(in oklab, var(--sage) 24%, transparent); border: 1px solid color-mix(in oklab, var(--sage) 60%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.hero-feat-check svg { width: 10px; height: 10px; }
.hero-feat span { font-size: 15px; color: var(--ink-2); font-weight: 400; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Inline row of 3 key stats: one line always */
.hero-stats {
  display: flex; align-items: stretch; gap: 0; margin-top: 32px;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.hero-stat { flex: 1; padding-right: 18px; }
.hero-stat + .hero-stat { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-stat-num {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(24px, 3.4vw, 32px); color: var(--ink);
  letter-spacing: -0.5px; line-height: 1;
}
.hero-stat-num em { font-style: normal; color: var(--accent); }
.hero-stat-label {
  font-size: 12px; color: var(--ink-soft); margin-top: 8px;
  line-height: 1.3; letter-spacing: 0.2px;
}

/* CARD VISUALS (device mockups on light) */
.card-wrap {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 460px;
}
.card-glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: color-mix(in oklab, var(--sage) 33%, transparent); filter: blur(60px);
  animation: drift 12s ease-in-out infinite; pointer-events: none;
}
.card-badge {
  position: absolute; top: -14px; right: -10px; z-index: 3;
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  background: var(--accent); color: oklch(0.98 0.01 85);
  padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 4px 16px color-mix(in oklab, var(--accent) 35%, transparent);
}
.card-stat {
  position: absolute; bottom: -16px; left: -12px; z-index: 3;
  background: var(--paper-hi); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 18px 38px -20px oklch(0.24 0.02 60 / 0.5);
}
.card-stat-num {
  font-family: 'Instrument Serif', serif; font-size: 24px; font-weight: 400;
  color: var(--ink); letter-spacing: -0.5px; line-height: 1;
}
.card-stat-label { font-size: 11px; color: var(--ink-soft); line-height: 1.35; max-width: 100px; }

/* SECTION HEADINGS */
.section-h {
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: clamp(34px, 4vw, 46px); color: var(--ink);
  line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 44px;
}
.section-h em { font-style: italic; font-weight: 400; color: var(--accent); }
.section-h.center { text-align: center; }

/* SECTION WRAPPERS */
.how-section, .features-section { padding: 88px 28px; background: transparent; position: relative; }
.how-section-inner, .features-section-inner { max-width: 1180px; margin: 0 auto; }
.how-section .section-h, .features-section .section-h { text-align: center; }

/* STEPS */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  background: var(--paper-hi); border-radius: 18px; padding: 32px;
  border: 1px solid var(--line);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.step:hover { transform: translateY(-4px); border-color: oklch(0.8 0.03 60); box-shadow: 0 24px 44px -32px oklch(0.24 0.02 60 / 0.45); }
.step-num {
  font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 500;
  color: var(--accent); line-height: 1; margin-bottom: 14px;
}
.step-title {
  font-family: 'Instrument Serif', serif; font-size: 22px; font-weight: 400;
  color: var(--ink); letter-spacing: -0.3px; margin-bottom: 10px;
}
.step-desc { font-size: 14px; line-height: 1.7; color: var(--ink-3); font-weight: 400; }

/* FEATURE CARDS */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat-card {
  background: var(--paper-hi); border-radius: 18px; padding: 30px;
  border: 1px solid var(--line);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.feat-card:hover { transform: translateY(-4px); border-color: oklch(0.8 0.03 60); box-shadow: 0 24px 44px -32px oklch(0.24 0.02 60 / 0.45); }
.feat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in oklab, var(--sage) 20%, transparent); border: 1px solid color-mix(in oklab, var(--sage) 40%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feat-icon svg { width: 20px; height: 20px; stroke: var(--accent); }
.feat-title {
  font-family: 'Instrument Serif', serif; font-size: 20px; font-weight: 400;
  color: var(--ink); letter-spacing: -0.3px; margin-bottom: 8px;
}
.feat-desc { font-size: 14px; line-height: 1.7; color: var(--ink-3); font-weight: 400; }

/* THE PROBLEM */
.problem-section { padding: 88px 28px; background: transparent; }
.problem-inner { max-width: 1180px; margin: 0 auto; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.problem-card {
  background: var(--paper-hi);
  border: 1px solid var(--line); border-radius: 18px; padding: 30px;
}
.problem-icon {
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px;
  background: color-mix(in oklab, var(--sage) 20%, transparent); border: 1px solid color-mix(in oklab, var(--sage) 44%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-family: 'DM Mono', monospace; font-size: 18px; font-weight: 500;
}
.problem-title {
  font-family: 'Instrument Serif', serif; font-size: 20px; font-weight: 400;
  color: var(--ink); letter-spacing: -0.3px; margin-bottom: 10px;
}
.problem-desc { font-size: 14px; line-height: 1.7; color: var(--ink-3); font-weight: 400; }

/* PROOF / RESULT: dark warm panel */
.getlist-section { padding: 88px 28px; background: transparent; }
.getlist-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 0.85fr; gap: 56px; align-items: center;
}
.getlist ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.getlist li { display: flex; gap: 14px; align-items: flex-start; }
.getlist-check {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background: color-mix(in oklab, var(--sage) 24%, transparent); border: 1px solid color-mix(in oklab, var(--sage) 60%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.getlist-check svg { width: 11px; height: 11px; }
.getlist li span { font-size: 15px; color: var(--ink-3); line-height: 1.6; }
.getlist li strong { color: var(--ink); font-weight: 600; }

.result-card {
  background: var(--dark);
  border: none; border-radius: 24px; padding: 44px;
  position: relative; overflow: hidden; color: oklch(0.95 0.01 85);
  box-shadow: 0 40px 80px -50px oklch(0.24 0.02 60 / 0.7);
}
.result-card::before {
  content: ''; position: absolute; top: -70px; right: -70px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--sage) 60%, transparent), transparent 66%);
  filter: blur(16px);
}
.result-card-num {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(52px, 7vw, 72px); color: var(--sage);
  line-height: 0.95; letter-spacing: -1px; margin-bottom: 6px; position: relative;
}
.result-card-cap { font-size: 13px; color: oklch(0.76 0.012 85); margin-bottom: 24px; position: relative; }
.result-card-quote {
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  font-size: 20px; line-height: 1.5; color: oklch(0.93 0.01 85);
  margin-bottom: 24px; position: relative;
}
.result-card-author { display: flex; align-items: center; gap: 12px; position: relative; }
.result-card-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: oklch(0.34 0.02 60); display: flex; align-items: center; justify-content: center;
  font-family: 'Instrument Serif', serif; font-size: 16px; color: oklch(0.9 0.01 85);
}
.result-card-name { font-size: 14px; font-weight: 700; color: oklch(0.95 0.01 85); }
.result-card-role { font-size: 12px; color: oklch(0.72 0.012 85); }

/* STATS BAND (legacy) */
.stats-band { padding: 0 28px; }
.stats-band-inner {
  max-width: 1180px; margin: 0 auto;
  background: var(--dark); color: oklch(0.95 0.01 85);
  border: none; border-radius: 24px;
  padding: 56px 40px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  box-shadow: 0 40px 80px -50px oklch(0.24 0.02 60 / 0.7);
}
.stats-band-inner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 80% -10%, color-mix(in oklab, var(--sage) 60%, transparent), transparent 55%);
}
.stat-block { text-align: center; position: relative; }
.stat-num {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(34px, 4.6vw, 50px); color: oklch(0.95 0.01 85);
  letter-spacing: -1px; line-height: 1;
}
.stat-num em { font-style: normal; color: var(--sage); }
.stat-label { font-size: 12px; color: oklch(0.72 0.012 85); margin-top: 10px; line-height: 1.4; }

/* FAQ */
.faq-section { padding: 88px 28px; background: transparent; }
.faq-inner { max-width: 820px; margin: 0 auto; }
.faq-inner .section-h { text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--paper-hi); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; transition: border-color 0.2s;
}
.faq-item:hover, .faq-item.open { border-color: oklch(0.8 0.03 60); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 500; color: var(--ink);
}
.faq-icon { flex-shrink: 0; width: 16px; height: 16px; position: relative; transition: transform 0.25s; }
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; background: var(--accent); border-radius: 2px;
}
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-icon::after { left: 7px; top: 0; width: 2px; height: 16px; transition: transform 0.25s; }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner {
  padding: 0 22px 22px; font-size: 15px; line-height: 1.7;
  color: var(--ink-3); font-weight: 400;
}

/* TESTIMONIALS */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial-card {
  background: var(--paper-hi); border-radius: 18px; padding: 32px 30px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.testimonial-card:hover { transform: translateY(-4px); border-color: oklch(0.8 0.03 60); box-shadow: 0 24px 44px -32px oklch(0.24 0.02 60 / 0.45); }
.testimonial-stars { display: flex; gap: 3px; }
.testimonial-stars svg { width: 15px; height: 15px; }
.testimonial-quote { font-size: 15px; line-height: 1.7; color: var(--ink-3); flex: 1; }
.testimonial-quote strong { font-weight: 600; color: var(--ink); }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--dark); display: flex; align-items: center; justify-content: center;
  font-family: 'Instrument Serif', serif; font-size: 16px; color: oklch(0.9 0.01 85);
}
.testimonial-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.testimonial-role { font-size: 12px; color: var(--ink-soft); }

/* CTA SECTION: light halo panel */
.cta-section { padding: 88px 28px; }
.cta-inner {
  max-width: 1180px; margin: 0 auto;
  background: oklch(0.995 0.004 85 / 0.92);
  border: 1px solid oklch(0.88 0.015 80);
  border-radius: 24px; overflow: hidden;
  display: grid; grid-template-columns: 1fr; min-height: 280px;
  position: relative;
  box-shadow: 0 40px 80px -54px oklch(0.24 0.02 60 / 0.6);
}
.cta-inner::before {
  content: ''; position: absolute; top: -60%; left: 50%; width: 700px; height: 700px;
  margin-left: -350px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in oklab, var(--sage) 27%, transparent), transparent 62%);
}
.cta-text {
  padding: 70px 52px; position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center;
}
.cta-text h2 {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(34px, 3.8vw, 50px);
  color: var(--ink); line-height: 1.06; letter-spacing: -0.015em; margin-bottom: 16px;
}
.cta-text h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
.cta-text p {
  font-size: 16px; color: var(--ink-3); line-height: 1.6;
  max-width: 34em; margin-bottom: 30px;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* SCROLL TO TOP */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 12px 26px -12px color-mix(in oklab, var(--accent) 85%, transparent);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--accent-dk); }
.scroll-top svg { width: 18px; height: 18px; }

/* ANIMATIONS */
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.78); opacity: 0.35; }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(3%,-4%) scale(1.06); }
  66% { transform: translate(-3%,3%) scale(0.96); }
}
@keyframes cfRise { from { opacity: 0; transform: translateY(22px) } to { opacity: 1; transform: none } }

/* ============================================================
   RESPONSIVE: SHARED
============================================================ */
@media (max-width: 900px) {
  #mainNav { padding: 13px 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  #mainNav .nav-ctas { display: none; }

  .hero-svc-inner { grid-template-columns: 1fr; gap: 40px; padding: 48px 20px 52px; }
  .hero-text h1 { font-size: clamp(38px, 9vw, 50px); }
  .hero-text p { max-width: 100%; }
  .card-wrap { height: auto; min-height: 420px; }
  .card-badge { top: -10px; right: -6px; font-size: 10px; padding: 5px 10px; }
  .card-stat { bottom: -12px; left: -8px; padding: 10px 14px; }
  .card-stat-num { font-size: 19px; }
  .steps-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .how-section, .features-section, .problem-section, .faq-section, .getlist-section { padding: 64px 20px; }
  .getlist-inner { grid-template-columns: 1fr; gap: 40px; }
  .section-h { margin-bottom: 36px; }
  .stats-band-inner { grid-template-columns: 1fr 1fr; gap: 36px 20px; padding: 44px 28px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 64px 20px; }
  .cta-text { padding: 48px 24px; }
  .foot-main { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 600px) {
  .hero-svc-inner { padding: 40px 20px 44px; gap: 32px; }
  .hero-text h1 { font-size: 36px; }
  .hero-feat span { font-size: 14px; }
  .card-wrap { min-height: 380px; }
  .card-glow { width: 220px; height: 220px; }
  .feat-grid { grid-template-columns: 1fr; }
  .step { padding: 26px; }
  .feat-card { padding: 24px; }
  .hero-stats { padding-top: 20px; }
  .hero-stat { padding-right: 12px; }
  .hero-stat + .hero-stat { padding-left: 12px; }
  .cta-actions { flex-direction: column; align-items: center; width: 100%; }
  .cta-actions a { width: 100%; justify-content: center; }
  .foot-main { grid-template-columns: 1fr; }
}

/* MOTION */
@media (max-width: 900px) {
  .hero-svc::before, .card-glow { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- mobile touch targets ----------
   Text links sat at 15-19px tall on a phone, well under the ~44px both Apple
   and Google ask for. Padding gives them a real target without changing how
   they look; the grid gap absorbs most of the added height. */
@media (max-width: 760px) {
  .foot-links { gap: 2px; }
  .foot-links a { display: inline-block; padding: 11px 0; }
  .foot-mail { display: inline-block; padding: 10px 0; }
  .foot-grow { padding: 10px 0; margin-top: 4px; }
  .foot-bottom a { display: inline-block; padding: 8px 4px; margin: -8px 0; }
  .foot-bottom span { line-height: 1.9; }

  /* Links sitting inside a paragraph or a list item. Vertical padding on an
     inline box grows the hit area without growing the line box, so the copy
     around them does not reflow. */
  p a:not([class]), li a:not([class]),
  .policy-body a, .terms-body a { padding: 9px 0; }
}

/* ============================================================
   SERVICE PAGES (.sp-*)
   Generated by tools/service-pages.py. One namespace, defined once,
   so the four service pages cannot drift apart the way the hand-copied
   vertical pages did. The section order is the conversion spine: the
   offer appears in the hero, mid-page, and in the close.
   ============================================================ */
.sp-hero { max-width: 1180px; margin: 0 auto; padding: 54px 28px 0; }
.sp-crumb {
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
}
.sp-crumb a { color: var(--accent); text-decoration: none; }
.sp-crumb a:hover { text-decoration: underline; }
.sp-crumb span[aria-hidden] { opacity: .4; }
.sp-hero h1 {
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: clamp(38px, 6vw, 68px); line-height: 1.04; letter-spacing: -.02em;
  margin: 10px 0 0; max-width: 17ch;
}
.sp-hero h1 em { font-style: italic; color: var(--accent); }
.sp-lede {
  margin: 22px 0 0; max-width: 60ch; font-size: 18.5px; line-height: 1.62; color: var(--ink-2);
}
.sp-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sp-cta, .sp-cta2 {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px; border-radius: 12px; text-decoration: none;
  font-size: 16px; font-weight: 600; line-height: 1;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.sp-cta { background: var(--accent); color: oklch(0.98 0.01 85); }
.sp-cta:hover { background: var(--accent-dk); transform: translateY(-2px); color: oklch(0.98 0.01 85); }
.sp-cta2 { background: transparent; color: var(--ink); border: 1px solid var(--line-2, #d9d2c6); }
.sp-cta2:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.sp-fine {
  margin: 16px 0 0; max-width: 54ch;
  font-family: 'DM Mono', monospace; font-size: 12.5px; line-height: 1.65; color: var(--ink-soft);
}

.sp-sec { max-width: 1180px; margin: 0 auto; padding: 72px 28px 0; }
.sp-sec h2 {
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.018em; margin: 8px 0 0;
}
.sp-sec h2 em { font-style: italic; color: var(--accent); }

/* the symptom cards: named in the owner's words, not ours */
.sp-symps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.sp-symp { border: 1px solid var(--line); background: var(--paper-hi); border-radius: 16px; padding: 24px 24px 26px; }
.sp-symp h3 { font-size: 17px; font-weight: 600; margin: 0 0 9px; line-height: 1.3; color: var(--ink); }
.sp-symp p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

.sp-steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.sp-steps li {
  display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start;
  border: 1px solid var(--line); background: var(--paper-hi); border-radius: 16px; padding: 22px 26px;
}
.sp-n { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--accent); padding-top: 2px; }
.sp-steps h3 { font-size: 17px; font-weight: 600; margin: 0 0 7px; line-height: 1.35; color: var(--ink); }
.sp-when {
  display: inline-block; margin-left: 10px; padding: 3px 9px; border-radius: 20px;
  background: oklch(0.955 0.012 85); border: 1px solid var(--line);
  font-family: 'DM Mono', monospace; font-size: 10.5px; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); vertical-align: 2px;
}
.sp-steps p { margin: 0; font-size: 15.5px; line-height: 1.62; color: var(--ink-2); }

/* the offer, repeated where the reader is warmest */
.sp-band { max-width: 1180px; margin: 72px auto 0; padding: 0 28px; }
.sp-band-in {
  background: var(--dark, #241f1a); color: oklch(0.95 0.008 85);
  border-radius: 22px; padding: 44px 46px; position: relative; overflow: hidden;
}
.sp-band-in h2 {
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; margin: 0 0 12px;
}
.sp-band-in p { margin: 0; max-width: 56ch; font-size: 16px; line-height: 1.62; color: oklch(0.86 0.012 85); }
.sp-cta.on-band { background: var(--accent); }
.sp-cta2.on-band { color: oklch(0.95 0.008 85); border-color: oklch(0.95 0.008 85 / 0.3); }
.sp-cta2.on-band:hover { border-color: oklch(0.95 0.008 85 / 0.7); color: oklch(0.98 0.01 85); }

.sp-get { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.sp-get li {
  position: relative; padding: 13px 0 13px 32px; font-size: 16px; line-height: 1.55; color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.sp-get li::before {
  content: '\2713'; position: absolute; left: 4px; top: 13px;
  font-size: 13px; color: var(--accent); font-weight: 700;
}

.sp-proof {
  margin: 26px 0 0; padding: 34px 38px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--paper-hi);
  border-left: 3px solid var(--accent);
}
.sp-proof blockquote {
  margin: 0; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: clamp(21px, 2.6vw, 28px); line-height: 1.34; letter-spacing: -.012em; color: var(--ink);
}
.sp-proof figcaption {
  margin-top: 16px; font-family: 'DM Mono', monospace; font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
}
.sp-proof-link { display: inline-block; margin-top: 18px; font-size: 15.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.sp-proof-link:hover { text-decoration: underline; }

/* <details> so the answers are in the served HTML, open or closed */
.sp-faq { margin-top: 26px; display: grid; gap: 10px; max-width: 860px; }
.sp-faq details { border: 1px solid var(--line); background: var(--paper-hi); border-radius: 14px; }
.sp-faq summary { list-style: none; cursor: pointer; padding: 19px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after { content: '+'; font-family: 'DM Mono', monospace; font-size: 19px; color: var(--accent); flex: none; }
.sp-faq details[open] summary::after { content: '\2212'; }
.sp-faq summary h3 { margin: 0; font-size: 16.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.sp-faq details p { margin: 0; padding: 0 24px 22px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); max-width: 68ch; }
.sp-faq details a { color: var(--accent); }

.sp-close { max-width: 1180px; margin: 76px auto 0; padding: 0 28px; }
.sp-close-in {
  background: var(--dark, #241f1a); color: oklch(0.95 0.008 85);
  border-radius: 24px; padding: 52px 48px; position: relative; overflow: hidden;
}
.sp-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 30px;
  border: 1px solid oklch(0.95 0.008 85 / 0.25);
  font-family: 'DM Mono', monospace; font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: oklch(0.9 0.01 85);
}
.sp-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.sp-close-in h2 {
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: clamp(30px, 4.4vw, 48px); line-height: 1.06; letter-spacing: -.018em;
  margin: 20px 0 14px; max-width: 20ch;
}
.sp-close-in h2 em { font-style: italic; color: var(--sage); }
.sp-close-in p { margin: 0; max-width: 56ch; font-size: 16px; line-height: 1.62; color: oklch(0.86 0.012 85); }

.sp-rel { padding-bottom: 86px; }
.sp-rels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.sp-rels a {
  display: block; border: 1px solid var(--line); background: var(--paper-hi);
  border-radius: 16px; padding: 22px 24px; text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.sp-rels a:hover { border-color: var(--accent); transform: translateY(-2px); }
.sp-rels b { display: block; font-size: 16.5px; color: var(--ink); margin-bottom: 6px; }
.sp-rels span { display: block; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

@media (max-width: 900px) {
  .sp-symps, .sp-rels { grid-template-columns: 1fr; }
  .sp-get { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .sp-hero { padding: 36px 20px 0; }
  .sp-sec { padding: 54px 20px 0; }
  .sp-band, .sp-close { padding: 0 20px; }
  .sp-band-in { padding: 32px 26px; }
  .sp-close-in { padding: 36px 26px; }
  .sp-steps li { grid-template-columns: 1fr; gap: 6px; padding: 20px 22px; }
  .sp-ctas .sp-cta, .sp-ctas .sp-cta2 { flex: 1 1 100%; }
  .sp-proof { padding: 26px 24px; }
}

/* the /services hub grid: cards that lead to the real pages, so the hub
   does not compete with them for the same searches the way the old
   long-form version did */
.sp-hub { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.sp-hub.two { grid-template-columns: repeat(2, 1fr); }
.sp-hubcard {
  display: flex; flex-direction: column; gap: 7px;
  border: 1px solid var(--line); background: var(--paper-hi);
  border-radius: 18px; padding: 28px 30px 26px; text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.sp-hubcard:hover {
  border-color: var(--accent); transform: translateY(-3px);
  box-shadow: 0 18px 34px -24px oklch(0.24 0.02 60 / 0.5);
}
.sp-hubn { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--accent); }
.sp-hubk {
  font-family: 'DM Mono', monospace; font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft);
}
.sp-hubcard b {
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: 27px; line-height: 1.15; letter-spacing: -.015em; color: var(--ink);
}
.sp-hubd { font-size: 15.5px; line-height: 1.58; color: var(--ink-2); }
.sp-hubgo { margin-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--accent); }
@media (max-width: 820px) {
  .sp-hub, .sp-hub.two { grid-template-columns: 1fr; }
}

/* ---------- real photography on the service pages ----------
   Shot at venues we build and host, and credited to them in the caption. The
   hero stops being a column of text with dead space beside it. */
.sp-hero { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.sp-herocopy { min-width: 0; }
.sp-herofig { margin: 0; position: relative; }
.sp-herofig img {
  width: 100%; height: auto; max-height: 520px; object-fit: cover; object-position: center center;
  border-radius: 20px; display: block;
  box-shadow: 0 30px 60px -34px oklch(0.24 0.02 60 / 0.6);
}

.sp-wideband { padding-top: 72px; }
.sp-wide { margin: 0; }
.sp-wide img {
  width: 100%; height: clamp(260px, 38vw, 440px); object-fit: cover; object-position: center center;
  border-radius: 22px; display: block;
}
@media (max-width: 900px) {
  .sp-hero { grid-template-columns: 1fr; gap: 30px; }
  .sp-herofig img { max-height: 340px; }
  .sp-wideband { padding-top: 54px; }
}

/* ============================================================
   VERTICAL / "WHO WE HELP" PAGES (.vp-*)
   Generated by tools/vertical-pages.py. These were hand-written and had
   gone wordy: three paragraphs where a photograph and one sentence
   would do. Every block here has room for a heading and about thirty
   words, so the page cannot sprawl. Photographs carry it.
   ============================================================ */
.vp-hero { max-width: 1180px; margin: 0 auto; padding: 54px 28px 0; text-align: center; }
.vp-hero .sp-crumb { justify-content: center; }
.vp-hero h1 {
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: clamp(44px, 7.2vw, 86px); line-height: 1.0; letter-spacing: -.025em;
  margin: 12px auto 0; max-width: 16ch;
}
.vp-hero h1 em { font-style: italic; color: var(--accent); }
.vp-lede {
  margin: 22px auto 0; max-width: 54ch; font-size: 19px; line-height: 1.6; color: var(--ink-2);
}
.vp-hero .sp-ctas { justify-content: center; }
.vp-hero .sp-fine { margin: 16px auto 0; text-align: center; max-width: 52ch; }

.vp-heroimg { max-width: 1180px; margin: 44px auto 0; padding: 0 28px; }
.vp-hi {
  width: 100%; height: clamp(280px, 42vw, 520px); object-fit: cover;
  object-position: center center; border-radius: 22px; display: block;
}

/* client marks under the hero: logo only, no names in the copy */
.vp-logos { max-width: 1180px; margin: 34px auto 0; padding: 0 28px; text-align: center; }
.vp-logos .kicker { display: block; margin-bottom: 14px; }
.vp-logorow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 40px; }
.vp-logo { height: 64px; width: auto; max-width: 220px; object-fit: contain; display: block; background: #fff; padding: 8px 14px; border: 1px solid var(--line); border-radius: 14px; box-sizing: content-box; }

.vp-kinds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.vp-kind { border: 1px solid var(--line); background: var(--paper-hi); border-radius: 16px; padding: 26px 28px; }
.vp-kind h3 { font-size: 17.5px; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.vp-kind p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

.vp-truths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.vp-truth { border-top: 2px solid var(--accent); padding: 20px 2px 0; }
.vp-truth h3 {
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: 23px; line-height: 1.22; letter-spacing: -.012em; margin: 0 0 9px; color: var(--ink);
}
.vp-truth p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

.vp-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vp-si {
  width: 100%; height: clamp(190px, 24vw, 310px); object-fit: cover;
  object-position: center center; border-radius: 16px; display: block;
}

.vp-plan { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; }
.vp-plan li {
  display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: baseline;
  padding: 22px 2px; border-top: 1px solid var(--line);
}
.vp-plan li:last-child { border-bottom: 1px solid var(--line); }
.vp-when {
  font-family: 'DM Mono', monospace; font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.vp-what { font-size: 17px; line-height: 1.5; color: var(--ink-2); }

@media (max-width: 900px) {
  .vp-kinds, .vp-truths { grid-template-columns: 1fr; }
  .vp-strip { grid-template-columns: 1fr; }
  .vp-si { height: 230px; }
  .vp-plan li { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 620px) {
  .vp-hero { padding: 36px 20px 0; }
  .vp-heroimg { padding: 0 20px; margin-top: 30px; }
  .vp-hero .sp-ctas .sp-cta, .vp-hero .sp-ctas .sp-cta2 { flex: 1 1 100%; }
}

/* ============================================================
   EVERY CONTENT IMAGE IS CURVED
   One rule rather than a radius remembered per component, which is how
   the hero mosaic ended up rounded and the full-bleed band square.
   Brand marks are excluded: a logo with rounded corners is a clipped logo.
   ============================================================ */
img, picture > img, figure img, video {
  border-radius: 16px;
}
.brand-logo, .foot-logo, .mq-logo img, .brand img,
img[src*="/logos/"], img[src*="favicon"], .team-photo img, .avatar img {
  border-radius: 0;
}
.mq-logo.on-dark, .mq-logo.on-red { border-radius: 9px; }
@media (max-width: 620px) { img, picture > img, figure img, video { border-radius: 12px; } }

/* ---------- the season as its own trading calendar ---------- */
.vp-cal { margin-top: 34px; max-width: 880px; }
.vp-calhead, .vp-calrow {
  display: grid; grid-template-columns: 92px repeat(7, 1fr); gap: 6px; align-items: center;
}
.vp-calhead { margin-bottom: 6px; }
.vc-dow, .vc-wk {
  font-family: 'DM Mono', monospace; font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
}
.vc-dow { text-align: center; }
.vp-calrow { margin-bottom: 6px; }
.vc-d {
  /* a square cell on a 1120px row is 145px tall and the calendar becomes a
     thousand-pixel wall; these are short bands instead */
  display: block; height: clamp(30px, 3.4vw, 46px); border-radius: 6px;
  background: oklch(0.55 var(--accent-c) var(--accent-h) / calc(var(--i, 0) * 0.92 + 0.06));
}
.vc-off { background: transparent; border: 1px dashed var(--line-2); }
.vp-callegend {
  display: flex; align-items: center; gap: 7px; margin-top: 16px;
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
}
.vp-callegend i { width: 15px; height: 15px; border-radius: 4px; display: block; flex: none; }
.vp-callegend .vc-l1 { --i: .18 } .vp-callegend .vc-l2 { --i: .42 }
.vp-callegend .vc-l3 { --i: .68 } .vp-callegend .vc-l4 { --i: 1 }
.vp-note {
  margin: 18px 0 0; max-width: 74ch; padding-left: 18px;
  border-left: 2px solid var(--line-2);
  font-size: 15px; line-height: 1.62; color: var(--ink-soft);
}
.vp-note a { color: var(--accent); }
@media (max-width: 620px) {
  .vp-calhead, .vp-calrow { grid-template-columns: 58px repeat(7, 1fr); gap: 4px; }
  .vc-wk { font-size: 9px; letter-spacing: .04em; }
  .vc-d { border-radius: 4px; height: 26px; }
}

/* ---------- the services this season leans on ---------- */
.vp-run { margin-top: 34px; }
.vp-runrow {
  display: grid; grid-template-columns: 44px 1fr 28px; gap: 20px; align-items: start;
  padding: 26px 4px; border-top: 1px solid var(--line); text-decoration: none;
  transition: background .18s ease, padding .18s ease;
}
.vp-runrow:last-child { border-bottom: 1px solid var(--line); }
.vp-runrow:hover { background: var(--paper-hi); padding-left: 14px; padding-right: 14px; }
.vr-n { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--accent); padding-top: 7px; }
.vr-b { display: block; min-width: 0; }
.vr-b b {
  display: block; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: 27px; line-height: 1.12; letter-spacing: -.016em; color: var(--ink);
}
.vp-runrow:hover .vr-b b { color: var(--accent); }
.vr-l { display: block; margin: 5px 0 9px; font-size: 16px; color: var(--accent-dk); }
.vr-w { display: block; font-size: 15.5px; line-height: 1.58; color: var(--ink-2); max-width: 64ch; }
.vr-go { font-size: 18px; color: var(--ink-soft); padding-top: 6px; text-align: right; }
.vp-runrow:hover .vr-go { color: var(--accent); }

/* ---------- the searches that decide it ---------- */
.vp-q { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.vp-qrow { border-top: 2px solid var(--accent); padding-top: 18px; }
.vp-qrow h3 {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink); margin: 0 0 12px; font-weight: 500;
}
.vq-list {
  margin: 0 0 12px; font-family: 'DM Mono', monospace; font-size: 13.5px; line-height: 1.75;
  color: var(--ink-2);
}
.vq-note { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 860px) {
  .vp-q { grid-template-columns: 1fr; gap: 22px; }
  .vp-runrow { grid-template-columns: 1fr; gap: 6px; }
  .vr-go { display: none; }
  .vr-b b { font-size: 23px; }
}

/* ---------- what most venues do, against what we would do ---------- */
.vp-vs { margin-top: 34px; }
.vp-vsrow {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 46px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.vp-vsrow:last-child { border-bottom: 1px solid var(--line); }
.vp-most, .vp-inst { margin: 0; font-size: 16.5px; line-height: 1.55; }
.vp-most { color: var(--ink-soft); }
.vp-inst { color: var(--ink-2); }
.vp-most span, .vp-inst span {
  display: block; font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px;
}
.vp-most span { color: var(--ink-soft); }
.vp-inst span { color: var(--accent); }
@media (max-width: 760px) {
  .vp-vsrow { grid-template-columns: 1fr; gap: 16px; }
}

/* A section's own ask: added wherever a third section in a row would
   otherwise end without a button. tools/check-ctas.py holds the rule. */
.sec-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sp-ctas.sec-cta { margin-top: 34px; }

/* ---------- big farms & zoos directory: /farms-and-zoos and its venue pages ----------
   Rendered by tools/venue-directory.py from content/venues.json. The hub is a
   filterable grid that ships every listing in the served HTML; the script
   only hides and reorders. */
.fd-meta { margin: 14px auto 0; font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: .04em; color: var(--ink-soft); }
.fd-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fd-controls input, .fd-controls select {
  font: inherit; font-size: 14.5px; color: var(--ink); background: var(--paper-hi);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
/* search gets its own row; the five filters share the row under it */
.fd-controls input { flex: 1 1 100%; order: -1; }
.fd-controls select { flex: 1 1 0; min-width: 0; }
.fd-controls input:focus-visible, .fd-controls select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fd-count { margin: 14px 0 0; font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: .04em; color: var(--ink-soft); }
.fd-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fd-grid li[hidden] { display: none; }
.fd-card {
  display: flex; flex-direction: column; gap: 10px; height: 100%; box-sizing: border-box;
  border: 1px solid var(--line); background: var(--paper-hi); border-radius: 16px;
  padding: 0 0 20px; text-decoration: none; overflow: hidden;
  transition: border-color .18s ease, transform .18s ease;
}
.fd-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.fd-band {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 18px 20px 14px; background: var(--navy); color: oklch(0.95 0.008 85);
}
.fd-rc { font-family: 'Instrument Serif', serif; font-size: 40px; line-height: .9; }
.fd-ctry { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .14em; color: var(--sage); }
.fd-card h3 { margin: 4px 20px 0; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 25px; line-height: 1.12; color: var(--ink); }
.fd-loc { margin: 0 20px; font-family: 'DM Mono', monospace; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.fd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 20px; padding: 0; list-style: none; }
.fd-tags li { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--green-light); color: var(--sage-deep); }
.fd-line { margin: 0 20px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.fd-empty { margin: 18px 0 0; color: var(--ink-soft); }
.fd-browse { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.fd-browse a {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 99px;
  border: 1px solid var(--line-2); background: var(--paper-hi); color: var(--ink); text-decoration: none; font-size: 14px;
}
.fd-browse a:hover { border-color: var(--accent); color: var(--accent); }
.fd-browse small { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--ink-soft); }
.fd-browse-h { margin: 26px 0 0; font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); }
.fd-src { margin: 20px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.75; color: var(--ink-soft); max-width: 80ch; }
.fd-src a { color: var(--accent); }

/* what they do differently: patterns on the hub, items on a venue page */
.fd-group { padding-top: 40px; }
.fd-pats, .fd-diffs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.fd-pat, .fd-diff { border: 1px solid var(--line); background: var(--paper-hi); border-radius: 16px; padding: 22px 24px; scroll-margin-top: 90px; }
.fd-pat h3, .fd-diff h3 { margin: 0 0 8px; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 25px; line-height: 1.15; color: var(--ink); }
.fd-pat p, .fd-diff p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.fd-pat:target { border-color: var(--accent); }
.fd-seen { margin: 12px 0 0 !important; font-size: 14.5px !important; line-height: 1.6; color: var(--ink-soft) !important; }
.fd-seen span { font-family: 'DM Mono', monospace; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-deep); margin-right: 6px; }
.fd-seen a { color: var(--accent); }
.sp-sec > .fd-seen { margin-top: 18px !important; }

/* one venue */
.fd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 980px; margin: 40px auto 0; padding: 0 28px; text-align: left; }
.fd-stat { border: 1px solid var(--line); background: var(--paper-hi); border-radius: 16px; padding: 20px 22px; }
.fd-stat b { display: block; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 42px; line-height: 1; color: var(--ink); }
.fd-stat span { display: block; margin-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.fd-stat small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.fd-there { margin: 22px 0 0; padding: 0; list-style: none; max-width: 76ch; }
.fd-there li { position: relative; padding: 14px 0 14px 26px; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.fd-there li:last-child { border-bottom: 1px solid var(--line); }
.fd-there li::before { content: ''; position: absolute; left: 4px; top: 23px; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.fd-faq { margin-top: 22px; max-width: 76ch; }
.fd-faq h3 { margin: 22px 0 6px; font-size: 18px; color: var(--ink); }
.fd-faq p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.fd-faq a { color: var(--accent); }

@media (max-width: 900px) {
  .fd-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .fd-grid, .fd-stats, .fd-pats, .fd-diffs { grid-template-columns: 1fr; }
  .fd-stats { padding: 0 20px; }
  .fd-controls select { flex: 1 1 45%; }
}

/* ============================================================
   Zoo pages: green and brown instead of the seasonal blue.
   Set on <body class="theme-zoo"> (verticals.json "theme": "zoo",
   and by hand on the three zoo guides). Custom properties on body
   beat the ones on :root, including the guides' inline :root block.
   ============================================================ */
.theme-zoo {
  --bg:          oklch(0.965 0.014 80);
  --paper-hi:    oklch(0.99 0.008 80);
  --accent:      oklch(0.47 0.11 145);
  --accent-dk:   oklch(0.39 0.10 145);
  --accent-h:    145;
  --accent-c:    0.11;
  --navy:        oklch(0.28 0.045 55);
  --navy-mid:    oklch(0.33 0.045 55);
  --navy-light:  oklch(0.39 0.045 55);
  --dark:        oklch(0.28 0.045 55);
  --ink:         oklch(0.27 0.035 55);
  --ink-2:       oklch(0.37 0.03 55);
  --ink-3:       oklch(0.45 0.025 55);
  --ink-soft:    oklch(0.54 0.02 55);
  --line:        oklch(0.87 0.022 75);
  --line-2:      oklch(0.84 0.026 75);
  --border:      oklch(0.87 0.022 75);
  --text-hi:     oklch(0.27 0.035 55);
  --text:        oklch(0.45 0.025 55);
}
.theme-zoo .close-band::before { background: radial-gradient(circle, oklch(0.56 0.11 145 / 0.34), transparent 66%); }
.theme-zoo .close-band h2 em { color: oklch(0.82 0.09 140); }
.theme-zoo .close-band .pill::before { background: oklch(0.78 0.10 140); }

/* ---------- footer layout ----------
   Resources outgrew a single column: fifteen links stacked into a tower that
   left the other three columns floating in empty space, and on a phone the
   footer ran for three screens. Resources now flows in columns across a wider
   track, and the small columns sit side by side on narrow screens.
   Lives in styles.css AND the homepage's inline styles. */
.foot-main { grid-template-columns: 1.45fr 0.85fr 1.05fr 0.85fr; gap: 36px 30px; align-items: start; }
.foot-main > .foot-col:last-child { grid-column: 1 / -1; padding-top: 26px; border-top: 1px solid var(--line); }
.foot-main > .foot-col:last-child .foot-links { display: block; columns: 4; column-gap: 30px; }
.foot-main > .foot-col:last-child .foot-links a { display: block; break-inside: avoid; margin-bottom: 10px; }
@media (max-width: 1020px) {
  .foot-main { grid-template-columns: repeat(3, 1fr); gap: 30px 24px; }
  .foot-main > div:first-child, .foot-main > .foot-col:last-child { grid-column: 1 / -1; }
  .foot-main > .foot-col:last-child .foot-links { columns: 3; }
}
@media (max-width: 600px) {
  .foot-main { grid-template-columns: 1fr 1fr; gap: 26px 18px; padding: 44px 20px 24px; }
  .foot-main > .foot-col:last-child .foot-links { columns: 2; column-gap: 18px; }
  .foot-links { gap: 0; font-size: 14.5px; }
  .foot-links a, .foot-main > .foot-col:last-child .foot-links a { display: block; padding: 7px 0; margin: 0; line-height: 1.35; }
  .foot-bottom { padding: 18px 20px 32px; }
}

/* directory: the public-information disclaimer */
.fd-public { margin: 6px auto 0; font-size: 13px; color: var(--ink-soft); text-align: center; }
.fd-disclaim { border-left-color: var(--line-2); font-size: 13.5px; }
.fd-disclaim strong { color: var(--ink-2); font-weight: 600; }
