:root {
    --bg: #0b0c0f;
    --bg-2: #111318;
    --surface: #171a20;
    --surface-2: #20242c;
    --paper: #f4f1eb;
    --paper-2: #e5e0d7;
    --text: #f7f7f2;
    --text-muted: #c6c2b9;
    --ink: #171717;
    --ink-muted: #4a4d52;
    --red: #d71920;
    --red-dark: #a90f16;
    --steel: #aeb3bb;
    --cyan: #7fd7e6;
    --amber: #f2b84b;
    --line-dark: rgba(255, 255, 255, 0.14);
    --line-light: rgba(16, 18, 22, 0.14);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
    --radius: 8px;
    --header-height: 78px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    min-width: 320px;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 92px 92px,
        linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 92px 92px,
        var(--bg);
}

body::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background:
        radial-gradient(circle at 78% 8%, rgba(237, 28, 36, 0.18), transparent 28rem),
        radial-gradient(circle at 10% 46%, rgba(127, 215, 230, 0.09), transparent 24rem);
}

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

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

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    transform: translateY(-150%);
    padding: 0.75rem 1rem;
    background: var(--paper);
    color: var(--ink);
    border-radius: var(--radius);
    font-weight: 800;
    text-decoration: none;
}

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

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    width: calc(var(--scroll-progress, 0) * 100%);
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--amber));
}

.section-shell,
.navbar,
.footer-grid {
    width: min(100% - 2rem, 1180px);
    margin: 0 auto;
}

.section-dark {
    background: transparent;
    color: var(--text);
}

.section-light {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.82)),
        var(--paper);
    color: var(--ink);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(11, 12, 15, 0.88);
    border-bottom: 1px solid var(--line-dark);
    backdrop-filter: blur(18px);
}

.navbar {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text);
    font-weight: 850;
    text-decoration: none;
}

.brand img {
    width: 72px;
    height: auto;
}

.brand span {
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-weight: 700;
    text-decoration: none;
    transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
    width: 48px;
    height: 48px;
    display: none;
    place-items: center;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
    width: 22px;
    height: 2px;
    display: block;
    background: currentColor;
    content: "";
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle__icon {
    position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
    position: absolute;
    left: 0;
}

.nav-toggle__icon::before {
    top: -7px;
}

.nav-toggle__icon::after {
    top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
    transform: translateY(7px) rotate(90deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
    opacity: 0;
}

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    overflow: hidden;
    padding: 5rem 0 4rem;
}

.hero__visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.62;
}

.hero__visual::before {
    position: absolute;
    right: -9rem;
    bottom: -16rem;
    width: 42rem;
    height: 42rem;
    border: 1px solid rgba(237, 28, 36, 0.24);
    border-radius: 50%;
    content: "";
}

.hero__visual::after {
    position: absolute;
    right: 8%;
    bottom: 14%;
    width: 38%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--red), var(--amber));
    content: "";
    transform: skewY(-12deg);
}

.tachometer {
    position: absolute;
    right: 6%;
    top: 20%;
    width: 23rem;
    max-width: 38vw;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background:
        conic-gradient(from 225deg, transparent 0 10%, rgba(237, 28, 36, 0.55) 10% 18%, rgba(242, 184, 75, 0.72) 18% 24%, transparent 24% 100%),
        radial-gradient(circle, transparent 0 62%, rgba(255, 255, 255, 0.08) 63%, transparent 64%);
}

.tachometer span {
    position: absolute;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 800;
}

.tachometer span:nth-child(1) {
    left: 17%;
    bottom: 25%;
}

.tachometer span:nth-child(2) {
    right: 16%;
    top: 30%;
}

.tachometer span:nth-child(3) {
    left: 42%;
    top: 15%;
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 3rem;
    align-items: center;
}

.hero__copy {
    padding-top: 2rem;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--red);
    font-size: 0.92rem;
    font-weight: 900;
    text-transform: uppercase;
}

