:root {
    --accent: #6f7d4c;
    --accent-dark: #303723;
    --accent-deep: #1a1f14;
    --sand: #c8bba5;
    --sand-light: #dcd1bf;
    --paper: #f3efe8;
    --white: #ffffff;
    --ink: #121212;
    --muted: rgba(18, 18, 18, 0.72);
    --line: rgba(18, 18, 18, 0.14);
    --danger: #8f2424;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    color: var(--ink);
    background: var(--paper);
}

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

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

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

.site-width {
    width: min(1380px, calc(100% - 48px));
    margin-inline: auto;
}

.public-body {
    background: var(--paper);
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 40;
    padding: 28px 0;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.site-header-inner {
    width: min(1460px, calc(100% - 48px));
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: var(--white);
}

.brand-wordmark {
    display: grid;
    gap: 2px;
    line-height: 1;
}

.brand-wordmark strong {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-wordmark small {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.85;
}

.menu-toggle,
.offcanvas-close,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 24px;
    border: 1px solid transparent;
    background: var(--accent);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.menu-toggle {
    min-width: 96px;
}

.button-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.65);
}

.button:hover,
.menu-toggle:hover,
.offcanvas-close:hover {
    background: var(--accent-dark);
}

.button-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--white);
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(16, 18, 14, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 70;
    width: min(420px, 100vw);
    height: 100vh;
    background: rgba(22, 26, 18, 0.96);
    color: var(--white);
    transform: translateX(100%);
    transition: transform 0.32s ease;
    overflow-y: auto;
}

.offcanvas-inner {
    min-height: 100%;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.offcanvas-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 32px;
}

.offcanvas-close {
    min-height: 48px;
    padding-inline: 18px;
}

.offcanvas-nav {
    display: grid;
    gap: 12px;
    margin-top: auto;
    margin-bottom: auto;
}

.offcanvas-nav a {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.02;
    font-weight: 600;
}

.offcanvas-nav a.is-active,
.offcanvas-nav a:hover,
.offcanvas-contact a:hover {
    color: var(--sand-light);
}

.offcanvas-contact {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.82);
}

.offcanvas-contact p {
    margin: 0 0 10px;
    line-height: 1.65;
}

