/* REAL Compliance — site styles (v2) */
:root {
  --navy: #0B1F3A;
  --navy-2: #12305A;
  --navy-deep: #071528;
  --gold: #C9A54A;
  --gold-dark: #A9873A;
  --gold-soft: #EADBB0;
  --ink: #16202E;
  --muted: #5A6577;
  --line: #E3E6EB;
  --bg: #FFFFFF;
  --bg-tint: #F2F5F9;
  --radius: 12px;
  --max: 1180px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.rule { width: 64px; height: 3px; background: var(--gold); border: 0; margin: 0 0 22px; }
.center .rule { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 700px; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s; border: 2px solid transparent; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #D9B75C; color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }

/* Header */
.topbar { background: var(--navy-deep); color: rgba(255,255,255,.75); font-size: .82rem; }
.topbar .container { display: flex; justify-content: flex-end; gap: 28px; height: 38px; align-items: center; }
.topbar a { color: rgba(255,255,255,.8); text-decoration: none; }
.topbar a:hover { color: var(--gold); }
@media (max-width: 640px) { .topbar { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.brand-name small { display: block; font-family: var(--sans); font-weight: 500; font-size: .64rem; letter-spacing: .22em; color: var(--muted); margin-top: 5px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; padding: 8px 16px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--bg-tint); color: var(--navy); }
.nav-links a[aria-current="page"] { color: var(--navy); background: var(--bg-tint); }
.nav-links .btn { margin-left: 10px; padding: 11px 22px; }
.nav-links .btn, .nav-links .btn:hover { background: var(--gold); color: var(--navy); }
.nav-toggle { display: none; background: var(--bg-tint); border: 0; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px auto; transition: transform .2s, opacity .2s; }
@media (max-width: 520px) { .site-header .brand-name small { display: none; } }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; background: #fff; padding: 12px 20px 22px; display: none; box-shadow: 0 16px 30px -20px rgba(0,0,0,.4); }
  .nav-links.open { display: flex; }
  .nav-links .btn { margin: 10px 0 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* Photo heroes */
.hero { position: relative; color: #fff; text-align: center; background: var(--navy) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,21,40,.72) 0%, rgba(11,31,58,.78) 60%, rgba(11,31,58,.92) 100%); }
.hero > .container { position: relative; }
.hero-home { min-height: 86vh; display: flex; align-items: center; padding: 120px 0 170px; }
.hero h1 { color: #fff; max-width: 900px; margin: 0 auto .4em; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lead { color: rgba(255,255,255,.85); margin: 0 auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.page-hero { padding: 110px 0 100px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.7); margin-top: 18px; }
.crumbs a { color: var(--gold); text-decoration: none; }

/* Intro card overlapping hero */
.intro-wrap { position: relative; margin-top: -110px; z-index: 2; }
.intro-card { background: #fff; border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(11,31,58,.45); padding: 52px 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; border-top: 4px solid var(--gold); }
.intro-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.creds-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cred-stat { border-left: 3px solid var(--gold); padding-left: 16px; }
.cred-stat strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--navy); line-height: 1.3; }
.cred-stat span { font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .intro-card { grid-template-columns: 1fr; padding: 36px 28px; gap: 28px; } }
@media (max-width: 480px) { .creds-row { grid-template-columns: 1fr; } }

/* Sections */
section { padding: 100px 0; }
.tint { background: var(--bg-tint); }
.navy-band { background: var(--navy); color: rgba(255,255,255,.85); }
.navy-band h2, .navy-band h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { section { padding: 72px 0; } }

/* Expertise (circle icons) */
.expertise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 40px; }
@media (max-width: 900px) { .expertise { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .expertise { grid-template-columns: 1fr; } }
.exp { text-align: center; text-decoration: none; color: inherit; display: block; }
.ring { width: 112px; height: 112px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; margin: 0 auto 22px; color: var(--gold-dark); background: #fff; transition: background .25s, color .25s, transform .25s; }
.ring svg { width: 46px; height: 46px; }
.exp:hover .ring { background: var(--navy); color: var(--gold); transform: translateY(-4px); }
.exp h3 { font-family: var(--sans); font-size: .9rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: 10px; }
.exp p { color: var(--muted); font-size: .96rem; max-width: 320px; margin: 0 auto; }

/* Split with photo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse .photo { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.reverse .photo { order: 0; } }
.photo { position: relative; z-index: 0; isolation: isolate; }
.photo img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; border-radius: 16px; }
.photo::before { content: ""; position: absolute; left: -18px; bottom: -18px; width: 55%; height: 55%; border: 2px solid var(--gold); border-radius: 16px; z-index: -1; }
.photo .badge { position: absolute; right: -14px; bottom: 28px; background: var(--navy); color: #fff; padding: 18px 22px; border-radius: 12px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); max-width: 220px; }
.photo .badge strong { display: block; font-family: var(--serif); color: var(--gold); font-size: 1.5rem; line-height: 1.1; }
.photo .badge span { font-size: .82rem; color: rgba(255,255,255,.8); }
@media (max-width: 560px) { .photo .badge { right: 10px; } .photo::before { left: -8px; bottom: -8px; } }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 36px; margin-bottom: 14px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1F3A' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }
.navy-band .checklist li { color: rgba(255,255,255,.85); }

/* Connected diagram */
.connect { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .connect { grid-template-columns: 1fr; } }
.connect svg { width: 100%; max-width: 520px; margin: 0 auto; }

/* Values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.15); }
.value { padding: 34px 28px 10px 0; }
.value .num { font-family: var(--serif); font-size: 2.2rem; color: var(--gold); line-height: 1; display: block; margin-bottom: 14px; }
.value h3 { margin-bottom: 8px; }
.value p { font-size: .96rem; color: rgba(255,255,255,.75); }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -20px; left: 26px; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--serif); font-weight: 700; display: grid; place-items: center; border: 3px solid #fff; }
.step h3 { margin-top: 10px; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Services page */
.svc-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.svc-nav a { font-size: .88rem; text-decoration: none; padding: 9px 18px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; }
.svc-nav a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.service { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; padding: 88px 0; scroll-margin-top: 100px; }
.service + .service { border-top: 1px solid var(--line); }
.service:nth-of-type(even) .svc-media { order: 2; }
.svc-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; }
.svc-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.svc-head .ring { width: 64px; height: 64px; margin: 0; flex: none; }
.svc-head .ring svg { width: 28px; height: 28px; }
.svc-head h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2rem); }
.svc-head small { display: block; font-family: var(--sans); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin-top: 4px; }
.service ul { columns: 2; column-gap: 28px; }
.service li { break-inside: avoid; font-size: .96rem; }
@media (max-width: 900px) { .service { grid-template-columns: 1fr; gap: 28px; padding: 64px 0; } .service:nth-of-type(even) .svc-media { order: 0; } .service ul { columns: 1; } }

/* About */
.portrait { aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, var(--navy-2), var(--navy)); display: grid; place-items: center; color: rgba(255,255,255,.6); position: relative; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.cred { border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 8px; padding: 16px 18px; background: #fff; }
.cred strong { display: block; font-family: var(--serif); color: var(--navy); }
.cred span { color: var(--muted); font-size: .88rem; }
@media (max-width: 560px) { .cred-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 40px 28px; text-align: center; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s, border-color .2s; }
.contact-card:hover { box-shadow: 0 24px 48px -28px rgba(11,31,58,.45); transform: translateY(-3px); border-color: var(--gold-soft); }
.contact-card .ring { width: 80px; height: 80px; }
.contact-card .ring svg { width: 32px; height: 32px; }
.contact-card h3 { font-family: var(--sans); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.contact-card .val { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); word-break: break-word; }
.contact-card p { color: var(--muted); font-size: .95rem; margin-bottom: 10px; }
.panel { background: var(--navy); color: #fff; border-radius: 16px; padding: 40px; }
.panel h3 { color: #fff; }
.panel dl { margin: 0; }
.panel dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); margin-top: 18px; }
.panel dd { margin: 4px 0 0; color: rgba(255,255,255,.9); }
.panel a { color: #fff; }

/* CTA with photo */
.cta { position: relative; color: #fff; text-align: center; background: var(--navy) center/cover no-repeat; padding: 110px 0; }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(11,31,58,.86); }
.cta > .container { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.8); max-width: 620px; margin: 0 auto; }

/* Prose */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 72px 0 28px; font-size: .92rem; border-top: 4px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin: 6px 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer .brand-name small { color: rgba(255,255,255,.55); }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 52px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: rgba(255,255,255,.5); }

.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 8px 24px -8px rgba(0,0,0,.4); z-index: 40; }
.wa-float svg { width: 30px; height: 30px; }

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

/* Logo image */
.brand-mark { width: auto; height: 44px; }
.site-footer .brand-mark { height: 40px; }

/* Accountable institutions page */
.ai-note { background: var(--bg-tint); border-left: 4px solid var(--gold); border-radius: 10px; padding: 24px 28px; max-width: 900px; }
.ai-note p:last-child { margin-bottom: 0; }
.ai-group { margin-top: 56px; }
.ai-group:first-child { margin-top: 0; }
.ai-group h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); padding-bottom: 12px; border-bottom: 2px solid var(--line); margin-bottom: 24px; }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ai-grid { grid-template-columns: 1fr; } }
.ai-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.ai-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.ai-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.ai-num { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); background: var(--gold-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.ai-highlight { border: 2px solid var(--gold); box-shadow: 0 18px 40px -28px rgba(11,31,58,.5); }
/* Full wordmark logo */
.brand-mark { height: 52px; width: auto; }
.site-footer .brand-mark { height: 56px; }
@media (max-width: 520px) { .brand-mark { height: 44px; } }
@media (max-width: 900px) { .nav-toggle { margin-left: auto; } .nav > nav { width: 0; } }
.nav-links .btn { text-align: center; }

/* v4: distinct identity */
.ring { border-radius: 18px; transform: rotate(0deg); }
.exp .ring { width: 96px; height: 96px; border-width: 2px; box-shadow: 6px 6px 0 var(--gold-soft); }
.exp:hover .ring { box-shadow: 6px 6px 0 var(--gold); }
.svc-head .ring, .contact-card .ring { border-radius: 14px; }
.value .num { font-size: 3rem; font-weight: 700; }
.steps.letters .step::before { content: attr(data-l); font-size: 1.1rem; }
