:root {
    --bg: #f3f0e8;
    --bg-soft: #faf8f3;
    --panel: #ffffff;
    --panel-border: rgba(24, 49, 78, 0.12);
    --text: #1b2430;
    --muted: #5f6b79;
    --primary: #173a63;
    --primary-deep: #102b49;
    --primary-soft: #edf2f7;
    --accent: #a67d3f;
    --accent-strong: #8f6a31;
    --accent-soft: #f3eadb;
    --white: #ffffff;
    --shadow: 0 22px 52px rgba(16, 36, 58, 0.10);
    --shadow-soft: 0 12px 32px rgba(16, 36, 58, 0.06);
    --radius: 14px;
    --radius-sm: 10px;
    --container: 1480px;
    --container-narrow: 1360px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12)),
        var(--bg);
    color: var(--text);
    line-height: 1.72;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--primary);
}

.container {
    width: min(calc(100% - 5.5rem), var(--container));
    margin: 0 auto;
}

.narrow {
    width: min(calc(100% - 5.5rem), var(--container-narrow));
    margin: 0 auto;
}

.section,
.hero,
.page-hero {
    padding: 6.25rem 0;
}

.small-hero {
    padding-top: 6.25rem;
    padding-bottom: 4.25rem;
}

.muted-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.68));
    border-top: 1px solid rgba(24, 49, 78, 0.08);
    border-bottom: 1px solid rgba(24, 49, 78, 0.08);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(12px);
    background: rgba(250, 248, 243, 0.96);
    border-top: 4px solid var(--accent);
    border-bottom: 1px solid rgba(24, 49, 78, 0.10);
    box-shadow: 0 12px 26px rgba(16, 36, 58, 0.04);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 88px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    width: auto;
    flex-shrink: 0;
    text-decoration: none;
}

.brand img,
.brand-logo {
    height: 72px;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    display: block;
}

.brand-wordmark {
    font-family: "Sora", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #111111;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
}

.site-nav a:hover,
.text-link:hover {
    color: var(--accent);
}

.site-nav a.is-active {
    color: var(--accent);
}

.site-nav a.is-active::after,
.site-nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.7rem;
    height: 2px;
    background: currentColor;
}

.nav-toggle {
    display: none;
    border: 1px solid rgba(24, 49, 78, 0.14);
    background: var(--white);
    color: var(--primary);
    border-radius: 8px;
    padding: 0.72rem 1rem;
    font-weight: 800;
}

.hero-grid,
.split-layout,
.contact-grid,
.footer-grid {
    display: grid;
    gap: 2.2rem;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.32fr) minmax(340px, 0.88fr);
    align-items: stretch;
}

.split-layout,
.contact-grid,
.footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-grid {
    grid-template-columns: 1.35fr 0.82fr 0.82fr;
}

.card-grid {
    display: grid;
    gap: 1.65rem;
}

.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.35rem;
}

.card,
.cta-card,
.flash-message {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.card,
.cta-card {
    padding: 2.15rem;
}

.profile-card {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(260px, 0.78fr);
    gap: 2.25rem;
}

.team-stack {
    display: grid;
    gap: 1.65rem;
}

.hero {
    padding-top: 6.8rem;
}

.hero-copy,
.lead {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 780px;
}

.hero h1,
.page-hero h1,
.section-head h2,
.card h2,
.card h3,
.cta-card h2,
.site-footer h3 {
    font-family: "Noto Serif", Georgia, serif;
    color: var(--primary-deep);
}

.hero h1,
.page-hero h1 {
    font-size: clamp(2.5rem, 4vw, 4.2rem);
    line-height: 1.12;
    margin: 0 0 1.1rem;
    letter-spacing: -0.025em;
    max-width: 24ch;
}

.section-head {
    margin-bottom: 2rem;
}

.section-head h2,
.card h2,
.card h3,
.cta-card h2,
.site-footer h3 {
    margin-top: 0;
    line-height: 1.28;
    letter-spacing: -0.01em;
}

.eyebrow,
.panel-kicker,
.member-role,
.footer-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.95rem;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #fbf8f1);
}

.hero-panel::before,
.card::before,
.cta-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), rgba(166, 125, 63, 0.18));
    border-radius: var(--radius) 0 0 var(--radius);
}

.card,
.cta-card,
.hero-panel {
    position: relative;
}

.hero-actions,
.download-list,
.compact-list,
.form-grid {
    display: grid;
    gap: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1.9rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.38rem;
    border-radius: 9px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-deep);
    color: #ffffff;
}

.btn-secondary {
    border-color: rgba(24, 49, 78, 0.18);
    color: var(--primary);
    background: var(--white);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-sm {
    padding: 0.74rem 1.08rem;
    font-size: 0.95rem;
}

.check-list,
.bullet-list,
.footer-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--muted);
}

.check-list li,
.bullet-list li,
.footer-list li {
    margin-bottom: 0.78rem;
}

