/* ==========================================================================
   RiskMantra Advisors — design system
   Navy + gold brand, serif display type, generous whitespace.
   ========================================================================== */

:root {
  --navy-950: #071220;
  --navy-900: #0b192c;
  --navy-800: #10233d;
  --navy-700: #1a3354;
  --navy-600: #284a74;
  --gold: #c9973a;
  --gold-600: #a97c2b;
  --gold-300: #e6c27a;
  --gold-100: #f6ecd8;
  --ink: #111c2b;
  --body: #3b4757;
  --muted: #6b7685;
  --line: #e4e0d6;
  --line-strong: #cfc8b8;
  --paper: #faf8f3;
  --white: #ffffff;
  --success: #2f7d5b;
  --info: #2c5d8f;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(11, 25, 44, .06), 0 2px 8px rgba(11, 25, 44, .05);
  --shadow-md: 0 10px 30px rgba(11, 25, 44, .10);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 { font-variant-numeric: lining-nums; font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy-900); color: #fff; padding: 10px 16px; z-index: 2000; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body); font-size: .9rem; font-weight: 600; letter-spacing: .02em;
  padding: .9em 1.6em; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--gold { background: var(--gold); color: var(--navy-950); }
.btn--gold:hover { background: var(--gold-300); color: var(--navy-950); box-shadow: 0 8px 24px rgba(201, 151, 58, .3); }
.btn--navy { background: var(--navy-900); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn--ghost-light:hover { border-color: var(--gold); color: var(--gold-300); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--navy-900); color: var(--navy-900); }
.btn--sm { padding: .6em 1.1em; font-size: .82rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .92rem; color: var(--navy-700); text-decoration: none; }
.link-arrow svg { width: 1em; height: 1em; transition: transform .2s; }
.link-arrow:hover { color: var(--gold-600); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-dark .eyebrow, .eyebrow--light { color: var(--gold-300); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--paper { background: var(--paper); }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head--split > div { max-width: 720px; }
.lead { font-size: 1.15rem; line-height: 1.7; color: var(--body); }

.on-dark { background: var(--navy-900); color: rgba(255,255,255,.78); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark .lead { color: rgba(255,255,255,.78); }
.on-dark a:not(.btn) { color: var(--gold-300); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000; height: var(--header-h);
  background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy-900); letter-spacing: .005em; }
.brand-sub { font-size: .6rem; font-weight: 700; letter-spacing: .32em; color: var(--gold-600); margin-top: 5px; text-transform: uppercase; }
.on-dark .brand-name { color: #fff; }
.on-dark .brand-sub { color: var(--gold-300); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a.nav-link {
  display: block; padding: 10px 13px; font-size: .9rem; font-weight: 500; color: var(--ink); text-decoration: none; position: relative;
}
.main-nav a.nav-link { white-space: nowrap; }
.main-nav a.nav-link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
@media (min-width: 1081px) and (max-width: 1260px) { .main-nav a.nav-link { padding: 10px 8px; font-size: .86rem; } .main-nav a.nav-link::after { left: 8px; right: 8px; } }
.main-nav a.nav-link:hover::after, .main-nav a.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a.nav-link[aria-current="page"] { color: var(--navy-900); font-weight: 600; }
.header-cta { margin-left: 14px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy-900); }
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline; }

@media (max-width: 1080px) {
  /* backdrop-filter would make the header the containing block of the fixed drawer */
  .site-header { backdrop-filter: none; background: var(--white); }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--white);
    flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 32px; gap: 16px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; overflow-y: auto;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .main-nav ul { flex-direction: column; }
  .main-nav a.nav-link { font-size: 1.2rem; font-family: var(--font-display); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a.nav-link::after { display: none; }
  .header-cta { margin: 8px 0 0; }
  .header-cta .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero (welcome) ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--navy-900); color: #fff;
  padding: clamp(80px, 12vw, 150px) 0 clamp(72px, 9vw, 120px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(40, 74, 116, .65), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(201, 151, 58, .14), transparent 60%);
}
.hero-lines { position: absolute; right: -120px; top: 50%; transform: translateY(-50%); width: 760px; max-width: 80vw; opacity: .5; pointer-events: none; }
.hero .container { position: relative; }
.hero-inner { max-width: 760px; }
.hero h1 { color: #fff; font-weight: 700; margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--gold-300); font-weight: 600; }
.hero-lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.78); max-width: 620px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-stat { padding: 26px 24px 0 0; }
.hero-stat + .hero-stat { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.hero-stat strong { font-variant-numeric: lining-nums; display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 600; color: var(--gold-300); line-height: 1; margin-bottom: 10px; }
.hero-stat span { font-size: .85rem; color: rgba(255,255,255,.66); line-height: 1.45; display: block; }
@media (max-width: 760px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat { padding: 22px 12px 22px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hero-stat + .hero-stat { padding-left: 0; border-left: 0; }
  .hero-stat:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.14); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--navy-900); color: rgba(255,255,255,.78); position: relative; overflow: hidden; padding: clamp(44px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 380px at 90% 0%, rgba(40, 74, 116, .7), transparent 60%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); max-width: 900px; }
.page-hero .lead { max-width: 720px; margin: 0; color: rgba(255,255,255,.76); }
.breadcrumbs { font-size: .82rem; margin-bottom: clamp(28px, 4vw, 44px); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.55); }
.breadcrumbs li + li::before { content: "/"; color: rgba(255,255,255,.3); }
.breadcrumbs a { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-300); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; position: relative; transition: border-color .25s, box-shadow .25s, transform .25s;
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.card--link:hover { transform: translateY(-3px); }
.card h3 { margin-bottom: .45em; }
.card p { font-size: .97rem; }
.card .link-arrow { margin-top: auto; padding-top: 8px; }
.card-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); margin-bottom: 22px; }
.card-icon svg { width: 22px; height: 22px; }
.stretched::after { content: ""; position: absolute; inset: 0; }

