/* ===== About page ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.team-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px;
    overflow: hidden;
    box-shadow: none;
}
.team-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(240px, 0.38fr) 1fr;
    gap: 32px;
    align-items: start;
    padding: 32px;
    background: var(--surface-blue);
}
.team-profile-head {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}
.team-card-featured .team-profile-head {
    align-self: start;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 30px 8px 0;
    border-right: 1px solid var(--line);
    text-align: center;
}
.team-profile-body {
    min-width: 0;
}
.team-photo {
    width: 96px;
    height: 96px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 50%;
    background: var(--brand-100);
}
.team-card-featured .team-photo {
    width: 115px;
    height: 115px;
}
.team-card h3 {
    margin: 0 0 4px;
    color: var(--brand-900);
    font-size: 1.15rem;
    line-height: 1.2;
}
.team-card .team-role {
    display: block;
    margin-bottom: 8px;
    color: var(--brand-600);
    font-size: 0.88rem;
    font-weight: 700;
}
.team-card .team-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
}
.team-card .team-contact a {
    min-width: 0;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--neutral-700);
    background: var(--surface);
    overflow-wrap: anywhere;
    transition: color var(--motion-fast) ease, border-color var(--motion-fast) ease, background var(--motion-fast) ease;
}
.team-card .team-contact a:hover {
    color: var(--brand-700);
    background: var(--brand-50);
}
.team-card .team-contact a:focus-visible {
    outline: 2px solid var(--brand-700);
    outline-offset: 2px;
}
.team-card-featured .team-contact {
    justify-content: center;
}
.team-summary,
.team-profile-detail {
    margin: 0;
    color: var(--neutral-600);
    font-size: 0.9rem;
    line-height: 1.6;
}
.team-summary {
    overflow: visible;
}
.team-card-featured .team-summary {
    max-width: 760px;
    color: var(--neutral-700);
    font-size: 1rem;
    line-height: 1.65;
}
.team-profile-detail {
    max-width: 800px;
    margin-top: 12px;
}
.team-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0 0;
}
.team-highlights span {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: var(--brand-800);
    font-size: 0.9rem;
    font-weight: 800;
    text-wrap: balance;
}
.team-highlights i {
    width: 34px;
    height: 34px;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: var(--radius-sm);
    color: var(--brand-700);
    background: var(--brand-100);
}
.team-expertise-list {
    display: grid;
    gap: 9px;
    width: 100%;
    margin: auto 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    color: var(--neutral-700);
    font-size: 0.86rem;
    line-height: 1.45;
    list-style: none;
}
.team-expertise-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.team-expertise-list i {
    width: 20px;
    height: 20px;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--brand-700);
    background: var(--brand-100);
    font-size: 0.62rem;
}
.story-block {
    max-width: 760px;
    margin: 40px auto 0;
}
.story-block p {
    margin: 0 0 16px;
    color: var(--neutral-700);
    line-height: 1.7;
}
.story-actions {
    display: flex;
    margin-top: 24px;
}

/* ===== Company milestones ===== */
.company-history {
    scroll-margin-top: 96px;
}
.company-timeline {
    position: relative;
    max-width: 960px;
    margin: 40px auto 0;
    padding: 0;
    list-style: none;
}
.company-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    column-gap: 48px;
    padding-bottom: 30px;
}
.company-timeline-item::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: -10px;
    left: 173px;
    width: 1px;
    background: var(--line);
}
.company-timeline-item::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 169px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--brand-600);
}
.company-timeline-item:last-child {
    padding-bottom: 0;
}
.company-timeline-item:nth-last-child(2)::before {
    bottom: -28px;
}
.company-timeline-item:last-child::before {
    top: 26px;
    bottom: 0;
}
.company-timeline::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 173px;
    height: 36px;
    border-left: 1px dashed var(--line);
}
.company-timeline-item:last-child::after {
    top: 22px;
    left: 167px;
    width: 13px;
    height: 13px;
    box-shadow: 0 0 0 5px var(--brand-100);
}
.company-timeline-item time {
    color: var(--brand-900);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.7;
}
.company-timeline-item p {
    margin: 0;
    color: var(--neutral-700);
    line-height: 1.7;
}

.company-timeline-item strong {
    color: var(--brand-900);
    font-weight: 700;
}
.company-timeline-item:last-child time {
    padding-top: 16px;
    color: var(--brand-700);
}
.company-timeline-item:last-child p {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--surface-blue);
}

/* ===== Company Credentials ===== */
#credentials .credentials-heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 64px;
    align-items: start;
}
.credentials-panel {
    margin-top: 42px;
}
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.credentials-grid > li {
    display: grid;
    grid-column: span 2;
    min-width: 0;
}
.credentials-grid > li:nth-child(-n + 2) {
    grid-column: span 3;
}
.credential-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr auto;
    column-gap: 14px;
    min-width: 0;
    min-height: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, transform var(--motion-fast) ease;
}
.credential-mark {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 64px;
    height: 64px;
    display: inline-grid;
    place-items: center;
    margin: 0;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}
.credential-mark img {
    width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}
.credential-category {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    color: var(--brand-600);
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
}
.credential-card h3 {
    grid-column: 2;
    grid-row: 2;
    margin: 4px 0 2px;
    color: var(--brand-900);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}
