/* ============================================
   ATCHISON CHAMBER · About page
   ============================================ */

.about-hero {
    position: relative;
    padding: clamp(72px, 12vw, 140px) 0 clamp(48px, 8vw, 96px);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(0, 138, 138, 0.16), transparent 60%),
        radial-gradient(900px 500px at 110% 0%, rgba(196, 30, 58, 0.08), transparent 60%),
        linear-gradient(180deg, #0c1f2a 0%, #0a1922 100%);
    color: #fff;
    overflow: hidden;
}

.about-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--white, #fff) 100%);
    pointer-events: none;
}

.about-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: #66c4c4;
    margin: 0 0 14px;
    font-weight: 600;
}

.about-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.05;
    margin: 0 0 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.about-hero__lede {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    max-width: 720px;
    margin: 0;
}

/* Mission */
.about-mission {
    padding: clamp(56px, 8vw, 96px) 0;
}

.about-mission__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.about-mission__kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--chamber-teal, #008a8a);
    margin-bottom: 12px;
}

.about-mission h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.15;
    margin: 0 0 16px;
    color: var(--dark-gray, #0e1c24);
    letter-spacing: -0.01em;
}

.about-mission p {
    color: var(--medium-gray, #4a5b66);
    line-height: 1.7;
    margin: 0 0 14px;
    font-size: 1.05rem;
}

.about-mission__pillars {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 18px;
}

.about-mission__pillars li {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid rgba(0, 30, 40, 0.06);
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(8, 30, 40, 0.04);
    transition: transform .25s ease, box-shadow .25s ease;
}

.about-mission__pillars li:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(8, 30, 40, 0.08);
}

.about-mission__pill-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 138, 138, 0.12), rgba(0, 138, 138, 0.04));
    color: var(--chamber-teal, #008a8a);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
}

.about-mission__pillars h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: var(--dark-gray, #0e1c24);
}

.about-mission__pillars p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--medium-gray, #4a5b66);
    line-height: 1.55;
}

/* Stats */
.about-stats {
    background: linear-gradient(135deg, #0e3946 0%, #0a2630 100%);
    color: #fff;
    padding: clamp(40px, 6vw, 64px) 0;
}

.about-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.about-stat__num {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #66c4c4;
    line-height: 1;
    letter-spacing: -0.02em;
}

.about-stat__label {
    display: block;
    margin-top: 8px;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.78);
}

/* Team */
.about-team {
    padding: clamp(56px, 8vw, 96px) 0;
    background: var(--off-white, #f7f8fa);
}

.about-team__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.about-team__kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--chamber-teal, #008a8a);
    margin-bottom: 12px;
}

.about-team__header h2 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--dark-gray, #0e1c24);
}

