/* ============================================================
   ABOUT PAGE
   ============================================================ */

.ab-page {
    --ab-ivory:      #FFFDF5;
    --ab-ivory-soft: rgba(255, 253, 245, .82);
    --ab-ivory-ghost:rgba(255, 253, 245, .55);

    --ab-maroon-900: #1A0308;
    --ab-maroon-800: #2A050B;
    --ab-maroon-700: #3A060D;
    --ab-maroon-600: #4E0912;
    --ab-maroon-500: #6B0F1A;

    --ab-gold-600: #B8860B;
    --ab-gold-500: #D4AF37;
    --ab-gold-400: #E0C158;
    --ab-gold-300: #EBD07A;

    --ab-orange:   #e77913;

    --ab-paper:    #FAF4E4;
    --ab-ink:      #2A050B;
    --ab-muted:    rgba(42, 5, 11, .62);

    --ab-ease:        cubic-bezier(.22, 1, .36, 1);
    --ab-ease-bounce: cubic-bezier(.34, 1.56, .64, 1);

    font-family: inherit;
    color: var(--ab-ink);
    background: var(--ab-paper);
}

/* ============================================================
   HERO
   ============================================================ */
.ab-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 9vw, 130px) clamp(20px, 5vw, 60px);
    background:
        radial-gradient(ellipse at 90% 15%, rgba(212, 175, 55, .25) 0%, transparent 55%),
        radial-gradient(ellipse at 5% 90%, rgba(107, 15, 26, .55) 0%, transparent 60%),
        linear-gradient(160deg, #2A050B 0%, #3A060D 45%, #1A0308 100%);
    color: var(--ab-ivory);
    isolation: isolate;
}

.ab-hero::before {
    content: "";
    position: absolute;
    top: -180px; right: -140px;
    width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(212, 175, 55, .5), transparent 65%);
    filter: blur(120px);
    pointer-events: none;
    animation: abOrbA 22s ease-in-out infinite alternate;
}
.ab-hero::after {
    content: "";
    position: absolute;
    bottom: -200px; left: -160px;
    width: 640px; height: 640px;
    background: radial-gradient(circle, rgba(107, 15, 26, .8), transparent 68%);
    filter: blur(120px);
    pointer-events: none;
    animation: abOrbB 26s ease-in-out infinite alternate;
}
@keyframes abOrbA { to { transform: translate(-70px, 60px) scale(1.15); } }
@keyframes abOrbB { to { transform: translate(90px, -50px) scale(1.15); } }

.ab-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

.ab-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--ab-gold-400);
    padding: 8px 16px;
    border: 1px solid rgba(212, 175, 55, .5);
    border-radius: 999px;
    background: rgba(212, 175, 55, .08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 26px;
    text-shadow: 0 0 18px rgba(212, 175, 55, .4);
}
.ab-hero-eyebrow-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--ab-orange);
    box-shadow: 0 0 12px rgba(231, 121, 19, .95);
    animation: abDotPulse 2s ease-in-out infinite;
}
@keyframes abDotPulse {
    0%, 100% { transform: scale(1);   box-shadow: 0 0 12px rgba(231, 121, 19, .95); }
    50%      { transform: scale(1.5); box-shadow: 0 0 22px rgba(231, 121, 19, 1); }
}

.ab-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.8rem, 7vw, 5.4rem);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -2px;
    margin: 0 0 28px;
    text-wrap: balance;
}
.ab-hero-title em {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(90deg,
        var(--ab-orange) 0%,
        var(--ab-gold-500) 35%,
        var(--ab-gold-300) 55%,
        var(--ab-gold-500) 75%,
        var(--ab-orange) 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: abShimmer 5s ease-in-out infinite;
    display: inline-block;
}
@keyframes abShimmer {
    0%, 100% { background-position: 0% center; }
    50%      { background-position: 100% center; }
}

.ab-hero-desc {
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.7;
    color: var(--ab-ivory-soft);
    max-width: 540px;
    margin: 0;
}

.ab-hero-portrait {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    background-color: var(--ab-maroon-700);
    background-size: cover;
    background-position: center;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, .6),
        0 0 0 1px rgba(212, 175, 55, .4);
}
.ab-hero-portrait::before {
    content: "";
    position: absolute;
    inset: -18px;
    border: 2px solid var(--ab-gold-500);
    border-radius: 10px;
    z-index: -1;
    box-shadow: 0 0 40px rgba(212, 175, 55, .35);
    transition: inset .6s var(--ab-ease-bounce);
}
.ab-hero:hover .ab-hero-portrait::before { inset: -26px; }

