/* daniel-fox.com — global stylesheet. Edit directly (not generated by build.py).
   Design system: reskinned to the Boutique COO token set —
   Montserrat + PT Serif (italic accent only), cream/ink warm neutrals,
   lime highlight, clay serif-italic accents, fully-rounded pill buttons.
   Hierarchy comes from SIZE + UPPERCASE + LETTER-SPACING, not bold weight. */

:root {
  --bg: #f7f3f2;          /* cream — warm off-white page bg */
  --bg-panel: #efe7e3;    /* recessed warm panel */
  --bg-ink: #2e2d2b;      /* near-black warm ink (dark bands) */
  --ink: #2e2d2b;         /* primary text */
  --ink-soft: #56524c;    /* secondary text (warm) */
  --ink-faint: #7f7e74;   /* stone — tertiary / labels */
  --line: rgba(46, 45, 43, 0.13); /* hairlines */
  --line-ink: rgba(247, 243, 242, 0.16);
  --accent: #ab8771;      /* clay — serif-italic accents, eyebrows, links */
  --accent-deep: #8d6a55;
  --lime: #cef099;        /* signature chartreuse — highlight + primary fill */
  --paper-on-ink: #f7f3f2;
  --muted-on-ink: rgba(247, 243, 242, 0.70);

  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --font-serif: 'PT Serif', Georgia, 'Times New Roman', serif;

  --container: 960px;       /* one shared content width → consistent side margins site-wide */
  --radius: 8px;          /* cards / inputs */
  --radius-pill: 300px;   /* buttons, chips — fully rounded */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Smooth cross-document page transitions (progressive enhancement — ignored where
   unsupported). A 2026 MPA pattern: navigating between pages cross-fades. */
@view-transition { navigation: auto; }

/* Keyboard focus — visible, accent ring on every interactive element. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Respect users who ask for less motion: kill reveals, smooth-scroll, transitions. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Display headings — weight 400, uppercase, hierarchy from size + tracking. */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;          /* even, non-ragged headline line breaks */
  scroll-margin-top: 88px;     /* clear the sticky header when deep-linked */
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.05rem);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  line-height: 1.26;
  text-transform: uppercase;
  letter-spacing: 0.015em;
}
h3 {
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0.005em;
}

/* Accent phrases inside headlines now render as part of the headline —
   no serif, no italic, no separate color. (Kept as a no-op class so existing
   <span class="accent"> markup stays valid across all hero headlines.) */
.accent {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  color: inherit;
}

/* The signature lime highlight — use on exactly ONE phrase per page. */
.marker {
  background: linear-gradient(transparent 58%, var(--lime) 58%);
  padding: 0 0.05em;
}

p { margin: 0 0 1.1rem; text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); text-decoration: underline; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}
/* Section signpost: a small clay (lime on dark) diamond leading every eyebrow. */
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  background: currentColor;
  transform: rotate(45deg);
  opacity: 0.85;
}

