/* ==========================================================================
   RootClimate — site-wide theme & components (single stylesheet)
   1. Tokens  2. Base  3. Layout  4. Header  5. Buttons  6. Components
   7. Home  8. Inner pages  9. Forms  10. Footer  11. Utilities & motion
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
@font-face {
  font-family: "Inter Variable";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand colour */
  --forest: #1B4332;
  --forest-deep: #143C2A;
  --ink: #0A1813;
  --emerald: #2D6A4F;
  --leaf: #40916C;
  --moss: #1F6B45;
  --gold: #C9A227;
  --gold-soft: #E5B454;
  --gold-deep: #B8860B;
  --cream: #F7F3E9;
  --paper: #FBF8EF;
  --sand: #ECE3CE;
  --white: #FFFFFF;
  --mist: #DCE9DE;

  /* semantic */
  --text: #1F2933;
  --text-muted: #4B5A63;
  --text-on-dark: #F7F3E9;
  --text-on-dark-muted: #C9D6CB;
  --line: #E2D9C0;
  --line-dark: rgba(247, 243, 233, .18);
  --focus: #B8860B;
  --danger: #A4262C;
  --ok: #1F6B45;

  /* type */
  --font: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-0: clamp(.9375rem, .92rem + .1vw, 1rem);
  --fs-1: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  --fs-lead: clamp(1.125rem, 1.02rem + .5vw, 1.375rem);
  --fs-h4: 1.1875rem;
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.625rem);
  --fs-h2: clamp(1.9rem, 1.35rem + 2vw, 3rem);
  --fs-h1: clamp(2.5rem, 1.5rem + 3.9vw, 4.6rem);

  /* spacing, radius, shadow */
  --sp-1: .5rem; --sp-2: .75rem; --sp-3: 1rem; --sp-4: 1.5rem; --sp-5: 2rem; --sp-6: 3rem; --sp-7: 4.5rem; --sp-8: 6.5rem;
  --section: clamp(4rem, 3rem + 5vw, 8rem);
  --radius: 14px; --radius-lg: 24px; --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(10, 24, 19, .06), 0 6px 18px rgba(10, 24, 19, .06);
  --shadow-2: 0 2px 4px rgba(10, 24, 19, .06), 0 18px 40px rgba(10, 24, 19, .12);
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-0); line-height: 1.65; color: var(--text);
  background: var(--cream); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0 0 var(--sp-3); line-height: 1.12; letter-spacing: -.02em; font-weight: 650; color: var(--forest); text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -.035em; line-height: 1.04; font-weight: 680; }
h2 { font-size: var(--fs-h2); letter-spacing: -.03em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); letter-spacing: -.01em; }
p { margin: 0 0 var(--sp-3); text-wrap: pretty; }
a { color: var(--emerald); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--forest); text-decoration-thickness: 2px; }
ul, ol { margin: 0 0 var(--sp-3); padding-left: 1.2em; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-5) 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-soft); color: var(--ink); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-muted); max-width: 46rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .8125rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--emerald); margin-bottom: var(--sp-3); }
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: var(--gold); border-radius: 2px; }
.small { font-size: .875rem; color: var(--text-muted); }

/* 3. LAYOUT ---------------------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 820px); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section--dark { background: var(--forest); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--cream); }
.section--dark .lead, .section--dark p { color: var(--text-on-dark-muted); }
.section--dark .eyebrow { color: var(--gold-soft); }
.section--dark a { color: var(--gold-soft); }
.section__head { max-width: 46rem; margin-bottom: var(--sp-6); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
.stack > * + * { margin-top: var(--sp-3); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); align-items: center; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .split, .grid-2 { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* skip link */
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--forest); color: var(--cream); padding: .75rem 1rem; border-radius: 8px; z-index: 200; transition: top .2s; }
.skip-link:focus { top: 1rem; color: var(--cream); }

