:root {
    color-scheme: dark;
    --ink: #070908;
    --ink-soft: #101311;
    --paper: #f0f0e9;
    --paper-soft: #d9d9d1;
    --green: #00f58a;
    --green-dark: #008e52;
    --red: #ff3347;
    --muted: #969c98;
    --rule: rgba(255, 255, 255, 0.18);
    --display: 'Barlow Condensed', sans-serif;
    --body: 'Space Grotesk', sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ink);
    color: var(--paper);
    font-family: var(--body);
    line-height: 1.6;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

button,
a {
    touch-action: manipulation;
}

a {
    color: inherit;
}

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

button {
    font: inherit;
}

[id] {
    scroll-margin-top: 82px;
}

.skip-link {
    background: var(--green);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 700;
    left: 1rem;
    padding: 0.75rem 1rem;
    position: fixed;
    top: 1rem;
    transform: translateY(-180%);
    transition: transform 180ms ease;
    z-index: 1000;
}

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

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 4px;
}

.site-nav {
    align-items: center;
    background: rgba(7, 9, 8, 0.88);
    border-bottom: 1px solid var(--rule);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    height: 80px;
    inset: 0 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 4rem);
    position: fixed;
    z-index: 100;
}

.brand {
    align-items: center;
    display: inline-flex;
    gap: 0.85rem;
    justify-self: start;
    text-decoration: none;
}

.brand img {
    height: 45px;
    width: 40px;
}

.brand-copy {
    font-family: var(--mono);
    font-size: clamp(0.74rem, 1.2vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.24em;
    white-space: nowrap;
}

.brand-copy span {
    color: var(--green);
}

.nav-links {
    display: flex;
    gap: clamp(1.5rem, 3vw, 3.25rem);
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.nav-links a:hover {
    color: var(--green);
}

.nav-emergency {
    background: transparent;
    border: 0;
    color: var(--red);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    justify-self: end;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-emergency::before {
    background: var(--red);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(255, 51, 71, 0.12);
    content: '';
    display: inline-block;
    height: 7px;
    margin-right: 0.65rem;
    width: 7px;
}

.nav-emergency:hover {
    color: var(--paper);
}

.hero {
    align-items: center;
    display: flex;
    min-height: 100svh;
    overflow: hidden;
    padding: 9rem clamp(1.25rem, 5vw, 5rem) 5rem;
    position: relative;
}

.hero-media,
.hero-shade,
#particles-js {
    inset: 0;
    position: absolute;
}

.hero-media {
    height: 100%;
    object-fit: cover;
    object-position: 64% center;
    width: 100%;
    z-index: 0;
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(7, 9, 8, 0.99) 0%, rgba(7, 9, 8, 0.95) 33%, rgba(7, 9, 8, 0.42) 63%, rgba(7, 9, 8, 0.2) 100%),
        linear-gradient(0deg, rgba(7, 9, 8, 0.82) 0%, transparent 38%);
    z-index: 1;
}

#particles-js {
    pointer-events: none;
    z-index: 2;
}

#particles-js canvas {
    background: transparent !important;
    display: block;
}

.hero-content {
    max-width: 850px;
    position: relative;
    z-index: 3;
}

.eyebrow {
    align-items: center;
    color: var(--green);
    display: flex;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    gap: 0.85rem;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.eyebrow::before {
    background: currentColor;
    content: '';
    height: 2px;
    width: 2.75rem;
}

.hero h1,
.section-title,
.contact-title {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(4rem, 8vw, 8.2rem);
    line-height: 0.84;
    max-width: 860px;
    text-wrap: balance;
}

.hero h1 span {
    display: block;
}

.hero h1 em {
    color: var(--green);
    font-style: normal;
}

.hero-copy {
    color: #c0c5c1;
    font-size: clamp(1rem, 1.5vw, 1.22rem);
    margin: 2.25rem 0 2.5rem;
    max-width: 580px;
}

.action-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    gap: 1.4rem;
    justify-content: space-between;
    letter-spacing: 0.12em;
    min-height: 58px;
    padding: 0 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button::after {
    content: '↗';
    font-size: 1rem;
}

.button-primary {
    background: var(--green);
    color: var(--ink);
}

.button-primary:hover {
    background: var(--paper);
}

.button-quiet {
    border-bottom-color: var(--green);
    color: var(--paper);
    padding-inline: 0;
}

.button-quiet:hover {
    color: var(--green);
}

.hero-proof {
    border-top: 1px solid var(--rule);
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    left: 0;
    position: absolute;
    right: 0;
    z-index: 3;
}

.proof-item {
    border-right: 1px solid var(--rule);
    padding: 1.1rem clamp(1.25rem, 5vw, 5rem);
}

.proof-item strong {
    color: var(--paper);
    display: block;
    font-family: var(--display);
    font-size: 1.8rem;
    line-height: 1;
}

.proof-item span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.capabilities {
    background: var(--ink);
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    min-height: 900px;
}

.capability-media {
    min-height: 760px;
    overflow: hidden;
    position: relative;
}

.capability-media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.media-caption {
    background: var(--green);
    bottom: 0;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 700;
    left: 0;
    letter-spacing: 0.12em;
    padding: 1rem 1.25rem;
    position: absolute;
    text-transform: uppercase;
}

.capability-copy {
    padding: clamp(5rem, 8vw, 9rem) clamp(1.5rem, 6vw, 6rem);
}

.section-kicker {
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(3.6rem, 6.5vw, 7rem);
    line-height: 0.86;
    max-width: 690px;
    text-wrap: balance;
}

.capability-list {
    list-style: none;
    margin-top: clamp(3rem, 6vw, 6rem);
}

.capability-item {
    border-top: 1px solid var(--rule);
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 1.5rem 0;
}

.capability-item:last-child {
    border-bottom: 1px solid var(--rule);
}

.capability-number {
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.68rem;
    padding-top: 0.25rem;
}

.capability-item h3 {
    font-family: var(--display);
    font-size: clamp(1.8rem, 2.6vw, 2.7rem);
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.capability-item p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 0.6rem;
    max-width: 560px;
}

.process {
    background: var(--paper);
    color: var(--ink);
    padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 5vw, 5rem);
}

