/* ============================================================
   about_hero — the top of the "About the Academy" page. Title +
   tagline on the START side, the founder photo inside an arched
   ornamental frame with a podium glow on the END side.
   Light / Dark / wallpaper / RTL aware. Palette via CSS vars only.
   ============================================================ */

.about-hero-section {
    position: relative;
    padding: clamp(24px, 4vw, 56px) 0 clamp(16px, 2.5vw, 32px);
}

.about-hero__grid {
    display: grid;
    /* First column (right in RTL) = the founder photo; second (left) =
       the centered text block. */
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(20px, 3.5vw, 56px);
    align-items: center;
}

/* ---- Text column (centered) ---- */
.about-hero__text {
    text-align: center;
}
.about-hero__ornament {
    margin-bottom: clamp(12px, 1.8vw, 22px);
}
.about-hero__ornament img {
    width: clamp(56px, 6vw, 84px);
    height: auto;
    object-fit: contain;
    opacity: 0.9;
}
.about-hero__heading {
    margin: 0;
    font-weight: 800;
    line-height: 1.2;
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    color: var(--dark);
}
body.dark-mode .about-hero__heading { color: #ffffff; }
body.home-wallpaper-active:not(.dark-mode) .about-hero__heading {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(20, 0, 40, 0.4);
}
.about-hero__subheading {
    margin: clamp(12px, 1.6vw, 20px) auto 0;
    font-weight: 600;
    line-height: 1.8;
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    color: var(--primary);
    max-width: 34ch;
}
body.dark-mode .about-hero__subheading { color: var(--accent); }
body.home-wallpaper-active:not(.dark-mode) .about-hero__subheading {
    color: #f5d8ff;
    text-shadow: 0 1px 4px rgba(20, 0, 40, 0.3);
}

/* ---- Visual: arched frame + podium ---- */
.about-hero__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}
.about-hero__arch {
    position: relative;
    width: 100%;
    max-width: clamp(280px, 32vw, 440px);
    aspect-ratio: 3 / 4;
    border-radius: 50% 50% 18px 18px / 42% 42% 6% 6%;
    background:
        radial-gradient(120% 90% at 50% 12%, rgba(150, 90, 220, 0.35), transparent 60%),
        linear-gradient(180deg, rgba(78, 30, 120, 0.5), rgba(20, 6, 38, 0.35));
    border: 1.5px solid rgba(180, 143, 255, 0.55);
    box-shadow: inset 0 0 60px rgba(120, 60, 190, 0.35), 0 24px 60px rgba(20, 0, 40, 0.4);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.about-hero__arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: drop-shadow(0 20px 40px rgba(20, 0, 40, 0.5));
}
.about-hero__podium {
    display: block;
    width: 70%;
    height: 22px;
    margin-top: -12px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(180, 100, 255, 0.75), rgba(180, 100, 255, 0) 75%);
    filter: blur(4px);
}

/* Plain (non-wallpaper, light) page: soften the dark frame so it
   doesn't clash with a white background. */
body:not(.dark-mode):not(.home-wallpaper-active) .about-hero__arch {
    background:
        radial-gradient(120% 90% at 50% 12%, rgba(193, 63, 216, 0.18), transparent 60%),
        linear-gradient(180deg, rgba(106, 13, 122, 0.12), rgba(106, 13, 122, 0.04));
    border-color: var(--primary);
    box-shadow: inset 0 0 50px rgba(193, 63, 216, 0.15), 0 20px 46px rgba(62, 0, 95, 0.18);
}

/* ============================================================
   Responsive — 1199 / 991 / 767 / 575
   ============================================================ */
@media (max-width: 991px) {
    .about-hero__grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }
    .about-hero__text { text-align: center; }
    .about-hero__subheading { max-width: none; margin-inline: auto; }
    .about-hero__visual { order: -1; }
    .about-hero__arch { max-width: clamp(240px, 60vw, 340px); }
}

@media (max-width: 575px) {
    .about-hero-section { padding: 16px 0; }
    .about-hero__arch { max-width: 78vw; }
}
