/* ===================================================================
   Homepage redesign (index.html only). All classes are prefixed hp-.
   =================================================================== */

@font-face {
    font-family: 'Manrope';
    src: url('fonts/manrope-latin.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('fonts/outfit-latin.woff2') format('woff2');
    font-weight: 500 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --hp-red: #d7262c;
    --hp-red-dark: #b71c22;
    --hp-red-text: #c8102e;
    --hp-navy: #0b223c;
    --hp-navy-2: #0f2b4a;
    --hp-ink: #0f172a;
    --hp-text: #475569;
    --hp-muted: #64748b;
    --hp-line: #e2e8f0;
    --hp-bg-alt: #f5f7fa;
    --hp-radius: 12px;
    --hp-head: 'Outfit', 'Manrope', system-ui, sans-serif;
    --hp-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.hp,
.hp-footer {
    font-family: var(--hp-body);
    color: var(--hp-text);
    font-size: 16px;
    line-height: 1.65;
}

.hp h1, .hp h2, .hp h3,
.hp-footer h2 {
    font-family: var(--hp-head);
    color: var(--hp-ink);
    letter-spacing: -0.01em;
    margin: 0;
}

.hp p { margin: 0; }

.hp img, .hp-footer img { max-width: 100%; height: auto; display: block; }

.hp svg use, .hp-footer svg use { pointer-events: none; }

.hp-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.hp-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Focus states (keyboard) */
.hp a:focus-visible,
.hp-footer a:focus-visible,
.top-header a:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Shared pieces ---------- */
.hp .hp-section { padding: 76px 0; }
.hp .hp-alt { background: var(--hp-bg-alt); }

.hp-eyebrow {
    font-family: var(--hp-body);
    font-size: 13px !important;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hp-red-text) !important;
    margin-bottom: 12px !important;
}

.hp .hp-h2 {
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    max-width: 820px;
}

.hp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hp-red-text);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}

