/* ==========================================================================
   MyAble Inc. Design System
   Warm slate-navy on a near-white ground. Flat surfaces, hairline rules,
   no rounded corners, no drop shadows. Type: Instrument Sans throughout.
   Change a token here and it updates everywhere.
   ========================================================================== */

:root {
  /* Brand */
  --navy:         #25384F;   /* primary: buttons, links, bands            */
  --navy-deep:    #1B2A3C;   /* footer, deepest surface                   */
  --navy-press:   #16232F;   /* hover / pressed                           */
  --navy-soft:    #55677D;   /* borders on dark                           */
  --gold:         #C89B57;   /* the one warm note, used sparingly         */
  --gold-lift:    #DAAE6B;   /* gold on dark grounds                      */
  --sand:         #EDE7DC;   /* closing band                              */
  --sand-deep:    #B9AF9C;

  /* Neutrals */
  --ink:          #1B222B;   /* headings                                  */
  --body:         #545A62;   /* body copy                                 */
  --muted:        #6B6E74;   /* labels, meta (AA on the ground)           */
  --line:         #E6E5E3;   /* hairline rules                            */
  --line-strong:  #C8C9CB;   /* outlined buttons, inputs                  */
  --ground:       #FBFAF9;   /* page background                           */
  --surface:      #FFFFFF;
  --surface-alt:  #F3F1ED;   /* alternating band                          */

  /* On dark */
  --on-dark:      #FBFAF9;
  --on-dark-mute: #AFB7C1;
  --on-dark-soft: #96A3B2;
  --on-dark-lab:  #97A7B9;

  /* System */
  --radius:       0;
  --radius-sm:    0;
  --wrap:         1200px;
  --wrap-narrow:  760px;
  --gut:          clamp(20px, 4vw, 40px);
  --font-display: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body:    var(--font-display);
  --ease:         cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
/* height:auto is the fix for the old skewing: every img carries hard
   width/height attributes, so without it a constrained image squashes. */
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy-press); }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0 0 .5em;
  font-weight: 500;
}
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: clamp(19px, 1.9vw, 22px); font-weight: 600; letter-spacing: -.02em; }
h4 { font-size: 17px; font-weight: 600; }
p  { margin: 0 0 1.15em; text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }
::selection { background: #DCD3C2; color: var(--ink); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: var(--wrap-narrow); }
section { padding: clamp(56px, 8vw, 104px) 0; }
.bg-cream { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bg-off   { background: var(--surface-alt); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--body); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.center { text-align: center; }
.center.section-head { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: 14.5px;
  padding: 15px 30px; border-radius: 0; border: 1px solid transparent;
  cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-press); color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-light { background: var(--on-dark); color: var(--navy); }
.btn-light:hover { background: #fff; color: var(--navy-press); }
.btn-outline-light { border-color: var(--navy-soft); color: var(--on-dark); }
.btn-outline-light:hover { background: var(--on-dark); color: var(--navy); border-color: var(--on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,249,.9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-family: var(--font-display); font-weight: 500; font-size: 14.5px;
  color: #232A33; position: relative; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--line-strong); color: var(--ink); }
.nav a.active { color: var(--ink); border-bottom-color: var(--navy); }
.nav .btn { padding: 12px 24px; font-size: 14.5px; border-bottom: 0; }
.nav .btn:hover { border-bottom: 0; }
/* `.nav a` is (0,1,1) and outranks `.btn-primary` (0,1,0), so the header CTA
   needs its own colour or the label renders charcoal on the navy fill.
   The `a.btn-primary` form is (0,2,1), which also beats `.nav a.active`.
   Without it the CTA label disappears on the page it points at, because
   `.active` repaints it near-black on the navy fill. */
.nav a.btn-primary, .nav a.btn-primary.active { color: #fff; }
.nav a.btn-primary:hover, .nav a.btn-primary.active:hover { color: #fff; background: var(--navy-press); }
.nav .btn-ghost { color: var(--navy); }

/* Dropdown */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-caret { width: 10px; height: 10px; transition: transform .22s var(--ease); }
.nav-item:hover .nav-caret, .nav-item.open .nav-caret { transform: rotate(180deg); }
.submenu {
  position: absolute; top: 100%; left: -16px; min-width: 224px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  box-shadow: 0 12px 32px rgba(27,34,43,.10); padding: 8px; margin-top: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  display: grid; gap: 2px; z-index: 120;
}
.nav-item:hover .submenu, .nav-item:focus-within .submenu, .nav-item.open .submenu {
  opacity: 1; visibility: visible; transform: none;
}
.submenu a {
  padding: 11px 14px; border-radius: 0; font-size: 14.5px; font-weight: 500;
  color: #232A33; line-height: 1.35; border-bottom: 0;
}
.submenu a:hover { background: var(--surface-alt); color: var(--ink); border-bottom: 0; }
.submenu a span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px;
  width: 44px; height: 44px;
}
.nav-toggle span { display: block; height: 2px; width: 22px; background: #232A33; margin: 5px 0; transition: .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--ground); padding: clamp(48px, 7vw, 88px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 56px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 440px; margin-bottom: 34px; }
.hero h1 .accent { color: var(--navy); font-style: normal; }
.hero-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Page hero (inner pages) */
.page-hero { background: var(--ground); padding: clamp(52px, 6vw, 84px) 0 clamp(40px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lead { max-width: 700px; }

/* ---------- Stat band ---------- */
.stat-band { background: var(--navy); color: var(--on-dark-mute); padding: clamp(48px, 6vw, 76px) 0; }
.stat-band .eyebrow { color: var(--on-dark-lab); margin-bottom: 40px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.stat { padding-left: 0; border-left: 0; }
.stat strong {
  display: block; font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 44px); font-weight: 500; color: var(--on-dark);
  letter-spacing: -.03em; line-height: 1.05; margin-bottom: 14px;
}
.stat span { font-size: 15.5px; line-height: 1.6; color: var(--on-dark-mute); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  padding: 36px 32px; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card h3 { margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card-num {
  font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 14px;
}

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 60px); align-items: center; }
.split-media { aspect-ratio: 3 / 2; overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
/* Portraits get a taller box rather than a width cap, so the column fills
   evenly and the face is never squeezed. */
.split-media.portrait { aspect-ratio: 4 / 5; max-width: 440px; }
.split.reverse .split-media { order: 2; }

.engagement-split { grid-template-columns: 5fr 7fr; align-items: center; }
.engagement-stack { display: grid; gap: 20px; }
.engagement-stack .card { margin: 0; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 18px; height: 18px;
  border-radius: 0; background: var(--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* ---------- Sector experience grid ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sector {
  background: var(--ground); border: 0; border-radius: 0;
  padding: 26px 22px 28px; display: flex; flex-direction: column;
}
.sector h4 {
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 20px; line-height: 1.4;
}
.sector-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 22px; flex: 1; }
.sector-logos img {
  max-height: 30px; max-width: 108px; width: auto; object-fit: contain;
  filter: grayscale(100%); opacity: .55; transition: filter .25s var(--ease), opacity .25s var(--ease);
}
.sector-logos img.tall { max-height: 50px; max-width: 82px; }
.sector:hover .sector-logos img { filter: grayscale(0); opacity: 1; }
/* Full width of the sector grid above it, so the first line runs edge to edge
   and the disclaimer reads as part of that block rather than a narrow aside.
   No max-width cap and no text-wrap: balance; both shorten the first line. */
.logo-note { font-size: 14px; color: var(--muted); margin-top: 26px; }

/* ---------- Client logo row (Home) ---------- */
.logo-row-section { padding: 44px 0; background: var(--ground); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* Eight fixed columns, one row. auto-fit with a 112px minimum needed
   8*112 + 7*40 = 1176px, more than the 1120px the wrap actually gives, so the
   eighth logo dropped to a second line. Fixed columns plus a tighter gap keeps
   all eight on one line and lets each logo scale to its share instead. */
.logo-row {
  display: grid; grid-template-columns: repeat(8, 1fr);
  align-items: center; justify-items: center; gap: 28px;
}
.logo-row img {
  max-height: 26px; max-width: 100%; width: auto; object-fit: contain;
  filter: grayscale(100%); opacity: .5; transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.logo-row img.tall { max-height: 40px; max-width: 100%; }
.logo-row img:hover { filter: grayscale(0); opacity: 1; }
.logo-row-link {
  display: inline-block; text-align: left; margin-top: 32px;
  font-family: var(--font-display); font-weight: 500; font-size: 14.5px; color: var(--navy);
}
.logo-row-link:hover { color: var(--navy-press); }

/* ---------- Gateway teaser tiles (Home) ----------
   One bordered grid with hairline dividers, not three floating cards. */
.gateway { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.gateway-tile {
  background: var(--ground); border: 0; border-radius: 0;
  padding: 40px 36px; display: flex; flex-direction: column; gap: 16px;
}
.gateway-tile h3 { margin: 0; }
.gateway-quote {
  font-style: normal; color: var(--navy); font-size: 19px; font-weight: 500;
  letter-spacing: -.015em; line-height: 1.4; margin: 0;
  padding-left: 0; border-left: 0;
}
.gateway-tile p { margin: 0; font-size: 16px; }
.gateway-tile p:last-of-type { margin-bottom: 0; }
.gateway-tile .read { margin-top: auto; padding-top: 12px; font-weight: 500; font-size: 14.5px; }

/* ---------- Partner grid ----------
   Three of the six marks arrive with an opaque background baked into the file,
   and the three backgrounds are different: near-white, near-black and olive.
   No single band can carry all six. Measured on the light ground, Impelix's
   yellow is 1.59:1 and unreadable; on navy, AlonSera's dark blue is 1.13:1 and
   invisible. So each cell takes the exact background of the artwork it holds,
   which makes the baked tiles seamless and leaves every mark unmodified. If a
   partner ever supplies a transparent file, switch that cell to --surface. */
.partner-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.partner-cell { display: grid; place-items: center; padding: 26px 16px; min-height: 112px; }
.partner-cell img {
  max-height: 30px; max-width: 82%; width: auto; object-fit: contain;
  opacity: .92; transition: opacity .25s var(--ease);
}
.partner-cell:hover img { opacity: 1; }
/* Cell backgrounds, sampled from each supplied file. Do not "tidy" these to a
   single value: that is what produced rectangles inside rectangles. */
.pc-alonsera    { background: var(--surface); }
.pc-commandzero { background: #F3F3ED; }
.pc-fable       { background: var(--surface); }
.pc-impelix     { background: var(--navy); }
.pc-keycaliber  { background: #0A0F1C; }
.pc-fractional  { background: #484D3D; }

/* ---------- The three problems (What We Do) ---------- */
.problem-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.problem {
  background: var(--ground); border-radius: 0; border-top: 0;
  padding: 40px 36px; display: flex; flex-direction: column; gap: 16px;
}
.problem h3 { font-size: 21px; margin: 0; }
.problem-quote {
  font-family: var(--font-display); font-style: normal; font-weight: 500;
  color: var(--navy); font-size: 19px; margin: 0; line-height: 1.4; letter-spacing: -.015em;
}
.problem p:last-child { margin-bottom: 0; font-size: 16px; color: var(--body); }

/* ---------- Services (What We Do) ---------- */
.service-lead {
  background: var(--navy); color: var(--on-dark-mute); border-radius: 0;
  padding: clamp(36px, 4vw, 52px); margin-bottom: 32px;
}
.service-lead .eyebrow { color: var(--on-dark-lab); }
.service-lead h3 { color: var(--on-dark); font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; margin-bottom: 18px; }
.service-lead p { color: var(--on-dark-mute); }
.service-lead p:last-child { margin-bottom: 0; }
.service-lead strong { color: var(--on-dark); }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service {
  background: var(--ground); border: 0; border-radius: 0;
  padding: 36px 32px;
}
.service h3 { font-size: 20px; margin-bottom: 12px; }
.service p:last-child { margin-bottom: 0; font-size: 16px; }

/* ---------- Capability block (What We Do) ---------- */
.capability { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }
.capability:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.capability h4 { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); margin: 0 0 8px; letter-spacing: -.02em; }

/* ---------- Able gallery ---------- */
.able-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.able-shot { display: flex; flex-direction: column; margin: 0; }
/* A fixed 4:5 box with cover: the mixed portrait/landscape set now reads as a
   deliberate series instead of ragged letterboxes. */
.able-shot img {
  width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover;
  border-radius: 0; background: var(--surface-alt); padding: 0;
}
.able-shot figcaption {
  font-family: var(--font-display); font-style: normal; font-weight: 500; font-size: 15px;
  color: var(--muted); margin-top: 12px; text-align: left;
}

/* ---------- Able invitation band ---------- */
.able-invite { background: var(--surface-alt); padding: clamp(44px, 5vw, 64px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.able-invite-inner {
  display: grid; grid-template-columns: 128px 1fr; gap: 32px; align-items: center;
  max-width: 820px; margin: 0 auto;
}
.able-invite img {
  width: 128px; height: 128px; border-radius: 0; object-fit: cover;
  border: 0;
}
.able-invite h3 { font-size: clamp(20px, 2vw, 24px); margin: 0 0 8px; }
.able-invite p { color: var(--body); margin: 0 0 14px; }
.able-invite .read { font-weight: 500; font-size: 15px; }
@media (max-width: 640px) {
  .able-invite-inner { grid-template-columns: 1fr; text-align: left; justify-items: start; }
}

/* ---------- Adopt band ---------- */
.adopt-band { background: var(--navy); color: var(--on-dark-mute); text-align: left; }
.adopt-band h2 { color: var(--on-dark); }
.adopt-band .wrap { max-width: 900px; }
.adopt-lead { color: var(--on-dark-mute); font-size: 18px; margin-bottom: 32px; }
.adopt-chain {
  font-family: var(--font-display); font-weight: 500; font-style: normal;
  font-size: clamp(20px, 2.3vw, 28px); line-height: 1.5; color: var(--on-dark);
  letter-spacing: -.025em; margin: 0;
}
.adopt-chain span { color: var(--gold-lift); }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.post-card {
  background: transparent; border: 0; border-radius: 0;
  overflow: visible; display: flex; flex-direction: column;
}
.post-card > a:first-child { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 24px; }
.post-card img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.post-card .post-body { padding: 0; display: flex; flex-direction: column; flex: 1; }
.post-meta {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  font-family: var(--font-display); font-weight: 600; margin-bottom: 12px;
}
.post-card h3 { font-size: 24px; font-weight: 500; letter-spacing: -.025em; margin-bottom: 12px; line-height: 1.2; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--navy); }
.post-card p { font-size: 16px; }
.post-card .read { margin-top: auto; font-weight: 500; font-size: 14.5px; }

.article { max-width: 720px; margin: 0 auto; }
.article h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 1.8em; }
.article h3 { margin-top: 1.6em; }
.article ul, .article ol { margin: 0 0 1.3em; padding-left: 22px; }
.article li { margin-bottom: .5em; }
.article blockquote {
  margin: 1.8em 0; padding: 22px 28px; background: var(--surface-alt);
  border-left: 2px solid var(--navy); border-radius: 0;
  font-size: 18px; color: var(--ink);
}
.article img { border-radius: 0; margin: 1.8em 0; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.share-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 40px 0; }
.share-bar span { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 0;
  border: 1px solid var(--line-strong); font-size: 14px; font-family: var(--font-display); font-weight: 500;
  background: transparent; color: var(--navy); cursor: pointer;
}
.share-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.share-btn svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 0;
  background: var(--surface); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(37,56,79,.12);
}
.field textarea { resize: vertical; min-height: 150px; }
.form-note { font-size: 14px; color: var(--muted); }
/* Honeypot: off-screen rather than display:none, since some bots skip hidden
   fields. Invisible to people, still present in the DOM for a script to fill. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  font-size: 14px; color: #A33; background: #FBEDED; border: 1px solid #E4C4C4;
  padding: 10px 14px; margin: 0 0 14px;
}
.form-ok {
  font-size: 15px; color: #1F4D33; background: #EDF6F0; border: 1px solid #C2DECE;
  padding: 16px 18px; margin: 0 0 14px;
}
.field .form-note { margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--sand); color: #5A5348; text-align: left; }
.cta-band .eyebrow { color: #6E6558; }
.cta-band h2 { color: var(--ink); max-width: 640px; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.05; }
.cta-band p { color: #5A5348; font-size: 18px; max-width: 560px; margin-left: 0; margin-right: 0; }
.cta-band .btn-row { justify-content: flex-start; margin-top: 32px; }
.cta-band .btn-light { background: var(--navy); color: #fff; }
.cta-band .btn-light:hover { background: var(--navy-press); color: #fff; }
.cta-band .btn-outline-light { border-color: var(--sand-deep); color: var(--navy); }
.cta-band .btn-outline-light:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #93A0AE; padding: clamp(48px, 6vw, 76px) 0 40px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.site-footer h4 {
  font-family: var(--font-display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--on-dark); margin-bottom: 18px; font-weight: 600;
}
.site-footer p { line-height: 1.65; max-width: 340px; }
.site-footer a { color: #93A0AE; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer ul { list-style: none; display: grid; gap: 11px; }
.site-footer .brand img { height: 44px; margin-bottom: 22px; }
.footer-bottom {
  margin-top: 0; padding-top: 28px; border-top: 1px solid #2E4054;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--on-dark-soft);
}
.footer-bottom a { color: var(--on-dark-soft); }
.social { display: flex; gap: 12px; margin-top: 4px; }
.social a {
  width: 20px; height: 20px; border-radius: 0; border: 0;
  display: grid; place-items: center;
}
.social a:hover svg { fill: var(--on-dark); }
.social svg { width: 20px; height: 20px; fill: #93A0AE; transition: fill .2s var(--ease); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  /* Below the desktop wrap, eight across gets too cramped to read. */
  .logo-row { gap: 22px; }
  .logo-row img { max-height: 22px; }
  .logo-row img.tall { max-height: 34px; }
}
@media (max-width: 1040px) {
  .nav {
    position: fixed; inset: 88px 0 auto; flex-direction: column; align-items: stretch;
    background: var(--ground); padding: 12px var(--gut) 28px; gap: 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .3s var(--ease);
    max-height: calc(100vh - 88px); overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:hover { border-bottom-color: var(--line); }
  .nav a.active { border-bottom-color: var(--line); }
  .nav-item { display: block; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent; margin: 0 0 0 14px; padding: 0;
    min-width: 0; display: none;
  }
  .nav-item.open .submenu { display: grid; }
  .submenu a { padding: 12px 0; font-size: 15px; }
  .submenu a span { display: none; }
  .nav-caret { margin-left: auto; }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .nav-toggle { display: block; }
  .gateway, .problem-row, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  /* The bordered grids paint their dividers with the container background, so an
     uncovered cell shows as a solid grey block. Let an odd last tile span both. */
  .gateway > :last-child:nth-child(odd),
  .problem-row > :last-child:nth-child(odd),
  .service-grid > :last-child:nth-child(odd),
  .sector-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .able-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .logo-row { grid-template-columns: repeat(4, 1fr); gap: 30px 24px; }
  .logo-row img { max-height: 26px; }
  .logo-row img.tall { max-height: 40px; }
  .hero-grid, .split, .engagement-split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .hero-media { order: -1; }
  .gateway, .problem-row, .stat-grid, .grid-2, .grid-3, .service-grid { grid-template-columns: 1fr; }
  .split-media.portrait { max-width: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-cell { min-height: 96px; padding: 22px 14px; }
  .logo-row { grid-template-columns: repeat(2, 1fr); }
  .sector-grid, .post-grid, .footer-grid, .form-grid, .able-grid { grid-template-columns: 1fr; }
  .card, .gateway-tile, .problem, .service { padding: 28px 24px; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .share-bar { display: none; }
  body { color: #000; background: #fff; }
}
