:root {
    --bg: #f6f3ed;
    --bg-soft: #f0ece4;
    --surface: rgba(255, 255, 255, 0.8);
    --surface-strong: #ffffff;
    --ink: #162333;
    --ink-soft: #516171;
    --line: rgba(22, 35, 51, 0.12);
    --accent: #b6945a;
    --accent-soft: rgba(182, 148, 90, 0.12);
    --navy: #0f1b2b;
    --shadow: 0 24px 60px rgba(15, 27, 43, 0.12);
    --shadow-soft: 0 14px 30px rgba(15, 27, 43, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: min(1180px, calc(100vw - 40px));
    --container-narrow: min(760px, calc(100vw - 40px));
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top right, rgba(182, 148, 90, 0.18), transparent 30%),
        linear-gradient(180deg, #fbfaf7 0%, var(--bg) 40%, #f9f6f0 100%);
    line-height: 1.6;
}

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

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

iframe {
    width: 100%;
    border: 0;
}

button,
input,
select,
textarea {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    padding: 0.95rem 1rem;
    color: var(--ink);
}

input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 3px solid rgba(182, 148, 90, 0.24);
    outline-offset: 2px;
}

textarea {
    resize: vertical;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.container.narrow,
.narrow {
    width: var(--container-narrow);
    margin: 0 auto;
}

.wide {
    width: var(--container);
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 1000;
    background: var(--navy);
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 12px;
}

.skip-link:focus {
    top: 16px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h1,
h2,
h3 {
    font-family: "Fraunces", serif;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
}

h1 {
    font-size: clamp(2.8rem, 5vw, 5.1rem);
}

h2 {
    font-size: clamp(2rem, 3.4vw, 3.1rem);
}

h3 {
    font-size: clamp(1.32rem, 2vw, 1.75rem);
}

p {
    margin: 0 0 1rem;
    color: var(--ink-soft);
}

.lead {
    font-size: clamp(1.12rem, 2vw, 1.34rem);
    max-width: 60ch;
}

.lead-sm {
    font-size: 1.12rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    background: currentColor;
}

.button,
.button--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 52px;
    padding: 0 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: 0.25s ease;
}

.button {
    background: linear-gradient(135deg, #16293f, #0f1b2b);
    color: #fff;
    box-shadow: 0 16px 30px rgba(15, 27, 43, 0.22);
}

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

.button--ghost {
    border-color: rgba(22, 35, 51, 0.16);
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy);
    font-weight: 700;
}

.text-link::after {
    content: "→";
    transition: transform 0.2s ease;
}

.text-link:hover::after {
    transform: translateX(4px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(18px);
    background: rgba(248, 244, 237, 0.78);
    border-bottom: 1px solid rgba(22, 35, 51, 0.06);
}

.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 84px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.95rem;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, #182a42, #324560);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand__text strong {
    font-size: 1rem;
}

.brand__text small {
    color: var(--ink-soft);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.site-nav a {
    position: relative;
    font-weight: 700;
    color: var(--ink);
}

.site-nav a.is-active:not(.button)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.45rem;
    height: 2px;
    background: var(--accent);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(22, 35, 51, 0.12);
    border-radius: 14px;
    background: #fff;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--navy);
}

.breadcrumb {
    border-bottom: 1px solid rgba(22, 35, 51, 0.06);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
    margin: 0;
    padding: 1rem 0;
    font-size: 0.95rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 0.6rem;
    color: rgba(22, 35, 51, 0.4);
}

.hero,
.page-hero {
    position: relative;
    overflow: hidden;
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 27, 43, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(15, 27, 43, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 75%);
    pointer-events: none;
}

.hero--home {
    padding: 5.5rem 0 4.25rem;
}

.page-hero {
    padding: 4.3rem 0 2.6rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 2rem;
    align-items: stretch;
}

.hero-actions,
.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero-actions {
    margin-top: 2rem;
}

.hero-metrics {
    margin-top: 2rem;
}

.hero-metrics div {
    min-width: 160px;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(22, 35, 51, 0.08);
    box-shadow: var(--shadow-soft);
}

.hero-metrics strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--navy);
    font-size: 1.15rem;
}