.measure { max-width: 44ch; }
.measure-wide { max-width: 60ch; }
.lead { font-size: 1.18rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 242, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.wordmark {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark:hover { color: var(--ink); text-decoration: none; }
.wordmark-role {
  display: inline-block;
  margin-left: 0.6rem;
  padding-left: 0.6rem;
  border-left: 1px solid var(--accent);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  vertical-align: middle;
}
.footer-wordmark .wordmark-role,
.footer-wordmark.wordmark-role { display: none; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; white-space: nowrap; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.2rem;
  text-transform: uppercase;
  font-size: 0.8rem !important;
  letter-spacing: 0.04em;
  color: var(--ink) !important;
}
.nav-cta:hover { background: var(--ink); color: var(--paper-on-ink) !important; }
/* Active page — signature lime underline on the current section's link. */
.nav-links a[aria-current="page"]:not(.nav-cta) {
  color: var(--ink);
  background: linear-gradient(transparent 80%, var(--lime) 80%);
}
.nav-cta[aria-current="page"] { background: var(--ink); color: var(--paper-on-ink) !important; }
.nav-toggle { display: none; }

/* ---------- Buttons — fully-rounded pills, ink outline ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.82rem 1.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--lime); color: var(--ink); border-color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: var(--lime); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper-on-ink); text-decoration: none; }
.btn-on-ink { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn-on-ink:hover { background: var(--paper-on-ink); color: var(--ink); border-color: var(--paper-on-ink); text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-tight { padding: 4rem 0; }
.section-line { border-top: 1px solid var(--line); }
.section-panel { background: var(--bg-panel); }
.section-ink {
  background: var(--bg-ink);
  color: var(--paper-on-ink);
}
.section-ink h1, .section-ink h2, .section-ink h3 { color: var(--paper-on-ink); }
.section-ink .lead { color: var(--muted-on-ink); }
.section-ink p { color: var(--muted-on-ink); }
.section-ink .eyebrow { color: var(--lime); }
.section-ink .accent { color: var(--lime); }
.section-ink a { color: var(--lime); }

/* ---------- Hero ---------- */
.hero { padding: 6rem 0 4.5rem; }
.hero h1 { max-width: 17ch; }
.hero .lead { max-width: 52ch; margin-top: 1.4rem; }
.hero-actions { margin-top: 2.2rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); text-decoration: none; }
.card p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

/* explore cards (home front door → discrete pages) */
.explore-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.explore-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.explore-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-3px); box-shadow: 0 12px 28px -18px rgba(46, 45, 43, 0.45); }
/* Icon chip leading each explore card. */
.explore-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.3rem;
  border-radius: 12px;
  background: var(--bg-panel);
  color: var(--accent);
  transition: background 0.2s ease, color 0.2s ease;
}
.explore-card:hover .explore-icon { background: var(--accent); color: var(--paper-on-ink); }
.explore-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.explore-desc { color: var(--ink-soft); font-size: 0.96rem; }
.explore-go {
  margin-top: auto;
  padding-top: 0.4rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.explore-card:hover .explore-go { color: var(--accent-deep); }

/* insights pillar feature */
.pillar-feature h2 { margin-bottom: 0.6rem; }
.pillar-feature h2 a { color: var(--ink); }
.pillar-feature h2 a:hover { color: var(--accent); text-decoration: none; }
.pillar-feature .btn { margin-top: 1.6rem; }

/* capability list (what we run) */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; }
.cap-item {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.cap-item .cap-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 9rem;
}
.cap-item .cap-desc { color: var(--ink-soft); font-size: 0.96rem; }

/* Inline stroke icons — inherit color from their parent, scale with text. */
.icon { width: 1.4rem; height: 1.4rem; flex: none; display: block; }

/* Stepped process (how it works): numbered badges across three columns. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.step { border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.step-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.45rem;
}
.step-desc { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

/* fit columns */
.fit-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.fit-col h3 { display: flex; align-items: center; gap: 0.5rem; }
.fit-col ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.fit-col li {
  padding: 0.6rem 0 0.6rem 2.1rem;
  border-top: 1px solid var(--line);
  position: relative;
  color: var(--ink-soft);
}
/* Round icon badge — a check for fits, an ✕ for non-fits. */
.fit-col li::before {
  position: absolute;
  left: 0;
  top: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}
.fit-yes li::before { content: "\2713"; color: var(--accent-deep); background: rgba(171, 135, 113, 0.16); }
.fit-no li::before { content: "\2715"; color: var(--ink-faint); background: rgba(127, 126, 116, 0.14); }

/* pull quote (voice of customer) */
.pull {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: 0;
  max-width: 24ch;
}
.pull-attr { font-family: var(--font-body); font-size: 0.92rem; color: var(--muted-on-ink); margin-top: 1.4rem; }

/* operator block */
.operator-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
.operator-stat {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2rem;
  color: var(--ink);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.operator-stat-label { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.4rem; }
.operator-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 2rem; }

