/* ==========================================================================
   Syntonyl — content layer
   Layouts for the generated pages (products, industries, guides, glossary,
   blog, help, tools) and the shared mega footer. Built only from the tokens
   and components in styles.css and syntonyl.css.
   ========================================================================== */

/* ---------- Compact hero for interior pages ---------- */
.page-hero-band.is-compact {
  min-height: 0;
  padding: calc(var(--header-h) + clamp(44px, 7vw, 104px)) 0 clamp(40px, 5vw, 72px);
}
.page-hero-band.is-compact .page-hero { gap: clamp(32px, 4vw, 56px); }
.page-hero-band.is-compact h1 { font-size: clamp(2.375rem, 1.3rem + 3.6vw, 4.75rem); max-width: 15em; }
.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--on-dark-3);
  font-size: var(--fs-sm);
}
.page-hero-meta strong { color: var(--on-dark); font-weight: 500; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--fs-sm); color: var(--on-dark-3); }
.crumbs li + li::before { content: "/"; margin: 0 0.6em; color: var(--line-dark-strong); }
.crumbs a { color: var(--on-dark-2); text-decoration: none; }
.crumbs a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 0.25em; }
.crumbs [aria-current] { color: var(--on-dark); }

/* ---------- Section rhythm ---------- */
.section.is-tight { padding-block: clamp(56px, 7vw, 112px); }
.section.is-white { background: var(--white); }
.section + .section.is-tight:not(.is-white) { padding-top: 0; }
.section-title-sm { font-size: var(--fs-h3); max-width: 18em; margin-bottom: clamp(24px, 3vw, 40px); }
.section-sub { max-width: 42rem; margin: -12px 0 clamp(28px, 3vw, 44px); color: var(--sage); font-size: var(--fs-lede); line-height: 1.55; }

/* ---------- Sub navigation (product sections, indexes) ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: var(--fs-sm);
  text-decoration: none;
  white-space: nowrap;
}
.subnav a:hover { border-color: var(--forest); }
.subnav a[aria-current] { background: var(--forest); border-color: var(--forest); color: var(--white); }

/* ---------- Reading layout ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.split > aside { position: sticky; top: calc(var(--header-h) + 72px); display: grid; gap: 18px; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > aside { position: static; }
}

.prose { max-width: 46rem; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.1em; color: var(--ink); font-size: var(--fs-h3); line-height: 1.12; }
.prose h3 { margin-top: 1.8em; color: var(--ink); font-size: var(--fs-h4); line-height: 1.2; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--sage); }
.prose a, .rich a { color: var(--forest); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.22em; }
.prose a:hover, .rich a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { padding: 0.1em 0.35em; border-radius: 4px; background: var(--paper-2); font-size: 0.92em; }
.prose blockquote { padding: 4px 0 4px 1.2em; border-left: 3px solid var(--lime); color: var(--ink); font-family: var(--font-display); font-size: var(--fs-h4); line-height: 1.35; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.5; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--paper-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.prose .table-wrap { overflow-x: auto; }
.lead { color: var(--ink); font-size: var(--fs-lede); line-height: 1.6; }

.aside-card { padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--white); }
.aside-card h2, .aside-card h3 { margin-bottom: 12px; font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; color: var(--ink); }
.aside-card p { color: var(--sage); font-size: var(--fs-sm); line-height: 1.6; }
.aside-card p + .btn, .aside-card p + p { margin-top: 14px; }
.aside-card .btn { width: 100%; }
.aside-links { display: grid; gap: 8px; font-size: var(--fs-sm); }
.aside-links a { color: var(--forest); text-decoration: none; line-height: 1.45; }
.aside-links a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.aside-card.is-dark { background: var(--forest); border-color: var(--forest); }
.aside-card.is-dark h2, .aside-card.is-dark h3 { color: var(--on-dark); }
.aside-card.is-dark p { color: var(--on-dark-2); }

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--col-gap); }
.tiles.is-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.tile {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  min-height: 210px;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s var(--ease);
}
a.tile:hover { border-color: var(--forest); }
.tile-label { color: var(--sage); font-size: var(--fs-micro); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.tile h3 { font-size: var(--fs-h4); line-height: 1.15; }
.tile p { color: var(--sage); font-size: var(--fs-sm); line-height: 1.6; }
.tile strong { justify-self: start; font-size: var(--fs-sm); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.3em; }
a.tile:hover strong { text-decoration-color: currentColor; }
.tile.is-feature { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.tile.is-feature .tile-label, .tile.is-feature p { color: var(--on-dark-2); }
.tile.is-feature h3 { color: var(--on-dark); }
.tile.is-feature strong { color: var(--lime); text-decoration-color: rgba(213, 251, 9, 0.4); }

/* Product family cards (homepage and products hub) */
.family-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); }
@media (max-width: 1100px) { .family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .family-grid { grid-template-columns: minmax(0, 1fr); } }
.family-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: clamp(24px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--white); color: var(--ink); text-decoration: none; }
.family-card:hover { border-color: var(--forest); }
.family-card .family-status { justify-self: start; padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-size: var(--fs-micro); font-weight: 500; }
.family-card h3 { font-size: var(--fs-h3); }
.family-card p { color: var(--sage); font-size: var(--fs-sm); line-height: 1.6; }
.family-card .family-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-sm); }
.family-card .family-links span { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.3em; }

