/*
Theme Name: Mothepa Governance & Compliance
Theme URI: https://mothepagovernanceandcompliance.co.za
Author: Mothepa Governance & Compliance Solutions (Pty) Ltd
Description: Official WordPress theme for Mothepa Governance & Compliance Solutions (Pty) Ltd.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mothepa-governance-compliance
*/

:root {
  --ink: #29353B;
  --blue: #35C2E3;
  --green: #20B39C;
  --yellow: #F7C151;
  --blue-text: #087B94;
  --green-text: #087868;
  --yellow-text: #8A6300;
  --paper: #F7F8F8;
  --white: #FFFFFF;
  --mist: #EDF1F2;
  --muted: #607078;
  --line: rgba(41, 53, 59, 0.16);
  --line-light: rgba(255, 255, 255, 0.18);
  --shadow: 0 18px 50px rgba(41, 53, 59, 0.08);
  --shell: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5.5rem, 10vw, 10rem);
  --header: 92px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 28px);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

h1, h2, h3, p, blockquote { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

h1 {
  margin-bottom: 1.7rem;
  font-size: clamp(2.5rem, 5.8vw, 5.85rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
  font-weight: 600;
}

h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(1.85rem, 3.3vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 600;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  line-height: 1.35;
  letter-spacing: -0.016em;
  font-weight: 700;
}

p { margin-bottom: 1.25rem; }

::selection { color: var(--ink); background: var(--yellow); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--white);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(100%, calc(var(--shell) + (var(--gutter) * 2)));
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section-space { padding-top: var(--section); padding-bottom: var(--section); }
.section-soft { background: var(--mist); }
.section-ink { color: var(--white); background: var(--ink); }

.eyebrow {
  margin-bottom: 1.35rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 2.8rem;
  height: 3px;
  margin-right: 0.85rem;
  vertical-align: 0.2em;
  background: var(--yellow);
  content: "";
}

.eyebrow-light { color: rgba(255, 255, 255, 0.67); }

.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0.86rem 1.45rem;
  border: 1px solid var(--ink);
  border-radius: 3px;
  color: var(--white);
  background: var(--ink);
  font-size: 0.8rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.button:hover { transform: translateY(-2px); }
.button-small { min-height: 44px; padding: 0.72rem 1rem; font-size: 0.72rem; }
.button-outline { color: var(--ink); background: transparent; }
.button-outline:hover { color: var(--white); background: var(--ink); }
.button-yellow { color: var(--ink); border-color: var(--yellow); background: var(--yellow); }
.button-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.52); background: transparent; }
.button-ghost:hover { color: var(--ink); border-color: var(--white); background: var(--white); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link::after {
  width: 2.2rem;
  height: 1px;
  background: currentColor;
  content: "";
  transition: width 0.22s ease;
}

.text-link:hover::after { width: 3.25rem; }
.text-link-light { color: var(--white); }

/* Shared navigation */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 248, 0.96);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: 0 10px 35px rgba(41, 53, 59, 0.09); }

.nav-shell {
  display: flex;
  width: min(100%, calc(var(--shell) + (var(--gutter) * 2)));
  min-height: var(--header);
  align-items: center;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.55rem;
  text-decoration: none;
}

.brand-logo { width: 210px; height: auto; }

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.8rem);
  margin-left: auto;
}

.desktop-nav a,
.mobile-nav > a:not(.button) {
  position: relative;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.65rem;
  left: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  content: "";
  transition: transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] { color: var(--ink); }
.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta { margin-left: clamp(1rem, 2vw, 1.8rem); }
.menu-toggle, .mobile-nav { display: none; }

main { padding-top: var(--header); }

