/* =============================================================
   GREENPATH MINING CONSULTANTS — v4
   Pure minimalism · System-first font · Strict 8px grid
   Geist loaded as progressive enhancement
   ============================================================= */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  /* Palette — white / charcoal / single accent */
  --white:   #FFFFFF;
  --ink:     #111111;
  --ink-2:   #333333;
  --muted:   #6A6A6A;
  --light:   #9C9C9C;
  --surface: #F7F6F4;
  --border:  #E2E2E2;
  --border-l:#EEEEEE;
  --accent:  #1A4731;      /* deep forest — GreenPath brand */
  --accent-h:#153C28;      /* hover state */
  --accent-l:#EBF2EE;      /* tint background */
  --coal:    #2A2A2A;      /* coal black — used for mine diagrams */

  /* Typography — system stack first; Geist when loaded */
  --font: 'Geist', -apple-system, BlinkMacSystemFont,
          'Segoe UI', 'Helvetica Neue', Arial, Roboto, sans-serif;

  /* Fixed scale — exact px as per brief */
  --t-h1:   72px;
  --t-h2:   40px;
  --t-h3:   22px;
  --t-body: 16px;
  --t-lead: 18px;
  --t-sm:   14px;
  --t-xs:   12px;
  --t-xxs:  11px;

  /* 8-px spacing grid */
  --s1:   8px;
  --s2:  16px;
  --s3:  24px;
  --s4:  32px;
  --s5:  48px;
  --s6:  64px;
  --s7:  96px;
  --s8: 128px;

  /* Layout */
  --maxw: 1160px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 64px;
}

/* Mobile type scale */
@media (max-width: 860px) {
  :root {
    --t-h1: 40px;
    --t-h2: 26px;
    --t-h3: 19px;
    --t-lead: 16px;
  }
}

/* ---------- RESET ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.625;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--white); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- LAYOUT ---------- */
.container {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- TYPOGRAPHY SYSTEM ---------- */
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; color: var(--ink); }

h1 {
  font-size: var(--t-h1);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
}
h2 {
  font-size: var(--t-h2);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 500;
}
h3 {
  font-size: var(--t-h3);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 500;
}
p {
  margin: 0 0 var(--s2);
  color: var(--ink-2);
  font-size: var(--t-body);
  line-height: 1.65;
}
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.56;
  color: var(--muted);
}

/* Eyebrow label — always same spec */
.eyebrow {
  display: block;
  font-size: var(--t-xxs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s2);
}

/* Separator */
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--font);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}
.btn-arrow { transition: transform 180ms ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: var(--accent); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.logo-mark {
  width: 30px;
  height: 30px;
  color: var(--accent);
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
}
.logo-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--light);
  line-height: 1;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: var(--t-sm);
  font-weight: 400;
  color: var(--muted);
  transition: color 160ms ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--accent);
  color: var(--white);
  font-size: var(--t-sm);
  font-weight: 500;
  transition: background 180ms ease;
}
.nav-cta:hover { background: var(--accent-h); }

.menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: var(--s3) var(--gutter) var(--s4);
  }
  .nav-links.open a {
    color: var(--ink);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-l);
    width: 100%;
  }
  .nav-links.open a:last-child { border-bottom: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;

  /* Coal mine background — Dominik Vanyi, Indonesia coal mine (Unsplash) */
  background:
    linear-gradient(
      105deg,
      rgba(7, 14, 10, 0.92) 0%,
      rgba(7, 14, 10, 0.80) 42%,
      rgba(7, 14, 10, 0.58) 100%
    ),
    url('https://images.unsplash.com/photo-1523848309072-c199db53f137?w=2400&q=80&auto=format&fit=crop')
    center / cover no-repeat;

  /* Solid fallback if image fails to load */
  background-color: #0B1510;
}

/* ── Hero text on dark background ── */
.hero .eyebrow {
  color: #6DBF8F;       /* lighter emerald — readable on dark */
}
.hero h1 {
  color: #FFFFFF;
}
.hero h1 .h1-accent {
  color: #6DBF8F;
}
.hero-left .lead {
  color: rgba(255, 255, 255, 0.78);
}

/* ── Hero buttons on dark background ── */
.hero .btn-dark {
  background: #FFFFFF;
  color: var(--ink);
  border-color: #FFFFFF;
}
.hero .btn-dark:hover {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}
.hero .btn-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.45);
}
.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
  padding: var(--s6) 0;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s5); padding: var(--s5) 0; }
}