.stat-card {
    background: linear-gradient(180deg, #ffffff, #fbfaf7);
}

.stat-card strong {
    display: block;
    font-size: 1.72rem;
    color: var(--primary-deep);
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.stat-card span,
.card p,
.footer-list,
.site-footer p,
.note,
label,
.contact-form,
.download-card span:first-child {
    color: var(--muted);
}

.download-list {
    grid-template-columns: 1fr;
}

.download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(24, 49, 78, 0.12);
    background: linear-gradient(180deg, #ffffff, #fbfbf9);
}

.download-card:hover,
.compact-list a:hover {
    border-color: rgba(166, 125, 63, 0.45);
    box-shadow: var(--shadow-soft);
}

.download-card span:last-child {
    color: var(--primary);
    font-weight: 800;
}

.compact-list a {
    display: block;
    padding: 0.92rem 1rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #ffffff, #fbfbf9);
    border: 1px solid rgba(24, 49, 78, 0.12);
    color: var(--primary);
    font-weight: 700;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(180deg, #ffffff, #f8f3ea);
}

.contact-form label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 700;
    color: var(--primary-deep);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(24, 49, 78, 0.14);
    background: #ffffff;
    color: var(--text);
    padding: 0.96rem 1rem;
    outline: none;
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(166, 125, 63, 0.12);
}

.contact-form textarea {
    resize: vertical;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flash-stack {
    padding-top: 1rem;
}

.flash-message {
    padding: 1rem 1.1rem;
}

.site-footer {
    background: linear-gradient(180deg, var(--primary-deep), #0d243b);
    color: rgba(255, 255, 255, 0.86);
    margin-top: 2rem;
    padding-top: 3.25rem;
}

.site-footer h3,
.site-footer .footer-kicker,
.site-footer a,
.site-footer .footer-bottom {
    color: #ffffff;
}

.site-footer p,
.site-footer .footer-list,
.site-footer .footer-bottom {
    color: rgba(255, 255, 255, 0.82);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.75rem 0 2.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 1.6rem;
}

.center-text {
    text-align: center;
}

code {
    background: rgba(24, 49, 78, 0.07);
    padding: 0.1rem 0.35rem;
    border-radius: 0.4rem;
}

@media (max-width: 1320px) {
    .hero-grid,
    .split-layout,
    .footer-grid,
    .contact-grid,
    .profile-card,
    .three-up,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .two-up,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .cta-card,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 1180px) {
    .container,
    .narrow {
        width: min(calc(100% - 2.8rem), 100%);
    }
}

@media (max-width: 820px) {
    body {
        font-size: 16px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        right: 1rem;
        top: 80px;
        width: min(360px, calc(100% - 2rem));
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(24, 49, 78, 0.12);
        border-radius: 12px;
        box-shadow: var(--shadow);
    }

    .site-nav a.is-active::after,
    .site-nav a:hover::after {
        display: none;
    }

    .site-nav.is-open {
        display: flex;
    }

    .hero,
    .section,
    .page-hero {
        padding: 4.4rem 0;
    }

    .hero h1,
    .page-hero h1 {
        max-width: none;
    }

    .brand img,
    .brand-logo {
        height: 48px;
    }

    .brand-wordmark {
        font-size: 1.4rem;
    }
}

.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.portfolio-modal.is-open {
    display: block;
}

.portfolio-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 35, 0.55);
}

.portfolio-modal-dialog {
    position: relative;
    width: min(760px, calc(100% - 2rem));
    margin: 6vh auto;
    background: #ffffff;
    border: 1px solid rgba(24, 49, 78, 0.12);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(16, 36, 58, 0.18);
    padding: 2rem 2rem 1.6rem;
    max-height: 88vh;
    overflow-y: auto;
    z-index: 1;
}

.portfolio-close {
    position: absolute;
    top: 0.9rem;
    right: 1rem;
    border: none;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #173a63;
}

.portfolio-modal-dialog h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.portfolio-modal .bullet-list {
    padding-left: 1.2rem;
}

.license-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
}

.license-modal.is-open {
    display: block;
}

.license-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 35, 0.7);
}

.license-modal-dialog {
    position: relative;
    width: min(1100px, calc(100% - 2rem));
    margin: 4vh auto;
    background: #ffffff;
    border: 1px solid rgba(24, 49, 78, 0.12);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(16, 36, 58, 0.22);
    padding: 1.5rem 1.5rem 1.25rem;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.license-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    border: none;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #173a63;
}

.license-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(24, 49, 78, 0.1);
    margin-top: 1rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.25rem;
}

.portfolio-card {
    grid-column: span 4;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.portfolio-card:nth-child(1),
.portfolio-card:nth-child(6),
.portfolio-card:nth-child(11) {
    grid-column: span 8;
}

.portfolio-shot {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.portfolio-shot img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    max-height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.portfolio-shot:hover img {
    transform: scale(1.02);
}

.portfolio-meta {
    padding: 1rem 1.1rem 1.15rem;
}

.portfolio-meta h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.portfolio-meta p {
    margin: 0;
    color: var(--muted);
}

.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: none;
}

.image-viewer.is-open {
    display: block;
}

.image-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 18, 30, 0.82);
}