.section-dark .eyebrow {
    color: var(--amber);
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.05;
}

h1 {
    max-width: 11ch;
    font-size: 4.7rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 1.35rem;
}

.hero__lead {
    max-width: 40rem;
    margin: 1.3rem 0 0;
    color: var(--text-muted);
    font-size: 1.16rem;
}

.hero__actions,
.contact-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.15rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 14px 34px rgba(237, 28, 36, 0.28);
}

.button-primary:hover {
    background: #df1c24;
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.26);
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.section-light .button-secondary {
    border-color: var(--line-light);
    color: var(--ink);
    background: rgba(0, 0, 0, 0.04);
}

.brief-form .button-secondary {
    border-color: rgba(23, 23, 23, 0.28);
    color: var(--ink);
    background: rgba(23, 23, 23, 0.06);
}

.button-secondary:hover {
    border-color: var(--red);
}

.hero__brand {
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.hero__brand img {
    width: min(100%, 42rem);
    height: auto;
    filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.45));
}

.brand-panel {
    width: min(100%, 34rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
}

.brand-panel p {
    margin: 0;
}

.brand-panel strong {
    color: var(--text);
    white-space: nowrap;
}

.signal-strip {
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    background: rgba(17, 19, 24, 0.82);
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.signal-item {
    min-height: 13rem;
    padding: 2rem;
    border-right: 1px solid var(--line-dark);
}

.signal-item:first-child {
    border-left: 1px solid var(--line-dark);
}

.signal-item span {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--cyan);
    font-weight: 900;
}

.signal-item h2 {
    font-size: 1.35rem;
}

.signal-item p {
    margin: 0.7rem 0 0;
    color: var(--text-muted);
}

.services,
.about,
.contact,
.process {
    padding: 5rem 0;
}

.section-heading {
    max-width: 48rem;
    margin-bottom: 2.2rem;
}

.section-heading p:last-child {
    margin-bottom: 0;
    color: inherit;
    opacity: 0.82;
    font-size: 1.08rem;
}

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

.service-card {
    min-height: 28rem;
    display: flex;
    flex-direction: column;
    padding: 1.3rem;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.07);
}

.service-card__icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    color: #fff;
    background: var(--red);
    border-radius: var(--radius);
    font-weight: 900;
}

.service-card p {
    color: var(--ink-muted);
}

.service-card ul,
.about-panel ul {
    display: grid;
    gap: 0.65rem;
    margin: auto 0 0;
    padding: 0;
    list-style: none;
}

.service-card li,
.about-panel li {
    position: relative;
    padding-left: 1.35rem;
    color: var(--ink-muted);
}

.service-card li::before,
.about-panel li::before {
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--red);
    border-radius: 50%;
    content: "";
}

.process {
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
}

.process-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.process-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: process;
}

.process-list li {
    min-height: 14rem;
    padding: 1.3rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
}

.process-list span {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--amber);
    font-weight: 900;
}

.process-list p {
    color: var(--text-muted);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.about-copy p {
    max-width: 46rem;
    color: var(--ink-muted);
}

.about-panel {
    padding: 1.5rem;
    background:
        linear-gradient(135deg, rgba(237, 28, 36, 0.12), transparent 42%),
        #fff;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact {
    position: relative;
    overflow: hidden;
}

.contact::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(237, 28, 36, 0.12), transparent 42%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 70px 70px;
    content: "";
}

.contact-grid {
    position: relative;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

.contact-copy h2 {
    max-width: 12ch;
}

.contact-copy > p {
    max-width: 38rem;
    color: var(--text-muted);
}

.contact-card {
    display: grid;
    gap: 0.2rem;
    margin-top: 1rem;
    padding: 1rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    font-style: normal;
}

.contact-card strong {
    margin-bottom: 0.25rem;
    color: var(--text);
}

.contact-card a {
    width: fit-content;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--amber);
    font-weight: 800;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.social-links a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.65rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    font-weight: 800;
    text-decoration: none;
}

