/* ==========================================================================
   Syntonyl — system layer
   Reset, type scale, layout, and the shared component kit used by every
   page. Tokens and brand treatments live in syntonyl.css.
   ========================================================================== */

:root {
  --header-h: 72px;
  --gutter: clamp(20px, 4.2vw, 60px);
  --max: 1320px;
  --col-gap: clamp(16px, 2vw, 28px);
  --space-section: clamp(88px, 10vw, 160px);
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --radius-xl: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --fs-hero: clamp(2.875rem, 1.05rem + 5.6vw, 6.5rem);
  --fs-h1: clamp(2.625rem, 1.3rem + 4.6vw, 6rem);
  --fs-h2: clamp(2.125rem, 1.4rem + 2.55vw, 3.875rem);
  --fs-h3: clamp(1.625rem, 1.3rem + 1vw, 2.25rem);
  --fs-h4: clamp(1.3125rem, 1.2rem + 0.35vw, 1.5rem);
  --fs-lede: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-micro: 0.75rem;
}

@media (max-width: 900px) {
  :root { --header-h: 64px; --fs-body: 1rem; }
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05", "cv08";
  overflow-x: clip;
}

body.nav-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--fg);
  text-wrap: balance;
}

p, ul, ol, figure, fieldset, blockquote { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

button { font: inherit; color: inherit; }
button:not(:disabled) { cursor: pointer; }

strong, b { font-weight: 600; }

.container {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--space-section);
}

/* Visible by default; nothing depends on script to appear. */
.reveal { opacity: 1; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-m);
  background: var(--lime);
  color: var(--forest);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Header & navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid rgba(214, 236, 224, 0.08);
}
/* The blur lives on a layer behind the bar so the fixed mobile menu is not
   trapped inside the header's containing block. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 33, 30, 0.9);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
}
body.nav-open .site-header::before { background: var(--forest); }

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; }
.brand-name { display: inline-flex; padding: 6px 0; border-radius: 4px; }
.brand-lockup { width: auto; height: 30px; filter: invert(1); }

.menu {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.7vw, 30px);
}

.menu a:not(.btn) {
  position: relative;
  padding: 8px 0;
  color: var(--on-dark-2);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.menu a:not(.btn):hover { color: var(--on-dark); }
.menu a:not(.btn):hover::after { transform: scaleX(1); }
.menu a:not(.btn)[aria-current="page"] { color: var(--on-dark); }
.menu a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); background: var(--lime); }
.menu .btn { margin-left: clamp(4px, 0.6vw, 10px); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  height: 44px;
  margin-right: -6px;
  padding: 0 6px 0 10px;
  background: none;
  border: 0;
  border-radius: var(--radius-m);
  color: var(--on-dark);
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav-toggle-icon {
  position: relative;
  width: 22px;
  height: 10px;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon::after { top: 8.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 4.25px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 4.25px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .brand-lockup { height: 26px; }

  .menu {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 59;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background: var(--forest);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  body.nav-open .menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s;
  }
  .menu a:not(.btn) {
    padding: 16px 0;
    border-bottom: 1px solid var(--line-dark);
    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;
  }
  .menu a:not(.btn)::after { display: none; }
  .menu a:not(.btn)[aria-current="page"] { color: var(--lime); }
  .menu .btn {
    margin: auto 0 0;
    min-height: 54px;
    font-size: 1rem;
  }
  body.nav-open .menu a:not(.btn) { animation: menu-in 0.5s var(--ease-out) both; }
  body.nav-open .menu a:nth-child(2) { animation-delay: 0.03s; }
  body.nav-open .menu a:nth-child(3) { animation-delay: 0.06s; }
  body.nav-open .menu a:nth-child(4) { animation-delay: 0.09s; }
  body.nav-open .menu a:nth-child(5) { animation-delay: 0.12s; }
  body.nav-open .menu a:nth-child(6) { animation-delay: 0.15s; }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .menu { gap: 14px; }
  .menu a:not(.btn) { font-size: 0.8125rem; }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Buttons & links ---------- */
