/* ============================================
   StratMonk — stylesheet
   Palette drawn from the brand marks:
   navy #0a1a3a · deep navy #001b3d · gold #c9a84c (rationed)
   ============================================ */

:root {
  --measure: 760px;
  --measure-lead: 560px;
  --measure-wide: 880px;
  --navy:      #0a1a3a;
  --navy-deep: #001b3d;
  --navy-soft: #24365c;
  --grey-ink:  #4c566a;
  --grey-mid:  #6d7789;
  --grey-line: #e3e6ec;
  --grey-bg:   #f4f5f8;
  --paper:     #ffffff;
  --paper-warm:#fbfbfd;
  --gold:      #c9a84c;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;

  --maxw: 1320px;
  --gutter: 2rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--navy);
  margin: 0 0 1.1rem;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.18rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
h4 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; margin: 0 0 .4rem; color: var(--navy); }
p { margin: 0 0 1.1rem; color: var(--grey-ink); }
p strong { color: var(--navy); }
.lead { font-size: 1.14rem; }
.mb-0 { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 1rem;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 34px; height: 2px;
  background: var(--gold);
  margin-top: .55rem;
}

.hint {
  font-size: .8rem;
  color: var(--grey-mid);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--grey-line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.logo { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.logo img { height: 44px; width: auto; display: block; }
.logo .logo-sym { height: 42px; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav > a + a { margin-left: 1.9rem; }
.nav { gap: 0; }
.nav a {
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--grey-ink);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover, .nav a:focus-visible { color: var(--navy); border-bottom-color: var(--gold); }
.nav a.active { color: var(--navy); border-bottom-color: var(--gold); }

.nav-cta {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  background: var(--navy); color: #fff !important;
  padding: .58rem 1.25rem !important;
  border: 1px solid var(--navy);
  border-radius: 2px;
  border-bottom: 1px solid var(--navy) !important;
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--navy-deep); border-color: var(--navy-deep) !important; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--grey-line);
  padding: .45rem .9rem; cursor: pointer;
  font-family: var(--font-body); font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--navy); border-radius: 2px;
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--grey-line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.4rem;
    box-shadow: 0 14px 28px rgba(10,26,58,.08);
  }
  .nav.open { display: flex; }
  .nav > a + a { margin-left: 1.9rem; }
