:root {
    --ink: #0E2233;
    --text: #0E2233;
    --ink-2: #183449;
    --paper: #F5F7F6;
    --steel: #52667A;
    --rule: #D4DBE1;
    --signal: #E3A21A;
    --on-ink: #F5F7F6;
    --on-ink-muted: #A9B8C6;
    --mark-filter: none;
}
@media (prefers-color-scheme: dark) {
    :root {
        --ink: #0A1A28;
        --text: #F5F7F6;
        --ink-2: #1E3A52;
        --paper: #0F2131;
        --steel: #9FB0C0;
        --rule: #263F55;
        --on-ink: #F5F7F6;
        --on-ink-muted: #A9B8C6;
        --mark-filter: invert(1);
    }
    .access { border: 1px solid var(--rule); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--text);
    font-family: 'Archivo', system-ui, sans-serif;
    font-variation-settings: 'wdth' 100;
    font-size: 17px;
    line-height: 1.55;
}
a { color: inherit; }
a:focus-visible, .btn:focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 3px;
}
.wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Masthead */
.masthead {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px 0;
    font-weight: 600;
    font-size: 18px;
    font-variation-settings: 'wdth' 112;
    letter-spacing: 0.01em;
}
.masthead .home { text-decoration: none; }
.masthead nav { margin-left: auto; display: flex; gap: 24px; }
.masthead .pi { width: 26px; height: auto; margin-left: 14px; filter: var(--mark-filter); }
.masthead nav a {
    font-weight: 500;
    font-size: 16px;
    font-variation-settings: 'wdth' 100;
    text-underline-offset: 4px;
}

/* Hero: the brush mark against the engineered type */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 64px;
    align-items: start;
    padding: 56px 0 88px;
}
.hero-text { position: relative; }
h1 {
    margin: 0 0 24px;
    font-size: clamp(36px, 5.4vw, 64px);
    line-height: 1.04;
    font-weight: 650;
    font-variation-settings: 'wdth' 118;
    letter-spacing: -0.015em;
    max-width: 15ch;
}
.lede {
    margin: 0;
    max-width: 54ch;
    font-size: 19px;
    color: var(--steel);
}

/* Sign-in panel */
.access {
    background: var(--ink);
    color: var(--on-ink);
    border-radius: 4px;
    padding: 32px 28px 28px;
    margin-top: 12px;
}
.access h2 {
    margin: 0 0 24px;
    font-size: 22px;
    font-weight: 600;
    font-variation-settings: 'wdth' 112;
}
.group + .group {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--ink-2);
}
.group h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--on-ink-muted);
}
.buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 10px 12px;
    border-radius: 3px;
    white-space: nowrap;
    background: var(--ink-2);
    color: var(--on-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    font-variation-settings: 'wdth' 108;
    transition: background-color 120ms ease;
}
.btn:hover { background: #24445E; }
.btn img { height: 46px; width: auto; display: block; margin: -6px 0; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* What we do */
.section {
    border-top: 1px solid var(--rule);
    padding: 56px 0;
}
.section h2 {
    margin: 0 0 32px;
    font-size: 26px;
    font-weight: 600;
    font-variation-settings: 'wdth' 112;
}
.services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}
.services h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    font-variation-settings: 'wdth' 108;
}
.services p { margin: 0; color: var(--steel); max-width: 38ch; }

/* Who we serve: set as type, not as cards */
.sectors {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: clamp(26px, 3.6vw, 44px);
    line-height: 1.2;
    font-weight: 500;
    font-variation-settings: 'wdth' 120;
    letter-spacing: -0.01em;
}
.sectors li { display: inline; white-space: nowrap; }
.sectors li:not(:last-child)::after {
    content: " /";
    color: var(--signal);
    font-weight: 400;
    margin-right: 0.25em;
}
.sectors li.others { color: var(--steel); }