.page-wrap {
    transition: filter 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.public-body.menu-open {
    overflow: hidden;
}

.public-body.menu-open .menu-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.public-body.menu-open .offcanvas {
    transform: translateX(0);
}

.public-body.menu-open .page-wrap,
.public-body.menu-open .site-header {
    filter: blur(8px);
}

.flash-stack {
    padding-top: 120px;
    display: grid;
    gap: 12px;
}

.flash {
    padding: 16px 18px;
    font-weight: 600;
}

.flash-success {
    background: rgba(111, 125, 76, 0.14);
    color: var(--accent-deep);
}

.flash-error {
    background: rgba(143, 36, 36, 0.12);
    color: var(--danger);
}

main {
    width: 100%;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.hero-page {
    min-height: 72vh;
}

.hero-media,
.hero-overlay,
.hero-video,
.hero-youtube-shell,
.hero-media-fallback {
    position: absolute;
    inset: 0;
}

.hero-media,
.hero-media-fallback {
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-youtube-shell {
    overflow: hidden;
    background: #000;
}

.hero-youtube {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.77777778vh;
    min-width: 100%;
    height: 56.25vw;
    min-height: 100%;
    transform: translate(-50%, -50%) scale(1.18);
    pointer-events: none;
    border: 0;
}

.hero-media-fallback {
    opacity: 0;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(19, 22, 16, 0.86) 0%, rgba(19, 22, 16, 0.55) 45%, rgba(19, 22, 16, 0.22) 100%),
        linear-gradient(180deg, rgba(17, 19, 15, 0.32) 0%, rgba(17, 19, 15, 0.62) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 170px 0 110px;
}

.hero-kicker,
.section-label,
.tile-label,
.footer-label {
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero h1,
.hero h2,
.reference-copy h2,
.statement-item h2,
.value-grid h3,
.contact-copy h2,
.policy-copy h2,
.job-strip h2,
.tile-copy h2 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.03;
}

.hero h1 {
    max-width: 10ch;
    font-size: clamp(3.5rem, 6vw, 7rem);
}

.hero-lead {
    max-width: 56ch;
    margin: 22px 0 0;
    font-size: 1.08rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-scroll {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sand-light);
    animation: hero-scroll-float 2.6s ease-in-out infinite;
}

.hero-scroll svg {
    width: 56px;
    height: 56px;
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

@keyframes hero-scroll-float {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.statements-section {
    background: rgba(200, 187, 165, 0.86);
}

.statements-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px;
    padding: 88px 0;
}

.statement-item hr {
    margin: 0 0 26px;
    border: 0;
    border-top: 1px solid var(--accent);
}

.statement-item h2 {
    font-size: clamp(2rem, 4vw, 3.45rem);
    color: var(--ink);
    max-width: 100%;
    overflow-wrap: anywhere;
    /*word-break: normal;
    hyphens: auto;*/
}

.statement-item p {
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.mosaic-section {
    background: var(--paper);
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    align-items: stretch;
}

.mosaic-tile {
    position: relative;
    min-width: 0;
}

.mosaic-tile > a,
.mosaic-tile > div {
    position: relative;
    padding: 11% 10%;
    min-width: 0;
    width: 100%;
    min-height: 100%;
    z-index: 1;
}

.mosaic-tile > a {
    transition:
        transform 0.28s ease,
        background-color 0.28s ease,
        box-shadow 0.28s ease,
        opacity 0.28s ease;
}

.tile-copy > a,
.tile-copy > div,
.tile-contact {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tile-copy h2,
.tile-contact h2 {
    font-size: clamp(2.1rem, 3.5vw, 4.1rem);
    max-width: 12ch;
    overflow-wrap: anywhere;
    /*word-break: normal;
    hyphens: auto;*/
}

.tile-copy p,
.tile-contact p {
    margin: 16px 0 0;
    line-height: 1.75;
}

.tile-arrow {
    align-self: flex-end;
    margin-top: auto;
    font-size: 2rem;
    font-weight: 700;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

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

.tile-sand {
    background: var(--sand);
    color: var(--ink);
}

.tile-dark {
    background: var(--accent-deep);
    color: var(--white);
}

.tile-contact > div {
    display: grid;
    gap: 0;
    align-content: start;
}

.tile-contact .tile-label,
.tile-contact p {
    color: rgba(255, 255, 255, 0.9);
}


.tile-contact p {
    margin: 16px 0 0;
    max-width: 26ch;
    line-height: 1.75;
}

.tile-contact-link {
    align-self: flex-start;
    margin-top: 24px;
}

.tile-image {
    min-height: clamp(320px, 28vw, 480px);
    background-size: cover;
    background-position: center;
}

.tile-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 26, 18, 0.06), rgba(22, 26, 18, 0.28));
    transition: background 0.28s ease, opacity 0.28s ease;
}

.tile-image > a {
    z-index: 2;
}

.tile-copy > a:hover,
.tile-copy > a:focus-visible,
.tile-image > a:hover,
.tile-image > a:focus-visible {
    transform: translateY(-6px);
}

.tile-copy > a:hover .tile-arrow,
.tile-copy > a:focus-visible .tile-arrow {
    transform: translate(8px, -8px);
}

.tile-copy > a:focus-visible,
.tile-image > a:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: -2px;
}

.tile-sand.tile-copy > a:hover,
.tile-sand.tile-copy > a:focus-visible {
    background: rgba(255, 255, 255, 0.14);
}

.tile-olive.tile-copy > a:hover,
.tile-olive.tile-copy > a:focus-visible,
.tile-dark.tile-copy > a:hover,
.tile-dark.tile-copy > a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.tile-image:hover::after,
.tile-image:focus-within::after {
    background: linear-gradient(180deg, rgba(22, 26, 18, 0.12), rgba(22, 26, 18, 0.42));
}

.content-section {
    padding: 84px 0;
}

.content-section-light {
    background: var(--paper);
    color: var(--ink);
}

.content-section-dark {
    background: var(--accent-deep);
    color: var(--white);
}

.split-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
}

.split-content h2,
.contact-copy h2,
.policy-copy h2 {
    font-size: clamp(2.3rem, 5vw, 4.3rem);
    max-width: 12ch;
}

.body-copy,
.policy-copy {
    color: var(--muted);
    line-height: 1.85;
}

.body-copy p,
.policy-copy p {
    margin: 0 0 18px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}

.value-grid article {
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    padding-top: 22px;
}

.value-grid .section-label {
    color: rgba(255, 255, 255, 0.7);
}

.value-grid h3 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.value-grid p:last-child {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
}

.references-section,
.jobs-section,
.contact-section {
    background: var(--paper);
}

.references-grid,
.jobs-listing {
    display: grid;
    width: 100%;
}

.reference-panel,
.job-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 34vw;
}

.reference-image {
    min-height: 100%;
    background-size: cover;
    background-position: center;
}

.reference-copy,
.job-strip-head,
.job-strip-body {
    padding: 72px;
}

.reference-copy h2,
.job-strip h2 {
    font-size: clamp(2.2rem, 4.6vw, 4rem);
    max-width: 12ch;
}

.reference-copy p:last-child,
.job-strip p,
.job-strip-body {
    line-height: 1.8;
}

.panel-light {
    background: var(--white);
    color: var(--ink);
}

.panel-sand {
    background: var(--sand-light);
    color: var(--ink);
}

.job-strip-light {
    background: var(--sand-light);
    color: var(--ink);
}

.job-strip-dark {
    background: var(--accent-dark);
    color: var(--white);
}

.job-strip-dark .section-label,
.job-strip-dark p {
    color: rgba(255, 255, 255, 0.88);
}

.job-strip-light .section-label {
    color: rgba(18, 18, 18, 0.62);
}

.job-strip-body {
    border-left: 1px solid rgba(18, 18, 18, 0.08);
}

.job-strip-dark .job-strip-body {
    border-left-color: rgba(255, 255, 255, 0.12);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.86fr 1.14fr;
    gap: 48px;
    padding: 84px 0;
}

.contact-copy {
    padding-top: 10px;
}

.contact-copy p {
    color: var(--muted);
    line-height: 1.8;
}

.contact-details {
    margin-top: 28px;
    display: grid;
    gap: 14px;
}

.contact-details p {
    margin: 0;
}

.contact-form {
    background: var(--white);
    padding: 44px;
    box-shadow: var(--shadow);
}

.contact-form label,
.stack-form label {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
}

.form-error {
    color: var(--danger);
    font-size: 0.92rem;
}

.policy-copy {
    max-width: 860px;
}

.policy-copy h2 {
    margin: 42px 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.site-footer {
    background: var(--accent-deep);
    color: rgba(255, 255, 255, 0.82);
}

.site-footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 32px;
    padding: 58px 0;
}

.site-footer p,
.site-footer a {
    margin: 0 0 12px;
    line-height: 1.8;
}

.site-footer a:hover {
    color: var(--white);
}

.footer-label {
    color: var(--white);
}

.admin-body {
    background: linear-gradient(180deg, #eff1e8, #f7f4ed);
}

.admin-shell {
    width: min(1320px, calc(100% - 32px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    padding: 28px 0 40px;
}

.admin-sidebar {
    position: sticky;
    top: 18px;
    height: fit-content;
    padding: 24px;
    background: var(--accent-dark);
    color: var(--white);
}

.admin-brand {
    display: inline-block;
    margin-bottom: 24px;
    font-weight: 800;
    font-size: 1.2rem;
}

.admin-nav {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.admin-main {
    padding-bottom: 24px;
}

.admin-card {
    background: rgba(255, 255, 255, 0.94);
    padding: 28px;
    box-shadow: var(--shadow);
}

.admin-card.narrow {
    max-width: 520px;
}

.admin-headline,
.action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    background: var(--paper);
    padding: 24px;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

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

.message-cell {
    min-width: 280px;
}

.checkbox-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.checkbox-row input {
    width: auto;
}

.admin-preview {
    width: 220px;
}

.admin-preview-wide {
    width: min(100%, 520px);
}

.admin-helper {
    margin: -8px 0 10px;
    color: var(--muted);
}

.admin-subheading {
    margin: 6px 0 14px;
    font-size: 1.25rem;
    font-weight: 700;
}

.hero-admin-group {
    display: none;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
}

.hero-admin-group.is-visible {
    display: grid;
    gap: 14px;
}

@media (max-width: 1199px) {
    .statements-grid,
    .value-grid,
    .mosaic-grid,
    .site-footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .tile-image,
    .reference-panel,
    .job-strip {
        min-height: 460px;
    }

    .reference-copy,
    .job-strip-head,
    .job-strip-body {
        padding: 48px;
    }
}

@media (max-width: 959px) {
    .site-width,
    .site-header-inner {
        width: calc(100% - 28px);
    }

    .hero-content {
        padding: 150px 0 120px;
    }

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

    .hero-scroll {
        min-width: 88px;
        min-height: 88px;
    }

    .statements-grid,
    .split-content,
    .contact-grid,
    .site-footer-inner,
    .admin-shell,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .mosaic-grid,
    .reference-panel,
    .job-strip,
    .value-grid {
        grid-template-columns: 1fr;
    }

    .tile-image {
        min-height: 72vw;
    }

    .job-strip-body {
        border-left: 0;
        border-top: 1px solid rgba(18, 18, 18, 0.08);
    }

    .job-strip-dark .job-strip-body {
        border-top-color: rgba(255, 255, 255, 0.12);
    }

    .offcanvas {
        width: 100vw;
    }

    .offcanvas-inner {
        padding: 22px;
    }

    .offcanvas-nav a {
        font-size: clamp(1.8rem, 9vw, 2.8rem);
    }

    .contact-form {
        padding: 30px 22px;
    }
}

@media (max-width: 639px) {
    .menu-toggle,
    .button,
    .offcanvas-close {
        min-height: 50px;
        padding-inline: 18px;
    }

    .hero-page {
        min-height: 62vh;
    }

    .tile-image {
        min-height: 64vw;
    }

    .reference-panel,
    .job-strip {
        min-height: auto;
    }

    .mosaic-tile > a,
    .mosaic-tile > div,
    .reference-copy,
    .job-strip-head,
    .job-strip-body {
        padding: 28px 22px;
    }

    .statement-item h2,
    .tile-copy h2,
    .tile-contact h2,
    .reference-copy h2,
    .job-strip h2,
    .split-content h2,
    .contact-copy h2 {
        max-width: 100%;
    }
}