.ab-hero-portrait::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(26, 3, 8, .1) 0%, rgba(26, 3, 8, .5) 100%);
}

.ab-hero-seal {
    position: absolute;
    bottom: -26px;
    right: -26px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #FFF6D5 0%, #EBD07A 30%, #D4AF37 60%, #B8860B 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ab-maroon-800);
    z-index: 3;
    border: 3px solid rgba(255, 253, 245, .4);
    box-shadow:
        0 0 0 8px rgba(212, 175, 55, .15),
        0 20px 44px rgba(212, 175, 55, .6);
    animation: abSealFloat 5s ease-in-out infinite;
}
@keyframes abSealFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.ab-hero-seal strong {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}
.ab-hero-seal em {
    font-style: normal;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 3.5px;
    margin-top: 4px;
}

/* ============================================================
   TABS SECTION
   ============================================================ */
.ab-tabs-wrap {
    position: relative;
    padding: clamp(50px, 6vw, 80px) clamp(20px, 5vw, 60px) 0;
    background: var(--ab-paper);
}

.ab-tabs-inner {
    max-width: 1240px;
    margin: 0 auto;
}

.ab-tabs-stage { position: relative; }

.ab-tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 44px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ab-tab { position: relative; }

.ab-tab-btn {
    position: relative;
    width: 100%;
    padding: 26px 22px 22px;
    background: var(--ab-ivory);
    border: 1px solid rgba(212, 175, 55, .35);
    border-radius: 16px;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    font-family: inherit;
    color: var(--ab-ink);
    box-shadow:
        inset 0 1px 0 rgba(212, 175, 55, .18),
        0 6px 20px rgba(42, 5, 11, .08);
    transition:
        transform .5s var(--ab-ease),
        border-color .35s ease,
        box-shadow .5s ease,
        color .35s ease;
}

.ab-tab-btn:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, .9);
    box-shadow:
        inset 0 1px 0 rgba(212, 175, 55, .3),
        0 20px 44px rgba(42, 5, 11, .18),
        0 0 0 1px rgba(212, 175, 55, .5),
        0 0 60px rgba(212, 175, 55, .22);
}

.ab-tab-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
        var(--ab-maroon-700) 0%,
        var(--ab-maroon-600) 45%,
        var(--ab-maroon-900) 100%);
    transform: translateY(101%);
    z-index: -1;
    transition: transform .55s var(--ab-ease);
}

.ab-tab-btn.active,
.ab-tab-btn:hover {
    color: var(--ab-ivory);
    border-color: rgba(212, 175, 55, .9);
}
.ab-tab-btn.active::before,
.ab-tab-btn:hover::before {
    transform: translateY(0);
}

.ab-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--ab-maroon-600) 0%, var(--ab-maroon-800) 100%);
    color: var(--ab-gold-300);
    font-size: 20px;
    border: 1px solid rgba(212, 175, 55, .5);
    margin-bottom: 16px;
    transition:
        background .4s ease,
        color .4s ease,
        transform .5s var(--ab-ease-bounce);
}
.ab-tab-btn.active .ab-tab-icon,
.ab-tab-btn:hover .ab-tab-icon {
    background: linear-gradient(135deg, var(--ab-gold-400), var(--ab-gold-600));
    color: var(--ab-maroon-800);
    transform: rotate(-6deg) scale(1.06);
    box-shadow: 0 8px 22px rgba(212, 175, 55, .55);
}

.ab-tab-title {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.3px;
    margin: 0 0 6px;
    color: inherit;
    transition: color .35s ease;
}

.ab-tab-desc {
    display: block;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--ab-muted);
    margin: 0;
    transition: color .35s ease;
}
.ab-tab-btn.active .ab-tab-desc,
.ab-tab-btn:hover .ab-tab-desc {
    color: rgba(255, 253, 245, .7);
}

.ab-tab-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ab-gold-500);
    transition: color .35s ease, gap .4s var(--ab-ease-bounce);
}
.ab-tab-btn.active .ab-tab-arrow,
.ab-tab-btn:hover .ab-tab-arrow {
    color: var(--ab-gold-300);
    gap: 10px;
}