.btn {
  --_bg: var(--btn-bg);
  --_fg: var(--btn-fg);
  --_bd: var(--btn-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--_bd);
  border-radius: var(--radius-m);
  background: var(--_bg);
  color: var(--_fg);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { --_bg: var(--btn-bg-hover); --_bd: var(--btn-bg-hover); }
.btn:active { transform: translateY(1px); }

.btn-ghost {
  --_bg: transparent;
  --_fg: var(--ghost-fg);
  --_bd: var(--ghost-line);
}
.btn-ghost:hover { --_bg: transparent; --_bd: var(--ghost-fg); }

.btn-small { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.875rem; }

.btn > span[aria-hidden="true"] { transition: transform 0.25s var(--ease); }
.btn:hover > span[aria-hidden="true"] { transform: translate(2px, -2px); }

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

/* Inline text links used inside cards and panels */
.text-link,
.template-link,
.guide-card-link,
.assurance-console-footer a,
.site-builder-note a {
  color: var(--fg);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-c-strong);
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s ease;
}
.text-link:hover,
.template-link:hover,
.assurance-console-footer a:hover,
.site-builder-note a:hover { text-decoration-color: currentColor; }

/* ---------- Labels & section headings ---------- */
.eyebrow,
.page-kicker,
.section-label,
.int-badge,
.badge {
  display: block;
  color: var(--fg-2);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

.section-title,
.int-headline,
.mvp-title {
  font-size: var(--fs-h2);
}

.section-subtitle,
.int-subhead + .section-subtitle {
  max-width: 40rem;
  color: var(--fg-2);
  font-size: var(--fs-lede);
  line-height: 1.55;
}

.int-subhead {
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-lede);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.lede {
  color: var(--fg-2);
  font-size: var(--fs-lede);
  line-height: 1.55;
}

/* Section header: label sits in the left margin, heading on the content line. */
.section-head,
.section-intro-row,
.section-heading-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 18px;
  align-items: start;
  margin-bottom: clamp(44px, 5.5vw, 80px);
}
.section-head > *,
.section-intro-row > div > *,
.section-intro-row > p,
.section-heading-row > div > *,
.section-heading-row > p { grid-column: 4 / -1; }
.section-intro-row > div,
.section-heading-row > div { display: contents; }

.section-head > .eyebrow,
.section-head > .int-badge,
.section-head > .badge,
.section-intro-row .section-label,
.section-heading-row .eyebrow {
  grid-column: 1 / span 3;
  grid-row: 1;
  padding-top: 0.7em;
}
.section-head > h2,
.section-intro-row h2,
.section-heading-row h2 {
  grid-column: 4 / -1;
  grid-row: 1;
  max-width: 16em;
  font-size: var(--fs-h2);
}
.section-head > p,
.section-intro-row > p,
.section-heading-row > p {
  grid-column: 4 / span 6;
  max-width: 40rem;
  color: var(--fg-2);
  font-size: var(--fs-lede);
  line-height: 1.55;
}
.section-head > .int-subhead { grid-column: 4 / span 7; margin-top: 4px; }

@media (max-width: 1023px) {
  .section-head,
  .section-intro-row,
  .section-heading-row { display: flex; flex-direction: column; gap: 16px; }
  .section-head > h2,
  .section-intro-row h2,
  .section-heading-row h2 { max-width: 14em; }
  .section-head > .eyebrow,
  .section-head > .int-badge,
  .section-head > .badge,
  .section-intro-row .section-label,
  .section-heading-row .eyebrow { padding-top: 0; }
}

/* ---------- Tags ---------- */
.chips,
.int-chips,
.wf-chips,
.sol-meta,
.prod-meta,
.template-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip,
.template-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid var(--line-c);
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--fg);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
a.chip { text-decoration: none; transition: border-color 0.2s ease, background-color 0.2s ease; }
a.chip:hover { border-color: var(--fg); }

/* ---------- Lists with square markers ---------- */
.checklist li,
.method-list li,
.growth-stage-list li,
.team-priority-list li,
#signalResultList li,
.prod-list li,
.proc-list li,
.gate-card li,
.tool-card li {
  position: relative;
  padding-left: 1.35em;
  color: var(--fg);
  line-height: 1.5;
}
.checklist li::before,
.method-list li::before,
.growth-stage-list li::before,
.team-priority-list li::before,
#signalResultList li::before,
.prod-list li::before,
.proc-list li::before,
.gate-card li::before,
.tool-card li::before {
  content: "";
  position: absolute;
  left: 0.1em;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--mark-c);
}
.checklist,
.method-list,
.growth-stage-list,
.team-priority-list,
#signalResultList { display: grid; gap: 10px; }