/* ---------- Facts, features, steps ---------- */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 1px solid var(--line-dark-strong); }
.fact-grid > div { display: grid; gap: 6px; padding: 20px 20px 0 0; }
.fact-grid strong { color: var(--on-dark); font-weight: 500; }
.fact-grid span { color: var(--on-dark-2); font-size: var(--fs-sm); line-height: 1.55; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--col-gap); border-top: 1px solid var(--line-strong); }
.feature-grid > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.feature-grid h3 { font-size: var(--fs-h4); }
.feature-grid p { color: var(--sage); line-height: 1.65; }
@media (max-width: 760px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }

.steps { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line-strong); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; color: var(--sage); font-size: var(--fs-sm); font-weight: 500; padding-top: 0.25em; }
.steps h3 { font-size: var(--fs-h4); }
.steps p { color: var(--sage); line-height: 1.65; }

.check-list { display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: var(--ink-2); line-height: 1.6; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px; border-left: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(-45deg); }
.x-list li::before { width: 12px; height: 2px; top: 0.75em; border: 0; background: var(--sage); transform: none; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
@media (max-width: 760px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.two-col h3 { margin-bottom: 16px; font-size: var(--fs-h4); }

.case-list { display: grid; gap: var(--col-gap); }
.case { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px var(--col-gap); padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--white); }
.case h3 { grid-column: 1 / span 4; font-size: var(--fs-h4); }
.case dl { grid-column: 5 / -1; display: grid; gap: 14px; }
.case dt { color: var(--sage); font-size: var(--fs-micro); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.case dd { margin: 4px 0 0; color: var(--ink-2); line-height: 1.65; }
@media (max-width: 900px) { .case h3, .case dl { grid-column: 1 / -1; } }

.price-card { display: grid; gap: 16px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-l); background: var(--forest); color: var(--on-dark); }
.price-card .price-headline { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--on-dark); }
.price-card p { color: var(--on-dark-2); line-height: 1.6; }
.price-rows { display: grid; border-top: 1px solid var(--line-dark-strong); }
.price-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: var(--fs-sm); }
.price-rows span { color: var(--on-dark-2); }
.price-rows strong { color: var(--lime); font-weight: 500; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq-block { border-top: 1px solid var(--line-strong); max-width: 60rem; }
.faq-block details { border-bottom: 1px solid var(--line); }
.faq-block summary { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: var(--fs-h4); line-height: 1.25; color: var(--ink); }
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after { content: "+"; flex: none; font-family: var(--font-sans); font-size: 1.4rem; line-height: 1; color: var(--sage); transition: transform 0.2s ease; }
.faq-block details[open] summary::after { transform: rotate(45deg); }
.faq-block details > div { max-width: 46rem; padding: 0 0 24px; color: var(--ink-2); line-height: 1.7; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--white); }
.compare-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.55; }
.compare-table th, .compare-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--forest); color: var(--on-dark); font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 400; }
.compare-table tbody th { width: 22%; color: var(--ink); font-weight: 600; }
.compare-table td { color: var(--ink-2); }
.compare-table tr:last-child > * { border-bottom: 0; }

