/* Dekla Inc. — site styles
   Look: deep navy with warm amber accents, floating navigation bar, pill buttons.
   Headings: Poppins. Body text: Atkinson Hyperlegible Next (Braille Institute) for readability.
   Both fonts SIL OFL 1.1, self-hosted. All text colour pairs meet WCAG 2.2 AAA (7:1). */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --ink: #071B35;          /* navy: hero, footer, headings */
  --ink-2: #0B2545;        /* lighter navy panels */
  --ink-deep: #03122A;
  --amber: #F7BF5A;        /* accent: buttons on navy, highlights */
  --amber-hover: #FFD27F;
  --paper: #FFFFFF;
  --mist: #F3F5F8;         /* alternate section background */
  --bar: #F5F6F7;          /* navigation bar */
  --rule: #DDE2EA;
  --field: #6B7686;
  --text: #0F1F38;
  --muted: #434D5E;
  --link: #1D4FA8;
  --link-hover: #153A7D;
  --on-ink-muted: #C9D3E0;
  --error: #9F1C12;
  --success: #17592F;
  --focus: #1D4FA8;

  --font: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --step--1: 0.9375rem;   /* 15px */
  --step-0: 1.125rem;     /* 18px body */
  --step-1: 1.3125rem;    /* 21px */
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.5vw, 2.375rem);
  --step-4: clamp(2.25rem, 1.5rem + 2.9vw, 3.5rem);

  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 7vw, 6rem);
  --radius: 10px;
  --radius-lg: 16px;
  --header-space: 5.25rem;  /* height of the floating navigation bar + its top margin */
  --shadow: 0 12px 32px rgba(3, 18, 42, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 7rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  font-variant-numeric: lining-nums;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 0.6em; font-weight: 600; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.3; }
p, ul, ol, dl, table { margin: 0 0 1.1em; }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 700; }
abbr[title] { text-decoration: none; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 42rem; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.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;
}

/* Skip link */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--amber); color: var(--ink); padding: 0.75rem 1rem; border-radius: var(--radius);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; color: var(--ink); }

/* ---------- Floating navigation bar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 0.85rem var(--gutter) 0;
  margin-bottom: calc(-1 * var(--header-space));
  pointer-events: none;           /* the bar itself takes clicks; the space around it doesn't */
}
.site-header .wrap {
  pointer-events: auto; position: relative;
  max-width: calc(var(--wrap) - 2 * var(--gutter) + 2.5rem);
  display: flex; align-items: center; gap: 1rem;
  min-height: 4.4rem; padding-inline: clamp(1rem, 2.5vw, 1.75rem);
  background: var(--bar); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(3, 18, 42, 0.22);
}
.brand { display: inline-flex; align-items: center; padding: 0.5rem 1.25rem 0.5rem 0; border-right: 1px solid #CDD3DC; }
.brand img { height: 2.4rem; width: auto; }
.nav-toggle {
  display: none; margin-left: auto;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step--1);
  color: var(--ink); background: transparent;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 0.45rem 1rem; min-height: 44px; cursor: pointer;
}
.nav-toggle svg { display: inline-block; vertical-align: -0.2em; margin-right: 0.35rem; }
.site-nav { flex: 1; }
.site-nav ul { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: inline-block; padding: 0.6rem 0.8rem; color: #1E2633;
  font-family: var(--font-display); font-weight: 500; font-size: 0.975rem;
  text-decoration: none; border-radius: 8px;
}
.site-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.site-nav a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--amber); text-underline-offset: 0.45em; }
.site-nav .nav-cta { margin-left: auto; }
.site-nav .nav-cta a {
  background: var(--amber); color: var(--ink); font-weight: 600;
  padding: 0.6rem 1.35rem; border-radius: 999px; border: 2px solid var(--amber);
}
.site-nav .nav-cta a:hover, .site-nav .nav-cta a[aria-current] { background: var(--amber-hover); border-color: var(--amber-hover); text-decoration: none; }