/* Hero left */
.hero-left { max-width: 600px; }
.hero-left .eyebrow { margin-bottom: var(--s3); }

/* Animated H1 */
.hero-left h1 { margin-bottom: var(--s3); }

.h1-line { display: block; overflow: hidden; }
.h1-word {
  display: inline-block;
  animation: wordUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* Stagger via nth-child on spans inside h1 */
.h1-line:nth-child(1) .h1-word { animation-delay: 0.05s; }
.h1-line:nth-child(2) .h1-word { animation-delay: 0.18s; }
.h1-line:nth-child(3) .h1-word { animation-delay: 0.31s; }
.h1-line:nth-child(4) .h1-word { animation-delay: 0.44s; }

@keyframes wordUp {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}

.h1-accent { color: var(--accent); }

.hero-left .lead {
  animation: heroFade 0.8s ease both;
  animation-delay: 0.7s;
  max-width: 52ch;
  margin-bottom: var(--s4);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
  animation: heroFade 0.8s ease both;
  animation-delay: 0.88s;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero right — mining illustration */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroFade 1s ease both;
  animation-delay: 0.6s;
}
.mine-illustration {
  width: 100%;
  max-width: 520px;
}
@media (max-width: 860px) {
  .hero-right { display: none; }
}

/* ============================================================
   METRICS STRIP
   ============================================================ */
.metrics-strip {
  border-bottom: 1px solid var(--border);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 860px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .metrics-grid { grid-template-columns: 1fr; } }

.metric {
  padding: var(--s5) var(--s4);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.metric:last-child { border-right: none; }
@media (max-width: 860px) {
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(3) { border-right: 1px solid var(--border); }
  .metric:nth-child(4) { border-right: none; }
}
@media (max-width: 460px) {
  .metric { border-right: none; }
}

.metric-label {
  font-size: var(--t-xxs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
  display: block;
  margin-bottom: var(--s2);
}
.metric-value {
  font-size: 54px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  margin-bottom: var(--s1);
}
.metric-value .suf {
  font-size: 22px;
  color: var(--accent);
  margin-left: 4px;
  font-weight: 500;
}
.metric-desc {
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}
@media (max-width: 860px) { .metric-value { font-size: 42px; } }

/* ============================================================
   SECTION TEMPLATE
   ============================================================ */
section.s { padding: var(--s7) 0; }
section.s.alt { background: var(--surface); }

.s-head {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s6);
  align-items: start;
  margin-bottom: var(--s6);
}
@media (max-width: 860px) {
  .s-head { grid-template-columns: 1fr; gap: var(--s3); margin-bottom: var(--s5); }
}

/* ============================================================
   OUR EDGE — problem / approach rows
   ============================================================ */
.edge-table { border-top: 1px solid var(--border); }

.edge-row {
  display: grid;
  grid-template-columns: 48px 1fr 1.4fr;
  gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
@media (max-width: 760px) {
  .edge-row { grid-template-columns: 1fr; gap: var(--s2); }
}

.edge-n {
  font-size: 20px;
  font-weight: 500;
  color: var(--border);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.edge-problem h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 4px;
}
.edge-cap {
  font-size: var(--t-xxs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
  display: block;
  margin-bottom: var(--s1);
}
.edge-cap.green { color: var(--accent); }
.edge-approach { border-left: 2px solid var(--accent-l); padding-left: var(--s3); }
.edge-approach p {
  font-size: var(--t-body);
  color: var(--ink-2);
  margin: 0;
}

.edge-callout {
  margin-top: var(--s5);
  padding: var(--s4) var(--s5);
  background: var(--accent);
  color: var(--white);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s4);
  align-items: start;
}
@media (max-width: 760px) {
  .edge-callout { grid-template-columns: 1fr; padding: var(--s4); gap: var(--s2); }
}
.edge-callout .mark {
  font-size: 48px;
  font-weight: 300;
  line-height: 0.85;
  color: rgba(255,255,255,0.35);
}
.edge-callout p {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.95);
  margin: 0;
  font-weight: 400;
  max-width: 80ch;
}

/* ============================================================
   SERVICES — dense grid, no icons
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}
@media (max-width: 1020px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 740px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px)  { .services-grid { grid-template-columns: 1fr; } }

.svc {
  padding: var(--s4) var(--s3);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background 180ms ease;
}
/* Remove double borders at grid edges */
.svc:nth-child(4n) { border-right: none; }
@media (max-width: 1020px) { .svc:nth-child(4n) { border-right: 1px solid var(--border); } .svc:nth-child(3n) { border-right: none; } }
@media (max-width: 740px) { .svc:nth-child(3n), .svc:nth-child(4n) { border-right: 1px solid var(--border); } .svc:nth-child(2n) { border-right: none; } }
@media (max-width: 440px) { .svc { border-right: none; } }
.svc:hover { background: var(--accent-l); }

.svc-n {
  font-size: var(--t-xxs);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: block;
  margin-bottom: var(--s2);
}
.svc h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 6px;
}
.svc p {
  font-size: var(--t-sm);
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

/* ============================================================
   WHERE WE OPERATE — visual stage table
   ============================================================ */
.stages-table { border: 1px solid var(--border); }

.stage-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: var(--s3);
  padding: 16px var(--s3);
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 180ms ease;
}
.stage-row:last-child { border-bottom: none; }
.stage-row.active {
  background: var(--accent-l);
  border-left: 3px solid var(--accent);
  padding-left: calc(var(--s3) - 3px);
}
.stage-row:hover { background: var(--surface); }
.stage-row.active:hover { background: var(--accent-l); }

.sn {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--light);
  line-height: 1;
}
.stage-row.active .sn { color: var(--accent); }

