/* ==========================================================================
   MYTD — sitewide stylesheet (the only one)
   Design language: "bound advisory memorandum"
   - Warm-tinted monochrome: paper base, ink bands (matches #1c1c1c wordmark)
   - One restrained accent: aged brass, numerals + details only
   - Display: system serif (Iowan Old Style / Palatino). Body: system grotesque.
   - Section themes: add .theme-ink to any <section>/<footer> to invert it.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Core palette (warm-tinted neutrals, OKLCH) */
  --c-paper:        oklch(97.4% 0.004 85);  /* page base */
  --c-paper-2:      oklch(95%   0.005 85);  /* raised panels on paper */
  --c-ink:          oklch(21%   0.005 85);  /* ≈ #1c1c1c, the wordmark ink */
  --c-ink-2:        oklch(25.5% 0.006 85);  /* raised panels on ink */
  --c-ink-3:        oklch(33%   0.006 85);  /* rules on ink */
  --c-line:         oklch(87%   0.006 85);  /* rules on paper */
  --c-text-muted:   oklch(42%   0.008 85);  /* secondary text on paper (AA) */
  --c-on-ink:       oklch(93%   0.004 85);  /* text on ink */
  --c-on-ink-muted: oklch(75%   0.006 85);  /* secondary text on ink (AA) */
  --c-brass:        oklch(46%   0.075 60);  /* accent, AA at small sizes on paper */
  --c-brass-soft:   oklch(58%   0.08  65);  /* accent, large/decorative on paper */
  --c-brass-bright: oklch(80%   0.09  80);  /* accent on ink */
  --c-err:          oklch(45%   0.14  27);  /* error text on paper */
  --c-ok:           oklch(40%   0.09 145);  /* success text on paper */

  /* Semantic (light theme defaults; .theme-ink flips them) */
  --bg:            var(--c-paper);
  --bg-raised:     var(--c-paper-2);
  --fg:            var(--c-ink);
  --muted:         var(--c-text-muted);
  --rule:          var(--c-line);
  --accent:        var(--c-brass);        /* small-text safe */
  --accent-soft:   var(--c-brass-soft);   /* large numerals, decoration */

  /* Type */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino,
                  "Book Antiqua", "URW Palladio L", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;

  --fs-display: clamp(2.6rem, 1.4rem + 4.2vw, 4.6rem);   /* h1 / hero */
  --fs-h2:      clamp(1.85rem, 1.25rem + 2vw, 2.8rem);
  --fs-h3:      clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  --fs-lead:    clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-label:   0.78rem;

  /* Space & shape */
  --space-section: clamp(4.5rem, 3rem + 7vw, 8.5rem);
  --space-block:   clamp(2.25rem, 1.5rem + 2.5vw, 3.75rem);
  --gutter:        clamp(1.25rem, 4vw, 2.5rem);
  --radius:        2px;

  --header-h: 4.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark band theme: apply to sections, hero, footer */
.theme-ink {
  --bg:          var(--c-ink);
  --bg-raised:   var(--c-ink-2);
  --fg:          var(--c-on-ink);
  --muted:       var(--c-on-ink-muted);
  --rule:        var(--c-ink-3);
  --accent:      var(--c-brass-bright);
  --accent-soft: var(--c-brass-bright);
  background-color: var(--bg);
  color: var(--fg);
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  background-color: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

::selection {
  background: var(--c-ink);
  color: var(--c-paper);
}
.theme-ink ::selection {
  background: var(--c-paper);
  color: var(--c-ink);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-display); line-height: 1.06; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-width: 62ch;
}

.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }

.label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Inline text links inside copy */
.link {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s var(--ease-out);
}
.link:hover { text-decoration-color: var(--accent); }

/* Arrow text link (CTAs that are not buttons) */
.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
}
.link-arrow::after {
  content: "\2192"; /* → */
  transition: transform 0.25s var(--ease-out);
}
.link-arrow:hover::after,
.link-arrow:focus-visible::after { transform: translateX(0.3em); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 0.22em; }

/* Long-form copy (about narrative, legal intros, service descriptions) */
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; margin-bottom: 0.6em; }
.prose h3 { margin-top: 1.8em; margin-bottom: 0.5em; }
.prose ul, .prose ol { margin: 1em 0 1em 1.25em; padding: 0; }
.prose li + li { margin-top: 0.45em; }
.prose blockquote {
  margin: 1.5em 0;
  padding-left: 1.25em;
  border-left: 1px solid var(--rule);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), 72rem);
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2 * var(--gutter), 48rem); }
.container--wide   { width: min(100% - 2 * var(--gutter), 82rem); }

