﻿.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
    --bg: #F6F7F9;
    --surface: #FFFFFF;
    --band: #0F2540;
    --band-soft: #1B3A5C;
    --ink: #0F2540;
    --ink-soft: #4A5A6B;
    --ink-faint: #8B98A5;
    --accent: #1F4E8C;
    --accent-soft: #E7EEF7;
    --gold: #B08D57;
    --gold-soft: #F5EEE0;
    --line: #DDE2E8;
    --radius: 8px;
    --display: 'Fraunces', serif;
    --body: 'Public Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--gold);
    color: #fff;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 14px;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    font-family: var(--display);
}

.label {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 600;
}

/* letterhead */
.letterhead {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 14px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width:700px) {
    .letterhead {
        padding: 14px 20px;
    }
}

.letterhead .mark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 16px;
}

.seal {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--gold);
    font-weight: 700;
    overflow: hidden;
}

.seal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}

.letterhead nav {
    display: flex;
    gap: 26px;
    font-size: 13px;
    color: var(--ink-soft);
}

    .letterhead nav a:hover {
        color: var(--accent);
    }

@media (max-width:700px) {
    .letterhead nav {
        display: none;
    }
}

/* hero */
.hero-band {
    background: linear-gradient(180deg, var(--band) 0%, var(--band-soft) 100%);
    color: #E7ECF2;
    padding: 64px 40px 56px;
}

@media (max-width:700px) {
    .hero-band {
        padding: 44px 20px 40px;
    }
}

.hero-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    gap: 36px;
    align-items: center;
    flex-wrap: wrap;
}

.photo {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(150deg,#3A5C82,#1A3350);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-size: 41px;
    font-weight: 600;
    color: #fff;
    border: 3px solid rgba(255,255,255,.18);
    overflow: hidden;
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}

.hero-copy {
    flex: 1;
    min-width: 260px;
}

    .hero-copy .label {
        color: #9FB3C8;
        margin-bottom: 8px;
    }

h1 {
    font-size: clamp(28px,4.09vw,41px);
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -.01em;
}

.hero-copy .role {
    font-size: 15.5px;
    color: #C3D1E0;
    margin-bottom: 18px;
}

.hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: #9FB3C8;
    margin-bottom: 22px;
}

    .hero-meta span {
        display: flex;
        align-items: center;
        gap: 6px;
    }

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 1.1em;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    vertical-align: -0.2em;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'liga';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
    user-select: none;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    font-size: 13px;
    font-weight: 600;
    padding: 11px 20px;
    border-radius: 6px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity .15s ease, transform .15s ease;
    cursor: pointer;
}

    .btn:hover {
        transform: translateY(-1px);
    }

.btn-gold {
    background: var(--gold);
    color: #2A2210;
}

.btn-ghost {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-color: rgba(255,255,255,.28);
}

.btn-line {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

    .btn-line:hover {
        background: var(--accent-soft);
    }

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
}

/* shell */
.shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 40px 80px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 44px;
}

@media (max-width:860px) {
    .shell {
        grid-template-columns: 1fr;
        padding: 36px 20px 60px;
    }
}

/* sidebar */
.side {
    position: sticky;
    top: 78px;
    align-self: start;
}

@media (max-width:860px) {
    .side {
        position: static;
    }
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 16px;
}

    .card h2 {
        font-family: var(--display);
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--line);
    }

.facts div {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    padding: 7px 0;
    border-bottom: 1px dotted var(--line);
}

    .facts div:last-child {
        border-bottom: none;
    }

.facts .k {
    color: var(--ink-faint);
}

.facts .v {
    font-weight: 600;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.pill {
    font-size: 9px;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
}

/* sections */
.sec {
    margin-bottom: 52px;
    scroll-margin-top: 78px;
}

.sec-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 24px;
}

.sec-num {
    font-family: var(--display);
    font-size: 13.5px;
    color: var(--gold);
    font-weight: 600;
}

.sec-title {
    font-family: var(--display);
    font-size: 22.5px;
    font-weight: 600;
}

.rule {
    flex: 1;
    height: 1px;
    background: var(--line);
}

p.lead {
    color: var(--ink-soft);
    font-size: 14px;
    max-width: 600px;
    white-space: pre-line;
}