.st {
  font-size: var(--t-body);
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.4;
}
.stage-row.active .st { color: var(--ink); font-weight: 500; }

.stage-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 4px 8px;
  white-space: nowrap;
}
.stage-inactive-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light);
}

/* ============================================================
   HOW WE WORK — 3 columns
   ============================================================ */
.engage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}
@media (max-width: 860px) { .engage-grid { grid-template-columns: 1fr; } }

.engage {
  padding: var(--s5) var(--s4);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: background 180ms ease;
}
.engage:last-child { border-right: none; }
@media (max-width: 860px) {
  .engage { border-right: none; border-bottom: 1px solid var(--border); }
  .engage:last-child { border-bottom: none; }
}
.engage:hover { background: var(--surface); }

.engage-n {
  font-size: var(--t-xxs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s3);
}
.engage h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: var(--s2);
}
.engage > p {
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--s4);
}
.engage-suitable {
  font-size: var(--t-xxs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  border-top: 1px solid var(--border);
  padding-top: var(--s3);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s6);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: var(--s5); } }

/* Info */
.contact-info dl { margin: 0; display: grid; gap: 0; }
.info-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border-l);
  align-items: start;
}
.info-row:first-child { border-top: 1px solid var(--border-l); }
.info-row dt {
  font-size: var(--t-xxs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
  padding-top: 2px;
}
.info-row dd {
  margin: 0;
  font-size: var(--t-body);
  color: var(--ink);
  line-height: 1.5;
}
.info-row dd a {
  border-bottom: 1px solid var(--border);
  transition: border-color 160ms, color 160ms;
}
.info-row dd a:hover { color: var(--accent); border-color: var(--accent); }

/* Form */
form.cform { display: grid; gap: var(--s3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: var(--t-xxs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: var(--t-body);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  outline: none;
  transition: border-color 160ms ease;
  appearance: none;
  -webkit-appearance: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 100px; }

.form-submit {
  padding: 14px 26px;
  background: var(--accent);
  color: var(--white);
  border: none;
  font-family: var(--font);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 180ms ease;
}
.form-submit:hover { background: var(--accent-h); }
.form-confirm {
  display: none;
  padding: var(--s3) var(--s4);
  background: var(--accent-l);
  color: var(--accent);
  font-size: var(--t-sm);
  font-weight: 500;
  border-left: 3px solid var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--s5) 0 var(--s4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: var(--s5);
  margin-bottom: var(--s5);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s4); } }
@media (max-width: 440px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-about p { font-size: var(--t-sm); color: var(--muted); margin-top: var(--s2); max-width: 34ch; }
.footer-col h4 {
  font-size: var(--t-xxs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: var(--s2);
}
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: var(--t-sm); color: var(--muted); transition: color 160ms; }
.footer-col a:hover { color: var(--accent); }

.footer-bar {
  border-top: 1px solid var(--border-l);
  padding-top: var(--s3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
}
.footer-bar span { font-size: var(--t-sm); color: var(--light); }
.footer-links { display: flex; gap: var(--s3); }
.footer-links a { font-size: var(--t-sm); color: var(--muted); transition: color 160ms; }
.footer-links a:hover { color: var(--accent); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + var(--s7)) 0 var(--s6);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin: var(--s2) 0 var(--s3); max-width: 20ch; }
.page-hero .lead { max-width: 60ch; }

.about-2col {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s6);
  align-items: start;
}
@media (max-width: 860px) { .about-2col { grid-template-columns: 1fr; gap: var(--s4); } }
.about-2col h2 { margin-bottom: var(--s3); }

.values-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--s6);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 760px) { .values-row { grid-template-columns: 1fr; } }
.val-item {
  padding: var(--s4) var(--s4) var(--s4) 0;
  padding-left: var(--s4);
  border-right: 1px solid var(--border);
}
.val-item:first-child { padding-left: 0; }
.val-item:last-child { border-right: none; }
@media (max-width: 760px) {
  .val-item { border-right: none; border-bottom: 1px solid var(--border); padding: var(--s3) 0 !important; }
  .val-item:last-child { border-bottom: none; }
}
.val-n { font-size: var(--t-xxs); font-weight: 600; letter-spacing: 0.2em; color: var(--accent); margin-bottom: var(--s2); }
.val-item h3 { font-size: 18px; margin-bottom: 6px; }
.val-item p { font-size: var(--t-sm); color: var(--muted); margin: 0; }

