:root {
    --bg: #f5f5f0;
    --primary: #1b3022;
    --primary-strong: #061b0e;
    --ink: #1b1c1c;
    --muted: #606662;
    --line: #737973;
    --card: #fcf9f8;
    --mono: "Space Grotesk", sans-serif;
    --headline: "Epilogue", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--mono);
    background: var(--bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--headline);
    margin: 0;
}

p {
    margin: 0;
}

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

.topbar,
.hero,
.services,
.audience,
.process,
.contact,
.footer,
.funding,
.initiatives-highlight {
    max-width: 1320px;
    margin: 0 auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 3rem;
    border-bottom: 1px dashed var(--primary);
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-logo {
    width: 180px;
    max-width: 42vw;
    height: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 0.25rem;
    text-transform: uppercase;
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
}

.main-nav a {
    padding: 0.4rem 0.8rem;
}

.main-nav .is-active {
    background: var(--primary);
    color: #fff;
}

.ref-label {
    position: relative;
    border: 1px dashed transparent;
    background: transparent;
    color: var(--ink);
    padding: 0.35rem 0.55rem;
    cursor: pointer;
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ref-label:hover,
.ref-label:focus-visible {
    border-color: rgba(27, 48, 34, 0.45);
    background: rgba(27, 48, 34, 0.04);
    outline: none;
}

.ref-tooltip {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    width: min(300px, 72vw);
    text-align: left;
    border: 1px solid rgba(27, 48, 34, 0.8);
    background: linear-gradient(150deg, rgba(20, 36, 26, 0.98), rgba(34, 57, 42, 0.95));
    color: #f7fbf8;
    padding: 0.72rem 0.8rem;
    font-size: 0.7rem;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0.03em;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px) scale(0.98);
    box-shadow: 0 10px 20px rgba(8, 12, 9, 0.18);
    z-index: 30;
}

.ref-tooltip::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 16px;
    width: 10px;
    height: 10px;
    background: rgba(20, 36, 26, 0.98);
    border-top: 1px solid rgba(27, 48, 34, 0.8);
    border-left: 1px solid rgba(27, 48, 34, 0.8);
    transform: rotate(45deg);
}

.ref-label:hover .ref-tooltip,
.ref-label:focus-visible .ref-tooltip,
.ref-label:focus .ref-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: ref-tooltip-in 0.26s ease-out, ref-tooltip-pulse 2.2s ease-in-out infinite 0.26s;
}

