/* ==========================================================================
   WeGrow Capital Holdings — main stylesheet
   Brand tokens sampled from the crest logo.
   ========================================================================== */

/* ---------- fonts (self-hosted, variable, latin subset; SIL OFL — see assets/fonts/LICENSES.txt) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/cinzel-latin-wght-normal.woff2") format("woff2"); }

:root {
  --navy: #03203c;
  --navy-deep: #021629;
  --navy-soft: #0b2f52;
  --gold: #bc8934;
  --gold-light: #e3b75b;
  --gold-text: #8c6420;        /* gold dark enough for text on white (AA) */
  --ivory: #faf7f0;
  --ivory-deep: #f2ece0;
  --ink: #1e2430;
  --muted: #5a6272;
  --line: #e4ddcf;
  --white: #ffffff;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-caps: "Cinzel", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgb(3 32 60 / .06), 0 8px 24px rgb(3 32 60 / .08);
  --shadow-lg: 0 2px 4px rgb(3 32 60 / .06), 0 20px 48px rgb(3 32 60 / .14);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-text); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.12; font-weight: 600; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold-light); color: var(--navy-deep); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }

/* ---------- typographic devices ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-caps); font-size: .78rem; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold-text);
  margin: 0 0 18px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .75; }
.eyebrow-left::after { display: none; }
.eyebrow-light { color: var(--gold-light); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); line-height: 1.6; }
.text-center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head .lead { margin-bottom: 0; }
.rule-gold { width: 64px; height: 2px; background: var(--gold); border: 0; margin: 24px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 24px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: .95rem; font-weight: 600; letter-spacing: .02em;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 1rem; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy-deep); box-shadow: 0 8px 20px rgb(188 137 52 / .3); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); color: var(--white); }
.btn-outline-gold { border-color: var(--gold); color: var(--navy); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy-deep); }
.btn-outline-light { border-color: rgb(255 255 255 / .45); color: var(--white); }
.btn-outline-light:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: rgb(255 255 255 / .3); }
.btn-ghost:hover { border-color: var(--ivory); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; color: var(--navy); text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; color: var(--gold); transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--gold-text); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(255 255 255 / .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgb(3 32 60 / .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-crest { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-caps); font-weight: 600; font-size: 1.32rem; letter-spacing: .12em; color: var(--navy); text-transform: uppercase; }
.brand-sub { font-family: var(--font-caps); font-size: .6rem; letter-spacing: .34em; color: var(--gold-text); text-transform: uppercase; margin-top: 6px; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) {
  position: relative; display: block; padding: 10px 14px;
  font-size: .93rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.main-nav a:not(.btn):hover::after, .main-nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.main-nav a[aria-current="page"]:not(.btn) { color: var(--navy); font-weight: 600; }
.nav-cta { margin-left: 12px; }
.nav-cta .btn { min-height: 42px; padding: 9px 20px; }

.nav-toggle { display: none; width: 46px; height: 46px; padding: 12px 10px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: flex; position: relative; z-index: 120; }
  .nav-toggle[aria-expanded="true"] span { background: var(--gold-light); }
  .main-nav {
    position: fixed; inset: 0; z-index: 110;
    background: var(--navy-deep) url("../img/crest.svg") no-repeat right -120px bottom -80px / 420px auto;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility .3s;
    overflow-y: auto;
  }
  .main-nav::before { content: ""; position: absolute; inset: 0; background: rgb(2 22 41 / .92); z-index: -1; }
  .main-nav.is-open { visibility: visible; opacity: 1; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a:not(.btn) { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--ivory); padding: 12px 0; border-bottom: 1px solid rgb(255 255 255 / .08); }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav a[aria-current="page"]:not(.btn) { color: var(--gold-light); }
  .nav-cta { margin: 28px 0 0; }
  .nav-cta .btn { width: 100%; min-height: 52px; color: var(--ivory); }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; }
  body.nav-open .brand-name { color: var(--ivory); }
  body.nav-open .brand { position: relative; z-index: 120; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-ivory { background: var(--ivory); }
.section-navy { background: var(--navy); color: rgb(255 255 255 / .82); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .eyebrow { color: var(--gold-light); }
.section-navy .lead { color: rgb(255 255 255 / .72); }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1200px 600px at 78% 30%, rgb(227 183 91 / .12), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgb(11 47 82 / .9), transparent 70%),
    var(--navy);
  color: rgb(255 255 255 / .82);
  padding-block: clamp(72px, 10vw, 128px) clamp(80px, 11vw, 140px);
}
.hero::after { /* fine gold baseline */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
  opacity: .85;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { color: var(--white); font-weight: 600; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--gold-light); font-weight: 500; }
