/* === she-rises.css — #SheRises page, built layer by layer to the 1440 Figma canvas === */

.page-sr {
    background: linear-gradient(157.25066750683806deg, rgb(2, 28, 37) 12.604%, rgb(7, 65, 88) 80.863%);
    color: #f2f2f2;
}
body.page-sr main { padding-top: 0; }

.page-sr #navbar { background: rgba(7, 65, 88, 0.8); }

/* Fluid: scale the fixed 1440 design to fill the viewport edge-to-edge */
body.page-sr { overflow-x: hidden; }
.sr-scale {
    width: 1440px;
    margin: 0 auto;
    zoom: calc(100vw / 1440px);
}

/* ── Fixed 1440 stage (hero → testimonials) ─────────────────── */
.sr-stage {
    position: relative;
    width: 1440px;
    height: 3269px;
    margin: 0 auto;
    background: linear-gradient(157.25066750683806deg, rgb(2, 28, 37) 12.604%, rgb(7, 65, 88) 80.863%);
    overflow: hidden;
}

/* ══ HERO — layered ══ */
.sr-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 1440px;
    height: 700px;
    overflow: hidden;
    background: #0d232f;
}
.sr-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* Removed: this was the light beaming from ABOVE — only the light from
   within the collage (.sr-hero__rays) is kept. */
.sr-hero__pattern {
    display: none;
}

/* Full hero video behind the logo and title. */
.sr-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Fill the hero canvas at every desktop width. The source is authored at
       the 1440×700 banner proportion, so this does not change its composition. */
    object-fit: cover;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}
.sr-hero__mosaic {
    position: absolute;
    left: -310px;
    top: -411px;
    width: 2060px;
    height: auto;
    z-index: 1;
}
.sr-hero__logo {
    position: absolute;
    left: -209px;
    top: 105px;
    width: 788px;
    height: 788px;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}
/* Figma sun-ray image (node 9-9809) — light within the collage.
   Exact placement: x0 y-909, 2011x1609, HARD_LIGHT @ 0.5 opacity. */
.sr-hero__light {
    position: absolute;
    left: 0;
    top: -909px;
    width: 2011px;
    height: 1609px;
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: hard-light;
    opacity: 0.5;
    transform-origin: 50% 100%;
    will-change: transform, opacity;
}

.sr-hero__collage {
    position: absolute;
    left: 748px;
    top: 87px;
    width: 678px;
    height: 1000px;
    object-fit: contain;
    object-position: top;
    z-index: 4;
}
.sr-hero__title {
    position: absolute;
    left: 46px;
    top: 343px;
    margin: 0;
    z-index: 2;
    color: #ffffff;
    font-size: 120px;
    line-height: 96px;
    font-weight: 700;
    letter-spacing: -2px;
    text-transform: uppercase;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.25);
}
.sr-hero__swipe {
    position: absolute;
    right: 60px;
    bottom: 50px;
    width: 52px;
    text-align: center;
    z-index: 5;
    color: #ffffff;
}
.sr-hero__mouse {
    display: block;
    width: 21px;
    height: 40px;
    margin: 0 auto 9px;
    border: 1px solid #ffffff;
    border-radius: 11px;
    position: relative;
}
.sr-hero__mouse::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 3px;
    height: 7px;
    border-radius: 2px;
    background: #ffffff;
    transform: translateX(-50%);
}
.sr-hero__swipe small { font-size: 18px; line-height: 16px; }

/* ══ INTRO ══ */
.sr-intro {
    position: absolute;
    top: 750px;
    left: 226px;
    width: 988px;
    margin: 0;
    text-align: center;
    font-size: 24px;
    line-height: 32px;
    font-weight: 400;
    color: #f2f2f2;
}

/* ══ BELIEF ══ */
.sr-belief {
    position: absolute;
    top: 882px;
    left: 0;
    width: 1440px;
    height: 354px;
}
.sr-belief__photo {
    position: absolute;
    left: 417px;
    top: 0;
    width: 962px;
    height: 354px;
    object-fit: cover;
    object-position: center;
    border-radius: 0 10px 10px 0;
}
.sr-belief__copy {
    position: absolute;
    left: 61px;
    top: 69px;
    width: 584px;
    z-index: 2;
}
.sr-belief__copy h2 {
    margin: 0;
    font-size: 60px;
    line-height: 60px;
    font-weight: 700;
    color: #ffffff;
}
.sr-belief__copy p {
    width: 528px;
    margin: 35px 0 0;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    color: #ffffff;
}