/* Mobile-only progress + hint — hidden on desktop */
.ab-tabs-progress,
.ab-tabs-hint { display: none; }

/* ============================================================
   TAB CONTENT PANELS
   ============================================================ */
.ab-panels {
    position: relative;
    padding: 0 clamp(20px, 5vw, 60px) clamp(70px, 9vw, 120px);
    background: var(--ab-paper);
}

.ab-panels-inner {
    max-width: 1240px;
    margin: 0 auto;
}

.ab-panel {
    display: none;
    animation: abPanelIn .7s var(--ab-ease) both;
}
.ab-panel.active { display: block; }
@keyframes abPanelIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Panel card ---------- */
.ab-panel-inner {
    display: block;
    background: var(--ab-ivory);
    border: 1px solid rgba(212, 175, 55, .35);
    border-radius: 20px;
    padding: clamp(32px, 4vw, 56px);
    box-shadow:
        inset 0 1px 0 rgba(212, 175, 55, .18),
        0 24px 60px rgba(42, 5, 11, .1);
    position: relative;
    overflow: hidden;
}
.ab-panel-inner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ab-orange), var(--ab-gold-500), transparent);
    box-shadow: 0 0 20px rgba(212, 175, 55, .5);
}

/* ---------- Top row: media + body ---------- */
.ab-panel-top {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
}
.ab-panel-top--solo {
    grid-template-columns: 1fr;
    max-width: 820px;
    margin: 0 auto;
}

/* ---------- Media ---------- */
.ab-panel-media {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 20px 44px rgba(42, 5, 11, .25),
        0 0 0 1px rgba(212, 175, 55, .4);
}
.ab-panel-media::before {
    content: "";
    position: absolute;
    inset: -14px;
    border: 2px solid var(--ab-gold-500);
    border-radius: 18px;
    z-index: -1;
    box-shadow: 0 0 30px rgba(212, 175, 55, .3);
    transition: inset .6s var(--ab-ease-bounce);
}
.ab-panel-inner:hover .ab-panel-media::before { inset: -22px; }

.ab-panel-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.4s var(--ab-ease);
}
.ab-panel-inner:hover .ab-panel-media img { transform: scale(1.06); }

.ab-panel-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, transparent 55%, rgba(26, 3, 8, .4) 100%);
    pointer-events: none;
}

/* ---------- Body ---------- */
.ab-panel-body { position: relative; }

.ab-panel-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 3.4px;
    text-transform: uppercase;
    color: var(--ab-gold-600);
    margin-bottom: 18px;
    padding-bottom: 12px;
    position: relative;
}
.ab-panel-eyebrow::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 46px; height: 2px;
    background: linear-gradient(90deg, var(--ab-orange), var(--ab-gold-500));
    box-shadow: 0 0 10px rgba(212, 175, 55, .7);
}

.ab-panel-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--ab-maroon-800);
    margin: 0 0 20px;
    text-wrap: balance;
}
.ab-panel-title em {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(90deg, var(--ab-orange), var(--ab-gold-500), var(--ab-orange));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: abShimmer 5s ease-in-out infinite;
}

.ab-panel-text {
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--ab-muted);
    margin: 0;
    padding-left: 20px;
    border-left: 3px solid;
    border-image: linear-gradient(180deg, var(--ab-gold-500), rgba(212, 175, 55, .1)) 1;
}
.ab-panel-text p { margin: 0 0 14px; }
.ab-panel-text p:last-child { margin-bottom: 0; }

/* ============================================================
   SUB-IMAGES ROW — always full width below the top row
   ============================================================ */
.ab-research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: clamp(32px, 4vw, 48px);
    padding-top: clamp(32px, 4vw, 48px);
    border-top: 1px dashed rgba(212, 175, 55, .35);
}

.ab-research-card {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 10%, rgba(212, 175, 55, .3), transparent 45%),
        linear-gradient(150deg, var(--ab-maroon-900) 0%, var(--ab-maroon-600) 100%);
    border: 1px solid rgba(212, 175, 55, .4);
    box-shadow: 0 16px 36px rgba(42, 5, 11, .3);
    transition:
        transform .5s var(--ab-ease),
        box-shadow .5s ease,
        border-color .35s ease;
    cursor: pointer;
    isolation: isolate;
}
.ab-research-card[data-bg] {
    background-size: cover;
    background-position: center;
}
.ab-research-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 3, 8, .1) 0%, rgba(26, 3, 8, .75) 100%);
    z-index: 0;
}
.ab-research-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, .9);
    box-shadow:
        0 28px 56px rgba(42, 5, 11, .4),
        0 0 0 1px rgba(212, 175, 55, .7),
        0 0 60px rgba(212, 175, 55, .3);
}

