/* ============================================================
   /about — TriGem Solutions
   - Mobile-first; 768px and 1024px breakpoints
   ============================================================ */

/* ============================================================
   1. HERO — title + lede + at-a-glance stats
   ============================================================ */
.ab-hero {
    position: relative;
    padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3rem, 8vw, 5.5rem);
    background:
        radial-gradient(120% 80% at 50% 0%, #0E2A4D 0%, #061629 60%, #03101F 100%);
    color: #E8EEF7;
    overflow: hidden;
    isolation: isolate;
}
.ab-hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.ab-hero__orb {
    position: absolute;
    width: clamp(260px, 38vw, 480px);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.ab-hero__orb--primary { background: var(--color-primary-light); top: -100px; right: -80px; opacity: 0.45; }
.ab-hero__orb--accent  { background: var(--color-accent);        bottom: -120px; left: -60px; opacity: 0.30; }
.ab-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(160, 200, 255, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(160, 200, 255, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
            mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}
.ab-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3rem);
    align-items: center;
}
@media (min-width: 1024px) {
    .ab-hero__inner {
        grid-template-columns: 1.4fr 1fr;
        align-items: center;
    }
}
.ab-hero__copy { max-width: 640px; }
.ab-hero__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-accent-light);
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
}
.ab-hero__title {
    color: #FFFFFF;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    max-width: 22ch;
}
.ab-hero__lede {
    color: #C7D2E1;
    font-size: var(--text-base);
    margin-bottom: 2rem;
    max-width: 60ch;
}
.ab-hero__stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 640px;
}
@media (min-width: 640px) {
    .ab-hero__stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
.ab-hero__stats li {
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.ab-hero__stat-num {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.ab-hero__stat-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: #9BB0CC;
}

/* Brand mark styles live in global.css — see .brand-mark / .brand-mark--tilt-left */

/* ============================================================
   2. STORY — two-paragraph narrative
   ============================================================ */
.ab-story {
    padding: var(--section-pad-y) 0;
    background: var(--color-bg);
}
.ab-story__inner {
    max-width: 760px;
}
.ab-story__copy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ab-story__copy p {
    color: var(--color-text);
    font-size: var(--text-base);
    line-height: 1.7;
}

/* ============================================================
   3. TIMELINE — left-aligned vertical with year column
   ============================================================ */
.ab-timeline {
    padding: var(--section-pad-y) 0;
    background: var(--color-surface-alt);
    border-block: 1px solid var(--color-divider);
}
.ab-tl {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 880px;
}
/* Vertical connector line on the year side */
.ab-tl::before {
    content: "";
    position: absolute;
    left: 1.25rem;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary-light), var(--color-accent));
    opacity: 0.30;
    border-radius: 2px;
}
@media (min-width: 768px) {
    .ab-tl::before { left: calc(120px + 1rem); }
}
.ab-tl__item {
    position: relative;
    padding: 1.5rem 1.5rem 1.5rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-lg);
    margin-left: 2.5rem;
}
@media (min-width: 768px) {
    .ab-tl__item {
        margin-left: calc(120px + 2rem);
        padding: 1.75rem 2rem;
    }
}
.ab-tl__item--highlight {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(12, 85, 148, 0.10);
}
[data-theme="dark"] .ab-tl__item--highlight { box-shadow: 0 0 0 3px rgba(63, 127, 186, 0.18); }

