/* ==========================================================================
   Oldham Group — UK private investment & advisory group
   Design system: bottle-green merchant-bank palette, Fraunces + Manrope +
   IBM Plex Mono. Signature: topographic contour motif + dossier index.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Palette */
  --ink:        #0E2A24;   /* deep bottle green — primary surfaces */
  --ink-2:      #143430;   /* card-on-dark */
  --ink-3:      #1B443B;   /* mid green line on dark */
  --moss:       #1E4D3E;
  --gold:       #BF9B54;   /* old gold — accent */
  --gold-soft:  #D8BC7E;
  --gold-deep:  #9A7A3E;
  --vellum:     #F4F1E8;   /* warm ivory background */
  --paper:      #FBFAF5;   /* near-white sections */
  --line:       #D9D3C2;   /* hairlines on light */
  --line-dark:  #25433A;   /* hairlines on dark */
  --slate:      #46504A;   /* muted body text on light */
  --slate-2:    #6B746C;
  --white:      #FFFFFF;
  --on-dark:    #ECE7D8;   /* default text on dark */
  --on-dark-2:  #B7C2BA;   /* muted text on dark */

  /* Type */
  --serif: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* Scale (fluid) */
  --fs-display: clamp(2.7rem, 6vw, 4.6rem);
  --fs-h1: clamp(2.1rem, 4.4vw, 3.3rem);
  --fs-h2: clamp(1.7rem, 3vw, 2.55rem);
  --fs-h3: clamp(1.25rem, 1.8vw, 1.5rem);
  --fs-lead: clamp(1.075rem, 1.4vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-eyebrow: 0.78rem;

  /* Spacing */
  --space: clamp(1rem, 1.6vw, 1.25rem);
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --container: 1200px;
  --container-narrow: 880px;

  /* Radius / shadow / motion */
  --r-sm: 4px;
  --r: 10px;
  --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(14, 42, 36, 0.06), 0 4px 14px rgba(14, 42, 36, 0.06);
  --shadow: 0 8px 30px rgba(14, 42, 36, 0.10);
  --shadow-lg: 0 22px 60px rgba(14, 42, 36, 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.45s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--slate);
  background: var(--vellum);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 60;
}
h1 { font-size: var(--fs-h1); font-weight: 500; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { max-width: 68ch; }
p + p { margin-top: 1em; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--slate); }
strong { color: var(--ink); font-weight: 600; }
em { font-family: var(--serif); font-style: italic; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.eyebrow--center::after {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}
.eyebrow--bare::before { display: none; }
.on-dark .eyebrow, .on-dark { }
.section--dark .eyebrow { color: var(--gold-soft); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4.25rem); }
.section--paper { background: var(--paper); }
.section--vellum { background: var(--vellum); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink p { color: var(--on-dark-2); }
.section--moss { background: var(--moss); color: var(--on-dark); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { margin-top: 1rem; }
.section-head p { margin-top: 1rem; }

.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.6rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.6em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .btn-arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--ink); }
.btn--gold:hover { background: var(--gold-soft); box-shadow: 0 12px 28px rgba(191, 155, 84, 0.35); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); border-color: rgba(14, 42, 36, 0.3); }
.btn--outline:hover { border-color: var(--ink); background: rgba(14, 42, 36, 0.04); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--on-dark); border-color: rgba(255,255,255,0.28); }
.btn--ghost-light:hover { border-color: var(--gold-soft); color: var(--white); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); }
.btn--light:hover { background: var(--vellum); }
.btn--sm { padding: 0.7em 1.1em; font-size: 0.85rem; }
.btn--block { display: flex; width: 100%; }

.btn--whatsapp { --btn-bg: #25D366; --btn-fg: #04210f; font-weight: 700; }
.btn--whatsapp:hover { background: #2bec74; box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35); }

.callout-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* text link */
.link-underline {
  color: var(--ink);
  font-weight: 600;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); }
.link-underline .btn-arrow { transition: transform var(--dur) var(--ease); }
.link-underline:hover .btn-arrow { transform: translateX(3px); }
.on-dark .link-underline { color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 232, 0);
  backdrop-filter: blur(0);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease), padding var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(244, 241, 232, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(14, 42, 36, 0.06);
}
/* On dark hero pages we keep the header readable before scroll */
.site-header.on-dark-header:not(.is-scrolled) { background: transparent; }
.site-header.on-dark-header:not(.is-scrolled) .brand-name,
.site-header.on-dark-header:not(.is-scrolled) .nav-link,
.site-header.on-dark-header:not(.is-scrolled) .header-phone,
.site-header.on-dark-header:not(.is-scrolled) .header-phone a { color: var(--white); }
.site-header.on-dark-header:not(.is-scrolled) .brand-mark { border-color: rgba(255,255,255,0.4); color: var(--white); }
.site-header.on-dark-header:not(.is-scrolled) .nav-link:hover { color: var(--gold-soft); }
.site-header.on-dark-header:not(.is-scrolled) .nav-toggle { color: var(--white); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.05rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: block;
  margin-top: 3px;
}