/* ---------- Surfaces ---------- */
.panel,
.card,
.int-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-c);
  border-radius: var(--radius-l);
}

/* ---------- Spec rows (label / value) ---------- */
.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line-c);
}

/* Small interface captions inside product illustrations and instruments */
.ui-label {
  color: var(--fg-2);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* ---------- Inner-page hero band ---------- */
.page-hero-band {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  padding: calc(var(--header-h) + clamp(56px, 9vh, 120px)) 0 clamp(40px, 6vh, 72px);
  min-height: min(88vh, 940px);
  display: flex;
  align-items: flex-end;
}
.page-hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 85% 0%, rgba(22, 73, 63, 0.55), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(12, 58, 52, 0.6), transparent 70%);
  pointer-events: none;
}
.page-hero-band > .container { position: relative; }

.page-hero {
  display: grid;
  gap: clamp(48px, 7vh, 88px);
}
.page-hero-content {
  display: grid;
  gap: 24px;
  max-width: 62rem;
}
.page-hero h1,
.page-hero-band h1 {
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.028em;
  max-width: 13em;
}
.page-kicker { color: var(--fg-2); }
.page-lede {
  max-width: 38rem;
  color: var(--fg-2);
  font-size: var(--fs-lede);
  line-height: 1.55;
}
.page-hero-content .hero-ctas { margin-top: 8px; }

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark-strong);
}
.proof-item {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 22px 24px 4px 0;
}
.proof-item + .proof-item { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.proof-item strong {
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.proof-item span { color: var(--on-dark-2); font-size: var(--fs-sm); line-height: 1.45; }

@media (max-width: 900px) {
  .page-hero-band { min-height: 72vh; }
  .hero-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .proof-item:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }
  .proof-item { padding: 18px 16px 18px 0; }
  .proof-item + .proof-item { padding-left: 16px; }
  .proof-item:nth-child(3) { padding-left: 0; }
  .page-hero-content .hero-ctas .btn { flex: 1 1 100%; min-height: 52px; }
}
@media (max-width: 600px) {
  .page-hero-band { min-height: 100svh; }
}

/* ---------- Dark CTA (inner pages) ---------- */
.dark-cta,
.pricing-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px 48px;
  margin-top: var(--space-section);
  padding: clamp(36px, 5vw, 72px);
  border-radius: var(--radius-xl);
  background: var(--forest);
  overflow: hidden;
  position: relative;
}
.dark-cta > div:first-child,
.pricing-cta > div:first-child { display: grid; gap: 16px; max-width: 46rem; }
.dark-cta h2,
.pricing-cta h2 { font-size: var(--fs-h2); }
.dark-cta p,
.pricing-cta p { color: var(--fg-2); font-size: var(--fs-lede); line-height: 1.55; max-width: 38rem; }
.dark-cta .eyebrow,
.dark-cta .page-kicker,
.pricing-cta .eyebrow { color: var(--fg-2); }
@media (max-width: 760px) {
  .dark-cta,
  .pricing-cta { grid-template-columns: 1fr; border-radius: var(--radius-l); }
  .dark-cta .hero-ctas .btn,
  .pricing-cta .btn { width: 100%; min-height: 52px; }
}