/* Founder */
.founder-2col {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--s6);
  align-items: start;
}
@media (max-width: 860px) { .founder-2col { grid-template-columns: 1fr; gap: var(--s5); } }

.portrait-box {
  aspect-ratio: 4/5;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Founder photograph */
.portrait-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(8%) contrast(1.02);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.portrait-box.has-photo:hover .portrait-photo { transform: scale(1.03); }
/* Soft gradient scrim so the caption stays legible over the photo */
.portrait-box.has-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(11, 21, 16, 0.78) 0%, rgba(11, 21, 16, 0) 100%);
  pointer-events: none;
}
.portrait-mono {
  font-size: 96px;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.04em;
  opacity: 0.6;
}
.portrait-name {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  z-index: 1;
  font-size: var(--t-xxs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
}
.portrait-box.has-photo .portrait-name { color: rgba(255, 255, 255, 0.92); }

.founder-role {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: var(--s3);
}
.founder-quote {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  padding: var(--s3) 0 var(--s3) var(--s3);
  border-left: 2px solid var(--accent);
  margin: var(--s3) 0;
  font-style: italic;
  font-weight: 400;
}

.creds {
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3) var(--s4);
}
@media (max-width: 500px) { .creds { grid-template-columns: 1fr; } }
.cred { font-size: var(--t-sm); color: var(--muted); line-height: 1.5; }
.cred strong { display: block; font-weight: 500; color: var(--ink); font-size: var(--t-body); margin-bottom: 2px; }

/* Career */
.career { border-top: 1px solid var(--border); }
.career-row {
  display: grid;
  grid-template-columns: 148px 1fr 1.4fr;
  gap: var(--s4);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
@media (max-width: 760px) { .career-row { grid-template-columns: 1fr; gap: 4px; } }
.career-period { font-size: var(--t-sm); font-weight: 500; color: var(--accent); letter-spacing: 0.03em; padding-top: 2px; }
.career-role-name { font-size: var(--t-body); font-weight: 500; color: var(--ink); line-height: 1.3; }
.career-org { font-size: var(--t-xxs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--light); margin-top: 4px; }
.career-desc { font-size: var(--t-sm); color: var(--muted); margin: 0; line-height: 1.55; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger via delay attr */
[data-reveal][data-delay="1"] { transition-delay: 80ms; }
[data-reveal][data-delay="2"] { transition-delay: 160ms; }
[data-reveal][data-delay="3"] { transition-delay: 240ms; }
[data-reveal][data-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .h1-word, .hero-left .lead, .hero-actions, .hero-right { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =============================================================
   v5 ADDITIONS — Who We Help, Proof, FAQ, Founder Preview,
   Sticky Mobile CTA, Landing Pages, Legal Pages, Form
   ============================================================= */

/* ---------- WHO WE HELP ---------- */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}
@media (max-width: 860px) { .help-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .help-grid { grid-template-columns: 1fr; } }

.help-card {
  padding: var(--s4) var(--s3);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: block;
  color: inherit;
  transition: background 180ms ease;
}
.help-grid .help-card:nth-child(3n) { border-right: none; }
@media (max-width: 860px) {
  .help-grid .help-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .help-grid .help-card:nth-child(2n) { border-right: none; }
}
@media (max-width: 540px) { .help-grid .help-card { border-right: none; } }
.help-card:hover { background: var(--accent-l); }
.help-card .hc-n {
  font-size: var(--t-xxs); font-weight: 600; letter-spacing: 0.18em;
  color: var(--accent); display: block; margin-bottom: var(--s2);
}
.help-card h3 { font-size: 17px; font-weight: 500; color: var(--ink); margin-bottom: 6px; line-height: 1.3; }
.help-card p { font-size: var(--t-sm); color: var(--muted); margin: 0; line-height: 1.5; }
.help-card .hc-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent); margin-top: var(--s2); opacity: 0;
  transform: translateX(-4px); transition: opacity 180ms ease, transform 180ms ease;
}
.help-card:hover .hc-link { opacity: 1; transform: translateX(0); }

/* ---------- PROOF OF EXECUTION ---------- */
.proof-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  background: var(--white);
}
@media (max-width: 860px) { .proof-panel { grid-template-columns: 1fr; } }