.primary-nav { display: flex; align-items: center; gap: 0.35rem; }
.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.5em 0.85em;
  border-radius: 6px;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.85em; right: 0.85em; bottom: 0.25em;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 0.9rem; }
.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}
.header-phone .label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.header-phone a {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
}
.site-header.on-dark-header:not(.is-scrolled) .header-phone .label { color: var(--gold-soft); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  background: var(--paper);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--ink);
  color: var(--on-dark);
  padding: 6rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
  overflow-y: auto;
}
.mobile-nav.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.5s var(--ease);
}
.mobile-nav a.mobile-link {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--white);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav a.mobile-link span.idx {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--gold-soft);
}
.mobile-nav .mobile-foot {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav .mobile-phone {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--gold-soft);
}
.mobile-nav .callout-actions { margin-top: 0.5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  padding-top: clamp(7rem, 13vw, 10rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}
.hero::before {
  /* topographic contour signature texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='700' viewBox='0 0 900 700'><g fill='none' stroke='%23BF9B54' stroke-width='0.6' opacity='0.16'><path d='M-50,420 C120,340 260,520 460,440 C620,376 720,470 950,360'/><path d='M-50,470 C120,392 270,560 470,486 C620,426 740,510 950,408'/><path d='M-50,520 C120,448 280,600 480,532 C620,478 760,552 950,460'/><path d='M-50,370 C110,300 250,470 450,396 C610,338 705,424 950,316'/><path d='M-50,320 C100,256 240,420 440,354 C600,300 695,380 950,276'/><path d='M-50,270 C90,214 230,372 430,312 C590,262 690,338 950,236'/></g></svg>");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: 0.9;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 12% 18%, rgba(14,42,36,0.2) 0%, rgba(14,42,36,0.75) 55%, var(--ink) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-eyebrow { color: var(--gold-soft); }
.hero h1 {
  color: var(--white);
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 1.04;
  margin-top: 1.4rem;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}
.hero h1 .accent { color: var(--gold-soft); font-style: italic; font-weight: 400; }
.hero-lead {
  margin-top: 1.6rem;
  color: var(--on-dark-2);
  font-size: var(--fs-lead);
  max-width: 54ch;
  line-height: 1.65;
}
.hero .callout-actions { margin-top: 2.2rem; }
.hero-meta {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
}
.hero-meta div { min-width: 120px; }
.hero-meta .k {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.hero-meta .v {
  font-family: var(--serif);
  color: var(--white);
  font-size: 1.05rem;
  margin-top: 0.2rem;
}

/* Dossier card (signature component) */
.dossier {
  background: var(--vellum);
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 2.4vw, 2.2rem);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.dossier::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line);
  border-radius: calc(var(--r-lg) - 8px);
  pointer-events: none;
}
.dossier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.dossier-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.dossier-seal {
  width: 46px; height: 46px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold-deep);
  font-family: var(--serif);
  flex-shrink: 0;
}
.dossier-seal svg { width: 26px; height: 26px; }
.dossier-body { position: relative; padding-top: 1.1rem; }
.dossier-body h3 {
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.dossier-body p { font-size: 0.95rem; line-height: 1.6; }
.dossier-list { margin-top: 1.1rem; }
.dossier-list li {
  display: flex;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-top: 1px dashed var(--line);
  font-size: 0.92rem;
  align-items: baseline;
}
.dossier-list li .k {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  min-width: 84px;
  flex-shrink: 0;
}
.dossier-list li .v { color: var(--slate); }
.dossier-list li .v strong { color: var(--ink); }

/* ---------- Trust strip ---------- */
.trust-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
}
.trust-strip .trust-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.trust-strip .trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.2rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--ink);
}
.trust-item svg { width: 20px; height: 20px; color: var(--gold-deep); flex-shrink: 0; }

/* ---------- Card grid ---------- */
.grid { display: grid; gap: clamp(1.2rem, 2.4vw, 1.8rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.4rem, 2vw, 1.9rem);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  position: relative;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(191, 155, 84, 0.12);
  color: var(--gold-deep);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.55rem; }
.card p { font-size: 0.97rem; }
.card .card-link { margin-top: 1.1rem; display: inline-flex; }

/* numbered card with mono index */
.card--indexed { counter-increment: dossier; }
.card-index {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 0.9rem;
}