.hero .lead { color: rgb(255 255 255 / .74); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgb(255 255 255 / .12); list-style: none; }
.hero-meta li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: rgb(255 255 255 / .7); }
.hero-meta .icon { color: var(--gold-light); width: 18px; height: 18px; }

.hero-emblem { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 460px; margin-inline: auto; width: 100%; }
.hero-emblem .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgb(227 183 91 / .22); }
.hero-emblem .ring-2 { inset: 9%; border-style: dashed; border-color: rgb(227 183 91 / .16); animation: spin 120s linear infinite; }
.hero-emblem .ring-3 { inset: 20%; background: radial-gradient(circle, rgb(250 247 240 / .97) 0 62%, rgb(250 247 240 / .0) 63%); border: 0; }
.hero-emblem img { position: relative; width: 52%; filter: drop-shadow(0 18px 30px rgb(0 0 0 / .25)); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-watermark { position: absolute; z-index: -1; right: -6%; top: 50%; width: 560px; transform: translateY(-50%); opacity: .04; filter: grayscale(1) brightness(3); pointer-events: none; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(900px 400px at 85% 0%, rgb(227 183 91 / .12), transparent 60%), var(--navy);
  color: rgb(255 255 255 / .78);
  padding-block: clamp(56px, 8vw, 96px);
}
.page-hero::before {
  content: ""; position: absolute; z-index: -1; right: -60px; top: 50%; width: 360px; height: 400px; transform: translateY(-50%);
  background: url("../img/crest.svg") no-repeat center / contain; opacity: .06; filter: grayscale(1) brightness(3);
}
.page-hero h1 { color: var(--white); max-width: 820px; }
.page-hero .lead { color: rgb(255 255 255 / .74); max-width: 680px; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--gold-light); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; font-size: .82rem; color: rgb(255 255 255 / .55); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--gold); }
.breadcrumb a { color: rgb(255 255 255 / .75); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- intro split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-wide { grid-template-columns: 1.1fr .9fr; }
.pillars { list-style: none; display: grid; gap: 18px; }
.pillar { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pillar h3 { font-size: 1.35rem; margin-bottom: 4px; }
.pillar p { margin: 0; color: var(--muted); font-size: .96rem; }
.icon-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--gold-light); }
.icon-badge .icon { width: 24px; height: 24px; }

/* ---------- service cards ---------- */
.card-grid { display: grid; gap: 24px; }
.card-grid-4 { display: flex; flex-wrap: wrap; justify-content: center; }
.card-grid-4 > * { flex: 0 1 calc((100% - 72px) / 4); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.service-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 32px 28px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; background: var(--gold); transform: scaleX(.18); transform-origin: left; transition: transform .4s var(--ease); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon { width: 40px; height: 40px; color: var(--gold); }
.service-card h3 { margin: 6px 0 0; }
.service-card p { color: var(--muted); font-size: .97rem; margin: 0; flex: 1; }
.service-card .link-arrow { margin-top: 8px; }

/* ---------- services detail ---------- */
.service-detail { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 72px); padding-block: clamp(44px, 6vw, 72px); border-top: 1px solid var(--line); }
.service-detail:first-child { border-top: 0; padding-top: 0; }
.service-detail-head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.service-num { font-family: var(--font-caps); font-size: .8rem; letter-spacing: .3em; color: var(--gold-text); }
.service-detail-head h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-top: 10px; }
.service-detail-head .icon-badge { width: 64px; height: 64px; margin-bottom: 18px; }
.service-detail-head .icon-badge .icon { width: 30px; height: 30px; }
.service-detail-body .summary { font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.35; color: var(--navy); font-weight: 500; margin-bottom: 20px; }
.service-audience { display: flex; gap: 12px; align-items: flex-start; margin: 24px 0; padding: 18px 20px; background: var(--ivory); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; font-size: .96rem; }
.service-audience strong { color: var(--navy); }
.disclaimer { font-size: .84rem; color: var(--muted); font-style: italic; margin-top: 18px; }