.proof-left {
  padding: var(--s5);
  background: var(--accent);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (max-width: 860px) { .proof-left { padding: var(--s4); } }
.proof-left .pe-label {
  font-size: var(--t-xxs); font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: var(--s3);
}
.proof-left h3 {
  font-size: 28px; font-weight: 500; color: var(--white);
  line-height: 1.2; letter-spacing: -0.02em; margin-bottom: var(--s3);
}
.proof-left .pe-loc {
  font-size: var(--t-sm); color: rgba(255,255,255,0.8); line-height: 1.5;
}
.proof-left .pe-recog {
  margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: var(--t-sm); color: rgba(255,255,255,0.92); line-height: 1.5;
}
.proof-right { padding: var(--s5); }
@media (max-width: 860px) { .proof-right { padding: var(--s4); } }
.proof-right ul { display: grid; gap: var(--s2); }
.proof-right li {
  display: grid; grid-template-columns: 20px 1fr; gap: 12px;
  font-size: var(--t-body); color: var(--ink-2); line-height: 1.5;
}
.proof-right li .tick {
  color: var(--accent); font-weight: 600; line-height: 1.4;
}
.proof-right .proof-cta { margin-top: var(--s4); }

/* ---------- FOUNDER PREVIEW (homepage) ---------- */
.fp-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--s6);
  align-items: center;
}
@media (max-width: 860px) { .fp-grid { grid-template-columns: 1fr; gap: var(--s4); } }
.fp-photo {
  aspect-ratio: 1/1; border: 1px solid var(--border); overflow: hidden;
  position: relative; background: var(--surface); max-width: 340px;
}
.fp-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: grayscale(8%) contrast(1.02);
}
.fp-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--border); border-left: 1px solid var(--border);
  margin-top: var(--s4);
}
@media (max-width: 480px) { .fp-cards { grid-template-columns: 1fr; } }
.fp-card {
  padding: var(--s3); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: var(--t-sm); color: var(--ink-2); line-height: 1.45;
}
.fp-card strong { display: block; color: var(--accent); font-size: 20px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.02em; }

/* ---------- FAQ ACCORDION ---------- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: var(--s3) 0; display: flex; justify-content: space-between;
  align-items: center; gap: var(--s3); cursor: pointer;
  font-family: var(--font); font-size: 17px; font-weight: 500; color: var(--ink);
  line-height: 1.4; letter-spacing: -0.01em;
}
.faq-q:hover { color: var(--accent); }
.faq-icon { flex-shrink: 0; width: 18px; height: 18px; position: relative; transition: transform 240ms ease; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--accent);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.faq-icon::before { width: 16px; height: 2px; }
.faq-icon::after { width: 2px; height: 16px; transition: transform 240ms ease; }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
}
.faq-a-inner { padding: 0 0 var(--s3); }
.faq-a p { font-size: var(--t-body); color: var(--muted); margin: 0; line-height: 1.6; max-width: 80ch; }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- CONTACT EXTRAS ---------- */
.contact-actions {
  display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3);
}
.btn-whatsapp { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-whatsapp:hover { background: var(--accent-h); }
.after-enquiry {
  margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--border);
}
.after-enquiry h3 { font-size: 17px; margin-bottom: var(--s3); }
.after-enquiry ol { counter-reset: step; display: grid; gap: var(--s2); }
.after-enquiry li {
  counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: 12px;
  font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; align-items: start;
}
.after-enquiry li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border: 1px solid var(--accent); color: var(--accent);
  font-size: var(--t-xs); font-weight: 600; border-radius: 50%;
}

