:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    color: #111111;
    background: #f7f5f0;
    --bg: #f7f5f0;
    --surface: #ffffff;
    --text: #111111;
    --muted: #6f6a5f;
    --line: #dedbd2;
    --accent: #1f3a35;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    margin: 0;
}

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

.site-header {
    align-items: center;
    border-bottom: 1px solid #dedbd2;
    display: flex;
    gap: 32px;
    justify-content: space-between;
    padding: 20px clamp(20px, 5vw, 72px);
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(247, 245, 240, 0.94);
}

.brand {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
}

.brand img {
    display: block;
    max-height: 52px;
    max-width: 180px;
    object-fit: contain;
    width: auto;
}

.nav,
.language-switcher {
    display: flex;
    gap: 20px;
}

.hero,
.page-placeholder {
    min-height: calc(100vh - 73px);
    padding: clamp(64px, 10vw, 140px) clamp(20px, 5vw, 72px);
}

.page-hero {
    padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 72px) clamp(40px, 7vw, 88px);
}

.hero {
    display: grid;
    gap: 48px;
}

.hero-copy {
    max-width: 1040px;
}

.hero-media {
    margin: 0;
}

.hero-media img {
    aspect-ratio: 4 / 3;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.eyebrow {
    color: #6f6a5f;
    font-size: 14px;
    margin: 0 0 24px;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(48px, 8vw, 112px);
    font-weight: 500;
    line-height: 0.95;
    margin: 0;
    max-width: 960px;
}

h2 {
    font-size: clamp(30px, 4vw, 56px);
    font-weight: 500;
    line-height: 1.05;
    margin: 0;
    max-width: 820px;
}

h3 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.15;
    margin: 0;
}

.intro {
    color: #4b4944;
    font-size: 20px;
    line-height: 1.55;
    margin-top: 32px;
    max-width: 720px;
}

.actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 32px;
}

.button-link,
.contact-form button {
    background: var(--text);
    border: 1px solid var(--text);
    color: var(--surface);
    display: inline-flex;
    font: inherit;
    justify-content: center;
    min-width: 150px;
    padding: 13px 18px;
}

.text-link {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.section {
    border-top: 1px solid var(--line);
    padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.compact-section {
    padding-bottom: clamp(32px, 5vw, 56px);
    padding-top: clamp(32px, 5vw, 56px);
}

.section-heading {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.split-section,
.contact-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr);
}

.split-section > p,
.prose-block,
.contact-grid > div p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
    max-width: 720px;
}

.card-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.item-card {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--line);
    min-height: 220px;
}

.item-card a {
    display: grid;
    gap: 14px;
    height: 100%;
    padding: 22px;
}