/* Home hero */
.home-hero { padding: clamp(4rem, 6.5vw, 6.5rem) 0 0; background: var(--paper); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.hero-copy h1 { max-width: 800px; margin-bottom: 2rem; font-size: clamp(2.7rem, 4.2vw, 4.1rem); }
.hero-copy h1 span { color: var(--muted); }

.hero-intro {
  max-width: 680px;
  margin-bottom: 2.65rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.hero-editorial {
  position: relative;
  min-height: 660px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
}

.hero-editorial::before,
.hero-editorial::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.hero-editorial::before { top: 0; bottom: 0; left: 0; width: 7px; background: var(--green); }
.hero-editorial::after { inset: 0; background: linear-gradient(180deg, rgba(18, 27, 32, 0.08) 36%, rgba(18, 27, 32, 0.88) 100%); }
.hero-editorial > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% center; filter: saturate(0.82) contrast(1.03); }

.hero-editorial-top {
  position: absolute;
  z-index: 2;
  top: 1.45rem;
  right: 1.5rem;
  left: 1.6rem;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-editorial-mark {
  position: absolute;
  z-index: 2;
  right: 1.5rem;
  bottom: 1.5rem;
  display: grid;
  width: 86px;
  aspect-ratio: 1;
  place-items: center;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.94);
}

.hero-editorial figcaption { position: absolute; z-index: 2; right: 8.5rem; bottom: 1.65rem; left: 1.7rem; }
.hero-editorial figcaption span { display: block; margin-bottom: 0.35rem; color: var(--yellow); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; }
.hero-editorial figcaption p { max-width: 280px; margin: 0; color: var(--white); font-size: 0.94rem; line-height: 1.45; font-weight: 600; }

.governance-graphic {
  position: relative;
  display: grid;
  height: 680px;
  min-height: 0;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line);
  color: var(--white);
  background: var(--ink);
}

.governance-graphic::before,
.governance-graphic::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.governance-graphic::before {
  top: 16%;
  right: 0;
  width: 58%;
  height: 1px;
  background: var(--blue);
}

.governance-graphic::after {
  right: 22%;
  bottom: 23%;
  width: 1px;
  height: 48%;
  background: var(--green);
}

.graphic-top {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--line-light);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.graphic-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.graphic-mark img { width: min(62%, 230px); border: 1px solid var(--line-light); opacity: 0.98; }

.governance-graphic ol {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
}