/* Ruled list of capability "pillars" */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.pillar { padding: 32px 28px 8px 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar-num { font-variant-numeric: lining-nums; font-family: var(--font-display); font-size: .95rem; color: var(--gold-600); margin-bottom: 18px; display: block; }
.pillar h3 { font-size: 1.5rem; letter-spacing: .02em; }
.pillar p { font-size: .95rem; }
@media (max-width: 980px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { padding-left: 0; border-left: 0; }
}

/* Feature split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 19px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a97c2b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.check-list strong { color: var(--ink); display: block; }
.on-dark .check-list li { border-color: rgba(255,255,255,.12); }
.on-dark .check-list strong { color: #fff; }

.quote-block { position: relative; padding: clamp(32px, 5vw, 56px); background: var(--navy-800); color: #fff; border-left: 3px solid var(--gold); }
.quote-block blockquote { margin: 0 0 1.2rem; font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.45; color: #fff; }
.quote-block cite { font-style: normal; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); font-weight: 700; }

/* Comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare > div { padding: clamp(28px, 4vw, 44px); }
.compare-bad { background: var(--paper); }
.compare-good { background: var(--navy-900); color: rgba(255,255,255,.8); }
.compare-good h3 { color: #fff; }
.compare ul { list-style: none; padding: 0; margin: 0; }
.compare li { padding: 12px 0 12px 30px; position: relative; border-bottom: 1px solid var(--line); font-size: .97rem; }
.compare-good li { border-color: rgba(255,255,255,.1); }
.compare li:last-child { border-bottom: 0; }
.compare-bad li::before { content: "✕"; position: absolute; left: 0; top: 12px; color: #a3514a; font-weight: 700; }
.compare-good li::before { content: "✓"; position: absolute; left: 0; top: 12px; color: var(--gold-300); font-weight: 700; }
.compare-good strong { color: #fff; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { padding: 0 28px 0 0; position: relative; }
.step-num { font-variant-numeric: lining-nums; display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font-family: var(--font-display); color: var(--gold-600); font-size: 1rem; }
.step-num::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.step:last-child .step-num::after { background: transparent; }
.step h3 { font-size: 1.3rem; margin-bottom: .2em; }
.step .step-sub { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: .8em; display: block; }
.step p { font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Value grid */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.value-item { padding: 30px 28px 30px 0; border-bottom: 1px solid var(--line); }
.value-item:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.value-item h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.value-item p { font-size: .95rem; margin: 0; }
@media (max-width: 900px) {
  .value-grid { grid-template-columns: 1fr 1fr; }
  .value-item:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .value-item:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .value-grid { grid-template-columns: 1fr; }
  .value-item:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- Services page ---------- */
.service-nav { position: sticky; top: var(--header-h); z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.service-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.service-nav ul::-webkit-scrollbar { display: none; }
.service-nav a { display: block; padding: 16px 14px; font-size: .86rem; font-weight: 500; color: var(--body); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.service-nav a:hover { color: var(--navy-900); border-color: var(--gold); }
/* Scrolling strip of service names (services page) */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee .marquee-track ul { overflow: visible; flex-shrink: 0; padding-right: 4px; }
.marquee li { display: flex; align-items: center; }
.marquee li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin: 0 10px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
  .marquee-track ul[aria-hidden] { display: none; }
}
.service-block { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 72px); padding: clamp(48px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: 0; }
.service-block h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.service-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 36px; }
.service-group h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 12px; }
.service-group ul { list-style: none; padding: 0; margin: 0; }
.service-group li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink); }
@media (max-width: 900px) { .service-block { grid-template-columns: 1fr; } }

