:root {
    color-scheme: dark;
    --bg: #050806;
    --panel: rgba(17, 23, 19, .82);
    --panel-solid: #111713;
    --green: #62b58f;
    --green-dark: #4c9675;
    --white: #f6faf7;
    --muted: #9ca59f;
    --hair: rgba(255, 255, 255, .11);
    --danger: #ff9b9b;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--white);
    font-family: "Poppins", sans-serif;
}

button, input, textarea { font: inherit; }

.map-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.map-field::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 8, 6, .28), rgba(5, 8, 6, .03) 55%, rgba(5, 8, 6, .48));
    content: "";
}

.map-field svg { display: block; width: 100%; height: 100%; }
.dot-grid { color: rgba(255, 255, 255, .075); }
.dot-grid + * { position: relative; }
.dot-grid { fill: url(#dotPattern); }
#dotPattern circle { fill: rgba(255, 255, 255, .085); }

.arc, .pulse-line { fill: none; }
.arc { stroke: #356050; stroke-width: 1; opacity: .56; }
.pulse-line {
    stroke: var(--green);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: .075 .925;
    animation: travel 4.7s linear infinite;
    filter: drop-shadow(0 0 3px rgba(98, 181, 143, .45));
}
.pulse-line.d2 { animation-delay: -1.15s; }
.pulse-line.d3 { animation-delay: -2.35s; }
.pulse-line.d4 { animation-delay: -3.5s; }

@keyframes travel {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}

.node .core { fill: var(--white); }
.node.origin .core { fill: var(--green); }
.node .ring {
    fill: none;
    stroke: var(--green);
    stroke-width: 1;
    transform-box: fill-box;
    transform-origin: center;
    animation: ring 2.8s ease-out infinite;
    animation-delay: var(--ring-delay, 0s);
}
.node text {
    fill: var(--muted);
    font-family: "Space Mono", monospace;
    font-size: 10px;
    letter-spacing: .05em;
}

@keyframes ring {
    0% { opacity: .75; transform: scale(1); }
    100% { opacity: 0; transform: scale(4.25); }
}

.side-word {
    position: fixed;
    top: 50%;
    right: -.08em;
    z-index: 0;
    color: rgba(255, 255, 255, .035);
    font-size: min(31vw, 410px);
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: .8;
    pointer-events: none;
    transform: translateY(-50%);
    user-select: none;
    white-space: nowrap;
}

.site-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: clamp(20px, 3vw, 36px) clamp(20px, 5.5vw, 76px) 0;
}

.logo { display: flex; gap: 10px; align-items: center; min-width: 120px; color: inherit; text-decoration: none; }
.logo svg { display: block; width: 34px; height: auto; }
.wordmark { font-family: "Inter", sans-serif; font-size: 19px; letter-spacing: -.025em; line-height: 1; }
.wordmark strong { font-weight: 600; }
.wordmark span { color: var(--muted); font-weight: 400; }

.eyebrow-tag, .section-label, .kicker, footer {
    font-family: "Space Mono", monospace;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.eyebrow-tag {
    padding: 6px 14px;
    border: 1px solid var(--hair);
    border-radius: 999px;
    color: var(--muted);
    font-size: 11px;
}

.page-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
    gap: clamp(40px, 7vw, 110px);
    align-items: end;
    width: min(1440px, 100%);
    min-height: calc(100svh - 81px);
    margin: 0 auto;
    padding: 54px clamp(20px, 5.5vw, 76px) clamp(72px, 8vh, 100px);
}

.hero { max-width: 650px; }
.kicker {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 18px;
    color: var(--green);
    font-size: 12px;
}
.kicker::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(98, 181, 143, .14);
    content: "";
}

h1 {
    margin: 0 0 20px;
    font-size: clamp(36px, 5vw, 66px);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.05;
}
h1 span { color: var(--muted); font-weight: 300; }
.tagline {
    max-width: 570px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(15px, 1.35vw, 18px);
    font-weight: 300;
    line-height: 1.7;
}
.tagline strong { color: var(--green); font-weight: 500; }

.contact-card {
    width: 100%;
    max-width: 470px;
    justify-self: end;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--hair);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
    backdrop-filter: blur(18px);
}
.section-label { margin: 0 0 7px; color: var(--green); font-size: 10px; }
.contact-heading h2 { margin: 0 0 6px; font-size: clamp(23px, 2.3vw, 31px); letter-spacing: -.025em; }
.contact-heading > p:last-child { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.55; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 12px; }
.field { min-width: 0; }
.field-message { grid-column: 1 / -1; }
.turnstile-field { grid-column: 1 / -1; min-height: 65px; }
.turnstile-field .cf-turnstile { width: 100%; }
.field label { display: block; margin: 0 0 7px; color: #dce3de; font-size: 12px; font-weight: 500; }
.field-hint { display: block; padding-top: 4px; color: var(--muted); font-size: 10px; }
.field input, .field textarea {
    display: block;
    width: 100%;
    border: 1px solid var(--hair);
    border-radius: 11px;
    outline: none;
    background: rgba(0, 0, 0, .25);
    color: var(--white);
    font-size: 13px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field input { height: 45px; padding: 0 13px; }
.field textarea { min-height: 90px; padding: 12px 13px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #737d77; }
.field input:focus, .field textarea:focus {
    border-color: var(--green-dark);
    background: rgba(0, 0, 0, .4);
    box-shadow: 0 0 0 3px rgba(98, 181, 143, .12);
}
.field .input-validation-error { border-color: rgba(255, 155, 155, .65); }
.field-validation-error { display: block; min-height: 17px; padding-top: 4px; color: var(--danger); font-size: 10px; }
.field-validation-valid { display: block; min-height: 0; }

.contact-form button, .button-link {
    display: inline-flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 47px;
    border: 0;
    border-radius: 12px;
    background: var(--green);
    color: #06120c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: filter .15s ease, transform .15s ease;
}
.contact-form button:hover, .button-link:hover { filter: brightness(1.08); }
.contact-form button:active, .button-link:active { transform: scale(.99); }
.contact-form button:focus-visible, .button-link:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.contact-form button:disabled { cursor: wait; filter: saturate(.5); }
.form-status { margin: 0 0 17px; padding: 11px 13px; border-radius: 10px; font-size: 12px; line-height: 1.45; }
.form-status.success { border: 1px solid rgba(98, 181, 143, .28); background: rgba(98, 181, 143, .1); color: #aee4ca; }

footer {
    position: fixed;
    right: clamp(20px, 5.5vw, 76px);
    bottom: 19px;
    z-index: 2;
    color: #747d77;
    font-size: 9px;
}
footer span { padding: 0 7px; }

.error-page { display: grid; place-items: center; padding: 24px; }
.error-card { max-width: 500px; padding: 36px; border: 1px solid var(--hair); border-radius: 24px; background: var(--panel-solid); text-align: center; }
.error-card h1 { font-size: 36px; }
.error-card > p:not(.kicker) { color: var(--muted); }
.error-card .kicker { justify-content: center; }
.error-card .button-link {
    min-width: 140px;
    margin-top: 20px;
    padding: 0 24px;
}

@media (max-width: 980px) {
    .page-shell {
        grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
        gap: 36px;
        align-items: center;
    }
    h1 { font-size: clamp(34px, 5vw, 50px); }
    .side-word { font-size: 44vw; opacity: .75; }
}

@media (max-width: 760px) {
    .site-header { padding-top: 20px; }
    .page-shell {
        display: block;
        min-height: auto;
        padding-top: clamp(54px, 9vh, 84px);
        padding-bottom: 82px;
    }
    .hero { margin-bottom: 38px; }
    .contact-card { max-width: none; }
    .map-field { opacity: .7; }
    .side-word { top: 32%; font-size: 60vw; }
    footer {
        position: relative;
        right: auto;
        bottom: auto;
        margin: -50px 20px 20px;
    }
}

@media (max-width: 520px) {
    .logo svg { width: 26px; }
    .wordmark { font-size: 17px; }
    .eyebrow-tag { padding: 5px 10px; font-size: 9px; }
    .page-shell { padding-top: 48px; }
    .kicker { margin-bottom: 14px; font-size: 10px; }
    h1 { margin-bottom: 15px; font-size: clamp(31px, 9.4vw, 42px); }
    .tagline { font-size: 14px; line-height: 1.6; }
    .contact-card { padding: 21px 18px; border-radius: 19px; }
    .contact-form { grid-template-columns: 1fr; gap: 11px; }
    .field-message, .contact-form button { grid-column: auto; }
    .field input { height: 44px; }
    footer { font-size: 8px; letter-spacing: .08em; }
}

@media (max-height: 680px) and (min-width: 761px) {
    .page-shell { align-items: center; padding-top: 34px; padding-bottom: 48px; }
    h1 { font-size: clamp(30px, 4.5vw, 52px); }
    .contact-card { padding: 20px 24px; }
    .contact-heading > p:last-child { margin-bottom: 14px; }
    .field textarea { min-height: 70px; }
    footer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
    .pulse-line, .node .ring { animation: none !important; }
    .contact-form button, .button-link, .field input, .field textarea { transition: none; }
}
