:root {
    --bg: #f0f0f0;
    --bg-strong: #eef1f4;
    --surface: #f4f5f6;
    --surface-strong: #f1f3f5;
    --text: #171411;
    --muted: #171411;
    --line: rgba(23, 20, 17, 0.07);
    --accent: #ff1717;
    --accent-deep: #ff1717;
    --shadow: 0 10px 24px rgba(42, 46, 53, 0.055);
    --radius-lg: 28px;
    --radius-md: 18px;
    --max-width: 1160px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background: #ffffff;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(23, 20, 17, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 20, 17, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 85%);
}

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

p,
h1,
h2,
h3 {
    margin: 0;
}

.site-shell {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.topbar {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 24px;
    min-height: 54px;
    padding: 10px 0 32px;
}

.brand,
.nav a,
.eyebrow,
.metric-value {
    font-family: "Space Grotesk", sans-serif;
}

.brand {
    position: absolute;
    left: 50%;
    top: 10px;
    display: inline-flex;
    align-items: center;
    transform: translateX(-50%);
}

.brand-wordmark {
    display: inline-block;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff1717;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
    gap: 20px;
}

.nav a {
    font-size: 0.95rem;
    color: var(--muted);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: stretch;
}

.hero-copy,
.hero-panel,
.card,
.timeline-step,
.contact {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 56px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.hero h1 {
    max-width: 12ch;
    font-size: clamp(3.2rem, 7vw, 6.2rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hero-text {
    max-width: 42rem;
    margin-top: 24px;
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--muted);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

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

.button-primary {
    background: var(--text);
    color: #fff7ef;
}

.button-secondary {
    border: 1px solid var(--line);
    background: #fbfbfc;
}

.hero-panel {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
}

.metric {
    display: flex;
    flex-direction: column;
    justify-content: end;
    min-height: 180px;
    padding: 28px;
    background: #fcfcfd;
}

.metric-value {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 700;
    color: var(--accent);
}

.metric-label {
    margin-top: 10px;
    font-size: 1rem;
    color: var(--muted);
}

.card-grid,
.timeline {
    display: grid;
    gap: 18px;
}

.card,
.timeline-step,
.contact {
    padding: 28px;
}

.section-heading h2,
.contact h2 {
    font-size: clamp(1.8rem, 3.4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.card p,
.timeline-step p,
.contact p {
    margin-top: 14px;
    line-height: 1.75;
    color: var(--muted);
}

.section {
    margin-top: 24px;
    padding: 32px;
    border-radius: calc(var(--radius-lg) + 6px);
    background: transparent;
    border: 0;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.card h3,
.timeline-step h3 {
    font-size: 1.35rem;
    line-height: 1.15;
}

.card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 245, 246, 0.96)),
        var(--surface);
}

.card-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.card h3 {
    position: relative;
    z-index: 1;
    max-width: 15ch;
    margin-top: 20px;
    font-size: clamp(1.65rem, 2vw, 2rem);
    letter-spacing: -0.04em;
}

.card p {
    max-width: 30rem;
}

.section-accent {
    background: transparent;
}

.timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 245, 246, 0.96)),
        var(--surface);
}

.step-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.timeline-step h3 {
    max-width: 14ch;
    margin-top: 20px;
    font-size: clamp(1.55rem, 2vw, 1.9rem);
    letter-spacing: -0.04em;
}

.step-note {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(23, 20, 17, 0.75);
}

.contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
    background: var(--surface-strong);
}

.contact-copy {
    max-width: 42rem;
}

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

.contact-subtext {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(23, 20, 17, 0.75);
}

.contact-panel {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
}

.contact-panel-label {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.contact-panel-text {
    line-height: 1.65;
    color: var(--muted);
}

.contact-panel .button {
    width: 100%;
}

.site-footer {
    padding: 32px 0 12px;
    text-align: center;
}

.site-footer p {
    font-size: 0.92rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

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

    .contact {
        display: grid;
    }

    .contact-panel {
        flex-basis: auto;
    }

    .hero-copy {
        padding: 40px 30px;
    }

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

    .card {
        min-height: auto;
    }

}

@media (max-width: 720px) {
    .site-shell {
        width: min(calc(100% - 24px), var(--max-width));
        padding-top: 16px;
    }

    .topbar {
        position: static;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-bottom: 20px;
        text-align: center;
    }

    .brand {
        position: static;
        transform: none;
    }

    .brand-wordmark {
        font-size: 1.2rem;
    }

    .nav {
        gap: 14px;
        justify-content: center;
        margin-left: 0;
    }

    .section {
        padding: 18px 0 0;
        background: transparent;
        border: 0;
    }

    .hero-copy,
    .hero-panel,
    .card,
    .timeline-step,
    .contact {
        border-radius: 22px;
    }

    .card,
    .timeline-step,
    .contact,
    .metric {
        padding: 22px;
    }

    .hero-text,
    .card p,
    .timeline-step p,
    .contact p {
        line-height: 1.6;
    }

    .button {
        width: 100%;
    }
}