.process { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process li { counter-increment: step; position: relative; padding: 0 20px; text-align: center; }
.process li::before {
  content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 20px;
  border-radius: 50%; border: 1.5px solid var(--gold); background: var(--navy); color: var(--gold-light);
  font-family: var(--font-caps); font-size: 1rem; letter-spacing: .08em; position: relative; z-index: 1;
}
.process li:not(:last-child)::after { content: ""; position: absolute; top: 30px; left: calc(50% + 40px); right: calc(-50% + 40px); height: 1px; background: rgb(227 183 91 / .35); }
.process h3 { font-size: 1.35rem; margin-bottom: 8px; }
.process p { font-size: .95rem; margin: 0; }

/* ---------- company cards ---------- */
.company-feature {
  display: grid; grid-template-columns: 380px 1fr; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.company-visual {
  position: relative; display: grid; place-items: center; padding: 48px 32px; min-height: 280px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--ivory); text-align: center;
}
.company-visual.has-logo { background: var(--navy); }
/* "lighten" lets the logo's own dark background melt into the panel, so no rectangle shows */
.company-visual.has-logo img { filter: none; mix-blend-mode: lighten; }
.company-visual::before { content: ""; position: absolute; inset: 16px; border: 1px solid rgb(227 183 91 / .3); border-radius: 6px; }
.company-visual img { display: block; width: min(100%, 520px); max-height: 240px; height: auto; object-fit: contain; position: relative; z-index: 1; transform: scale(1.12); transform-origin: center; filter: drop-shadow(0 8px 18px rgb(0 0 0 / .24)); }
.company-mark { display: grid; place-items: center; gap: 12px; }
.company-mark .icon { width: 56px; height: 56px; color: var(--gold-light); }
.company-mark strong { font-family: var(--font-caps); font-size: 1.15rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); font-weight: 600; }
.company-mark span { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--gold-light); }
.company-body { padding: clamp(28px, 4vw, 44px); }
.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--ivory-deep); color: var(--gold-text); font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.company-body h3 { font-size: clamp(1.8rem, 2.6vw, 2.2rem); }
.company-body p { color: var(--muted); }
.company-body .company-tagline { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.35; color: var(--gold-text); margin-top: -6px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--navy); }
.chips .icon { width: 15px; height: 15px; color: var(--gold); }
.company-future { margin-top: 24px; padding: 28px; border: 1.5px dashed var(--line); border-radius: var(--radius-lg); text-align: center; color: var(--muted); }
.company-future h3 { font-size: 1.4rem; margin-bottom: 6px; }

/* ---------- values strip ---------- */
.values { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.values li { padding: 8px 28px; text-align: center; }
.values li + li { border-left: 1px solid rgb(227 183 91 / .25); }
.values .icon { width: 40px; height: 40px; color: var(--gold-light); margin: 0 auto 16px; }
.values h3 { font-size: 1.45rem; margin-bottom: 8px; }
.values p { font-size: .95rem; margin: 0; color: rgb(255 255 255 / .68); }
.section-ivory .values li + li { border-left-color: var(--line); }
.section-ivory .values .icon { color: var(--gold); }
.section-ivory .values p { color: var(--muted); }

/* ---------- leadership ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; max-width: 920px; margin-inline: auto; }
.team-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.team-photo { position: relative; aspect-ratio: 4 / 4.2; background: linear-gradient(160deg, var(--navy-soft), var(--navy-deep)); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-photo::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgb(227 183 91 / .0); border-radius: 4px; transition: border-color .4s; }
.team-card:hover .team-photo::after { border-color: rgb(227 183 91 / .7); }
.team-initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-caps); font-size: 3.6rem; letter-spacing: .1em; color: var(--gold-light); }
.team-body { padding: 24px 26px 28px; }
.team-body h3, .team-body .team-name { font-size: 1.6rem; margin-bottom: 2px; }
.team-title { font-family: var(--font-caps); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 14px; }
.team-body p { font-size: .95rem; color: var(--muted); margin-bottom: 12px; }
.team-body .link-arrow { font-size: .88rem; }

/* ---------- news ---------- */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: inherit; }
.post-cover { aspect-ratio: 16 / 9; background: var(--navy) url("../img/crest.svg") no-repeat center / 90px auto; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 24px 26px 28px; }
.post-date { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.post-card h3 { font-size: 1.5rem; margin: 10px 0; }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.prose { font-size: 1.06rem; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.45rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius-lg); margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--navy); background: var(--ivory); }
.table-scroll { overflow-x: auto; }