@media (max-width: 62rem) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .brand { border-right: 0; padding-right: 0; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 0.5rem); background: var(--paper); border-radius: 14px; box-shadow: 0 18px 40px rgba(3, 18, 42, 0.25); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1rem 1rem; }
  .site-nav a { display: block; padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .site-nav .nav-cta { margin-left: 0; }
  .site-nav .nav-cta a { margin-top: 0.85rem; text-align: center; border-radius: 999px; }
}
@media (max-width: 62rem) and (scripting: none) {
  .nav-toggle { display: none; }
  .site-header { position: static; margin-bottom: 0; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { display: block; position: static; box-shadow: none; width: 100%; }
}

/* ---------- Buttons (pills) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.6rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn .btn-meta { font-family: var(--font); font-weight: 400; font-size: 0.875em; white-space: nowrap; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Navy sections ---------- */
.on-ink { --focus: var(--amber); background: var(--ink); color: #fff; }
.on-ink a { color: var(--amber); }
.on-ink a:hover { color: #fff; }
.on-ink .lede, .on-ink .muted { color: var(--on-ink-muted); }
.on-ink .btn { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.on-ink .btn:hover { background: var(--amber-hover); border-color: var(--amber-hover); color: var(--ink); }
.on-ink .btn-outline { background: transparent; border-color: rgba(255, 255, 255, 0.85); color: #fff; }
.on-ink .btn-outline:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-mark { display: none; }
.hero-home {
  display: grid; align-items: center;
  min-height: min(92vh, 54rem);
  background: var(--ink) url("../img/hero-capitol.svg") right center / cover no-repeat;
}
.hero-home .wrap { padding-top: calc(var(--header-space) + clamp(3rem, 8vw, 5rem)); padding-bottom: clamp(3.5rem, 9vw, 6rem); }
.hero-home .hero-copy { max-width: 40rem; }
.hero-home h1 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.3rem); font-weight: 600; margin-bottom: 0.5em; }
.hero-home .lede { color: #E4E9F0; max-width: 34rem; }
.hero-ids { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1.5rem; margin: 1.75rem 0 0; font-size: var(--step--1); color: var(--on-ink-muted); }
.hero-ids strong { color: #fff; letter-spacing: 0.04em; }
/* Optional photo chosen in the WordPress Customizer, darkened on the left so the text stays readable */
.hero-home[data-photo] { background-image: var(--hero-photo); background-position: center; background-size: cover; }
.hero-home[data-photo]::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3, 18, 42, 0.95) 0%, rgba(3, 18, 42, 0.88) 45%, rgba(3, 18, 42, 0.35) 80%, rgba(3, 18, 42, 0.15) 100%); }
@media (max-width: 56rem) {
  /* small screens: text first, then the Capitol artwork underneath it */
  .hero-home { min-height: 0; align-items: start; background-image: none; }
  .hero-home .wrap { padding-bottom: 0; }
  .hero-home::after {
    content: ""; display: block; height: clamp(14rem, 62vw, 24rem); margin-top: -0.5rem;
    background: url("../img/hero-capitol.svg") 84% 70% / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%); mask-image: linear-gradient(180deg, transparent 0%, #000 40%);
  }
  .hero-home[data-photo] { background-image: var(--hero-photo); background-position: center; background-size: cover; }
  .hero-home[data-photo]::after { display: none; }
  .hero-home[data-photo] .wrap { padding-bottom: clamp(3.5rem, 9vw, 6rem); }
  .hero-home[data-photo]::before { background: rgba(3, 18, 42, 0.86); }
}

/* Company data record */
.record {
  background: var(--paper); color: var(--text); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--rule); box-shadow: var(--shadow);
  --focus: var(--link);
}
.record :is(h2, h3) { font-size: var(--step-1); margin-bottom: 0.15rem; }
.record .record-sub { font-size: var(--step--1); color: var(--muted); margin-bottom: 1rem; }
.record a { color: var(--link); }
.record a:hover { color: var(--link-hover); }
.record dl { margin: 0; }
.record .row {
  display: grid; grid-template-columns: 7.25rem 1fr; gap: 0.25rem 1rem;
  padding-block: 0.65rem; border-top: 1px solid var(--rule);
}
.record dt { font-size: var(--step--1); color: var(--muted); padding-top: 0.1rem; }
.record dd { margin: 0; font-weight: 700; line-height: 1.4; }
.record dd .note { display: block; font-weight: 400; font-size: var(--step--1); color: var(--muted); }
.record .id-value { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.record .code { letter-spacing: 0.04em; font-size: 1.1875rem; white-space: nowrap; }
.record-foot { border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 0.25rem; }
.record-foot a { font-weight: 700; }
.record-flat { box-shadow: none; border-top: 5px solid var(--amber); }
@media (max-width: 26rem) { .record .row { grid-template-columns: 1fr; } }

.copy-btn {
  font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600; line-height: 1;
  color: var(--link); background: var(--paper);
  border: 2px solid var(--link); border-radius: 999px;
  padding: 0.45rem 0.85rem; min-height: 36px; min-width: 68px; cursor: pointer;
}
.copy-btn:hover { background: var(--mist); }
.copy-btn[data-copied="true"] { background: var(--success); border-color: var(--success); color: #fff; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-mist { background: var(--mist); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2::after { content: ""; display: block; width: 3rem; height: 4px; margin-top: 0.85rem; border-radius: 4px; background: var(--amber); }
.section-head p:last-child { margin-bottom: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split-wide { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 52rem) { .split, .split-wide { grid-template-columns: 1fr; } }

/* Fact list (who we are) */
.facts { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 0.5rem 1.5rem; box-shadow: var(--shadow); }
.facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-block: 0.95rem; border-bottom: 1px solid var(--rule); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.facts dd { margin: 0; color: var(--muted); }
@media (max-width: 30rem) { .facts > div { grid-template-columns: 1fr; gap: 0.15rem; } }

/* Service cards */
.service-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.service-list > li {
  margin: 0; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow);
  border-top: 5px solid var(--amber);
}
.service-list h2, .service-list h3 { font-size: var(--step-1); margin: 0 0 0.75rem; }
.service-list h2 a, .service-list h3 a { color: var(--ink); text-decoration: none; }
.service-list h2 a:hover, .service-list h3 a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; }
.service-list > li > div { display: flex; flex-direction: column; flex: 1; }
.service-list p { margin-bottom: 1rem; color: var(--muted); }
.service-list .more { margin-top: auto; font-family: var(--font-display); font-weight: 600; }
.tag-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag-list li { margin: 0; font-size: 0.875rem; border: 1px solid var(--rule); border-radius: 999px; padding: 0.2rem 0.75rem; background: var(--mist); color: var(--text); }
@media (max-width: 60rem) { .service-list { grid-template-columns: 1fr; } }

/* Past performance */
.pp-featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); margin-bottom: clamp(2rem, 4vw, 3rem); }
.pp-card { border: 1px solid var(--rule); border-top: 5px solid var(--amber); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem); background: var(--paper); box-shadow: var(--shadow); }
.pp-card .sector { display: inline-block; font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600; color: var(--ink); background: var(--amber); border-radius: 999px; padding: 0.2rem 0.75rem; margin-bottom: 0.85rem; }
.pp-card h3 { font-size: var(--step-2); }
.pp-card p:last-child { margin-bottom: 0; }
.pp-commercial { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); list-style: none; margin: 0; padding: 0; }
.pp-commercial li { margin: 0; padding: 1.5rem; background: var(--mist); border-radius: var(--radius-lg); }
.section-mist .pp-commercial li { background: var(--paper); }
.pp-commercial h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.pp-commercial p { color: var(--muted); margin: 0; font-size: 1.0625rem; }
@media (max-width: 56rem) { .pp-featured, .pp-commercial { grid-template-columns: 1fr; } }