/* ---------- Closing band (full-bleed forest) ---------- */
.enterprise-cta,
.proc-cta {
  overflow: hidden;
  background: var(--forest);
  padding-block: clamp(104px, 13vw, 184px);
}
.enterprise-cta::after,
.proc-cta::after {
  content: "";
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--max)) / 2));
  bottom: -14%;
  width: min(34vw, 420px);
  aspect-ratio: 280 / 360;
  background: var(--forest-3);
  -webkit-mask: url("assets/syntonyl-mark.svg") no-repeat center / contain;
  mask: url("assets/syntonyl-mark.svg") no-repeat center / contain;
  pointer-events: none;
}
.cta-band { position: relative; z-index: 1; display: grid; gap: 24px; justify-items: start; }
.cta-band h2 {
  max-width: 11em;
  font-size: clamp(2.625rem, 1.2rem + 4.8vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.032em;
}
.cta-band .lede { max-width: 34rem; }
.cta-band .hero-ctas { margin-top: 14px; }
.cta-band .btn { min-height: 52px; padding-inline: 1.5rem; font-size: 1rem; }
.enterprise-cta + .site-footer,
.proc-cta + .site-footer,
main + .site-footer { border-top: 1px solid var(--line-dark); }
@media (max-width: 760px) {
  .enterprise-cta::after,
  .proc-cta::after { width: 62vw; right: -18vw; bottom: -10%; }
  .cta-band .hero-ctas { width: 100%; }
  .cta-band .btn { flex: 1 1 100%; min-height: 54px; }
}

/* ---------- Service index (Solutions, Products, Process) ----------
   Each capability reads as one row: identity on the left, detail on the
   right, so names can be scanned down a single column. */
.sol-grid,
.prod-grid,
.proc-grid { display: grid; border-top: 1px solid var(--line-strong); }
.section-intro-row + .sol-card { border-top: 1px solid var(--line-strong); }

.sol-card,
.prod-card,
.proc-card {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 22px;
  padding: clamp(32px, 4.2vw, 60px) 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.card-head { grid-column: 1 / span 5; display: grid; gap: 12px; align-content: start; }
.card-body { grid-column: 7 / -1; display: grid; gap: 18px; align-content: start; }
.card-head h3 { max-width: 14em; font-size: clamp(1.625rem, 1.3rem + 1vw, 2.25rem); }
.sol-sub,
.prod-sub,
.proc-sub { max-width: 30rem; color: var(--sage); font-size: var(--fs-body); line-height: 1.5; }
.card-head .product-artwork {
  width: 100%;
  max-width: 460px;
  margin-top: 12px;
  aspect-ratio: 720 / 500;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--white);
}
.card-body > p { max-width: 40rem; color: var(--ink-2); line-height: 1.65; }
.proc-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.prod-columns,
.proc-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
.prod-list,
.proc-list { display: grid; gap: 10px; align-content: start; }
.prod-list li,
.proc-list li { font-size: var(--fs-sm); }
.sol-cta,
.prod-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

@media (max-width: 900px) {
  .card-head,
  .card-body { grid-column: 1 / -1; }
  .card-head .product-artwork { max-width: none; }
}
@media (max-width: 560px) {
  .prod-columns,
  .proc-columns { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--forest);
  padding: clamp(64px, 8vw, 112px) 0 calc(28px + env(safe-area-inset-bottom));
  color: var(--fg);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 48px;
}
.footer-brand { grid-column: 1 / span 5; display: grid; gap: 18px; align-content: start; }
.footer-brand img { width: auto; height: 34px; filter: invert(1); }
.footer-brand p {
  max-width: 18rem;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.footer-nav {
  grid-column: 6 / span 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  align-content: start;
}
.footer-nav a {
  justify-self: start;
  color: var(--on-dark-2);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-cta { grid-column: 10 / span 3; justify-self: end; }
.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-3);
  font-size: var(--fs-xs);
}
.site-footer > .container > p:only-child { color: var(--on-dark-3); font-size: var(--fs-xs); }
@media (max-width: 900px) {
  .footer-brand,
  .footer-nav,
  .footer-cta { grid-column: 1 / -1; justify-self: stretch; }
  .footer-cta .btn { width: 100%; min-height: 52px; }
  .footer-grid { row-gap: 36px; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(214, 236, 224, 0.2);
  border-radius: 50%;
  background: var(--forest);
  color: var(--on-dark);
  font-size: 1rem;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0s; }
.back-to-top:hover { background: var(--forest-3); }
body.nav-open .back-to-top { opacity: 0; visibility: hidden; }
@media (max-width: 760px) {
  .back-to-top { width: 40px; height: 40px; font-size: 0.9375rem; }
}

/* ---------- Forms (shared) ---------- */
.field { display: grid; gap: 8px; }
.field label { color: var(--ink); font-size: var(--fs-sm); font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--white);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 168px; resize: vertical; }
.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2300211e' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field input::placeholder,
.field textarea::placeholder { color: #7d958b; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--sage); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(0, 33, 30, 0.12);
}

/* ---------- Legacy helpers still referenced in markup ---------- */
.accent { color: inherit; }
.muted { color: var(--fg-2); }
.glass { background: none; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

/* Homepage hero headline stays one voice — no highlighted phrase. */
.hero h1 .accent { white-space: normal; color: inherit; }

/* Horizontal overflow from rails and previews never widens the page. */
.modular { overflow-x: clip; }
