:root {
  --bg: #f5f7fa;
  --paper: #ffffff;
  --navy: #0f2642;
  --navy-2: #173a63;
  --blue: #355f91;
  --sky: #1a9ad6;
  --sky-dark: #0f78ad;
  --sky-soft: #e7f4fb;
  --ink: #152238;
  --ink-2: #2f3f57;
  --muted: #5f6d82;
  --line: rgba(21, 34, 56, .11);
  --max: 1160px;
  --radius: 12px;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 8px 28px rgba(15, 38, 66, .08);
  --shadow-lg: 0 28px 60px rgba(15, 38, 66, .16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--body); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.section { padding: 6rem 0; position: relative; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--navy); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .lead { color: #b9c7da; }
.section.dark .eyebrow { color: var(--sky); }

.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sky-dark); margin-bottom: 1.1rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--sky); }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.01em; font-weight: 600; color: var(--navy); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 720px; }
.section-head { max-width: 780px; margin-bottom: 3rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: .94rem; cursor: pointer; white-space: nowrap; border: 1.5px solid transparent; transition: all .18s ease; font-family: var(--body); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15, 38, 66, .22); }
.btn-ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky-soft); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 1rem; }
.brand img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a { font-weight: 500; font-size: .93rem; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: .9rem; }
.nav-right .btn { padding: .6rem 1.1rem; font-size: .85rem; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; font-size: .76rem; font-weight: 700; }
.lang a { padding: .35rem .6rem; color: var(--muted); }
.lang a.active { background: var(--navy); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: var(--navy); font-size: 1.7rem; cursor: pointer; }

