@font-face {
    font-family: Manrope;
    src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
}

:root {
    color-scheme: light;
    --paper: #f6f5ee;
    --white: #fffefa;
    --ink: #172b28;
    --muted: #4a5b54;
    --line: #cdd8d0;
    --surface-tint: #e8efeb;
    --brand-soft: #d6e8e1;
    --brand: #22b8bf;
    --brand-strong: #285e57;
    --brand-dark: #143b39;
    --muted-on-dark: #e0ebe5;
    --accent-on-dark: #b9ddd4;
    --radius: 22px;
    --gutter: clamp(20px, 5vw, 72px);
    font-family: Manrope, system-ui, sans-serif;
    line-height: 1.6;
}

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

body { margin: 0; background: var(--paper); color: var(--ink); }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[id] { scroll-margin-block-start: 24px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.wrap { width: min(1232px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link {
    position: absolute;
    z-index: 1;
    inset: 12px auto auto 12px;
    padding: 10px 16px;
    border-radius: 6px;
    background: var(--brand);
    font-weight: 800;
}
.skip-link:not(:focus) { clip-path: inset(50%); }

.site-header { border-bottom: 1px solid var(--line); }
.site-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px 30px;
    min-height: 78px;
}
.brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 10px;
    min-height: 44px;
    color: var(--ink);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.055em;
    text-decoration: none;
    white-space: nowrap;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    aspect-ratio: 1;
    border-radius: 10px;
    background: var(--brand-dark);
    color: var(--brand);
    font-size: 15px;
    letter-spacing: -.08em;
}
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 clamp(14px, 3vw, 38px);
    padding: 0;
    list-style: none;
}
.nav-links a, .footer-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}
.nav-links a:hover, .footer-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.nav-contact { justify-self: end; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 10px 19px;
    border: 1px solid var(--brand-dark);
    border-radius: 8px;
    background: var(--brand-dark);
    color: var(--white);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
}
.button:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.button:focus-visible { outline-color: var(--brand-strong); }
.button-outline { background: transparent; border-color: var(--brand-strong); color: var(--brand-strong); }
.button-outline:hover { background: var(--surface-tint); }
.button-small { min-height: 44px; padding-inline: 15px; font-size: 14px; }

.arrow {
    display: inline-block;
    flex: 0 0 auto;
    width: .9em;
    height: .9em;
    position: relative;
}
.arrow::before, .arrow::after { content: ""; position: absolute; }
.arrow::before { top: 50%; left: 0; right: 0; border-top: 1.5px solid; }
.arrow::after {
    top: 50%;
    right: 0;
    width: .5em;
    height: .5em;
    border-top: 1.5px solid;
    border-right: 1.5px solid;
    transform: translate(-1px, -50%) rotate(45deg);
}
.arrow-diagonal { transform: rotate(-45deg); }
.arrow-up { transform: rotate(-90deg); }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5.5vw, 84px);
    padding-block: clamp(46px, 6vw, 88px);
}
.hero h1 {
    font-size: clamp(46px, 6.05vw, 91px);
    font-weight: 800;
    line-height: .99;
    letter-spacing: -.02em;
}
.hero h1 span { display: block; }
.hero h1 .hero-location { color: var(--brand-strong); }
.hero h1 .hero-training {
    margin-top: .34em;
    color: var(--muted);
    font-size: clamp(23px, 3.3vw, 48px);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -.04em;
}
.lead {
    max-width: 46ch;
    margin-top: 25px;
    color: var(--muted);
    font-size: clamp(16px, 1.4vw, 19px);
    font-weight: 600;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.portrait {
    align-self: stretch;
    display: grid;
    grid-template-rows: 1fr auto;
    min-width: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--brand-dark);
    color: var(--white);
}
.portrait img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 470px;
    aspect-ratio: 1 / 1.06;
    object-fit: cover;
    object-position: center 27%;
}
.portrait figcaption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px 14px;
    padding: 14px 20px;
}
.portrait figcaption strong { font-size: 16px; }
.portrait figcaption span { color: var(--accent-on-dark); font-size: 13px; font-weight: 700; }