/* ---------- STICKY MOBILE CTA BAR ---------- */
.mobile-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--white); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.mobile-cta a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 4px; font-size: 11px; font-weight: 500; color: var(--ink-2);
  border-right: 1px solid var(--border-l);
}
.mobile-cta a:last-child { border-right: none; }
.mobile-cta a svg { width: 19px; height: 19px; color: var(--accent); }
.mobile-cta a.cta-primary { background: var(--accent); color: var(--white); }
.mobile-cta a.cta-primary svg { color: var(--white); }
@media (max-width: 860px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 68px; }
}

/* ---------- LANDING / LEGAL PAGE BODY ---------- */
.lp-hero {
  padding: calc(var(--nav-h) + var(--s6)) 0 var(--s5);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.breadcrumb { font-size: var(--t-xs); color: var(--muted); margin-bottom: var(--s3); }
.breadcrumb a { color: var(--muted); border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--ink); }
.lp-hero h1 { max-width: 20ch; margin-bottom: var(--s3); }
.lp-hero .lead { max-width: 64ch; }

.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin: var(--s6) 0 var(--s3); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: var(--s4) 0 var(--s2); }
.prose p { font-size: var(--t-body); color: var(--ink-2); line-height: 1.7; margin-bottom: var(--s3); }
.prose ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s3);
  display: grid;
  gap: 12px;
}
.prose ul li {
  position: relative;
  padding-left: 22px;
  font-size: var(--t-body);
  color: var(--ink-2);
  line-height: 1.65;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.prose .lp-cta-box {
  margin-top: var(--s6); padding: var(--s5); background: var(--accent); color: var(--white);
}
.prose .lp-cta-box h2 { color: var(--white); margin-top: 0; font-size: 26px; }
.prose .lp-cta-box p { color: rgba(255,255,255,0.88); }
.prose .lp-cta-box .btn-dark { background: var(--white); color: var(--ink); border-color: var(--white); }
.prose .lp-cta-box .btn-dark:hover { background: var(--ink); color: var(--white); }

.related-links { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--border); }
.related-links h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--light); margin-bottom: var(--s2); font-weight: 600; }
.related-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.related-links ul li {
  padding: 0;
  margin: 0;
  position: static;
}
.related-links ul li::before {
  content: none;
  display: none;
}
.related-links a {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--border);
  font-size: var(--t-sm);
  color: var(--ink-2);
  transition: all 160ms ease;
  line-height: 1.4;
}
.related-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- DISCLAIMER ---------- */
.disclaimer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: var(--s4) 0; font-size: var(--t-sm); color: var(--muted); line-height: 1.6;
}
.disclaimer .container { max-width: 900px; }

/* ---------- 404 ---------- */
.err-page {
  min-height: 70vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--nav-h) + var(--s6)) var(--gutter) var(--s6);
}
.err-page .big { font-size: 96px; font-weight: 600; color: var(--accent); letter-spacing: -0.04em; line-height: 1; margin-bottom: var(--s3); }
.err-page h1 { font-size: 32px; margin-bottom: var(--s2); }
.err-page p { color: var(--muted); margin-bottom: var(--s4); max-width: 44ch; }

/* =============================================================
   v5.1 — MOBILE POLISH + ALIGNMENT FIXES
   Comprehensive responsive review across every page
   ============================================================= */

/* Make all <select> elements show a custom dropdown arrow
   (we use appearance:none for cross-browser consistency) */
.field select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 18px,
    calc(100% - 11px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

/* ---------- HERO mobile polish ---------- */
@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + var(--s5)) 0 var(--s5);
  }
  .hero-grid { gap: var(--s4); padding: 0; }
  .hero h1 { margin: var(--s2) 0; }
  .hero-actions .btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }
  .hero-actions .btn:first-child { flex-basis: 100%; }
}
@media (max-width: 420px) {
  .hero-actions .btn { flex-basis: 100% !important; }
}

/* ---------- METRICS mobile polish ---------- */
@media (max-width: 540px) {
  .metric { padding: var(--s3) 0; }
  .metric-value { font-size: 40px; }
}