/* ---------- Index pages ---------- */
.az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: clamp(28px, 3vw, 44px); }
.az a { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); color: var(--ink); font-size: var(--fs-sm); text-decoration: none; }
.az a:hover { border-color: var(--forest); }
.index-group { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px var(--col-gap); padding: 28px 0; border-top: 1px solid var(--line-strong); scroll-margin-top: calc(var(--header-h) + 72px); }
.index-group > h2 { grid-column: 1 / span 3; font-size: var(--fs-h3); }
.index-group > ul { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px var(--col-gap); }
.index-group a { display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.index-group a span { font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.25em; }
.index-group a small { color: var(--sage); font-size: var(--fs-sm); line-height: 1.5; }
.index-group a:hover span { text-decoration-color: currentColor; }
@media (max-width: 900px) { .index-group > h2, .index-group > ul { grid-column: 1 / -1; } }

.post-list { display: grid; border-top: 1px solid var(--line-strong); }
.post-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px var(--col-gap); padding: 28px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.post-row .post-meta { grid-column: 1 / span 3; color: var(--sage); font-size: var(--fs-sm); line-height: 1.5; }
.post-row h3 { grid-column: 4 / span 6; font-size: var(--fs-h4); line-height: 1.2; }
.post-row p { grid-column: 4 / span 7; color: var(--sage); font-size: var(--fs-sm); line-height: 1.6; }
.post-row:hover h3 { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
@media (max-width: 900px) { .post-row .post-meta, .post-row h3, .post-row p { grid-column: 1 / -1; } }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; }

/* ---------- Reviews ---------- */
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.rating-score { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: 1; color: var(--fg); }
.stars { display: inline-flex; gap: 3px; color: var(--lime); font-size: 1.35rem; letter-spacing: 0; }
.stars .is-off { color: var(--line-dark-strong); }
.section .stars { color: #b38600; }
.review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--col-gap); }
.review { display: grid; gap: 14px; align-content: start; padding: clamp(22px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--white); }
.review blockquote { color: var(--ink); font-family: var(--font-display); font-size: var(--fs-h4); line-height: 1.4; }
.review footer { color: var(--sage); font-size: var(--fs-sm); }
.review-source { color: var(--sage); font-size: var(--fs-micro); }

/* ---------- Calls to action ---------- */
.end-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 48px; padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-xl); background: var(--forest); }
.end-cta h2 { max-width: 16em; font-size: var(--fs-h2); }
.end-cta p { max-width: 38rem; margin-top: 16px; color: var(--fg-2); font-size: var(--fs-lede); line-height: 1.55; }
.end-cta .hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .end-cta { grid-template-columns: minmax(0, 1fr); } }

.note { padding: 16px 18px; border-left: 3px solid var(--lime); background: var(--white); border-radius: 0 var(--radius-m) var(--radius-m) 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.6; }

/* ---------- Tools ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--col-gap); align-items: start; }
@media (max-width: 900px) { .tool { grid-template-columns: minmax(0, 1fr); } }
.tool form { display: grid; gap: 22px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--white); }
.tool fieldset { display: grid; gap: 10px; border: 0; padding: 0; }
.tool legend, .tool label { color: var(--ink); font-size: var(--fs-sm); font-weight: 500; }
.tool .hint { color: var(--sage); font-size: var(--fs-micro); line-height: 1.5; }
.tool input[type="number"], .tool select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--paper); color: var(--ink); font: inherit; }
.tool .options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.tool .options label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-m); font-weight: 400; line-height: 1.4; cursor: pointer; }
.tool .options input { margin-top: 0.2em; }
.tool-result { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-l); background: var(--forest); color: var(--on-dark); }
.tool-result .result-figure { font-family: var(--font-display); font-size: clamp(2.25rem, 1.6rem + 2vw, 3.5rem); line-height: 1.05; color: var(--lime); }
.tool-result p, .tool-result li { color: var(--on-dark-2); font-size: var(--fs-sm); line-height: 1.6; }
.tool-result h2 { font-size: var(--fs-h4); color: var(--on-dark); }
.tool-result .btn { justify-self: start; }
.cash-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.cash-table th, .cash-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.cash-table th:first-child, .cash-table td:first-child { text-align: left; }
.cash-table .neg { color: #9b2c1f; font-weight: 600; }

/* ---------- Homepage additions ---------- */
.home-band { background: var(--paper); }
.home-band.is-white { background: var(--white); }
.home-rating { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--col-gap); align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: var(--radius-xl); background: var(--forest); }
.home-rating > div:first-child { grid-column: 1 / span 5; display: grid; gap: 10px; }
.home-rating > div:last-child { grid-column: 6 / -1; display: grid; gap: 18px; }
.home-rating p { color: var(--on-dark-2); line-height: 1.6; }
.home-rating .hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .home-rating > div:first-child, .home-rating > div:last-child { grid-column: 1 / -1; } }

