/* =========================================================
   ABOUT PAGE
   Uses the design tokens from layout.css (--gold, --black ...)
   ========================================================= */

/* ---------- Hero ---------- */
#about-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: calc(var(--nav-h) + 40px);
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(10,10,10,0.55) 50%, rgba(23, 55, 118, 0.8) 90%),
        url(/static/images/about-hero.jpg) center/cover no-repeat;
    background-color: #1a1a1a; /* Fallback color */
}

.hero-sub-light {
    font-size: 1rem;
    color: rgba(245, 240, 232, 0.7);
    letter-spacing: 0.04em;
    margin: 0 auto;
    max-width: 520px;
}

/* ---------- Split-background grid (from the design) ---------- */
.split-section {
    background: linear-gradient(to right, var(--near-black) 0 50%, #d9d6cf 50% 100%);
    padding: 90px 2rem;
}

.info-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}

.info-card {
    background: #ffffff;
    color: var(--near-black);
    padding: 2.5rem 2.2rem;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.info-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gold-dim);
    display: grid;
    place-items: center;
    margin-bottom: 1.5rem;
}

.info-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--near-black);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--near-black);
    margin-bottom: 0.9rem;
}

.info-card p {
    font-size: 0.92rem;
    font-style: italic;
    color: #6b6b66;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.info-link {
    margin-top: auto;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--near-black);
    text-decoration: none;
    border-bottom: 2px solid var(--gold);
    align-self: flex-start;
    padding-bottom: 2px;
    transition: color 0.2s;
}

.info-link:hover { color: var(--gold); }

.info-photo {
    min-height: 320px;
    overflow: hidden;
    background: #222;
}

.info-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.05);
    transition: filter 0.5s, transform 0.6s;
}

.info-photo:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* ---------- Founder story ---------- */
#founder { background: var(--black); }

.founder-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.founder-image {
    aspect-ratio: 4/5;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(218,179,8,0.15);
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.founder-text p { margin-bottom: 1.1rem; max-width: 620px; }

.founder-text b {
    font-weight: 600;
    color: var(--gold);
}

.founder-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: #fff;
    border-left: 2px solid var(--gold);
    padding-left: 1.25rem;
    margin-top: 1.75rem;
    max-width: 580px;
    line-height: 1.6;
}

/* ---------- Achievements & missions (YouTube) ---------- */
#achievements {
    background: var(--near-black);
    border-top: 1px solid rgba(218,179,8,0.1);
}

.achievements-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.yt-channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.6rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.yt-channel-btn svg { width: 24px; height: 24px; fill: #ff0033; }

.yt-channel-btn:hover {
    background: var(--gold);
    color: var(--black);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.video-card {
    background: var(--black);
    border: 1px solid rgba(218,179,8,0.12);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, transform 0.25s;
}

.video-card:hover {
    border-color: rgba(218,179,8,0.45);
    transform: translateY(-3px);
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    cursor: pointer;
    overflow: hidden;
}

.video-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.75);
    transition: filter 0.3s, transform 0.5s;
}

.video-frame:hover img,
.video-frame:focus-visible img {
    filter: brightness(0.95);
    transform: scale(1.03);
}

.video-frame:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border-radius: 50%;
    background: var(--gold);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    transition: transform 0.25s;
}

.play-btn svg { width: 30px; height: 30px; fill: var(--black); margin-left: 4px; }

.video-frame:hover .play-btn { transform: scale(1.1); }

.video-body {
    padding: 1.75rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.video-tag {
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.video-desc {
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.6);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    flex: 1;
}

.video-link {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
}

.video-link:hover { color: #f0c90a; }

/* ---------- Stats strip ---------- */
.about-stats {
    background: var(--near-black);
    padding: 70px 2rem;
    border-top: 1px solid rgba(218,179,8,0.1);
    border-bottom: 1px solid rgba(218,179,8,0.1);
}

.stats-row {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stats-row .stat-number { display: block; margin-bottom: 0.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .founder-grid { grid-template-columns: 1fr; gap: 3rem; }
    .founder-image { aspect-ratio: 4/3; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .split-section { background: var(--near-black); padding: 60px 1.25rem; }
    .info-grid { grid-template-columns: 1fr; }
    .info-card, .info-photo { min-height: 260px; }
}