/* 4. HEADER ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247, 243, 233, .94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(10, 24, 19, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--forest); }
.brand:hover { color: var(--forest); }
.brand__logo { display: block; height: 54px; width: auto; flex: none; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a, .nav .nav-btn { font: inherit; font-weight: 550; font-size: .9688rem; color: var(--text); text-decoration: none; padding: .6rem .85rem; border-radius: 10px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.nav a:hover, .nav .nav-btn:hover { background: rgba(27, 67, 50, .07); color: var(--forest); }
.nav a[aria-current="page"], .nav .nav-btn.is-current { color: var(--forest); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 10px 10px 0 0; }
.nav .nav-btn svg { width: 16px; height: 16px; transition: transform .2s; }
.has-sub { position: relative; }
.has-sub[data-open="true"] .nav-btn svg { transform: rotate(180deg); }
.subnav { position: absolute; top: calc(100% + 6px); left: 0; min-width: 320px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: .5rem; display: none; }
.has-sub[data-open="true"] .subnav { display: block; }
.subnav a { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem .85rem; border-radius: 10px; width: 100%; }
.subnav a:hover { background: var(--cream); }
.subnav svg { width: 22px; height: 22px; flex: none; margin-top: 2px; stroke: var(--emerald); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.subnav strong { display: block; color: var(--forest); font-weight: 650; line-height: 1.3; }
.subnav span.d { display: block; font-weight: 400; font-size: .8438rem; color: var(--text-muted); line-height: 1.4; }
.nav-cta { margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; color: var(--forest); align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .i-close { display: none; }
.site-header[data-open="true"] .nav-toggle .i-menu { display: none; }
.site-header[data-open="true"] .nav-toggle .i-close { display: block; }
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--cream); flex-direction: column; align-items: stretch; gap: .25rem; padding: 1.25rem 1.25rem 2.5rem; overflow-y: auto; display: none; border-top: 1px solid var(--line); }
  .site-header[data-open="true"] .nav { display: flex; }
  .nav a, .nav .nav-btn { font-size: 1.125rem; padding: .9rem .75rem; justify-content: space-between; width: 100%; }
  .nav a[aria-current="page"], .nav .nav-btn.is-current { box-shadow: inset 3px 0 0 var(--gold); border-radius: 0 10px 10px 0; }
  .subnav { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 .5rem .75rem; min-width: 0; }
  .nav-cta { margin: 1rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* 5. BUTTONS --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font: inherit; font-weight: 620; font-size: 1rem; line-height: 1; padding: 1rem 1.5rem; border-radius: var(--radius-pill); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--forest); color: var(--cream); }
.btn--primary:hover { background: var(--emerald); color: var(--cream); }
.btn--accent { background: var(--gold); color: var(--ink); }
.btn--accent:hover { background: var(--gold-soft); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: var(--cream); }
.section--dark .btn--ghost, .on-dark .btn--ghost { color: var(--cream); border-color: rgba(247, 243, 233, .5); }
.section--dark .btn--ghost:hover, .on-dark .btn--ghost:hover { background: var(--cream); color: var(--forest); }
.btn--sm { padding: .7rem 1.1rem; font-size: .9375rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 620; text-decoration: none; color: var(--emerald); }
.link-arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow--back svg { transform: rotate(180deg); }
.link-arrow--back:hover svg { transform: rotate(180deg) translateX(4px); }
.section--dark .link-arrow { color: var(--gold-soft); }

/* 6. COMPONENTS ------------------------------------------------------------ */
.icon { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-badge { width: 56px; height: 56px; border-radius: 16px; background: var(--forest); color: var(--gold-soft); display: grid; place-items: center; margin-bottom: var(--sp-4); }
.icon-badge .icon { width: 28px; height: 28px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); display: flex; flex-direction: column; height: 100%; box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card h3 { font-size: 1.375rem; margin-bottom: var(--sp-2); }
.card p { color: var(--text-muted); }
.card .link-arrow { margin-top: auto; padding-top: var(--sp-3); }
.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: none; }
.card--dark { background: var(--forest-deep); border-color: var(--line-dark); box-shadow: none; }
.card--dark h3 { color: var(--cream); } .card--dark p { color: var(--text-on-dark-muted); }