.governance-graphic li {
  padding: 1.15rem 1.25rem;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.governance-graphic li:nth-child(even) { border-right: 0; }
.governance-graphic li:nth-child(3), .governance-graphic li:nth-child(4) { border-bottom: 0; }
.governance-graphic b { display: block; color: var(--yellow); font-size: 0.73rem; letter-spacing: 0.12em; }
.governance-graphic li:nth-child(2) b { color: var(--green); }
.governance-graphic li:nth-child(3) b { color: var(--blue); }
.governance-graphic span { font-size: 0.82rem; }

.fact-band {
  display: grid;
  grid-template-columns: 0.8fr 0.9fr 1.5fr;
  margin-top: clamp(3.5rem, 7vw, 6.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-band > div { padding: 1.4rem 1.8rem; border-right: 1px solid var(--line); }
.fact-band > div:first-child { padding-left: 0; }
.fact-band > div:last-child { border-right: 0; }
.fact-band strong { display: block; margin-bottom: 0.2rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em; }
.fact-band span { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }

.statement-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.7fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.statement-grid blockquote {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 600;
}

.statement-grid > p { color: var(--muted); font-size: 1.05rem; }

.section-heading { margin-bottom: clamp(3.2rem, 6vw, 6rem); }
.section-heading h2 { max-width: 780px; margin-bottom: 0; }
.section-heading.narrow { max-width: 780px; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: 4rem; align-items: end; }
.split-heading > p { max-width: 500px; margin: 0; color: var(--muted); }
.section-ink .split-heading > p { color: rgba(255, 255, 255, 0.67); }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.pillar-card {
  position: relative;
  min-height: 390px;
  padding: clamp(1.8rem, 4vw, 3.4rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--white);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover { transform: translateY(-5px); border-color: rgba(41, 53, 59, 0.32); box-shadow: var(--shadow); }
.pillar-card::before { position: absolute; top: 0; right: 0; left: 0; height: 5px; background: var(--blue); content: ""; }
.pillar-card.accent-green::before { background: var(--green); }
.pillar-card.accent-yellow::before { background: var(--yellow); }
.pillar-card.accent-blue-green::before { background: linear-gradient(90deg, var(--blue) 0 50%, var(--green) 50%); }
.pillar-number { margin-bottom: clamp(3rem, 7vw, 6rem); color: var(--muted); font-size: 0.77rem; font-weight: 700; letter-spacing: 0.16em; }
.pillar-card h3 { max-width: 520px; font-size: clamp(1.45rem, 2.4vw, 2.2rem); line-height: 1.2; letter-spacing: -0.035em; }
.pillar-card p { max-width: 560px; color: var(--muted); }
.pillar-card .text-link { margin-top: 1.5rem; }

.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(4rem, 10vw, 10rem); align-items: start; }
.why-title { position: sticky; top: calc(var(--header) + 3rem); }
.why-title > p { max-width: 520px; color: var(--muted); font-size: 1.05rem; }
.why-title .button { margin-top: 1rem; }

.reason-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.reason-list li { display: grid; grid-template-columns: 52px 1fr; gap: 1.25rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.reason-list li > span { color: var(--green-text); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; }
.reason-list li:nth-child(2) > span { color: var(--blue-text); }
.reason-list li:nth-child(3) > span { color: var(--yellow-text); }
.reason-list p { margin-bottom: 0; color: var(--muted); }

.leader-preview-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(4rem, 9vw, 9rem); align-items: center; }
.leader-identity-card,
.leader-profile-card { position: relative; min-height: 560px; overflow: hidden; border: 1px solid var(--line-light); background: #202A2F; }
.leader-identity-card::before,
.leader-profile-card::before { position: absolute; inset: 0; background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px); background-size: 25% 25%; opacity: 0.28; content: ""; }
.leader-identity-card::after,
.leader-profile-card::after { position: absolute; top: 0; right: 0; width: 1px; height: 62%; background: var(--blue); content: ""; }
.home-founder-card::before { z-index: 1; background: linear-gradient(180deg, rgba(32, 42, 47, 0.02) 42%, rgba(24, 32, 36, 0.9) 100%); opacity: 1; }
.home-founder-card::after { z-index: 2; }
.home-founder-card .home-founder-portrait { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transform: scale(1.18); transform-origin: center 20%; }
.leader-identity-mark { position: absolute; z-index: 1; top: 2.5rem; left: 2.5rem; display: grid; width: 112px; aspect-ratio: 1; place-items: center; padding: 1.6rem; border: 1px solid var(--line-light); background: var(--white); }
.leader-identity-meta { position: absolute; z-index: 2; right: 2.5rem; bottom: 2.5rem; left: 2.5rem; }
.leader-identity-meta span { display: block; margin-bottom: 0.5rem; color: var(--yellow); font-size: clamp(4rem, 9vw, 7.4rem); line-height: 0.8; font-weight: 600; letter-spacing: -0.08em; }
.leader-identity-meta p { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.leader-identity-card > i,
.leader-profile-card > i { position: absolute; z-index: 1; right: 2.5rem; bottom: 2.7rem; width: 4rem; height: 4px; background: var(--green); }
.home-founder-card > i { z-index: 2; }
.leader-preview h2 { max-width: 760px; margin-bottom: 0.55rem; overflow-wrap: normal; word-break: normal; }
.leader-preview .role { margin-bottom: 2rem; color: var(--blue); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.leader-preview-grid > div:last-child > p:not(.eyebrow):not(.role) { max-width: 710px; color: rgba(255, 255, 255, 0.72); }
.leader-preview .button { margin-top: 1rem; }

.closing-cta { padding: clamp(4rem, 8vw, 7rem) 0; color: var(--white); background: var(--ink); border-top: 1px solid var(--line-light); }
.closing-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 4rem; align-items: center; }
.closing-grid h2 { max-width: 820px; }
.closing-grid p:not(.eyebrow) { max-width: 720px; margin-bottom: 0; color: rgba(255, 255, 255, 0.65); }
.closing-actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.85rem; }

/* Page heroes */
.page-hero { padding: clamp(5rem, 8vw, 8rem) 0 clamp(4.5rem, 7vw, 7rem); border-bottom: 1px solid var(--line); background: var(--paper); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.page-hero h1 { max-width: 920px; font-size: clamp(2.65rem, 4.3vw, 4.55rem); }
.page-intro { max-width: 770px; margin-bottom: 0; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
body[data-page="about"] .page-hero { padding-bottom: clamp(4rem, 6vw, 6rem); }
body[data-page="contact"] .page-visual img { object-position: 50% 48%; }

.page-visual { position: relative; min-height: 430px; margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--ink); }
.page-visual::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 31, 36, 0.02) 38%, rgba(22, 31, 36, 0.84) 100%); content: ""; }
.page-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) contrast(1.02); }
.page-visual.media-right img { object-position: 68% center; }
.page-visual figcaption { position: absolute; z-index: 2; right: 1.7rem; bottom: 1.5rem; left: 1.7rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; color: var(--white); }
.page-visual figcaption span { font-size: clamp(4.2rem, 8vw, 7.5rem); line-height: 0.78; font-weight: 600; letter-spacing: -0.08em; }
.page-visual figcaption b { padding-bottom: 0.15rem; font-size: 0.69rem; letter-spacing: 0.15em; text-transform: uppercase; }
.page-visual > i { position: absolute; z-index: 3; top: 0; left: 0; width: 7px; height: 100%; background: var(--blue); }
.page-visual.accent-green > i { background: var(--green); }
.page-visual.accent-yellow > i { background: var(--yellow); }