/* ---------- about ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--navy); color: rgb(255 255 255 / .78); position: relative; overflow: hidden; }
.mv-card:nth-child(2) { background: var(--ivory); color: var(--ink); border: 1px solid var(--line); }
.mv-card h3 { color: var(--white); font-size: 1.9rem; }
.mv-card:nth-child(2) h3 { color: var(--navy); }
.mv-card .icon { width: 36px; height: 36px; color: var(--gold-light); margin-bottom: 18px; }
.mv-card:nth-child(2) .icon { color: var(--gold); }
.mv-card p { margin: 0; font-size: 1.05rem; }
.structure { display: grid; justify-items: center; gap: 0; max-width: 1140px; margin-inline: auto; }
.structure-node { padding: 18px 28px; border-radius: var(--radius-lg); text-align: center; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.structure-node strong { display: block; font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; color: var(--navy); margin-bottom: 6px; }
.structure-node span { display: block; font-size: .85rem; line-height: 1.5; color: var(--muted); }
.structure-root { background: var(--navy); border-color: var(--navy); }
.structure-root strong { color: var(--white); }
.structure-root span { color: var(--gold-light); }
.structure-stem { width: 2px; height: 36px; background: var(--gold); }
/* Tree connectors: each child draws its own drop line and its share of the
   horizontal bar, so lines meet every card centre exactly, whatever the count or gap. */