.section { padding-block: clamp(52px, 7vw, 102px); }
.section-title {
    font-size: clamp(38px, 5.05vw, 72px);
    font-weight: 800;
    letter-spacing: -.075em;
    line-height: 1.04;
}
.section-head { margin-bottom: clamp(22px, 3vw, 38px); }
.services { border-top: 1px solid var(--line); }
.offer-grid, .reference-grid { display: grid; gap: 16px; }
.offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.offer {
    display: flex;
    flex-direction: column;
    padding: clamp(22px, 3vw, 42px);
    border-radius: var(--radius);
    background: var(--surface-tint);
}
.offer-dark { background: var(--brand-dark); color: var(--white); }
.offer-audience {
    margin-top: 5px;
    color: var(--brand-strong);
    font-size: 14px;
    font-weight: 800;
}
.offer-dark .offer-audience { color: var(--accent-on-dark); }
.offer h3, .reference h3 {
    font-weight: 800;
    line-height: 1.08;
}
.offer h3 { font-size: clamp(26px, 3.15vw, 44px); letter-spacing: -.04em; }
.offer-copy { margin-top: 12px; max-width: 48ch; font-weight: 600; }
.offer-dark .offer-copy { color: var(--muted-on-dark); }
.tasks {
    display: grid;
    gap: 6px;
    margin: 17px 0 16px;
    padding-left: 1.2em;
    font-size: 15px;
    font-weight: 700;
}
.tasks li::marker { color: var(--brand-strong); }
.offer-dark li::marker { color: var(--accent-on-dark); }
.offer-footer {
    margin-top: auto;
    padding-top: 4px;
    border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent);
}
.offer-link, .reference a, .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--brand-strong);
    font-size: 14px;
    font-weight: 800;
    text-underline-offset: .25em;
}
.reference a, .contact-link { margin-top: auto; }
.offer-dark .offer-link { color: var(--accent-on-dark); }
.offer-link:hover, .reference a:hover, .contact-link:hover { text-decoration-thickness: 2px; }

.references { background: var(--surface-tint); }
.reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reference {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}
.reference:target { outline: 2px solid var(--brand-strong); outline-offset: 4px; }
.reference-featured {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}
.reference-metric {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 8px;
    color: var(--brand-strong);
    font-size: 15px;
    font-weight: 800;
}
.reference-metric strong {
    font-size: clamp(25px, 2.8vw, 34px);
    line-height: 1.15;
    letter-spacing: -.04em;
}
.reference-featured .reference-metric {
    display: grid;
    align-content: center;
    gap: 4px;
    background: var(--brand-dark);
    color: var(--accent-on-dark);
}
.reference-featured .reference-metric strong { font-size: clamp(30px, 3.8vw, 46px); }
.reference-body,
.reference-featured .reference-metric { padding: clamp(20px, 3vw, 36px); }
.reference-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}
.reference-featured .reference-body { justify-content: center; }
.reference h3 { font-size: clamp(25px, 2.65vw, 36px); letter-spacing: -.04em; }
.reference-meta { margin-top: 5px; }
.reference-meta, .date { color: var(--brand-strong); font-size: 13px; font-weight: 800; }
.reference-body .reference-metric { margin-top: 15px; }
.reference-copy { max-width: 62ch; padding-block: 12px 14px; color: var(--muted); font-size: 15px; }
.reference-featured .reference-copy { padding-bottom: 0; }