/* ---------- SECTION HEAD mobile polish ---------- */
@media (max-width: 860px) {
  .s-head { gap: var(--s3); margin-bottom: var(--s4); }
  .s-head h2 { max-width: none; }
  .s-head .lead { font-size: 15px; }
}

/* ---------- USP / EDGE TABLE mobile polish ---------- */
@media (max-width: 760px) {
  .edge-row {
    grid-template-columns: 1fr;
    gap: var(--s2);
    padding: var(--s3) 0;
  }
  .edge-n {
    font-size: var(--t-xs);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.16em;
  }
  .edge-approach {
    padding-left: var(--s2);
    border-left-width: 2px;
  }
}
@media (max-width: 760px) {
  .edge-callout {
    grid-template-columns: 1fr;
    padding: var(--s3) var(--s4);
    gap: var(--s2);
    margin-top: var(--s4);
  }
  .edge-callout .mark { font-size: 36px; line-height: 0.7; }
  .edge-callout p { font-size: 16px; line-height: 1.5; }
}

/* ---------- WHO WE HELP — mobile clean borders ---------- */
@media (max-width: 540px) {
  .help-grid { border-top: none; }
  .help-card { padding: var(--s3) var(--s3); }
  .help-card h3 { font-size: 16px; }
  .help-card .hc-link {
    opacity: 1;
    transform: none;
    margin-top: var(--s2);
  }
}

/* ---------- PROOF PANEL — mobile vertical stack ---------- */
@media (max-width: 860px) {
  .proof-panel { display: block; }
  .proof-left, .proof-right { padding: var(--s4) var(--s3); }
  .proof-left h3 { font-size: 22px; }
  .proof-right li { font-size: 15px; }
}

/* ---------- SERVICES grid — mobile borders ---------- */
@media (max-width: 760px) {
  .svc { padding: var(--s3); }
  .svc h3 { font-size: 15px; }
  .svc p { font-size: 13px; }
}
@media (max-width: 440px) {
  .services-grid {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
  .svc { border-right: none !important; }
}

/* ---------- STAGES TABLE — mobile responsive ---------- */
@media (max-width: 640px) {
  .stage-row {
    grid-template-columns: 36px 1fr;
    gap: var(--s2);
    padding: var(--s2) var(--s2);
    row-gap: 6px;
  }
  .stage-badge, .stage-inactive-tag {
    grid-column: 2 / 3;
    justify-self: start;
    font-size: 10px;
    letter-spacing: 0.14em;
  }
  .st { font-size: 15px; line-height: 1.35; }
  .stage-row.active { padding-left: calc(var(--s2) - 3px); }
}

/* ---------- ENGAGEMENT CARDS — mobile polish ---------- */
@media (max-width: 860px) {
  .engage { padding: var(--s4) var(--s3); }
  .engage h3 { font-size: 19px; }
}

/* ---------- FOUNDER PREVIEW (homepage) — mobile ---------- */
@media (max-width: 860px) {
  .fp-grid { gap: var(--s4); }
  .fp-photo {
    max-width: 280px;
    margin: 0 auto;
  }
  .fp-cards { margin-top: var(--s3); }
  .fp-card { padding: var(--s2) var(--s3); font-size: 13px; }
  .fp-card strong { font-size: 18px; }
}

/* ---------- FAQ — mobile polish ---------- */
@media (max-width: 540px) {
  .faq-q {
    font-size: 15px;
    padding: var(--s3) 0;
    gap: var(--s2);
  }
  .faq-icon { width: 16px; height: 16px; }
}

/* ---------- CONTACT — mobile polish ---------- */
@media (max-width: 860px) {
  .contact-grid { gap: var(--s4); }
  .info-row { grid-template-columns: 80px 1fr; gap: var(--s2); padding: var(--s2) 0; }
  .info-row dt { font-size: 10px; letter-spacing: 0.14em; }
  .info-row dd { font-size: 15px; }
  .contact-actions .btn { flex: 1 1 calc(50% - 6px); justify-content: center; }
}
@media (max-width: 420px) {
  .info-row { grid-template-columns: 1fr; gap: 4px; }
  .contact-actions .btn { flex-basis: 100%; }
}

/* ---------- FORM — mobile polish ---------- */
@media (max-width: 520px) {
  .form-submit { width: 100%; justify-content: center; }
  .field input, .field textarea, .field select {
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: 11px 13px;
  }
}

/* ---------- AFTER-ENQUIRY steps — mobile ---------- */
@media (max-width: 540px) {
  .after-enquiry li { font-size: 14px; }
}

/* ---------- ABOUT PAGE founder section — mobile ---------- */
@media (max-width: 860px) {
  .founder-2col { gap: var(--s4); }
  .portrait-box {
    max-width: 320px;
    margin: 0 auto;
  }
  .founder-quote { font-size: 18px; padding-left: var(--s2); margin: var(--s3) 0; }
}

/* ---------- ABOUT page values + creds — mobile ---------- */
@media (max-width: 760px) and (min-width: 541px) {
  .values-row { grid-template-columns: 1fr 1fr; }
  .val-item:nth-child(2) { border-right: none; }
  .val-item:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
    border-right: none;
  }
}
@media (max-width: 540px) {
  .val-item { padding: var(--s3) 0 !important; }
  .creds { grid-template-columns: 1fr; }
}