@keyframes ref-tooltip-in {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ref-tooltip-pulse {
    0%,
    100% {
        box-shadow: 0 10px 20px rgba(8, 12, 9, 0.18);
    }
    50% {
        box-shadow: 0 12px 26px rgba(111, 184, 132, 0.2);
    }
}

.grid-overlay {
    background-image: linear-gradient(to right, rgba(27, 48, 34, 0.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(27, 48, 34, 0.06) 1px, transparent 1px);
    background-size: 64px 64px;
}

.hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    border-bottom: 1px solid var(--primary);
    background-image: linear-gradient(rgba(252, 249, 248, 0.9), rgba(252, 249, 248, 0.92)), url("/static/core/img/hero_backgroud.webp");
    background-size: cover;
    background-position: center;
}

.hero-main {
    padding: 4.8rem 4rem;
    border-right: 1px dashed var(--primary);
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.technical-pill {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-transform: uppercase;
    font-size: 0.67rem;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.5rem;
    margin-bottom: 1.2rem;
}

.hero-main h1 {
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.4rem;
}

.lead {
    max-width: 36rem;
    color: var(--muted);
    margin-bottom: 3rem;
    line-height: 1.7;
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-block;
    border: 1px solid var(--primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-family: monospace;
    padding: 1rem 1.65rem;
    cursor: pointer;
}

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

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

.btn-secondary {
    border-style: dashed;
}

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

.hero-side {
    background: var(--primary);
    color: #fff;
    padding: 3.2rem;
    display: grid;
    gap: 1.4rem;
    align-content: space-between;
}

.module-tag {
    font-size: 0.67rem;
    font-family: monospace;
    letter-spacing: 0.08em;
}

.side-item {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 1.1rem;
    margin-bottom: 0.35rem;
}

.side-item h2 {
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.side-item p {
    font-size: 0.8rem;
    line-height: 1.45;
    opacity: 0.85;
}

.coordinates {
    font-family: monospace;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    padding: 0.85rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(8, 20, 13, 0.35));
    display: grid;
    gap: 0.45rem;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.coord-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.58rem;
    letter-spacing: 0.09em;
    opacity: 0.82;
}

.coord-signal {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #b8e9bf;
    box-shadow: 0 0 0 0 rgba(184, 233, 191, 0.7);
    animation: coord-ping 1.4s ease-out infinite;
}

.coord-value {
    margin: 0;
    font-size: 1.03rem;
    letter-spacing: 0.03em;
    color: #effcf2;
    min-height: 1.4rem;
}

.coord-detail {
    border-top: 1px dashed rgba(255, 255, 255, 0.26);
    margin-top: 0.3rem;
    padding-top: 0.58rem;
    display: grid;
    gap: 0.35rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(6px);
    filter: blur(4px);
    transition: opacity 0.25s ease, max-height 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.coordinates:hover,
.coordinates.is-locked {
    border-color: rgba(184, 233, 191, 0.7);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(9, 26, 16, 0.55));
}

.coordinates:hover .coord-detail,
.coordinates.is-locked .coord-detail {
    opacity: 1;
    max-height: 210px;
    transform: translateY(0);
    filter: blur(0);
}

.detail-name {
    margin: 0;
    font-size: 0.87rem;
    font-weight: 700;
    color: #fff;
}

.detail-address {
    margin: 0;
    font-size: 0.73rem;
    opacity: 0.85;
    line-height: 1.45;
}

.detail-status {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.88;
}

.detail-status span {
    display: inline-block;
    margin-left: 0.3rem;
    padding: 0.15rem 0.36rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.detail-status .is-operational {
    background: rgba(109, 205, 125, 0.2);
    border-color: rgba(142, 224, 155, 0.8);
}

.detail-status .is-demolition {
    background: rgba(255, 210, 122, 0.24);
    border-color: rgba(255, 215, 132, 0.9);
}

.detail-status .is-demolished {
    background: rgba(255, 128, 128, 0.22);
    border-color: rgba(255, 148, 148, 0.88);
}

.detail-status .is-degraded {
    background: rgba(178, 176, 255, 0.22);
    border-color: rgba(193, 190, 255, 0.88);
}

.services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--primary);
}

.services article {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    --scan-delay: 0s;
    --dot-delay: 0s;
    --flicker-delay: 0s;
    padding: 3.2rem 2.6rem;
    border-right: 1px solid var(--primary);
    background: var(--card);
}

.services article:nth-child(2) {
    --scan-delay: -0.55s;
    --dot-delay: -0.35s;
    --flicker-delay: -1.1s;
}

.services article:nth-child(3) {
    --scan-delay: -1.15s;
    --dot-delay: -0.75s;
    --flicker-delay: -1.85s;
}

.services article:last-child {
    border-right: 0;
}

.service-code {
    font-family: monospace;
    font-size: 0.67rem;
    margin-bottom: 1.2rem;
    opacity: 0.95;
    display: inline-block;
    position: relative;
    letter-spacing: 0.08em;
    padding-bottom: 0.75rem;
    color: var(--primary);
    text-shadow: 0 0 0 rgba(27, 48, 34, 0.25);
    animation: service-code-flicker 2.8s linear infinite;
    animation-delay: var(--flicker-delay);
}

.service-code::before {
    content: "⦿";
    margin-right: 0.45rem;
    display: inline-block;
    animation: service-dot-ping 1.6s ease-in-out infinite;
    animation-delay: var(--dot-delay);
}

.service-code::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-image: linear-gradient(90deg, rgba(27, 48, 34, 0.2) 0%, rgba(27, 48, 34, 1) 45%, rgba(27, 48, 34, 0.2) 100%);
    background-size: 180% 100%;
    animation: service-loading-line 1.8s linear infinite;
    animation-delay: var(--scan-delay);
}

.services h2 {
    margin-bottom: 0;
    font-size: 1.4rem;
    line-height: 1.2;
    min-height: 0;
}

.service-teaser {
    margin-top: auto;
    padding-top: 1.35rem;
    display: grid;
    gap: 0.62rem;
}

.teaser-kicker {
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
}

.teaser-line {
    width: 100%;
    height: 7px;
    border: 1px dashed rgba(27, 48, 34, 0.48);
    padding: 1px;
}

.teaser-line span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, rgba(27, 48, 34, 0.3), rgba(27, 48, 34, 0.85), rgba(27, 48, 34, 0.3));
    background-size: 180% 100%;
    animation: service-loading-line 2.2s linear infinite;
}