/* Differentiators */
.diff-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); margin: 0; }
.diff-list > div { padding: 1.5rem 1.5rem 1.5rem 1.75rem; background: var(--paper); border-radius: var(--radius-lg); border-left: 5px solid var(--amber); box-shadow: var(--shadow); }
.diff-list dt { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--ink); margin-bottom: 0.4rem; }
.diff-list dd { margin: 0; color: var(--muted); }
@media (max-width: 48rem) { .diff-list { grid-template-columns: 1fr; } }

/* Tables (codes) */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
.data-table caption { text-align: left; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--ink); padding-bottom: 0.75rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--rule); }
.data-table thead th { border-bottom: 2px solid var(--ink); font-size: var(--step--1); color: var(--muted); }
.data-table th[scope="row"] { font-weight: 700; white-space: nowrap; letter-spacing: 0.03em; color: var(--ink); }
.code-chips { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.code-chips li { margin: 0; font-weight: 700; letter-spacing: 0.04em; border: 1px solid var(--rule); border-radius: 999px; padding: 0.3rem 0.85rem; background: var(--mist); color: var(--ink); }

/* CTA band */
.cta-band { background: linear-gradient(90deg, var(--ink) 0%, rgba(7, 27, 53, 0.9) 35%, rgba(7, 27, 53, 0.35) 70%, rgba(7, 27, 53, 0) 100%), var(--ink) url("../img/hero-network.svg") right center / cover no-repeat; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding-block: clamp(3.5rem, 7vw, 5rem); }
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band p { margin-bottom: 0; }
.cta-band .cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.cta-band .cta-actions p { color: var(--on-ink-muted); }
@media (max-width: 48rem) {
  .cta-band .wrap { grid-template-columns: 1fr; }
  .cta-band, .page-hero { background-image: linear-gradient(rgba(7, 27, 53, 0.82), rgba(7, 27, 53, 0.82)), url("../img/hero-network.svg"); }
}

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(90deg, var(--ink) 0%, rgba(7, 27, 53, 0.88) 40%, rgba(7, 27, 53, 0.2) 80%, rgba(7, 27, 53, 0) 100%), var(--ink) url("../img/hero-network.svg") right bottom / cover no-repeat; }
.page-hero .wrap { padding-top: calc(var(--header-space) + clamp(2.75rem, 6vw, 4.25rem)); padding-bottom: clamp(2.75rem, 6vw, 4.5rem); position: relative; }
.page-hero h1 { max-width: 22ch; margin-bottom: 0.35em; }
.page-hero .lede { max-width: 44rem; margin-bottom: 0; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; font-size: var(--step--1); }
.breadcrumb li { margin: 0; color: var(--on-ink-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--on-ink-muted); }