.hero-panel,
.highlight-box,
.story-note,
.contact-panel,
.form-panel,
.map-card,
.article-cta,
.aside-card,
.empty-state,
.faq-item,
.service-card,
.story-card,
.team-card,
.article-card,
.timeline-item,
.service-detail,
.cta-banner {
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(22, 35, 51, 0.08);
    box-shadow: var(--shadow-soft);
}

.hero-panel {
    padding: 2rem;
    background:
        linear-gradient(180deg, rgba(15, 27, 43, 0.96), rgba(34, 49, 70, 0.95)),
        #0f1b2b;
    color: #fff;
}

.hero-panel p,
.hero-panel li {
    color: rgba(255, 255, 255, 0.8);
}

.hero-panel .eyebrow {
    color: rgba(182, 148, 90, 0.92);
}

.section {
    padding: 4.8rem 0;
}

.section--soft {
    background: linear-gradient(180deg, rgba(255,255,255,0.48), rgba(240,236,228,0.28));
}

.section--cta {
    padding-top: 0;
}

.section-heading,
.two-columns,
.contact-preview,
.story-layout,
.contact-layout,
.article-layout {
    display: grid;
    gap: 2rem;
}

.section-heading,
.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
}

.section-cta {
    margin-top: 2rem;
}

.cards-grid {
    display: grid;
    gap: 1.3rem;
}

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

.cards-grid--team,
.cards-grid--story {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid:not(.cards-grid--articles):not(.cards-grid--team):not(.cards-grid--story) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.story-card {
    padding: 1.55rem;
}

.service-card h3,
.story-card h2 {
    font-size: 1.45rem;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
}

.check-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 1.1rem;
}

.article-card {
    overflow: hidden;
}

.article-card__media img {
    aspect-ratio: 1.3;
    object-fit: cover;
}

.article-card__body {
    padding: 1.35rem;
}

.article-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--navy);
    font-weight: 700;
}

.team-card {
    overflow: hidden;
}

.team-card__media img {
    aspect-ratio: 1 / 1.02;
    object-fit: cover;
}

.team-card__body {
    padding: 1.35rem;
}

.team-card__role,
.team-card__skills {
    color: var(--navy);
    font-weight: 700;
}

.story-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
}

.story-layout__intro,
.story-layout__panel {
    display: grid;
    gap: 1.4rem;
}

.story-note,
.highlight-box {
    padding: 1.7rem;
}

.timeline {
    display: grid;
    gap: 1rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

.timeline-item__year {
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 800;
}

.services-list {
    display: grid;
    gap: 1.2rem;
}

.service-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
    gap: 1.6rem;
    padding: 1.7rem;
    scroll-margin-top: 100px;
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    padding: 1.25rem 1.4rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--navy);
}

.archive-toolbar,
.archive-years,
.contact-list,
.footer-list,
.form-grid {
    display: grid;
    gap: 1rem;
}

.archive-toolbar {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    align-items: center;
}

.search-form {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.search-form input,
.search-form select {
    flex: 1 1 220px;
}

.archive-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    align-items: center;
    color: var(--ink-soft);
}

.archive-years {
    grid-template-columns: repeat(auto-fit, minmax(92px, max-content));
    margin-top: 1.4rem;
}

.archive-years a {
    display: inline-flex;
    justify-content: center;
    padding: 0.72rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(22, 35, 51, 0.08);
    background: rgba(255,255,255,0.84);
    font-weight: 700;
}

.archive-years a.is-active {
    background: var(--navy);
    color: #fff;
}