/* ══ VIDEO ══ */
.sr-video {
    position: absolute;
    top: 1336px;
    left: 186px;
    width: 1067px;
    height: 600px;
    overflow: hidden;
    border-radius: 10px;
}
.sr-video > video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.sr-video__controls {
    position: absolute;
    right: 28px;
    bottom: 24px;
    left: 28px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(2, 28, 37, 0.72);
}

.sr-video__control {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid rgba(242, 242, 242, 0.7);
    border-radius: 50%;
    background: transparent;
    color: #f2f2f2;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.sr-video__progress { width: 100%; accent-color: #ff5f1a; cursor: pointer; }

/* ══ IMPACT ══ */
.sr-impact {
    position: absolute;
    top: 2036px;
    left: 0;
    width: 1440px;
    text-align: center;
}
.sr-impact h2 {
    margin: 0;
    font-size: 60px;
    line-height: 60px;
    font-weight: 700;
    color: #f2f2f2;
}
.sr-impact__copy {
    width: 1196px;
    margin: 35px auto 0;
    text-align: left;
    font-size: 24px;
    line-height: 30px;
    font-weight: 400;
    color: #f2f2f2;
}
.sr-impact__copy p { margin: 0 0 30px; }
.sr-impact__copy h3 {
    margin: 0 0 4px;
    font-size: 24px;
    line-height: 30px;
    font-weight: 700;
    color: #f2f2f2;
}

/* ══ TESTIMONIALS ══ */
/* Auto-scrolling, infinitely looped testimonials, full bleed so cards enter and leave at
   the screen edges instead of inside a gutter. Two identical sets sit side by side and the
   track shifts by -50% (one whole set), so the loop rejoins with no jump; same approach as
   .accolades-track. Arrows step it a card at a time — see [data-marquee] in app.js. */
.sr-stories {
    position: absolute;
    top: 2729px;
    left: 0;
    width: 1440px;
    height: 540px;          /* 440 cards + the nav strip; stage has exactly this to 3269 */
}
.sr-stories__window {
    position: absolute;
    left: 0;
    top: 0;
    width: 1440px;
    height: 440px;
    overflow: hidden;
}
.sr-stories__track {
    display: flex;
    width: max-content;
    animation: srStoryScroll 40s linear infinite;
}
.sr-stories__track:hover { animation-play-state: paused; }   /* the cards have their own hover */
.sr-stories__nav {
    position: absolute;
    left: 50%;
    top: 469px;             /* centred in the 440 -> 540 strip, clear of the cards */
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 2;
}
.sr-stories__arrow {
    width: 42px;
    height: 42px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(242, 242, 242, 0.55);
    border-radius: 50%;
    background: transparent;
    color: #f2f2f2;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.sr-stories__arrow:hover { background: rgba(242, 242, 242, 0.14); border-color: #f2f2f2; }
.sr-stories__arrow svg { width: 16px; height: 16px; }
.sr-stories__set {
    display: flex;
    gap: 30px;
    padding-right: 30px;    /* keeps the seam between the two sets on the same 30px rhythm */
}

@keyframes srStoryScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Motion-sensitive users get the row static and scrollable, so every card stays reachable. */
@media (prefers-reduced-motion: reduce) {
    .sr-stories { overflow-x: auto; }
    .sr-stories__track { animation: none; }
    .sr-stories__set[aria-hidden="true"] { display: none; }
}
.sr-story {
    position: relative;
    width: 427px;
    height: 440px;
    border-radius: 10px;
    background: #f2f2f2;
    color: #000000;
    padding: 40px 30px;
    overflow: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}
/* Hover: card turns dark like the Figma dark card */
.sr-story:hover {
    background: #021c25;
    color: #f2f2f2;
}
.sr-story > p {
    width: 367px;
    margin: 0;
    font-size: 24px;
    line-height: 32px;
    font-weight: 400;
}
.sr-story__by {
    position: absolute;
    left: 30px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.sr-story__by img {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    background: #fff;
}
.sr-story__by b {
    font-size: 24px;
    line-height: 24px;
    font-weight: 500;
    color: #021c25;
    transition: color 0.3s ease;
}
.sr-story:hover .sr-story__by b { color: #f2f2f2; }
/* Exact Figma air-quote glyph (node 9-9887), card-relative x284 y310, 171x178 */
.sr-story__quote {
    position: absolute;
    left: 284px;
    top: 310px;
    width: 171px;
    height: 178px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.sr-story:hover .sr-story__quote { opacity: 1; }

/* ══ MEDIA (footer top band) ══ */
.sr-media {
    background: #021c25;
    padding: 50px 61px 0;
    display: grid;
    grid-template-columns: 304px 487px 487px;
    gap: 20px;
}
.sr-report,
.sr-media-card {
    height: 396px;
    background: #f2f2f2;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    color: #000;
}
.sr-media h2 {
    margin: 30px;
    color: #074158;
    font-size: 30px;
    line-height: 38px;
    font-weight: 700;
}
.sr-report > a:not(.sr-media__all) {
    display: block;
    width: 244px;
    margin: 0 30px;
    padding: 16px 0 17px;
    border-bottom: 1px solid rgba(2, 28, 37, 0.25);
    color: #000;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: 0.48px;
    text-decoration: none;
}
.sr-media-card > img {
    display: block;
    width: 427px;
    height: 168px;
    margin: 2px 30px 0;
    border-radius: 10px;
    object-fit: cover;
}
.sr-media-card small {
    display: block;
    margin: 15px 30px 0;
    font-size: 16px;
    line-height: 24px;
    opacity: 0.5;
}
.sr-media-card p {
    width: 427px;
    margin: 14px 30px 0;
    font-size: 20px;
    line-height: 28px;
}
.sr-media__all {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 44px;
    background: #074158;
    color: #f2f2f2;
    text-align: center;
    line-height: 44px;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.25s ease;
}
/* teal at rest — orange only on hover, animated */
.sr-media__all--orange { background: #074158; }
.sr-media-card:hover .sr-media__all,
.sr-report:hover .sr-media__all,
.sr-media__all:hover { background: #ff5f1a; }
.sr-media__all span {
    position: absolute;
    right: 32px;
    transition: transform 0.25s ease;
}
.sr-media-card:hover .sr-media__all span,
.sr-report:hover .sr-media__all span,
.sr-media__all:hover span { transform: translateX(5px); }

/* ══ Footer overrides to match #021c25 Figma band ══ */
.page-sr #site-footer { background: #021c25; }

/* ═══════════════════════════════════════════════════════════════
   MOBILE (<768px) — real phone layout, desktop untouched above.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .sr-scale { zoom: 1 !important; width: auto; }
    .sr-stage { width: auto; height: auto; overflow: visible; }

    /* hero — bg + collage + title */
    .sr-hero { position: relative; left: 0; width: auto; height: 800px; }
    .sr-hero__mosaic, .sr-hero__logo, .sr-hero__light { display: none; }
    /* centre the women collage in the tall phone hero (default 50% left it right-biased with
       an empty teal band on the left) */
    .sr-hero__video { object-position: 72% 50%; }
    .sr-hero__collage {
        left: 50%;
        top: auto;
        bottom: 0;
        transform: translateX(-50%);
        width: 420px;
        height: 340px;
        object-position: bottom;
        max-width: none;
    }
    .sr-hero__title {
        left: 0;
        right: 0;
        top: 96px;               /* clear the 70px fixed navbar so the title isn't clipped */
        text-align: center;
        font-size: 46px;
        line-height: 50px;
        letter-spacing: -1px;
    }
    .sr-hero__swipe { right: 16px; bottom: 16px; }

    /* intro */
    .sr-intro { position: relative; top: 0; left: 0; width: auto; margin: 30px 16px 0; font-size: 17px; line-height: 26px; }

    /* belief — photo then copy */
    /* she-rises.js slides the photo in with gsap.from({x:60}); the photo is full-width
       on phone, so that +60px start pushes it 60px off a 390 screen until the reveal
       settles. Clip the overhang here (desktop is unaffected — this is phone-only). */
    .sr-belief { position: relative; top: 0; width: auto; height: auto; margin-top: 28px; overflow: hidden; }
    .sr-belief__photo { position: relative; left: 0; top: 0; width: 100%; height: 220px; border-radius: 0; }
    .sr-belief__copy { position: relative; left: 0; top: 0; width: auto; margin: 20px 16px 0; }
    .sr-belief__copy h2 { font-size: 24px; line-height: 30px; }
    .sr-belief__copy p { width: auto; font-size: 16px; line-height: 24px; margin-top: 14px; }

    /* video */
    .sr-video { position: relative; top: 0; left: 0; width: auto; height: 220px; margin: 26px 16px 0; }

    /* impact */
    .sr-impact { position: relative; top: 0; width: auto; margin: 34px 16px 0; }
    .sr-impact h2 { font-size: 32px; line-height: 38px; }
    .sr-impact__copy { width: auto; margin-top: 16px; font-size: 16px; line-height: 24px; }
    .sr-impact__copy p { margin-bottom: 20px; }
    .sr-impact__copy h3 { font-size: 18px; line-height: 24px; }

    /* testimonials — stacked cards */
    /* phone: stack the cards and drop the marquee (and its duplicate set) entirely */
    .sr-stories { position: relative; top: 0; left: 0; width: auto; height: auto; overflow: visible; margin: 30px 0 36px; }
    .sr-stories__track { display: block; width: auto; animation: none; }
    /* Swipeable carousel — one story per view, manual (no auto-scroll) */
    .sr-stories__set { flex-direction: row; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 16px 4px; }
    .sr-stories__set::-webkit-scrollbar { display: none; }
    .sr-stories__set[aria-hidden="true"] { display: none; }
    .sr-stories__window { position: static; width: auto; height: auto; overflow: visible; }
    .sr-stories__nav { display: none; }
    .sr-story { flex: 0 0 86%; scroll-snap-align: center; width: auto; height: auto; margin: 0; padding: 26px 20px; }
    .sr-story:hover { background: inherit; }   /* no tap/hover flip on phone */
    .sr-story > p { width: auto; font-size: 16px; line-height: 24px; }
    .sr-story__by { position: static; margin-top: 18px; }
    /* The hover-reveal quote is opacity:0 with no hover on touch, but it keeps its
       desktop absolute position and leaks ~16px past a 390 screen. Drop it on phone. */
    .sr-story__quote { display: none; }

    /* media cards — single column */
    .sr-media { grid-template-columns: 1fr; padding: 36px 16px 0; gap: 16px; }
    .sr-media-card > img { width: auto; margin: 2px 20px 0; }
    .sr-media-card small { margin: 15px 20px 0; }
    .sr-media-card p { width: auto; margin: 14px 20px 0; font-size: 17px; line-height: 24px; }
}

/* ── Full-bleed hero past the 16" cap (collage bg stretches with the box) ── */
@media (min-width: 1729px) {
    .sr-stage {
        overflow: visible;
        background: transparent;
        isolation: isolate;
    }
    .sr-stage::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: var(--bleed-left);
        width: var(--bleed-w);
        z-index: -1;
        background: linear-gradient(157.25066750683806deg, rgb(2, 28, 37) 12.604%, rgb(7, 65, 88) 80.863%);
    }
    .sr-hero { left: var(--bleed-left); width: var(--bleed-w); }
    /* Banner (bg + collage) bleeds full-width, but keep the #SHERISES text in the
       centred 1440 column by shifting it back in by the bleed amount. */
    .sr-hero__title { left: calc(46px + var(--bleed-shift)); }
    .sr-stories__window { width: var(--bleed-w); margin-left: var(--bleed-left); }
    .sr-video {
        height: auto;
        aspect-ratio: 30 / 17;
    }
    .sr-video > video { object-fit: contain; }
}