/* Card titles on the products and solutions hubs link to detail pages */
.card-title-link { color: inherit; text-decoration: none; }
.card-title-link:hover { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.18em; }
.card-detail-link { display: inline-block; margin-top: 10px; color: var(--forest); font-size: var(--fs-sm); font-weight: 500; }

/* ---------- Mega footer ---------- */
.footer-grid.has-columns .footer-brand { grid-column: 1 / span 6; }
.footer-grid.has-columns .footer-cta { grid-column: 7 / -1; justify-self: end; align-self: start; }
.footer-columns { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px var(--col-gap); padding-top: 40px; border-top: 1px solid var(--line-dark); }
.footer-columns h2 { margin-bottom: 14px; color: var(--on-dark); font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; }
.footer-columns ul { display: grid; gap: 9px; }
.footer-columns a { color: var(--on-dark-2); font-size: var(--fs-sm); line-height: 1.4; text-decoration: none; }
.footer-columns a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 0.2em; }
.footer-legal a { color: var(--on-dark-3); }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 1100px) { .footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .footer-grid.has-columns .footer-brand, .footer-grid.has-columns .footer-cta { grid-column: 1 / -1; justify-self: stretch; }
}
@media (max-width: 640px) { .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ==========================================================================
   Dropdown navigation
   Desktop: panels open on hover (with a close delay so they don't vanish
   while the pointer travels into them), pin open on click, close on Escape or
   an outside click. Mobile: each section is an accordion inside the menu.
   ========================================================================== */
.menu.has-dropdowns { gap: clamp(10px, 1.5vw, 26px); }
.nav-item { position: relative; display: flex; align-items: center; height: var(--header-h); }
.nav-trigger,
.menu .nav-plain {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--on-dark-2);
  font: 500 0.875rem/1.2 var(--font-sans);
  letter-spacing: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}
.nav-trigger:hover, .nav-item.is-open .nav-trigger, .nav-item.is-current .nav-trigger { color: var(--on-dark); }
.nav-item.is-current .nav-trigger { box-shadow: inset 0 -1px 0 var(--lime); }
.nav-caret {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease), margin 0.25s var(--ease);
}
.nav-item.is-open .nav-caret { margin-top: 3px; transform: rotate(-135deg); }