.credential-number {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    color: var(--neutral-600);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.45;
}
.credential-card p {
    grid-column: 1 / -1;
    grid-row: 4;
    margin: 13px 0 14px;
    color: var(--neutral-600);
    font-size: 0.84rem;
    line-height: 1.55;
}
.credential-verify {
    grid-column: 1 / -1;
    grid-row: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 0;
    color: var(--brand-700);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-color: rgba(0, 83, 158, 0.28);
    text-underline-offset: 3px;
}
.credential-verify i {
    font-size: 0.64rem;
    transition: transform var(--motion-fast) ease;
}
.credential-card:focus-visible {
    outline: 3px solid var(--accent-500);
    outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
    a.credential-card:hover {
        border-color: rgba(0, 83, 158, 0.34);
        box-shadow: var(--shadow-sm);
    }
    a.credential-card:hover .credential-verify i {
        transform: translate(1px, -1px);
    }
}
.company-facts {
    display: grid;
    grid-template-columns: 1fr;
    justify-self: end;
    width: min(100%, 390px);
    margin: 0;
    padding: 4px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.company-fact {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 13px 0;
    color: var(--brand-900);
}
.company-fact + .company-fact {
    border-top: 1px solid var(--line);
}
.company-fact > i {
    flex: 0 0 auto;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(11, 111, 184, 0.12);
    border-radius: var(--radius-md);
    background: var(--brand-50);
    color: var(--brand-600);
    font-size: 0.9rem;
}
.company-fact span {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.company-fact strong {
    color: var(--brand-900);
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.company-fact small {
    color: var(--neutral-600);
    font-size: 0.78rem;
    line-height: 1.4;
}

.company-history + .about-mission {
    padding-top: 0;
}

.mission-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    min-height: 340px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-blue);
    box-shadow: var(--shadow-xs);
}
.mission-media {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    background: var(--brand-100);
}
.mission-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 42, 84, 0.02), rgba(0, 42, 84, 0.1));
}
.mission-media picture {
    display: block;
    width: 100%;
    height: 100%;
}
.mission-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mission-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px;
    color: var(--neutral-700);
    background: var(--surface-blue);
}
.mission-content .section-kicker {
    color: var(--brand-600);
}
.mission-content h2 {
    margin: 0 0 16px;
    color: var(--brand-900);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.12;
}
.mission-content p {
    max-width: 580px;
    margin: 0;
    color: var(--neutral-700);
    font-size: 1.02rem;
    line-height: 1.72;
}

.mission-content .btn {
    align-self: flex-start;
    margin-top: 24px;
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
    #credentials .credentials-heading-row {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
        gap: 40px;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .team-card-featured {
        grid-template-columns: 1fr;
    }
    .team-card-featured .team-profile-head {
        flex-direction: row;
        align-items: center;
        padding: 0 0 24px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        text-align: left;
    }
    .team-card-featured .team-contact {
        justify-content: flex-start;
    }
    .mission-content {
        padding: 36px;
    }
}
@media (max-width: 720px) {
    .company-timeline {
        margin-top: 30px;
    }
    .company-timeline-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding-left: 26px;
        padding-bottom: 28px;
    }
    .company-timeline-item::before {
        left: 4px;
    }
    .company-timeline-item::after {
        left: 0;
    }
    .company-timeline::after {
        left: 4px;
    }
    .company-timeline-item:nth-last-child(2)::before {
        bottom: -10px;
    }
    .company-timeline-item:last-child::before {
        top: 10px;
    }
    .company-timeline-item:last-child::after {
        top: 6px;
        left: -2px;
    }
    .company-timeline-item:last-child time {
        padding-top: 0;
    }
    .company-timeline-item:last-child p {
        padding: 16px;
    }
    #credentials .credentials-heading-row {
        display: block;
    }
    #credentials .credentials-heading-row .section-lede {
        margin-top: 14px;
    }
    .company-facts {
        width: 100%;
        margin-top: 24px;
        padding: 4px 0;
    }
    .credentials-panel {
        margin-top: 32px;
    }
    .credentials-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .credentials-grid > li,
    .credentials-grid > li:nth-child(-n + 2) {
        grid-column: auto;
    }
    .credential-card {
        min-height: 0;
        padding: 18px;
    }
    .credential-mark {
        width: 64px;
        height: 64px;
    }
    .credential-mark img {
        max-height: 50px;
    }
    .team-grid {
        gap: 18px;
        margin-top: 34px;
    }
    .team-card,
    .team-card-featured {
        padding: 22px;
        overflow: hidden;
    }
    .team-profile-head,
    .team-card-featured .team-profile-head {
        align-items: flex-start;
        gap: 14px;
        padding: 0;
        border: 0;
        background: transparent;
        text-align: left;
    }
    .team-photo,
    .team-card-featured .team-photo {
        width: 78px;
        height: 78px;
    }
    .team-highlights {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .mission-spotlight {
        grid-template-columns: 1fr;
        border-radius: var(--radius-md);
    }
    .mission-media {
        min-height: 180px;
    }
    .mission-content {
        padding: 24px;
    }
}