/* ---------- CAREER TIMELINE — mobile breathing room ---------- */
@media (max-width: 760px) {
  .career-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: var(--s3) 0;
  }
  .career-period { font-size: 13px; }
  .career-desc { font-size: 14px; }
}

/* ---------- LP-HERO (landing pages) — mobile ---------- */
@media (max-width: 860px) {
  .lp-hero {
    padding: calc(var(--nav-h) + var(--s4)) 0 var(--s4);
  }
  .lp-hero h1 { max-width: none; }
}

/* ---------- PROSE (landing & legal pages) — mobile ---------- */
@media (max-width: 760px) {
  .prose h2 { font-size: 24px; margin: var(--s5) 0 var(--s2); }
  .prose h3 { font-size: 17px; }
  .prose p { font-size: 15px; }
  .prose ul li { font-size: 15px; padding-left: 20px; }
  .prose ul li::before { top: 9px; width: 5px; height: 5px; }
}

/* ---------- LP-CTA-BOX (landing pages) — mobile ---------- */
@media (max-width: 540px) {
  .prose .lp-cta-box {
    padding: var(--s4) var(--s3);
    margin-top: var(--s4);
  }
  .prose .lp-cta-box h2 { font-size: 22px; }
  .prose .lp-cta-box .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- RELATED LINKS — mobile pill wrap ---------- */
@media (max-width: 540px) {
  .related-links ul { gap: 8px; }
  .related-links a { padding: 8px 12px; font-size: 13px; }
}

/* ---------- 404 page — mobile ---------- */
@media (max-width: 540px) {
  .err-page .big { font-size: 72px; }
  .err-page h1 { font-size: 26px; }
  .err-page p { font-size: 15px; }
}

/* ---------- DISCLAIMER — mobile ---------- */
@media (max-width: 540px) {
  .disclaimer { font-size: 13px; padding: var(--s3) 0; }
}

/* ---------- FOOTER — mobile polish ---------- */
@media (max-width: 760px) {
  .footer { padding: var(--s4) 0 var(--s3); }
  .footer-grid { gap: var(--s3); margin-bottom: var(--s4); }
  .footer-bar { font-size: 12px; }
  .footer-links { gap: var(--s2); }
}

/* ---------- MOBILE CTA BAR — polish ---------- */
@media (max-width: 860px) {
  .mobile-cta {
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  }
  .mobile-cta a {
    min-height: 56px;
    padding: 8px 4px;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  .mobile-cta a svg { width: 20px; height: 20px; }
}

/* ---------- MOBILE MENU — animated open ---------- */
@media (max-width: 860px) {
  .nav-links.open { animation: menu-down 220ms cubic-bezier(0.2, 0.7, 0.3, 1) both; }
  .nav-links.open a {
    font-size: 16px;
    color: var(--ink) !important;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-l);
    width: 100%;
  }
  .nav-links.open a:last-child { border-bottom: none; }
}
@keyframes menu-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- TOUCH TARGETS — minimum 44x44 on mobile ---------- */
@media (max-width: 860px) {
  .btn { padding: 13px 22px; min-height: 44px; }
  .nav-cta { padding: 11px 18px; min-height: 40px; }
  .footer-col a, .nav-links a { padding: 4px 0; display: inline-block; }
  .info-row dd a { padding: 2px 0; }
}

/* ---------- IMAGE SAFETY ---------- */
img { max-width: 100%; height: auto; }

/* ---------- FINAL SAFEGUARDS ---------- */
.container { overflow-wrap: break-word; word-wrap: break-word; }
.lead, p, h1, h2, h3 { overflow-wrap: anywhere; }
