/**
 * Page-specific styles for templates/template-about.php.
 *
 * Extracted verbatim from the inline <style> block in the template
 * (it was previously re-emitted on every page-view and never HTTP-cached).
 * The matching enqueue is in functions.php under the bv-about-page handle.
 */

/* ==========================================================================
   ABOUT PAGE — v4.0 Editorial Premium
   ========================================================================== */

.bv-about {
    background: var(--bv-dark-bg);
    color: var(--bv-dark-text);
    overflow-x: hidden;
}

.bv-about-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ====== HERO ====== */
.bv-about-hero {
    position: relative;
    padding: var(--bv-hero-pad-top) 0 var(--bv-hero-pad-bottom);
    overflow: hidden;
    isolation: isolate;
}

.bv-about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 50% at 70% 20%, rgba(8, 145, 178, 0.16) 0%, transparent 70%),
        radial-gradient(60% 60% at 20% 80%, rgba(201, 169, 97, 0.08) 0%, transparent 70%);
}

.bv-about-hero-eyebrow {
    font-family: var(--bv-font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--bv-gold);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 32px;
}

.bv-about-hero-eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: currentColor;
}

.bv-about-hero h1 {
    font-family: var(--bv-font-editorial);
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.96;
    letter-spacing: -0.025em;
    margin: 0 0 32px;
    color: #fff;
    max-width: 14ch;
}

.bv-about-hero h1 em {
    font-style: italic;
    color: var(--bv-gold);
    font-weight: 500;
}

.bv-about-hero-sub {
    max-width: 580px;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255,255,255,0.72);
    margin: 0;
}

/* ====== STORY ====== */
.bv-story {
    background: var(--bv-light-bg);
    color: var(--bv-light-text);
    padding: var(--bv-section-y) 0;
    position: relative;
}

.bv-story-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(40px, 8vw, 100px);
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.bv-story-side {
    position: sticky;
    top: 120px;
    align-self: start;
}

.bv-story-side .studio-eyebrow { color: var(--bv-accent); }

.bv-story-side h2 {
    font-family: var(--bv-font-editorial);
    font-weight: 400;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 16px 0 0;
}

.bv-story-side h2 em { font-style: italic; color: var(--bv-gold); }

.bv-story-prose p {
    font-family: var(--bv-font-editorial);
    font-weight: 400;
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    line-height: 1.65;
    color: var(--bv-light-text);
    margin: 0 0 28px;
}

.bv-story-prose p:first-child {
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    font-style: italic;
    color: var(--bv-light-text);
    margin-bottom: 36px;
}

.bv-story-prose p:first-child::first-letter {
    font-family: var(--bv-font-editorial);
    font-style: normal;
    font-weight: 500;
    float: left;
    font-size: 5rem;
    line-height: 0.85;
    margin: 6px 12px 0 -2px;
    color: var(--bv-gold);
}

@media (max-width: 900px) {
    .bv-story-grid { grid-template-columns: 1fr; gap: 32px; }
    .bv-story-side { position: static; }
}

/* ====== CREDENTIALS ====== */
.bv-credentials {
    background: var(--bv-light-elevated);
    color: var(--bv-light-text);
    padding: var(--bv-section-y) 0;
}

.bv-credentials-card {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.bv-credentials-photo {
    aspect-ratio: 4 / 5;
    width: 100%;
    max-width: 280px;
    justify-self: center;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 32px 80px -32px rgba(0,0,0,0.3);
    border: 1px solid var(--bv-light-border);
}

.bv-credentials-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 1.6s var(--bv-ease);
}

.bv-credentials-photo:hover img { transform: scale(1.04); }

.bv-credentials-info h3 {
    font-family: var(--bv-font-editorial);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.bv-credentials-role {
    font-family: var(--bv-font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bv-gold);
    margin: 0 0 24px;
}

.bv-credentials-bio {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--bv-light-muted);
    margin: 0 0 32px;
    max-width: 56ch;
}

.bv-credentials-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bv-credentials-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--bv-light-border);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--bv-light-text);
}

.bv-credentials-badge svg { width: 16px; height: 16px; color: var(--bv-accent); }

@media (max-width: 768px) {
    .bv-credentials-card { grid-template-columns: 1fr; text-align: center; }
    .bv-credentials-photo { max-width: 220px; aspect-ratio: 1; border-radius: 50%; margin: 0 auto; }
    .bv-credentials-bio { margin-left: auto; margin-right: auto; }
    .bv-credentials-badges { justify-content: center; }
}