.teaser-line .w-64 {
    width: 64%;
    animation-delay: -0.65s;
}

.teaser-line .w-78 {
    width: 78%;
    animation-delay: -0.15s;
}

.teaser-line .w-86 {
    width: 86%;
    animation-delay: -1.05s;
}

.teaser-chip {
    display: inline-block;
    font-family: monospace;
    font-size: 0.72rem;
    padding: 0.24rem 0.48rem;
    border: 1px solid rgba(27, 48, 34, 0.38);
    width: fit-content;
    background: rgba(27, 48, 34, 0.04);
}

.teaser-hint {
    font-size: 0.78rem;
    color: #425046;
}

.services article > p:not(.service-code) {
    margin-top: 1.1rem;
    line-height: 1.65;
    color: var(--muted);
}

.service-link {
    margin-top: 1rem;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border: 1px dashed var(--primary);
    padding: 0.3rem 0.55rem;
    background: rgba(27, 48, 34, 0.03);
}

.service-link:hover,
.service-link:focus-visible {
    background: var(--primary);
    color: #fff;
}

.service-card-link {
    display: none;
}

.audience {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--primary);
}

.audience article {
    padding: 3.4rem 2.9rem;
}

.audience article:first-child {
    border-right: 1px dashed var(--primary);
}

.audience h2 {
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    font-size: 1.7rem;
}

.audience p {
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.process {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    padding: 3rem 2.8rem 3rem;
    border-bottom: 1px solid var(--primary);
}

.process::before {
    content: "";
    position: absolute;
    top: 2.4rem;
    bottom: 2.4rem;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(180deg, rgba(27, 48, 34, 0.95) 0 9px, rgba(27, 48, 34, 0.25) 9px 16px);
}

.process article {
    position: relative;
    width: calc(50% - 2.3rem);
    padding: 2.1rem 1.9rem;
    min-height: 190px;
    background: #fcf9f8;
    border: 1px dashed var(--primary);
    box-shadow: 8px 8px 0 rgba(27, 48, 34, 0.08);
}

.process article:nth-child(odd) {
    margin-right: auto;
}

.process article:nth-child(even) {
    margin-left: auto;
}

.process article::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    background: var(--primary);
    border: 2px solid #fcf9f8;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(27, 48, 34, 0.12);
    animation: process-node-pulse 2.4s ease-in-out infinite;
}

.process article:nth-child(odd)::before {
    right: -2.95rem;
}

.process article:nth-child(even)::before {
    left: -2.95rem;
}

.process .highlight {
    background: var(--primary);
    color: #fff;
}

.process h2 {
    font-size: 1.2rem;
    margin-bottom: 0.45rem;
}

.process p {
    line-height: 1.6;
    font-size: 0.9rem;
}

.process-note {
    margin-top: 0.7rem;
    font-size: 0.8rem;
    line-height: 1.55;
    opacity: 0.82;
}