.career { display: grid; gap: clamp(24px, 3vw, 40px); }
.career-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px 40px;
}
.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 26px);
}
.stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.stats div + div { border-inline-start: 1px solid var(--line); padding-inline-start: clamp(12px, 2vw, 26px); }
.stats dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.stats dd {
    color: var(--brand-strong);
    font-size: clamp(34px, 3.5vw, 45px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1;
}
.timeline { padding: 0; list-style: none; }
.timeline li {
    display: grid;
    grid-template-columns: minmax(90px, 116px) minmax(0, 1fr);
    gap: 6px 21px;
    padding-block: 16px;
    border-top: 1px solid var(--line);
}
.timeline .date span { display: block; color: var(--muted); font-weight: 600; }
.timeline h3, .degrees h3 { font-size: 18px; font-weight: 800; line-height: 1.35; letter-spacing: -.035em; }
.career-history > .timeline h3 { font-size: clamp(20px, 2vw, 24px); }
.timeline h3 + p, .degrees h3 + p { max-width: 70ch; margin-top: 4px; color: var(--muted); font-size: 14px; }
.career-history details { margin-top: 8px; border-radius: 10px; background: var(--surface-tint); }
.career-history > .timeline + details { margin-top: 16px; }
.career-history details > .timeline { margin-inline: 16px; }
summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 50px;
    padding: 8px 16px;
    list-style: none;
    cursor: pointer;
    font-weight: 800;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--brand-strong); }
summary::after {
    content: "";
    flex: 0 0 11px;
    height: 11px;
    margin-right: 4px;
    border-right: 2px solid;
    border-bottom: 2px solid;
    transform: translateY(-2px) rotate(45deg);
}
details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.degrees { display: grid; gap: 15px; padding: 2px 16px 17px; }
.degrees .date { display: block; margin-bottom: 2px; }

.contact { padding-bottom: 0; }
.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 24px 9%;
    padding: clamp(24px, 5.4vw, 76px);
    border-radius: var(--radius);
    background: var(--brand-dark);
    color: var(--white);
}
.contact-panel .section-title { max-width: 13ch; }
.contact-panel p { margin-top: 14px; color: var(--muted-on-dark); }
.contact-actions { display: grid; justify-items: start; gap: 5px; }
.contact-panel .button {
    border-color: var(--accent-on-dark);
    background: var(--accent-on-dark);
    color: var(--ink);
    overflow-wrap: anywhere;
}
.contact-panel .button:hover { border-color: var(--brand-soft); background: var(--brand-soft); }
.contact-panel .button:focus-visible { outline-color: var(--white); }
.contact-link { color: var(--accent-on-dark); }

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0 24px;
    padding-block: 24px;
    color: var(--muted);
    font-size: 13px;
}
.footer-link { gap: 8px; color: var(--ink); }

.error-page { display: grid; min-height: 100vh; align-content: center; justify-items: start; padding-block: 24px; }
.error-page p { margin-block: 16px 24px; color: var(--muted); }
.error-page .error-code { margin: 0 0 10px; color: var(--brand-strong); font-weight: 800; }

@media (max-width: 60rem) {
    .hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px; }
    .portrait { align-self: center; }
}
@media (max-width: 48rem) {
    .site-nav { grid-template-columns: 1fr auto; gap: 0 16px; padding-top: 10px; }
    .nav-links { grid-area: 2 / 1 / 3 / -1; justify-content: flex-start; }
    .nav-contact { grid-area: 1 / 2; }
    .hero { grid-template-columns: 1fr; gap: 28px; }
    .hero h1 { font-size: clamp(39px, 9.5vw, 69px); }
    .portrait { max-width: 480px; }
    .portrait img { max-height: 390px; }
    .offer-grid, .reference-grid, .reference-featured { grid-template-columns: minmax(0, 1fr); }
    .career-head { flex-direction: column; align-items: flex-start; }
    .stats { width: 100%; }
    .timeline li { grid-template-columns: minmax(0, 1fr); }
    .timeline .date span { display: inline; }
    .timeline .date span::before { content: " · "; }
    .contact-panel { grid-template-columns: 1fr; }
}
@media (max-width: 34rem) {
    .hero h1 { font-size: clamp(35px, 10.1vw, 54px); }
    .hero-actions { margin-top: 21px; }
}