.image-viewer-dialog {
    position: relative;
    width: min(1400px, calc(100% - 2rem));
    margin: 3vh auto;
    background: #0f1724;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    z-index: 1;
}

.image-viewer-topbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.75rem;
    color: #ffffff;
}

.image-viewer-topbar h2 {
    color: #ffffff;
    margin: 0.2rem 0 0.25rem;
}

.image-viewer-caption {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.image-viewer-controls {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.image-viewer-media {
    padding: 0 1.25rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.image-viewer-media img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    background: #ffffff;
}

.image-viewer-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

@media (max-width: 1320px) {
    .portfolio-card {
        grid-column: span 6;
    }

    .portfolio-card:nth-child(1),
    .portfolio-card:nth-child(6),
    .portfolio-card:nth-child(11) {
        grid-column: span 12;
    }
}

@media (max-width: 820px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card,
    .portfolio-card:nth-child(1),
    .portfolio-card:nth-child(6),
    .portfolio-card:nth-child(11) {
        grid-column: span 1;
    }

    .image-viewer-topbar {
        flex-direction: column;
        padding-right: 3.5rem;
    }

    .image-viewer-media {
        min-height: auto;
    }
}
body {
    font-size: 16px !important;
    line-height: 1.66 !important;
}

.site-nav a {
    font-size: 0.92rem !important;
    letter-spacing: 0.045em !important;
}

.hero h1,
.page-hero h1 {
    font-size: clamp(1.95rem, 3vw, 3rem) !important;
    line-height: 1.1 !important;
    max-width: 20ch !important;
}

.hero-copy,
.lead {
    font-size: 0.92rem !important;
    line-height: 1.64 !important;
    max-width: 720px !important;
}

.hero-panel h2 {
    font-size: 1.24rem !important;
    line-height: 1.22 !important;
}

.hero-panel p,
.card p,
.site-footer p,
.check-list,
.bullet-list,
.footer-list {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
}

.section-head h2,
.cta-card h2 {
    font-size: 1.72rem !important;
}

.card h2 {
    font-size: 1.38rem !important;
}

.card h3 {
    font-size: 1.12rem !important;
}

.eyebrow,
.panel-kicker,
.member-role,
.footer-kicker {
    font-size: 0.82rem !important;
    letter-spacing: 0.14em !important;
}

.stat-card strong {
    font-size: 1.42rem !important;
}

.stat-card span {
    font-size: 0.88rem !important;
}

.compact-list a,
.btn,
.btn-sm {
    font-size: 0.88rem !important;
}

@media (max-width: 820px) {
    body {
        font-size: 14.5px !important;
    }

    .site-nav a {
        font-size: 0.88rem !important;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(1.7rem, 6.4vw, 2.25rem) !important;
    }

    .hero-copy,
    .lead {
        font-size: 0.9rem !important;
    }

    .section-head h2,
    .cta-card h2 {
        font-size: 1.42rem !important;
    }

    .card h2 {
        font-size: 1.24rem !important;
    }

    .card h3,
    .hero-panel h2 {
        font-size: 1.05rem !important;
    }
}body {
    font-size: 16px !important;
    line-height: 1.66 !important;
}

.site-nav a {
    font-size: 0.92rem !important;
    letter-spacing: 0.045em !important;
}

.hero h1,
.page-hero h1 {
    font-size: clamp(1.95rem, 3vw, 3rem) !important;
    line-height: 1.1 !important;
    max-width: 20ch !important;
}

.hero-copy,
.lead {
    font-size: 0.92rem !important;
    line-height: 1.64 !important;
    max-width: 720px !important;
}

.hero-panel h2 {
    font-size: 1.24rem !important;
    line-height: 1.22 !important;
}

.hero-panel p,
.card p,
.site-footer p,
.check-list,
.bullet-list,
.footer-list {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
}

.section-head h2,
.cta-card h2 {
    font-size: 1.72rem !important;
}

.card h2 {
    font-size: 1.38rem !important;
}

.card h3 {
    font-size: 1.12rem !important;
}

.eyebrow,
.panel-kicker,
.member-role,
.footer-kicker {
    font-size: 0.82rem !important;
    letter-spacing: 0.14em !important;
}

.stat-card strong {
    font-size: 1.42rem !important;
}

.stat-card span {
    font-size: 0.88rem !important;
}

.compact-list a,
.btn,
.btn-sm {
    font-size: 0.88rem !important;
}

@media (max-width: 820px) {
    body {
        font-size: 14.5px !important;
    }

    .site-nav a {
        font-size: 0.88rem !important;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(1.7rem, 6.4vw, 2.25rem) !important;
    }

    .hero-copy,
    .lead {
        font-size: 0.9rem !important;
    }

    .section-head h2,
    .cta-card h2 {
        font-size: 1.42rem !important;
    }

    .card h2 {
        font-size: 1.24rem !important;
    }

    .card h3,
    .hero-panel h2 {
        font-size: 1.05rem !important;
    }
}