.item-card p,
.item-card small {
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.card-meta {
    color: var(--accent);
    font-size: 13px;
    text-transform: uppercase;
}

.stats-grid,
.facts-row {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    max-width: 920px;
}

.stats-grid div,
.facts-row div,
.contact-details div {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 8px;
    padding-top: 18px;
}

.stats-grid dt {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 500;
}

.stats-grid dd,
.facts-row span,
.contact-details span {
    color: var(--muted);
    margin: 0;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-list span {
    border: 1px solid var(--line);
    padding: 10px 14px;
}

.two-column-list,
.case-study {
    display: grid;
    gap: 24px;
}

.two-column-list article,
.case-study article {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 14px;
    padding-top: 24px;
}

.two-column-list p,
.case-study p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
    margin: 0;
    max-width: 760px;
}

.section-cta {
    align-items: center;
    background: var(--accent);
    color: var(--surface);
    display: grid;
    gap: 28px;
}

.section-cta .eyebrow,
.section-cta p {
    color: rgba(255, 255, 255, 0.72);
}

.section-cta .button-link {
    background: var(--surface);
    border-color: var(--surface);
    color: var(--accent);
}

.contact-form {
    border: 1px solid var(--line);
    display: grid;
    gap: 16px;
    padding: 20px;
}

.contact-form label {
    color: var(--muted);
    display: grid;
    gap: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    font: inherit;
    padding: 12px;
    width: 100%;
}

.contact-form button {
    cursor: pointer;
}

.hidden-field {
    height: 1px;
    left: -9999px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.form-message {
    border: 1px solid var(--line);
    line-height: 1.5;
    padding: 14px;
}

.form-message ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.form-message-success {
    background: #eef5ef;
    border-color: #9cb49f;
    color: #1f3a35;
}

.form-message-error {
    background: #fff2ee;
    border-color: #d6a394;
    color: #713323;
}

.contact-details {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-footer {
    align-items: start;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 28px clamp(20px, 5vw, 72px);
}

.site-footer p {
    color: var(--muted);
    margin: 8px 0 0;
}

.footer-links {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.footer-links span {
    color: var(--muted);
    font-size: 12px;
}

.admin-body {
    background: var(--bg);
}

.admin-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.admin-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    display: grid;
    gap: 24px;
    max-width: 560px;
    padding: clamp(24px, 5vw, 48px);
    width: 100%;
}

.admin-panel-wide {
    max-width: 1180px;
}

.admin-panel h1 {
    font-size: clamp(40px, 7vw, 72px);
}

.admin-summary {
    display: grid;
    gap: 12px;
}

.admin-summary div {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 6px;
    padding-top: 12px;
}

.admin-summary span {
    color: var(--muted);
}

.admin-heading,
.admin-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
}

.admin-actions {
    justify-content: flex-start;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    border-collapse: collapse;
    min-width: 920px;
    width: 100%;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.admin-table .is-archived {
    color: var(--muted);
}

.admin-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-message {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
    padding-top: 20px;
}

.admin-message h2 {
    font-size: 28px;
}

.admin-message p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

.button-muted {
    background: var(--muted);
    border-color: var(--muted);
}

.admin-form {
    display: grid;
    gap: 28px;
}

.admin-form-section {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 18px;
    padding-top: 22px;
}

.admin-form-section h2 {
    font-size: 28px;
}

.admin-form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-form label {
    color: var(--muted);
    display: grid;
    gap: 8px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    font: inherit;
    padding: 12px;
    width: 100%;
}

.admin-form textarea {
    min-height: 110px;
    resize: vertical;
}

.admin-form .field-wide {
    grid-column: 1 / -1;
}

.checkbox-label {
    align-content: center;
    grid-template-columns: auto 1fr;
}

.checkbox-label input {
    width: auto;
}

.media-grid,
.admin-media-picker,
.media-gallery {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.media-card,
.media-picker-item {
    border: 1px solid var(--line);
    display: grid;
    gap: 12px;
    padding: 12px;
}

.media-card img,
.media-picker-item img,
.media-gallery img,
.project-hero-image img {
    aspect-ratio: 4 / 3;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.media-card span {
    color: var(--muted);
    display: block;
    font-size: 13px;
    margin-top: 6px;
}

.project-hero-image {
    margin: 0;
}

.project-hero-image img {
    aspect-ratio: 16 / 9;
}

.media-gallery figure {
    margin: 0;
}

.error-page {
    padding: 80px 24px;
}

@media (max-width: 720px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .nav {
        flex-wrap: wrap;
    }

    .footer-links {
        justify-items: start;
    }
}

@media (min-width: 860px) {
    .hero {
        align-content: center;
        grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    }

    .split-section,
    .contact-grid,
    .section-cta {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }

    .two-column-list,
    .case-study {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Public visual polish */
:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #f6f7f4;
    --bg: #f6f7f4;
    --surface: #ffffff;
    --surface-soft: #eef1ec;
    --text: #0f1715;
    --muted: #626b64;
    --line: #d9ded6;
    --accent: #233f37;
    --accent-strong: #13231f;
    --gold: #9b7a45;
}

body {
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
}

.site-header {
    backdrop-filter: blur(18px);
    background: rgba(246, 247, 244, 0.88);
    border-bottom-color: rgba(15, 23, 21, 0.12);
    min-height: 76px;
    padding: 18px clamp(18px, 4vw, 64px);
}

.brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
}

.nav {
    color: rgba(15, 23, 21, 0.74);
    font-size: 14px;
    gap: clamp(14px, 2vw, 28px);
}

.nav a,
.language-switcher a,
.text-link {
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.language-switcher {
    gap: 8px;
}

.language-switcher a {
    border: 1px solid rgba(15, 23, 21, 0.14);
    color: var(--muted);
    font-size: 12px;
    min-width: 38px;
    padding: 8px 10px;
    text-align: center;
}

.language-switcher a:hover {
    background: var(--text);
    border-color: var(--text);
    color: var(--surface);
}

.hero,
.page-hero,
.project-detail-hero {
    padding-left: clamp(20px, 5vw, 88px);
    padding-right: clamp(20px, 5vw, 88px);
}

.hero {
    align-items: end;
    min-height: clamp(640px, 90vh, 900px);
    padding-bottom: clamp(56px, 8vw, 104px);
    padding-top: clamp(84px, 11vw, 150px);
}

.page-hero {
    min-height: clamp(360px, 54vh, 620px);
    padding-bottom: clamp(46px, 7vw, 94px);
    padding-top: clamp(74px, 11vw, 140px);
}

.hero-copy,
.page-hero,
.project-detail-copy {
    position: relative;
}

.eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 22px;
}

h1,
h2,
h3 {
    letter-spacing: 0;
}

h1 {
    font-size: clamp(48px, 9vw, 126px);
    font-weight: 500;
    line-height: 0.92;
    max-width: 1120px;
}

h2 {
    font-size: clamp(34px, 5vw, 72px);
    line-height: 0.98;
    max-width: 920px;
}

h3 {
    font-size: clamp(22px, 2vw, 30px);
}

.intro {
    color: rgba(15, 23, 21, 0.72);
    font-size: clamp(19px, 2.1vw, 27px);
    line-height: 1.45;
    margin-top: 30px;
    max-width: 780px;
}

.button-link,
.contact-form button {
    align-items: center;
    background: var(--text);
    border-color: var(--text);
    min-height: 48px;
    padding: 14px 22px;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button-link:hover,
.contact-form button:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.text-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration-thickness: 1px;
}

.section {
    border-top-color: rgba(15, 23, 21, 0.12);
    padding: clamp(62px, 9vw, 132px) clamp(20px, 5vw, 88px);
}

.compact-section {
    padding-bottom: clamp(34px, 5vw, 68px);
    padding-top: clamp(34px, 5vw, 68px);
}

.section-heading {
    gap: 18px;
    margin-bottom: clamp(30px, 5vw, 62px);
}

.split-section,
.contact-grid {
    gap: clamp(34px, 6vw, 92px);
}

.split-section > p,
.prose-block,
.contact-grid > div p {
    color: rgba(15, 23, 21, 0.68);
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.7;
}

.card-grid {
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.item-card {
    background: var(--surface);
    border-color: rgba(15, 23, 21, 0.12);
    min-height: 0;
    overflow: hidden;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.item-card:hover {
    border-color: rgba(35, 63, 55, 0.38);
    box-shadow: 0 22px 60px rgba(15, 23, 21, 0.08);
    transform: translateY(-3px);
}

.item-card a {
    gap: 18px;
    padding: clamp(22px, 3vw, 34px);
}

.card-image {
    margin: calc(clamp(22px, 3vw, 34px) * -1) calc(clamp(22px, 3vw, 34px) * -1) 4px;
    overflow: hidden;
}

.card-image img {
    aspect-ratio: 5 / 4;
    display: block;
    height: auto;
    object-fit: cover;
    transition: transform 240ms ease;
    width: 100%;
}

.item-card:hover .card-image img {
    transform: scale(1.035);
}

.item-card p,
.item-card small {
    color: rgba(15, 23, 21, 0.64);
}

.item-card h3 {
    max-width: 520px;
}

.card-meta {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
}

.stats-grid,
.facts-row {
    gap: clamp(18px, 3vw, 32px);
    max-width: none;
}

.stats-grid div,
.facts-row div,
.contact-details div {
    border-top-color: rgba(15, 23, 21, 0.16);
}

.stats-grid dt {
    color: var(--accent);
    font-size: clamp(42px, 7vw, 92px);
    line-height: 0.95;
}

.pill-list {
    gap: 12px;
}

.pill-list span {
    background: var(--surface);
    border-color: rgba(15, 23, 21, 0.14);
    color: rgba(15, 23, 21, 0.72);
}

.two-column-list,
.case-study {
    gap: clamp(22px, 3vw, 36px);
}

.two-column-list article,
.case-study article {
    background: var(--surface);
    border: 1px solid rgba(15, 23, 21, 0.12);
    padding: clamp(24px, 3.4vw, 42px);
}

.two-column-list p,
.case-study p {
    color: rgba(15, 23, 21, 0.66);
}

.section-cta {
    background: var(--accent-strong);
    border-top: 0;
    color: var(--surface);
}

.section-cta .button-link:hover {
    background: transparent;
    color: var(--surface);
}

.contact-form {
    background: var(--surface);
    border-color: rgba(15, 23, 21, 0.12);
    box-shadow: 0 24px 70px rgba(15, 23, 21, 0.07);
    gap: 18px;
    padding: clamp(22px, 4vw, 42px);
}

.contact-form label {
    color: rgba(15, 23, 21, 0.68);
    font-size: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    border-color: rgba(15, 23, 21, 0.14);
    padding: 14px 15px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(35, 63, 55, 0.14);
}

.contact-details {
    background: var(--surface-soft);
}

.site-footer {
    background: #101715;
    border-top: 0;
    color: var(--surface);
    padding: 34px clamp(20px, 5vw, 88px);
}

.site-footer p,
.footer-links span {
    color: rgba(255, 255, 255, 0.54);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
}

.footer-links span {
    font-size: 11px;
}

.site-footer-inner {
    align-items: start;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-inline: auto;
    width: min(100% - 64px, 1440px);
}

.project-detail-hero {
    display: grid;
    gap: clamp(30px, 5vw, 72px);
    padding-bottom: clamp(34px, 5vw, 72px);
    padding-top: clamp(72px, 10vw, 132px);
}

.project-detail-copy {
    align-self: end;
}

.project-hero-image {
    background: var(--surface-soft);
    margin: 0;
    overflow: hidden;
}

.project-hero-image img {
    aspect-ratio: 16 / 10;
}

.project-facts {
    padding-top: 0;
}

.project-story .section-heading {
    margin-bottom: clamp(26px, 4vw, 46px);
}

.media-gallery {
    gap: clamp(16px, 2.2vw, 28px);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.media-gallery img {
    aspect-ratio: 4 / 3;
}

@media (max-width: 720px) {
    .site-header {
        position: static;
    }

    .nav,
    .language-switcher {
        width: 100%;
    }

    .nav {
        row-gap: 10px;
    }

    .language-switcher {
        justify-content: flex-start;
    }

    .hero,
    .page-hero {
        min-height: auto;
    }

    .site-footer {
        display: grid;
    }

    .site-footer-inner {
        display: grid;
        gap: 18px;
        width: min(100% - 32px, 1440px);
    }

    .site-footer .footer-links {
        justify-items: start;
    }
}

@media (min-width: 860px) {
    .hero {
        grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
    }

    .project-detail-hero {
        align-items: end;
        grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    }

    .project-hero-image img {
        aspect-ratio: 4 / 5;
    }

    .contact-grid {
        grid-template-columns: minmax(0, 0.78fr) minmax(340px, 0.72fr);
    }
}

/* Mobile, responsive, and accessibility polish */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

main,
section,
article,
div,
form,
fieldset {
    min-width: 0;
}

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

.skip-link {
    background: var(--text);
    color: var(--surface);
    left: 16px;
    padding: 12px 16px;
    position: fixed;
    top: 16px;
    transform: translateY(-140%);
    transition: transform 160ms ease;
    z-index: 100;
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(155, 122, 69, 0.72);
    outline-offset: 3px;
}

.button-link:focus-visible,
.contact-form button:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--surface);
}

.section-cta .button-link:focus-visible {
    background: var(--surface);
    color: var(--accent-strong);
}

.nav a:focus-visible,
.language-switcher a:focus-visible,
.text-link:focus-visible {
    color: var(--accent-strong);
}

.form-message {
    color: var(--text);
    font-size: 15px;
}

.form-message strong {
    color: inherit;
}

.form-message-success {
    background: #e7f2e9;
    border-color: #6f9a76;
    color: #183b22;
}

.form-message-error {
    background: #fff0ec;
    border-color: #b95f45;
    color: #5e2417;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.admin-form input,
.admin-form select,
.admin-form textarea {
    min-height: 46px;
}

.contact-form textarea,
.admin-form textarea {
    min-height: 130px;
}

.card-image,
.project-hero-image,
.media-gallery figure,
.media-card,
.media-picker-item {
    min-width: 0;
}

.card-image img,
.project-hero-image img,
.media-gallery img,
.media-card img,
.media-picker-item img {
    max-height: 760px;
}

@media (max-width: 900px) {
    .site-header {
        align-items: start;
        display: grid;
        gap: 14px;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 16px clamp(16px, 5vw, 28px);
        position: static;
    }

    .brand {
        align-self: center;
    }

    .brand img {
        max-height: 42px;
        max-width: 150px;
    }

    .language-switcher {
        align-self: center;
        justify-content: end;
        width: auto;
    }

    .nav {
        display: grid;
        gap: 8px;
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .nav a {
        align-items: center;
        background: rgba(255, 255, 255, 0.56);
        border: 1px solid rgba(15, 23, 21, 0.12);
        display: flex;
        justify-content: center;
        min-height: 42px;
        padding: 10px 8px;
        text-align: center;
    }

    .nav a:hover,
    .nav a:focus-visible {
        background: var(--text);
        border-color: var(--text);
        color: var(--surface);
    }

    .hero,
    .page-hero,
    .project-detail-hero {
        padding-left: clamp(16px, 5vw, 32px);
        padding-right: clamp(16px, 5vw, 32px);
    }

    .section {
        padding-left: clamp(16px, 5vw, 32px);
        padding-right: clamp(16px, 5vw, 32px);
    }

    .project-detail-hero {
        padding-top: clamp(48px, 10vw, 86px);
    }

    .project-facts {
        padding-top: clamp(18px, 4vw, 28px);
    }

    .contact-grid {
        gap: 34px;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: clamp(42px, 14vw, 66px);
        line-height: 0.98;
    }

    h2 {
        font-size: clamp(30px, 10vw, 46px);
        line-height: 1.04;
    }

    h3 {
        font-size: clamp(22px, 7vw, 28px);
    }

    .intro {
        font-size: 18px;
        line-height: 1.55;
        margin-top: 22px;
    }

    .hero {
        gap: 34px;
        padding-bottom: 50px;
        padding-top: 58px;
    }

    .page-hero {
        padding-bottom: 46px;
        padding-top: 56px;
    }

    .section {
        padding-bottom: 58px;
        padding-top: 58px;
    }

    .compact-section {
        padding-bottom: 34px;
        padding-top: 34px;
    }

    .actions {
        align-items: stretch;
        display: grid;
        gap: 14px;
    }

    .actions .button-link,
    .contact-form button,
    .section-cta .button-link {
        width: 100%;
    }

    .card-grid,
    .stats-grid,
    .facts-row,
    .contact-details,
    .media-gallery {
        grid-template-columns: 1fr;
    }

    .item-card a {
        padding: 22px;
    }

    .card-image {
        margin: -22px -22px 4px;
    }

    .card-image img {
        aspect-ratio: 4 / 3;
    }

    .project-hero-image img,
    .media-gallery img {
        aspect-ratio: 4 / 3;
    }

    .two-column-list article,
    .case-study article {
        padding: 22px;
    }

    .contact-form {
        box-shadow: none;
        padding: 20px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 16px;
    }

    .site-footer {
        gap: 18px;
    }
}

@media (max-width: 430px) {
    .site-header {
        grid-template-columns: 1fr;
    }

    .language-switcher {
        justify-content: start;
    }

    .nav {
        grid-template-columns: 1fr;
    }

    .language-switcher a {
        min-height: 40px;
    }

    .hero,
    .page-hero,
    .project-detail-hero,
    .section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .stats-grid dt {
        font-size: 46px;
    }

    .pill-list span {
        width: 100%;
    }
}

/* Ultra-wide public layout constraints */
@media (min-width: 1680px) {
    .hero > *,
    .page-hero > *,
    .project-detail-hero > *,
    .section > * {
        margin-left: auto;
        margin-right: auto;
        max-width: 1600px;
        width: 100%;
    }

    .site-header,
    .site-footer,
    .hero,
    .page-hero,
    .project-detail-hero,
    .section {
        padding-left: clamp(88px, 8vw, 180px);
        padding-right: clamp(88px, 8vw, 180px);
    }
}

/* Admin UI polish */
.admin-body {
    background: #eef1ed;
    color: #101715;
}

.admin-topbar {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 23, 21, 0.1);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(16, 23, 21, 0.08);
    display: grid;
    gap: 18px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin: 14px auto 0;
    max-width: 1440px;
    padding: 12px clamp(16px, 2vw, 24px);
    position: sticky;
    top: 0;
    width: calc(100% - 28px);
    z-index: 20;
}

.admin-brand {
    align-items: center;
    color: #101715;
    display: inline-flex;
    font-size: 15px;
    font-weight: 800;
    gap: 8px;
    letter-spacing: 0;
    white-space: nowrap;
}

.admin-brand span {
    background: #eef1ec;
    border: 1px solid rgba(15, 23, 21, 0.1);
    color: rgba(16, 23, 21, 0.58);
    font-size: 11px;
    padding: 4px 7px;
}

.admin-nav {
    background: #f6f7f4;
    border: 1px solid rgba(15, 23, 21, 0.08);
    border-radius: 999px;
    display: flex;
    gap: 2px;
    justify-content: center;
    overflow-x: auto;
    padding: 4px;
}

.admin-nav a {
    border: 1px solid transparent;
    border-radius: 999px;
    color: rgba(16, 23, 21, 0.7);
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    min-height: 34px;
    padding: 8px 11px;
}

.admin-nav a:hover,
.admin-nav a:focus-visible {
    background: #ffffff;
    border-color: rgba(15, 23, 21, 0.1);
    color: #101715;
    box-shadow: 0 6px 16px rgba(16, 23, 21, 0.06);
}

.admin-account {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.admin-account span {
    border-left: 1px solid rgba(15, 23, 21, 0.12);
    color: rgba(16, 23, 21, 0.72);
    display: grid;
    font-size: 12px;
    gap: 2px;
    line-height: 1.2;
    min-width: 0;
    padding-left: 12px;
}

.admin-account strong,
.admin-account small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-account form {
    margin: 0;
}

.admin-shell {
    align-items: start;
    display: grid;
    min-height: calc(100vh - 86px);
    padding: clamp(18px, 3vw, 34px);
    place-items: start center;
}

.admin-panel {
    border-color: rgba(15, 23, 21, 0.09);
    box-shadow: 0 18px 44px rgba(16, 23, 21, 0.06);
    gap: 22px;
    max-width: 640px;
    width: 100%;
}

.admin-panel-wide {
    max-width: 1360px;
}

.admin-panel h1 {
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.04;
}

.admin-panel .intro {
    color: rgba(16, 23, 21, 0.62);
    font-size: 15px;
    margin-top: 8px;
    max-width: 680px;
}

.admin-heading {
    align-items: center;
    border-bottom: 1px solid rgba(15, 23, 21, 0.1);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding-bottom: 18px;
}

.admin-heading .text-link {
    align-self: center;
}

.admin-actions {
    gap: 10px;
}

.admin-actions form {
    margin: 0;
}

.admin-panel .button-link,
.admin-form .button-link,
.admin-actions .button-link,
.admin-body .contact-form button {
    border-radius: 999px;
    font-weight: 800;
    min-height: 40px;
    min-width: 0;
    padding: 10px 16px;
}

.admin-panel .text-link,
.admin-heading .text-link {
    color: #233f37;
    font-size: 14px;
    font-weight: 700;
}

.button-muted {
    background: #f7f8f5;
    border-color: rgba(15, 23, 21, 0.12);
    color: #233f37;
}

.button-muted:hover,
.button-muted:focus-visible {
    background: #e8ece6;
    border-color: rgba(15, 23, 21, 0.18);
    color: #101715;
}

.button-danger {
    background: #762f23;
    border-color: #762f23;
    color: #ffffff;
}

.button-danger:hover,
.button-danger:focus-visible {
    background: #5e241b;
    border-color: #5e241b;
}

.admin-summary {
    gap: 14px;
}

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.admin-summary div {
    background: #f7f8f5;
    border: 1px solid rgba(15, 23, 21, 0.08);
    padding: 14px;
}

.admin-summary strong {
    color: rgba(16, 23, 21, 0.72);
    font-size: 12px;
    text-transform: uppercase;
}

.admin-summary span {
    color: #101715;
    overflow-wrap: anywhere;
}

.admin-stat-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfa 100%);
    border: 1px solid rgba(15, 23, 21, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(16, 23, 21, 0.045);
    display: grid;
    gap: 10px;
    min-height: 112px;
    padding: 16px;
}

.admin-stat-card span {
    color: rgba(16, 23, 21, 0.64);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
}

.admin-stat-card strong {
    align-self: end;
    color: #101715;
    font-size: clamp(24px, 2.8vw, 36px);
    line-height: 1.05;
}

.admin-stat-card.is-live {
    background: linear-gradient(180deg, #f7fbf5 0%, #eef7ed 100%);
    border-color: #9bc7a2;
}

.admin-stat-card.is-warning {
    border-color: #dec16c;
    background: linear-gradient(180deg, #fffaf0 0%, #fff4d7 100%);
}

.admin-stat-card.is-live strong {
    color: #1f5c30;
}

.admin-stat-card.is-warning strong {
    color: #6b5414;
    font-size: clamp(18px, 2vw, 25px);
}

.admin-table-wrap {
    border: 1px solid rgba(15, 23, 21, 0.1);
    overflow-x: auto;
}

.admin-table {
    background: #ffffff;
    min-width: 860px;
}

.admin-table th {
    background: #f7f8f5;
    border-bottom: 1px solid rgba(15, 23, 21, 0.1);
    color: rgba(16, 23, 21, 0.64);
    font-weight: 800;
    letter-spacing: 0;
    padding: 13px 14px;
    position: sticky;
    top: 0;
}

.admin-table td {
    color: rgba(16, 23, 21, 0.78);
    padding: 14px;
}

.admin-table tbody tr:hover {
    background: #fafbf8;
}

.admin-table a {
    color: #101715;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.status-badge {
    align-items: center;
    background: #eef1ec;
    border: 1px solid rgba(15, 23, 21, 0.1);
    color: #3f4943;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    min-height: 26px;
    padding: 4px 9px;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-published,
.status-read {
    background: #e6f2e8;
    border-color: #9bc7a2;
    color: #1f5c30;
}

.status-draft,
.status-new {
    background: #fff7df;
    border-color: #dec16c;
    color: #6b5414;
}

.status-archived {
    background: #eceeed;
    border-color: #c7ccc9;
    color: #58615b;
}

.admin-form {
    gap: 30px;
}

.admin-form-section {
    background: #fbfcfa;
    border: 1px solid rgba(15, 23, 21, 0.08);
    border-radius: 12px;
    padding: 18px;
}

.admin-form-section h2 {
    font-size: clamp(20px, 2.2vw, 26px);
}

.admin-form-grid {
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}

.admin-form label,
.admin-body .contact-form label {
    color: rgba(16, 23, 21, 0.68);
    font-size: 14px;
    font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-body .contact-form input {
    background: #ffffff;
    border-color: rgba(15, 23, 21, 0.14);
    min-height: 46px;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-body .contact-form input:focus {
    border-color: #233f37;
    outline: 3px solid rgba(35, 63, 55, 0.16);
}

.admin-form textarea {
    line-height: 1.55;
}

.admin-message {
    background: #fbfcfa;
    border: 1px solid rgba(15, 23, 21, 0.08);
    padding: 20px;
}

.admin-message h2 {
    font-size: 26px;
}

.admin-body .form-message {
    border-width: 1px;
    font-size: 15px;
    padding: 16px;
}

.form-message-warning {
    background: #fff7df;
    border-color: #dec16c;
    color: #6b5414;
}

.admin-body .form-message ul {
    margin-top: 10px;
}

.media-grid,
.admin-media-picker {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.media-card,
.media-picker-item {
    background: #ffffff;
    border-color: rgba(15, 23, 21, 0.1);
}

.media-select {
    align-items: center;
    flex-direction: row;
    gap: 8px;
}

.media-card form {
    margin: 0;
}

.media-card .button-danger {
    min-height: 38px;
    width: 100%;
}

.media-card img,
.media-picker-item img {
    aspect-ratio: 4 / 3;
    background: #eef1ec;
}

@media (max-width: 1180px) {
    .admin-topbar {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .admin-account {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

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

@media (max-width: 840px) {
    .admin-topbar {
        border-radius: 0;
        grid-template-columns: 1fr;
        margin-top: 0;
        position: static;
        width: 100%;
    }

    .admin-account {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .admin-account span {
        border-left: 0;
        border-top: 1px solid rgba(15, 23, 21, 0.1);
        padding-left: 0;
        padding-top: 10px;
    }

    .admin-nav {
        border-radius: 12px;
        justify-content: flex-start;
        margin-left: -2px;
        width: 100%;
    }

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

    .admin-shell {
        min-height: auto;
        padding: 16px;
    }

    .admin-panel {
        box-shadow: none;
        padding: 22px;
    }

    .admin-heading {
        align-items: start;
        display: grid;
    }

    .admin-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .admin-actions .button-link,
    .admin-actions .text-link,
    .admin-actions form,
    .admin-actions button {
        width: 100%;
    }

    .admin-table {
        min-width: 720px;
    }
}

@media (max-width: 520px) {
    .admin-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow-x: visible;
    }

    .admin-nav a {
        text-align: center;
    }

    .admin-panel {
        padding: 18px;
    }

    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-section {
        padding: 16px;
    }

    .admin-table {
        min-width: 640px;
    }
}

/* Admin sidebar rescue layout */
.admin-body {
    background: #eef0ec;
    color: #101715;
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    align-content: start;
    background: #111715;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: grid;
    gap: 26px;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    padding: 24px 18px;
    position: sticky;
    top: 0;
}

.admin-sidebar .admin-brand {
    color: #ffffff;
    display: flex;
    gap: 12px;
    padding: 4px 6px 18px;
}

.admin-brand-mark {
    align-items: center;
    background: #ffffff;
    color: #111715;
    display: inline-flex;
    font-size: 18px;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.admin-sidebar .admin-brand span:not(.admin-brand-mark) {
    background: transparent;
    border: 0;
    color: #ffffff;
    display: grid;
    gap: 2px;
    padding: 0;
}

.admin-sidebar .admin-brand strong {
    font-size: 15px;
    letter-spacing: 0.04em;
}

.admin-sidebar .admin-brand small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 700;
}

.admin-sidebar .admin-nav {
    background: transparent;
    border: 0;
    border-radius: 0;
    display: grid;
    gap: 6px;
    justify-content: stretch;
    overflow: visible;
    padding: 0;
}

.admin-sidebar .admin-nav a {
    border: 1px solid transparent;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.72);
    display: block;
    font-size: 14px;
    min-height: 42px;
    padding: 11px 12px;
}

.admin-sidebar .admin-nav a:hover,
.admin-sidebar .admin-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    color: #ffffff;
}

.admin-sidebar .admin-nav a[href="/ka"] {
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    margin-top: 12px;
}

.admin-sidebar .admin-account {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    gap: 12px;
    padding: 14px;
}

.admin-sidebar .admin-account span {
    border: 0;
    color: rgba(255, 255, 255, 0.72);
    display: grid;
    gap: 5px;
    padding: 0;
}

.admin-sidebar .admin-account strong {
    color: #ffffff;
    font-size: 14px;
}

.admin-sidebar .admin-account small,
.admin-sidebar .admin-account em {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-style: normal;
}

.admin-sidebar .admin-account .button-link {
    background: #ffffff;
    border-color: #ffffff;
    color: #111715;
    width: 100%;
}

.admin-shell {
    align-items: start;
    display: grid;
    min-height: 100vh;
    padding: clamp(22px, 3vw, 40px);
    place-items: start center;
}

.admin-shell-login {
    min-height: 100vh;
}

.admin-panel {
    background: #ffffff;
    border: 1px solid rgba(17, 23, 21, 0.08);
    box-shadow: 0 18px 44px rgba(17, 23, 21, 0.06);
    gap: 22px;
    max-width: 680px;
    padding: clamp(22px, 3vw, 34px);
    width: 100%;
}

.admin-panel-wide {
    max-width: 1360px;
}

.admin-heading {
    align-items: center;
    border-bottom: 1px solid rgba(17, 23, 21, 0.08);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding-bottom: 18px;
}

.admin-panel h1 {
    font-size: clamp(28px, 3vw, 42px);
}

.admin-panel .intro {
    color: rgba(17, 23, 21, 0.62);
    font-size: 15px;
}

.admin-stat-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-stat-card {
    background: #f8f9f6;
    border: 1px solid rgba(17, 23, 21, 0.08);
    box-shadow: none;
    min-height: 104px;
    padding: 15px;
}

.admin-stat-card span {
    color: rgba(17, 23, 21, 0.62);
    font-size: 11px;
}

.admin-stat-card strong {
    font-size: clamp(24px, 2.4vw, 34px);
}

.admin-stat-card.is-live {
    background: #eef7ed;
}

.admin-stat-card.is-warning {
    background: #fff6da;
}

.admin-form-section,
.admin-message {
    background: #f8f9f6;
    border: 1px solid rgba(17, 23, 21, 0.08);
    border-radius: 12px;
}

.admin-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-panel .button-link,
.admin-form .button-link,
.admin-actions .button-link,
.admin-sidebar .button-link {
    border-radius: 10px;
    min-height: 40px;
    padding: 10px 15px;
}

.admin-table-wrap {
    border: 1px solid rgba(17, 23, 21, 0.08);
    border-radius: 12px;
    overflow-x: auto;
}

.admin-table {
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    background: #f4f6f2;
    border-bottom: 1px solid rgba(17, 23, 21, 0.08);
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-body .contact-form input {
    border-radius: 10px;
}

.media-card,
.media-picker-item {
    border-radius: 12px;
}

@media (max-width: 1100px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        min-height: auto;
        position: static;
    }

    .admin-sidebar .admin-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .admin-sidebar .admin-account {
        align-items: center;
        grid-template-columns: minmax(0, 1fr) auto;
    }

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

@media (max-width: 720px) {
    .admin-sidebar {
        padding: 18px 14px;
    }

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

    .admin-sidebar .admin-account {
        grid-template-columns: 1fr;
    }

    .admin-shell {
        padding: 14px;
    }

    .admin-heading {
        align-items: start;
        display: grid;
    }

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

    .admin-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }
}

@media (max-width: 460px) {
    .admin-sidebar .admin-nav,
    .admin-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin redesign round 2 */
.admin-body {
    background: #f6f7f4;
    color: #171b19;
    overflow-x: hidden;
}

.admin-layout {
    display: block;
    min-height: 100vh;
}

.admin-sidebar {
    background: #101412;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100vh;
    left: 0;
    padding: 20px 14px;
    position: fixed;
    top: 0;
    width: 260px;
    z-index: 30;
}

.admin-sidebar .admin-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    gap: 10px;
    padding: 0 6px 18px;
}

.admin-brand-mark {
    background: #f5f5ef;
    border-radius: 9px;
    color: #101412;
    height: 36px;
    width: 36px;
}

.admin-sidebar .admin-brand strong {
    font-size: 14px;
    letter-spacing: 0.03em;
}

.admin-sidebar .admin-brand small {
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
}

.admin-sidebar .admin-nav {
    align-content: start;
    display: grid;
    gap: 3px;
    padding: 18px 0;
}

.admin-sidebar .admin-nav a {
    border: 0;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 13px;
    font-weight: 700;
    min-height: 40px;
    padding: 10px 12px 10px 14px;
    position: relative;
}

.admin-sidebar .admin-nav a::before {
    background: transparent;
    border-radius: 999px;
    content: "";
    height: 18px;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
}

.admin-sidebar .admin-nav a:hover,
.admin-sidebar .admin-nav a:focus-visible,
.admin-sidebar .admin-nav a.is-active {
    background: rgba(255, 255, 255, 0.075);
    color: #ffffff;
}

.admin-sidebar .admin-nav a.is-active::before {
    background: #ffffff;
}

.admin-sidebar .admin-nav a[href="/ka"] {
    border: 0;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 10px;
}

.admin-sidebar .admin-account {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    gap: 10px;
    padding: 12px;
}

.admin-sidebar .admin-account strong {
    font-size: 13px;
}

.admin-sidebar .admin-account small,
.admin-sidebar .admin-account em {
    font-size: 11px;
}

.admin-sidebar .admin-account .button-link {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    min-height: 36px;
}

.admin-shell {
    display: block;
    margin-left: 260px;
    min-height: 100vh;
    padding: 28px 32px 48px;
}

.admin-shell-login {
    display: grid;
    margin-left: 0;
    place-items: center;
}

.admin-shell-login .admin-panel {
    background: #ffffff;
    border: 1px solid rgba(23, 27, 25, 0.08);
    box-shadow: 0 18px 44px rgba(23, 27, 25, 0.08);
    padding: clamp(22px, 3vw, 34px);
}

.admin-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
    gap: 18px;
    max-width: 1280px;
    padding: 0;
}

.admin-panel-wide {
    max-width: 1360px;
}

.admin-heading {
    border-bottom: 0;
    margin-bottom: 4px;
    padding-bottom: 0;
}

.admin-heading .eyebrow {
    color: rgba(23, 27, 25, 0.5);
    font-size: 11px;
    margin-bottom: 8px;
}

.admin-panel h1 {
    color: #171b19;
    font-size: clamp(24px, 2vw, 32px);
    letter-spacing: 0;
    line-height: 1.12;
}

.admin-panel .intro {
    color: rgba(23, 27, 25, 0.58);
    font-size: 14px;
    margin-top: 6px;
}

.admin-stat-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 4px;
}

.admin-stat-card {
    background: #ffffff;
    border: 1px solid rgba(23, 27, 25, 0.08);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(23, 27, 25, 0.04);
    min-height: 92px;
    padding: 14px;
}

.admin-stat-card span {
    color: rgba(23, 27, 25, 0.54);
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
}

.admin-stat-card strong {
    color: #171b19;
    font-size: 28px;
    font-weight: 760;
}

.admin-status-pill {
    align-self: end;
    background: rgba(31, 92, 48, 0.1);
    border: 1px solid rgba(31, 92, 48, 0.18);
    border-radius: 999px;
    color: #1f5c30;
    display: inline-flex;
    font-size: 12px !important;
    justify-self: start;
    padding: 6px 10px;
}

.admin-stat-card.is-warning .admin-status-pill {
    background: rgba(107, 84, 20, 0.12);
    border-color: rgba(107, 84, 20, 0.2);
    color: #6b5414;
}

.admin-quick-section,
.admin-form-section,
.admin-message,
.admin-table-wrap {
    background: #ffffff;
    border: 1px solid rgba(23, 27, 25, 0.08);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(23, 27, 25, 0.04);
}

.admin-form-section {
    padding: 18px;
}

.admin-form-section h2 {
    color: #171b19;
    font-size: 17px;
    margin-bottom: 14px;
}

.admin-form-subsection {
    border-top: 1px solid rgba(23, 27, 25, 0.08);
    margin-top: 16px;
    padding-top: 16px;
}

.admin-form-subsection:first-of-type {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.admin-form-subsection h3 {
    font-size: 13px;
    margin-bottom: 12px;
}

.admin-quick-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-quick-grid a {
    background: #f8f9f6;
    border: 1px solid rgba(23, 27, 25, 0.08);
    border-radius: 12px;
    color: #171b19;
    display: grid;
    gap: 5px;
    min-height: 86px;
    padding: 14px;
}

.admin-quick-grid a:hover,
.admin-quick-grid a:focus-visible {
    background: #ffffff;
    border-color: rgba(23, 27, 25, 0.16);
    box-shadow: 0 8px 20px rgba(23, 27, 25, 0.06);
}

.admin-quick-grid strong {
    font-size: 14px;
}

.admin-quick-grid span {
    color: rgba(23, 27, 25, 0.55);
    font-size: 12px;
    line-height: 1.4;
}

.admin-actions {
    gap: 8px;
}

.admin-panel .button-link,
.admin-form .button-link,
.admin-actions .button-link {
    border-radius: 10px;
    font-size: 13px;
    min-height: 38px;
    padding: 9px 13px;
}

.admin-panel .text-link,
.admin-heading .text-link {
    font-size: 13px;
}

.admin-form {
    gap: 16px;
}

.admin-project-form,
.admin-project-form + .admin-form-section {
    max-width: 980px;
}

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

.admin-form label,
.admin-body .contact-form label {
    font-size: 12px;
    gap: 7px;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-body .contact-form input {
    border-color: rgba(23, 27, 25, 0.12);
    border-radius: 9px;
    font-size: 14px;
    min-height: 40px;
}

.admin-form textarea {
    min-height: 104px;
}

.admin-table {
    min-width: 820px;
}

.admin-table th,
.admin-table td {
    font-size: 13px;
    padding: 12px 14px;
}

.status-badge {
    border-radius: 999px;
    font-size: 11px;
    min-height: 23px;
    padding: 3px 8px;
    text-transform: none;
}

.media-grid,
.admin-media-picker {
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.media-card,
.media-picker-item {
    background: #ffffff;
    border: 1px solid rgba(23, 27, 25, 0.08);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(23, 27, 25, 0.04);
}

@media (min-width: 1680px) {
    .admin-shell {
        padding-left: 44px;
    }
}

@media (max-width: 1180px) {
    .admin-sidebar {
        height: auto;
        position: static;
        width: 100%;
    }

    .admin-shell {
        margin-left: 0;
    }

    .admin-sidebar .admin-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .admin-stat-grid,
    .admin-quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .admin-sidebar .admin-nav,
    .admin-stat-grid,
    .admin-quick-grid,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-shell {
        padding: 16px;
    }

    .admin-heading {
        display: grid;
    }

    .admin-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }
}

.home-hero {
    align-items: center;
    display: grid;
    gap: clamp(32px, 5vw, 72px);
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
    margin-inline: auto;
    max-width: 1440px;
    padding: clamp(64px, 8vw, 118px) clamp(20px, 5vw, 72px);
}

.home-hero .hero-copy {
    max-width: 760px;
}

.home-hero h1 {
    font-size: clamp(56px, 5.1vw, 88px);
    letter-spacing: 0;
    line-height: 0.97;
    max-width: 860px;
}

.home-hero .intro {
    max-width: 680px;
}

.home-hero .hero-media {
    align-self: center;
    margin: 0;
    width: 100%;
}

.home-hero .hero-media img,
.home-hero .hero-media iframe {
    aspect-ratio: 16 / 10;
    background: #dedbd2;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(23, 27, 25, 0.14);
    display: block;
    min-height: 360px;
    object-fit: cover;
    overflow: hidden;
    width: 100%;
}

.home-hero .stats-grid {
    grid-column: 1 / -1;
    margin-top: 0;
}

.admin-helper {
    color: #69716c;
    font-size: 13px;
    line-height: 1.6;
    margin: -4px 0 10px;
    max-width: 720px;
}

@media (max-width: 980px) {
    .home-hero {
        grid-template-columns: 1fr;
        padding: clamp(48px, 10vw, 82px) 20px;
    }

    .home-hero h1 {
        font-size: clamp(38px, 11vw, 58px);
    }

    .home-hero .hero-media img,
    .home-hero .hero-media iframe {
        min-height: 0;
    }
}

.page-hero {
    min-height: clamp(280px, 42vh, 500px);
}

.blog-hero {
    align-items: center;
    min-height: clamp(320px, 48vh, 560px);
    padding-bottom: clamp(44px, 6vw, 78px);
    padding-top: clamp(62px, 8vw, 112px);
}

.page-hero h1,
.blog-hero h1 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.04;
    max-width: 920px;
}

.page-hero .intro,
.blog-hero .intro {
    font-size: clamp(18px, 1.7vw, 22px);
    line-height: 1.58;
    max-width: 740px;
}

@media (max-width: 640px) {
    .page-hero,
    .blog-hero {
        min-height: auto;
    }

    .page-hero h1,
    .blog-hero h1 {
        font-size: clamp(34px, 10vw, 48px);
        line-height: 1.08;
    }
}

/* Public layout consistency pass */
body:not(.admin-body) main {
    overflow-x: clip;
}

body:not(.admin-body) .hero,
body:not(.admin-body) .page-hero,
body:not(.admin-body) .blog-hero,
body:not(.admin-body) .project-detail-hero,
body:not(.admin-body) .section {
    padding-left: clamp(20px, 5vw, 72px);
    padding-right: clamp(20px, 5vw, 72px);
}

body:not(.admin-body) .page-hero,
body:not(.admin-body) .blog-hero {
    align-content: center;
    display: grid;
    min-height: auto;
    padding-bottom: clamp(38px, 5vw, 68px);
    padding-top: clamp(46px, 6vw, 82px);
}

body:not(.admin-body) .page-hero > *,
body:not(.admin-body) .blog-hero > *,
body:not(.admin-body) .section > *,
body:not(.admin-body) .project-detail-hero > * {
    margin-left: auto;
    margin-right: auto;
    max-width: 1360px;
    width: 100%;
}

body:not(.admin-body) .page-hero h1,
body:not(.admin-body) .blog-hero h1 {
    font-size: clamp(38px, 4.2vw, 60px);
    line-height: 1.08;
    max-width: 1360px;
}

body:not(.admin-body) .page-hero .intro,
body:not(.admin-body) .blog-hero .intro {
    font-size: clamp(17px, 1.35vw, 21px);
    line-height: 1.62;
    margin-top: clamp(18px, 2.4vw, 28px);
    max-width: 1360px;
    text-align: justify;
    text-align-last: left;
}

body:not(.admin-body) .page-hero + .section,
body:not(.admin-body) .blog-hero + .section {
    padding-top: clamp(44px, 6vw, 78px);
}

body:not(.admin-body) .section {
    padding-bottom: clamp(54px, 7vw, 104px);
    padding-top: clamp(54px, 7vw, 104px);
}

body:not(.admin-body) .compact-section {
    padding-bottom: clamp(36px, 5vw, 62px);
    padding-top: clamp(36px, 5vw, 62px);
}

body:not(.admin-body) .section-heading {
    margin-bottom: clamp(26px, 4vw, 46px);
}

body:not(.admin-body) .section-heading h2 {
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.06;
}

body:not(.admin-body) .home-hero {
    gap: clamp(30px, 4.5vw, 64px);
    max-width: 1440px;
    min-height: auto;
    padding-bottom: clamp(54px, 6vw, 88px);
    padding-top: clamp(54px, 7vw, 96px);
}

body:not(.admin-body) .home-hero h1 {
    font-size: clamp(50px, 4.8vw, 84px);
    line-height: 1;
    overflow-wrap: anywhere;
}

body:not(.admin-body) .home-hero .intro {
    font-size: clamp(18px, 1.45vw, 22px);
}

body:not(.admin-body) .home-hero .hero-media img,
body:not(.admin-body) .home-hero .hero-media iframe {
    min-height: 320px;
}

body:not(.admin-body) .contact-grid {
    align-items: start;
    gap: clamp(48px, 6vw, 96px);
    grid-template-columns: minmax(520px, 620px) minmax(420px, 560px);
    justify-content: center;
}

body:not(.admin-body) .contact-grid > div {
    grid-column: 2;
    justify-self: start;
    max-width: 560px;
}

body:not(.admin-body) .contact-grid > div h2 {
    font-size: clamp(38px, 4vw, 62px);
    line-height: 1.08;
    max-width: 560px;
}

body:not(.admin-body) .contact-grid > div p {
    text-align: justify;
    text-align-last: left;
}

body:not(.admin-body) .contact-grid .contact-form {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    max-width: 620px;
    width: 100%;
}

body:not(.admin-body) .contact-details {
    margin-left: auto;
    margin-right: auto;
    max-width: 1360px;
}

body:not(.admin-body) .contact-map-frame {
    border: 1px solid rgba(15, 23, 21, 0.12);
    box-shadow: 0 18px 60px rgba(15, 23, 21, 0.08);
    margin-top: clamp(26px, 3vw, 40px);
    max-width: 100%;
    overflow: hidden;
    width: 100%;
}

body:not(.admin-body) .contact-map-frame iframe {
    border: 0;
    display: block;
    height: clamp(320px, 32vw, 440px);
    width: 100%;
}

body:not(.admin-body) .project-detail-hero h1 {
    font-size: clamp(40px, 4.6vw, 68px);
    line-height: 1.04;
}

@media (min-width: 1680px) {
    body:not(.admin-body) .hero,
    body:not(.admin-body) .page-hero,
    body:not(.admin-body) .blog-hero,
    body:not(.admin-body) .project-detail-hero,
    body:not(.admin-body) .section {
        padding-left: clamp(72px, 6vw, 132px);
        padding-right: clamp(72px, 6vw, 132px);
    }
}

@media (max-width: 980px) {
    body:not(.admin-body) .home-hero,
    body:not(.admin-body) .contact-grid {
        grid-template-columns: 1fr;
    }

    body:not(.admin-body) .contact-grid > div {
        grid-column: auto;
        justify-self: stretch;
        max-width: none;
    }

    body:not(.admin-body) .contact-grid .contact-form {
        grid-column: auto;
        grid-row: auto;
        justify-self: stretch;
        max-width: none;
    }
}

@media (max-width: 640px) {
    body:not(.admin-body) .hero,
    body:not(.admin-body) .page-hero,
    body:not(.admin-body) .blog-hero,
    body:not(.admin-body) .project-detail-hero,
    body:not(.admin-body) .section {
        padding-left: 16px;
        padding-right: 16px;
    }

    body:not(.admin-body) .page-hero,
    body:not(.admin-body) .blog-hero {
        padding-bottom: 38px;
        padding-top: 42px;
    }

    body:not(.admin-body) .page-hero h1,
    body:not(.admin-body) .blog-hero h1,
    body:not(.admin-body) .project-detail-hero h1 {
        font-size: clamp(32px, 9vw, 44px);
        line-height: 1.1;
    }

    body:not(.admin-body) .page-hero .intro,
    body:not(.admin-body) .blog-hero .intro,
    body:not(.admin-body) .contact-grid > div p {
        text-align: left;
    }

    body:not(.admin-body) .home-hero {
        padding-bottom: 46px;
        padding-top: 44px;
    }

    body:not(.admin-body) .home-hero h1 {
        font-size: clamp(36px, 10vw, 52px);
    }

    body:not(.admin-body) .home-hero .hero-media img,
    body:not(.admin-body) .home-hero .hero-media iframe {
        min-height: 0;
    }
}

/* ARXEOS content modules */
body:not(.admin-body) .partner-grid {
    display: grid;
    gap: clamp(16px, 2vw, 24px);
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

body:not(.admin-body) .partner-card {
    align-content: center;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(15, 23, 21, 0.12);
    color: #0f1715;
    display: grid;
    gap: 14px;
    min-height: 160px;
    padding: clamp(20px, 2.5vw, 30px);
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body:not(.admin-body) .partner-card-link:hover,
body:not(.admin-body) .partner-card-link:focus-visible {
    border-color: rgba(15, 23, 21, 0.32);
    box-shadow: 0 18px 42px rgba(15, 23, 21, 0.08);
    transform: translateY(-2px);
}

body:not(.admin-body) .partner-card img {
    display: block;
    filter: grayscale(1);
    max-height: 54px;
    max-width: 180px;
    object-fit: contain;
    opacity: 0.86;
}

body:not(.admin-body) .partner-card h3 {
    font-size: 20px;
}

body:not(.admin-body) .expedition-album-grid {
    display: grid;
    gap: clamp(18px, 2vw, 28px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body:not(.admin-body) .expedition-album-card a {
    background: #ffffff;
    border: 1px solid rgba(16, 23, 21, 0.1);
    color: inherit;
    display: grid;
    min-height: 100%;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body:not(.admin-body) .expedition-album-card a:hover,
body:not(.admin-body) .expedition-album-card a:focus-visible {
    border-color: rgba(175, 126, 54, 0.38);
    box-shadow: 0 20px 52px rgba(16, 23, 21, 0.08);
    transform: translateY(-2px);
}

body:not(.admin-body) .expedition-album-image {
    background: var(--surface-soft);
    display: block;
    min-height: 220px;
}

body:not(.admin-body) .expedition-album-image img {
    aspect-ratio: 4 / 3;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

body:not(.admin-body) .expedition-album-body {
    display: grid;
    gap: 10px;
    padding: clamp(18px, 2vw, 26px);
}

body:not(.admin-body) .expedition-album-body strong {
    color: var(--ink);
    display: block;
    font-size: clamp(24px, 2vw, 34px);
    line-height: 1.12;
}

body:not(.admin-body) .expedition-album-body span:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.7;
}

body:not(.admin-body) .map-section {
    padding-top: clamp(36px, 4vw, 64px);
}

body:not(.admin-body) .project-map-canvas {
    border: 1px solid rgba(15, 23, 21, 0.14);
    height: clamp(420px, 56vw, 680px);
    overflow: hidden;
    position: relative;
    width: min(calc(100% - (var(--public-gutter) * 2)), var(--public-container));
}

body:not(.admin-body) .project-map-canvas.leaflet-container,
body:not(.admin-body) .project-map-canvas .leaflet-container {
    background: #dbe8e5;
    font-family: inherit;
    overflow: hidden;
    position: relative;
}

body:not(.admin-body) .project-map-canvas .leaflet-pane,
body:not(.admin-body) .project-map-canvas .leaflet-map-pane,
body:not(.admin-body) .project-map-canvas .leaflet-tile-pane,
body:not(.admin-body) .project-map-canvas .leaflet-overlay-pane,
body:not(.admin-body) .project-map-canvas .leaflet-shadow-pane,
body:not(.admin-body) .project-map-canvas .leaflet-marker-pane,
body:not(.admin-body) .project-map-canvas .leaflet-tooltip-pane,
body:not(.admin-body) .project-map-canvas .leaflet-popup-pane,
body:not(.admin-body) .project-map-canvas .leaflet-tile-container,
body:not(.admin-body) .project-map-canvas .leaflet-control-container {
    left: 0;
    position: absolute;
    top: 0;
}

body:not(.admin-body) .project-map-canvas .leaflet-pane,
body:not(.admin-body) .project-map-canvas .leaflet-tile,
body:not(.admin-body) .project-map-canvas .leaflet-marker-icon,
body:not(.admin-body) .project-map-canvas .leaflet-marker-shadow,
body:not(.admin-body) .project-map-canvas .leaflet-zoom-box,
body:not(.admin-body) .project-map-canvas .leaflet-image-layer,
body:not(.admin-body) .project-map-canvas .leaflet-layer {
    position: absolute;
}

body:not(.admin-body) .project-map-canvas .leaflet-tile,
body:not(.admin-body) .project-map-canvas .leaflet-marker-icon,
body:not(.admin-body) .project-map-canvas .leaflet-marker-shadow {
    display: block;
    height: 256px;
    left: 0;
    max-height: none;
    max-width: none;
    top: 0;
    width: 256px;
}

body:not(.admin-body) .project-map-canvas .leaflet-overlay-pane svg {
    max-width: none;
}

body:not(.admin-body) .project-map-canvas .leaflet-tile-pane {
    z-index: 200;
}

body:not(.admin-body) .project-map-canvas .leaflet-overlay-pane {
    z-index: 400;
}

body:not(.admin-body) .project-map-canvas .leaflet-interactive {
    cursor: pointer;
    pointer-events: auto;
}

body:not(.admin-body) .project-map-canvas .leaflet-marker-pane {
    z-index: 600;
}

body:not(.admin-body) .project-map-canvas .leaflet-popup-pane {
    z-index: 700;
}

body:not(.admin-body) .project-map-canvas .leaflet-control {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 21, 0.16);
    box-shadow: 0 10px 30px rgba(15, 23, 21, 0.12);
    position: relative;
    z-index: 800;
}

body:not(.admin-body) .project-map-canvas .leaflet-top,
body:not(.admin-body) .project-map-canvas .leaflet-bottom {
    position: absolute;
    z-index: 1000;
}

body:not(.admin-body) .project-map-canvas .leaflet-top {
    top: 12px;
}

body:not(.admin-body) .project-map-canvas .leaflet-left {
    left: 12px;
}

body:not(.admin-body) .project-map-canvas .leaflet-popup-content-wrapper {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 21, 0.12);
    box-shadow: 0 18px 50px rgba(15, 23, 21, 0.18);
    padding: 12px;
}

body:not(.admin-body) .project-map-canvas .leaflet-popup {
    position: absolute;
    text-align: center;
}

body:not(.admin-body) .project-map-canvas .leaflet-popup-content {
    color: #0f1715;
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
    min-width: 260px;
    text-align: left;
}

body:not(.admin-body) .project-map-canvas .leaflet-popup-content .map-popup-image {
    border-radius: 10px;
    display: block;
    height: 120px;
    margin-bottom: 10px;
    max-height: none;
    object-fit: cover;
    width: 100%;
}

body:not(.admin-body) .project-map-canvas .leaflet-popup-content strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

body:not(.admin-body) .project-map-canvas .leaflet-popup-content a {
    color: #0f1715;
    display: inline-block;
    font-weight: 600;
    margin-top: 8px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body:not(.admin-body) .project-map-canvas .leaflet-popup-tip-container,
body:not(.admin-body) .project-map-canvas .leaflet-popup-close-button {
    position: absolute;
}

body:not(.admin-body) .map-project-list {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-inline: auto;
    margin-top: clamp(22px, 3vw, 36px);
    width: min(calc(100% - (var(--public-gutter) * 2)), var(--public-container));
}

body:not(.admin-body) .project-filter-panel {
    align-items: start;
    border: 1px solid rgba(15, 23, 21, 0.1);
    display: grid;
    gap: 18px;
    margin-inline: auto;
    margin-bottom: clamp(22px, 3vw, 34px);
    padding: clamp(18px, 3vw, 28px);
    width: min(calc(100% - (var(--public-gutter) * 2)), var(--public-container));
}

body:not(.admin-body) .project-view-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-inline: auto;
    margin-bottom: 16px;
    width: min(calc(100% - (var(--public-gutter) * 2)), var(--public-container));
}

body:not(.admin-body) .project-view-toggle a {
    border: 1px solid rgba(15, 23, 21, 0.13);
    border-radius: 999px;
    color: #0f1715;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    min-height: 40px;
    padding: 10px 18px;
    text-decoration: none;
}

body:not(.admin-body) .project-view-toggle a.is-active {
    background: #0f1715;
    border-color: #0f1715;
    color: #ffffff;
}

body:not(.admin-body) .project-filter-group {
    display: grid;
    gap: 10px;
}

body:not(.admin-body) .project-filter-label {
    color: rgba(15, 23, 21, 0.58);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body:not(.admin-body) .project-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body:not(.admin-body) .filter-pill,
body:not(.admin-body) .filter-clear {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    min-height: 38px;
    padding: 9px 15px;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

body:not(.admin-body) .filter-pill {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 21, 0.13);
    color: #0f1715;
}

body:not(.admin-body) .filter-pill:hover,
body:not(.admin-body) .filter-pill:focus-visible {
    border-color: rgba(15, 23, 21, 0.45);
}

body:not(.admin-body) .filter-pill.is-active {
    background: #0f1715;
    border-color: #0f1715;
    color: #ffffff;
}

body:not(.admin-body) .filter-clear {
    border: 1px solid rgba(15, 23, 21, 0.18);
    color: rgba(15, 23, 21, 0.68);
    justify-self: start;
}

body:not(.admin-body) .filter-clear:hover,
body:not(.admin-body) .filter-clear:focus-visible {
    background: rgba(15, 23, 21, 0.06);
    color: #0f1715;
}

body:not(.admin-body) .project-detail .text-link {
    text-decoration-thickness: 1px;
}

body:not(.admin-body) .gallery-lightbox-trigger {
    background: transparent;
    border: 0;
    cursor: zoom-in;
    display: block;
    padding: 0;
    width: 100%;
}

body.has-lightbox {
    overflow: hidden;
}

.gallery-lightbox {
    align-items: center;
    background: rgba(15, 23, 21, 0.88);
    display: grid;
    inset: 0;
    justify-items: center;
    padding: clamp(18px, 4vw, 56px);
    position: fixed;
    z-index: 2000;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox figure {
    margin: 0;
    max-height: min(82vh, 900px);
    max-width: min(92vw, 1280px);
}

.gallery-lightbox img {
    border-radius: 10px;
    display: block;
    max-height: min(82vh, 900px);
    max-width: min(92vw, 1280px);
    object-fit: contain;
    width: auto;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.48);
    color: #0f1715;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    justify-content: center;
    position: fixed;
}

.gallery-lightbox-close {
    border-radius: 999px;
    font-size: 28px;
    height: 44px;
    right: 22px;
    top: 22px;
    width: 44px;
}

.gallery-lightbox-nav {
    border-radius: 999px;
    font-size: 44px;
    height: 54px;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
}

.gallery-lightbox-prev {
    left: 22px;
}

.gallery-lightbox-next {
    right: 22px;
}

.gallery-lightbox-nav[hidden] {
    display: none;
}

.admin-body .admin-thumb {
    background: #ffffff;
    border: 1px solid rgba(16, 23, 21, 0.12);
    display: block;
    height: 42px;
    object-fit: contain;
    padding: 4px;
    width: 64px;
}

.admin-body .admin-project-tabs {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.admin-body .admin-project-tabs button {
    background: #ffffff;
    border: 1px solid rgba(16, 23, 21, 0.12);
    border-radius: 999px;
    color: rgba(16, 23, 21, 0.72);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    padding: 9px 14px;
}

.admin-body .admin-project-tabs button.is-active {
    background: #101715;
    border-color: #101715;
    color: #ffffff;
}

.admin-body .admin-form-toolbar {
    align-items: center;
    background: rgba(248, 247, 243, 0.92);
    border: 1px solid rgba(16, 23, 21, 0.1);
    border-radius: 14px;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin: 0 0 18px;
    padding: 12px 14px;
    position: sticky;
    top: 16px;
    z-index: 5;
}

.admin-body .admin-form-toolbar span {
    color: rgba(16, 23, 21, 0.66);
    font-size: 13px;
    font-weight: 600;
}

.admin-body .admin-muted {
    color: rgba(16, 23, 21, 0.62);
    font-size: 13px;
    line-height: 1.6;
    margin: 8px 0 0;
}

.admin-body .admin-filter-bar {
    align-items: end;
    background: #ffffff;
    border: 1px solid rgba(16, 23, 21, 0.1);
    border-radius: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 18px;
    padding: 14px;
}

.admin-body .admin-filter-bar label {
    color: rgba(16, 23, 21, 0.66);
    display: grid;
    font-size: 13px;
    gap: 6px;
}

.admin-body .admin-filter-bar select {
    min-width: 180px;
}

.js .admin-body [data-admin-tab-panel][hidden] {
    display: none;
}

@media (max-width: 680px) {
    body:not(.admin-body) .partner-grid,
    body:not(.admin-body) .expedition-album-grid,
    body:not(.admin-body) .map-project-list {
        grid-template-columns: 1fr;
    }

    body:not(.admin-body) .project-map-canvas {
        height: 420px;
    }

    body:not(.admin-body) .project-filter-panel {
        width: min(calc(100% - 32px), var(--public-container));
    }

    .gallery-lightbox {
        padding: 16px;
    }

    .gallery-lightbox-nav {
        bottom: 18px;
        top: auto;
        transform: none;
    }

    .gallery-lightbox-prev {
        left: calc(50% - 66px);
    }

    .gallery-lightbox-next {
        right: calc(50% - 66px);
    }

    .admin-body .admin-project-tabs {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .admin-body .admin-project-tabs button {
        border-radius: 10px;
        width: 100%;
    }

    .admin-body .admin-form-toolbar {
        align-items: stretch;
        display: grid;
        position: static;
    }
}

/* Home hero focused layout correction */
body:not(.admin-body) .home-hero {
    align-items: center;
    display: grid;
    gap: clamp(48px, 5.5vw, 96px);
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    margin-inline: auto;
    max-width: 1440px;
    min-height: auto;
    padding-bottom: clamp(52px, 6vw, 86px);
    padding-top: clamp(52px, 6vw, 86px);
}

body:not(.admin-body) .home-hero .hero-copy {
    max-width: 760px;
}

body:not(.admin-body) .home-hero h1 {
    font-size: clamp(52px, 4.2vw, 78px);
    line-height: 1.05;
    max-width: 760px;
    overflow-wrap: normal;
    word-break: normal;
}

body:not(.admin-body) .home-hero .intro {
    font-size: clamp(18px, 1.25vw, 20px);
    line-height: 1.58;
    max-width: 680px;
}

body:not(.admin-body) .home-hero .hero-media {
    align-self: center;
    justify-self: end;
    max-width: 680px;
    width: 100%;
}

body:not(.admin-body) .home-hero .hero-media img,
body:not(.admin-body) .home-hero .hero-media iframe {
    aspect-ratio: 16 / 10;
    min-height: 0;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 1100px) {
    body:not(.admin-body) .home-hero {
        grid-template-columns: 1fr;
        max-width: 760px;
        padding-bottom: 48px;
        padding-top: 48px;
    }

    body:not(.admin-body) .home-hero .hero-media {
        justify-self: stretch;
        max-width: 680px;
    }
}

@media (min-width: 681px) and (max-width: 1100px) {
    body:not(.admin-body) .expedition-album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body:not(.admin-body) .expedition-album-grid {
        grid-template-columns: 1fr;
    }

    body:not(.admin-body) .home-hero h1 {
        font-size: clamp(38px, 11vw, 54px);
        line-height: 1.08;
    }
}