.process-meta {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.process-meta span {
    font-family: monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px dashed rgba(27, 48, 34, 0.45);
    padding: 0.2rem 0.45rem;
}

.process .highlight .process-note,
.process .highlight .process-meta span {
    opacity: 0.9;
    border-color: rgba(255, 255, 255, 0.42);
}

@keyframes service-loading-line {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

@keyframes service-dot-ping {
    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.88);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

@keyframes service-code-flicker {
    0%,
    100% {
        text-shadow: 0 0 0 rgba(27, 48, 34, 0.2);
    }
    46% {
        text-shadow: 0 0 10px rgba(27, 48, 34, 0.08);
    }
    47% {
        text-shadow: 0 0 1px rgba(27, 48, 34, 0.65);
    }
    48% {
        text-shadow: 0 0 10px rgba(27, 48, 34, 0.08);
    }
}

@keyframes coord-ping {
    0% {
        box-shadow: 0 0 0 0 rgba(184, 233, 191, 0.7);
    }
    80%,
    100% {
        box-shadow: 0 0 0 8px rgba(184, 233, 191, 0);
    }
}

@keyframes process-node-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(27, 48, 34, 0.12);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 7px rgba(27, 48, 34, 0.16);
    }
}

.funding {
    background: var(--primary);
    color: #fff;
    padding: 3.8rem 3.1rem;
    border-bottom: 1px solid var(--primary);
}

.funding-tag {
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
}

.funding h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 0.8rem;
}

.funding > p {
    max-width: 68rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 1.4rem;
}

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

.funding h3 {
    margin-bottom: 0.7rem;
    font-size: 1.15rem;
}

.funding-grid p {
    opacity: 0.9;
    line-height: 1.65;
}

.funding-cta-row {
    display: flex;
    align-items: center;
    margin: 0 0 1.8rem;
}

.funding-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    font-family: monospace;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px dashed rgba(255, 255, 255, 0.55);
    padding: 0.75rem 1rem;
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.funding-link:hover,
.funding-link:focus-visible {
    background: #fff;
    color: #1b3022;
}

.funding-link.alt {
    margin-left: 0.8rem;
    background: transparent;
}

