/* ===== hero art layer =====
   The prototype's background art (converging arcs + crescent + bloom + flare),
   wrapped in a `.hero-art` container so its classes never collide with the
   rest of the site. Animation names are prefixed with `art-`. */

/* give the hero its own dark bg (overrides the body grid behind) */
#top.hero{
    background:radial-gradient(ellipse 75% 85% at 62% 50%,#03060c 0%,#03060b 55%,#020409 100%)!important
}
/* kill the old purple/cyan glows and vignette from styles.css inside the new hero */
#top.hero > .glow,
#top.hero > .vignette{display:none!important}

.hero-art{
    position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden
}

.hero-art .art-wrap{
    position:absolute;inset:0;
    display:flex;align-items:center;justify-content:flex-end;
    pointer-events:none
}
.hero-art .art{
    position:relative;flex:none;
    height:clamp(100%,62vw,125%);
    aspect-ratio:1448 / 1086
}

.hero-art .layer{
    position:absolute;inset:0;
    pointer-events:none;will-change:transform;
    z-index:0
}
.hero-art .layer svg{
    position:absolute;inset:0;width:100%;height:100%;
    display:block;overflow:visible
}

.hero-art .add{mix-blend-mode:screen}
@supports (mix-blend-mode:plus-lighter){.hero-art .add{mix-blend-mode:plus-lighter}}

.hero-art .reveal{
    opacity:0;animation:artFadeIn 2.4s cubic-bezier(.4,0,.2,1) forwards;animation-delay:var(--d,.6s)
}

.art-vignette{
    position:absolute;inset:0;z-index:1;pointer-events:none;
    background:radial-gradient(ellipse 95% 95% at 60% 50%,transparent 62%,rgba(0,0,0,.4) 100%)
}
.art-grain{
    position:absolute;inset:0;z-index:1;pointer-events:none;opacity:.035;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")
}

/* draw-in strokes */
.hero-art .arc{
    stroke-dasharray:1 1;stroke-dashoffset:var(--from,1);
    animation:artDraw var(--dur,2.4s) cubic-bezier(.65,0,.15,1) forwards;animation-delay:var(--d,0s)
}
@keyframes artDraw{to{stroke-dashoffset:0}}
@keyframes artFadeIn{to{opacity:1}}

.hero-art .fade-in{
    opacity:0;animation:artFadeIn 1.8s ease forwards;animation-delay:var(--d,.4s)
}
.hero-art .breathe{
    animation:artBreathe 6s ease-in-out infinite;transform-box:fill-box;transform-origin:center
}
.hero-art .float{animation:artFloat 9s ease-in-out infinite}
.hero-art .twinkle{
    animation:artTwinkle var(--t,4s) ease-in-out infinite;animation-delay:var(--d,0s)
}
@keyframes artBreathe{0%,100%{opacity:.85;transform:scale(1)}50%{opacity:1;transform:scale(1.06)}}
@keyframes artFloat{0%,100%{transform:translateY(-3px)}50%{transform:translateY(3px)}}
@keyframes artTwinkle{0%,100%{opacity:.15}50%{opacity:.8}}

/* rest the ambient animations when the hero screen isn't active */
.hero-art.is-offscreen .breathe,
.hero-art.is-offscreen .float,
.hero-art.is-offscreen .twinkle{animation-play-state:paused}

@media (prefers-reduced-motion:reduce){
    .hero-art .arc{animation:none;stroke-dashoffset:0}
    .hero-art .fade-in,
    .hero-art .reveal{animation:none;opacity:1;transform:none}
    .hero-art .breathe,
    .hero-art .twinkle,
    .hero-art .float{animation:none}
}

/* ===== mobile / tablet: stack — art on top (rotated so the light sits at the bottom), copy below ===== */
@media (max-width:1024px){
    /* hero-art fills the upper portion of the hero */
    .hero-art{
        inset:0 0 58% 0!important;
        overflow:hidden
    }
    .hero-art .art-wrap{
        inset:0!important;
        align-items:center;justify-content:center
    }
    /* art is sized in its natural (landscape) orientation, then rotated +90° (CW) so the
       right-side focal point ends up at the bottom of the mobile art band.
       width = container height (42vh); height is derived from the 1448/1086 aspect
       so the rotated portrait content fits inside the wider-than-tall band. */
    .hero-art .art{
        width:42vh!important;
        height:calc(42vh * 1086 / 1448)!important;
        max-width:none;
        transform:rotate(90deg);
        transform-origin:center
    }
    .hero-art .layer svg{opacity:1}

    /* copy anchored to the lower portion, text flowing from top */
    .hero-copy{
        top:42%!important;
        padding:22px 22px 52px!important;
        justify-content:flex-start!important
    }
}

/* hero tagline — now the main hero headline. Break is explicit in the markup
   (<br>). No nowrap — the hero clips overflow, so we size the font to fit
   "reveals human capability" at the viewport's hero-copy width. */
.hero-copy .hero-tagline{
    font-family:"Bricolage Grotesque",sans-serif;
    font-weight:700;
    font-size:clamp(34px,4.8vw,64px);
    line-height:1.05;
    letter-spacing:-.025em;
    color:var(--paper);
    margin:28px 0 0;
    max-width:none
}
/* paragraph sits a bit further from the larger headline */
.hero-copy .hero-tagline + .hero-sub{margin-top:28px}

/* Desktop: collapse the hero grid to a single column and widen the copy
   container so the headline has room to breathe. */
@media(min-width:1025px){
    .hero-grid{grid-template-columns:1fr!important}
    .hero-copy{max-width:min(1040px,100%)!important}
}
@media (max-width:560px){
    /* tighter stack split on phones — more room for the art, tighter padding on copy */
    .hero-art{inset:0 0 60% 0!important}
    /* art sized to the taller (40vh) band on phones */
    .hero-art .art{
        width:40vh!important;
        height:calc(40vh * 1086 / 1448)!important
    }
    .hero-copy{
        top:40%!important;
        padding:18px 20px 44px!important
    }
    .hero-copy .hero-tagline{font-size:clamp(22px,5.6vw,34px);margin-top:18px;max-width:none}
    .hero-copy .hero-tagline + .hero-sub{margin-top:18px}
}