/* ====== DOMAINS ====== */
.bv-domains {
    background: var(--bv-light-bg);
    color: var(--bv-light-text);
    padding: var(--bv-section-y) 0;
}

.bv-domains-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 56px auto 0;
    padding: 0 24px;
}

.bv-domain-card {
    position: relative;
    padding: 40px 36px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--bv-light-border);
    transition: transform 0.45s var(--bv-ease), border-color 0.3s var(--bv-ease), box-shadow 0.45s var(--bv-ease);
    overflow: hidden;
}

.bv-domain-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--card-color, var(--bv-accent)) 0%, transparent 50%);
    opacity: 0.06;
    pointer-events: none;
}

.bv-domain-card:hover {
    transform: translateY(-3px);
    border-color: var(--card-color, var(--bv-accent));
    box-shadow: 0 24px 50px -28px rgba(0,0,0,0.12);
}

.bv-domain-num {
    font-family: var(--bv-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: var(--card-color, var(--bv-accent));
    margin: 0 0 16px;
}

.bv-domain-card h3 {
    font-family: var(--bv-font-editorial);
    font-weight: 500;
    font-size: 1.6rem;
    line-height: 1.1;
    margin: 0 0 12px;
}

.bv-domain-card p {
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--bv-light-muted);
    margin: 0;
}

@media (max-width: 700px) {
    .bv-domains-grid { grid-template-columns: 1fr; }
}

/* ====== JOURNEY (TIMELINE) ====== */
.bv-journey {
    background: var(--bv-dark-bg);
    color: var(--bv-dark-text);
    padding: var(--bv-section-y) 0;
    position: relative;
    overflow: hidden;
}

.bv-journey::before {
    content: 'JOURNEY';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--bv-font-editorial);
    font-style: italic;
    font-size: clamp(8rem, 22vw, 24rem);
    color: var(--bv-gold);
    opacity: 0.025;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.04em;
    line-height: 0.85;
}

.bv-journey-inner {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 24px;
}

.bv-journey-header {
    text-align: center;
    margin-bottom: 80px;
}

.bv-journey-header .studio-eyebrow {
    color: var(--bv-gold);
    margin: 0 0 16px;
    justify-content: center;
}

.bv-journey-header h2 {
    font-family: var(--bv-font-editorial);
    font-weight: 400;
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0;
}

.bv-journey-header h2 em { font-style: italic; color: var(--bv-gold); }

.bv-timeline {
    position: relative;
    padding-left: 48px;
}

.bv-timeline::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 0;
    left: 12px;
    width: 1px;
    background: linear-gradient(180deg, var(--bv-gold) 0%, rgba(201, 169, 97, 0.1) 100%);
}

.bv-timeline-entry {
    position: relative;
    padding: 0 0 56px;
}

.bv-timeline-entry:last-child { padding-bottom: 0; }

.bv-timeline-entry::before {
    content: '';
    position: absolute;
    top: 6px;
    left: -42px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bv-gold);
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.18);
}

.bv-timeline-year {
    font-family: var(--bv-font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bv-gold);
    margin: 0 0 6px;
}

.bv-timeline-title {
    font-family: var(--bv-font-editorial);
    font-weight: 500;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    line-height: 1.2;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.bv-timeline-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.62);
    max-width: 56ch;
    margin: 0;
}

/* ====== CONNECT ====== */
.bv-connect {
    background: var(--bv-dark-bg);
    color: var(--bv-dark-text);
    padding: var(--bv-section-y) 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bv-connect-inner {
    max-width: 720px;
    margin: 0 auto;
}

.bv-connect h2 {
    font-family: var(--bv-font-editorial);
    font-weight: 400;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}

.bv-connect h2 em { font-style: italic; color: var(--bv-gold); }

.bv-connect p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    margin: 0 0 36px;
}

.bv-connect-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ====== REFERRALS WRAPPER ====== */
.bv-about-referrals {
    background: var(--bv-light-bg);
    color: var(--bv-light-text);
    padding: var(--bv-section-y) 24px;
}

/* About-page section dedupe — drop the top of any same-color adjacent section */
.bv-story + .bv-credentials,
.bv-credentials + .bv-domains,
.bv-domains + .bv-about-referrals,
.bv-journey + .bv-connect {
    padding-top: 0;
}

/* Override the [my_referrals] shortcode's 6rem auto margin so it doesn't
   stack on top of .bv-about-referrals padding */
.bv-about-referrals .bv-referral-container {
    margin: 0 auto !important;
}