.ab-research-card h3 {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 1;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.3px;
    color: var(--ab-ivory);
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}

.ab-research-num {
    position: absolute;
    top: 14px;
    left: 18px;
    z-index: 1;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 22px;
    font-weight: 500;
    color: var(--ab-gold-400);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 991px) {
    .ab-hero-inner { grid-template-columns: 1fr; gap: 60px; }
    .ab-hero-portrait { max-width: 480px; margin: 0 auto; width: 100%; }
    .ab-hero-seal { width: 110px; height: 110px; bottom: -20px; right: -18px; }
    .ab-hero-seal strong { font-size: 32px; }
    .ab-hero-seal em { font-size: 8px; letter-spacing: 2.5px; }

    .ab-tabs { grid-template-columns: repeat(2, 1fr); }

    .ab-panel-inner { padding: 40px 30px; }
    .ab-panel-top { grid-template-columns: 1fr; gap: 40px; }
    .ab-panel-media { max-width: 520px; margin: 0 auto; width: 100%; }

    .ab-research-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   RESPONSIVE — MOBILE: tabs become swipe slider
   ============================================================ */
@media (max-width: 720px) {

    .ab-hero { padding: 60px 18px 80px; margin-top: 50px; }
    .ab-hero-title { letter-spacing: -1px; }
    .ab-hero-portrait { aspect-ratio: 4 / 5; }
    .ab-hero-seal {
        width: 88px; height: 88px;
        bottom: -16px; right: 12px;
    }
    .ab-hero-seal strong { font-size: 26px; letter-spacing: -1px; }
    .ab-hero-seal em { font-size: 7px; letter-spacing: 2px; }

    /* Tabs become a swipe track */
    .ab-tabs-stage {
        margin: 0 calc(-1 * clamp(20px, 5vw, 60px));
    }
    .ab-tabs {
        display: flex;
        flex-wrap: nowrap;
        grid-template-columns: none;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 8px clamp(20px, 5vw, 60px) 20px;
        margin: 0 0 16px;
    }
    .ab-tabs::-webkit-scrollbar { display: none; }

    .ab-tab {
        flex: 0 0 78%;
        max-width: 320px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .ab-tab-btn { padding: 22px 20px 20px; }

    /* Progress bar */
    .ab-tabs-progress {
        display: block;
        position: relative;
        height: 3px;
        margin: 4px auto 12px;
        width: 62%;
        max-width: 260px;
        background: rgba(78, 9, 18, .12);
        border-radius: 999px;
        overflow: hidden;
    }
    .ab-tabs-progress-bar {
        position: absolute;
        top: 0; left: 0; bottom: 0;
        width: 14%;
        background: linear-gradient(90deg, var(--ab-maroon-600), var(--ab-gold-500));
        border-radius: 999px;
        transition: width .18s linear;
    }

    /* Swipe hint */
    .ab-tabs-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: 2.4px;
        text-transform: uppercase;
        color: var(--ab-muted);
        margin-bottom: 22px;
        transition: opacity .6s ease;
    }
    .ab-tabs-hint svg { animation: abNudge 1.6s ease-in-out infinite; }
    .ab-tabs-hint.is-hidden { opacity: 0; pointer-events: none; }
    @keyframes abNudge {
        0%, 100% { transform: translateX(0); }
        50%      { transform: translateX(4px); }
    }

    /* Panels */
    .ab-panel-inner { padding: 26px 20px; }
    .ab-panel-top { gap: 30px; }
    .ab-panel-text { padding-left: 16px; font-size: 14.5px; line-height: 1.75; }

    /* Sub-images stack */
    .ab-research-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 26px;
        padding-top: 26px;
    }
    .ab-research-card { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
    .ab-hero::before,
    .ab-hero::after,
    .ab-hero-eyebrow-dot,
    .ab-hero-title em,
    .ab-hero-seal,
    .ab-panel-title em,
    .ab-tabs-hint svg {
        animation: none !important;
    }
    .ab-tab-btn:hover,
    .ab-research-card:hover,
    .ab-panel-inner:hover .ab-panel-media img {
        transform: none;
    }
}