.exp-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

    .exp-row:first-of-type {
        padding-top: 0;
    }

.exp-title {
    font-family: var(--display);
    font-size: 16px;
    font-weight: 600;
}

.exp-org {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.exp-date {
    font-size: 12px;
    color: var(--ink-faint);
    text-align: right;
    white-space: nowrap;
}

.exp-desc {
    grid-column: 1/-1;
    color: var(--ink-soft);
    font-size: 13.5px;
    margin-top: 8px;
    max-width: 640px;
    white-space: pre-line;
}

.proj-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.proj-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .proj-item:hover {
        border-color: var(--accent);
        box-shadow: 0 6px 18px rgba(15,37,64,.06);
    }

/* Projects cards stack as rows (title / thumb+desc / tags / links) instead of the
   blog cards' left-content-right-link row — scoped so .proj-item's shared chrome
   (background, border, hover) still applies to both without affecting the blog layout. */
.proj-stack {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

    .proj-stack > .proj-link {
        align-self: flex-start;
    }

.proj-main {
    display: flex;
    gap: 16px;
    align-items: center;
}

@media (max-width:700px) {
    .proj-main {
        flex-direction: column;
        align-items: flex-start;
    }
}

.proj-thumb {
    width: 110px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.proj-title {
    font-family: var(--display);
    font-size: 15.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.proj-desc {
    font-size: 13px;
    color: var(--ink-soft);
    max-width: 480px;
    white-space: pre-line;
    flex: 1;
}

.proj-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-sm {
    font-size: 11px;
    color: var(--ink-soft);
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 3px 9px;
    border-radius: 4px;
}

.proj-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    align-self: center;
    white-space: nowrap;
    display: flex;
    gap: 14px;
}

.testi {
    border-left: 3px solid var(--gold);
    background: var(--surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px;
    margin-bottom: 14px;
}

    .testi q {
        font-family: var(--display);
        font-size: 15px;
        font-style: italic;
        display: block;
        margin-bottom: 12px;
        color: var(--ink);
        white-space: pre-line;
    }

.testi-name {
    font-size: 12.5px;
    font-weight: 700;
}

.testi-role {
    font-size: 11.5px;
    color: var(--ink-faint);
}

.contact-card {
    background: var(--band);
    color: #E7ECF2;
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

    .contact-card h3 {
        font-family: var(--display);
        font-size: 18.5px;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .contact-card p {
        color: #B9C7D6;
        font-size: 13px;
        max-width: 340px;
    }

.contact-links {
    display: flex;
    gap: 16px;
    font-size: 12.5px;
    color: #C3D1E0;
}

    .contact-links a:hover {
        color: #fff;
    }

.contact-form {
    max-width: 680px;
}

    .contact-form .field {
        margin-bottom: 14px;
    }

    .contact-form label {
        font-size: 12.5px;
        color: var(--ink-soft);
        display: block;
        margin-bottom: 4px;
    }

    .contact-form input, .contact-form textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 6px;
        font-family: var(--body);
        font-size: 13.5px;
    }

.captcha-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.captcha-image {
    width: 150px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    overflow: hidden;
    display: flex;
    flex-shrink: 0;
}

    .captcha-image svg {
        width: 100%;
        height: 100%;
        display: block;
    }

.captcha-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink-soft);
    cursor: pointer;
    flex-shrink: 0;
    transition: color .15s ease, border-color .15s ease;
}

    .captcha-refresh:hover:not(:disabled) {
        color: var(--accent);
        border-color: var(--accent);
    }

    .captcha-refresh .material-symbols-outlined {
        font-size: 18px;
    }

.contact-form input.captcha-input {
    width: 110px;
    height: 42px;
    padding: 0 10px;
    text-transform: uppercase;
}

/* Scoped to this row only — the Send Message button reuses the site-wide .btn.btn-primary
   look everywhere else, so its base padding/height must stay untouched elsewhere. */
.captcha-row .btn {
    height: 42px;
    padding: 0 20px;
    border-radius: 6px;
}

.contact-success {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 20px 24px;
    border-radius: var(--radius);
    font-size: 13.5px;
}

footer {
    text-align: center;
    padding: 30px 20px;
    font-size: 11.5px;
    color: var(--ink-faint);
    border-top: 1px solid var(--line);
}