.initiatives-highlight {
    background: linear-gradient(132deg, #fcf9f8, #f1f5f2);
    color: var(--primary);
    padding: 3.2rem 3.1rem;
    border-bottom: 1px solid var(--primary);
}

.initiatives-highlight h2 {
    font-size: clamp(1.8rem, 4vw, 2.45rem);
    margin-bottom: 0.85rem;
}

.initiatives-highlight p {
    max-width: 75ch;
    line-height: 1.7;
    margin-bottom: 1.3rem;
}

.initiatives-highlight .funding-link {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(27, 48, 34, 0.04);
}

.initiatives-highlight .funding-link:hover,
.initiatives-highlight .funding-link:focus-visible {
    background: var(--primary);
    color: #fff;
}

.contact {
    display: block;
    border-bottom: 1px solid var(--primary);
}

.obfuscated-email {
    display: inline-block;
    border: 1px dashed var(--primary);
    padding: 0.25rem 0.55rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.obfuscated-email:hover,
.obfuscated-email:focus-visible {
    background: var(--primary);
    color: #fff;
}

.contact-form-wrap {
    background: #fff;
    padding: 3.4rem 2.9rem;
    max-width: 960px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.footer-contact {
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.footer-social {
    margin-top: 0.8rem;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px dashed var(--primary);
    background: rgba(27, 48, 34, 0.04);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.social-icon-link svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
}

.social-icon-link:hover,
.social-icon-link:focus-visible {
    background: var(--primary);
}

.social-icon-link:hover svg,
.social-icon-link:focus-visible svg {
    fill: #fff;
}

.form-message {
    border: 1px dashed var(--line);
    margin: 0 0 1rem;
    padding: 0.65rem;
    font-size: 0.9rem;
}

.form-message.success {
    border-color: #245631;
    background: #eef8ef;
}

.form-message.error {
    border-color: #9c2a2a;
    background: #fff0f0;
}

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

.field {
    margin-bottom: 1.6rem;
}

.field label {
    display: block;
    text-transform: uppercase;
    font-size: 0.67rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--primary);
    font: inherit;
    padding: 0.7rem 0;
    background: transparent;
}

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

.errorlist {
    list-style: none;
    margin: 0.3rem 0 0;
    padding: 0;
    color: #9c2a2a;
    font-size: 0.82rem;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0.8rem 0 1.3rem;
    font-size: 0.76rem;
    line-height: 1.5;
}

.consent-row a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.policy-wrap p {
    margin-bottom: 0.9rem;
    line-height: 1.7;
    color: var(--muted);
}

.team-wrap {
    max-width: 1040px;
}

.team-page .contact-form-wrap {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(1.5px);
}

.team-page {
    background-image: linear-gradient(rgba(245, 245, 240, 0.72), rgba(245, 245, 240, 0.84)), url("/static/core/img/simple_background.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.team-intro {
    margin-bottom: 1.4rem;
    line-height: 1.7;
    color: var(--muted);
}

.team-card {
    border: 1px dashed var(--primary);
    background: rgba(252, 249, 248, 0.9);
    padding: 1.45rem 1.3rem;
    margin-bottom: 1rem;
}

.team-card h2 {
    font-size: 1.35rem;
    margin-bottom: 0.55rem;
}

.team-role {
    margin-bottom: 0.8rem;
    color: var(--muted);
    line-height: 1.55;
}

.team-points {
    margin: 0 0 0.8rem 1rem;
    padding: 0;
    line-height: 1.6;
}

.team-points li {
    margin-bottom: 0.5rem;
}

.team-source {
    margin: 0;
    font-family: monospace;
    font-size: 0.78rem;
}

.team-source a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.subpage-cta {
    margin-top: 1.4rem;
    border: 1px dashed var(--primary);
    background: linear-gradient(130deg, #183021, #274536);
    color: #f4faf5;
    padding: 1.5rem 1.3rem;
    position: relative;
    overflow: hidden;
}

.subpage-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(180, 205, 184, 0.22), transparent 55%);
    pointer-events: none;
}

.subpage-cta .service-code {
    color: #d0e9d4;
}

.subpage-cta h2 {
    margin: 0.25rem 0 0.55rem;
    font-size: 1.35rem;
}

.subpage-cta p {
    margin: 0 0 1rem;
    line-height: 1.6;
    max-width: 74ch;
}

.subpage-cta .btn {
    background: #f7faf7;
    color: #1b3022;
    border-color: #f7faf7;
}

.subpage-cta .btn:hover,
.subpage-cta .btn:focus-visible {
    background: transparent;
    color: #f7faf7;
    border-color: #f7faf7;
}

.team-subtitle {
    margin: 0.7rem 0 0.5rem;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: monospace;
}

.retail-page .contact-form-wrap {
    max-width: 1020px;
    margin: 0 auto;
}

.retail-wrap {
    background: rgba(255, 255, 255, 0.9);
}

.retail-lead {
    margin-bottom: 1.2rem;
    color: var(--muted);
    line-height: 1.7;
}

.retail-wrap h2 {
    font-size: 1.5rem;
    margin: 1.4rem 0 0.7rem;
}

.retail-wrap h3 {
    font-size: 1.05rem;
    margin: 1rem 0 0.55rem;
}

.retail-wrap p {
    line-height: 1.65;
}

.retail-wrap a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.retail-list {
    margin: 0.5rem 0 0.9rem 1rem;
    padding: 0;
    line-height: 1.6;
}

.retail-list li {
    margin-bottom: 0.35rem;
}

.retail-ordered {
    list-style: decimal;
}

.retail-keywords {
    margin-top: 1rem;
    border: 1px dashed var(--line);
    padding: 1rem;
    background: linear-gradient(150deg, rgba(248, 251, 249, 0.95), rgba(241, 246, 243, 0.78));
    position: relative;
    overflow: hidden;
}

.retail-keywords h3 {
    margin: 0 0 0.9rem;
    position: relative;
    z-index: 1;
}

.keywords-mindmap {
    position: relative;
    padding: 1.9rem 0.35rem 0.2rem;
}

.keywords-mindmap::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 1.6rem;
    width: min(720px, 88%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(to right, transparent, rgba(27, 48, 34, 0.3), transparent);
}

.mindmap-core {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    margin: 0;
    font-family: monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(27, 48, 34, 0.6);
    padding: 0.42rem 0.66rem;
    background: #fff;
    color: var(--primary);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.55);
}

.mindmap-nodes {
    list-style: none;
    margin: 0;
    padding: 1.2rem 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.58rem;
}

.mindmap-nodes li {
    position: relative;
    border: 1px dashed rgba(27, 48, 34, 0.5);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.43rem 0.62rem;
    font-size: 0.78rem;
    line-height: 1.4;
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
    animation: mindmap-node-flicker 6s steps(2, end) infinite;
    animation-delay: calc(var(--i, 1) * 0.13s);
}

.mindmap-nodes li::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -0.72rem;
    width: 1px;
    height: 0.72rem;
    transform: translateX(-50%);
    background: rgba(27, 48, 34, 0.35);
}

.mindmap-nodes li:hover,
.mindmap-nodes li:focus-visible {
    transform: translateY(-2px);
    border-color: var(--primary);
    background: #fff;
}

.mindmap-nodes li:nth-child(3n) {
    animation-duration: 5.2s;
}

.mindmap-nodes li:nth-child(4n) {
    animation-duration: 7.1s;
    animation-delay: 0.4s;
}

.mindmap-nodes li:nth-child(5n) {
    animation-delay: 0.85s;
}

@keyframes mindmap-node-flicker {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(27, 48, 34, 0);
        opacity: 0.98;
    }
    44% {
        box-shadow: 0 0 0 rgba(27, 48, 34, 0);
    }
    46% {
        box-shadow: 0 0 8px rgba(27, 48, 34, 0.13);
        opacity: 1;
    }
    48% {
        box-shadow: 0 0 0 rgba(27, 48, 34, 0);
    }
}