/* ---------- Dossier index list (capabilities) ---------- */
.dossier-index { counter-reset: item; border-top: 1px solid var(--line); }
.dossier-row {
  display: grid;
  grid-template-columns: 64px 1.1fr 1.4fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.6rem, 2.6vw, 2.2rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.dossier-row:hover { background: rgba(191,155,84,0.05); padding-inline: 1rem; }
.dossier-row .num {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  padding-top: 0.35rem;
}
.dossier-row h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.dossier-row .desc { font-size: 0.97rem; color: var(--slate); }
.dossier-row .tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem;
}
.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--moss);
  background: rgba(30, 77, 62, 0.08);
  padding: 0.3em 0.7em;
  border-radius: 999px;
}
.dossier-row .row-cta {
  align-self: center;
  white-space: nowrap;
}

/* ---------- Sectors ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sector {
  background: var(--paper);
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
  transition: background var(--dur) var(--ease);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
}
.sector:hover { background: var(--vellum); }
.sector-num {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
}
.sector h3 { font-size: 1.18rem; }
.sector p { font-size: 0.9rem; color: var(--slate); }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 1.5rem;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  position: absolute;
  top: 0; left: 0;
}
.step::after {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: 3rem; right: 0;
  height: 1px;
  background: var(--line);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.18rem; margin-top: 0.5rem; margin-bottom: 0.45rem; }
.step p { font-size: 0.93rem; }

/* ---------- Value tiles ---------- */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--r); overflow: hidden; }
.value {
  background: var(--ink-2);
  padding: clamp(1.5rem, 2.2vw, 2rem);
}
.value h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.6rem;}
.value h3 svg { width: 22px; height: 22px; color: var(--gold-soft); }
.value p { font-size: 0.95rem; color: var(--on-dark-2); }

/* ---------- Stats / principle band ---------- */
.principle {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.principle .quote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  color: var(--white);
  letter-spacing: -0.01em;
}
.principle .quote em { color: var(--gold-soft); }
.principle .attr {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-top: 1.4rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='400' viewBox='0 0 900 400'><g fill='none' stroke='%23BF9B54' stroke-width='0.6' opacity='0.14'><path d='M-50,250 C150,170 320,300 520,210 C680,140 800,250 950,180'/><path d='M-50,300 C150,220 320,350 520,260 C680,190 800,300 950,230'/><path d='M-50,200 C150,120 320,250 520,160 C680,90 800,200 950,130'/></g></svg>");
  background-size: cover;
  opacity: 0.8;
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 2; }
.cta-inner {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 2rem;
  align-items: center;
}
.cta-inner h2 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-inner p { color: var(--on-dark-2); margin-top: 0.8rem; max-width: 60ch; }
.cta-actions-vertical { display: flex; flex-direction: column; gap: 0.7rem; min-width: 230px; }

/* ---------- FAQ accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion.on-dark { border-top-color: var(--line-dark); }
.acc-item { border-bottom: 1px solid var(--line); }
.accordion.on-dark .acc-item { border-bottom-color: var(--line-dark); }
.acc-trigger {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.1rem, 2vw, 1.5rem) 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.3;
}
.accordion.on-dark .acc-trigger { color: var(--white); }
.acc-trigger:hover { color: var(--gold-deep); }
.acc-icon {
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--gold-deep);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
  position: relative;
}
.accordion.on-dark .acc-icon { border-color: var(--line-dark); color: var(--gold-soft); }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute;
  background: currentColor; border-radius: 2px;
}
.acc-icon::before { width: 12px; height: 1.5px; }
.acc-icon::after { width: 1.5px; height: 12px; transition: transform var(--dur) var(--ease); }
.acc-item.is-open .acc-icon { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: rotate(90deg); }
.acc-item.is-open .acc-icon::after { transform: scaleY(0); }
.acc-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s var(--ease);
}
.acc-panel-inner {
  padding-bottom: clamp(1.1rem, 2vw, 1.6rem);
  padding-right: 3rem;
  color: var(--slate);
  font-size: 1rem;
}
.accordion.on-dark .acc-panel-inner { color: var(--on-dark-2); }

/* ---------- Two-column prose ---------- */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.split--center { align-items: center; }
.split .split-aside { position: sticky; top: 100px; }
.aside-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.4rem, 2vw, 1.9rem);
}
.aside-card h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }
.aside-card ul li {
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.93rem;
  display: flex; gap: 0.6rem; align-items: baseline;
}
.aside-card ul li:last-child { border-bottom: 0; }
.aside-card ul li::before { content: "—"; color: var(--gold-deep); }