.editorial-grid, .identity-grid, .capability-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(4rem, 9vw, 9rem);
  align-items: start;
}

.prose { color: var(--muted); font-size: 1.06rem; }
.prose p:last-child { margin-bottom: 0; }
.prose-light { color: rgba(255, 255, 255, 0.72); }

.vision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.vision-grid article { position: relative; min-height: 460px; padding: clamp(2rem, 4vw, 3.5rem); border: 1px solid var(--line); background: var(--white); }
.vision-grid article > span { position: absolute; top: 2rem; right: 2rem; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; }
.vision-grid h2 { margin-top: clamp(4rem, 8vw, 7rem); font-size: clamp(1.85rem, 3.1vw, 2.95rem); }
.vision-grid article p:last-child { color: var(--muted); }

.values-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.values-grid article { padding: clamp(1.8rem, 3vw, 2.8rem); border: 1px solid var(--line); background: var(--white); }
.values-grid i { display: block; width: 3rem; height: 4px; margin-bottom: 3.5rem; background: var(--blue); }
.values-grid article:nth-child(2) i { background: var(--green); }
.values-grid article:nth-child(3) i { background: var(--yellow); }
.values-grid article:nth-child(4) i { background: var(--ink); }
.values-grid p { margin-bottom: 0; color: var(--muted); }
.about-intro, .values-section { padding-top: clamp(4.75rem, 8vw, 8rem); padding-bottom: clamp(4.75rem, 8vw, 8rem); }

