@layer page {
    html { scroll-snap-type: y mandatory; }

    .page-home {
        --home-header-clearance: 7.75rem;
        background: var(--identity-paper);
        color: var(--identity-ink);
        line-height: 1.5;
    }

    .home-canvas { overflow-x: clip; }

    .home-canvas > section {
        height: 100vh;
        height: 100svh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
        max-height: 100vh;
        max-height: 100svh;
        max-height: 100dvh;
        overflow: hidden;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .business-hero {
        position: relative;
        display: flex;
        align-items: center;
        isolation: isolate;
        overflow: hidden;
        background-color: var(--identity-dark);
        background-image:
            linear-gradient(90deg, rgb(10 27 58 / .2) 0%, rgb(10 27 58 / .06) 52%, rgb(10 27 58 / .12) 100%),
            url("/assets/images/business-systems-hero.webp");
        background-position: center;
        background-size: cover;
        color: #fff;
    }

    .business-hero::after {
        position: absolute;
        z-index: -1;
        inset: auto 0 0;
        height: 28%;
        background: linear-gradient(180deg, transparent, rgb(9 25 55 / .34));
        content: "";
        pointer-events: none;
    }

    .metro-hero-content {
        width: min(calc(100% - 3rem), 1240px);
        margin: 0 auto;
        padding: clamp(7.5rem, 16svh, 10rem) 0 clamp(2rem, 7svh, 5rem);
    }

    .business-hero h1 {
        max-width: 850px;
        margin: 0;
        font-size: clamp(3.6rem, 7.7vw, 7.2rem);
        font-weight: 750;
        line-height: .94;
        letter-spacing: -.058em;
        text-wrap: balance;
    }

    .hero-summary {
        max-width: 660px;
        margin: 2rem 0 0;
        color: rgb(255 255 255 / .82);
        font-size: clamp(1.05rem, 1.65vw, 1.3rem);
        line-height: 1.55;
        letter-spacing: -.025em;
        text-wrap: pretty;
    }

    .hero-actions {
        margin-top: 2.5rem;
        display: flex;
        flex-wrap: wrap;
        gap: .8rem;
    }

    .home-canvas .button {
        min-height: 3.25rem;
        padding: .8rem 1.2rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid transparent;
        border-radius: .45rem;
        font-size: .92rem;
        font-weight: 750;
        text-decoration: none;
        transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
    }

    .home-canvas .button:hover { transform: translateY(-2px); }
    .home-canvas .button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
    .button-primary { background: var(--identity-accent); color: #fff; }
    .button-primary:hover, .button-primary:focus-visible { background: #e5232d; }
    .home-canvas .button-secondary { border-color: rgb(255 255 255 / .55); background: rgb(255 255 255 / .06); color: #fff; backdrop-filter: blur(8px); }
    .home-canvas .button-secondary:hover, .home-canvas .button-secondary:focus-visible { border-color: #fff; background: rgb(255 255 255 / .14); }

    .business-services {
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        background: var(--identity-paper);
    }

    .section-heading {
        max-width: none;
        margin: 0;
        padding: max(clamp(3rem, 6vw, 5rem), calc(var(--home-header-clearance) + 2rem)) max(1.5rem, calc((100% - 1240px) / 2)) clamp(3rem, 6vw, 5rem);
    }

    .section-heading h2,
    .approach-copy h2,
    .business-closing h2 {
        margin: 0;
        font-size: clamp(2.7rem, 5.2vw, 5rem);
        font-weight: 720;
        line-height: .98;
        letter-spacing: -.055em;
        text-wrap: balance;
    }

    .business-services .section-heading h2 {
        font-size: clamp(3rem, 7vw, 6.4rem);
        line-height: .94;
    }

    .approach-copy > p {
        max-width: 650px;
        margin: 1.5rem 0 0;
        color: var(--identity-muted);
        font-size: clamp(1rem, 1.5vw, 1.18rem);
        line-height: 1.6;
    }

    .service-grid {
        min-height: 0;
        display: flex;
        flex: 1;
    }

    .service-card {
        min-width: 0;
        min-height: 0;
        padding: clamp(1.5rem, 4vw, 3rem);
        display: flex;
        flex: 1 1 0;
        flex-direction: column;
        justify-content: space-between;
        outline-offset: -.5rem;
        overflow: hidden;
        transition: flex-grow .45s cubic-bezier(.2, .75, .25, 1);
    }

    .service-card h3 {
        max-width: none;
        margin: 0;
        font-size: clamp(2rem, 4vw, 3.5rem);
        line-height: .98;
        letter-spacing: -.051em;
        white-space: nowrap;
    }

    .service-card ul { margin: 3rem 0 0; padding: 0; list-style: none; font-weight: 650; white-space: nowrap; transition: opacity .25s ease, transform .35s ease; }
    .service-card li + li { margin-top: .3rem; }
    .service-card:focus-visible { outline: .25rem solid currentColor; }
    .service-custom { background: var(--identity-steel); color: #fff; }
    .service-automation { background: var(--identity-accent); color: #000; }
    .service-administration { background: var(--identity-dark); color: #fff; }
    .service-integrations { background: var(--identity-cerulean); color: #fff; }
    .service-hosting { background: var(--identity-muted); color: #fff; }

    @media (hover: hover) and (pointer: fine) {
        .service-grid:hover .service-card:not(:hover),
        .service-grid:focus-within .service-card:not(:focus) { flex-grow: .7; }
        .service-card:hover,
        .service-card:focus { flex-grow: 2.2; }
        .service-card ul { opacity: 0; transform: translateY(1rem); }
        .service-card:hover ul,
        .service-card:focus ul { opacity: 1; transform: translateY(0); }
    }

    .business-approach {
        padding: clamp(5.75rem, 11svh, 7.5rem) max(1.5rem, calc((100% - 1240px) / 2)) clamp(1.5rem, 4svh, 3rem);
        display: grid;
        grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
        gap: clamp(4rem, 9vw, 8rem);
        align-items: center;
        background: #fff;
    }

    .approach-copy h2 { color: var(--identity-ink); }
    .approach-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--identity-line); }
    .approach-steps li {
        display: grid;
        grid-template-columns: 3rem minmax(9rem, .55fr) 1fr;
        align-items: baseline;
        gap: 1rem;
        padding: 1.7rem 0;
        border-bottom: 1px solid var(--identity-line);
    }
    .approach-steps span { color: var(--identity-accent); font-size: 1rem; font-weight: 800; }
    .approach-steps strong { font-size: 1.3rem; line-height: 1.2; }
    .approach-steps p { margin: 0; color: var(--identity-muted); font-size: 1rem; line-height: 1.55; }

    .business-closing {
        padding: clamp(5rem, 9vw, 8rem) max(1.5rem, calc((100% - 1240px) / 2));
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: clamp(1.5rem, 4svh, 2.5rem);
        background: var(--identity-steel);
        color: #fff;
    }
    .business-closing h2 { max-width: 11ch; }
    .closing-copy { max-width: 760px; display: grid; gap: .8rem; }
    .closing-copy p { margin: 0; color: rgb(255 255 255 / .78); font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.55; }
    .button-light { background: #fff; color: var(--identity-ink); }
    .button-light:hover, .button-light:focus-visible { background: var(--identity-accent); color: #fff; }

    .business-contact {
        padding: clamp(5.75rem, 11svh, 7.5rem) max(1.5rem, calc((100% - 1240px) / 2)) clamp(1.5rem, 4svh, 3rem);
        display: grid;
        grid-template-columns: minmax(0, .9fr) minmax(28rem, 1.1fr);
        align-items: center;
        gap: clamp(3rem, 8vw, 7rem);
        background: var(--identity-dark);
        color: #fff;
    }

    .contact-heading h2 {
        max-width: 10ch;
        margin: 0;
        font-size: clamp(3rem, 6.5vw, 6rem);
        font-weight: 720;
        line-height: .96;
        letter-spacing: -.055em;
        text-wrap: balance;
    }

    .contact-form {
        position: relative;
        width: 100%;
        max-width: 620px;
        justify-self: end;
        padding: clamp(1.25rem, 3vw, 2rem);
        display: grid;
        gap: clamp(.9rem, 2svh, 1.35rem);
        border-radius: .7rem;
        background: #fff;
        color: var(--identity-ink);
    }

    .contact-field { display: grid; gap: .4rem; }
    .contact-field label { font-size: 1rem; font-weight: 750; line-height: 1.3; }
    .contact-field input,
    .contact-field textarea {
        width: 100%;
        min-width: 0;
        padding: .7rem .85rem;
        border: 1px solid var(--identity-line);
        border-radius: .4rem;
        background: #fff;
        color: var(--identity-ink);
        caret-color: var(--identity-accent);
        font: inherit;
        font-size: 1rem;
        line-height: 1.45;
    }
    .contact-field input { min-height: 2.8rem; }
    .contact-field textarea { min-height: 7rem; resize: vertical; }
    .contact-field input:focus-visible,
    .contact-field textarea:focus-visible { border-color: var(--identity-cerulean); outline: 3px solid rgb(36 123 160 / .2); outline-offset: 2px; }
    .contact-form button {
        min-height: 3.1rem;
        padding: .75rem 1.1rem;
        border: 0;
        border-radius: .4rem;
        background: var(--identity-accent);
        color: #fff;
        cursor: pointer;
        font: inherit;
        font-size: 1rem;
        font-weight: 750;
    }
    .contact-form button:hover,
    .contact-form button:focus-visible { background: #e5232d; }
    .contact-form button:focus-visible { outline: 3px solid var(--identity-cerulean); outline-offset: 3px; }
    .contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .contact-status { margin: 0; padding: .7rem .85rem; font-size: .95rem; font-weight: 650; }
    .contact-success { background: #e9f4f8; }
    .contact-error { background: #ffebec; color: #9f1720; }

    @media (max-width: 820px) {
        .page-home { --home-header-clearance: 7.25rem; }
        .business-hero { background-position: 60% center; }
        .metro-hero-content { width: calc(100% - 2rem); padding: clamp(6.5rem, 15svh, 8rem) 0 clamp(1.5rem, 5svh, 3rem); }
        .business-hero h1 { max-width: 700px; font-size: clamp(3rem, 12vw, 5.5rem); }
        .business-services { width: 100%; padding: 0; }
        .section-heading { flex: none; padding: var(--home-header-clearance) .75rem 1rem; }
        .section-heading h2 { font-size: clamp(2.5rem, 12vw, 4rem); }
        .service-grid { flex-direction: column; }
        .service-card { padding: clamp(.75rem, 2.8svh, 1.25rem) .75rem; }
        .service-card h3 { max-width: none; font-size: clamp(1.35rem, 5.8vw, 1.9rem); }
        .service-card ul { margin-top: .5rem; font-size: .8rem; line-height: 1.2; }
        .service-card li + li { margin-top: .08rem; }
        .business-approach { grid-template-columns: 1fr; gap: clamp(1.5rem, 4svh, 2.5rem); }
        .approach-copy h2 { font-size: clamp(2.15rem, 7vw, 3.5rem); }
        .approach-copy > p { margin-top: .8rem; font-size: .95rem; line-height: 1.45; }
        .approach-steps li { padding: clamp(.8rem, 2svh, 1.25rem) 0; }
        .business-contact { grid-template-columns: 1fr; gap: clamp(1.25rem, 3svh, 2rem); padding-top: clamp(5.25rem, 10svh, 6.5rem); }
        .contact-heading h2 { max-width: 14ch; font-size: clamp(2.15rem, 7vw, 3.5rem); }
        .contact-form { max-width: none; justify-self: stretch; padding: clamp(1rem, 3vw, 1.5rem); }
        .contact-field textarea { min-height: 6rem; }
    }

    @media (max-width: 560px) {
        .business-hero {
            background-image:
                linear-gradient(90deg, rgb(8 23 51 / .86), rgb(8 23 51 / .48)),
                url("/assets/images/business-systems-hero.webp");
            background-position: 62% center;
        }
        .hero-summary { margin-top: 1.5rem; }
        .hero-actions { align-items: stretch; flex-direction: column; }
        .home-canvas .button { width: 100%; }
        .approach-steps li { grid-template-columns: 2.25rem 1fr; }
        .approach-steps p { grid-column: 2; }
        .business-closing h2 { font-size: clamp(2.75rem, 12vw, 4.5rem); }
        .business-contact { align-content: center; }
    }

    @media (orientation: landscape) and (max-height: 600px) {
        .page-home { --home-header-clearance: 7.25rem; }
        .metro-hero-content { padding: 5.5rem 0 1rem; }
        .business-hero h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
        .hero-summary { margin-top: 1rem; font-size: 1rem; }
        .hero-actions { margin-top: 1rem; }
        .business-services { padding: 0; }
        .section-heading { flex: none; margin: 0; padding: var(--home-header-clearance) max(.75rem, env(safe-area-inset-right)) .75rem max(.75rem, env(safe-area-inset-left)); }
        .business-services .section-heading h2 { font-size: clamp(2rem, 5vw, 3rem); }
        .service-grid { flex-direction: row; overflow: hidden; }
        .service-card { padding: .8rem; }
        .service-card h3 { font-size: clamp(1.1rem, 2.5vw, 1.45rem); }
        .service-card ul { margin-top: .45rem; font-size: .78rem; line-height: 1.2; }
        .business-approach { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 2rem; padding-top: 5.25rem; padding-bottom: .75rem; }
        .approach-copy h2 { font-size: clamp(2rem, 5vw, 3rem); }
        .approach-copy > p { margin-top: .55rem; font-size: .9rem; }
        .approach-steps li { padding: .65rem 0; }
        .business-closing { padding-top: 5.25rem; padding-bottom: 1rem; }
        .business-closing h2 { font-size: clamp(2.5rem, 7vw, 4rem); }
        .closing-copy { gap: .45rem; }
        .closing-copy p { font-size: .9rem; line-height: 1.4; }
        .business-contact { grid-template-columns: minmax(0, .8fr) minmax(24rem, 1.2fr); gap: 2rem; padding-top: 5.25rem; padding-bottom: .75rem; }
        .contact-heading h2 { font-size: clamp(2rem, 5vw, 3rem); }
        .contact-form { padding: .8rem 1rem; gap: .6rem; }
        .contact-field input { min-height: 2.4rem; }
        .contact-field textarea { min-height: 4.5rem; }
        .contact-form button { min-height: 2.6rem; }
    }

    @media (prefers-reduced-motion: reduce) {
        .home-canvas .button,
        .service-card,
        .service-card ul { transition: none; }
        .home-canvas .button:hover { transform: none; }
    }
}
