*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ink: #142033;
    --navy: #101d30;
    --navy-2: #1a2a42;
    --blue: #1768c4;
    --teal: #087f78;
    --orange: #d76828;
    --paper: #ffffff;
    --wash: #f3f6f9;
    --wash-2: #e8edf3;
    --line: #d3dbe4;
    --muted: #58677a;
    --sans: Manrope, sans-serif;
    --mono: "IBM Plex Mono", monospace;
}

html { scroll-behavior: smooth; }
body { min-width: 320px; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 1rem; line-height: 1.65; }
a { color: inherit; }
img { max-width: 100%; }
::selection { color: #fff; background: var(--blue); }
.wrap { width: min(100% - 64px, 1220px); margin-inline: auto; }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px; color: #fff; background: var(--blue); font-weight: 800; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 20; color: #fff; background: rgba(16, 29, 48, 0.97); border-bottom: 1px solid rgba(255,255,255,0.14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.header-inner { min-height: 70px; display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 28px; }
.wordmark { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; text-decoration: none; text-transform: uppercase; }
.header-role { color: #b7c3d1; font-size: 0.78rem; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { position: relative; color: #cbd4df; font-size: 0.75rem; font-weight: 700; text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a.active { color: #fff; }
.nav-links a.active::after { content: ""; position: absolute; right: 0; bottom: -12px; left: 0; height: 2px; background: #69a7ef; }
.nav-links .contact-link { padding: 8px 12px; color: var(--navy); background: #fff; border-radius: 3px; }
.nav-links .contact-link:hover, .nav-links .contact-link.active { color: #fff; background: var(--blue); }
.nav-links .contact-link.active::after { display: none; }

.page-hero { color: #fff; background: var(--navy); border-bottom: 6px solid var(--blue); }
.page-hero-grid { min-height: 340px; display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; }
.page-index { padding: 58px 30px 48px 0; border-right: 1px solid #33445d; }
.page-index p, .eyebrow { color: #91a7c0; font-family: var(--mono); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.page-index strong { display: block; margin-top: 18px; font-size: 3rem; line-height: 1; }
.page-heading { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(36px, 6vw, 74px); }
.page-heading h1 { max-width: 760px; margin-top: 14px; font-size: clamp(2.7rem, 6vw, 5.4rem); line-height: 1; letter-spacing: 0; }
.page-summary { display: flex; flex-direction: column; justify-content: center; padding: 48px 0 48px 30px; border-left: 1px solid #33445d; }
.page-summary p { color: #b6c4d4; font-size: 0.94rem; }
.page-summary .button { margin-top: 24px; }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 3px; font-size: 0.78rem; font-weight: 800; text-decoration: none; transition: color 160ms ease, background 160ms ease, border-color 160ms ease; }
.button.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.button.primary:hover { background: #0f4f98; border-color: #0f4f98; }
.button.light { color: var(--navy); background: #fff; border-color: #fff; }
.button.light:hover { color: #fff; background: var(--blue); border-color: var(--blue); }

.page-main { padding: 64px 0 84px; }
.content-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.side-note { padding-right: 30px; }
.section-code { color: var(--blue); font-family: var(--mono); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.side-note h2 { margin-top: 10px; font-size: 1.4rem; line-height: 1.2; }
.side-note p { margin-top: 12px; color: var(--muted); font-size: 0.84rem; }
.content { min-width: 0; padding-left: 54px; border-left: 1px solid var(--line); }

.scope-list, .timeline { border-top: 1px solid var(--line); }
.scope-item { display: grid; grid-template-columns: 54px 220px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.scope-number { color: var(--orange); font-family: var(--mono); font-size: 0.75rem; font-weight: 600; }
.scope-item h3 { font-size: 1.05rem; }
.scope-item p { color: var(--muted); font-size: 0.92rem; }
.tool-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tool { padding: 7px 10px; color: var(--navy); background: var(--wash); border: 1px solid var(--line); border-radius: 3px; font-family: var(--mono); font-size: 0.72rem; }

.timeline-item { display: grid; grid-template-columns: 150px minmax(220px, .85fr) minmax(0, 1.15fr); gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline-item time { color: var(--blue); font-family: var(--mono); font-size: 0.75rem; font-weight: 600; }
.timeline-item h3 { font-size: 1rem; }
.timeline-item .org { margin-top: 3px; color: var(--muted); font-size: 0.8rem; }
.timeline-item > p { color: var(--muted); font-size: 0.9rem; }
.credential-group { margin-top: 42px; }
.credential-group h2 { font-size: 1.35rem; }

.case-list { border-top: 1px solid var(--line); }
.case-study { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); min-height: 300px; border-bottom: 1px solid var(--line); }
.case-image { overflow: hidden; background: var(--wash-2); border-right: 1px solid var(--line); }
.case-image img { width: 100%; height: 100%; min-height: 300px; display: block; object-fit: cover; transition: transform 240ms ease; }
.case-study:hover .case-image img { transform: scale(1.02); }
.case-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; }
.case-type { color: var(--teal); font-family: var(--mono); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; }
.case-copy h2 { margin-top: 10px; font-size: 1.5rem; }
.case-copy p { flex: 1; margin-top: 12px; color: var(--muted); font-size: 0.92rem; }
.case-copy a { margin-top: 24px; color: var(--blue); font-size: 0.8rem; font-weight: 800; text-decoration: none; }
.case-copy a:hover { text-decoration: underline; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; }
.contact-copy h2 { max-width: 720px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; }
.contact-copy p { max-width: 680px; margin-top: 18px; color: var(--muted); }
.contact-options { display: grid; gap: 10px; }
.contact-options .button { width: 100%; }
.contact-detail { margin-top: 34px; border-top: 1px solid var(--line); }
.contact-row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-row dt { color: var(--muted); font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; }
.contact-row dd { font-weight: 700; }

.next-page { color: #fff; background: var(--navy); }
.next-inner { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.next-inner p { color: #9fb0c3; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; }
.next-inner h2 { margin-top: 8px; font-size: 1.5rem; }
.next-inner a { color: #fff; border-color: #50627a; }

footer { background: var(--wash); }
.footer-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 0.76rem; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--blue); }

@media (max-width: 900px) {
    .wrap { width: min(100% - 40px, 1220px); }
    .header-inner { grid-template-columns: 1fr auto; }
    .header-role { display: none; }
    .page-hero-grid { grid-template-columns: 180px minmax(0, 1fr); }
    .page-summary { grid-column: 1 / -1; padding: 26px 0; border-top: 1px solid #33445d; border-left: 0; }
    .page-summary .button { width: max-content; }
    .content-grid { grid-template-columns: 1fr; }
    .side-note { padding: 0 0 28px; }
    .content { padding-left: 0; border-left: 0; }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .wrap { width: min(100% - 28px, 1220px); }
    .site-header { position: relative; }
    .header-inner { min-height: 88px; align-content: center; gap: 10px; padding-block: 12px; }
    .wordmark, .nav-links { grid-column: 1 / -1; }
    .nav-links { gap: 16px; overflow-x: auto; }
    .nav-links a { flex: 0 0 auto; }
    .nav-links .contact-link { display: none; }
    .nav-links a.active::after { bottom: -6px; }
    .page-hero-grid { grid-template-columns: 1fr; }
    .page-index { display: flex; align-items: center; justify-content: space-between; padding: 30px 0 20px; border-right: 0; border-bottom: 1px solid #33445d; }
    .page-index strong { margin-top: 0; font-size: 1.4rem; }
    .page-heading { padding: 34px 0; }
    .page-heading h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
    .page-summary { padding: 24px 0 30px; }
    .page-summary .button { width: 100%; }
    .page-main { padding: 46px 0 60px; }
    .scope-item { grid-template-columns: 38px 1fr; gap: 8px 14px; }
    .scope-item p { grid-column: 2; }
    .timeline-item { grid-template-columns: 1fr; gap: 7px; }
    .case-study { grid-template-columns: 1fr; }
    .case-image { aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
    .case-image img { min-height: 0; }
    .case-copy { padding: 24px 0 30px; }
    .contact-row { grid-template-columns: 1fr; gap: 4px; }
    .next-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 30px; }
    .next-inner .button { width: 100%; }
    .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