@media (min-width: 901px) {
  .nav-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 70;
    width: max-content;
    min-width: 260px;
    max-width: min(640px, calc(100vw - 32px));
    padding-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity 0.18s ease, transform 0.22s var(--ease), visibility 0s linear 0.22s;
  }
  /* Invisible bridge so the gap under the trigger counts as part of the menu. */
  .nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .nav-item.is-wide .nav-panel { width: min(600px, calc(100vw - 32px)); }
  .nav-item:nth-last-of-type(-n+2) .nav-panel { left: auto; right: -16px; transform: translateY(8px); }
  .nav-item.is-open .nav-panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity 0.18s ease, transform 0.22s var(--ease), visibility 0s;
  }
  .nav-item.is-open:nth-last-of-type(-n+2) .nav-panel { transform: none; }
  .nav-panel-inner {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line-dark-strong);
    border-radius: var(--radius-l);
    background: var(--forest-2);
    box-shadow: 0 28px 64px rgba(0, 12, 10, 0.45);
  }
  .nav-columns { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 22px; }
  .nav-column-title { margin-bottom: 8px; color: var(--on-dark-3); font-size: var(--fs-micro); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
  .nav-column ul { display: grid; gap: 2px; }
  .menu .nav-panel a:not(.btn)::before { content: none; }
  .menu .nav-panel a:not(.btn)::after { display: none; }
  .menu .nav-panel .nav-entry {
    display: grid;
    gap: 2px;
    margin: 0 -10px;
    padding: 8px 10px;
    border-radius: var(--radius-m);
    color: var(--on-dark);
    font-size: 0.9rem;
    line-height: 1.3;
  }
  .menu .nav-panel .nav-entry small { color: var(--on-dark-3); font-size: 0.78rem; font-weight: 400; }
  .menu .nav-panel .nav-entry:hover, .menu .nav-panel .nav-entry:focus-visible { background: var(--forest-3); }
  .menu .nav-panel .nav-entry[aria-current="page"] span { color: var(--lime); }
  .menu .nav-panel .nav-all { justify-self: start; padding-top: 14px; border-top: 1px solid var(--line-dark); width: 100%; color: var(--lime); font-size: 0.875rem; }
  .menu .nav-panel .nav-all:hover { text-decoration: underline; text-underline-offset: 0.25em; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .menu.has-dropdowns { gap: 12px; }
  .nav-trigger, .menu .nav-plain { font-size: 0.8125rem; }
  .menu.has-dropdowns ~ .brand .brand-lockup, .brand-lockup { height: 26px; }
  .menu.has-dropdowns .btn-small { padding-inline: 0.85rem; }
}

@media (max-width: 900px) {
  .nav-item { display: block; height: auto; border-bottom: 1px solid var(--line-dark); }
  .nav-trigger,
  .menu .nav-plain {
    width: 100%;
    justify-content: space-between;
    padding: 16px 0;
    color: var(--on-dark);
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 7.4vw, 2.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-align: left;
  }
  .menu .nav-plain { border-bottom: 1px solid var(--line-dark); }
  .nav-item.is-current .nav-trigger { box-shadow: none; color: var(--lime); }
  .nav-caret { width: 10px; height: 10px; margin: -6px 6px 0 0; border-width: 2px; }
  .nav-item.is-open .nav-caret { margin-top: 4px; }
  /* Accordion: animates height without measuring it. */
  .nav-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.32s var(--ease); }
  .nav-item.is-open .nav-panel { grid-template-rows: 1fr; }
  .nav-panel-inner { min-height: 0; overflow: hidden; }
  .nav-item:not(.is-open) .nav-panel-inner { visibility: hidden; transition: visibility 0s linear 0.32s; }
  .nav-columns { display: grid; gap: 14px; padding: 2px 0 6px; }
  .nav-column-title { margin-bottom: 4px; color: var(--on-dark-3); font-size: var(--fs-micro); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
  .nav-column ul { display: grid; }
  .menu .nav-panel a:not(.btn) {
    display: grid;
    gap: 2px;
    min-height: 44px;
    align-content: center;
    padding: 9px 0 9px 14px;
    border: 0;
    border-left: 1px solid var(--line-dark-strong);
    color: var(--on-dark);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.3;
    animation: none;
  }
  .menu .nav-panel .nav-entry small { color: var(--on-dark-3); font-size: 0.875rem; font-weight: 400; }
  .menu .nav-panel a[aria-current="page"] { color: var(--lime); border-left-color: var(--lime); }
  .menu .nav-panel .nav-all { margin: 4px 0 18px; color: var(--lime); }
  body.nav-open .nav-item, body.nav-open .menu .nav-plain { animation: menu-in 0.5s var(--ease-out) both; }
  body.nav-open .nav-item:nth-child(2) { animation-delay: 0.03s; }
  body.nav-open .nav-item:nth-child(3) { animation-delay: 0.06s; }
  body.nav-open .nav-item:nth-child(4) { animation-delay: 0.09s; }
  body.nav-open .nav-item:nth-child(5) { animation-delay: 0.12s; }
  body.nav-open .menu .nav-plain { animation-delay: 0.15s; }
  .menu.has-dropdowns .btn { margin-top: 28px; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .nav-panel { transition: none; }
}

/* ---------- Industry groups (homepage, industries hub, who we work with) ---------- */
.industry-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); }
.industry-group { display: grid; align-content: start; gap: 14px; padding: clamp(22px, 2.4vw, 30px); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--white); }
.industry-group h3 { padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: var(--fs-h4); }
.industry-group ul { display: grid; gap: 4px; }
.industry-group a { display: grid; gap: 2px; margin: 0 -10px; padding: 8px 10px; border-radius: var(--radius-m); color: var(--ink); text-decoration: none; }
.industry-group a span { font-weight: 500; }
.industry-group a small { color: var(--sage); font-size: var(--fs-sm); line-height: 1.45; }
.industry-group a:hover { background: var(--paper); }
.industry-group a:hover span { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
@media (max-width: 1100px) { .industry-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .industry-groups { grid-template-columns: minmax(0, 1fr); } }

/* Extra-wide dropdown (Industries): centered on the viewport so it never runs off-screen. */
@media (min-width: 901px) {
  .nav-item.is-xwide .nav-panel { position: fixed; top: var(--header-h); left: 50%; width: min(980px, calc(100vw - 32px)); max-width: none; transform: translate(-50%, 8px); }
  .nav-item.is-xwide.is-open .nav-panel { transform: translate(-50%, 0); }
  .nav-item.is-xwide .nav-panel::before { top: -24px; height: 24px; }
  .nav-item.is-xwide .nav-columns { grid-auto-columns: minmax(0, 1fr); }
}