.pagination {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.pagination__link {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(22, 35, 51, 0.12);
    background: rgba(255,255,255,0.9);
    font-weight: 700;
}

.pagination__link.is-current {
    background: var(--navy);
    color: #fff;
}

.article-page {
    padding-bottom: 1rem;
}

.article-hero {
    padding: 3rem 0 2rem;
}

.article-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--ink-soft);
}

.article-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
    align-items: start;
}

.article-layout__main,
.article-layout__aside {
    display: grid;
    gap: 1.4rem;
}

.article-featured-image {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(22, 35, 51, 0.08);
    box-shadow: var(--shadow);
}

.rich-text > * + * {
    margin-top: 1rem;
}

.rich-text h2,
.rich-text h3 {
    margin-top: 2rem;
}

.rich-text ul,
.rich-text ol {
    padding-left: 1.2rem;
    color: var(--ink-soft);
}

.rich-text--article {
    padding: 1.9rem;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(22, 35, 51, 0.08);
    box-shadow: var(--shadow-soft);
}

.aside-card,
.article-cta {
    padding: 1.55rem;
}

.contact-preview,
.contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.94fr);
    align-items: stretch;
}

.map-card,
.map-placeholder {
    min-height: 100%;
}

.map-card iframe,
.map-placeholder {
    min-height: 100%;
    border-radius: inherit;
}

.map-placeholder {
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(15, 27, 43, 0.9), rgba(50, 69, 96, 0.82)),
        var(--navy);
    color: #fff;
    text-align: center;
    padding: 2rem;
}

.contact-panel,
.form-panel {
    padding: 1.8rem;
}

.contact-list,
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li,
.footer-list li {
    color: var(--ink-soft);
}

.contact-fiscal {
    margin: 1.2rem 0;
    color: var(--navy);
    font-weight: 700;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

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

.field-error {
    display: block;
    margin-top: 0.45rem;
    color: #b44537;
    font-size: 0.92rem;
}

.privacy-note {
    font-size: 0.92rem;
}

.alert {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    margin-bottom: 1rem;
}

.alert--success {
    background: rgba(58, 130, 91, 0.14);
    color: #1f5b36;
}

.alert--error {
    background: rgba(180, 69, 55, 0.12);
    color: #8b2e24;
}

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 1.9rem 2rem;
}

.empty-state {
    padding: 2rem;
    text-align: center;
    grid-column: 1 / -1;
}

.site-footer {
    margin-top: 4rem;
    padding: 4.2rem 0 1.3rem;
    color: rgba(255,255,255,0.78);
    background:
        radial-gradient(circle at top left, rgba(182, 148, 90, 0.22), transparent 28%),
        linear-gradient(160deg, #0d1623, #132135 65%, #1c2d43);
}

.site-footer h2,
.site-footer h3,
.site-footer a,
.site-footer strong {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 0.68fr)) minmax(0, 1fr);
    gap: 2rem;
}

.footer-map {
    overflow: hidden;
    min-height: 220px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
}

.footer-map iframe,
.footer-map .map-placeholder {
    min-height: 220px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 1040px) {
    .hero-grid,
    .section-heading,
    .two-columns,
    .story-layout,
    .service-detail,
    .contact-preview,
    .contact-layout,
    .article-layout,
    .archive-toolbar,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid--articles,
    .cards-grid--team,
    .cards-grid--story,
    .cards-grid:not(.cards-grid--articles):not(.cards-grid--team):not(.cards-grid--story) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .header-shell {
        min-height: 74px;
    }

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

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-radius: 18px;
        background: rgba(255,255,255,0.96);
        border: 1px solid rgba(22, 35, 51, 0.08);
        box-shadow: var(--shadow);
    }

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

    .hero--home {
        padding-top: 4.2rem;
    }

    .cards-grid--articles,
    .cards-grid--team,
    .cards-grid--story,
    .cards-grid:not(.cards-grid--articles):not(.cards-grid--team):not(.cards-grid--story),
    .form-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .search-form {
        flex-direction: column;
    }

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