/* ============================================================
   ROTOWIZARDS — ABOUT PAGE STYLES (v2)
   ============================================================ */

/* Global fix — prevent left-drift on wide screens */
.rw-about-page,
.rw-about-page *,
.rw-about-page *::before,
.rw-about-page *::after {
    box-sizing: border-box;
}

.rw-about-page {
    width: 100%;
    overflow-x: hidden;
}

.rw-mission,
.rw-team,
.rw-about-stats,
.rw-cta-banner,
.rw-page-hero {
    width: 100%;
}

/* ── Hero ───────────────────────────────────────────────────── */
.rw-about-page .rw-page-hero {
    position: relative;
    background: var(--rw-surface, #111827);
    padding: 72px 24px 64px;
    text-align: center;
    overflow: hidden;
}

.rw-about-page .rw-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(10,191,188,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10,191,188,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.rw-about-page .rw-page-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(10,191,188,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.rw-about-page .rw-page-hero-inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.rw-about-page .rw-section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rw-teal, #0ABFBC);
    margin-bottom: 12px;
}

.rw-about-page .rw-page-hero h1 {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--rw-text, #F9FAFB);
    margin: 0 0 16px;
    line-height: 1.1;
}

.rw-about-page .rw-page-hero h1 .highlight {
    background: var(--rw-gradient, linear-gradient(135deg, #0ABFBC, #7C3AED));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rw-about-page .rw-page-hero-desc {
    font-size: 1.05rem;
    color: var(--rw-text-muted, #9CA3AF);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Per-wizard accent colors */
:root {
    --kenny: #0ABFBC;
    --buck:  #7C3AED;
    --luco:  #F59E0B;
    --nicky: #10B981;
}

/* ── Mission ───────────────────────────────────────────────── */
.rw-mission {
    background: var(--rw-surface);
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.rw-mission::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 50%, rgba(10,191,188,0.08) 0%, transparent 50%),
        radial-gradient(circle at 100% 50%, rgba(124,58,237,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.rw-mission-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.rw-mission-left h2 {
    font-family: 'Barlow', sans-serif;
    font-weight: 900;
    font-size: clamp(32px, 4vw, 48px);
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.1;
}

.rw-mission-left h2 .highlight {
    background: var(--rw-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rw-mission-left .rw-section-eyebrow {
    color: var(--rw-teal);
    margin-bottom: 14px;
}

.rw-mission-divider {
    width: 60px;
    height: 3px;
    background: var(--rw-gradient);
    border-radius: 2px;
    margin: 20px 0;
}

.rw-mission-right p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--rw-text-muted);
    margin: 0 0 16px;
}

.rw-mission-right p:last-child { margin-bottom: 0; }

.rw-mission-right strong {
    color: var(--rw-teal-light);
    font-weight: 700;
}

/* Mission stat pills */
.rw-mission-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.rw-mission-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--rw-border);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rw-text);
}

.rw-mission-pill span {
    font-size: 18px;
}

/* ── Team section ──────────────────────────────────────────── */
.rw-team {
    padding: 80px 40px;
    background: var(--rw-dark);
    position: relative;
    overflow: hidden;
}

/* Subtle grid pattern */
.rw-team::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(10,191,188,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10,191,188,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.rw-team .rw-section-header {
    position: relative;
    z-index: 1;
    text-align: center;
}

.rw-team .rw-section-title { color: #fff; }
.rw-team .rw-section-title .highlight {
    background: var(--rw-gradient, linear-gradient(135deg, #0ABFBC, #7C3AED));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.rw-team .rw-section-desc  { color: var(--rw-text-muted); }

.rw-team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* ── Bio card ──────────────────────────────────────────────── */
.rw-bio-card {
    background: var(--rw-card);
    border: 1px solid var(--rw-border);
    border-radius: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.rw-bio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Colored top accent bar per wizard */
.rw-bio-kenny { border-top: 3px solid var(--kenny); }
.rw-bio-buck  { border-top: 3px solid var(--buck);  }
.rw-bio-luco  { border-top: 3px solid var(--luco);  }
.rw-bio-nicky { border-top: 3px solid var(--nicky); }

/* Glow on hover per wizard */
.rw-bio-kenny:hover { box-shadow: 0 20px 60px rgba(10,191,188,0.15); }
.rw-bio-buck:hover  { box-shadow: 0 20px 60px rgba(124,58,237,0.15); }
.rw-bio-luco:hover  { box-shadow: 0 20px 60px rgba(245,158,11,0.15); }
.rw-bio-nicky:hover { box-shadow: 0 20px 60px rgba(16,185,129,0.15); }

/* Card top area — avatar + name side by side */
.rw-bio-top {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 28px 20px;
    border-bottom: 1px solid var(--rw-border);
}

/* Avatar */
.rw-bio-avatar {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.rw-avatar-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    position: relative;
    z-index: 1;
    border: 2px solid;
}

.rw-bio-kenny .rw-avatar-circle {
    background: rgba(10,191,188,0.12);
    border-color: rgba(10,191,188,0.3);
}
.rw-bio-buck .rw-avatar-circle {
    background: rgba(124,58,237,0.12);
    border-color: rgba(124,58,237,0.3);
}
.rw-bio-luco .rw-avatar-circle {
    background: rgba(245,158,11,0.12);
    border-color: rgba(245,158,11,0.3);
}
.rw-bio-nicky .rw-avatar-circle {
    background: rgba(16,185,129,0.12);
    border-color: rgba(16,185,129,0.3);
}

.rw-avatar-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(10px);
    z-index: 0;
}

.rw-bio-kenny .rw-avatar-glow { background: var(--kenny); }
.rw-bio-buck  .rw-avatar-glow { background: var(--buck);  }
.rw-bio-luco  .rw-avatar-glow { background: var(--luco);  }
.rw-bio-nicky .rw-avatar-glow { background: var(--nicky); }

/* Name + title */
.rw-bio-header { flex: 1; min-width: 0; }

.rw-bio-name {
    font-family: 'Barlow', sans-serif;
    font-weight: 900;
    font-size: 26px;
    margin: 0 0 2px;
    line-height: 1;
}

.rw-bio-kenny .rw-bio-name { color: var(--kenny); }
.rw-bio-buck  .rw-bio-name { color: var(--buck);  }
.rw-bio-luco  .rw-bio-name { color: var(--luco);  }
.rw-bio-nicky .rw-bio-name { color: var(--nicky); }

.rw-bio-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--rw-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.rw-bio-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.rw-bio-kenny .rw-badge { background: rgba(10,191,188,0.12);  color: var(--kenny); border-color: rgba(10,191,188,0.25); }
.rw-bio-buck  .rw-badge { background: rgba(124,58,237,0.12);  color: var(--buck);  border-color: rgba(124,58,237,0.25); }
.rw-bio-luco  .rw-badge { background: rgba(245,158,11,0.12);  color: var(--luco);  border-color: rgba(245,158,11,0.25); }
.rw-bio-nicky .rw-badge { background: rgba(16,185,129,0.12);  color: var(--nicky); border-color: rgba(16,185,129,0.25); }

/* Card body */
.rw-bio-body-wrap {
    padding: 22px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

/* Quote */
.rw-bio-quote {
    margin: 0;
    padding: 14px 18px;
    border-radius: 10px;
    font-style: italic;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
}

.rw-bio-kenny .rw-bio-quote { background: rgba(10,191,188,0.08);  border-left: 3px solid var(--kenny); color: #a3f0ee; }
.rw-bio-buck  .rw-bio-quote { background: rgba(124,58,237,0.08);  border-left: 3px solid var(--buck);  color: #c4b5fd; }
.rw-bio-luco  .rw-bio-quote { background: rgba(245,158,11,0.08);  border-left: 3px solid var(--luco);  color: #fcd34d; }
.rw-bio-nicky .rw-bio-quote { background: rgba(16,185,129,0.08);  border-left: 3px solid var(--nicky); color: #6ee7b7; }

/* Bio text */
.rw-bio-body p {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--rw-text-muted);
    margin: 0;
}

.rw-bio-body p + p { margin-top: 10px; }
.rw-bio-body em { color: var(--rw-text); font-style: italic; }

/* Strengths */
.rw-bio-strengths {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--rw-border);
    font-size: 13px;
    color: var(--rw-text-muted);
    line-height: 1.5;
}

.rw-bio-strengths-label {
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    margin-top: 1px;
}

.rw-bio-kenny .rw-bio-strengths-label { color: var(--kenny); }
.rw-bio-buck  .rw-bio-strengths-label { color: var(--buck);  }
.rw-bio-luco  .rw-bio-strengths-label { color: var(--luco);  }
.rw-bio-nicky .rw-bio-strengths-label { color: var(--nicky); }

/* ── Stats bar ─────────────────────────────────────────────── */
.rw-about-stats {
    background: var(--rw-surface);
    padding: 72px 40px;
    border-top: 1px solid var(--rw-border);
    border-bottom: 1px solid var(--rw-border);
    position: relative;
    overflow: hidden;
}

.rw-about-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(124,58,237,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.rw-about-stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.rw-about-stat {
    padding: 32px 24px;
    border-right: 1px solid var(--rw-border);
}

.rw-about-stat:last-child { border-right: none; }

.rw-about-stats .rw-stat-number {
    font-family: 'Barlow', sans-serif;
    font-weight: 900;
    font-size: 52px;
    background: var(--rw-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
}

.rw-about-stats .rw-stat-label {
    font-size: 13px;
    color: var(--rw-text-muted);
    font-weight: 500;
    line-height: 1.5;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .rw-mission-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 900px) {
    .rw-team-grid { grid-template-columns: 1fr; }
    .rw-about-stats-inner { grid-template-columns: repeat(2, 1fr); }
    .rw-about-stat { border-right: none; border-bottom: 1px solid var(--rw-border); }
    .rw-about-stat:nth-child(2n) { border-right: none; }
    .rw-about-stat:last-child { border-bottom: none; }
}

@media (max-width: 600px) {
    .rw-team { padding: 60px 20px; }
    .rw-mission { padding: 56px 24px; }
    .rw-about-stats { padding: 48px 24px; }
    .rw-about-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 0; }
    .rw-bio-top { flex-direction: column; align-items: flex-start; }
    .rw-mission-pills { flex-direction: column; }
    .rw-page-hero { padding: 48px 24px 40px; }
}

/* ── Footnote — authorship disclosure ──────────────────────── */
.rw-about-page .rw-about-footnote {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 24px 56px;
    text-align: center;
}

.rw-about-page .rw-about-footnote p {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--rw-text-muted, #9CA3AF);
    line-height: 1.6;
    margin: 0;
}

.rw-about-page .rw-fn-marker {
    color: var(--rw-teal, #0ABFBC);
    font-weight: 700;
    margin-right: 2px;
}

/* In-body asterisk that links to the footnote — slightly smaller,
   teal to hint it's interactive, no underline by default. */
.rw-about-page .rw-fn-ref {
    font-size: 0.7em;
    vertical-align: super;
    line-height: 0;
}

.rw-about-page .rw-fn-ref a {
    color: var(--rw-teal, #0ABFBC);
    text-decoration: none;
    font-weight: 700;
}

.rw-about-page .rw-fn-ref a:hover {
    text-decoration: underline;
}

/* Inline word link pointing to the same footnote — keeps the in-body
   word looking like normal text, but hints it's clickable. */
.rw-about-page .rw-fn-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--rw-teal, #0ABFBC);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.rw-about-page .rw-fn-link:hover {
    color: var(--rw-teal, #0ABFBC);
}