/* Year bubble — sits on the connector line */
.ab-tl__year {
    position: absolute;
    left: -2.5rem;
    top: 1.25rem;
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--color-surface-alt);
    z-index: 1;
    letter-spacing: 0.02em;
}
.ab-tl__item--highlight .ab-tl__year { background: var(--color-accent); color: #1a1200; }
@media (min-width: 768px) {
    .ab-tl__year {
        position: absolute;
        left: -2rem;
        top: 1.25rem;
        width: auto; height: auto;
        padding: 0.45rem 0.85rem;
        background: transparent;
        color: var(--color-primary);
        font-family: var(--font-serif);
        font-size: 1.6rem;
        font-weight: 800;
        border-radius: 0;
        box-shadow: none;
        transform: translateX(-100%);
        white-space: nowrap;
    }
    .ab-tl__year::after {
        content: "";
        position: absolute;
        right: -2rem;
        top: 50%;
        transform: translateY(-50%);
        width: 14px; height: 14px;
        background: var(--color-primary);
        border-radius: 50%;
        box-shadow: 0 0 0 4px var(--color-surface-alt);
    }
    /* Reset the mobile pill background so the desktop year stays as type only */
    .ab-tl__item--highlight .ab-tl__year {
        background: transparent;
        color: var(--color-accent-dark);
        box-shadow: none;
    }
    .ab-tl__item--highlight .ab-tl__year::after { background: var(--color-accent); }
    [data-theme="dark"] .ab-tl__item--highlight .ab-tl__year { color: var(--color-accent-light); }
}
/* No grid on the card; year is absolutely positioned, body fills naturally */
.ab-tl__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}
.ab-tl__blurb {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* ============================================================
   4. VALUES — 4-card grid (2x2 on tablet, 4x1 on desktop)
   ============================================================ */
.ab-values {
    padding: var(--section-pad-y) 0;
    background: var(--color-bg);
}
.ab-values__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) {
    .ab-values__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .ab-values__grid { grid-template-columns: repeat(4, 1fr); }
}
.value-card {
    position: relative;
    padding: 1.75rem 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-lg);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    overflow: hidden;
}
.value-card::before {
    content: "";
    position: absolute;
    inset: -1px -1px auto -1px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity .2s ease;
}
.value-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-border);
}
.value-card:hover::before { opacity: 1; }
.value-card__num {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 0.6rem;
    line-height: 1;
}
.value-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}
.value-card__blurb {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

/* ============================================================
   5. GEOGRAPHY — copy + offices + region chips
   ============================================================ */
.ab-geo {
    padding: var(--section-pad-y) 0;
    background: var(--color-surface-alt);
    border-block: 1px solid var(--color-divider);
}
.ab-geo__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}
@media (min-width: 900px) {
    .ab-geo__inner { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
}
.ab-geo__title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 0.5rem 0 0.85rem;
    letter-spacing: -0.01em;
}
.ab-geo__blurb {
    color: var(--color-text-muted);
    font-size: var(--text-base);
    margin-bottom: 1.5rem;
    max-width: 60ch;
}
.ab-geo__offices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 480px) {
    .ab-geo__offices { grid-template-columns: repeat(2, 1fr); }
}
.ab-office {
    padding: 1rem 1.1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-divider);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.ab-office__label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--color-text-muted);
}
.ab-office__place {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-text);
}

.ab-geo__panel {
    padding: 1.75rem 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.ab-geo__panel-title {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}
.ab-geo__regions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.ab-region {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.65rem;
    background: var(--color-surface-alt);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    color: var(--color-text);
    font-weight: 500;
}
.ab-region__dot {
    flex-shrink: 0;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 8px rgba(245, 141, 2, 0.55);
}

/* ============================================================
   6. LEADERSHIP — copy + principal card
   ============================================================ */
.ab-leaders {
    padding: var(--section-pad-y) 0;
    background: var(--color-bg);
}
.ab-leaders__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 900px) {
    .ab-leaders__inner { grid-template-columns: 1.3fr 1fr; gap: 3rem; }
}
.ab-leaders__title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 0.5rem 0 0.85rem;
    letter-spacing: -0.01em;
}
.ab-leaders__blurb {
    color: var(--color-text-muted);
    font-size: var(--text-base);
    max-width: 60ch;
    line-height: 1.7;
}

.ab-principal {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--color-surface);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.ab-principal__avatar {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #FFFFFF;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 800;
    border-radius: 50%;
    letter-spacing: 0.02em;
}
.ab-principal__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.1rem;
}
.ab-principal__role {
    font-size: var(--text-sm);
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.ab-principal__note {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.55;
}

/* ============================================================
   7. CLOSING CTA — dark band
   ============================================================ */
.ab-cta {
    padding: clamp(3rem, 7vw, 5rem) 0;
    background:
        radial-gradient(120% 100% at 100% 0%, #0E2A4D 0%, #061629 60%, #03101F 100%);
    color: #E8EEF7;
    overflow: hidden;
}
.ab-cta__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 768px) {
    .ab-cta__inner { grid-template-columns: 1.4fr 1fr; gap: 3rem; }
}
.ab-cta__title {
    color: #FFFFFF;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.ab-cta__text {
    color: #C7D2E1;
    font-size: var(--text-base);
    max-width: 50ch;
}
.ab-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
@media (min-width: 768px) {
    .ab-cta__actions { justify-content: flex-end; }
}