.nav { gap: 0; }
.nav a { padding: .85rem 0; border-bottom: 1px solid var(--grey-line); }
  
  .nav-cta { margin-top: .9rem; text-align: center; border-radius: 2px; }
  .logo img { height: 40px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  background: var(--paper);
  padding: 4.4rem 0 3.8rem;
  border-bottom: 1px solid var(--grey-line);
}
.hero-grid {
  display: grid; grid-template-columns: 6.6fr 4.4fr; gap: 4rem; align-items: center;
}
.hero-tag {
  font-size: .74rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 1.4rem;
}
.hero-tag::after {
  content: ""; display: block; width: 44px; height: 2px;
  background: var(--gold); margin-top: .6rem;
}
.hero h1 { max-width: 15ch; }
.hero-lead { max-width: 560px; max-width: var(--measure-lead); font-size: 1.13rem; }
.hero-figure { margin: 0; display: flex; justify-content: center; }
.hero-figure img { width: 100%; max-width: 440px; height: auto; }
@media (max-width: 900px) {
  .hero { padding: 3.4rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .hero-figure { order: -1; }
  .hero-figure img { max-width: 230px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .86rem; font-weight: 600; letter-spacing: .04em;
  text-decoration: none;
  padding: .85rem 1.8rem;
  border-radius: 2px;
  border: 1px solid var(--navy);
  background: var(--navy); color: #fff;
  transition: background .15s, color .15s;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn--light {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.sec--ink .btn, .sec--ink .btn--light, .cta-band .btn {
  background: #fff; color: var(--navy); border-color: #fff;
}
.sec--ink .btn:hover, .cta-band .btn:hover { background: var(--grey-bg); border-color: var(--grey-bg); }

.arrow-link {
  font-weight: 600; font-size: .9rem;
  color: var(--navy); text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.arrow-link:hover { color: var(--navy-deep); }

/* ---------- Sections ---------- */
.sec { padding: 3.6rem 0; }
.sec--white { background: var(--paper); }
/* Backgrounds are set by class, never by position — positional rules
   made the sequence unpredictable and impossible to audit. */
.sec { background: var(--grey-bg); }
.sec--white { background: var(--paper); }
.sec--ink { background: var(--navy); }
.sec--rule { border-top: 1px solid var(--grey-line); }
.sec--ink {
  background: var(--navy);
}
.sec--ink h2, .sec--ink h3, .sec--ink h4 { color: #fff; }
.sec--ink p strong, .cta-band p strong { color: #fff; }
.sec--ink p { color: #c6cddc; }
.sec--ink .eyebrow { color: #9aa6bd; }
.sec-head { max-width: 640px; max-width: var(--measure); margin-bottom: 3rem; }
.sec-head p { font-size: 1.08rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 900px) {
  .grid-2, .split { grid-template-columns: 1fr; gap: 1.6rem; }
  .sec { padding: 3.2rem 0; }
}

/* ---------- Page hero (interior) ---------- */
.phero {
  background: var(--grey-bg);
  border-bottom: 1px solid var(--grey-line);
  padding: 3.2rem 0 2.8rem;
}
.phero h1 { max-width: 22ch; }
.phero p { max-width: 560px; max-width: var(--measure-lead); font-size: 1.1rem; margin-bottom: 0; }
.phero-crumb {
  font-size: .78rem; letter-spacing: .05em;
  color: var(--grey-mid); margin-bottom: 1.6rem;
}
.phero-crumb a { color: var(--grey-mid); text-decoration: none; }
.phero-crumb a:hover { color: var(--navy); }
@media (max-width: 700px) {
  .reg-row { grid-template-columns: 1fr; gap: .35rem; padding: 1.2rem 0; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--grey-line);
  border-top: 3px solid var(--navy);
  padding: 1.8rem;
  border-radius: 2px;
}
.card--oxide { border-top-color: var(--gold); }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  font-size: .8rem; font-weight: 500; letter-spacing: .03em;
  border: 1px solid var(--grey-line);
  color: var(--grey-ink);
  background: var(--paper);
  padding: .45rem 1rem; border-radius: 2px;
}
.sec--ink .chip {
  border-color: rgba(255,255,255,.25);
  color: #dbe1ec; background: transparent;
}

/* ---------- Bio ---------- */
.bio { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; align-items: start; }
.bio-photo {
  aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--grey-bg);
  border-radius: 2px;
}
.bio-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bio-photo .ph {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  background: var(--navy);
  font-family: var(--font-display);
  font-size: 4.2rem; font-weight: 600; letter-spacing: .04em;
  color: #fff; text-align: center;
}
.bio-photo .ph::after { content: ""; display: block; }
.bio-name { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--navy); margin-bottom: .2rem; }
.bio-role {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--grey-mid); margin-bottom: 1.2rem;
}
@media (max-width: 800px) {
  .bio { grid-template-columns: 1fr; }
  .bio-photo { max-width: 300px; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  padding: 3.2rem 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c6cddc; max-width: var(--measure-lead); }
.cta-band .eyebrow { color: #9aa6bd; }
.cta-band .eyebrow::after { background: var(--gold); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 3rem;
}
@media (max-width: 800px) {
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); margin-bottom: .4rem;
}
.field .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body); font-size: .95rem;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--grey-line);
  border-radius: 2px;
  padding: .7rem .85rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10,26,58,.08);
}
.form-note { font-size: .8rem; color: var(--grey-mid); }
.form-status { font-size: .9rem; min-height: 1.4em; }
.form-status.ok { color: #1f6d3d; }
.form-status.err { color: #a03123; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #c6cddc;
  padding: 3.6rem 0 2rem;
  margin-top: 0;
}
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1.15fr 1.15fr 1.15fr; gap: 3rem;
  justify-items: start;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.foot-lockup {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 1.1rem;
  background: #fff; padding: 1rem 1.3rem; border-radius: 2px;
  margin-bottom: 1.2rem;
}
.foot-lockup img { height: 76px; width: auto; display: block; }
.foot-lockup img:first-child { height: 62px; }
.foot-brand .logo-text { display: none; }
.foot-brand p { color: #9aa6bd; font-size: .9rem; max-width: 34ch; }
.foot-tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.site-footer h4, .site-footer h5 {
  color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #c6cddc; text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: #fff; border-bottom: 1px solid var(--gold); }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.6rem;
  font-size: .8rem; color: #9aa6bd;
}
.foot-bottom p { margin: 0; color: #9aa6bd; }
@media (max-width: 800px) {
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Reveal animation ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }

.sec--ink, .cta-band { position: relative; overflow: hidden; }
.sec--ink .wrap, .cta-band .wrap { position: relative; z-index: 1; }

.phero { position: relative; overflow: hidden; }
.phero .wrap { position: relative; z-index: 1; }
.sec--ink .stat .stat-num { color: #fff; }
.sec--ink .stat .stat-label { color: #c6cddc; }

/* ---------- Wide-screen composition ---------- */
@media (min-width: 1200px) {
}
@media (max-width: 480px) {
  .logo img { height: 34px; }
  .logo .logo-sym { height: 34px; }
  .logo { gap: .55rem; }
  h1 { font-size: 1.9rem; }
  .sec { padding: 2.6rem 0; }
  .stats { gap: 1.6rem; }
}

/* ---------- Build fixes ---------- */
/* Cards in a grid share equal height and consistent internal rhythm */
.grid-2 > .card, .grid-2 > div { align-self: stretch; }
.card { display: flex; flex-direction: column; }
.card p:last-child { margin-bottom: 0; }

/* Text that follows a card grid sits clear of it */
.after-cards { margin-top: 2.4rem; padding-top: 0; border-top: none; }

/* Placeholder styling in all inputs */
.field input::placeholder,
.field textarea::placeholder { color: #9aa3b3; opacity: 1; }
.field select:invalid { color: #9aa3b3; }

/* Contact form centred and uncramped */
.form-centred { max-width: 720px; margin: 0 auto; }
.form-centred .field { margin-bottom: .4rem; }

/* Capability index rows */
.cap-index { border-top: 1px solid var(--grey-line); margin-top: 2.4rem; }
.cap-block {
  padding: 2rem 0;
  border-bottom: 1px solid var(--grey-line);
}
.cap-block h3 { margin-bottom: .5rem; }
.cap-block p { max-width: var(--measure-wide); margin-bottom: .7rem; }

/* Capability matrix on the home page */
.matrix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4rem; }
.matrix-col h4 {
  font-size: .74rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
  padding-bottom: .7rem; margin-bottom: .9rem;
  border-bottom: 1px solid var(--grey-line);
}
.matrix-col ul { list-style: none; margin: 0; padding: 0; }
.matrix-col li { margin-bottom: .55rem; }
.matrix-col a {
  font-size: .92rem; color: var(--grey-ink); text-decoration: none;
  border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
.matrix-col a:hover { color: var(--navy); border-bottom-color: var(--gold); }
.sec--ink .matrix-col a { color: #c6cddc; }
.sec--ink .matrix-col a:hover { color: #fff; }
.sec--ink .matrix-col h4 { border-bottom-color: rgba(255,255,255,.18); }
@media (max-width: 1000px) { .matrix { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (max-width: 620px)  { .matrix { grid-template-columns: 1fr; } }

/* Sector blocks on Experience */
.sector { padding: 2rem 0; border-bottom: 1px solid var(--grey-line); }
.sector h3 { margin-bottom: .35rem; }
.sector .sector-desc { color: var(--grey-ink); margin-bottom: .6rem; }
.sector .sector-projects {
  font-size: .9rem; color: var(--grey-mid); font-style: italic;
}

/* Values blocks */
.value-block { border-left: 3px solid var(--gold); padding: .1rem 0 .1rem 1.5rem; margin-bottom: 2rem; }
.value-block h3 { margin-bottom: .45rem; }
.value-block p { margin-bottom: 0; max-width: var(--measure-wide); }

/* Closing statement panel */
.statement {
  background: var(--grey-bg);
  border-left: 3px solid var(--gold);
  padding: 2rem 2.2rem;
  margin-top: 3rem;
}
.statement p { font-size: 1.06rem; max-width: var(--measure-wide); }
.statement p:last-child { margin-bottom: 0; }
.statement .statement-line {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 600; color: var(--navy);
  margin-top: 1.2rem;
}

/* Prose sections on capability pages */
.method { margin-top: 1rem; }
.method-item { padding: 1.6rem 0; border-bottom: 1px solid var(--grey-line); }
.method-item:last-child { border-bottom: none; }
.method-item h3 { margin-bottom: .5rem; }
.method-item p { max-width: var(--measure-wide); margin-bottom: 0; }

/* Outline button variant */
.btn--outline {
  background: transparent; color: var(--navy); border: 1px solid var(--navy);
}
.btn--outline:hover { background: var(--navy); color: #fff; }
.sec--ink .btn--outline, .cta-band .btn--outline {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.5);
}
.sec--ink .btn--outline:hover, .cta-band .btn--outline:hover { background: #fff; color: var(--navy); border-color:#fff; }

/* ---------- Consistent line length ----------
   One default measure for every paragraph in a content section.
   Components that live inside an already-narrow column opt out below. */
.sec p,
.phero p,
.bio p,
.sector-desc,
.reg-desc { max-width: 640px; max-width: var(--measure); }

/* Wider measure for dense capability prose */
.method-item p,
.cap-block p,
.value-block p,
.statement p { max-width: 700px; max-width: var(--measure-wide); }

/* Components that must not be constrained */
.card p,
.site-footer p,
.foot-bottom p,
.form p,
.form-note,
.form-status,
.chips,
.cta-inner p { max-width: none; }
.cta-band p { max-width: 560px; max-width: var(--measure-lead); }

/* ============================================
   FLAT LAYOUT SYSTEM

   One rule: every block of content begins at the
   page margin. No component nests a second label
   column inside another, which is what produced
   compounding indents of 700px+.

   Structure per section:
     heading      -> at the margin
     item title   -> at the margin
     item prose   -> at the margin, running to --measure-wide
   ============================================ */

/* The duo wrapper is now a simple stack, not a grid */
.duo { display: block; }
.duo-head { margin-bottom: 2.2rem; }
.duo-head p { font-size: .98rem; color: var(--grey-mid); max-width: var(--measure); }
.duo-body { display: block; }

/* Numbered method items: number inline with the title, prose beneath */
.method-item {
  display: block;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--grey-line);
}
.method-item:last-child { border-bottom: none; }
.method-item h3 {
  display: inline;
  margin: 0;
  font-size: 1.1rem;
}
.method-item p {
  margin: .6rem 0 0;
  max-width: var(--measure-wide);
}

/* Capability index rows */
.cap-block {
  display: block;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--grey-line);
}
.cap-block .cap-icon { display: inline-block; vertical-align: -.55rem; margin-right: .7rem; }
.cap-block h3 { display: inline; margin: 0; font-size: 1.1rem; }
.cap-block p { margin: .6rem 0 .7rem; max-width: var(--measure-wide); }

/* Sector rows */
.sector {
  display: block;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--grey-line);
}
.sector::before {
  display: inline-block;
  width: 12px; height: 12px;
  margin: 0 .9rem 0 0;
  vertical-align: 1px;
}
.sector h3 { display: inline; margin: 0; font-size: 1.08rem; }
.sector .sector-desc { margin: .55rem 0 .35rem; max-width: var(--measure-wide); }
.sector .sector-projects {
  margin: 0; padding: 0; border: none;
  max-width: var(--measure-wide);
  font-size: .9rem; color: var(--grey-mid); font-style: italic;
}

/* Values */
.value-block {
  display: block;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--grey-line);
  border-left: none;
  margin: 0;
}
.value-block:last-child { border-bottom: none; }
.value-block h3 { margin: 0 0 .55rem; position: relative; padding-left: 0; }
.value-block h3::before {
  content: "";
  display: block;
  width: 26px; height: 3px;
  background: var(--gold);
  margin-bottom: .7rem;
}
.value-block p { margin: 0; max-width: var(--measure-wide); }

/* Related capability cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

.rel-card {
  display: block; text-decoration: none;
  border: 1px solid var(--grey-line);
  border-left: 3px solid var(--gold);
  padding: 1.4rem 1.5rem;
  background: var(--paper);
  transition: transform .18s ease, box-shadow .18s ease;
}
.rel-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(10,26,58,.08); }
.rel-card .rel-title { font-weight: 600; color: var(--navy); font-size: 1rem; margin-bottom: .3rem; }
.rel-card .rel-go { font-size: .82rem; color: var(--grey-mid); }

/* ---------- Capability icons ---------- */
.cap-icon {
  width: 40px; height: 40px;
  color: var(--gold);
  display: block;
  flex: 0 0 40px;
}
.cap-block .cap-icon { margin-top: .15rem; }
.rel-card .cap-icon { width: 32px; height: 32px; flex-basis: 32px; margin-bottom: .8rem; }
.phero .cap-icon { width: 46px; height: 46px; margin-bottom: 1.1rem; }
.card .cap-icon { width: 34px; height: 34px; flex-basis: 34px; margin-bottom: .9rem; }
.sec--ink .cap-icon, .cta-band .cap-icon { color: var(--gold); }

/* Capability index rows gain an icon column */


/* ---------- Pre-footer band ---------- */
.prefoot {
  background: var(--grey-bg);
  border-top: 1px solid var(--grey-line);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.prefoot-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2.5rem; flex-wrap: wrap;
}
.prefoot h2 { margin-bottom: .35rem; }
.prefoot p { margin-bottom: 0; color: var(--grey-ink); max-width: 56ch; }
.prefoot .prefoot-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
@media (max-width: 800px) { .prefoot-inner { flex-direction: column; align-items: flex-start; } }

/* The duo column supplies the measure — inner prose must not re-constrain itself */
.duo-body p,
.duo-body .lead,
.duo-body li { max-width: none; }
/* the grid column supplies the width; no extra cap needed */


/* ============================================
   State colours on dark sections
   Any hover/focus colour that assumes a light
   background needs a dark-section counterpart.
   ============================================ */
.sec--ink a:hover,
.cta-band a:hover { color: #fff; }
.sec--ink .arrow-link,
.cta-band .arrow-link { color: #fff; border-bottom-color: var(--gold); }
.sec--ink .arrow-link:hover,
.cta-band .arrow-link:hover { color: var(--gold); }
.sec--ink .chip { color: #dbe1ec; border-color: rgba(255,255,255,.25); }
.sec--ink .rel-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.16); }
.sec--ink .rel-card .rel-title { color: #fff; }
.sec--ink .rel-card .rel-go { color: #9aa6bd; }
.sec--ink .rel-card:hover { background: rgba(255,255,255,.08); }
.sec--ink .btn--outline:focus-visible,
.cta-band .btn--outline:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Visible focus ring everywhere, for keyboard users */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Sector chips centred under "Where complexity lives" */
.chips--centred { justify-content: center; }
.chips--centred + p { text-align: center; }


/* ============================================
   CARD SURFACE
   Cards on light sections are navy with light
   text. Every state restated so nothing inherits
   a light-surface colour onto a dark card.
   ============================================ */
.card {
  background: var(--navy);
  border: 1px solid var(--navy);
  border-left: 3px solid var(--gold);
  color: #c6cddc;
}
.card h3 { color: #fff; }
.card p  { color: #c6cddc; }
.card .cap-icon { color: var(--gold); }
.card:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  border-left-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(10,26,58,.18);
}
.card:hover h3 { color: #fff; }
.card:hover p  { color: #d5dbe7; }

/* On navy sections cards lift out of the background instead */
.sec--ink .card,
.cta-band .card {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.16);
  border-left-color: var(--gold);
}
.sec--ink .card:hover,
.cta-band .card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.24);
  box-shadow: none;
}

/* ============================================
   INTERACTION STATES — every one restated
   ============================================ */
.nav a:hover, .nav a:focus-visible { color: var(--navy); border-bottom-color: var(--gold); }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--navy-deep); color: #fff; border-color: var(--navy-deep); }

.btn:hover, .btn:focus-visible { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--navy); color: #fff; border-color: var(--navy); }

.sec--ink .btn, .cta-band .btn { background: #fff; color: var(--navy); border-color: #fff; }
.sec--ink .btn:hover, .cta-band .btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.sec--ink .btn--outline, .cta-band .btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.sec--ink .btn--outline:hover, .cta-band .btn--outline:hover { background: #fff; color: var(--navy); border-color: #fff; }

.arrow-link:hover, .arrow-link:focus-visible { color: var(--navy-deep); border-bottom-color: var(--navy); }
.sec--ink .arrow-link, .cta-band .arrow-link { color: #fff; border-bottom-color: var(--gold); }
.sec--ink .arrow-link:hover, .cta-band .arrow-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

.matrix-col a:hover, .matrix-col a:focus-visible { color: var(--navy); border-bottom-color: var(--gold); }
.phero-crumb a:hover { color: var(--navy); }
.site-footer a:hover { color: #fff; border-bottom-color: var(--gold); }
.contact-list a:hover { color: var(--navy-deep); }

/* ============================================
   ALIGNMENT — one margin, full measure
   ============================================ */
.sec-head { max-width: none; }
.sec-head h2 { max-width: 22ch; }
.sec-head p, .duo-head p { max-width: var(--measure-wide); }
.hero-lead { max-width: 620px; }
.phero p { max-width: var(--measure-wide); }
.cta-band p { max-width: var(--measure-wide); }
.after-cards p { max-width: var(--measure-wide); }

/* Centred groups */
.chips--centred { justify-content: center; }
.chips--centred + p { text-align: center; }
.link-centred { text-align: center; }

/* Bio: photo top-aligned with the text beside it */
.bio { grid-template-columns: 240px minmax(0,1fr); gap: 3rem; align-items: start; }
.bio-photo { aspect-ratio: 4/5; margin: 0; }
.bio > div > *:first-child { margin-top: 0; }
.bio p { max-width: var(--measure-wide); }
@media (max-width: 800px) { .bio { grid-template-columns: 1fr; gap: 1.6rem; } .bio-photo { max-width: 240px; } }

/* Footer: even columns */
.foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.6rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr; } }


/* ============================================================
   FULL-WIDTH PROSE  —  toggle block
   ------------------------------------------------------------
   TO REVERT: change --prose-width below from `none` back to
   `760px`. That single value controls every paragraph on the
   site. Nothing else needs touching.

     --prose-width: none;    text runs the full section width
     --prose-width: 760px;   text wraps at a reading measure
   ============================================================ */
:root { --prose-width: none; }

.sec p, .phero p, .bio p, .sector-desc, .reg-desc,
.method-item p, .cap-block p, .value-block p, .statement p,
.sec-head p, .duo-head p, .cta-band p, .prefoot p,
.after-cards p, .lead-block p { max-width: var(--prose-width); }
.hero-lead { max-width: var(--prose-width); }


/* CTA band: text then a centred button beneath it */
.cta-inner {
  display: block;
  text-align: center;
}
.cta-inner > div { margin-bottom: 1.8rem; }
.cta-inner .eyebrow { display: inline-block; }
.cta-inner h2 { margin-left: auto; margin-right: auto; }
.cta-inner p { margin-left: auto; margin-right: auto; max-width: var(--prose-width); }
.cta-band .btn { margin: 0 auto; }

/* Pre-footer: text left, single button right, vertically centred */
.prefoot-inner { align-items: center; }

/* Footer: three equal link columns with equal gutters */
.foot-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 3rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 2.2rem; } }
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* About bio: placeholder vertically centred against the text */
.bio { align-items: center; }

/* Full-colour symbol used as a feature mark in empty space */
.mark-feature {
  display: block;
  width: clamp(120px, 15vw, 190px);
  height: auto;
  margin: 0 auto;
}
.statement { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3rem; align-items: center; }
.statement > div { min-width: 0; }
@media (max-width: 800px) {
  .statement { grid-template-columns: 1fr; }
  .mark-feature { margin-top: 1.5rem; width: 120px; }
}


/* Feature mark sitting to the right of a text block */
.feature-row { display: flex; justify-content: flex-end; margin-top: -3rem; pointer-events: none; }
@media (max-width: 900px) { .feature-row { justify-content: center; margin-top: 1.5rem; } }


/* ============================================================
   PROSE WIDTH — container level
   Applied to the containers, not to a list of paragraph
   selectors, so nothing can be missed.
   TO REVERT: set --prose-width back to 760px.
   ============================================================ */
.sec .wrap > *,
.sec .wrap > * > *,
.phero .wrap > *,
.prefoot .wrap > * { max-width: var(--prose-width); }
.sec .wrap p, .phero .wrap p, .prefoot .wrap p,
.sec .wrap li, .sec .wrap .sector-desc, .sec .wrap .sector-projects,
.sec .wrap .statement p, .sec .wrap .duo-head p { max-width: var(--prose-width); }

/* Components that manage their own width are exempt */
.matrix, .grid-2, .grid-3, .chips, .foot-grid, .form, .form-row,
.bio, .cta-inner, .prefoot-inner, .hero-grid { max-width: none; }

/* ---- 1/2. Footer: brand row above, three even link columns below ---- */
.foot-grid {
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.foot-brand p { max-width: 34ch; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Footer watermark vertically centred in the band */
.site-footer .geo { top: 50%; bottom: auto; --cy: -50%; right: 4%; left: auto; }

/* ---- 7. Contact: brand left, form right ---- */
.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 5rem;
  align-items: center;
}
.contact-brand { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.contact-brand .brand-symbol { width: 100%; max-width: 200px; height: auto; display: block; }
.contact-brand .brand-word  { width: 100%; max-width: 210px; height: auto; display: block; }
.contact-split .form-centred { max-width: none; margin: 0; }
@media (max-width: 900px) {
  .contact-split { grid-template-columns: 1fr; gap: 2.6rem; }
  .contact-brand { flex-direction: row; justify-content: center; gap: 2.4rem; }
  .contact-brand .brand-symbol { max-width: 110px; }
  .contact-brand .brand-word { max-width: 150px; }
}


/* ============================================================
   UNIFORM SECTION RHYTHM
   One spacing scale for every section on every page.
   ============================================================ */
.sec, .sec--white, .sec--ink { padding: 3.6rem 0; }
.sec-head { margin-bottom: 2.2rem; }
.sec .wrap > *:last-child { margin-bottom: 0; }
.duo-head { margin-bottom: 1.8rem; }
.method-item:last-child, .cap-block:last-child,
.sector:last-child, .value-block:last-child { border-bottom: none; padding-bottom: 0; }
@media (max-width: 700px) { .sec, .sec--white, .sec--ink { padding: 2.6rem 0; } }

/* Every section boundary is visible, including white against grey */
/* A boundary rule only where two LIGHT sections meet. A navy band needs
   none — the colour change is the boundary, and a rule inside or beside
   it reads as two stacked panels. */
.sec, .sec--white, .phero, .prefoot { border-top: 1px solid var(--grey-line); }
.sec--ink, .cta-band, .hero { border-top: none; }
.sec--ink + .sec, .sec--ink + .sec--white,
.cta-band + .sec, .cta-band + .sec--white,
.sec + .sec--ink, .sec--white + .sec--ink { border-top: none; }




/* Icons where present, no numbers anywhere */
.method-item h3, .cap-block h3 { display: inline; }
.cap-block .cap-icon {
  display: inline-block;
  width: 26px; height: 26px;
  vertical-align: -.45rem;
  margin-right: .75rem;
}
.method-item h3 { margin-left: 0; }


/* Footer: the middle link column sits centred between its neighbours */
.foot-grid > div:nth-child(3) { justify-self: center; text-align: left; }

/* 3. Contact brand: symbol top-aligned with the first form label */
.contact-split { align-items: start; }
.contact-brand { padding-top: 3.4rem; }
@media (max-width: 900px) { .contact-brand { padding-top: 0; } }