.structure-row { display: flex; justify-content: center; width: 100%; }
.structure-row > div { position: relative; flex: 1 1 0; padding: 36px 9px 0; }
.structure-row > div::before { content: ""; position: absolute; top: 0; left: calc(50% - 1px); width: 2px; height: 36px; background: var(--gold); }
.structure-row > div::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold); }
.structure-row > div:first-child::after { left: calc(50% - 1px); }
.structure-row > div:last-child::after { right: calc(50% - 1px); }
.structure-row > div:only-child::after { display: none; }
.structure-row .structure-node { height: 100%; padding: 18px 14px; }
.structure-row .structure-node strong { font-size: 1.28rem; }
.structure-node.is-future { border-style: dashed; box-shadow: none; background: transparent; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.form-card { padding: clamp(24px, 4vw, 44px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .88rem; font-weight: 600; color: var(--navy); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid #cfc6b4; border-radius: var(--radius); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bc8934' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; padding-right: 42px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgb(188 137 52 / .18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.field-error { font-size: .82rem; color: #b3261e; min-height: 0; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .9rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--ivory); border-left: 3px solid var(--gold); font-size: .93rem; }
.notice .icon { color: var(--gold); margin-top: 2px; }
.notice[hidden] { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form-actions small { color: var(--muted); }
.form-status { padding: 16px 18px; border-radius: var(--radius); font-size: .95rem; margin-top: 18px; }
.form-status.is-error { background: #fbeceb; color: #8c1d18; }
.form-success { text-align: center; padding: 24px 8px; }
.form-success .icon-badge { width: 72px; height: 72px; margin: 0 auto 20px; }
.form-success .icon-badge .icon { width: 34px; height: 34px; }

.contact-aside { display: grid; gap: 20px; }
.contact-list { list-style: none; display: grid; gap: 4px; padding: 28px; background: var(--navy); color: rgb(255 255 255 / .82); border-radius: var(--radius-lg); }
.contact-list h2 { color: var(--white); font-size: 1.6rem; margin-bottom: 12px; }
.contact-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgb(255 255 255 / .08); font-size: .95rem; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { color: var(--gold-light); width: 20px; height: 20px; margin-top: 2px; }
.contact-list a { color: var(--white); text-decoration: none; }
.contact-list a:hover { color: var(--gold-light); }
.contact-list small { display: block; color: rgb(255 255 255 / .55); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--ivory); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4) contrast(1.05); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-deep); color: rgb(255 255 255 / .75); padding-block: clamp(56px, 7vw, 84px); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: -80px; bottom: -120px; width: 380px; height: 420px; background: url("../img/crest.svg") no-repeat center / contain; opacity: .05; filter: grayscale(1) brightness(3); }
.cta-band-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 10px; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.cta-band p { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: #01101f; color: rgb(255 255 255 / .62); font-size: .93rem; padding-top: clamp(56px, 7vw, 80px); border-top: 1px solid rgb(227 183 91 / .2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img:first-child { width: 64px; margin-bottom: 16px; }
.footer-wordmark { width: 210px; margin-bottom: 18px; }
.footer-brand p { max-width: 300px; }
.footer-col h3 { font-family: var(--font-caps); font-size: .78rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a, .link-btn { color: rgb(255 255 255 / .72); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; text-align: left; }
.footer-col a:hover, .link-btn:hover { color: var(--gold-light); }
.footer-contact li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.footer-contact .icon { color: var(--gold); margin-top: 3px; }
.footer-contact a { word-break: break-word; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; border-top: 1px solid rgb(255 255 255 / .08); font-size: .8rem; color: rgb(255 255 255 / .45); }
.footer-bottom p { margin: 0; }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; z-index: 150; left: 16px; right: 16px; bottom: 16px; max-width: 560px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px 20px;
  background: var(--navy-deep); color: rgb(255 255 255 / .8); border: 1px solid rgb(227 183 91 / .3); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  font-size: .9rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 260px; }
.cookie-banner a { color: var(--gold-light); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { min-height: 40px; padding: 8px 18px; }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found .code { font-family: var(--font-caps); font-size: clamp(4rem, 12vw, 8rem); color: var(--gold); line-height: 1; letter-spacing: .1em; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s !important; }
.reveal-d2 { transition-delay: .16s !important; }
.reveal-d3 { transition-delay: .24s !important; }

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

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .card-grid-4 > * { flex-basis: calc((100% - 24px) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .split-wide, .contact-grid { grid-template-columns: 1fr; }
  .hero-emblem { max-width: 260px; order: -1; }
  .hero { text-align: left; }
  .service-detail { grid-template-columns: 1fr; gap: 18px; }
  .service-detail-head { position: static; display: flex; align-items: center; gap: 18px; }
  .service-detail-head .icon-badge { margin: 0; flex: none; }
  .service-detail-head h2 { margin: 4px 0 0; }
  .company-feature { grid-template-columns: 1fr; }
  .company-visual { min-height: 220px; }
  .values { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .values li:nth-child(3) { border-left: 0; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .process li:nth-child(2)::after { display: none; }
  .card-grid-3 { grid-template-columns: 1fr 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --header-h: 68px; }
  .brand-crest { width: 38px; }
  .brand-name { font-size: 1.1rem; }
  .brand-sub { font-size: .52rem; letter-spacing: .28em; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .card-grid-4 > * { flex-basis: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .values li + li { border-left: 0; border-top: 1px solid rgb(227 183 91 / .2); padding-top: 32px; }
  .section-ivory .values li + li { border-top-color: var(--line); }
  .process { grid-template-columns: 1fr; }
  .process li::after { display: none !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  /* Mobile: a left-hand spine with a branch to each card */
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-meta { gap: 12px; flex-direction: column; }
  .cta-band-inner .btn { width: 100%; }
  .eyebrow { letter-spacing: .24em; gap: 10px; }
  .eyebrow::before, .eyebrow::after { width: 22px; }
}

/* Leadership contact links */
.team-body .team-contact { margin-bottom: 7px; overflow-wrap: anywhere; }
.team-body .team-contact a { color: var(--navy); text-decoration: none; }
.team-body .team-contact a:hover { color: var(--gold-text); text-decoration: underline; }

/* Structure chart: below 900px the five boxes switch to a left-hand spine with a branch to each */
@media (max-width: 900px) {
  .structure { justify-items: stretch; }
  .structure-stem { margin-left: 15px; height: 20px; }
  .structure-row { flex-direction: column; padding-left: 38px; }
  .structure-row > div { padding: 16px 0 0; }
  .structure-row > div::after { top: 0; bottom: 0; left: -23px; right: auto; width: 2px; height: auto; }
  .structure-row > div:first-child::after { left: -23px; }
  .structure-row > div:last-child::after { right: auto; bottom: calc(50% - 9px); }
  .structure-row > div::before { top: calc(50% + 8px - 1px); left: -23px; width: 23px; height: 2px; }
  .structure-row > div:only-child::after { display: block; }
}