.section { padding-block: var(--space-section); }
.section--flush-top { padding-top: 0; }
.section + .section--ruled { border-top: 1px solid var(--rule); }

/* Section heading with memorandum index number.
   Usage:
   <header class="sec-head">
     <span class="sec-no" aria-hidden="true">01</span>
     <div><h2>…</h2><p class="lead">…</p></div>
   </header> */
.sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: clamp(1rem, 3vw, 2.25rem);
  margin-bottom: var(--space-block);
  max-width: 56rem;
}
.sec-no {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  border-top: 2px solid currentColor;
  padding-top: 0.55rem;
  margin-top: 0.4rem;
  min-width: 2.6rem;
}
.sec-head .lead { margin-top: 1rem; }

/* Simple responsive grid */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 48em) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.grid--fit { grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); }

/* Two-column split: sticky lead + flowing content (desktop) */
.split { display: grid; gap: var(--space-block); }
@media (min-width: 60em) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }
  .split > .split__lead { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

/* --------------------------------------------------------------------------
   5. Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.6em 1em;
  background: var(--c-ink);
  color: var(--c-paper);
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

/* Wordmark: the logo rendered in CSS — light-gray MYTD on near-black */
.brand {
  display: inline-flex;
  text-decoration: none;
  flex: none;
}
.brand__mark {
  display: inline-block;
  background: var(--c-ink);
  color: oklch(83% 0.003 85);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  padding: 0.42em 0.7em 0.42em 0.85em; /* extra left pads the tracked text */
  line-height: 1;
  border-radius: var(--radius);
}
.brand:focus-visible { outline-offset: 4px; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__link {
  display: inline-block;
  padding: 0.35em 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s var(--ease-out);
}
.site-nav__link:hover { border-bottom-color: var(--c-line); }
.site-nav__link[aria-current="page"] { border-bottom-color: var(--c-ink); }

.site-nav .btn { margin-left: 0.5rem; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  border-radius: var(--radius);
}
.nav-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-ink);
  transition: transform 0.25s var(--ease-out), opacity 0.2s var(--ease-out);
}

@media (max-width: 47.99em) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--c-paper);
    border-bottom: 1px solid var(--c-line);
    padding: 0.75rem var(--gutter) 1.5rem;
    display: none;
  }
  .site-nav.is-open { display: block; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav__list > li { border-top: 1px solid var(--c-line); }
  .site-nav__list > li:first-child { border-top: 0; }
  .site-nav__link {
    display: block;
    padding: 0.9em 0;
    font-size: 1.05rem;
    border-bottom: 0;
  }
  .site-nav__link[aria-current="page"] { font-weight: 700; }
  .site-nav .btn {
    margin: 1rem 0 0;
    width: 100%;
    justify-content: center;
  }

  /* Hamburger → X (lines are children 2–4; child 1 is the visually-hidden label) */
  .nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.8em 1.6em;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  transition: background-color 0.2s var(--ease-out),
              color 0.2s var(--ease-out);
}
.btn:hover,
.btn:focus-visible {
  background: transparent;
  color: var(--fg);
}
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--rule);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--fg);
  background: transparent;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn--lg { padding: 0.95em 2em; font-size: 1.05rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

/* --------------------------------------------------------------------------
   8. Hero (home) & page hero (subpages)
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(5rem, 4rem + 8vw, 10rem) clamp(4rem, 3rem + 6vw, 7.5rem); }
.hero__grid { display: grid; gap: clamp(3rem, 6vw, 5rem); }
@media (min-width: 62em) {
  .hero__grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: end;
  }
}
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 1.75rem; max-width: 56ch; }
.hero .cta-row { margin-top: 2.5rem; }

/* Quiet practice index in the hero's second column */
.hero-index { border-top: 2px solid var(--accent); padding-top: 1.1rem; }
.hero-index__title {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.hero-index ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: hero-idx;
}
.hero-index li {
  counter-increment: hero-idx;
  border-top: 1px solid var(--rule);
}
.hero-index li:first-child { border-top: 0; }
.hero-index a {
  display: flex;
  align-items: baseline;
  gap: 0.9em;
  padding: 0.62em 0;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--fg);
}
.hero-index a::before {
  content: counter(hero-idx, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--accent);
}
.hero-index a:hover { text-decoration: underline; text-underline-offset: 0.22em; }