.about-team__header p {
    color: var(--medium-gray, #4a5b66);
    margin: 0;
}

.about-team__subhead {
    text-align: center;
    margin: 56px 0 24px;
    font-size: 1.2rem;
    color: var(--dark-gray, #0e1c24);
    letter-spacing: 0.02em;
}

/* Flex (not grid) so a partial last row — or any group with fewer than 4
   people — centers instead of clinging to the left. Cards keep the exact
   4-up width, so full rows still fill edge-to-edge and look unchanged. */
.about-team__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    min-height: 80px;
}

.about-team__grid:empty::before {
    content: attr(data-empty-message);
    flex: 1 1 100%;
    text-align: center;
    color: var(--medium-gray, #4a5b66);
    font-style: italic;
    padding: 24px;
    background: #fff;
    border-radius: 14px;
    border: 1px dashed rgba(0, 30, 40, 0.12);
}

.about-team-card {
    /* Up to 4 per row at the same width; 54px = the three 18px gaps between them.
       grow 0 so a centered partial row keeps the 4-up size instead of stretching. */
    flex: 0 1 calc((100% - 54px) / 4);
    box-sizing: border-box;
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px;
    text-align: center;
    border: 1px solid rgba(0, 30, 40, 0.06);
    box-shadow: 0 6px 18px rgba(8, 30, 40, 0.04);
    transition: transform .2s ease, box-shadow .2s ease;
}

/* Tablet: 2 per row; phone: 1 per row — both still centered. */
@media (max-width: 920px) {
    .about-team-card { flex-basis: calc((100% - 18px) / 2); }
}
@media (max-width: 560px) {
    .about-team-card { flex-basis: 100%; }
}

.about-team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(8, 30, 40, 0.08);
}

.about-team-card__avatar {
    width: 124px;
    height: 124px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--chamber-teal, #008a8a), #0e3946);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.9rem;
    letter-spacing: 0.04em;
    overflow: hidden;
}

/* Photo variant: fill the circle without distortion, biased toward the face. */
.about-team-card__avatar--img {
    display: block;
    padding: 0;
    background: #e8eef0;
    object-fit: cover;
    object-position: center 28%;
}

.about-team-card__name {
    margin: 0 0 4px;
    font-size: 1rem;
    color: var(--dark-gray, #0e1c24);
}

.about-team-card__role {
    margin: 0 0 4px;
    font-size: 0.9rem;
    color: var(--chamber-teal, #008a8a);
    font-weight: 600;
}

.about-team-card__company {
    margin: 0;
    font-size: 0.82rem;
    color: var(--medium-gray, #4a5b66);
}

/* History */
.about-history {
    padding: clamp(56px, 8vw, 96px) 0;
}

.about-history__header {
    text-align: center;
    margin-bottom: 40px;
}

.about-history__kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--chamber-teal, #008a8a);
    margin-bottom: 12px;
}

.about-history__header h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--dark-gray, #0e1c24);
}

.about-history__timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 800px;
    margin-inline: auto;
    position: relative;
    counter-reset: history;
}

.about-history__timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 18px;
    width: 2px;
    background: linear-gradient(180deg, var(--chamber-teal, #008a8a), rgba(0, 138, 138, 0.05));
}

.about-history__timeline li {
    position: relative;
    padding: 0 0 32px 56px;
}

.about-history__timeline li::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--chamber-teal, #008a8a);
    box-shadow: 0 0 0 4px rgba(0, 138, 138, 0.12);
}

.about-history__year {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--chamber-teal, #008a8a);
    margin-bottom: 4px;
}

.about-history__timeline h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    color: var(--dark-gray, #0e1c24);
}

.about-history__timeline p {
    margin: 0;
    color: var(--medium-gray, #4a5b66);
    line-height: 1.6;
}

/* CTA */
.about-cta {
    background:
        radial-gradient(800px 400px at 0% 100%, rgba(0, 138, 138, 0.18), transparent 60%),
        linear-gradient(135deg, #0e3946 0%, #0a2630 100%);
    color: #fff;
    padding: clamp(56px, 8vw, 96px) 0;
}

.about-cta__inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.about-cta h2 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: #fff;
}

.about-cta p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
}

.about-cta__buttons {
    display: inline-flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Responsive */
@media (max-width: 900px) {
    .about-mission__grid { grid-template-columns: 1fr; }
    .about-stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .about-stats__grid { grid-template-columns: 1fr; }
    .about-history__timeline li { padding-left: 44px; }
    .about-history__timeline::before { left: 12px; }
    .about-history__timeline li::before { left: 4px; }
}

/* Team groups container (rendered dynamically by about.js from chamberTeam) */
.about-team__groups:empty::before {
    content: attr(data-empty-message);
    display: block;
    text-align: center;
    color: var(--medium-gray, #4a5b66);
    font-style: italic;
    padding: 24px;
    background: #fff;
    border-radius: 14px;
    border: 1px dashed rgba(0, 30, 40, 0.12);
}
.about-team__group:first-child .about-team__subhead { margin-top: 16px; }
.about-team-card__email {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--chamber-teal, #1e8a82);
    word-break: break-word;
}