/* ---------- Contact form ---------- */
.form { max-width: 560px; }
.form label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1.1rem 0 0.4rem;
}
.form input, .form select, .form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--lime);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form textarea { min-height: 130px; resize: vertical; }
.form .btn { margin-top: 1.6rem; }
.honey { position: absolute; left: -9999px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-ink); color: var(--muted-on-ink); padding: 3rem 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-wordmark { color: var(--paper-on-ink); display: block; margin-bottom: 0.7rem; }
.footer-line { color: var(--muted-on-ink); max-width: 38ch; font-size: 0.95rem; margin: 0; }
.footer-nav { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav a { color: var(--paper-on-ink); font-size: 0.84rem; letter-spacing: 0.07em; text-transform: uppercase; }
.footer-nav a:hover { color: var(--lime); }
.footer-meta { display: flex; flex-direction: column; gap: 0.6rem; text-align: right; }
.footer-meta a { color: var(--paper-on-ink); }
.footer-meta a:hover { color: var(--lime); }
.footer-meta span { color: var(--muted-on-ink); font-size: 0.86rem; }

/* ---------- Article reading layout (body.article) ---------- */
/* Blog posts read in a narrow, centered column with generous side margins and
   left-justified text. Scoped to content only via `.section`/`.hero` so the
   full-width header and footer are untouched. */
body.article .section { padding: 3.25rem 0; }
body.article .hero { padding: 4.75rem 0 2.5rem; }
/* One uniform column width — drop the marketing measure caps inside articles. */
body.article .measure,
body.article .measure-wide,
body.article .hero h1,
body.article .hero .lead,
body.article .pull { max-width: none; }
body.article p { font-size: 1.05rem; line-height: 1.78; }
body.article .lead { font-size: 1.2rem; line-height: 1.62; }
body.article blockquote.pull {
  margin: 2rem 0;
  padding-left: 1.4rem;
  border-left: 3px solid var(--lime);
}

/* ---------- Insights blog index (body.blog-index) ---------- */
/* A traditional vertical post feed in the same centered column as the articles. */
.blog-index .hero { padding: 4.75rem 0 2.5rem; }
.blog-index .section { padding: 3.5rem 0 4.5rem; }
.post-entry { padding: 2.3rem 0; border-top: 1px solid var(--line); }
.post-entry:first-child { border-top: none; padding-top: 0.25rem; }
.post-cat {
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.55rem;
}
.post-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.26;
  margin: 0 0 0.6rem;
}
.post-title a { color: var(--ink); }
.post-title a:hover { color: var(--accent); text-decoration: none; }
.post-excerpt { color: var(--ink-soft); margin: 0 0 0.85rem; }
.post-more {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.post-featured { padding-top: 0.25rem; }
.post-featured .post-title { font-size: clamp(1.8rem, 4.2vw, 2.55rem); }
.feed-group {
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 3rem 0 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.feed-group + .post-entry { border-top: none; padding-top: 1.4rem; }

/* ---------- Byline (author attribution on doors / positions) ---------- */
.byline { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.9rem; }
.byline-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  flex: none;
}
.byline-text { display: flex; flex-direction: column; line-height: 1.25; }
.byline-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.byline-role {
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Answer capsule (door pages) ---------- */
/* The first thing under the question: a tight, declarative answer an engine can lift. */
.capsule {
  font-size: 1.24rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 60ch;
  margin-top: 1.4rem;
}
.capsule strong { font-weight: 600; }

/* ---------- Beliefs page (the takes) ---------- */
.belief {
  padding: 2.1rem 0;
  border-top: 1px solid var(--line);
}
.belief:first-of-type { border-top: none; }
.belief-num {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
.belief-claim {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.32;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 0.9rem;
  max-width: 30ch;
}
.belief-body { max-width: 62ch; }
.belief-body p { margin: 0 0 0.8rem; }
.belief-link {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ---------- Related links band (doors -> spine + beliefs) ---------- */
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 1.8rem; }
.related-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.related-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.related-kicker {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}
.related-title { font-weight: 500; font-size: 1.02rem; }

/* ---------- Defined term (vocabulary page) ---------- */
.term-def {
  border-left: 3px solid var(--lime);
  padding: 0.4rem 0 0.4rem 1.4rem;
  margin: 1.6rem 0 0;
  max-width: 62ch;
}
.term-def dt {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}
.term-def dd { margin: 0; font-size: 1.1rem; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
/* Nav collapses to a menu earlier than the content grids (920px) so the five-item
   bar never crowds or wraps in the tight 820–960px band. */
@media (max-width: 920px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  /* Hamburger morphs to an ✕ when open (button's aria-expanded is toggled in JS). */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.2rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0; width: 100%; white-space: normal; }
  .nav-cta { margin-top: 0.5rem; }
}

@media (max-width: 820px) {
  .grid-2, .grid-3, .cap-grid, .fit-cols, .operator-grid, .explore-grid, .steps, .related-grid { grid-template-columns: 1fr; }
  .steps { gap: 1.5rem; }
  .operator-stats { gap: 1.5rem 1.8rem; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
}

/* Small phones: let the definition-style capability rows stack name over desc
   instead of squeezing the description into a sliver beside a fixed-width name. */
@media (max-width: 520px) {
  .cap-item { flex-wrap: wrap; gap: 0.15rem 1rem; }
  .cap-item .cap-name { flex-basis: 100%; min-width: 0; }
}
