/* Center all five sections inside the same measured, unobstructed viewport. */
html body #page-about-intro.identity-vertical-page > :is(#about-sec-who, #business-sec-main, #team-sec-roles, #rnd-sec-cert, #history-sec-timeline) {
    min-height: 100dvh !important;
    padding-top: var(--identity-safe-top) !important;
    padding-bottom: var(--identity-safe-bottom) !important;
    gap: clamp(20px, 3dvh, 40px) !important;
    justify-content: center !important;
}
/* The fade ends before the fixed controls, including the floating cue's travel. */
html body #page-about-intro.identity-vertical-page .identity-safe-content {
    --identity-edge-fade: 12px;
}
html body #page-about-intro.identity-vertical-page #about-sec-who > .about-mobile-stack {
    gap: clamp(20px, 3dvh, 40px) !important;
}
@media (min-width: 1401px) {
    html body #page-about-intro.identity-vertical-page #team-sec-roles .team-profiles-grid {
        max-width: min(1240px, calc((var(--identity-content-room, 700px) - var(--identity-heading-height, 120px) - clamp(20px, 3dvh, 40px) - 18px) * 2.024 + 54px));
        margin-inline: auto;
    }
}
/* Match a carousel card's original proportions to the usable screen height. */
@media (max-width: 1400px) {
    html body #page-about-intro.identity-vertical-page #business-sec-main .service-list {
        --business-slide-width: clamp(248px, min(calc(100vw - 80px), calc((var(--identity-content-room, 640px) - var(--identity-heading-height, 64px) - clamp(20px, 3dvh, 40px) - 100px) * .82)), 360px);
    }
}
/* A wide, shallow tablet has room for columns, rather than a tall text stack. */
@media (min-width: 1000px) and (max-width: 1400px) and (orientation: landscape) {
    html body #page-about-intro.identity-vertical-page #about-sec-who > .about-mobile-stack {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
        max-width: 1200px !important;
        align-items: center !important;
    }
    html body #page-about-intro.identity-vertical-page #about-sec-who .about-mobile-heading { grid-column: 1 / -1; }
    html body #page-about-intro.identity-vertical-page #about-sec-who .about-mobile-promise h3 { font-size: clamp(26px, 2.6vw, 36px) !important; }
    html body #page-about-intro.identity-vertical-page #about-sec-who :is(.intro-text-description p, .intro-text-description p strong),
    html body #page-about-intro.identity-vertical-page #rnd-sec-cert :is(.rnd-text-description, .rnd-text-description strong) {
        font-size: clamp(16px, 1.4vw, 20px) !important;
        line-height: 1.6 !important;
    }
    html body #page-about-intro.identity-vertical-page #rnd-sec-cert .rnd-content-row {
        grid-template-columns: minmax(180px, .65fr) minmax(0, 1.5fr) !important;
        max-width: 1200px !important;
    }
    html body #page-about-intro.identity-vertical-page #rnd-sec-cert .rnd-img-wrapper {
        width: min(100%, 280px, calc(var(--identity-content-room, 600px) * .48)) !important;
    }
    html body #page-about-intro.identity-vertical-page #rnd-sec-cert .rnd-heading {
        font-size: clamp(24px, 2.1vw, 29px) !important;
        white-space: normal !important;
    }
}
@media (min-width: 1000px) and (max-height: 900px) {
    html body #page-about-intro.identity-vertical-page #history-sec-timeline {
        --history-event-row-h: clamp(44px, calc((var(--identity-content-room, 600px) - var(--identity-heading-height, 72px) - clamp(20px, 3dvh, 40px)) / var(--history-row-count, 9)), 56px);
    }
}
@media (max-width: 599px) {
    html body #page-about-intro.identity-vertical-page #history-sec-timeline .history-timeline-shell { gap: 20px; }
}

@media (min-width: 1000px) and (max-height: 800px) {
    html body #page-about-intro.identity-vertical-page :is(#about-sec-who, #business-sec-main, #team-sec-roles, #rnd-sec-cert, #history-sec-timeline) .business-title-small {
        font-size: clamp(32px, 7dvh, 56px) !important;
    }
    html body #page-about-intro.identity-vertical-page #history-sec-timeline .history-event-row { padding-block: 6px; }
}

/* Small screens use the header directly, without a separate counter zone. */
@media (max-width: 768px), (max-height: 600px) {
    html body #page-about-intro .identity-section-counter { display: none !important; }
    html body #page-about-intro.identity-vertical-page .identity-safe-content {
        --identity-edge-mask: linear-gradient(to bottom,
            #000 0,
            #000 calc(100% - var(--identity-clip-bottom, -10000px)),
            transparent calc(100% - var(--identity-clip-bottom, -10000px) + var(--identity-edge-fade)));
    }
}