.initiatives-page .retail-wrap {
    max-width: 1120px;
}

.initiative-actions-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.initiative-group-block {
    margin-top: 1rem;
}

.initiative-group-block h2 {
    margin: 0.4rem 0 0.8rem;
}

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

.initiative-card {
    border: 1px dashed var(--primary);
    background: linear-gradient(135deg, #fefdfc, #f4f8f5);
    padding: 1rem 1rem 1.05rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.initiative-card h3 {
    margin: 0;
    font-size: 1.08rem;
}

.initiative-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.initiative-card a {
    margin-top: 0.45rem;
    text-transform: uppercase;
    font-family: monospace;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    border: 1px solid var(--primary);
    width: fit-content;
    padding: 0.5rem 0.75rem;
    background: var(--primary);
    color: #fff;
}

.initiative-card a:hover,
.initiative-card a:focus-visible {
    background: #fff;
    color: var(--primary);
}

.initiative-card-inline {
    margin: 0.6rem 0 1.2rem;
}

.footer {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.8rem;
    padding: 3rem;
    border-top: 1px dashed var(--primary);
}

.footer h2,
.footer h3 {
    font-family: monospace;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.footer p,
.footer li {
    font-family: monospace;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    line-height: 1.7;
    opacity: 0.85;
}

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

.footer li {
    margin-bottom: 0.45rem;
}

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

.footer-nav-group h3 {
    margin-bottom: 0.5rem;
}

.legal-data {
    margin-top: 0.9rem;
    max-width: 58ch;
}

@media (hover: hover) and (pointer: fine) and (min-width: 1081px) {
    .service-card-clickable {
        cursor: pointer;
    }

    .service-card-clickable .service-link {
        display: none;
    }

    .service-card-clickable .service-card-link {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 4;
    }

    .services article {
        min-height: 340px;
        transition: background-color 0.35s ease, transform 0.35s ease;
    }

    .services article::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 0%, rgba(27, 48, 34, 0.13), transparent 50%);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }

    .services article:hover,
    .services article:focus-within {
        transform: translateY(-6px);
        background-color: #f2efed;
    }

    .services article:hover::after,
    .services article:focus-within::after {
        opacity: 1;
    }

    .services article > p:not(.service-code) {
        position: absolute;
        left: 2.6rem;
        right: 2.6rem;
        bottom: 2.2rem;
        margin-top: 0;
        opacity: 0;
        transform: translateY(16px) scale(0.99);
        filter: blur(6px);
        transition: opacity 0.42s ease, transform 0.42s ease, filter 0.42s ease;
    }

    .services article:hover .service-teaser,
    .services article:focus-within .service-teaser {
        opacity: 0.18;
        transform: translateY(-6px);
        transition: opacity 0.28s ease, transform 0.28s ease;
    }

    .services article:hover > p:not(.service-code),
    .services article:focus-within > p:not(.service-code) {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@media (max-width: 1080px) {
    .hero,
    .contact {
        grid-template-columns: 1fr;
    }

    .hero-main {
        border-right: 0;
        border-bottom: 1px dashed var(--primary);
        min-height: auto;
    }

    .services,
    .audience,
    .funding-grid,
    .initiative-grid,
    .fields-two,
    .footer {
        grid-template-columns: 1fr;
    }

    .footer-nav-groups {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .services article,
    .audience article {
        border-right: 0;
        border-bottom: 1px solid var(--primary);
    }

    .services article:last-child {
        border-bottom: 0;
    }

    .process {
        padding: 1.8rem 1.2rem 2rem;
        gap: 1rem;
    }

    .process::before {
        left: 1.55rem;
        transform: none;
        top: 1.2rem;
        bottom: 1.2rem;
    }

    .process article,
    .process article:nth-child(odd),
    .process article:nth-child(even) {
        width: 100%;
        margin: 0;
        min-height: 0;
        padding: 1.5rem 1.2rem 1.5rem 2.6rem;
        box-shadow: none;
    }

    .process article::before,
    .process article:nth-child(odd)::before,
    .process article:nth-child(even)::before {
        left: 1rem;
        right: auto;
    }
}

@media (max-width: 760px) {
    .topbar {
        flex-wrap: wrap;
        padding: 1.2rem 1rem 1.2rem;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .brand-logo {
        width: 146px;
        max-width: 58vw;
    }

    .hero-main,
    .hero-side,
    .funding,
    .initiatives-highlight,
    .contact-form-wrap,
    .services article,
    .audience article,
    .process article {
        padding: 2rem 1.4rem;
    }

    .lead {
        font-size: 1rem;
        line-height: 1.65;
    }

    .hero-main h1 {
        line-height: 1.14;
        margin-bottom: 1.1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .funding-cta-row {
        margin-bottom: 1.2rem;
    }

    .funding-link {
        width: 100%;
    }

    .funding-link.alt {
        margin-left: 0;
    }

    .teaser-hint {
        display: none;
    }

    .service-link {
        width: 100%;
        min-height: 46px;
        margin-top: 1rem;
        padding: 0.72rem 0.9rem;
        border-style: solid;
        border-width: 1px;
        background: #1b3022;
        color: #fff;
        font-size: 0.76rem;
        letter-spacing: 0.08em;
        text-align: center;
    }

    .service-link:hover,
    .service-link:focus-visible {
        background: #fff;
        color: #1b3022;
    }

    .keywords-mindmap {
        padding-top: 2.2rem;
    }

    .mindmap-core {
        width: max-content;
        max-width: 92%;
    }

    .mindmap-nodes {
        gap: 0.44rem;
    }

    .mindmap-nodes li {
        font-size: 0.74rem;
    }
}