/* Hero */
.hero { padding: 5.5rem 0 5rem; position: relative; overflow: hidden; background: var(--paper) url("/assets/contours.svg") right top / 62% auto no-repeat; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.5rem, 4.8vw, 3.7rem); margin-bottom: 1.4rem; max-width: 640px; }
.hero h1 em { font-style: italic; color: var(--blue); }
.hero .lead { margin-bottom: 2.2rem; font-size: 1.12rem; color: var(--ink-2); max-width: 600px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero-facts { display: grid; grid-template-columns: repeat(2, auto); gap: .6rem 1.6rem; width: max-content; max-width: 100%; }
.hero-facts span { font-size: .86rem; color: var(--ink-2); padding-left: 1rem; position: relative; }
.hero-facts span::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
.hero-facts strong { color: var(--navy); font-weight: 700; }

/* Hero chart card */
.rcard { background: var(--navy); color: #fff; border-radius: 16px; padding: 1.5rem 1.5rem 1.2rem; box-shadow: var(--shadow-lg); position: relative; }
.rcard-head { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; margin-bottom: .6rem; flex-wrap: wrap; }
.rcard-head b { white-space: nowrap; }
.rcard-head b { font-family: var(--display); font-size: 1.1rem; font-weight: 600; }
.rcard-head span { font-size: .7rem; white-space: nowrap; color: #9fb3cc; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.rcard svg { width: 100%; height: auto; display: block; }
.rcard-legend { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: .6rem; font-size: .78rem; color: #c4d1e3; }
.rcard-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; }
.rcard-legend b { color: #fff; margin-right: .3rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stat { padding: 2rem 1.6rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--display); font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; margin-bottom: .6rem; color: var(--blue); font-weight: 600; }
.stat span { color: var(--muted); font-size: .9rem; }

/* Cards */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(53, 95, 145, .45); }
.card p { color: var(--muted); font-size: .95rem; }
a.card { display: block; color: inherit; }
.icon { width: 46px; height: 46px; display: grid; place-items: center; background: var(--sky-soft); color: var(--blue); border-radius: 10px; margin-bottom: 1.2rem; }
.icon svg { width: 22px; height: 22px; }
.card ul { margin-top: 1rem; display: grid; gap: .4rem; }
.card ul li { color: var(--ink-2); font-size: .9rem; padding-left: 1.2rem; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 0; top: .65rem; width: 8px; height: 2px; background: var(--sky); }
.more { display: inline-flex; align-items: center; gap: .4rem; color: var(--blue); font-weight: 600; font-size: .9rem; margin-top: 1.2rem; }
.more::after { content: "→"; transition: transform .2s; }
.card:hover .more::after { transform: translateX(3px); }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.pills span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font-size: .9rem; color: var(--ink-2); }
.section.dark .pills span { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #e3ebf5; }

/* Cases */
.case { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; display: grid; gap: .5rem; }
.case .tag { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-dark); }
.case h3 { font-size: 1.3rem; }
.case .sub { color: var(--muted); font-size: .92rem; margin-bottom: .6rem; }
.case ul { display: grid; gap: .45rem; }
.case li { padding-left: 1.4rem; position: relative; color: var(--ink-2); font-size: .93rem; }
.case li::before { content: "✓"; position: absolute; left: 0; color: var(--sky-dark); font-weight: 700; }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.role { padding: 1.6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.role:nth-child(4n) { border-right: 0; }
.role:nth-last-child(-n+4) { border-bottom: 0; }
.role b { display: block; font-family: var(--display); font-size: 1.1rem; color: var(--navy); margin-bottom: .3rem; font-weight: 600; }
.role p { color: var(--muted); font-size: .88rem; }
.role.pm { background: var(--sky-soft); grid-column: span 2; }

/* Clients */
.logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.logo { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; height: 108px; display: grid; place-items: center; padding: 1rem 1.3rem; }
.section.alt .logo { background: var(--bg); }
.logo img { max-height: 68px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.logo:hover img { filter: none; opacity: 1; }
.clients-more { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .9rem; color: var(--muted); align-items: center; }
.clients-more b { color: var(--navy); font-weight: 600; margin-right: .3rem; }
.clients-more span::before { content: "·"; margin-right: .6rem; color: var(--sky); }
.leader { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start; }
.leader .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.leader b { display: block; font-family: var(--display); font-size: 1.3rem; color: var(--navy); }
.leader .ltitle { display: block; color: var(--sky-dark); font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.leader p { color: var(--muted); font-size: .95rem; max-width: 760px; }
.letters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.letter { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 0; }
.letter img { width: 100%; height: 260px; object-fit: contain; object-position: top; background: #f1f3f6; border-radius: 6px; }
.letter figcaption { font-size: .86rem; color: var(--ink-2); margin-top: .8rem; line-height: 1.45; }

.clients { display: flex; flex-wrap: wrap; gap: .7rem; }
.client { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: .75rem 1.1rem; font-weight: 600; font-size: .92rem; color: var(--navy); font-family: var(--display); }
.section.alt .client { background: var(--bg); }
.creds { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.5rem 1.8rem; display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; }
.creds b { font-family: var(--display); font-size: 1.1rem; color: var(--sky); white-space: nowrap; }
.creds ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem 1.5rem; }
.creds li { font-size: .92rem; color: #e1e9f3; padding-left: 1.1rem; position: relative; }
.creds li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
.tgroup { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; }
.tgroup h3 { padding-bottom: .6rem; border-bottom: 2px solid var(--sky); display: inline-block; margin-bottom: 1rem; }
.tgroup li { position: relative; padding-left: 1.2rem; color: var(--ink-2); font-size: .92rem; margin-bottom: .5rem; }
.tgroup li::before { content: ""; position: absolute; left: 0; top: .65rem; width: 8px; height: 2px; background: var(--sky); }

/* Geo + training */
.geo-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.note { background: var(--sky-soft); border-left: 4px solid var(--sky); border-radius: 0 10px 10px 0; padding: 1.3rem 1.5rem; }
.note h3 { font-size: 1.1rem; }
.note p { color: var(--ink-2); font-size: .95rem; }

/* CTA band */
.cta-band { background: linear-gradient(110deg, var(--navy), var(--navy-2) 60%, var(--blue)); color: #fff; border-radius: 18px; padding: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: #c9d5e5; }
.cta-band .btn { background: #fff; color: var(--navy); }
.cta-band .btn:hover { background: var(--sky-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
.contact-list { display: grid; gap: .9rem; margin-top: 1.8rem; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: .9rem; color: var(--navy); font-weight: 600; }
.contact-list .icon { margin: 0; width: 42px; height: 42px; }
.contact-list a:hover .icon { background: var(--blue); color: #fff; }
form { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 2rem; display: grid; gap: 1rem; box-shadow: var(--shadow-lg); }
label { font-size: .82rem; color: var(--ink-2); font-weight: 600; display: grid; gap: .4rem; }
input, textarea, select { width: 100%; padding: .85rem .9rem; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .95rem; }
input:focus, textarea:focus, select:focus { outline: none; background: var(--paper); border-color: var(--sky); box-shadow: 0 0 0 3px rgba(26, 154, 214, .2); }
textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: .8rem; color: var(--muted); }
.form-sent { background: #dcf5e7; color: #137a45; border-radius: 8px; padding: .9rem 1rem; font-weight: 600; font-size: .92rem; }
.req { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); }
.req div { display: grid; grid-template-columns: 1fr 1.6fr; padding: .8rem 1rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.req div:last-child { border-bottom: 0; }
.req b { color: var(--muted); font-weight: 600; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.foot-grid img { height: 40px; width: auto; margin-bottom: 1rem; }
.foot-grid p, .foot-grid a { color: var(--muted); font-size: .9rem; }
.foot-grid h4 { font-family: var(--body); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; font-weight: 700; }
.foot-grid ul { display: grid; gap: .5rem; }
.foot-grid a:hover { color: var(--blue); }
.foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }

/* Subpages */
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 1.2rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.crumbs a:hover { color: var(--blue); }
.crumbs span::before { content: "/"; margin-right: .5rem; color: var(--line); }
.page-hero { padding: 4.5rem 0 3.5rem; background: var(--paper) url("/assets/contours.svg") right top / 50% auto no-repeat; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); margin-bottom: 1rem; max-width: 760px; }
.page-hero .lead { font-size: 1.12rem; color: var(--ink-2); }
.page-hero .hero-cta { margin: 2rem 0 0; }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.blocks { display: grid; gap: 1.2rem; }
.block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.9rem; display: grid; grid-template-columns: 2.2rem 1fr; gap: 1rem; counter-increment: blk; }
.block::before { content: counter(blk, decimal-leading-zero); font-family: var(--display); font-size: 1.4rem; color: var(--sky); font-weight: 600; line-height: 1.3; }
.block p { color: var(--muted); font-size: .95rem; }
.blocks { counter-reset: blk; }
.docs-list { display: grid; gap: .6rem; }
.docs-list li { background: var(--sky-soft); border-radius: 8px; padding: .8rem 1rem; color: var(--navy); font-size: .93rem; font-weight: 500; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-size: 2rem; color: var(--sky); line-height: 1; display: block; margin-bottom: .8rem; font-weight: 600; }
.step .when { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--sky-dark); background: var(--sky-soft); border-radius: 4px; padding: .15rem .5rem; margin-bottom: .6rem; }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .9rem; }
.faq { display: grid; gap: .8rem; max-width: 860px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 0 1.3rem; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.05rem; padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; color: var(--navy); }
.faq summary::after { content: "+"; color: var(--sky-dark); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); padding-bottom: 1.2rem; font-size: .95rem; }
.mission { background: var(--navy); color: #fff; border-radius: 14px; padding: 2.6rem; margin-bottom: 3rem; }
.mission h3 { color: var(--sky); font-family: var(--body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.mission p { color: #e1e9f3; font-size: 1.25rem; max-width: 820px; font-family: var(--display); line-height: 1.5; }
.side-cta { background: var(--navy); color: #fff; border-radius: 14px; padding: 2rem; position: sticky; top: 100px; }
.side-cta h3 { color: #fff; }
.side-cta p { color: #b9c7da; font-size: .95rem; margin-bottom: 1.2rem; }
.side-cta .btn { background: #fff; color: var(--navy); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid, .geo-grid, .contact-grid, .two-col { grid-template-columns: 1fr; }
  .hero { background-size: 90% auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .role:nth-child(4n) { border-right: 1px solid var(--line); }
  .role:nth-child(2n) { border-right: 0; }
  .role:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .role:last-child { border-bottom: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .side-cta { position: static; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .letters { grid-template-columns: repeat(2, 1fr); }
  .creds { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 4rem 0; }
  .hero { padding: 3.5rem 0 4rem; background-size: 140% auto; }
  .grid-3, .grid-2, .form-row, .stats, .roles, .steps, .creds ul, .letters { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .leader { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .role { border-right: 0 !important; grid-column: auto; }
  .hero-facts { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; align-items: flex-start; background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem 1.25rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-right .btn { display: none; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 2rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .block { grid-template-columns: 1fr; gap: .3rem; }
  .req div { grid-template-columns: 1fr; gap: .2rem; }
}