/* Footer */
body > .wrap, footer > .wrap { width: 100%; }
body { padding-bottom: var(--footer-h); }
:root { --footer-h: 52px; }
footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    min-height: var(--footer-h);
    display: flex;
    align-items: center;
    background: var(--paper);
    border-top: 1px solid var(--rule);
    padding: 12px 0;
    font-size: 14px;
    color: var(--steel);
}
.foot {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 28px;
}
.foot .copy { margin-left: auto; }
.foot a { color: var(--text); text-underline-offset: 3px; }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 40px; padding: 32px 0 64px; }
    .access { margin-top: 0; }
    .services { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
    .wrap { padding: 0 16px; }
    .buttons { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .btn { transition: none; }
}

/* Navigation state */
.masthead nav a[aria-current="page"] { text-decoration: none; color: var(--steel); }

/* About page */
.profile {
    padding: 48px 0 64px;
    max-width: 760px;
}
.profile .role {
    margin: 0 0 6px;
    font-size: 19px;
    color: var(--steel);
}
.bio p {
    margin: 0 0 18px;
    max-width: 66ch;
    font-size: 18px;
    line-height: 1.65;
}


.expertise {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 48px;
}
.expertise h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
    font-variation-settings: 'wdth' 108;
}
.expertise ul {
    margin: 0;
    padding-left: 18px;
    color: var(--steel);
}
.expertise ul li { margin-bottom: 4px; }
.expertise ul li::marker { color: var(--signal); }

.peace {
    border-top: 1px solid var(--rule);
    padding: 56px 0 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.peace img { width: 180px; height: auto; filter: var(--mark-filter); }
.peace p { margin: 0; }
.peace .motto {
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 500;
    font-variation-settings: 'wdth' 120;
    letter-spacing: -0.01em;
}
.peace .credit { margin-top: 6px; font-size: 14px; color: var(--steel); }

@media (max-width: 700px) {
    .expertise { grid-template-columns: 1fr; }
    .peace { flex-direction: column; align-items: flex-start; }
    .peace img { width: 140px; }
}
.expertise-lead { margin-bottom: 44px; }
.btn.wide { grid-column: 1 / -1; }

/* Client access page */
.client-access {
    padding: 48px 0 88px;
    max-width: 640px;
}
.client-access .lede { margin-bottom: 36px; }
.profile-link { margin: 0 0 32px; }
.profile-link a { text-underline-offset: 4px; }

/* Privacy policy */
.policy { padding: 48px 0 72px; }
.policy-head { max-width: 760px; margin-bottom: 48px; }
.policy-head .lede { margin-bottom: 10px; }
.policy-head .updated { margin: 0; font-size: 15px; color: var(--steel); }
.policy-body {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 64px;
    border-top: 1px solid var(--rule);
    padding-top: 40px;
}
.toc ul {
    position: sticky;
    top: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 15px;
}
.toc li { margin-bottom: 8px; }
.toc a { color: var(--steel); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.policy-text { max-width: 68ch; }
.policy-text section { scroll-margin-top: 24px; }
.policy-text section + section { margin-top: 40px; }
.policy-text h2 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    font-variation-settings: 'wdth' 112;
}
.policy-text p { margin: 0 0 14px; line-height: 1.65; }
.policy-text dl { margin: 0; }
.policy-text dt { font-weight: 600; margin-top: 14px; }
.policy-text dd { margin: 4px 0 0; padding-left: 16px; border-left: 2px solid var(--signal); line-height: 1.65; }
.policy-text code {
    font-family: inherit;
    font-weight: 600;
    font-size: 1em;
}
.policy-text address { font-style: normal; line-height: 1.65; }
.foot a[aria-current="page"] { text-decoration: none; color: var(--steel); }

@media (max-width: 800px) {
    .policy-body { grid-template-columns: 1fr; gap: 32px; }
    .toc ul { position: static; columns: 2; column-gap: 24px; }
}
@media (max-width: 480px) {
    .toc ul { columns: 1; }
}

.masthead nav a { white-space: nowrap; }
@media (max-width: 560px) {
    .masthead { gap: 8px; font-size: 16px; }
    .masthead nav { gap: 14px; }
    .masthead nav a { font-size: 15px; }
    .masthead .pi { width: 22px; margin-left: 6px; }
    :root { --footer-h: 76px; }
    .foot .copy { flex-basis: 100%; text-align: right; }
}