.prose p { margin-bottom: 1.1rem; }
.prose h3 { margin-top: 2.2rem; margin-bottom: 0.7rem; }
.prose ul.bullets { display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0; }
.prose ul.bullets li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.99rem;
}
.prose ul.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 7px; height: 7px;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.field input, .field textarea, .field select {
  background: var(--vellum);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85em 1em;
  font-size: 0.97rem;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  width: 100%;
  font-family: var(--sans);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%239A7A3E' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right 1em center; padding-right: 2.4em; }
.form-note { font-size: 0.82rem; color: var(--slate-2); margin-top: 1rem; }

/* ---------- Contact info blocks ---------- */
.info-card {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  height: 100%;
}
.info-card h3 { color: var(--white); font-size: 1.1rem; display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.info-card h3 svg { width: 20px; height: 20px; color: var(--gold-soft); }
.info-card p, .info-card a { color: var(--on-dark-2); font-size: 0.95rem; }
.info-card a:hover { color: var(--gold-soft); }
.info-card .big {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--white);
  display: block;
  margin-top: 0.2rem;
}
.map-block {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  position: relative;
  overflow: hidden;
}
.map-block::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.5;
  pointer-events: none;
}
.map-block > * { position: relative; z-index: 1; }
.map-pin {
  width: 18px; height: 18px;
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(191,155,84,0.2);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--ink);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
  padding-top: clamp(6.5rem, 11vw, 8.5rem);
  padding-bottom: clamp(2.8rem, 5vw, 4rem);
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='500' viewBox='0 0 900 500'><g fill='none' stroke='%23BF9B54' stroke-width='0.6' opacity='0.14'><path d='M-50,180 C140,110 320,230 510,150 C680,80 800,180 950,120'/><path d='M-50,240 C140,170 320,290 510,210 C680,140 800,240 950,180'/><path d='M-50,300 C140,230 320,350 510,270 C680,200 800,300 950,240'/></g></svg>");
  background-size: cover;
  opacity: 0.9;
  pointer-events: none;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,42,36,0.1), rgba(14,42,36,0.85));
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: var(--fs-h1); max-width: 18ch; }
.page-hero p { color: var(--on-dark-2); margin-top: 1rem; max-width: 60ch; font-size: var(--fs-lead); }
.breadcrumbs {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.2rem;
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs .sep { opacity: 0.5; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-2);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line-dark);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .brand { margin-bottom: 1.2rem; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { font-size: 0.92rem; max-width: 36ch; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a, .footer-col li { font-size: 0.92rem; color: var(--on-dark-2); transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-affil {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  margin-top: 0.6rem;
}
.footer-affil svg { width: 22px; height: 22px; color: var(--gold-soft); flex-shrink: 0; margin-top: 2px; }
.footer-affil .t { font-family: var(--serif); color: var(--white); font-size: 0.98rem; display:block; margin-bottom: 0.2rem; }
.footer-affil .d { font-size: 0.82rem; color: var(--on-dark-2); }
.footer-affil a { color: var(--gold-soft); }
.footer-affil a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.6rem;
  font-size: 0.82rem;
}
.footer-bottom .legal-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem; top: -120%;
  background: var(--gold);
  color: var(--ink);
  padding: 0.7em 1.2em;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 200;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.6rem; }
.mt-2 { margin-top: 1.4rem; }
.mt-3 { margin-top: 2.2rem; }
.mb-2 { margin-bottom: 1.4rem; }
.text-gold { color: var(--gold-deep); }
.bg-vellum { background: var(--vellum); }
.divider-rule { height: 1px; background: var(--line); border: 0; }
.hidden { display: none !important; }

/* ---------- Banners / notes ---------- */
.note-band {
  background: rgba(191, 155, 84, 0.10);
  border: 1px solid rgba(191, 155, 84, 0.3);
  border-radius: var(--r);
  padding: 1rem 1.3rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--slate);
}
.note-band svg { width: 20px; height: 20px; color: var(--gold-deep); flex-shrink: 0; margin-top: 2px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .dossier { max-width: 520px; }
  .principle { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions-vertical { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .dossier-row { grid-template-columns: 50px 1fr; }
  .dossier-row .desc, .dossier-row .row-cta { grid-column: 2; }
  .dossier-row .row-cta { margin-top: 0.4rem; }
}

@media (max-width: 860px) {
  .primary-nav, .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .split { grid-template-columns: 1fr; }
  .split .split-aside { position: static; }
}

@media (max-width: 620px) {
  :root { --section-y: clamp(2.8rem, 9vw, 3.5rem); }
  .header-call { display: none; }
  .grid--2, .grid--3, .grid--4, .grid--auto { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-meta { gap: 1.2rem; }
  .brand-sub { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .callout-actions { flex-direction: column; align-items: stretch; }
  .callout-actions .btn { width: 100%; }
  .dossier-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .dossier-row .num { padding-top: 0; }
}

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