/* ==========================================================================
   hero.css — the About section as a landing hero. The background reel
   (videos/hero_reel_*.mp4) plays inside the About panel, which keeps the
   same width, margins and rounded corners as the Projects and Blog panels
   (sizing in style_desktop.css). The About text sits on a frosted card in
   the middle of the video. js/hero.js picks the file and plays/pauses it.
   ========================================================================== */

/* 16:9 like the reel, so the video shows uncropped; the panel grows taller
   when the card needs more room (on phones), and the video then crops to
   fill it. */
.aboutPanel.aboutHero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    aspect-ratio: 16 / 9;
    padding: 40px;
    background-color: #000;
    isolation: isolate;
}

/* The video layer is clipped to the panel's rounded corners. The panel
   itself doesn't clip, so it can still grow to fit the card. */
.heroMedia {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}
.heroVideo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000 center / cover no-repeat;   /* poster set inline */
}

/* Frosted card: the About text on a blurred, darkened panel so it stays
   readable over every shot of the reel. If a photo is added inside the
   card (img.heroPhoto before p.introSummary, both in div.introBody), it
   sits beside the text on wide screens and above it on phones. */
.aboutHero .intro {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 36px 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(3px) saturate(1.1);
    backdrop-filter: blur(3px) saturate(1.1);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
/* Browsers without backdrop-filter get a darker card instead. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .aboutHero .intro { background: rgba(0, 0, 0, 0.72); }
}
.aboutHero .introSummary {
    font-size: 18px;
    line-height: 1.6;
}
.aboutHero .introBody {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 18px;
}
.aboutHero .introBody .introSummary { margin-top: 0; }
.aboutHero .heroPhoto {
    flex: 0 0 auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

@media only screen and (max-width: 900px) {
    .aboutPanel.aboutHero { padding: 28px; }
    .aboutHero .introSummary { font-size: 16px; }
    .aboutHero .heroPhoto { width: 140px; height: 140px; }
}
@media only screen and (max-width: 600px) {
    .aboutPanel.aboutHero { padding: 16px; }
    .aboutHero .intro { padding: 20px 18px 22px; border-radius: 10px; }
    .aboutHero .introBody { flex-direction: column; gap: 18px; }
    .aboutHero .heroPhoto { width: 120px; height: 120px; }
}

@media print {
    .heroMedia { display: none; }
}