/* Entrance: opacity/transform only, once */
@media (prefers-reduced-motion: no-preference) {
  .hero__grid > * {
    animation: rise-in 0.9s var(--ease-out) both;
  }
  .hero__grid > * + * { animation-delay: 0.15s; }
  @keyframes rise-in {
    from { opacity: 0; transform: translateY(1.25rem); }
    to   { opacity: 1; transform: none; }
  }
}

/* Subpage hero band (dark) */
.page-hero {
  padding-block: clamp(3.5rem, 3rem + 4vw, 6rem);
}
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 1.25rem; }
.page-hero .crumbs { margin-bottom: 1.75rem; }

/* Breadcrumbs (subpages) */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}
.crumbs li + li::before { content: "/"; margin-right: 0.6em; opacity: 0.5; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.crumbs [aria-current="page"] { color: var(--fg); }

/* --------------------------------------------------------------------------
   9. Cards, ledger rows, steps, chips
   -------------------------------------------------------------------------- */
.card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--bg);
}
.card > h3 { margin-bottom: 0.6rem; }
.card--raised { background: var(--bg-raised); border-color: transparent; }

/* Audience rows: numbered stacked entries (used with .split) */
.roster { list-style: none; margin: 0; padding: 0; counter-reset: roster; }
.roster > li {
  counter-increment: roster;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(1rem, 3vw, 2rem);
  padding-block: clamp(1.4rem, 2.5vw, 2rem);
  border-top: 1px solid var(--rule);
}
.roster > li:first-child { border-top: 0; padding-top: 0; }
.roster > li::before {
  content: counter(roster, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  padding-top: 0.3rem;
  min-width: 2.2rem;
}
.roster h3 { margin-bottom: 0.45rem; }
.roster p { color: var(--muted); max-width: 55ch; }

/* Services ledger: numbered index rows, whole row is a link */
.ledger { list-style: none; margin: 0; padding: 0; counter-reset: ledger; border-top: 1px solid var(--rule); }
.ledger > li { counter-increment: ledger; border-bottom: 1px solid var(--rule); }
.ledger__link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: 0.35rem;
  padding: clamp(1.25rem, 2.5vw, 1.9rem) 0.25rem;
  text-decoration: none;
  color: var(--fg);
  transition: background-color 0.2s var(--ease-out);
}
.ledger__link::before {
  content: counter(ledger, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent);
  min-width: 2.4rem;
}
.ledger__link::after {
  content: "\2192";
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.15rem;
  color: var(--muted);
  transition: transform 0.25s var(--ease-out), color 0.2s var(--ease-out);
}
.ledger__title {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.25;
}
.ledger__desc {
  grid-column: 2;
  grid-row: 2;
  color: var(--muted);
  max-width: 62ch;
}
.ledger__link:hover { background: var(--bg-raised); }
.ledger__link:hover::after { transform: translateX(0.35em); color: var(--fg); }
.ledger__link:hover .ledger__title { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }

/* Engagement steps: large numerals, top rules */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2rem, 4vw, 2.75rem); counter-reset: steps; }
@media (min-width: 40em) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps > li { counter-increment: steps; border-top: 2px solid var(--fg); padding-top: 1.1rem; }
.steps > li::before {
  content: counter(steps, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 2vw + 1.5rem, 3rem);
  line-height: 1;
  color: var(--accent-soft);
  margin-bottom: 0.9rem;
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--muted); font-size: 0.95rem; }

/* Value chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chip {
  display: inline-block;
  padding: 0.5em 1.05em;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
}
a.chip { text-decoration: none; transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out); }
a.chip:hover { border-color: var(--fg); background: var(--bg-raised); }

/* --------------------------------------------------------------------------
   10. Mission band (blockquote centerpiece)
   -------------------------------------------------------------------------- */