.hp-link svg, .hp-btn svg {
    width: 16px; height: 16px;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.hp-link:hover svg, .hp-btn:hover svg { transform: translateX(3px); }

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 26px;
    border-radius: 6px;
    font-family: var(--hp-body);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hp-btn-red { background: var(--hp-red); color: #fff; }
.hp-btn-red:hover { background: var(--hp-red-dark); color: #fff; }
.hp-btn-ghost { border-color: rgba(255, 255, 255, 0.85); color: #fff; }
.hp-btn-ghost:hover { background: #fff; color: var(--hp-navy); }
.hp-btn-outline { border-color: var(--hp-red); color: var(--hp-red-text); background: #fff; }
.hp-btn-outline:hover { background: var(--hp-red); color: #fff; }
.hp-btn-white { background: #fff; color: var(--hp-red-text); }
.hp-btn-white:hover { background: var(--hp-navy); color: #fff; }

/* ---------- Hero ---------- */
.hp .hp-hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    padding: 76px 0 !important;
    background: var(--hp-navy);
    overflow: hidden;
    isolation: isolate;
}

.hp-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 55%;
    z-index: -2;
}

.hp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg,
            rgba(11, 34, 60, 0.94) 0%,
            rgba(11, 34, 60, 0.86) 32%,
            rgba(11, 34, 60, 0.45) 58%,
            rgba(11, 34, 60, 0.05) 80%);
}

.hp-hero-inner { position: relative; }

.hp-hero-tags {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
}

.hp-hero-tags li {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hp-hero-tags li + li::before {
    content: '|';
    color: var(--hp-red);
    margin: 0 12px;
    font-weight: 800;
}

.hp .hp-hero h1 {
    color: #fff;
    font-size: clamp(40px, 5.4vw, 70px);
    font-weight: 700;
    line-height: 1.06;
    max-width: 760px;
    margin-bottom: 22px;
}

.hp .hp-hero h1 span { color: #f0383e; }

.hp-hero-text {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 18px;
    max-width: 540px;
    margin-bottom: 34px !important;
}

.hp-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Stats ---------- */
.hp .hp-stats {
    background: var(--hp-navy);
    padding: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
}

.hp-stat {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    padding: 36px 16px;
    position: relative;
}

.hp-stat + .hp-stat::before {
    content: '';
    position: absolute;
    left: 0; top: 28%;
    height: 44%;
    width: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.hp-stat dd {
    margin: 0;
    font-family: var(--hp-head);
    font-size: clamp(34px, 3.6vw, 46px);
    font-weight: 700;
    line-height: 1.1;
    color: #f0383e;
}

.hp-stat dt {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 600;
}

/* ---------- About ---------- */
.hp-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hp-about-media img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: var(--hp-radius);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.hp-about-copy .hp-h2 { margin-bottom: 22px; }
.hp-about-copy p:not(.hp-eyebrow) { margin-bottom: 16px; font-size: 16.5px; }
.hp-about-copy strong { color: var(--hp-ink); }
.hp-about-copy .hp-link { margin-top: 8px; }

/* ---------- Businesses ---------- */
.hp-biz-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 40px;
}

.hp-biz-card {
    background: #fff;
    border-radius: var(--hp-radius);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 10px 30px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.hp-biz-card:hover,
.hp-biz-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.hp-biz-card img {
    width: 100%;
    aspect-ratio: 16 / 10.5;
    object-fit: cover;
}

.hp-biz-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hp .hp-biz-body h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.hp-biz-body p { font-size: 15px; flex: 1; margin-bottom: 16px !important; }

/* whole card clickable via the Explore link */
.hp-biz-body .hp-link::after {
    content: '';
    position: absolute;
    inset: 0;
}

/* ---------- Integrated approach ---------- */
.hp .hp-navy { background: var(--hp-navy); }
.hp-navy .hp-h2 { color: #fff !important; max-width: 760px; }
.hp-eyebrow-light { color: #fff !important; opacity: 0.85; }

.hp-rule {
    display: block;
    width: 56px; height: 3px;
    background: var(--hp-red);
    margin: 22px 0 44px;
    border-radius: 2px;
}

.hp-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.hp-flow-step { position: relative; }

.hp-flow-img { position: relative; }

.hp-flow-img img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
}

/* red "+" between steps, centred on the photos */
.hp-flow-step:not(:last-child) .hp-flow-img::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: -28px;
    width: 30px; height: 30px;
    margin-top: -15px;
    border-radius: 50%;
    background: var(--hp-red);
    color: #fff;
    font: 700 20px/30px var(--hp-body);
    text-align: center;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--hp-navy);
}

.hp-flow-text {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hp-flow-icon {
    width: 30px; height: 30px;
    flex: none;
    fill: none; stroke: #fff; stroke-width: 1.6;
    stroke-linecap: round; stroke-linejoin: round;
}

.hp .hp-flow-text h3 { color: #fff; font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.hp-flow-text p { color: rgba(255, 255, 255, 0.72); font-size: 14.5px; line-height: 1.5; }

/* ---------- Area of operations ---------- */
.hp-ops-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.hp-op {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 26px 24px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hp-op:hover { border-color: #f3b4b6; box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06); }

.hp-op-icon {
    width: 40px; height: 40px;
    flex: none;
    fill: none; stroke: var(--hp-red); stroke-width: 1.6;
    stroke-linecap: round; stroke-linejoin: round;
}

.hp .hp-op h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 6px; }
.hp-op p { font-size: 14.5px; line-height: 1.55; }

/* ---------- Projects ---------- */
.hp-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.hp-head-row .hp-btn { flex: none; }

.hp-proj-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.hp-proj-card {
    position: relative;
    display: block;
    border-radius: var(--hp-radius);
    overflow: hidden;
    text-decoration: none;
}

.hp-proj-card img {
    width: 100%;
    aspect-ratio: 16 / 9.5;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hp-proj-card:hover img { transform: scale(1.04); }

.hp-proj-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(11, 34, 60, 0.85) 0%, rgba(11, 34, 60, 0) 45%);
}

.hp-proj-label {
    position: absolute;
    left: 24px; bottom: 22px;
    z-index: 1;
    color: #fff;
    font-family: var(--hp-head);
    font-size: 22px;
    font-weight: 700;
    padding-left: 14px;
    border-left: 4px solid var(--hp-red);
    line-height: 1.2;
}

/* ---------- Certifications + clients ---------- */
.hp-cert-row {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 48px;
    align-items: center;
}

.hp-cert-copy {
    padding-right: 40px;
    border-right: 1px solid var(--hp-line);
}

.hp-cert-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hp-cert {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 22px 14px;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    background: #fff;
}

.hp-cert img { width: 44px; height: 44px; object-fit: contain; margin-bottom: 4px; }
.hp-cert strong { font-family: var(--hp-head); color: var(--hp-ink); font-size: 19px; line-height: 1.2; }
.hp-cert span { font-size: 13.5px; color: var(--hp-muted); line-height: 1.4; }

.hp .hp-clients-title {
    margin: 56px 0 18px;
    font-family: var(--hp-body);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hp-ink);
}

/* client logos: two slow marquee rows, pause on hover/focus, static scroll row for reduced motion */
.hp-marquee {
    display: grid;
    gap: 14px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hp-marquee-row {
    display: flex;
    width: max-content;
    animation: hp-marquee 60s linear infinite;
}
.hp-marquee-row.hp-rev { animation-direction: reverse; }
.hp-marquee:hover .hp-marquee-row,
.hp-marquee:focus-within .hp-marquee-row { animation-play-state: paused; }
@keyframes hp-marquee { to { transform: translateX(-50%); } }

.hp-clients {
    list-style: none;
    margin: 0;
    padding: 0 14px 0 0;
    display: flex;
    gap: 14px;
}
.hp-clients li {
    flex: 0 0 150px;
    height: 96px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.hp .hp-clients img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
    .hp-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .hp-marquee-row { animation: none; }
    .hp-dup { display: none; }
}

/* ---------- CTA ---------- */
.hp .hp-cta {
    background: var(--hp-red);
    padding: 52px 0 !important;
}

.hp-cta-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 32px;
    align-items: center;
}

.hp .hp-cta h2 { color: #fff; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.2; }

.hp-cta p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    padding-left: 32px;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
}

/* ---------- Footer ---------- */
footer.hp-footer {
    background: var(--hp-navy);
    color: rgba(255, 255, 255, 0.75);
    padding: 64px 0 0;
    margin: 0;
}

.hp-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.6fr;
    gap: 40px;
    padding-bottom: 48px;
}

.hp-footer-logo img { height: 96px; width: auto; display: block; margin-bottom: 18px; }
.hp-footer-brand p { font-size: 14.5px; line-height: 1.7; margin: 0 0 18px; max-width: 320px; }

.hp-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.hp-social:hover { background: var(--hp-red); color: #fff; }

.hp-footer-col { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, 0.12); }

.hp-footer .hp-footer-col h2 {
    color: #fff;
    font-family: var(--hp-body);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 18px;
}

.hp-footer ul { list-style: none; margin: 0; padding: 0; }
.hp-footer li { margin-bottom: 10px; }

.hp-footer a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.hp-footer a:hover { color: #fff; }

.hp-footer address { font-style: normal; }

.hp-footer address p {
    display: flex;
    gap: 12px;
    margin: 0 0 14px;
    font-size: 14.5px;
    line-height: 1.55;
}

.hp-footer address i { color: #f0383e; width: 16px; margin-top: 4px; flex: none; text-align: center; }
.hp-footer address strong { display: block; color: #fff; font-weight: 700; }

.hp-footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    padding-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1100px) {
    .hp-biz-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-flow { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .hp-flow-step:nth-child(2) .hp-flow-img::after { display: none; }
    .hp-cert-row { grid-template-columns: 1fr; gap: 28px; }
    .hp-cert-copy { border-right: none; padding-right: 0; }
    .hp-cta-inner { grid-template-columns: 1fr auto; }
    .hp-cta p { display: none; }
    .hp-footer-grid { grid-template-columns: 1fr 1fr; }
    .hp-footer-col:nth-child(3) { border-left: none; padding-left: 0; }
}

@media (max-width: 900px) {
    .hp .hp-section { padding: 60px 0 !important; }
    .hp-about-grid { grid-template-columns: 1fr; gap: 36px; }
    .hp-ops-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-stat:nth-child(3)::before { display: none; }
    .hp-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.12); }
}

@media (max-width: 768px) {
    .hp .hp-hero { min-height: 0; padding: 72px 0 64px !important; }
    .hp-hero::before {
        background: linear-gradient(90deg, rgba(11, 34, 60, 0.92) 0%, rgba(11, 34, 60, 0.78) 60%, rgba(11, 34, 60, 0.55) 100%);
    }
    .hp-hero-img { object-position: 75% 50%; }
    .hp-hero-text { font-size: 16.5px; }
    .hp-head-row { flex-direction: column; align-items: flex-start; }
    .hp-proj-grid { grid-template-columns: 1fr; }
    .hp-cta-inner { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 600px) {
    .hp .hp-section { padding: 48px 0 !important; }
    .hp-biz-grid,
    .hp-ops-grid,
    .hp-flow,
    .hp-cert-list { grid-template-columns: 1fr; }
    .hp-flow-step .hp-flow-img::after { display: none; }
    .hp-hero-tags li { font-size: 11.5px; letter-spacing: 0.1em; }
    .hp-hero-tags li + li::before { margin: 0 8px; }
    .hp-hero-actions .hp-btn { flex: 1 1 100%; }
    .hp-stat { padding: 26px 10px; }
    .hp-stat dt { font-size: 13.5px; }
    .hp-footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .hp-footer-col { border-left: none; padding-left: 0; }
    .hp-cert { flex-direction: row; text-align: left; gap: 14px; padding: 16px 18px; }
    .hp-cert img { margin: 0; }
    .hp-cert strong, .hp-cert span { display: block; }
}

@media (prefers-reduced-motion: reduce) {
    .hp *, .hp-footer * { transition: none !important; }
}

/* Skip link (keyboard users) */
.hp-skip {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 2000;
    background: var(--hp-navy);
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font: 700 14px/1 var(--hp-body);
    text-decoration: none;
}

.hp-skip:focus { top: 12px; }

main#main:focus { outline: none; }

/* AA Class box keeps the original red treatment so its white badge icon stays visible */
.hp-cert-award { background: var(--hp-red); border-color: var(--hp-red); }
.hp-cert-award strong, .hp-cert-award span { color: #fff; }
.hp .hp-cert-award img { width: 22px; height: 44px; }

/* hero photo must always fill the hero (overrides the generic img height:auto) */
.hp .hp-hero-img { height: 100%; }

@media (max-width: 600px) {
    .hp-biz-card img { aspect-ratio: 16 / 9; }
    .hp-flow { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
    .hp .hp-flow-text h3 { font-size: 17px; }
    .hp-flow-text { flex-direction: column; gap: 8px; }
    .hp-flow-text p { font-size: 13.5px; }
}

@media (max-width: 380px) {
    .hp-flow { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hp-clients li { flex-basis: 118px; height: 78px; padding: 10px; }
    .hp .hp-clients-title { margin-top: 40px; }
    .hp .hp-hero { padding: 56px 0 48px !important; }
}

/* compact hero (user: hero was too tall) */
.hp .hp-hero { min-height: 430px; padding: 56px 0 !important; }
.hp .hp-hero h1 { font-size: clamp(32px, 4.1vw, 54px); margin-bottom: 16px; }
.hp-hero-tags { margin-bottom: 16px; }
.hp-hero-text { font-size: 17px; margin-bottom: 26px !important; }
.hp-stats-grid dd, .hp-stats-grid dt { line-height: 1.15; }
@media (max-width: 900px) {
    .hp .hp-hero { min-height: 0; padding: 48px 0 44px !important; }
}
@media (max-width: 600px) {
    .hp .hp-hero { padding: 36px 0 32px !important; }
    .hp .hp-hero h1 { font-size: 31px; }
    .hp-hero-text { font-size: 15.5px; margin-bottom: 22px !important; }
    .hp-hero-actions { gap: 10px; }
}

/* V2 plugin can hide businesses: grids shrink to the cards that are left (desktop) */
@media (min-width: 1101px) {
    .hp-biz-grid:has(> :nth-child(3):last-child), .hp-flow:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
    .hp-biz-grid:has(> :nth-child(2):last-child), .hp-flow:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
    .hp-biz-grid:has(> :only-child), .hp-flow:has(> :only-child) { grid-template-columns: 1fr; max-width: 520px; }
}