.social-links img {
    width: 32px;
    height: 32px;
}

.brief-form {
    padding: 1.3rem;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.brief-form h3 {
    font-size: 1.8rem;
}

.brief-form > p {
    color: var(--ink-muted);
}

.form-field {
    display: grid;
    gap: 0.35rem;
    margin-top: 1rem;
}

.form-field label {
    font-weight: 850;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.8rem 0.9rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(23, 23, 23, 0.22);
    border-radius: var(--radius);
}

.form-field textarea {
    resize: vertical;
}

.form-status {
    min-height: 1.5rem;
    margin: 0.9rem 0 0;
    color: var(--ink-muted);
    font-weight: 700;
}

.site-footer {
    padding: 3rem 0 2rem;
    color: var(--text-muted);
    background: #07080a;
    border-top: 1px solid var(--line-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 2rem;
}

.footer-grid img {
    width: 130px;
    height: auto;
    margin-bottom: 0.7rem;
}

.footer-grid h2 {
    margin-bottom: 0.75rem;
    color: var(--text);
    font-size: 1.1rem;
}

.footer-grid p {
    margin: 0.25rem 0;
}

.footer-grid a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
}

.footer-grid a:hover {
    color: var(--text);
}

.copyright {
    width: min(100% - 2rem, 1180px);
    margin: 2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line-dark);
    font-size: 0.9rem;
}

.reveal {
    transition: opacity 520ms ease, transform 520ms ease;
}

.is-enhanced .reveal {
    opacity: 1;
    transform: translateY(18px);
}

.is-enhanced .reveal.is-visible {
    transform: translateY(0);
}

@media (max-width: 1080px) {
    h1 {
        font-size: 3.6rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero__grid,
    .process-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero__brand {
        justify-items: start;
    }

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

    .contact-copy h2 {
        max-width: 18ch;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 68px;
    }

    html {
        scroll-behavior: auto;
    }

    .section-shell,
    .navbar,
    .footer-grid {
        width: min(100% - 1.2rem, 1180px);
    }

    .brand img {
        width: 58px;
    }

    .brand span {
        max-width: 11rem;
        white-space: normal;
        line-height: 1.1;
    }

    .nav-toggle {
        display: grid;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        right: 0.6rem;
        left: 0.6rem;
        display: grid;
        padding: 0.5rem;
        background: rgba(11, 12, 15, 0.98);
        border: 1px solid var(--line-dark);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    .is-enhanced .nav-links {
        display: none;
    }

    .is-enhanced .nav-links.is-open {
        display: grid;
    }

    .nav-links a {
        width: 100%;
        justify-content: center;
    }

    .hero {
        min-height: auto;
        padding: 3.5rem 0;
    }

    .hero__grid {
        gap: 2rem;
    }

    .hero__copy {
        padding-top: 0;
    }

    h1 {
        max-width: 100%;
        font-size: 2.55rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero__lead {
        font-size: 1rem;
    }

    .brand-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand-panel strong {
        white-space: normal;
    }

    .signal-grid,
    .service-grid,
    .process-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .signal-item,
    .signal-item:first-child {
        min-height: auto;
        padding: 1.25rem;
        border-left: 1px solid var(--line-dark);
    }

    .services,
    .about,
    .contact,
    .process {
        padding: 3.5rem 0;
    }

    .service-card,
    .process-list li {
        min-height: auto;
    }

    .hero__actions,
    .contact-actions,
    .form-actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .tachometer {
        right: -7rem;
        top: 4rem;
        max-width: none;
        opacity: 0.35;
    }
}

@media (max-width: 380px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .brief-form,
    .service-card,
    .process-list li,
    .about-panel {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .is-enhanced .reveal {
        opacity: 1;
        transform: none;
    }
}