.process .section-kicker {
    color: var(--green-dark);
}

.process-head {
    align-items: end;
    display: flex;
    gap: 3rem;
    justify-content: space-between;
}

.process-head p {
    color: #525752;
    max-width: 430px;
}

.process-list {
    border-bottom: 1px solid rgba(7, 9, 8, 0.28);
    border-top: 1px solid rgba(7, 9, 8, 0.28);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    margin-top: 5rem;
}

.process-step {
    border-right: 1px solid rgba(7, 9, 8, 0.28);
    min-height: 235px;
    padding: 1.75rem;
}

.process-step:last-child {
    border-right: 0;
}

.process-step strong {
    color: var(--green-dark);
    display: block;
    font-family: var(--display);
    font-size: clamp(3.5rem, 5vw, 5.5rem);
    line-height: 1;
}

.process-step h3 {
    font-family: var(--display);
    font-size: 1.65rem;
    margin: 0.65rem 0;
    text-transform: uppercase;
}

.process-step p {
    color: #575c57;
    font-size: 0.85rem;
}

.process-gallery {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1.4fr 0.6fr;
    margin-top: 1.5rem;
}

.process-image {
    height: min(62vw, 680px);
    min-height: 430px;
    object-fit: cover;
    width: 100%;
}

.process-note {
    align-items: flex-end;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    min-height: 430px;
    padding: clamp(1.5rem, 4vw, 4rem);
}

.process-note blockquote {
    font-family: var(--display);
    font-size: clamp(2.2rem, 4vw, 4.5rem);
    font-weight: 600;
    line-height: 0.98;
    text-transform: uppercase;
}

.process-note span {
    color: var(--green);
}

.contact {
    background: var(--ink);
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.contact-media {
    min-height: 860px;
    overflow: hidden;
}

.contact-media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.contact-copy {
    align-self: center;
    padding: clamp(5rem, 9vw, 9rem) clamp(1.5rem, 7vw, 7rem);
}

.contact-title {
    font-size: clamp(4rem, 7vw, 7.5rem);
    line-height: 0.86;
    text-wrap: balance;
}

.contact-copy > p {
    color: var(--muted);
    margin: 2rem 0 2.5rem;
    max-width: 540px;
}

.response-actions {
    border-top: 1px solid var(--rule);
}

.response-action {
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--rule);
    color: var(--paper);
    cursor: pointer;
    display: flex;
    font-family: var(--display);
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    font-weight: 600;
    justify-content: space-between;
    padding: 1.25rem 0;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 180ms ease, padding 180ms ease;
    width: 100%;
}

.response-action:hover {
    color: var(--green);
    padding-left: 0.75rem;
}

.response-action.emergency {
    color: var(--red);
}

.response-action::after {
    content: '→';
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    margin-top: 2rem;
}

.contact-methods a,
.contact-methods span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.7rem;
    text-decoration: none;
}

.contact-methods a:hover {
    color: var(--green);
}

.assessment {
    background: var(--ink-soft);
    border-top: 1px solid var(--rule);
    display: grid;
    gap: clamp(3rem, 7vw, 8rem);
    grid-template-columns: 0.7fr 1.3fr;
    padding: clamp(5rem, 8vw, 8rem) clamp(1.25rem, 7vw, 7rem);
}

.assessment h2 {
    font-family: var(--display);
    font-size: clamp(3rem, 5vw, 5.6rem);
    line-height: 0.9;
    text-transform: uppercase;
}