.responsibility-section { border-top: 1px solid var(--line); }
.plain-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.plain-list li { position: relative; padding: 1.55rem 0 1.55rem 2rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.plain-list li::before { position: absolute; top: 2.18rem; left: 0; width: 0.6rem; height: 3px; background: var(--green); content: ""; }

/* Services */
.service-jump { position: sticky; z-index: 30; top: var(--header); border-bottom: 1px solid var(--line); background: rgba(247, 248, 248, 0.96); backdrop-filter: blur(16px); }
.service-jump .shell { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 0; padding-bottom: 0; overflow-x: auto; }
.service-jump a { min-width: 220px; padding: 1.15rem 1rem; border-right: 1px solid var(--line); color: var(--muted); font-size: 0.7rem; line-height: 1.4; font-weight: 700; text-decoration: none; }
.service-jump a:first-child { border-left: 1px solid var(--line); }
.service-jump a:hover { color: var(--ink); background: var(--white); }
.service-jump span { display: block; margin-bottom: 0.25rem; color: var(--green-text); letter-spacing: 0.12em; }

.service-block { padding: clamp(5.5rem, 8vw, 8rem) 0; border-bottom: 1px solid var(--line); }
.service-block:nth-child(even) { background: var(--mist); }
.service-block-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(4rem, 9vw, 9rem); }
.service-title { position: sticky; top: calc(var(--header) + 8rem); align-self: start; }
.service-number { display: block; margin-bottom: clamp(3rem, 7vw, 6rem); color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; }
.service-title > p:last-child { max-width: 560px; color: var(--muted); }
.service-details { border-top: 1px solid var(--line); }
.service-details > div { padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.service-details h3 { padding-left: 1.4rem; border-left: 4px solid var(--blue); }
.service-block.accent-green .service-details h3 { border-left-color: var(--green); }
.service-block.accent-yellow .service-details h3 { border-left-color: var(--yellow); }
.service-block.accent-blue-green .service-details h3 { border-left-color: var(--green); }
.service-details p { margin-bottom: 0; color: var(--muted); }

/* Approach */
.philosophy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.philosophy-grid article { min-height: 520px; padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--line); background: var(--white); }
.philosophy-grid article:nth-child(2) { color: var(--white); background: var(--ink); }
.philosophy-grid article > span { display: block; margin-bottom: clamp(5rem, 11vw, 10rem); color: var(--green-text); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.philosophy-grid article:nth-child(2) > span { color: var(--yellow); }
.philosophy-grid p { color: var(--muted); }
.philosophy-grid article:nth-child(2) p { color: rgba(255, 255, 255, 0.7); }

.approach-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(4rem, 10vw, 10rem); }
.approach-grid > div:first-child > p:last-child { max-width: 520px; color: var(--muted); }
.approach-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.approach-list li { display: grid; grid-template-columns: 48px 1fr; gap: 1.4rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.approach-list li > span { color: var(--blue-text); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; }
.approach-list li:nth-child(2) > span { color: var(--green-text); }
.approach-list li:nth-child(3) > span { color: var(--yellow-text); }
.approach-list p { margin-bottom: 0; color: var(--muted); }

.benefits-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.benefits-grid article { grid-column: span 2; min-height: 270px; padding: clamp(1.7rem, 3vw, 2.7rem); border: 1px solid var(--line-light); background: rgba(255, 255, 255, 0.025); }
.benefits-grid article:nth-last-child(-n + 2) { grid-column: span 3; }
.benefits-grid span { display: block; margin-bottom: 3rem; color: var(--yellow); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; }
.benefits-grid p { margin-bottom: 0; color: rgba(255, 255, 255, 0.67); }

/* Leadership */
.leadership-intro-grid { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: clamp(4rem, 10vw, 10rem); align-items: start; }
.leader-profile-card { min-height: 590px; margin: 0; border-color: var(--line); }
.founder-portrait-card::before { z-index: 1; background: linear-gradient(180deg, rgba(32, 42, 47, 0.02) 45%, rgba(24, 32, 36, 0.86) 100%); opacity: 1; }
.founder-portrait-card::after { z-index: 2; }
.founder-portrait-card .founder-portrait { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; object-fit: cover; object-position: center 35%; }
.leader-profile-card strong { position: absolute; z-index: 2; right: 2.5rem; bottom: 4.2rem; left: 2.5rem; color: var(--yellow); font-size: clamp(3.6rem, 6vw, 5.35rem); line-height: 0.84; font-weight: 600; letter-spacing: -0.07em; }
.leader-profile-card span { position: absolute; z-index: 2; bottom: 2rem; left: 2.5rem; color: rgba(255, 255, 255, 0.78); font-size: 0.72rem; line-height: 1.45; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.founder-portrait-card > i { z-index: 2; }
.leadership-intro-grid .lead { margin-bottom: 2rem; color: var(--green-text); font-weight: 700; }
.founder-name { max-width: 820px; font-size: clamp(2.25rem, 4vw, 4.05rem); line-height: 1.05; overflow-wrap: normal; word-break: normal; text-wrap: balance; }

.credential-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.credential-grid article { min-height: 310px; padding: clamp(1.7rem, 3vw, 2.7rem); border: 1px solid var(--line); background: var(--white); }
.credential-grid span { display: block; margin-bottom: 5rem; color: var(--blue-text); font-size: 0.73rem; font-weight: 700; letter-spacing: 0.14em; }
.credential-grid article:nth-child(2) span { color: var(--green-text); }
.credential-grid article:nth-child(3) span { color: var(--yellow-text); }
.credential-grid p { margin-bottom: 0; color: var(--muted); }
.team-note .plain-list li { color: rgba(255, 255, 255, 0.72); border-color: var(--line-light); }
.team-note-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(4rem, 8vw, 8rem); align-items: center; }
.team-note-grid figure { position: relative; aspect-ratio: 4 / 3; margin: 0; overflow: hidden; border: 1px solid var(--line-light); }
.team-note-grid figure::after { position: absolute; inset: 0; border-left: 7px solid var(--green); background: linear-gradient(180deg, transparent 60%, rgba(32, 42, 47, 0.4)); content: ""; }
.team-note-grid figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.78) contrast(1.02); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(4rem, 10vw, 10rem); align-items: start; }
.contact-copy > p:not(.eyebrow) { max-width: 640px; color: var(--muted); font-size: 1.06rem; }
.contact-copy .button-row { margin-top: 2rem; }
.contact-card { border-top: 5px solid var(--green); box-shadow: var(--shadow); background: var(--white); }
.contact-card > div { padding: 1.6rem 2rem; border: 1px solid var(--line); border-top: 0; }
.contact-card span { display: block; margin-bottom: 0.35rem; color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.contact-card a { font-size: 1.05rem; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact-card p { margin-bottom: 0; }
.contact-advisory .prose { border-top: 1px solid var(--line); }
.contact-advisory .prose p { margin: 0; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.contact-closing { text-align: center; }
.contact-closing .shell { max-width: 1040px; }
.contact-closing-line { width: 1px; height: 90px; margin: 0 auto 3rem; background: var(--yellow); }
.contact-closing h2 { max-width: 860px; margin-right: auto; margin-left: auto; }

/* Footer */
.site-footer { padding: clamp(4rem, 8vw, 7rem) 0 2rem; color: var(--white); background: #202A2F; border-top: 1px solid var(--line-light); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.6fr 1fr 0.9fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.footer-logo-wrap { display: inline-flex; padding: 0.4rem; background: var(--white); }
.footer-logo-wrap .brand-link { padding: 0.35rem 0.45rem; }
.footer-logo-wrap .brand-logo { width: 210px; }
.footer-brand > p { max-width: 360px; margin-top: 1.7rem; color: rgba(255, 255, 255, 0.62); font-size: 0.9rem; }
.site-footer h2 { margin-bottom: 1.5rem; color: rgba(255, 255, 255, 0.55); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 0.7rem; }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer li a, .site-footer address { font-size: 0.88rem; line-height: 1.55; }
.site-footer address { display: flex; flex-direction: column; gap: 0.7rem; color: rgba(255, 255, 255, 0.72); font-style: normal; }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; margin-top: clamp(4rem, 8vw, 7rem); padding-top: 1.5rem; border-top: 1px solid var(--line-light); color: rgba(255, 255, 255, 0.48); font-size: 0.74rem; }
.footer-bottom p { margin: 0; }

/* Scroll reveal */
html.reveal-ready [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
html.reveal-ready [data-reveal].revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html.reveal-ready [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 1160px) {
  :root { --header: 76px; }
  .desktop-nav, .header-cta { display: none; }
  .nav-shell { min-height: var(--header); }
  .brand-logo { width: 178px; }
  .menu-toggle {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-left: auto;
    padding: 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) { display: block; width: 25px; height: 2px; background: currentColor; transition: transform 0.2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .mobile-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 1001;
    width: 100vw;
    height: calc(100vh - var(--header));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 2rem var(--gutter) 3rem;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    background-color: #ffffff;
    box-shadow: 0 25px 60px rgba(41, 53, 59, 0.14);
    isolation: isolate;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s ease;
  }
  .mobile-nav.open { transform: translateX(0); visibility: visible; }
  .mobile-nav > a:not(.button) { padding: 1.05rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1rem; }
  .mobile-nav > a[aria-current="page"] { color: var(--green-text); }
  .mobile-nav .button { margin-top: 1.6rem; }
  .hero-grid { grid-template-columns: 1fr 0.82fr; gap: 3rem; }
  .hero-editorial { min-height: 580px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --section: 6rem; }
  .hero-grid, .page-hero-grid, .editorial-grid, .identity-grid, .capability-grid,
  .why-grid, .leader-preview-grid, .closing-grid, .service-block-grid,
  .approach-grid, .leadership-intro-grid, .contact-grid, .team-note-grid { grid-template-columns: 1fr; }
  .home-hero { padding-top: 4.5rem; }
  .hero-editorial { min-height: 540px; }
  .fact-band { grid-template-columns: repeat(3, 1fr); }
  .statement-grid { grid-template-columns: 1fr; gap: 2rem; }
  .statement-grid blockquote { max-width: 760px; }
  .split-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .why-title, .service-title { position: static; }
  .leader-identity-card { width: min(100%, 620px); }
  .closing-actions { max-width: 420px; }
  .page-visual { min-height: 380px; }
  .service-jump .shell { grid-template-columns: repeat(4, 260px); }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefits-grid article, .benefits-grid article:nth-last-child(-n + 2) { grid-column: auto; }
  .leader-profile-card { width: min(100%, 520px); }
}

@media (max-width: 680px) {
  :root { --gutter: 1.25rem; --section: 5rem; }
  h1 { font-size: clamp(2.35rem, 11.5vw, 3.7rem); }
  h2 { font-size: clamp(1.75rem, 8vw, 2.55rem); }
  .button-row { align-items: stretch; flex-direction: column; }
  .button-row .button { width: 100%; }
  .home-hero { padding-top: 3.5rem; }
  .hero-copy h1 { margin-bottom: 1.65rem; font-size: clamp(2.35rem, 10.8vw, 3.35rem); }
  .hero-intro { margin-bottom: 2.15rem; }
  .hero-editorial { min-height: 430px; }
  .hero-editorial-mark { width: 72px; padding: 0.95rem; }
  .hero-editorial figcaption { right: 7rem; }
  .fact-band { grid-template-columns: 1fr; }
  .fact-band > div { padding: 1.2rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .fact-band > div:last-child { border-bottom: 0; }
  .pillar-grid, .vision-grid, .values-grid, .philosophy-grid, .credential-grid { grid-template-columns: 1fr; }
  .pillar-card { min-height: auto; }
  .pillar-number { margin-bottom: 3.2rem; }
  .vision-grid article { min-height: auto; }
  .philosophy-grid article { min-height: auto; }
  .philosophy-grid article > span { margin-bottom: 5rem; }
  .page-hero { padding-top: 4rem; }
  .page-hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.4rem); }
  .page-visual { min-height: 280px; }
  .page-visual figcaption span { font-size: 4.9rem; }
  .page-visual figcaption b { max-width: 130px; text-align: right; }
  .service-jump { top: var(--header); }
  .service-jump .shell { grid-template-columns: repeat(4, 230px); }
  .service-block { scroll-margin-top: 170px; }
  .service-details > div { padding: 1.5rem 0; }
  .leadership-intro-grid { gap: 3rem; }
  .founder-name { font-size: clamp(2.05rem, 9.3vw, 3rem); }
  .leader-identity-card, .leader-profile-card { min-height: 430px; }
  .founder-portrait-card { min-height: 500px; }
  .leader-identity-mark { top: 1.5rem; left: 1.5rem; width: 74px; padding: 1rem; }
  .leader-identity-meta, .leader-profile-card strong { right: 1.5rem; left: 1.5rem; }
  .leader-identity-meta { bottom: 1.6rem; }
  .leader-profile-card strong { bottom: 3.8rem; }
  .leader-profile-card span { bottom: 1.45rem; left: 1.5rem; }
  .leader-identity-card > i, .leader-profile-card > i { right: 1.5rem; bottom: 1.8rem; }
  .credential-grid article { min-height: 250px; }
  .contact-card > div { padding: 1.4rem 1.35rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.45rem; }
  .footer-logo-wrap .brand-logo { width: 190px; }
}

@media (max-width: 400px) {
  .brand-logo { width: 162px; }
  .brand-link { padding-left: 0; }
  .hero-editorial { min-height: 400px; }
  .hero-editorial figcaption p { font-size: 0.86rem; }
}
