:root {
    --bg: #f4efe7;
    --surface: #fffdf8;
    --surface-strong: #ffffff;
    --surface-alt: #efe6d9;
    --primary: #184e5b;
    --primary-strong: #113844;
    --primary-soft: #d8e8e6;
    --accent: #c86f45;
    --accent-soft: #f6dccd;
    --highlight: #d0a55b;
    --ink: #172129;
    --muted: #5d6a72;
    --border: rgba(23, 33, 41, 0.12);
    --shadow: 0 18px 40px rgba(17, 56, 68, 0.12);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: 1240px;
    --transition: 220ms ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(200, 111, 69, 0.12), transparent 32%),
        linear-gradient(180deg, #f9f5ee 0%, var(--bg) 55%, #f6f1ea 100%);
    color: var(--ink);
    font-family: "Sora", sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

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

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

button {
    border: 0;
    background: none;
    cursor: pointer;
}

ul {
    list-style: none;
}

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

.section {
    padding: 5.5rem 0;
}

.section.compact {
    padding: 4rem 0;
}

.section-muted {
    background: rgba(255, 255, 255, 0.52);
    border-block: 1px solid rgba(23, 33, 41, 0.06);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.section-heading {
    max-width: 720px;
    margin-bottom: 2rem;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading h2,
.section-heading h1 {
    font-family: "Source Serif 4", serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.1;
    margin-top: 0.9rem;
}

.section-heading p {
    color: var(--muted);
    margin-top: 1rem;
    font-size: 1.03rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 1rem 0;
    background: rgba(249, 245, 238, 0.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(23, 33, 41, 0.08);
}

.site-header .container {
    width: min(1480px, calc(100% - 2rem));
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex-shrink: 0;
}

.brand-mark {
    width: 4.8rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 1.4rem;
    background: transparent;
    color: white;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: none;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.brand-copy strong {
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.brand-copy span {
    color: var(--muted);
    font-size: 0.77rem;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.site-nav a {
    padding: 0.72rem 0.9rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
    background: rgba(24, 78, 91, 0.1);
    color: var(--primary);
}

.site-nav .nav-cta {
    background: var(--primary);
    color: white;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
    background: var(--primary-strong);
    color: white;
}

.menu-toggle {
    display: none;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(23, 33, 41, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    position: relative;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 1.1rem;
    height: 2px;
    background: var(--ink);
    transition: transform var(--transition), opacity var(--transition);
    transform: translateX(-50%);
}

.menu-toggle span {
    top: 50%;
    transform: translate(-50%, -50%);
}

.menu-toggle::before {
    top: 1rem;
}

.menu-toggle::after {
    bottom: 1rem;
}

.menu-toggle[aria-expanded="true"] span {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
    bottom: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--primary-strong);
}

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

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: white;
}

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover,
.btn-accent:focus-visible {
    background: #b65d33;
}

.hero {
    padding: 5rem 0 4rem;
}

.hero-layout,
.split-layout,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.95fr);
    gap: 2rem;
    align-items: stretch;
}

.hero-panel {
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(17, 56, 68, 0.96), rgba(24, 78, 91, 0.84)),
        linear-gradient(180deg, rgba(208, 165, 91, 0.15), transparent);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -10% -35% auto;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(208, 165, 91, 0.55), transparent 68%);
}

.hero-panel h1 {
    max-width: 14ch;
    font-family: "Source Serif 4", serif;
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 0.98;
    margin: 1rem 0 1.2rem;
}

.hero-panel p {
    max-width: 60ch;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.04rem;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.6rem 0 2rem;
}

.hero-points li {
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.9rem;
}

.hero-aside,
.card,
.callout,
.info-panel,
.metric-card,
.publication-card,
.news-card,
.event-card,
.person-card,
.equipment-card,
.faq-item,
.archive-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(23, 33, 41, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.hero-aside {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
}

.mini-label {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-aside h2,
.callout h3,
.card h3,
.equipment-card h3,
.person-card h3,
.publication-card h3,
.news-card h3,
.event-card h3,
.archive-card h3 {
    font-family: "Source Serif 4", serif;
    line-height: 1.2;
}

.stack-list {
    display: grid;
    gap: 0.8rem;
}

.stack-list li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.icon-badge,
.info-icon {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    flex-shrink: 0;
}

.stats-grid,
.card-grid,
.news-grid,
.events-grid,
.publication-grid,
.metrics-grid,
.chip-grid,
.team-grid,
.equipment-grid,
.archive-grid {
    display: grid;
    gap: 1.25rem;
}

.stats-grid,
.metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid.three,
.news-grid,
.publication-grid,
.archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.four,
.team-grid,
.equipment-grid,
.events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card {
    padding: 1.4rem;
}

.metric-card strong {
    display: block;
    font-size: 2rem;
    color: var(--primary);
}

.metric-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.card,
.publication-card,
.news-card,
.event-card,
.equipment-card,
.archive-card {
    padding: 1.5rem;
}

.card p,
.publication-card p,
.news-card p,
.event-card p,
.equipment-card p,
.archive-card p,
.person-card p {
    color: var(--muted);
}

.card-top {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.tag-row,
.chip-list,
.person-meta,
.footer-links,
.bullet-list,
.timeline,
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.tag,
.chip,
.filter-button {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(24, 78, 91, 0.14);
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.filter-button.active {
    background: var(--primary);
    color: white;
}

.chip-list {
    margin-top: 1rem;
}

.highlight-panel {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(160deg, rgba(24, 78, 91, 0.06), rgba(255, 255, 255, 0.85)),
        rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(24, 78, 91, 0.08);
}

.timeline {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1rem 0;
    border-top: 1px solid rgba(23, 33, 41, 0.08);
}

.timeline-item:first-child {
    border-top: 0;
    padding-top: 0;
}

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

.timeline-copy h3 {
    margin-bottom: 0.45rem;
}

.page-hero {
    padding: 4.5rem 0 2.5rem;
}

.page-hero-shell {
    padding: 2.2rem;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(140deg, rgba(17, 56, 68, 0.95), rgba(24, 78, 91, 0.72)),
        linear-gradient(180deg, rgba(208, 165, 91, 0.18), transparent);
    color: white;
    position: relative;
    overflow: hidden;
}

.page-hero-shell::before {
    content: "";
    position: absolute;
    inset: 1.2rem 1.2rem auto auto;
    width: 5rem;
    height: 5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.4rem;
    pointer-events: none;
    opacity: 0.5;
}

.page-hero-shell > * {
    position: relative;
    z-index: 1;
}

.page-hero-shell h1 {
    font-family: "Source Serif 4", serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
    margin: 1rem 0 0.9rem;
}

.page-hero-shell p {
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.84);
}

.content-card {
    padding: 1.8rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(23, 33, 41, 0.08);
    box-shadow: var(--shadow);
}

.content-card + .content-card {
    margin-top: 1rem;
}

.content-card h3 {
    font-family: "Source Serif 4", serif;
    margin-bottom: 0.75rem;
}

.bullet-list {
    display: grid;
    gap: 0.75rem;
}

.bullet-list li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.bullet-list i {
    color: var(--accent);
    margin-top: 0.25rem;
}

.person-card {
    padding: 1.4rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.person-mark {
    width: 3.4rem;
    height: 3.4rem;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-soft), rgba(255, 255, 255, 0.96));
    color: var(--primary);
    font-weight: 800;
    flex-shrink: 0;
}

.person-role {
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0.35rem 0 0.65rem;
}

.person-meta {
    margin-top: 0.95rem;
}

.person-meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.person-meta a {
    color: var(--primary);
}

.equipment-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.equipment-top,
.publication-top,
.news-top,
.event-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.equipment-top .icon-badge,
.publication-top .icon-badge,
.news-top .icon-badge,
.event-top .icon-badge {
    width: 3rem;
    height: 3rem;
}

.data-line {
    color: var(--muted);
    font-size: 0.92rem;
}

.rule-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.rule-list li {
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(24, 78, 91, 0.06);
    border: 1px solid rgba(24, 78, 91, 0.08);
}

.filter-shell {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.search-input,
.field,
.select-field,
textarea.field {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(23, 33, 41, 0.14);
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink);
}

.search-input:focus,
.field:focus,
.select-field:focus,
textarea.field:focus {
    outline: 2px solid rgba(24, 78, 91, 0.16);
    border-color: rgba(24, 78, 91, 0.28);
}

.publication-card,
.news-card,
.event-card {
    position: relative;
}

.publication-card .btn {
    margin-top: auto;
}

.news-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.news-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(24, 78, 91, 0.08);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.news-card:hover .news-image img {
    transform: scale(1.03);
}

.news-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    flex: 1;
}

.news-card .btn {
    margin-top: auto;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 0.85rem 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.meta-line i {
    color: var(--accent);
}

.archive-card .meta-line,
.publication-card .meta-line,
.news-card .meta-line,
.event-card .meta-line {
    margin-bottom: 1rem;
}

.hidden {
    display: none !important;
}

.contact-panel {
    padding: 1.7rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(23, 33, 41, 0.08);
    box-shadow: var(--shadow);
}

.contact-methods {
    display: grid;
    gap: 1rem;
    margin: 1.2rem 0 1.6rem;
}

.contact-method {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.contact-method strong {
    display: block;
    margin-bottom: 0.2rem;
}

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

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

textarea.field {
    min-height: 160px;
    resize: vertical;
}

.form-note {
    color: var(--muted);
    font-size: 0.88rem;
}

.form-message {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(24, 78, 91, 0.08);
    color: var(--primary);
    font-weight: 600;
}

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

.faq-item {
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    padding: 1.2rem 1.4rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    text-align: left;
    font-weight: 700;
}

.faq-content {
    padding: 0 1.4rem 1.3rem;
    color: var(--muted);
}

.faq-item .faq-content {
    display: none;
}

.faq-item.active .faq-content {
    display: block;
}

.faq-item.active .faq-trigger i {
    transform: rotate(180deg);
}

.faq-trigger i {
    transition: transform var(--transition);
}

.map-frame {
    width: 100%;
    min-height: 340px;
    border: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.cta-band {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(17, 56, 68, 0.96), rgba(24, 78, 91, 0.82));
    color: white;
    box-shadow: var(--shadow);
}

.cta-band p {
    max-width: 54ch;
    color: rgba(255, 255, 255, 0.82);
}

.site-footer {
    padding: 4rem 0 2rem;
    background: #112f39;
    color: rgba(255, 255, 255, 0.86);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.9fr;
    gap: 1.5rem;
}

.site-footer h3 {
    color: white;
    margin-bottom: 0.9rem;
}

.site-footer p,
.site-footer li,
.site-footer a {
    color: rgba(255, 255, 255, 0.74);
}

.footer-links {
    display: grid;
    gap: 0.65rem;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
    color: white;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

.back-to-top {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 3.2rem;
    height: 3.2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 30;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .site-nav {
        position: fixed;
        inset: 5.2rem 1rem auto 1rem;
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        background: rgba(249, 245, 238, 0.98);
        border: 1px solid rgba(23, 33, 41, 0.08);
        border-radius: 24px;
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-nav a {
        width: 100%;
        padding: 0.95rem 1rem;
    }

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

    .hero-layout,
    .split-layout,
    .contact-layout,
    .footer-grid,
    .stats-grid,
    .metrics-grid,
    .card-grid.three,
    .card-grid.four,
    .publication-grid,
    .news-grid,
    .events-grid,
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .team-grid,
    .equipment-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-band {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 1320px) {
    .header-shell {
        gap: 1.2rem;
    }

    .brand-copy span {
        white-space: normal;
        max-width: 15rem;
    }

    .site-nav a {
        padding: 0.65rem 0.78rem;
        font-size: 0.88rem;
    }
}

@media (max-width: 760px) {
    .section {
        padding: 4.5rem 0;
    }

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

    .hero-panel,
    .page-hero-shell,
    .cta-band,
    .hero-aside,
    .content-card,
    .card,
    .publication-card,
    .news-card,
    .event-card,
    .equipment-card,
    .archive-card,
    .contact-panel,
    .metric-card {
        padding: 1.4rem;
    }

    .hero-panel h1 {
        max-width: 100%;
    }

    .timeline-item,
    .form-split,
    .team-grid,
    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        gap: 0.4rem;
    }

    .timeline-year {
        font-size: 0.95rem;
    }

    .footer-grid {
        gap: 2rem;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(var(--container), calc(100% - 1.2rem));
    }

    .brand-copy span {
        display: none;
    }

    .btn,
    .site-nav a,
    .tag,
    .chip,
    .filter-button {
        width: 100%;
        justify-content: center;
    }

    .btn-row,
    .filter-bar {
        display: grid;
    }

    .person-card {
        flex-direction: column;
    }
}