/* ---------- People ---------- */
.person-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; transition: box-shadow .25s, transform .25s; }
.person-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.person-photo { aspect-ratio: 4 / 4.4; background: var(--paper); overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s; }
.person-card:hover .person-photo img { transform: scale(1.03); }
.person-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.person-lens { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 10px; }
.person-body h3 { font-size: 1.45rem; margin-bottom: .3em; }
.person-body h3 a { color: inherit; text-decoration: none; }
.person-title { font-size: .92rem; color: var(--muted); margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip { font-size: .74rem; font-weight: 500; padding: 4px 10px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); color: var(--body); white-space: nowrap; }
.chip--gold { background: var(--gold-100); border-color: transparent; color: #7a5a1e; }
.chip--dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.85); }
.profile { display: grid; grid-template-columns: 360px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.profile-photo { border-radius: var(--radius); overflow: hidden; background: var(--paper); position: sticky; top: calc(var(--header-h) + 24px); }
.profile-facts { margin: 32px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-facts dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.profile-facts dd { margin: 0; }
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; } .profile-photo { position: static; max-width: 360px; } .profile-facts { grid-template-columns: 1fr; } }

/* ---------- Sectors ---------- */
.sector-card { border-top: 3px solid var(--gold); }
.sector-card ul { list-style: none; padding: 0; margin: 8px 0 0; }
.sector-card li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink); }
.sector-card li:last-child { border-bottom: 0; }