.checklist { list-style: none; padding: 0; margin: 0 0 var(--sp-3); }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .6rem; }
.checklist svg { width: 20px; height: 20px; flex: none; margin-top: .22em; stroke: var(--leaf); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.section--dark .checklist svg { stroke: var(--gold-soft); }

.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; padding: .35rem .7rem; border-radius: var(--radius-pill); background: var(--mist); color: var(--forest); }
.badge--gold { background: #F4E4B2; color: #5B4300; }
.badge--outline { background: transparent; border: 1px solid var(--line); color: var(--text-muted); }
.badge--dark { background: var(--forest); color: var(--cream); }

.callout { border-left: 4px solid var(--gold); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; padding: var(--sp-4) var(--sp-5); box-shadow: var(--shadow-1); }
.callout h3, .callout h4 { margin-bottom: .4rem; }
.callout p:last-child { margin-bottom: 0; }
.section--dark .callout { background: var(--forest-deep); box-shadow: none; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; margin: 0; position: relative; padding-top: 4.25rem; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-size: 2.75rem; font-weight: 300; letter-spacing: -.04em; color: var(--emerald); line-height: 1; }
.steps li::after { content: ""; position: absolute; top: 1.35rem; left: 4rem; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.125rem; margin-bottom: .4rem; }
.steps p { font-size: .9375rem; color: var(--text-muted); margin: 0; }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-4); } .steps li::after { display: none; } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }

.stat { padding: var(--sp-4) 0; border-top: 2px solid var(--gold); }
.stat__num { display: block; font-size: clamp(2.6rem, 2rem + 2.5vw, 4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--forest); margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.stat__label { font-weight: 620; color: var(--forest); display: block; }
.stat__note { font-size: .875rem; color: var(--text-muted); display: block; margin-top: .25rem; }
.section--dark .stat__num { color: var(--gold-soft); } .section--dark .stat__label { color: var(--cream); } .section--dark .stat__note { color: var(--text-on-dark-muted); }

.media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-2); background: var(--sand); }
.media img { width: 100%; }
.media--tall img { aspect-ratio: 4 / 3; object-fit: cover; }
.media figcaption { padding: .75rem 1rem; font-size: .8125rem; color: var(--text-muted); background: var(--white); }

.logo-strip { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); align-items: center; }
.logo-strip li { list-style: none; margin: 0; font-weight: 650; letter-spacing: -.01em; color: var(--forest); opacity: .85; padding: .4rem 0; border-bottom: 2px solid var(--line); }
.logo-strip { padding: 0; margin: 0; }

.quote { position: relative; max-width: 60rem; margin: 0 auto; text-align: center; }
.quote svg { width: 44px; height: 44px; stroke: var(--gold); fill: none; stroke-width: 1.5; margin: 0 auto var(--sp-4); }
.quote blockquote { margin: 0 0 var(--sp-4); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.35; letter-spacing: -.02em; font-weight: 500; color: var(--forest); text-wrap: balance; }
.quote figcaption { font-weight: 620; color: var(--forest); }
.quote figcaption span { display: block; font-weight: 400; color: var(--text-muted); font-size: .9375rem; }

.cta-band { background: var(--forest); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 5rem); position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url("../img/rings-light.svg") right center / cover no-repeat; opacity: .9; z-index: -1; }
.cta-band h2 { color: var(--cream); max-width: 40rem; } .cta-band p { color: var(--text-on-dark-muted); max-width: 38rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--sp-5); padding: 0; list-style: none; }
.chip { font: inherit; font-weight: 600; font-size: .9375rem; padding: .6rem 1.1rem; border-radius: var(--radius-pill); background: var(--white); color: var(--forest); border: 1px solid var(--line); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--forest); }
.chip[aria-pressed="true"] { background: var(--forest); color: var(--cream); border-color: var(--forest); }
[hidden] { display: none !important; }