.assessment p {
    color: var(--muted);
    margin-top: 1.25rem;
}

.hs-form-crop {
    overflow: hidden !important;
    position: relative;
}

.site-footer {
    align-items: center;
    background: var(--ink);
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    padding: 2rem clamp(1.25rem, 5vw, 5rem);
}

.footer-copy {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
}

.emergency-overlay {
    background: rgba(0, 0, 0, 0.78);
    inset: 0;
    opacity: 0;
    position: fixed;
    transition: opacity 220ms ease, visibility 220ms ease;
    visibility: hidden;
    z-index: 200;
}

.emergency-overlay.active {
    opacity: 1;
    visibility: visible;
}

.emergency-panel {
    background: var(--ink-soft);
    border-left: 2px solid var(--red);
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-width: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    position: fixed;
    right: -560px;
    top: 0;
    transition: right 320ms cubic-bezier(0.22, 1, 0.36, 1);
    width: 540px;
    z-index: 201;
}

.emergency-panel.active {
    right: 0;
}

.emergency-panel-header {
    align-items: center;
    background: var(--red);
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
}

.emergency-panel-header h2 {
    font-family: var(--display);
    font-size: 2rem;
    text-transform: uppercase;
}

.emergency-close {
    background: transparent;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
}

.emergency-close:hover {
    color: var(--paper);
}

.emergency-panel-body {
    padding: 2rem;
}

.emergency-intro {
    border-bottom: 1px solid var(--rule);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.emergency-intro p {
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.emergency-intro a {
    color: var(--red);
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 600;
    text-decoration: none;
}

.emergency-disclaimer {
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.72rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.focus-guard {
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .site-nav {
        grid-template-columns: 1fr auto;
    }

    .nav-links {
        display: none;
    }

    .hero {
        min-height: 860px;
    }

    .capabilities,
    .contact {
        grid-template-columns: 1fr;
    }

    .capability-media,
    .contact-media {
        min-height: 620px;
    }

    .process-head {
        align-items: start;
        flex-direction: column;
    }

    .process-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-step:nth-child(2) {
        border-right: 0;
    }

    .process-step:nth-child(-n+2) {
        border-bottom: 1px solid rgba(7, 9, 8, 0.28);
    }

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

@media (max-width: 640px) {
    .site-nav {
        height: 68px;
    }

    .brand img {
        height: 36px;
        width: 32px;
    }

    .brand-copy {
        font-size: 0.65rem;
        letter-spacing: 0.16em;
    }

    .nav-emergency {
        font-size: 0.6rem;
    }

    .nav-emergency::before {
        display: none;
    }

    .hero {
        align-items: flex-end;
        min-height: 780px;
        padding: 7rem 1.25rem 8.5rem;
    }

    .hero-media {
        object-position: 70% center;
    }

    .hero-shade {
        background: linear-gradient(0deg, rgba(7, 9, 8, 1) 0%, rgba(7, 9, 8, 0.72) 60%, rgba(7, 9, 8, 0.25) 100%);
    }

    .hero h1 {
        font-size: clamp(3rem, 13vw, 4rem);
        line-height: 0.88;
    }

    .hero h1 span {
        display: inline;
    }

    .hero-copy {
        font-size: 1rem;
        margin: 1.5rem 0 1.75rem;
    }

    .action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .button-quiet {
        min-height: 44px;
    }

    .hero-proof {
        grid-template-columns: 1fr 1fr;
    }

    .proof-item {
        padding: 0.9rem 1.25rem;
    }

    .proof-item:last-child {
        display: none;
    }

    .capability-media,
    .contact-media {
        min-height: 480px;
    }

    .capability-copy,
    .contact-copy {
        padding: 5rem 1.25rem;
    }

    .section-title,
    .contact-title {
        font-size: clamp(3.6rem, 17vw, 5.4rem);
    }

    .capability-item {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .process {
        padding-inline: 1.25rem;
    }

    .process-list {
        grid-template-columns: 1fr;
        margin-top: 3rem;
    }

    .process-step,
    .process-step:nth-child(2) {
        border-bottom: 1px solid rgba(7, 9, 8, 0.28);
        border-right: 0;
        min-height: auto;
    }

    .process-step:last-child {
        border-bottom: 0;
    }

    .process-gallery {
        grid-template-columns: 1fr;
    }

    .process-image {
        height: 125vw;
        min-height: 0;
    }

    .process-note {
        min-height: 340px;
    }

    .contact-media {
        min-height: 560px;
    }

    .contact-methods {
        align-items: flex-start;
        flex-direction: column;
    }

    .assessment {
        padding: 4.5rem 1.25rem;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.25rem;
    }

    .emergency-panel-body {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    #particles-js {
        display: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