/* Prose blocks (inner pages) */
.prose > * + h2 { margin-top: 2.5rem; }
.prose h2 { font-size: var(--step-2); }
.prose p, .prose li { max-width: 44rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.aside-box { border: 1px solid var(--rule); border-top: 5px solid var(--amber); border-radius: var(--radius-lg); padding: 1.5rem; background: var(--paper); box-shadow: var(--shadow); position: sticky; top: 7rem; }
.aside-box h2 { font-size: var(--step-1); }
.aside-box ul { padding-left: 1.1em; }
.aside-box p:last-child { margin-bottom: 0; }
@media (max-width: 56rem) { .content-grid { grid-template-columns: 1fr; } .aside-box { position: static; } }

.capability { padding-block: 1.75rem; border-top: 1px solid var(--rule); }
.capability:first-of-type { border-top: 0; padding-top: 0; }
.capability h2, .capability h3 { font-size: var(--step-2); margin-bottom: 0.5em; }
.capability ul:not(.tag-list) { columns: 2; column-gap: 2.5rem; }
.capability ul li { break-inside: avoid; }
@media (max-width: 40rem) { .capability ul { columns: 1; } }

.leader { display: grid; grid-template-columns: 5rem 1fr; gap: 1.25rem; align-items: start; padding: 1.5rem; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.leader .monogram { width: 5rem; height: 5rem; border-radius: 50%; background: var(--ink); color: var(--amber); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: 0.04em; }
.leader h3 { margin-bottom: 0.15rem; }
.leader .role { color: var(--muted); margin-bottom: 0.75rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 56rem) { .contact-grid { grid-template-columns: 1fr; } }
.form-intro { margin-bottom: 1.5rem; }
.field { margin-bottom: 1.35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 36rem) { .field-row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.field .req { color: var(--error); font-weight: 700; }
.field .hint { display: block; font-size: var(--step--1); color: var(--muted); margin: -0.15rem 0 0.4rem; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--text);
  background: var(--paper); border: 2px solid var(--field); border-radius: var(--radius);
  padding: 0.7rem 0.9rem; min-height: 50px;
}
.field textarea { min-height: 10rem; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.85rem) 50%; background-size: 0.4rem 0.4rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input:not([type="checkbox"]):focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .error { display: block; color: var(--error); font-weight: 700; font-size: var(--step--1); margin-top: 0.35rem; }
.field .error:empty { display: none; }
.counter { display: block; text-align: right; font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.error-summary { border: 3px solid var(--error); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; background: #FFF5F4; }
.error-summary h2 { font-size: var(--step-1); color: var(--error); margin-bottom: 0.5rem; }
.error-summary ul { margin: 0; }
.error-summary a { color: var(--error); font-weight: 700; }

.captcha-box { margin: 0.5rem 0 1.25rem; min-height: 65px; }
.captcha-box:empty { min-height: 0; margin: 0; }
.captcha-status { font-size: var(--step--1); color: var(--muted); margin: 0.35rem 0 0; }

.notice { border-left: 6px solid var(--link); background: var(--mist); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.5rem; }
.notice p:last-child { margin-bottom: 0; }
.notice-error { border-left-color: var(--error); background: #FFF5F4; }
.notice-success { border-left-color: var(--success); background: #F1F8F3; }
.notice h2, .notice h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.privacy-note { font-size: var(--step--1); color: var(--muted); margin-top: 1rem; }

.contact-card { background: var(--mist); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); border-top: 5px solid var(--amber); }
.contact-card h2 { font-size: var(--step-1); }
.contact-card dl { margin: 0; }
.contact-card dl > div { padding-block: 0.75rem; border-top: 1px solid var(--rule); }
.contact-card dt { font-size: var(--step--1); color: var(--muted); }
.contact-card dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.contact-card address { font-style: normal; }

.spinner { width: 1.1rem; height: 1.1rem; border: 3px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; display: none; }
.is-sending .spinner { display: inline-block; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .is-sending .spinner { animation-duration: 2.4s; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--on-ink-muted); --focus: var(--amber); font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--amber); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: clamp(3rem, 6vw, 4rem); }
.footer-brand img { height: 2.75rem; width: auto; margin-bottom: 1rem; }
.footer-main h2 { font-size: 1rem; color: var(--amber); margin-bottom: 0.85rem; }
.footer-main ul { list-style: none; padding: 0; margin: 0; }
.footer-main li + li { margin-top: 0.4rem; }
.footer-main address { font-style: normal; }
.footer-main .ids { margin: 0; }
.footer-main .ids div + div { margin-top: 0.4rem; }
.footer-main .ids dt { display: inline; }
.footer-main .ids dd { display: inline; margin: 0; color: #fff; font-weight: 700; letter-spacing: 0.04em; }
.footer-bottom { border-top: 1px solid rgba(201, 211, 224, 0.25); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.25rem; font-size: var(--step--1); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-bottom li + li { margin-top: 0; }
@media (max-width: 56rem) { .footer-main { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 30rem) { .footer-main { grid-template-columns: 1fr; } }

/* ---------- Utility pages ---------- */
.center-page { min-height: 70vh; display: grid; align-content: center; padding-top: calc(var(--header-space) + var(--section)); }

/* ---------- Windows High Contrast / forced colours ---------- */
@media (forced-colors: active) {
  .btn, .copy-btn, .nav-toggle, .site-nav .nav-cta a { border: 2px solid ButtonText; }
  .record, .pp-card, .aside-box, .contact-card, .leader, .service-list > li, .diff-list > div, .site-header .wrap { border: 1px solid CanvasText; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .cta-band, .site-footer .footer-bottom ul, .skip-link, .copy-btn, form, .captcha-box { display: none !important; }
  .on-ink, .site-footer, .hero-home, .page-hero { background: #fff !important; color: #000 !important; }
  .on-ink a, .site-footer a { color: #000 !important; }
  .hero-home .wrap, .page-hero .wrap { padding-top: 1rem; }
  .hero-home::before, .hero-home::after { display: none !important; }
  .record, .service-list > li, .pp-card { box-shadow: none; border: 1px solid #000; }
  body { font-size: 11pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* ---------- WordPress ---------- */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { position: static !important; width: auto; height: auto; margin: 0; clip: auto; white-space: normal; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content .alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.entry-content .alignright { float: right; margin: 0 0 1rem 1.5rem; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content figcaption, .wp-caption-text { font-size: var(--step--1); color: var(--muted); }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Built-in "I'm not a robot" check ---------- */
.captcha-widget {
  display: grid; grid-template-columns: auto auto auto 1fr; align-items: center; gap: 0.5rem 0.85rem;
  max-width: 28rem; padding: 0.85rem 1rem; margin-top: 0.25rem;
  border: 2px solid var(--field); border-radius: var(--radius); background: var(--mist);
}
.captcha-widget input[type="checkbox"] { width: 28px; height: 28px; margin: 0; accent-color: var(--link); cursor: pointer; }
.captcha-widget label { margin: 0; font-weight: 700; cursor: pointer; }
.captcha-mark { width: 24px; height: 24px; display: grid; place-items: center; color: var(--success); }
.captcha-spinner, .captcha-tick { display: none; }
.captcha-widget.is-verifying .captcha-spinner {
  display: block; width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid var(--rule); border-top-color: var(--link); animation: spin 0.8s linear infinite;
}
.captcha-widget.is-verified { border-color: var(--success); }
.captcha-widget.is-verified .captcha-tick { display: block; }
.captcha-widget:has(input[aria-invalid="true"]) { border-color: var(--error); }
.captcha-note { justify-self: end; text-align: right; font-size: 0.8125rem; line-height: 1.3; color: var(--muted); }
.captcha-field .captcha-status { min-height: 1.5em; }
@media (max-width: 30rem) { .captcha-note { display: none; } }
@media (forced-colors: active) { .captcha-widget { border-color: CanvasText; } }