/* project & post cards */
.pcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; height: 100%; box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.pcard__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.pcard__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .25rem; }
.pcard h3 { font-size: 1.25rem; margin: 0; }
.pcard p { color: var(--text-muted); margin: 0; font-size: .9688rem; }
.pcard dl { margin: .5rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; font-size: .875rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.pcard dt { color: var(--text-muted); } .pcard dd { margin: 0; font-weight: 580; color: var(--text); }
.pcard .link-arrow { margin-top: auto; padding-top: .75rem; }
.pcard a.stretch::after { content: ""; position: absolute; inset: 0; }
.pcard { position: relative; }

/* 7. HOME ------------------------------------------------------------------ */
.hero { padding-block: clamp(2.5rem, 2rem + 4vw, 6rem) clamp(3rem, 2rem + 5vw, 6rem); overflow: clip; }
.hero__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: var(--sp-4); }
.hero h1 em { font-style: normal; color: var(--emerald); box-shadow: inset 0 -.18em 0 var(--gold-soft); }
.hero .lead { margin-bottom: var(--sp-5); }
.hero__media { position: relative; }
.hero__media .media { border-radius: 28px; box-shadow: var(--shadow-2); }
.hero__media .media img { aspect-ratio: 1 / 1.02; object-fit: cover; object-position: 68% 50%; }
.hero__media::before { content: ""; position: absolute; inset: auto -6% -6% auto; width: 62%; aspect-ratio: 1; background: var(--gold-soft); opacity: .35; border-radius: 50%; z-index: -1; filter: blur(2px); }
.hero__tag { position: absolute; left: -1.25rem; bottom: 2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: .85rem 1.1rem; max-width: 17rem; font-size: .875rem; line-height: 1.4; }
.hero__tag strong { display: block; color: var(--forest); font-size: .9375rem; }
.trust { border-block: 1px solid var(--line); padding-block: var(--sp-4); background: var(--paper); }
.trust__inner { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); align-items: center; justify-content: space-between; }
.trust__label { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; color: var(--text-muted); }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } .hero__tag { left: .75rem; } }

.case { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-2); }
.case__media { min-height: 360px; background: var(--sand); } .case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__body { padding: clamp(1.75rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.case__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); margin: var(--sp-4) 0; padding: 0; list-style: none; }
.case__facts li { margin: 0; border-top: 2px solid var(--gold); padding-top: .6rem; font-size: .875rem; color: var(--text-muted); }
.case__facts strong { display: block; color: var(--forest); font-size: 1rem; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } .case__media { min-height: 240px; aspect-ratio: 3 / 2; } }

/* 8. INNER PAGES ----------------------------------------------------------- */
.page-hero { background: var(--forest); color: var(--cream); position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: url("../img/rings-light.svg") right center / cover no-repeat; z-index: -1; opacity: .85; }
.page-hero h1 { color: var(--cream); max-width: 18ch; } .page-hero .lead { color: var(--text-on-dark-muted); } .page-hero .eyebrow { color: var(--gold-soft); }
.breadcrumb { font-size: .875rem; margin-bottom: var(--sp-4); color: var(--text-on-dark-muted); }
.breadcrumb a { color: var(--text-on-dark-muted); } .breadcrumb a:hover { color: var(--cream); }
.breadcrumb span[aria-current] { color: var(--cream); }

.anchor-nav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(251, 248, 239, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.anchor-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: .5rem 0; overflow-x: auto; }
.anchor-nav li { margin: 0; }
.anchor-nav a { display: block; white-space: nowrap; padding: .6rem 1rem; border-radius: var(--radius-pill); text-decoration: none; font-weight: 600; font-size: .9375rem; color: var(--text); }
.anchor-nav a:hover { background: var(--mist); }
.anchor-nav a.is-active { background: var(--forest); color: var(--cream); }