.mission-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.008em;
  max-width: 32ch;
  border: 0;
  padding: 0;
  margin: 0;
}
.mission-quote::before {
  content: "";
  display: block;
  width: 3.5rem;
  border-top: 2px solid var(--accent);
  margin-bottom: 2rem;
}
.mission-attr {
  margin-top: 2rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   11. Values (about page): each value as a named entity
   -------------------------------------------------------------------------- */
.values { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); }
@media (min-width: 48em) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 70em) { .values { grid-template-columns: repeat(3, 1fr); } }
.values > article { border-top: 1px solid var(--rule); padding-top: 1.1rem; }
.values h3 {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.values p { color: var(--muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); padding-block: clamp(1.5rem, 3vw, 2.25rem); }
.faq-item h2, .faq-item h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.75rem;
}
.faq-item p { max-width: 68ch; color: var(--muted); }
.faq-item p + p { margin-top: 0.75em; }

/* --------------------------------------------------------------------------
   13. Forms (contact)
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.4rem; }
@media (min-width: 40em) {
  .form { grid-template-columns: repeat(2, 1fr); }
  .form .field--full { grid-column: 1 / -1; }
}
.field { display: grid; gap: 0.45rem; }
.field__label { font-weight: 600; font-size: var(--fs-small); }
.field__label .req { color: var(--c-err); }
.field input,
.field textarea {
  font: inherit;
  color: var(--c-ink);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 0.75em 0.9em;
  width: 100%;
  transition: border-color 0.2s var(--ease-out);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--c-text-muted); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 0;
  border-color: var(--c-ink);
}
.field input::placeholder, .field textarea::placeholder { color: oklch(54% 0.006 85); } /* 4.69:1 on paper (AA) */
.field.has-error input, .field.has-error textarea { border-color: var(--c-err); }
.field__error { font-size: var(--fs-small); color: var(--c-err); }

/* Honeypot: visually removed, still in the accessibility-hidden DOM */
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form__note { grid-column: 1 / -1; font-size: var(--fs-small); color: var(--c-text-muted); max-width: 60ch; }

/* Form status messages (aria-live region) */
.form-status { grid-column: 1 / -1; }
.form-status[hidden] { display: none; }
.form-status__box {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
}
.form-status--ok .form-status__box { border-color: var(--c-ok); color: var(--c-ok); }
.form-status--err .form-status__box { border-color: var(--c-err); color: var(--c-err); }

/* Contact facts block */
.contact-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.contact-facts li { display: grid; gap: 0.15rem; }
.contact-facts .label { font-size: var(--fs-label); }
.contact-facts a { text-decoration: none; font-weight: 600; }
.contact-facts a:hover { text-decoration: underline; text-underline-offset: 0.22em; }

/* --------------------------------------------------------------------------
   14. Pre-footer CTA band
   -------------------------------------------------------------------------- */
.cta-band { text-align: left; }
.cta-band__inner { display: grid; gap: 2rem; }
@media (min-width: 62em) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }
  .cta-band__action { justify-self: end; text-align: right; }
}
.cta-band h2 { max-width: 18ch; }
.cta-band p { margin-top: 1rem; max-width: 46ch; color: var(--muted); }
.cta-band__micro { margin-top: 1rem; font-size: var(--fs-small); color: var(--muted); }
.cta-band__micro a { color: var(--fg); text-decoration: none; }
.cta-band__micro a:hover { text-decoration: underline; text-underline-offset: 0.22em; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3rem);
}
@media (min-width: 48em) {
  .site-footer__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); }
}
.site-footer .brand__mark {
  background: var(--bg-raised);
  color: var(--fg);
  border: 1px solid var(--rule);
}
.site-footer__tagline {
  margin-top: 1.25rem;
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer__head {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer__grid a { color: var(--fg); text-decoration: none; font-size: 0.95rem; }
.site-footer__grid a:hover { text-decoration: underline; text-underline-offset: 0.22em; }
.site-footer .muted-line { color: var(--muted); font-size: 0.95rem; }

.site-footer__legal {
  border-top: 1px solid var(--rule);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-small);
  color: var(--muted);
}
.site-footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__legal a { color: var(--muted); text-decoration: none; }
.site-footer__legal a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 0.22em; }

/* --------------------------------------------------------------------------
   16. Legal pages (Iubenda embed shell) & 404
   -------------------------------------------------------------------------- */
.legal-embed { max-width: 52rem; }
.legal-embed .iubenda_embed_policy { font-family: var(--font-body); }

.error-page { min-height: 55vh; display: grid; align-content: center; }
.error-page h1 { margin-bottom: 1rem; }
.error-links { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.error-links a { font-weight: 600; }

/* --------------------------------------------------------------------------
   17. Utilities
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.center { text-align: center; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