/* ---------- Knowledge ---------- */
.kn-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-bottom: 20px; }
.search-field { position: relative; }
.search-field svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-field input { width: 100%; padding: 15px 16px 15px 46px; font: inherit; font-size: 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.search-field input:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(26, 51, 84, .12); }
.select { font: inherit; font-size: .92rem; padding: 14px 40px 14px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7685' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center/16px no-repeat; appearance: none; color: var(--ink); }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.pill { font: inherit; font-size: .86rem; font-weight: 500; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--white); color: var(--body); cursor: pointer; transition: all .2s; }
.pill:hover { border-color: var(--navy-700); color: var(--navy-900); }
.pill[aria-pressed="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.pill { display: inline-flex; align-items: center; gap: 6px; }
.pill svg { width: 13px; height: 13px; }
.pill .count { opacity: .6; margin-left: 4px; font-size: .8em; }
.kn-meta-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; font-size: .9rem; color: var(--muted); }
.kn-empty { padding: 60px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
@media (max-width: 640px) { .kn-toolbar { grid-template-columns: 1fr; } }

.article-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; position: relative; transition: box-shadow .25s, transform .25s, border-color .25s; }
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-strong); }
.article-card .ac-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.ac-cat { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
.badge-premium { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: var(--navy-900); color: var(--gold-300); }
.badge-premium svg { width: 12px; height: 12px; }
.article-card h3 { font-size: 1.32rem; line-height: 1.3; }
.article-card h3 a { color: var(--ink); text-decoration: none; }
.article-card h3 a:hover { color: var(--navy-700); }
.article-card p { font-size: .95rem; color: var(--body); }
.ac-byline { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; font-size: .84rem; color: var(--muted); }
.ac-byline img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: top; }
.ac-byline strong { color: var(--ink); font-weight: 600; display: block; }
.article-card--featured { grid-column: span 2; background: var(--navy-900); border-color: var(--navy-900); color: rgba(255,255,255,.78); padding: clamp(28px, 4vw, 44px); }
.article-card--featured h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.article-card--featured h3 a { color: #fff; }
.article-card--featured h3 a:hover { color: var(--gold-300); }
.article-card--featured p { color: rgba(255,255,255,.75); font-size: 1.02rem; }
.article-card--featured .ac-cat { color: var(--gold-300); }
.article-card--featured .ac-byline { border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.6); }
.article-card--featured .ac-byline strong { color: #fff; }
@media (max-width: 640px) { .article-card--featured { grid-column: auto; } }

/* Article page */
.article-hero { background: var(--navy-900); padding: clamp(40px, 6vw, 64px) 0 clamp(48px, 7vw, 80px); color: rgba(255,255,255,.75); position: relative; overflow: hidden; }
.article-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 380px at 90% 0%, rgba(40, 74, 116, .7), transparent 60%); }
.article-hero .container { position: relative; }
.article-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); }
.article-hero .lead { color: rgba(255,255,255,.76); margin-bottom: 28px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; font-size: .9rem; }
.article-meta .author { display: flex; align-items: center; gap: 12px; }
.article-meta img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid rgba(255,255,255,.2); }
.article-meta a { color: #fff; text-decoration: none; font-weight: 600; }
.article-meta a:hover { color: var(--gold-300); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 80px); padding: clamp(48px, 6vw, 72px) 0; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }
.prose { font-size: 1.08rem; line-height: 1.8; color: #2c3746; max-width: 720px; }
.prose h2 { font-size: 1.75rem; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.35rem; margin: 1.7em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--gold-600); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 2em 0; padding: 22px 26px; background: var(--paper); border-left: 3px solid var(--gold); font-size: 1.02rem; }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--ink); background: var(--paper); }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose code { font-size: .9em; background: var(--paper); padding: 2px 6px; border-radius: 3px; }
.prose > :first-child { margin-top: 0; }
.article-aside { display: flex; flex-direction: column; gap: 28px; }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-box h4 { font-family: var(--font-body); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.aside-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; margin-bottom: 14px; }
.aside-author strong { display: block; color: var(--ink); font-size: 1.05rem; }
.aside-author p { font-size: .88rem; color: var(--muted); margin: 6px 0 14px; }
.share-row { display: flex; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.share-row a, .share-row button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--body); background: var(--white); cursor: pointer; }
.share-row a:hover, .share-row button:hover { border-color: var(--navy-700); color: var(--navy-900); }
.share-row svg { width: 16px; height: 16px; }
.article-tags { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

.paywall { position: relative; margin-top: 8px; }
.paywall-fade { height: 120px; margin-top: -120px; position: relative; background: linear-gradient(rgba(255,255,255,0), #fff); }
.paywall-box { border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: clamp(28px, 4vw, 40px); text-align: center; background: var(--paper); }
.paywall-box .card-icon { margin: 0 auto 18px; }
.paywall-box h3 { font-size: 1.5rem; }
.paywall-box p { max-width: 520px; margin-left: auto; margin-right: auto; }
.paywall-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Initiatives ---------- */
.platform { padding: clamp(48px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px, 5vw, 64px); }
.platform:last-child { border-bottom: 0; }
.platform-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); }
.platform h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); margin-top: 10px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--white); display: flex; flex-direction: column; position: relative; transition: box-shadow .25s, border-color .25s; }
.product:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.product h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: .4em; }
.product-short { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); display: block; margin-bottom: 4px; }
.product p { font-size: .93rem; margin-bottom: 16px; }
.status { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; margin-bottom: 16px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--live { background: #e5f2ec; color: var(--success); }
.status--pilot { background: #e6eef7; color: var(--info); }
.status--in-development { background: var(--gold-100); color: #7a5a1e; }
.status--coming-soon { background: #eef0f3; color: var(--muted); }
.product .link-arrow { margin-top: auto; }
@media (max-width: 900px) { .platform { grid-template-columns: 1fr; } }

.initiative-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; }
.initiative-tile { background: var(--navy-900); padding: 36px 32px; position: relative; transition: background .25s; display: flex; flex-direction: column; }
.initiative-tile:hover { background: var(--navy-800); }
.initiative-tile h3 { font-size: 1.45rem; margin: 8px 0 12px; }
.initiative-tile h3 a { color: #fff; text-decoration: none; }
.initiative-tile p { font-size: .95rem; color: rgba(255,255,255,.7); }
.initiative-tile ul { list-style: none; padding: 0; margin: 0 0 24px; }
.initiative-tile li { font-size: .9rem; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.86); }
.initiative-tile .link-arrow { color: var(--gold-300); margin-top: auto; }
@media (max-width: 900px) { .initiative-tiles { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--gold-600); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.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='%236b7685' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center/16px no-repeat; padding-right: 40px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(26, 51, 84, .12); }
.form-note { font-size: .82rem; color: var(--muted); }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--radius); font-size: .95rem; display: none; }
.form-status.is-ok { display: block; background: #e5f2ec; color: var(--success); }
.form-status.is-err { display: block; background: #f8e8e6; color: #8f3b33; }
.hp { position: absolute; left: -9999px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; }
.segmented input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.segmented label { margin: 0; text-align: center; padding: 12px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; font-weight: 500; font-size: .88rem; transition: all .2s; }
.segmented input:checked + label { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.segmented input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 520px) { .segmented { grid-template-columns: 1fr; } }
.contact-card { background: var(--navy-900); color: rgba(255,255,255,.78); padding: clamp(28px, 4vw, 40px); border-radius: var(--radius); }
.contact-card h3 { color: #fff; }
.contact-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-line:last-of-type { border-bottom: 0; }
.contact-line svg { width: 20px; height: 20px; color: var(--gold-300); flex-shrink: 0; margin-top: 3px; }
.contact-line a { color: #fff; text-decoration: none; }
.contact-line a:hover { color: var(--gold-300); }
.contact-line small { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 2px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-900); color: rgba(255,255,255,.78); position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 100% 100%, rgba(201, 151, 58, .16), transparent 60%), radial-gradient(600px 300px at 0% 0%, rgba(40, 74, 116, .6), transparent 60%); }
.cta-band .container { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; max-width: 680px; }
.cta-band p { margin: 0; max-width: 620px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.62); font-size: .92rem; padding: clamp(56px, 7vw, 80px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-body); color: #fff; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:not(.btn) { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--gold-300); }
.footer-brand p { margin-top: 18px; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .82rem; color: rgba(255,255,255,.45); }
.footer-bottom ul { display: flex; gap: 20px; }
.footer-bottom li { margin: 0; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 54px; height: 54px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: clamp(32px, 4vw, 48px); }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.logos-row { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; font-family: var(--font-display); font-size: 1.15rem; color: var(--muted); }
.logos-row span { white-space: nowrap; }
.service-block, .platform { scroll-margin-top: calc(var(--header-h) + 56px); }

/* Cookie consent banner */
.consent { position: fixed; left: 20px; bottom: 20px; z-index: 1100; max-width: 460px; background: var(--navy-900); color: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.12); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 16px 40px rgba(0,0,0,.3); font-size: .9rem; line-height: 1.55; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 14px; }
.consent a { color: var(--gold-300); }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; }
@media (max-width: 560px) { .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* Useful links directory */
.ul-toc { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(40px, 5vw, 64px); }
.ul-toc a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 99px; font-size: .88rem; font-weight: 500; color: var(--ink); text-decoration: none; background: var(--white); transition: border-color .2s, background .2s; }
.ul-toc a:hover { border-color: var(--gold); background: var(--paper); color: var(--ink); }
.ul-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-900); color: var(--gold-300); font-family: var(--font-display); font-weight: 700; font-size: .85rem; flex: none; }
.ul-num--lg { width: 44px; height: 44px; font-size: 1.2rem; }
.ul-section { margin-bottom: clamp(48px, 6vw, 80px); scroll-margin-top: calc(var(--header-h) + 24px); }
.ul-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 24px; max-width: 820px; }
.ul-head h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: 4px 0 .3em; }
.ul-head p { margin: 0; }
.ul-table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.ul-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ul-table thead th { background: var(--navy-900); color: #fff; text-align: left; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 14px 20px; }
.ul-table tbody th, .ul-table td { padding: 18px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.ul-table tbody tr:nth-child(even) { background: var(--paper); }
.ul-table tbody th { width: 30%; color: var(--ink); font-weight: 600; }
.ul-table td:last-child { width: 26%; }
.ul-link { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; color: var(--navy-700); text-decoration: none; word-break: break-word; }
.ul-link svg { width: 14px; height: 14px; flex: none; }
.ul-link:hover { color: var(--gold-600); }
.ul-link--sub { display: flex; margin-top: 8px; font-weight: 500; font-size: .86rem; color: var(--muted); }
.ul-note { border-left: 3px solid var(--gold); background: var(--paper); padding: 20px 24px; border-radius: var(--radius); font-size: .93rem; }
.ul-note strong { color: var(--ink); display: block; margin-bottom: 4px; }
.ul-note p { margin: 0; }
@media (max-width: 760px) {
  .ul-table thead { display: none; }
  .ul-table, .ul-table tbody, .ul-table tr, .ul-table th, .ul-table td { display: block; width: 100% !important; }
  .ul-table tbody tr { padding: 14px 18px; border-top: 1px solid var(--line); }
  .ul-table tbody tr:first-child { border-top: 0; }
  .ul-table tbody th, .ul-table td { padding: 4px 0; border: 0; }
  .ul-table tbody th { font-size: 1.02rem; }
  .ul-head { gap: 14px; }
}