.solution { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); padding-block: var(--sp-7); border-top: 1px solid var(--line); }
.solution:first-of-type { border-top: 0; }
.solution__aside { position: sticky; top: calc(var(--header-h) + 80px); align-self: start; }
.solution__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); margin-block: var(--sp-4); }
.solution h4 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .12em; color: var(--emerald); margin-bottom: .6rem; }
@media (max-width: 900px) { .solution { grid-template-columns: 1fr; } .solution__aside { position: static; } .solution__cols { grid-template-columns: 1fr; } }

.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
.person { text-align: left; }
.person__ph { aspect-ratio: 1; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--mist), var(--sand)); display: grid; place-items: center; margin-bottom: var(--sp-3); color: var(--emerald); }
.person__ph svg { width: 38%; stroke: currentColor; fill: none; stroke-width: 1.2; opacity: .6; }
.person h3 { font-size: 1.125rem; margin: 0; } .person p { margin: 0; font-size: .9375rem; color: var(--text-muted); }
@media (max-width: 1024px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 var(--sp-5) var(--sp-5); margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: .35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid var(--cream); }
.timeline strong { color: var(--forest); display: block; }

.prose { font-size: var(--fs-1); line-height: 1.75; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: var(--sp-6); } .prose h3 { margin-top: var(--sp-5); }
.prose p, .prose li { color: #2B3640; }
.prose blockquote { margin: var(--sp-5) 0; padding: var(--sp-3) var(--sp-4); border-left: 4px solid var(--gold); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9375rem; color: var(--text-on-dark-muted); margin-top: var(--sp-4); }
.table-wrap { overflow-x: auto; margin: var(--sp-4) 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: .9688rem; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper); color: var(--forest); font-weight: 650; }
tr:last-child td { border-bottom: 0; }

