html {
    scroll-behavior: smooth;
}

.home-page {
    margin: 0;
    color: #191919;
    background: #f7f5f1;
    font-family: 'Lato', sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

.home-page main {
    overflow: hidden;
}

.home-page section {
    scroll-margin-top: 76px;
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page p {
    margin-top: 0;
}

.home-page h1,
.home-page h2,
.home-page h3 {
    color: inherit;
    font-family: 'Poppins', sans-serif;
}

.home-page p {
    color: #68645f;
    font-size: 17px;
    line-height: 1.7 !important;
}

.home-page a {
    text-decoration: none !important;
}

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

.page-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.section-space {
    padding: 112px 0;
}

.eyebrow {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.66) !important;
    font-family: 'Poppins', sans-serif;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1.4 !important;
    text-transform: uppercase;
}

.eyebrow--red {
    color: #b82d2d !important;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button--primary {
    color: #fff !important;
    background: #c83232;
}

.button--primary:hover,
.button--primary:focus-visible {
    background: #aa2626;
}

.button--text {
    padding-inline: 6px;
    color: #fff !important;
}

.button--dark {
    color: #fff !important;
    background: #1b1b1b;
}

.button--light {
    color: #171717;
    background: #fff;
}

.button:disabled {
    cursor: wait;
    opacity: 0.6;
    transform: none;
}

.hero {
    position: relative;
    min-height: 760px;
    padding: 160px 0 96px;
    color: #fff;
    background: #171717;
}

.hero::after {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    right: -180px;
    bottom: -230px;
    border: 90px solid rgba(200, 50, 50, 0.25);
    border-radius: 50%;
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    align-items: center;
    gap: clamp(56px, 8vw, 110px);
}

.hero h1 {
    max-width: 650px;
    margin-bottom: 30px;
    color: #fff;
    font-size: clamp(58px, 6.8vw, 92px);
    font-weight: 600;
    letter-spacing: -0.065em;
    line-height: 0.98;
}

.hero h1 span {
    color: #d94a4a;
}

.hero__intro {
    max-width: 590px;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 19px !important;
}

.hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
}

.hero__visual {
    position: relative;
    padding: 0 0 58px 44px;
}

.hero__visual::before {
    content: '';
    position: absolute;
    inset: -32px 52px 88px 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
}

.hero__image-wrap {
    position: relative;
    aspect-ratio: 1.05 / 1;
    overflow: hidden;
    border-radius: 24px;
    background: #2c2c2c;
}

.hero__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__note {
    position: absolute;
    right: -24px;
    bottom: 0;
    width: min(330px, 78%);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-radius: 18px;
    background: #c83232;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero__note-mark {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
}

.hero__note p {
    margin: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
}

.section-heading {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
    gap: 80px;
    margin-bottom: 56px;
}

.section-heading h2,
.project-callout h2,
.contact h2 {
    margin: 0;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 1.04;
}

.section-heading > p {
    max-width: 480px;
    margin-bottom: 4px;
}

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

.purpose-card {
    min-height: 330px;
    display: grid;
    grid-template-columns: 0.86fr 1.14fr;
    overflow: hidden;
    border: 1px solid #e7e2db;
    border-radius: 22px;
    background: #fff;
}

.purpose-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.purpose-card__content {
    padding: 34px 30px;
}

.purpose-card__content > span {
    display: inline-block;
    margin-bottom: 44px;
    color: #c83232;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.purpose-card h3 {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.purpose-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
}

.project-callout {
    padding-top: 0;
}

.project-callout__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 540px;
    overflow: hidden;
    border-radius: 28px;
    background: #e9e4dc;
}

.project-callout__visual {
    min-height: 420px;
}

.project-callout__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-callout__content {
    padding: clamp(46px, 6vw, 80px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
}

.project-callout__content > p:not(.eyebrow) {
    margin: 26px 0 32px;
}

.team {
    padding-top: 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 46px 22px;
}

.team-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    margin-bottom: 20px;
    border-radius: 18px;
    background: #e6e1da;
    filter: saturate(0.82);
    transition: filter 180ms ease, transform 180ms ease;
}

.team-card:hover img {
    filter: saturate(1);
    transform: translateY(-4px);
}

.team-card h3 {
    margin-bottom: 4px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.team-card p {
    margin: 0;
    color: #8a857e;
    font-size: 14px;
    line-height: 1.45;
}

.contact {
    color: #fff;
    background: #c83232;
}

.contact__grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(70px, 10vw, 150px);
}

.contact__intro > p:not(.eyebrow) {
    margin: 28px 0;
    color: rgba(255, 255, 255, 0.72);
}

.contact__details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.contact__details a {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field:nth-child(4) {
    grid-column: 1 / -1;
}

.form-field label {
    color: rgba(255, 255, 255, 0.74);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 13px 0;
    color: #fff;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 0;
    outline: none;
    background: transparent;
    font: 17px/1.5 'Lato', sans-serif;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #fff;
}

.contact-form .button {
    justify-self: start;
}

.form-status {
    align-self: center;
    margin: 0;
    color: #fff !important;
    font-size: 14px !important;
}

@media (max-width: 1050px) {
    .hero__grid {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 48px;
    }

    .hero__visual {
        padding-left: 20px;
    }

    .purpose-card {
        grid-template-columns: 1fr;
    }

    .purpose-card img {
        height: 220px;
    }

    .purpose-card__content > span {
        margin-bottom: 24px;
    }

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

@media (max-width: 800px) {
    .section-space {
        padding: 82px 0;
    }

    .hero {
        min-height: 0;
        padding: 132px 0 84px;
    }

    .hero__grid,
    .section-heading,
    .project-callout__grid,
    .contact__grid {
        grid-template-columns: 1fr;
    }

    .hero__grid {
        gap: 68px;
    }

    .hero__content {
        max-width: 650px;
    }

    .hero__visual {
        max-width: 620px;
        padding-left: 0;
    }

    .hero__image-wrap {
        aspect-ratio: 1.35 / 1;
    }

    .section-heading {
        align-items: start;
        gap: 24px;
        margin-bottom: 44px;
    }

    .project-callout {
        padding-top: 0;
    }

    .project-callout__grid {
        min-height: 0;
    }

    .team {
        padding-top: 0;
    }

    .contact__grid {
        gap: 60px;
    }
}

@media (max-width: 620px) {
    .page-shell {
        width: min(100% - 28px, 1180px);
    }

    .hero h1 {
        font-size: clamp(52px, 16vw, 72px);
    }

    .hero__intro {
        font-size: 17px !important;
    }

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

    .hero__visual::before {
        inset: -18px 34px 72px -8px;
    }

    .hero__note {
        right: -8px;
        padding: 20px;
    }

    .purpose-grid,
    .team-grid,
    .contact-form {
        grid-template-columns: 1fr;
    }

    .purpose-card {
        min-height: 0;
    }

    .purpose-card__content {
        padding: 28px 24px 32px;
    }

    .project-callout__visual {
        min-height: 320px;
    }

    .project-callout__content {
        padding: 40px 26px 46px;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 14px;
    }

    .team-card h3 {
        font-size: 15px;
    }

    .team-card p {
        font-size: 13px;
    }

    .form-field:nth-child(4) {
        grid-column: auto;
    }

    .contact-form {
        gap: 22px;
    }
}

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

    .button,
    .team-card img {
        transition: none;
    }
}
