/* =========================================================
   Greatest Interactive — About
   Reuses the shared tokens from main.css (--ink, --paper, --violet-*,
   accent chips, --font-*, --container, --radius-*, --shadow-soft) so
   this page follows the site-wide light/dark theme automatically.

   Note: the original stylesheet referenced var(--text-muted), which
   isn't defined anywhere in main.css (only --muted is) -- that meant
   the "muted" body copy was silently falling back to plain text
   color. Fixed below to use --muted consistently.
   ========================================================= */

.about-hero {
    position: relative;
    min-height: 0;
    height: auto;
    display: flex;
    align-items: center;
    padding: 96px 24px 64px;
    background:
        radial-gradient(circle at top right, rgba(45, 125, 246, 0.12), transparent 30%),
        radial-gradient(circle at top left, rgba(241, 90, 74, 0.12), transparent 28%),
        var(--paper);
    overflow: hidden;
}

.about-hero.has-image {
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-hero.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 12, 26, 0.56);
}

.about-hero.has-image h1 {
    color: #fff;
}

.about-hero.has-image p {
    color: rgba(255, 255, 255, 0.86);
}

.about-hero-content {
    padding: 0;
}

.about-hero .hero-decor {
    position: absolute;
    top: 20%;
    right: 10%;
    color: var(--brand-yellow);
    opacity: 0.9;
    filter: drop-shadow(0 12px 30px rgba(245, 196, 81, 0.28));
}

.about-hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.8rem;
    padding: 8px 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-blue);
    background: var(--brand-blue-soft);
    border: 1px solid rgba(45, 125, 246, 0.25);
    border-radius: 999px;
}

.about-hero h1 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1rem;
    color: var(--ink);
}

.about-hero p {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 720px;
    color: var(--muted);
}

/* ---------------------------------------------------------
   About blocks
   --------------------------------------------------------- */

.section.about-grid {
    padding: 24px 20px 80px;
}

.about-grid .section-inner {
    max-width: var(--container, 1000px);
    margin: 0 auto;
}

.about-block {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg, 28px);
    padding: 28px 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft, 0 20px 45px -25px rgba(27, 19, 48, 0.35));
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.about-block:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 125, 246, 0.22);
}

.about-block::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 0;
    width: 4px;
    height: 32px;
    border-radius: 0 4px 4px 0;
}

.about-block.chip-coral::before { background: var(--brand-red); }
.about-block.chip-sky::before { background: var(--brand-blue); }
.about-block.chip-mint::before { background: #7ec7a8; }
.about-block.chip-amber::before { background: var(--brand-yellow); }

.about-block-copy {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    gap: 10px;
}

.about-block.has-image .about-block-media {
    flex: 1 1 300px;
    align-self: stretch;
    max-width: 420px;
}

/* Alternate media side left/right on wide screens for visual rhythm */
.about-block.has-image:nth-of-type(even) {
    flex-direction: row-reverse;
}

.about-block h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text, var(--ink));
}

.about-copy {
    line-height: 1.7;
    color: var(--muted);
    margin: 0;
    display: block;
}

.about-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--radius-md, 18px);
}

.about-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    margin-top: 0.2rem;
    padding: 0.72rem 1.2rem;
    background: #111111;
    color: #ffffff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #111111;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

:root[data-theme="dark"] .about-block {
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.55);
}

:root[data-theme="dark"] .about-block h2,
:root[data-theme="dark"] .about-block .about-copy {
    color: var(--ink);
}

:root[data-theme="dark"] .about-cta {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #ffffff;
}

.about-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.4);
    background: var(--brand-red);
    border-color: var(--brand-red);
}

.about-cta--blue:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
}

.about-cta--yellow:hover {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: var(--ink);
}

.empty-state {
    padding: 1.25rem 0;
    color: var(--muted);
    text-align: center;
}

/* ---------------------------------------------------------
   Scroll reveal (progressive enhancement — see about.js)
   --------------------------------------------------------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 720px) {
    .about-hero { padding: 72px 20px 48px; }
    .about-block {
        flex-direction: column !important;
        align-items: flex-start;
        gap: 16px;
        padding: 22px 20px;
    }
    .about-block.has-image .about-block-media {
        width: 100%;
        max-width: none;
    }
    .about-block.has-image:nth-of-type(even) { flex-direction: column !important; }
    .about-block-copy {
        gap: 8px;
    }
    .about-block h2 {
        margin-bottom: 0;
    }
    .about-copy {
        line-height: 1.6;
    }
    .about-cta {
        width: auto;
        align-self: flex-start;
    }
}