/* 9. FORMS ----------------------------------------------------------------- */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow-1); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 620; color: var(--forest); font-size: .9688rem; padding: 0; }
.field .req { color: var(--danger); margin-left: .15rem; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { font: inherit; color: var(--text); background: var(--cream); border: 1.5px solid #BFB596; border-radius: 12px; padding: .85rem 1rem; width: 100%; min-height: 3.1rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--emerald); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); background: var(--white); box-shadow: 0 0 0 4px rgba(184, 134, 11, .35); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: .875rem; min-height: 1.2em; font-weight: 550; }
.field .hint { font-size: .8438rem; color: var(--text-muted); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.option { display: flex; gap: .6rem; align-items: center; background: var(--cream); border: 1.5px solid #BFB596; border-radius: 12px; padding: .7rem .9rem; cursor: pointer; font-weight: 500; }
.option:hover { border-color: var(--emerald); }
.option input { width: 1.15rem; height: 1.15rem; accent-color: var(--forest); flex: none; }
.option:has(input:checked) { border-color: var(--forest); background: var(--mist); }
.option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); font-weight: 560; display: none; }
.form-status.is-ok { display: block; background: var(--mist); color: var(--forest); border: 1px solid var(--leaf); }
.form-status.is-error { display: block; background: #FBE9EA; color: #7A1A20; border: 1px solid #E3A9AD; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); }
.contact-list li { display: flex; gap: var(--sp-3); margin: 0; }
.contact-list .icon { color: var(--emerald); margin-top: .2rem; }
.contact-list strong { display: block; color: var(--forest); }
@media (max-width: 700px) { .form__grid, .options { grid-template-columns: 1fr; } }

/* 10. FOOTER --------------------------------------------------------------- */
.site-footer { background: var(--forest-deep); color: var(--text-on-dark-muted); padding-top: var(--sp-7); position: relative; overflow: hidden; }
.site-footer a { color: var(--text-on-dark-muted); text-decoration: none; } .site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--sp-6); padding-bottom: var(--sp-6); }
.footer-brand .brand__logo { height: 60px; }
.footer-brand p { max-width: 24rem; margin-top: var(--sp-3); font-size: .9688rem; }
.site-footer h2 { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); font-weight: 650; margin-bottom: var(--sp-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; } .site-footer li { margin-bottom: .55rem; }
.footer-base { border-top: 1px solid var(--line-dark); padding-block: var(--sp-4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); font-size: .875rem; }
.footer-base ul { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.footer-note { font-size: .8125rem; max-width: 60rem; padding-bottom: var(--sp-4); opacity: .85; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* 11. UTILITIES, PLACEHOLDERS & MOTION ------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.center { text-align: center; } .mt-0 { margin-top: 0; } .mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mb-0 { margin-bottom: 0; }
.muted { color: var(--text-muted); }

/* Placeholder content: swap before launch. The toolbar is injected by main.js
   (set SHOW_PLACEHOLDER_TOOLBAR=false there to remove it for production). */
[data-placeholder] { border-radius: 4px; }
body.show-ph [data-placeholder] { background: rgba(229, 180, 84, .38); outline: 2px dashed var(--gold-deep); outline-offset: 2px; color: inherit; }
.ph-bar { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 150; background: var(--ink); color: var(--cream); border-radius: var(--radius-pill); padding: .5rem .6rem .5rem 1.1rem; display: flex; align-items: center; gap: .9rem; font-size: .875rem; box-shadow: var(--shadow-2); max-width: calc(100vw - 1.5rem); }
.ph-bar button { font: inherit; font-weight: 650; background: var(--gold-soft); color: var(--ink); border: 0; border-radius: var(--radius-pill); padding: .5rem .95rem; cursor: pointer; }
.ph-bar button[aria-pressed="true"] { background: var(--cream); }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .pcard:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .ph-bar, .cta-band, .anchor-nav { display: none !important; }
  body { background: #fff; } .section { padding-block: 1.5rem; }
}

/* Mobile refinements */
@media (max-width: 720px) {
  .hero__media .media img { aspect-ratio: 4 / 3.4; object-position: 60% 50%; }
  .ph-bar { left: .75rem; right: .75rem; transform: none; width: auto; border-radius: 18px; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: .6rem .75rem; font-size: .8rem; }
  .ph-bar button, .ph-bar .btn { white-space: nowrap; flex: 0 0 auto; }
}
@media (max-width: 720px) {
  .hero__media { width: 100%; }
  .hero__media .media img { aspect-ratio: 4 / 3; object-position: 55% 55%; }
  .hero__tag { position: static !important; transform: none !important; margin: .75rem 0 0; max-width: none; width: 100%; }
}

/* 99. MOBILE OPTIMISATION -------------------------------------------------- */
figure { margin: 0; }   /* browser default (16px 40px) pushed every .media figure off-centre and past the screen edge */
/* Safe rule for every width: nothing may push the page sideways. */
html, body { max-width: 100%; overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }
.case, .hero__grid, .split, .solution, .grid-2, .grid-3, .grid-4 { min-width: 0; }
.case > *, .hero__grid > *, .split > *, .solution > * { min-width: 0; }
.case { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .case { grid-template-columns: minmax(0, 1fr); } }
h1, h2, h3, p, li, a, td, th { overflow-wrap: break-word; }
/* iOS notch / home-bar safe areas */
.site-header { padding-top: env(safe-area-inset-top, 0px); }
.site-footer { padding-bottom: env(safe-area-inset-bottom, 0px); }
.ph-bar { bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }

/* Touch devices: comfortable 44px targets, no hover-only affordances */
@media (hover: none), (max-width: 1000px) {
  .btn { min-height: 48px; }
  .nav a, .nav .nav-btn { min-height: 48px; }
  .subnav a { min-height: 48px; }
  .anchor-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .anchor-nav ul { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .anchor-nav ul::-webkit-scrollbar { display: none; }
  .anchor-nav li { scroll-snap-align: start; }
  .btn:hover svg { transform: none; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; --section: 3.25rem; --fs-h1: clamp(2.1rem, 1.3rem + 4.6vw, 2.6rem); --fs-h2: clamp(1.6rem, 1.2rem + 2.6vw, 2rem); }
  body { font-size: 1rem; line-height: 1.6; }
  .container { width: min(100% - 2rem, var(--container)); }
  .brand__logo { height: 42px; }
  .footer-brand .brand__logo { height: 48px; }
  .nav-toggle { width: 48px; height: 48px; }
  .nav { height: calc(100dvh - var(--header-h)); padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
  .lead { font-size: 1.0625rem; }

  /* hero */
  .hero { padding-top: 1.5rem; }
  .hero__grid { gap: var(--sp-5); }
  .cluster { flex-direction: column; align-items: stretch; gap: .75rem; }
  .cluster .btn { width: 100%; }
  .hero__media, .hero__media .media { width: 100%; max-width: 100%; }
  .hero__media .media { border-radius: 20px; }
  .hero__media::before { display: none; }
  .trust__inner { gap: .75rem 1.5rem; justify-content: flex-start; }

  /* cards, steps, cases */
  .card, .case__body { padding: var(--sp-4); }
  .case__media { min-height: 200px; }
  .grid-2, .grid-3, .grid-4, .people, .steps { gap: var(--sp-4); }
  .card a, .card__link, .link-arrow { display: inline-flex; align-items: center; min-height: 44px; }
  .section__head { margin-bottom: var(--sp-5); }

  /* CTA band */
  .cta-band { border-radius: var(--radius); padding: 2rem 1.5rem; }
  .cta-band .btn, .cta-band .cluster .btn { width: 100%; }

  /* data tables scroll inside their own box, with a hint */
  .table-wrap { -webkit-overflow-scrolling: touch; background: linear-gradient(to right, var(--white) 30%, transparent), linear-gradient(to left, var(--white) 30%, transparent) 100% 0, linear-gradient(to right, rgba(0,0,0,.12), transparent) 0 0, linear-gradient(to left, rgba(0,0,0,.12), transparent) 100% 0; background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%; background-attachment: local, local, scroll, scroll; }
  table { min-width: 34rem; font-size: .9375rem; }

  /* forms: 16px stops iOS zooming into fields; big touch targets */
  .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { font-size: 1rem; min-height: 50px; }
  .field label, .field legend { font-size: 1rem; }
  .options label, .option { min-height: 48px; }
  input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; }
  .form .btn { width: 100%; }

  /* footer */
  .site-footer a { display: inline-block; padding-block: .5rem; }
  .footer-grid { gap: var(--sp-5); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .footer-bottom a { padding-block: .35rem; }

  /* readable small print */
  .small, .breadcrumb, .eyebrow, .trust__label, .subnav span.d, small, figcaption, .tag, .hero__tag { font-size: max(.875rem, 13.5px); }
  .eyebrow { letter-spacing: .1em; }

  /* draft toolbar: compact, never covers the thumb zone's content */
  .ph-bar { left: .5rem; right: .5rem; bottom: calc(.5rem + env(safe-area-inset-bottom, 0px)); padding: .4rem .5rem .4rem .85rem; gap: .5rem; font-size: .8125rem; }
  .ph-bar button { min-height: 40px; }
}

@media (max-width: 380px) {
  .container { width: min(100% - 1.5rem, var(--container)); }
  .brand__logo { height: 38px; }
  h1 { hyphens: auto; }
  .steps li, .card { padding-inline: var(--sp-3); }
}
@media (max-width: 1000px) {
  .subnav a { justify-content: flex-start; text-align: left; }
  .subnav a > span:not(.d), .subnav a > div { flex: 1; min-width: 0; }
  html:has(.site-header[data-open="true"]) .ph-bar { display: none; }
}
.nav .nav-cta .btn, .nav .nav-cta .btn:hover { background: var(--forest); color: var(--cream); justify-content: center; border-radius: var(--radius-pill); }
