{"version":3,"file":"Mask.CtxUm5_L.mjs","names":["React.useState","React.useRef","React.useReducer","__esmMin","init_npm_react_18_3_1","ye","window","ce","init_jsx_runtime","c","p","_e","de","init_ssg_sandbox_shims","addPropertyControls","RenderTarget","init_framer_CN96F41L","useIsStaticRenderer","ControlType","cqhResolves","CQH_CACHE","host","probe","a","m","useDelayed","held","setHeld","value","ms","id","easingCSS","EASINGS","easing","maskSupported","MASK_CACHE","useMaskAsset","state","setState","src","dead","s","img","useVideoReady","ready","setReady","disabled","v","ref","handle","mark","onData","anyV","useImageReady","useSize","size","setSize","node","read","width","height","old","ro","useReducedMotion","reduced","setReduced","q","update","useZoneState","first","zoneRef","above","trigger","rn","revealRef","xn","exitRef","zn","returnRef","zone","wasFirst","topOfPage","initial","prev","framed","vh","frame","schedule","observers","pending","watch","io","e","entries","key","margin","TOP_EDGE","LOOKBACK_PX","o","usePairedAnimation","anims","generation","durationSeconds","targets","t","list","clamp01","seed","instant","end","nextRate","mine","raf","lead","st","i","other","CRGVectorMask","props","root","masked","counter","revealMark","exitMark","returnMark","videoEl","hovered","setHovered","focused","setFocused","clicked","setClicked","loaded","setLoaded","videoFailed","setVideoFailed","isStatic","hydrated","setHydrated","target","canvas","asset","maskSVG","cqh","maskOK","videoSrc","mediaType","video","imageSrc","image","posterReady","poster","videoReady","pctIn","n","revealPct","revealAt","exitPct","exitAt","returnPct","returnAt","returnClamped","boundariesCross","scroll","hold","delay","leg","setLeg","activeLeg","canvasView","maskW","maskWidth","maskH","maskSizeCSS","ax","alignX","ay","alignY","unitPx","pos","x","y","showMask","maskHolding","o0","startOpacity","o1","endOpacity","o2","leaveOpacity","tShift","poses","enterX","enterY","endX","endY","startX","startY","useTransform","engine","legPoses","at","restPos","restOpacity","restShift","restUnshift","anim","duration","outDuration","outEasing","tick","fps","visible","debug","frames","t0","loop","now","el","r","shown","inView","tryPlay","onVisibility","retry","alignPct","mediaAX","mediaAlignX","mediaAY","mediaAlignY","mediaH","mediaScale","mediaNudge","mediaOffsetX","mediaOffsetY","fadeCSS","mediaFade","mediaStyle","hasMedia","interactive","notice","style","name","topPct","placeholderColor","BUILD_NAME","EASING_OPTIONS","EASING_TITLES","pct","init_Mask"],"sources":["https:/framerusercontent.com/modules/19j5wxVumbqCva19aNYm/DpNzIthCaXRiNxYmunIx/Mask.js"],"sourcesContent":["/**\n * CRG Vector Mask 1.0 (b193)\n * Custom SVG mask over a video or image, animated on a scroll trigger.\n * Paste this whole file into a Framer Code Component (Assets > Code > Create Code File)\n * and name that code file \"CRG Vector Mask 1.0 (b182)\" — Framer takes the name it\n * shows in the insert menu and the layer list from the file, not from this comment.\n *\n * The build number is the only thing that reliably answers \"is the new code live?\".\n * It is printed as the first line of the Debug readout, so publishing and then\n * checking that number takes a second and settles the question outright.\n *\n * NUMBERING\n * Product version stays 1.0 until the prop schema breaks. The build number\n * increments once per delivered build. Earlier builds carry the semver labels they\n * shipped under, since those are what the chat history calls them; b182 is what\n * would otherwise have been 1.9.0.\n *\n * CHANGELOG\n * b193   RETURN AT IS CLAMPED TO EXIT AT. Fixes a stutter at the exit boundary\n *        that showed up when scrolling slowly, and the related complaint that an\n *        exit set to 25% seemed to happen nearer 10%.\n *\n *        The zone is held by a level condition: past Exit At we are in zone 2,\n *        and we stay while the return marker is still above the top of the\n *        window. With Return At BELOW Exit At that marker has not crossed at the\n *        instant of exit, so the next re-evaluation — the return observer\n *        reporting, a resize, one pixel of scroll jitter re-crossing the exit\n *        line — concludes \"not past the return line yet\" and drops back to\n *        RESTING. The block cancels its own exit, then fires it again lower down.\n *        Measured: Exit 45 / Return 20 held at 32% visible reported RESTING when\n *        it should have reported LEAVE; at Return >= Exit it reported LEAVE in\n *        every case.\n *\n *        Return At is now raised to Exit At when set below it, and Debug says so.\n *        Nothing else changed.\n * b192   MEDIA FRAMING, CORRECTED. b191 forced object-fit: cover so that the\n *        media could never leave part of the component uncovered. That was the\n *        wrong call: it contradicted the agreed model (\"frame the media exactly\n *        as the mask shape is framed\"), and it made Media Align X inert whenever\n *        cover happened to fill the width exactly — which is precisely the case\n *        for a square source in a wide component.\n *\n *        The mask is sized from the component's HEIGHT, keeps its own aspect,\n *        and is anchored to an edge. The media now does the same:\n *            height = Media Scale % of the component's height\n *            width  = the browser derives it from the media's aspect ratio\n *            anchored by Media Align X/Y, nudged by Media Offset X/Y (in cqh)\n *        Align Right with Align Y Center therefore spans top to bottom and pins\n *        to the right edge, rather than stretching across the full width.\n *\n *        Not covering the whole component is now a design choice rather than a\n *        bug: the Placeholder colour sits behind the media inside the mask, so\n *        uncovered area reads as a deliberate solid. Raise Media Scale to fill —\n *        a square source fills a 1440x900 component at about 160%.\n *\n *        `width: auto` has the browser derive the width from the intrinsic\n *        aspect ratio, so this still measures nothing.\n * b191   MEDIA FRAMING. The video/image is now positioned the same way the mask\n *        is — an anchor, a scale and an offset — and Fit is gone.\n *\n *          Media Align X / Y   Left·Center·Right / Top·Center·Bottom\n *          Media Scale         100% = exactly fills. Floor of 100.\n *          Media Offset X / Y  nudge from the anchor, clamped\n *\n *        Fit: Contain and the old Media X/Y translate both left parts of the\n *        component box with nothing behind them — contain by letterboxing, the\n *        translate by moving the element off its own box. A stationary mask\n *        never notices. A travelling one does: measured on b190 at 1440x900,\n *        contain with the mask at -40/20 left 5.9% of the masked area empty,\n *        while cover left no gap at any pose, however far the mask travelled.\n *        That is the black-bars-at-some-window-sizes bug.\n *        Now unreachable by construction: object-fit is always cover, so the\n *        media is at least as big as the box on both axes; object-position only\n *        picks which part of the overflow is kept and is clamped to 0..100%;\n *        and scale is floored at 100. The anchor doubles as the zoom origin, so\n *        a pinned edge stays pinned while zooming.\n *\n *        Align X / Y is renamed Mask Align X / Y — it only ever moved the mask,\n *        and the old name implied it framed the media too. TITLE ONLY: the prop\n *        keys are unchanged, so existing values survive.\n *\n *        MIGRATION: Fit, Media X and Media Y are removed, so those reset. Media\n *        Scale keeps its key and its meaning (100 = fills), only its floor moved\n *        from 10 to 100. Everything else is untouched.\n * b190   TRIGGERS REWRITTEN. Three independent numbers, all measured as a\n *        percentage OF THE COMPONENT, replacing Anchor / IN Trigger / OUT\n *        Trigger.\n *\n *          Reveal At   scrolling down, % in view when the IN leg fires\n *          Exit At     scrolling down, % still in view when the OUT leg fires\n *          Return At   scrolling up,   % back in view when it returns to REST\n *\n *        WHY. The old model could not express what was being asked for, and the\n *        geometry says so rather than being a matter of taste. With Anchor 50,\n *        IN 75, OUT 25, all three moments land on 75% visible:\n *            reveal  = 100 - IN  + Anchor = 75\n *            exit    = 100 + OUT - Anchor = 75\n *            return  = 100 + OUT - Anchor = 75   <- same line, same number\n *        Two separate problems fell out of that:\n *          - Exit and Return were THE SAME LINE crossed in opposite directions,\n *            so they were necessarily simultaneous. No setting separated them.\n *          - One shared Anchor coupled the boundaries. Anchor 0 gave an early\n *            reveal but forced the exit to fire while still 100% visible;\n *            Anchor 100 did the reverse. Early reveal AND late exit was\n *            unreachable at every combination of the three numbers.\n *\n *        HOW. The number moved into the component and the screen line became\n *        fixed. Each boundary owns a 1px sentinel at its own fraction of the\n *        component: Reveal crosses the window's BOTTOM edge, Exit and Return\n *        cross the TOP edge. A sentinel at R% reaches the bottom edge exactly\n *        when the top R% has entered, so the mapping is exact at any component\n *        height with NO measurement — rule 5 intact, and it needs no change for\n *        the Framer preview iframe. Exit and Return are separated by hysteresis:\n *        which boundary governs depends on the zone already occupied.\n *\n *        MIGRATION: prop keys changed, so these three reset to defaults\n *        (15 / 25 / 20) on every instance. Re-dial once. Everything else —\n *        poses, durations, easing, delay, alignment, placeholder — is untouched.\n * b189   UNMASKED ON THE PUBLISHED SITE, MASKED IN FRAMER PREVIEW. Two possible\n *        causes, both closed, because guessing between them has been expensive\n *        on this component before.\n *\n *        1. `MASK_OK` was a module-level const running CSS.supports at import\n *           time. If the module is ever first evaluated without a DOM, `CSS` is\n *           undefined, the const is baked to false, and the mask never applies\n *           for the life of that module — while Framer's preview, which always\n *           has a DOM, looks perfect. Now evaluated lazily inside the component,\n *           and a verdict reached without a DOM is never cached.\n *        2. `mask-size: <w>px auto` (new in b188) falls back to the mask\n *           POSITIONING AREA when the SVG has no intrinsic ratio, so the mask\n *           grows to the full component height and stops reading as a mask.\n *           Back to an explicit height whenever the probe supplies a ratio,\n *           which is always by the time anything is visible.\n *\n *        Debug now prints showMask, the resolved mask-size and the aspect, so\n *        this is diagnosable from the page instead of by inference.\n * b188   LOADING. Two bugs and a progressive-reveal stack. Motion untouched.\n *\n *        BUG 1 — video blank after a Framer page change, Safari only, and the\n *        page background showing through rather than black. b187 gated playback\n *        on `canplaythrough`, which Safari has an open bug about never firing\n *        (Apple Developer Forums 739368); it also cannot fire under\n *        preload=\"metadata\", or when the media cache suspends the load, or if\n *        the element was ready before the listener attached, since events are\n *        not replayed. With no frame decoded a <video> \"represents its poster\n *        frame, if any, or else TRANSPARENT black\" (whatwg/html#9279) — hence a\n *        white page showing through, not a black box.\n *        Now: visibility is driven by `requestVideoFrameCallback` (a frame was\n *        actually handed to the compositor), falling back to readyState >= 2,\n *        and readyState is read SYNCHRONOUSLY on mount so a cached video never\n *        waits for an event that already happened. Playback is driven by play()\n *        on view. preload is \"auto\" in the markup rather than flipped later —\n *        flipping it is only a hint, Chrome overrides it on cellular and iOS\n *        ignores it. load() is never called on a healthy element; it would reset\n *        readyState to HAVE_NOTHING and reopen the same hole. The element is\n *        released on unmount (Chrome does not GC detached media, iOS caps them).\n *\n *        BUG 2 — a flash of unmasked video, both browsers. TWO causes:\n *          ours   b187 rendered the media while the mask probe was in flight.\n *          theirs measured in Chromium — while a mask-image is still downloading\n *                 the element paints UNMASKED and visible. The spec implies it\n *                 should be hidden; Chromium disagrees, so it cannot be left to\n *                 the browser. A mask that 404s does the opposite and is\n *                 permanently invisible with no console error.\n *        Now: the mask is applied immediately, and a non-animated wrapper holds\n *        the media at opacity 0 until the mask image is confirmed loaded. If the\n *        mask fails, nothing is ever shown — Val's call, and what the browser\n *        does anyway. Debug names the state so a blank hero is diagnosable.\n *        The hold cannot live on the masked layer itself: that layer's opacity\n *        belongs to the Web Animation with fill:\"both\".\n *\n *        PROGRESSIVE REVEAL — solid colour, then poster, then video, each shown\n *        the moment it is genuinely ready. The colour costs no request and no\n *        bytes, so shape and motion are present on the first frame. A poster\n *        that is the video's first frame makes the handover invisible. Media\n *        Fade (default 0.4s) only matters when something lands mid-animation, so\n *        it eases rather than pops.\n *\n *        Mask height now comes from `mask-size: <width>px auto`, so the browser\n *        derives it from the SVG's own proportions. Benched correct for a\n *        viewBox-only export, which is exactly where naturalWidth/naturalHeight\n *        are unreliable (Chromium 41357911).\n *\n *        No -webkit-mask-* despite the general advice to ship prefixed\n *        duplicates: rule 1 stands, our own bench showed prefixed longhands\n *        break Chrome, and unprefixed mask has been Baseline since Dec 2023.\n * b187   ONE RULER FOR SIZE AND MOVEMENT. Mask Width is now a percent of the\n *        component's HEIGHT, matching the poses.\n *\n *        b185 moved the poses onto the height so a diagonal would be a true 45\n *        degrees, but left sizing on the width, and b186 shipped that split as\n *        deliberate. It is not defensible: a composition built on two references\n *        can be aligned at exactly one window shape. Measured across four window\n *        shapes, the gap between a mask and an arrow — in mask-widths — ran\n *        0.125 / 0.176 / 0.083 / 0.267. On one ruler it is 0.200 at all four.\n *\n *        MIGRATION: multiply Mask Width by (component width / height) to keep\n *        the size you had. On 1440x900, 50 becomes 80. Poses are unchanged.\n * b186   STANDARDISED WITH CRG ARROW MOTION b9. Same trigger fields, same delay,\n *        same easing ladder, same units. The two were diverging — the Arrow's\n *        triggers were rebuilt in its b5 and never back-ported — which meant a\n *        stack fired at different moments and every new layer had to be\n *        translated by hand. Motion engine untouched: the zone engine already\n *        took two line numbers, the presets were only wrapping it.\n *\n *        TRIGGERS. Nine presets, a Custom sub-panel of four fields, and two\n *        offsets are replaced by the Arrow's three plain numbers. The number in\n *        the panel IS the line on screen.\n *          Anchor       0 = top edge of this component, 50 = middle, 100 = bottom\n *          IN Trigger   where on screen that point fires IN   (100 bottom, 0 top)\n *          OUT Trigger  where on screen that point fires OUT\n *        Lower always means later. Old preset \"While it's on screen\" was\n *        anchor 50 / in 100 / out 0; the new defaults are 50 / 75 / 25, which is\n *        what the Arrow has always shipped.\n *\n *        DELAY, in milliseconds — the mask never had one. Separate from the\n *        trigger on purpose: the trigger decides WHERE on screen, the delay\n *        decides HOW LONG after. Same triggers plus different delays across a\n *        stack is what makes it cascade. It holds the zone reading rather than\n *        the pose, so a fast reverse discards a pending change instead of firing\n *        it late, and it never delays the first snap on load.\n *\n *        EASING LADDER replaces Custom Bézier. Three families, three strengths:\n *        Ease In / Out / In Out, each at base, 2x and 4x. Peak speed runs\n *        1.7x / 3.0x / 4.5x the linear rate. Every curve has its control-point Y\n *        values pinned to 0 or 1, so the output cannot leave 0..1 — no overshoot,\n *        no bounce, no reversal, verified by sampling all ten at 2000 points.\n *        Custom Bézier is gone: Framer's property controls have no curve editor,\n *        so it was only ever four numbers typed into a text field.\n *\n *        Debug now prints the live visible percentage, both trigger lines and the\n *        delayed zone, exactly as the Arrow does.\n *\n *        MIGRATION: Trigger presets and offsets do not carry over. Set Anchor /\n *        IN / OUT directly; 50 / 75 / 25 reproduces the Arrow. Any easing set to\n *        Custom falls back to Ease In Out — pick a ladder entry instead.\n * b185   ONE UNIT FOR BOTH AXES. Breaking change to what the pose numbers mean.\n *\n *        Until now X was a percent of the component's WIDTH and Y a percent of\n *        its HEIGHT — two different rulers. So -100 / 100 was only a 45° path on\n *        a square component, and on a 1440x900 block it came out at about 32°.\n *        The workaround was to pre-divide by the aspect ratio by hand, which is\n *        where the 160 in the old defaults came from: 160% of 900 is 1440, the\n *        same pixels as 100% of the width.\n *\n *        Both axes now use the component's HEIGHT as the unit. 100 means \"the\n *        height of this component\", left, right, up or down. Equal numbers are\n *        equal pixels, so a diagonal is a true diagonal and the shape travels at\n *        the same speed in every direction.\n *\n *        Practical consequence on a landscape block: Y 100 clears the top or\n *        bottom edge exactly, X 100 does NOT clear the side — on 1440x900 it\n *        covers 900 of the 1440px. Set both to ~160 to clear sideways too.\n *        Overshooting is free; it happens off-screen. But keep it moderate:\n *        past roughly 150 the deceleration tail plays outside the frame, and on\n *        the way back in you get a dead pause followed by a fast arrival.\n *\n *        Mechanism: the poses are written in `cqh`, a container-query unit the\n *        browser resolves against this component's own box. No measurement, and\n *        — verified — a running animation re-resolves to new pixels when the\n *        component is resized WITHOUT being rebuilt, which a pixel value cannot\n *        do. Rule 5 (\"never derive positions from a measured box\") therefore\n *        still holds: the browser does the resolving, not us.\n *        `cqh` is probed once at runtime rather than assumed, because a unit\n *        that parses in CSS need not resolve inside a Web Animations keyframe.\n *        If the probe fails the component falls back to pixels computed from the\n *        measured height — same numbers, same behaviour, one rebuild per resize.\n *\n *        MIGRATION: existing instances need their Y values re-entered. The old\n *        160 / -160 pair becomes 100 / -100. X is unchanged in meaning only on a\n *        square component; on a landscape one, an old X of 100 was wider than\n *        the new 100, so multiply old X by (width / height) to reproduce it.\n * b184   Align X and Align Y. Poses were always measured from the component's\n *        centre, which meant aligning several stacked components came down to\n *        hand-dialling percentages until they happened to agree — and they would\n *        disagree again at the next breakpoint, because a percentage of a\n *        full-width box moves with the window while an edge does not. Anchoring\n *        is what makes a composition survive a resize, which is why Framer has\n *        constraints at all.\n *        Mechanically it is one pair of numbers: the anchor the mask is placed\n *        at, which the pose offsets are then measured from. Default is centre, so\n *        every existing value means exactly what it meant before.\n *        Motion untouched.\n * b183   Panel rebuilt around the journey, plus trigger offsets and a Framer\n *        preview path. The motion itself is UNCHANGED from b182 — same legs,\n *        same timeline, same observer code in real browsers.\n *\n *        PANEL. The three poses now read in the order they happen, with each\n *        leg's timing sitting between the two poses it carries the mask between:\n *          IN-START X/Y/Opacity  →  IN Duration/Easing\n *          RESTING  X/Y/Opacity  →  OUT Duration/Easing\n *          OUT-END  X/Y/Opacity\n *        A duration describes a journey rather than a place, and there are three\n *        poses but only two journeys, so timing is per-leg. Every pose now has\n *        its own opacity; OUT-END previously borrowed IN-START's.\n *\n *        OFFSETS. IN Offset and OUT Offset shift each trigger line as a percent\n *        of screen height, both with the same sense: positive is later while\n *        scrolling down, negative is sooner. They can push a line outside the\n *        viewport entirely, which is how you fire before a block is visible or\n *        after it has gone.\n *\n *        FRAMER PREVIEW. Percentages in b182 fixed the units but not the box:\n *        inside an iframe an observer with root:null resolves against the\n *        TOP-LEVEL viewport, so the root is the wrong rectangle before any margin\n *        applies. The component now detects the iframe and, only there, reads\n *        positions on scroll instead. A real browser never enters that branch.\n * b182   Renamed to CRG Vector Mask 1.0, build-numbered from here. The build\n *        string is now printed as the first line of Debug. Cosmetic only — the\n *        component is still the file's default export, so instances on the canvas\n *        keep every uploaded asset and every setting.\n *        Otherwise identical to 1.9.0 below, which is the Framer preview fix and\n *        is still the thing to test.\n * 1.9.0  Framer's preview was the last environment still wrong while both real\n *        browsers agreed, which is itself the clue: the preview runs the site in\n *        an iframe, and an IntersectionObserver with root:null resolves against\n *        the TOP-LEVEL viewport rather than the iframe's. 1.7.2 and 1.8.x\n *        computed their root margins in pixels from window.innerHeight — the\n *        iframe's height — so the margins were measured against one box and\n *        applied to another, and every trigger line landed somewhere other than\n *        where it was asked for. That is the \"triggers not timely\" symptom.\n *        Lines are percentages again, which the browser resolves against whatever\n *        the real root is. The pixel version was introduced while chasing a\n *        Safari bug that the bench later disproved: Safari honours percentage\n *        rootMargin correctly, and the real Safari fault was the mid-timeline\n *        stop that 1.8.0 removed.\n *        The geometry seed is gone with it — the first zone now waits until every\n *        active observer has reported once, rather than being guessed from a\n *        measured rect. Nothing in the trigger measures anything any more, and\n *        the resize handler is no longer needed.\n * 1.8.1  Fixed \"easing is not defined\". Restructuring the hook in 1.8.0 dropped\n *        its `easing` parameter while the call site still passed one, so every\n *        argument after `duration` was shifted by one and `easing` was\n *        referenced but never declared. Second time a missing identifier has\n *        shipped, because transpiling a .tsx strips types without checking them\n *        and an undefined name is only a runtime error. Every build from here is\n *        type-checked against a Framer shim first, which catches both the\n *        undefined name and the argument-count mismatch.\n * 1.8.0  The three-pose journey, rebuilt on 1.6.2's machinery.\n *        A bench run in Safari passed all six primitives 1.7.x depends on:\n *        percentage rootMargin, pixel rootMargin, the two-observer zone model,\n *        three keyframes with per-segment easing, parking the playhead\n *        mid-timeline, and an interrupted reversal. So no primitive was broken —\n *        the fault was in composing them, and the one structural difference from\n *        1.6.2 that a bench cannot test in isolation was this: 1.7.x stopped the\n *        playhead in the MIDDLE of a timeline, a place nothing halts on its own,\n *        where fill:both, a manual pause and a later play() all interact.\n *        The timeline now holds only ONE leg of the journey at a time —\n *        arrive<->resting, or resting<->leave — so the target is always a\n *        natural end of the animation, exactly as in the version that worked.\n *        Two keyframes, easing back on the timing, no parking, no watchdog.\n *        The leg only switches at the far ends, and both legs meet at the resting\n *        pose, so `seed` places a rebuilt timeline on that shared boundary and\n *        the swap is invisible. Behaviour is unchanged; the mechanism is the old\n *        one.\n * 1.7.2  Two attempts at the Safari regression in 1.7.0. Chrome was correct in\n *        1.7.1; Safari was not, and more than one thing changed at once, so these\n *        are the two changes Safari is likeliest to mind.\n *        1. Root margins are pixels again, derived from the viewport height and\n *           rebuilt on resize. 1.7.0's exit-line observer was the first in any\n *           version to use a percentage rootMargin, and percentage support has\n *           been unreliable in Safari. Every version that worked in both browsers\n *           used pixels only. This is the leading suspect.\n *        2. The middle stop is parked by watching the playhead instead of by a\n *           timer. A timer firing late leaves the mask past its pose and firing\n *           early leaves it short; watching the playhead is correct regardless of\n *           how the frames landed, and it stops as soon as it arrives.\n *        If Safari is still wrong after this, the remaining suspects are\n *        per-keyframe easing and the two-observer zone model — isolate by\n *        reverting one at a time rather than both.\n * 1.7.1  Fixed \"end is not defined\". 1.7.0 replaced the two-state `end` boolean\n *        with a three-stop `targetProgress`, but one reference survived, in the\n *        data-state attribute on the root element. An undefined identifier is a\n *        runtime error rather than a compile error, so nothing caught it until\n *        the component rendered. data-state now reports arrive / resting / leave.\n * 1.7.0  Three poses on one timeline, so the mask travels WITH the block instead\n *        of repeating a single motion twice.\n *          Arrive   — where it waits before the block comes up from the bottom\n *          Resting  — where it sits while the block is on screen\n *          Leave    — where it goes once the block passes the top\n *        Scrolling down walks arrive -> resting -> leave; scrolling up walks back.\n *        Defaults give a 45° diagonal in from the bottom left and a 45° diagonal\n *        out to the top right, which reads as the mask being carried up the page\n *        by the block.\n *        The trigger now reports a zone rather than a boolean: one half-plane\n *        observer per line, seeded from geometry so the very first zone — the one\n *        that snaps instead of animating — is never computed from half-known\n *        state.\n *        Easing moved onto the keyframes, since a keyframe's easing governs the\n *        segment starting at it: each leg now eases on its own instead of one\n *        curve being stretched across both. The middle stop is parked by a timer\n *        computed from the exact distance, guarded by the same generation counter\n *        as everything else, so a scroll mid-flight cancels it cleanly.\n *        Renames in the panel only, values are untouched: Start X/Y is now\n *        Leave X/Y, End X/Y is now Resting X/Y, and Arrive X/Y is new.\n * 1.6.2  Chrome would play the mask in but not out. The only structural\n *        difference between the two directions was the start time: playing\n *        forward seeds it at \"now\", while playing in reverse works out to a\n *        start time 1.2s in the FUTURE. That is the correct way to express a\n *        reversed animation, but Chrome treats a future start time as\n *        not-yet-begun and holds the first frame, so the reverse never moved.\n *        Both directions now go through play(), which never produces a future\n *        start time. The pair is still seeded identically in one synchronous\n *        block, and the one-frame alignment that follows is generation-guarded\n *        and only touches animations that are still running — so it cannot\n *        repeat the 1.3.0 corruption, where a late callback wrote onto an\n *        animation a newer scroll had already re-seeded.\n * 1.6.1  Default is now \"Visible, until it leaves the top\": the mask simply sits\n *        centred, and the only motion is the departure on a 45° diagonal as the\n *        block scrolls off the top. 1.6.0's band also played the arrival, so the\n *        mask flew IN on the way to the block, which is backwards from what this\n *        is for. A band with no enter line means the block counts as in-band from\n *        infinitely far below — visible by default, with one exit crossing.\n *        Also: a zero line is now emitted as 0px rather than -0%, which is a\n *        value some parsers dislike.\n * 1.6.0  The trigger is a band, not a line, and the defaults are now the common\n *        case rather than mine.\n *        Until now there was one line, so \"reverse\" could only ever mean\n *        scrolling back up across it. Scrolling *past* a block downward had\n *        nothing to cross, so it never played out — it just sat at its end pose\n *        as it left the screen. The observer's root is now the region between an\n *        exit line and an enter line: End while the anchor is inside that band,\n *        Start outside it. A block therefore plays in as it arrives and out as it\n *        leaves, in whichever direction you are scrolling. The band is hundreds\n *        of pixels tall, so nothing can step over it at speed.\n *        Presets marked \"(stays)\" keep the old single-line behaviour, built as a\n *        band with no exit line.\n *        New defaults: mask centred while the block is on screen, flying out on a\n *        45° diagonal to the top right as it leaves. Note that X is a percent of\n *        the component's width and Y a percent of its height, so equal numbers\n *        are only a true 45° on a square block; 100 / -160 is 45° on an 800x500.\n * 1.5.0  Fixed the hard jumping between poses. The playhead was being thrown far\n *        outside its own timeline — a 1200ms animation reporting currentTime of\n *        -13116ms and +15900ms — which reads as snapping between states rather\n *        than animating.\n *        Cause: the direction flip called play() and then, once both animations\n *        reported ready, forced them onto a shared startTime from inside a\n *        promise. That promise resolves later, and on any quick scroll the state\n *        has already changed by then, so it wrote a start time onto an animation\n *        that had since been paused and re-seeded. Setting startTime on a paused\n *        animation clears its hold time and recomputes currentTime from the\n *        wall clock, producing exactly those impossible values. The lock added in\n *        1.3.0 to cure the desync was itself corrupting the playhead.\n *        Fix: seed both animations atomically instead of patching them after the\n *        fact. An animation with a startTime and a playbackRate is already\n *        running, so there is no play() to await and no late callback to race.\n *        currentTime = (now - startTime) * rate, so startTime = now - t / rate\n *        places the playhead exactly where we want it in both directions. Both\n *        animations get the identical value in the same tick, which locks them\n *        together far more strongly than the promise ever did.\n * 1.4.0  Start/End positions no longer go through a measured pixel conversion.\n *        Percentages in a CSS translate resolve against the element's own border\n *        box, and the masked layer is inset:0, so its box is the component's box.\n *        translate3d(110%, -100%, 0) is therefore already \"110% of component\n *        width, -100% of its height\", computed by the browser. The old code\n *        measured the box with a ResizeObserver and did that arithmetic itself,\n *        which was the one place the Framer canvas and a real browser could\n *        disagree — a stale or defaulted measurement puts the mask somewhere\n *        else entirely while the canvas looks right. mask-position now stays at\n *        dead centre and the transform carries both poses. Nothing to go stale,\n *        and the composition survives every breakpoint without being re-tuned.\n *        (The measured box is still used for mask-size, where whole pixels are\n *        what keep Safari's edge seam away.)\n *        Video no longer decodes until its block is within 400px of the viewport,\n *        and stops the moment it leaves — with three blocks on a page that is the\n *        difference between one video decoding and three. preload starts at\n *        metadata and is raised to auto on approach.\n *        Debug now renders on the canvas too, and prints the resolved start, end\n *        and resting poses, so canvas and browser can be compared value by value.\n * 1.3.0  Motion Engine, defaulting to Transform. mask-position is a PAINT\n *        property: animating it re-rasterises the entire masked area every\n *        frame, so two 1920x1080 videos masked at 800px on a 2x display drop the\n *        page to about 3fps. Nothing about that is fixable while the animated\n *        property is mask-position.\n *        The Transform engine pins the mask at its end position and translates\n *        the masked layer instead, with the content inside translated by the\n *        exact inverse so it appears to hold still. Only transform and opacity\n *        animate, both of which the compositor handles without touching the\n *        video.\n *        This is the architecture rejected in 1.0.0 because two inverse\n *        animations drifted apart on a fast direction flip. That drift came from\n *        updatePlaybackRate, which re-anchors each animation's start time\n *        independently. They are now driven as a locked pair: paused together,\n *        given the same currentTime, assigned playbackRate directly, played\n *        together, then forced onto one shared startTime. See usePairedAnimation.\n *        Debug gained an fps counter so the two engines can be compared with a\n *        number rather than an impression.\n * 1.2.0  Above-the-fold blocks now play on load instead of appearing finished.\n *        A scroll trigger can only fire on a crossing, so a block already on\n *        screen when the page opens has nothing left to cross — it resolved\n *        straight to its end pose and sat there, unable to reverse because\n *        reversing needs you to scroll up past a line you are already above.\n *        Now, if the block is past its trigger on the very first reading AND the\n *        page has not been scrolled at all, that is a fresh view of something\n *        above the fold, so it plays forward from the start pose. A page opened\n *        deep-linked or restored mid-scroll still snaps, which is correct: you\n *        should not animate something the visitor has already scrolled past.\n * 1.1.0  Trigger Point replaces the two raw percentages. Picking a moment out of\n *        a named list (\"Half visible\", \"Fully visible\", \"Centred on screen\") is\n *        something you can reason about; guessing two interacting percentages is\n *        not, and it made \"Viewport Line 0%\" — which fires only once the block\n *        has scrolled off the top — an easy place to land by accident.\n *        Viewport Line, Anchor and Line Offset still exist and still work; they\n *        only appear when Trigger Point is set to Custom.\n *        NOTE: existing instances adopt the default preset (Half visible). If you\n *        had hand-tuned percentages, switch Trigger Point to Custom to get them\n *        back — the values are still stored.\n *        Debug now prints the resolved anchor and line.\n * 1.0.2  Fixed: animated correctly in Framer's preview but sat static in Safari\n *        and Chrome. The component decided \"am I in the editor?\" from\n *        useIsStaticRenderer(), which is true during the static render that\n *        produces a published page's initial HTML. If it stays true after\n *        hydration the component believes it is still on the canvas for the\n *        lifetime of the page, which disables the animation and pins the mask to\n *        whatever Canvas View is set to. Editor detection is now: before mount,\n *        trust the static flag; after mount, trust RenderTarget alone, which\n *        reports `canvas` only in the actual editor.\n *        Added a Debug toggle that prints the component's live state over the\n *        media, so a disagreement like this can be read rather than guessed.\n * 1.0.1  Fixed: the scroll trigger never fired at normal scrolling speed, so the\n *        mask sat at its start pose and looked static.\n *        1.0.0 squeezed the observer's root down to a 1px band sitting on the\n *        trigger line. IntersectionObserver only reports a *change* of state, and\n *        a page scrolling at any normal speed steps the sentinel clean over a 1px\n *        band between two frames — it is never observed inside it, so no callback\n *        ever arrives. The root is now the half-plane above the line, which cannot\n *        be stepped over, and `isIntersecting` answers the question directly.\n *        The line is also now a rootMargin percentage rather than a number\n *        computed from window.innerHeight. That fixes it inside Framer's preview\n *        iframe, where the observer's implicit root is the *top-level* viewport\n *        while innerHeight reports the iframe's, so the old maths was measuring\n *        one box and positioning against another. Line Offset now shifts the\n *        sentinel instead of the line, which is equivalent and unit-safe.\n * 1.0.0  Rewrite of ArrowVideoMask 1.1 against the Video Mask Bench results.\n *        - Removed every -webkit-mask-* property. The prefixed longhand is what\n *          broke Chrome: it refuses to animate it and video playback drops to a\n *          quarter of baseline. Safari 26 needs no prefix.\n *        - One animation on one element carrying mask-position and opacity.\n *          No counter-transform, so the fast-scroll desync glitch cannot occur.\n *        - Trigger is one rule instead of six modes: end state once the anchor\n *          point on the component crosses a line in the viewport. Implemented\n *          with a 1px sentinel and an IntersectionObserver, no scroll listeners.\n *        - One duration for the whole component. Two timings was why 1.3s\n *          appeared to behave like 0.4s.\n *        - Mask sizes and offsets rounded to whole pixels, mask-size never auto.\n *          This is the fix for the hairline seam under the shape in Safari.\n *        - Playback starts on canplaythrough, not loadeddata.\n *\n * AUTHORING NOTES\n * SVG: leave 2-3% padding inside the viewBox so the shape never touches the edge.\n *      A shape flush to the edge antialiases into a partial-alpha row, and partial\n *      alpha shows partial video. Opaque black artwork, transparent background.\n * MP4: encode with -movflags +faststart. Without the moov atom at the front of the\n *      file Safari stalls on first play no matter what preload says.\n *\n * COORDINATES\n * 0,0 centres the mask. Positive X moves right, positive Y moves down. All XY\n * values are a percentage of the component's own width and height, so the\n * composition survives responsive breakpoints. Mask Width is a percentage of\n * component width; the SVG's own proportions set the height.\n *\n * CANVAS\n * The editor renders a still video frame and one state at a time. Canvas View\n * switches between Start, End and Media. Motion only runs in Preview and on the\n * published site.\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget,useIsStaticRenderer}from\"framer\";const EASINGS={linear:\"linear\",easeIn:\"cubic-bezier(0.42, 0, 1, 1)\",easeIn2:\"cubic-bezier(0.32, 0, 0.67, 0)\",easeIn4:\"cubic-bezier(0.64, 0, 0.78, 0)\",easeOut:\"cubic-bezier(0, 0, 0.58, 1)\",easeOut2:\"cubic-bezier(0.33, 1, 0.68, 1)\",easeOut4:\"cubic-bezier(0.22, 1, 0.36, 1)\",easeInOut:\"cubic-bezier(0.42, 0, 0.58, 1)\",easeInOut2:\"cubic-bezier(0.65, 0, 0.35, 1)\",easeInOut4:\"cubic-bezier(0.83, 0, 0.17, 1)\"};const EASING_OPTIONS=[\"linear\",\"easeIn\",\"easeIn2\",\"easeIn4\",\"easeOut\",\"easeOut2\",\"easeOut4\",\"easeInOut\",\"easeInOut2\",\"easeInOut4\"];const EASING_TITLES=[\"Linear\",\"Ease In\",\"Ease In 2\\xd7\",\"Ease In 4\\xd7\",\"Ease Out\",\"Ease Out 2\\xd7\",\"Ease Out 4\\xd7\",\"Ease In Out\",\"Ease In Out 2\\xd7\",\"Ease In Out 4\\xd7\"];/* Bump this on every delivered build. It is the first line of the Debug readout,\n   which makes \"is the published page running the new code?\" a one-second check\n   instead of an argument. */const BUILD_NAME=\"CRG Vector Mask 1.0 (b193)\";/**\n * One unit for both axes, so equal numbers are equal pixels and a diagonal is a\n * true diagonal. The unit is the component's HEIGHT.\n *\n * `cqh` lets the browser resolve that against the component's own box with no\n * measurement of ours involved, and — benched — a running animation re-resolves\n * to the new pixels when the box is resized WITHOUT the animation being rebuilt.\n * A pixel value baked into a keyframe cannot do that; it would need a teardown\n * and restart on every frame of a window drag.\n *\n * Probed once per page rather than assumed: a unit that parses in CSS does not\n * have to resolve inside a Web Animations keyframe, and that is exactly the kind\n * of gap that has cost days on this component before. Anything unexpected —\n * no support, no DOMMatrix, a throw — reports false and the caller uses pixels.\n */let CQH_CACHE=null;function cqhResolves(){if(CQH_CACHE!==null)return CQH_CACHE;CQH_CACHE=false;try{if(typeof document===\"undefined\"||!document.body)return false;if(typeof CSS===\"undefined\"||!CSS.supports(\"transform\",\"translate3d(10cqh, 10cqh, 0px)\"))return false;const host=document.createElement(\"div\");host.style.cssText=\"position:fixed;left:-9999px;top:0;width:100px;height:400px;\"+\"container-type:size;pointer-events:none;opacity:0\";const probe=document.createElement(\"div\");host.appendChild(probe);document.body.appendChild(host);const a=probe.animate([{transform:\"translate3d(0cqh, 0px, 0px)\"},{transform:\"translate3d(100cqh, 0px, 0px)\"}],{duration:1e3,fill:\"both\"});a.pause();a.currentTime=1e3;const m=new DOMMatrixReadOnly(getComputedStyle(probe).transform);CQH_CACHE=Math.abs(m.m41-400)<1;a.cancel();host.remove();}catch(e){CQH_CACHE=false;}return CQH_CACHE;}const clamp01=n=>Math.max(0,Math.min(1,n));/* b186, ported from CRG Arrow Motion: hands a value over after a delay, and\n   cancels if it changes first — so a fast reverse discards a pending change\n   rather than firing it late. It holds the ZONE READING, not the resulting pose,\n   so the leg and the target always come from one consistent reading. */function useDelayed(value,ms){const[held,setHeld]=React.useState(value);React.useEffect(()=>{if(ms<=0){setHeld(value);return;}const id=window.setTimeout(()=>setHeld(value),ms);return()=>clearTimeout(id);},[value,ms]);return ms<=0?value:held;}function easingCSS(easing){return EASINGS[easing]||EASINGS.easeInOut;}/* Unprefixed mask support.\n   b189: evaluated LAZILY, not at module scope. A module-level const runs once,\n   when the module is first imported — and if that first evaluation happens\n   anywhere without a DOM (a static/server render pass), `CSS` is undefined, the\n   const is baked to false for the life of that module instance, and every mask\n   silently never applies. Framer's preview never hits that path, which is\n   exactly the shape of \"masked in preview, unmasked on the published site\".\n   A function called from inside the component runs in the browser, every time. */let MASK_CACHE=null;function maskSupported(){if(MASK_CACHE!==null)return MASK_CACHE;if(typeof CSS===\"undefined\"||typeof CSS.supports!==\"function\"){return true;/* don't cache a verdict reached without a DOM */}MASK_CACHE=CSS.supports(\"mask-image\",\"url(a.svg)\")||CSS.supports(\"-webkit-mask-image\",\"url(a.svg)\");return MASK_CACHE;}/* Loads the SVG once to learn its intrinsic aspect ratio, so mask-size can be\n   two whole pixel values instead of \"W% auto\". The fractional height that \"auto\"\n   produces is what puts a hairline of video under the shape in Safari. */function useMaskAsset(src){const[state,setState]=React.useState({status:\"empty\",aspect:1});React.useEffect(()=>{if(!src){setState({status:\"empty\",aspect:1});return;}let dead=false;setState(s=>({status:\"loading\",aspect:s.aspect}));const img=new Image;img.onload=()=>{if(dead)return;const a=img.naturalWidth>0&&img.naturalHeight>0?img.naturalWidth/img.naturalHeight:1;setState({status:\"ready\",aspect:a});};img.onerror=()=>{if(!dead)setState({status:\"error\",aspect:1});};img.src=src;return()=>{dead=true;img.onload=null;img.onerror=null;};},[src]);return state;}/**\n * \"Is there actually a frame on screen?\" — b188.\n *\n * NOT `canplaythrough`. That event requires the UA to *estimate* it can play the\n * whole file without stalling, and there are ordinary conditions where it never\n * arrives at all: Safari has an open bug where it never fires (Apple Developer\n * Forums 739368), `preload=\"metadata\"` stops the fetch before it can, a full\n * media cache suspends the load, and an element that was already ready before\n * the listener attached has missed it — events are not replayed. b187 gated\n * playback on it, which is why the video went blank after a Framer page change\n * in Safari and a hard refresh fixed it.\n *\n * A <video> with no decoded frame is not black, it is TRANSPARENT — the spec\n * says it \"represents its poster frame, if any, or else transparent black\"\n * (whatwg/html#9279) — which is exactly the reported \"just my white page\n * background, no black\".\n *\n * `requestVideoFrameCallback` fires when a frame is handed to the compositor,\n * which is the precise condition for \"visible\". Baseline since Oct 2024.\n * Fallback is readyState >= HAVE_CURRENT_DATA, and readyState is ALSO read\n * synchronously on mount so a cached video never waits for a past event.\n */function useVideoReady(ref,src,disabled){const[ready,setReady]=React.useState(false);React.useEffect(()=>{setReady(false);if(!src||disabled)return;const v=ref.current;if(!v)return;let dead=false;let handle=0;const mark=()=>{if(!dead)setReady(true);};/* Synchronous check first: covers the cached / already-decoded case that\n           no event will tell us about. */if(v.readyState>=2)mark();const onData=()=>{if(v.readyState>=2)mark();};v.addEventListener(\"loadeddata\",onData);v.addEventListener(\"canplay\",onData);const anyV=v;if(typeof anyV.requestVideoFrameCallback===\"function\"){handle=anyV.requestVideoFrameCallback(mark);}return()=>{dead=true;v.removeEventListener(\"loadeddata\",onData);v.removeEventListener(\"canplay\",onData);if(handle&&typeof anyV.cancelVideoFrameCallback===\"function\"){anyV.cancelVideoFrameCallback(handle);}};},[ref,src,disabled]);return ready;}/* Poster readiness. Same Image-preload shape as the mask probe. */function useImageReady(src){const[ready,setReady]=React.useState(false);React.useEffect(()=>{setReady(false);if(!src)return;let dead=false;const img=new Image;img.onload=()=>{if(!dead)setReady(true);};img.onerror=null;img.src=src;return()=>{dead=true;img.onload=null;};},[src]);return ready;}function useSize(ref){const[size,setSize]=React.useState({width:800,height:500});React.useEffect(()=>{const node=ref.current;if(!node)return;const read=()=>{const width=node.clientWidth;const height=node.clientHeight;if(!width||!height)return;setSize(old=>old.width===width&&old.height===height?old:{width,height});};read();const ro=new ResizeObserver(read);ro.observe(node);return()=>ro.disconnect();},[ref]);return size;}function useReducedMotion(){const[reduced,setReduced]=React.useState(false);React.useEffect(()=>{const q=window.matchMedia(\"(prefers-reduced-motion: reduce)\");const update=()=>setReduced(q.matches);update();q.addEventListener(\"change\",update);return()=>q.removeEventListener(\"change\",update);},[]);return reduced;}/**\n * One rule: end state once the anchor point on the component has crossed a line\n * in the viewport.\n *\n * A 1px sentinel sits at the anchor position inside the component (shifted by\n * Line Offset, which is equivalent to moving the line and avoids mixing units in\n * a rootMargin). The observer's root is the whole region ABOVE the line: the top\n * margin is enormous, the bottom margin pulls the root's lower edge up to the\n * line as a percentage of whatever the real root turns out to be.\n *\n * Two things matter about that shape. A half-plane cannot be stepped over — the\n * sentinel is either above the line or below it at every frame, so the crossing\n * always produces a callback no matter how fast the page scrolls. And because the\n * line is a percentage, the browser resolves it against the actual root box, so\n * this works unchanged inside Framer's preview iframe and needs no resize handler.\n *\n * `isIntersecting` is then literally the answer, including on first paint when the\n * page loads already scrolled past the component.\n */const LOOKBACK_PX=1e5;/**\n * Three zones, not two states.\n *\n *   zone 0  the anchor is below the enter line — the block has not arrived\n *   zone 1  the anchor is between the two lines — the block is here\n *   zone 2  the anchor is above the exit line — the block has left the top\n *\n * Each line is watched by its own half-plane observer: root runs from far above\n * down to that line, so `isIntersecting` means \"the anchor is above this line\".\n * A half-plane cannot be stepped over at any scroll speed, and expressing the\n * line as a percentage lets the browser resolve it against the real root, which\n * is what makes this work unchanged inside Framer's preview iframe.\n *\n * A null line means that boundary does not exist: no enter line and the block\n * counts as arrived from infinitely far below (visible by default, one exit); no\n * exit line and it never leaves (plays in once and stays).\n *//**\n * THREE boundaries, each expressed as a percentage OF THE COMPONENT — b190.\n *\n * b189 had one anchor and two screen lines, which made three things impossible:\n *\n *   1. A single OUT line fired BOTH the exit (scrolling down) and the return to\n *      RESTING (scrolling up). Same line, same geometry, so necessarily the same\n *      moment — measured at 75% visible in both directions. No setting could\n *      separate them.\n *   2. One shared anchor coupled the two boundaries. Anchor 0 bought an early\n *      reveal but forced the exit to fire while the block was still 100%\n *      visible; anchor 100 did the reverse. Early reveal AND late exit was not\n *      reachable at any combination.\n *   3. The numbers were a screen line plus an anchor, so \"when is it 20% in\n *      view?\" needed arithmetic rather than a number.\n *\n * The fix is to move the setting INTO THE COMPONENT and fix the screen line.\n * Each boundary gets its own 1px sentinel at its own fraction of the component,\n * and crosses a FIXED window edge:\n *\n *   Reveal At  R    sentinel at R% from the component's top, crosses the BOTTOM\n *                   edge. It gets there exactly when the top R% has entered.\n *   Exit At    E    sentinel at (100 - E)% from the top, crosses the TOP edge.\n *                   It gets there exactly when E% is still in view.\n *   Return At  Z    sentinel at (100 - Z)% from the top, crosses the TOP edge.\n *\n * That is exact for any component height with NO measurement — rule 5 holds,\n * and it is why it survives the Framer preview iframe unchanged. The browser\n * resolves everything: the sentinel's position is a percentage of its parent,\n * and the root margin is 0 or -100%.\n *\n * Hysteresis is what makes Exit and Return independent: which boundary governs\n * depends on the zone we are already in. Leaving RESTING consults Exit At;\n * coming back to it consults Return At.\n */function useZoneState(revealRef,exitRef,returnRef,trigger,disabled){const[state,setState]=React.useState({zone:1,initial:true});const first=React.useRef(true);const zoneRef=React.useRef(1);const above=React.useRef({reveal:false,exit:false,ret:false});React.useEffect(()=>{if(disabled||trigger!==\"scroll\")return;const rn=revealRef.current;const xn=exitRef.current;const zn=returnRef.current;if(!rn||!xn||!zn)return;const update=()=>{const a=above.current;const zone=zoneRef.current===2?a.ret?2:a.reveal?1:0:a.exit?2:a.reveal?1:0;zoneRef.current=zone;const wasFirst=first.current;first.current=false;/* Already arrived on the first reading of a page nobody has\n               scrolled: a fresh view of something above the fold, with no\n               crossing left to make, so rest rather than replay. */const topOfPage=(window.scrollY||document.documentElement.scrollTop||0)<=0;const initial=wasFirst&&!(zone>0&&topOfPage);setState(prev=>prev.zone===zone&&prev.initial===initial?prev:{zone,initial});};/* Framer's preview runs the site in an IFRAME, where an\n           IntersectionObserver with root:null resolves against the TOP-LEVEL\n           viewport — the wrong box before any margin applies. That is\n           spec-defined, so there it reads positions on scroll instead. This\n           branch never runs in a real browser. */let framed=false;try{framed=window.self!==window.top;}catch(e){framed=true;}if(framed){const read=()=>{const vh=window.innerHeight||1;above.current.reveal=rn.getBoundingClientRect().top<=vh;above.current.exit=xn.getBoundingClientRect().top<=0;above.current.ret=zn.getBoundingClientRect().top<=0;update();};let frame=0;const schedule=()=>{if(frame)return;frame=requestAnimationFrame(()=>{frame=0;read();});};read();window.addEventListener(\"scroll\",schedule,{passive:true,capture:true});window.addEventListener(\"resize\",schedule,{passive:true});return()=>{cancelAnimationFrame(frame);window.removeEventListener(\"scroll\",schedule,true);window.removeEventListener(\"resize\",schedule);};}const observers=[];/* Every observer must report once before a zone is computed: the first\n           zone is the one that SNAPS rather than animates, and deriving it from\n           half-known state is how a block lands in the wrong pose on load. */const pending={reveal:true,exit:true,ret:true};const watch=(node,key,margin)=>{const io=new IntersectionObserver(entries=>{const e=entries[entries.length-1];if(!e)return;above.current[key]=e.isIntersecting;pending[key]=false;if(!pending.reveal&&!pending.exit&&!pending.ret)update();},{rootMargin:margin,threshold:0});io.observe(node);observers.push(io);};/* A half-plane cannot be stepped over at any scroll speed. The line is\n           FIXED per boundary — the user's number moves the sentinel instead. */const TOP_EDGE=`${LOOKBACK_PX}px 0px -100% 0px`;const BOTTOM_EDGE=`${LOOKBACK_PX}px 0px 0px 0px`;watch(rn,\"reveal\",BOTTOM_EDGE);watch(xn,\"exit\",TOP_EDGE);watch(zn,\"ret\",TOP_EDGE);return()=>observers.forEach(o=>o.disconnect());},[revealRef,exitRef,returnRef,trigger,disabled]);return state;}/**\n * One timeline, one or two targets, kept exactly in lockstep.\n *\n * Direction changes flip the playback rate rather than restarting, so an\n * interrupted reversal continues from the current playhead and replays the\n * easing curve backwards. That is the behaviour worth protecting, and the reason\n * this stays on the Web Animations API rather than CSS transitions.\n *\n * The transform engine needs two animations that must remain exact inverses of\n * each other, and the naive version of this drifts: updatePlaybackRate is\n * deliberately *seamless*, re-anchoring each animation's start time on its own to\n * preserve its current position, so two of them land on different start times and\n * the content visibly travels with the mask until they resettle.\n *\n * The fix is to never let them anchor themselves. Pause both, write the same\n * currentTime to both, assign playbackRate directly (synchronous, unlike\n * updatePlaybackRate), play both, then force a single shared startTime once both\n * are ready. After that they are the same deterministic function of time and\n * cannot diverge.\n */function usePairedAnimation(targets,durationSeconds,easing,end,instant,disabled,seed){const anims=React.useRef([]);const generation=React.useRef(0);const ms=Math.max(1,durationSeconds*1e3);const key=JSON.stringify([targets.map(t=>t.frames),ms,easing]);React.useEffect(()=>{if(disabled)return;const list=[];for(const t of targets){const node=t.ref.current;if(!node)continue;const a=node.animate(t.frames,{duration:ms,easing,fill:\"both\"});a.pause();/* Rebuilt because the leg changed: seed the playhead at the pose the\n               two legs share, so swapping which pair of poses is on the timeline\n               is invisible. */a.currentTime=clamp01(seed)*ms;list.push(a);}anims.current=list;return()=>{list.forEach(a=>a.cancel());anims.current=[];};// key carries every value inside every keyframe and the timing.\n},[key,disabled]);React.useEffect(()=>{const list=anims.current;if(!list.length)return;const t=Number(list[0].currentTime||0);const atTarget=end?t>=ms:t<=0;if(instant||durationSeconds<=0||atTarget){list.forEach(a=>{a.pause();a.currentTime=end?ms:0;});return;}const nextRate=end?1:-1;/* Seed every animation identically in one synchronous block, then let\n           the browser resolve the start times itself.\n\n           Writing startTime by hand is tempting because it is exact, but playing\n           in reverse works out to a start time 1.2s in the FUTURE — which is the\n           correct expression of a reversed animation, and which Chrome treats as\n           not-yet-begun, holding the first frame. Forward played, reverse sat\n           still. play() never produces a future start time.\n\n           Both animations are paused, given the same currentTime and the same\n           rate, then played in the same task, so the browser resolves both start\n           times in the same frame. */list.forEach(a=>{a.pause();a.currentTime=t;a.playbackRate=nextRate;a.play();});/* Belt and braces for the pair: one frame later, align any straggler.\n           Generation-guarded and running-only, so unlike the promise this\n           replaced it can never write onto an animation a newer scroll has\n           already paused and re-seeded — which is what threw the playhead to\n           -13116ms in 1.3.0. */const mine=++generation.current;const raf=list.length>1?requestAnimationFrame(()=>{if(generation.current!==mine)return;const lead=list[0];if(!lead||lead.playState!==\"running\")return;const st=lead.startTime;if(st==null)return;for(let i=1;i<list.length;i++){const other=list[i];if(other.playState===\"running\"&&other.startTime!==st){other.startTime=st;}}}):0;return()=>{if(raf)cancelAnimationFrame(raf);};},[key,end,instant,ms,durationSeconds,disabled]);return anims;}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicWidth 800\n * @framerIntrinsicHeight 500\n */export default function CRGVectorMask(props){const{mediaType=\"video\",video,image,mediaAlignX=\"center\",mediaAlignY=\"center\",mediaScale=100,mediaOffsetX=0,mediaOffsetY=0,maskSVG,maskWidth=80,placeholderColor=\"#0C1638\",poster,mediaFade=.4,alignX=\"center\",alignY=\"center\",enterX=-100,enterY=160,startX=100,startY=-160,endX=0,endY=0,startOpacity=100,endOpacity=100,leaveOpacity=100,duration=1.2,easing=\"easeInOut\",outDuration=1.2,outEasing=\"easeInOut\",trigger=\"scroll\",revealAt=15,exitAt=25,returnAt=20,delay=0,canvasView=\"end\",engine=\"transform\",debug=false,style}=props;const root=React.useRef(null);const masked=React.useRef(null);const counter=React.useRef(null);const revealMark=React.useRef(null);const exitMark=React.useRef(null);const returnMark=React.useRef(null);const videoEl=React.useRef(null);const[hovered,setHovered]=React.useState(false);const[focused,setFocused]=React.useState(false);const[clicked,setClicked]=React.useState(false);const[loaded,setLoaded]=React.useState(false);const[videoFailed,setVideoFailed]=React.useState(false);/* Editor detection. useIsStaticRenderer() is true during the static render\n       that generates a published page's initial HTML, so it cannot be trusted\n       once the page is alive. Before mount it is the only signal available;\n       after mount RenderTarget is authoritative and reports `canvas` only in the\n       real editor. */const isStatic=useIsStaticRenderer();const[hydrated,setHydrated]=React.useState(false);React.useEffect(()=>setHydrated(true),[]);const target=RenderTarget.current();const canvas=target===RenderTarget.canvas||target===RenderTarget.thumbnail||!hydrated&&isStatic;const reduced=useReducedMotion();const size=useSize(root);const asset=useMaskAsset(maskSVG);/* Settled once, before first paint, so the unit never changes under a running\n       animation. */const[cqh]=React.useState(cqhResolves);const[maskOK]=React.useState(maskSupported);const videoSrc=mediaType===\"video\"?video:undefined;const imageSrc=mediaType===\"image\"?image:undefined;/* Declared AFTER videoSrc on purpose — a const is in its temporal dead zone\n       until its declaration runs, so reading it above throws at runtime while\n       type-checking clean. That exact mistake shipped twice on this component. */const posterReady=useImageReady(poster);const videoReady=useVideoReady(videoEl,videoSrc,canvas||reduced);React.useEffect(()=>{const id=requestAnimationFrame(()=>setLoaded(true));return()=>cancelAnimationFrame(id);},[]);React.useEffect(()=>setVideoFailed(false),[videoSrc]);/* b186: three plain numbers, identical to CRG Arrow Motion. No presets, no\n       offsets, no indirection — the number in the panel IS the line on screen.\n       100 is the bottom of the window, 0 the top, which is the direction things\n       travel as you scroll down, so a LOWER number always means LATER.\n\n       OUT must sit at or above IN or the zones collapse. Rather than let that\n       produce silent nonsense it is clamped, and Debug says so. */const pctIn=n=>Math.max(0,Math.min(100,n));const revealPct=pctIn(revealAt);const exitPct=pctIn(exitAt);/* b193: Return At can never sit BELOW Exit At. This is not a preference, it\n       is what makes the state stable.\n\n       The zone is held by a level condition: once past Exit At we are in zone 2,\n       and we stay there while the return marker is still above the top of the\n       window. If Return At is lower than Exit At, then at the instant of exit\n       that marker has NOT yet crossed — so the very next time anything\n       re-evaluates the zone (the return observer reporting, a resize, a scroll\n       jitter of one pixel re-crossing the exit line) it concludes \"not past the\n       return line\" and drops straight back to RESTING. The block cancels its own\n       exit and then fires it again further down.\n\n       That is the stutter: at Exit 45 / Return 20, held at 32% visible, the\n       component reported RESTING when it should have reported LEAVE. At\n       Return >= Exit it reported LEAVE every time. It also explains why an exit\n       set to 25% appeared to happen nearer 10% — it fired, was cancelled, and\n       fired again later.\n\n       Clamping costs nothing real: returning at the same threshold it left at is\n       already the soonest a return can meaningfully happen. */const returnPct=Math.max(pctIn(returnAt),exitPct);const returnClamped=pctIn(returnAt)<exitPct;/* Reveal and Exit measure from opposite ends, so their sentinels collide\n       once they sum past 100 — the block would try to leave before it has\n       arrived. Flagged rather than silently clamped. */const boundariesCross=revealPct+exitPct>100;const scroll=useZoneState(revealMark,exitMark,returnMark,trigger,canvas);const instant=reduced||trigger===\"always\"||trigger===\"scroll\"&&scroll.initial;/* b186: Delay holds the ZONE READING, not the resulting pose, so the leg and\n       the target always come from one consistent reading. Never delays the first\n       snap — a block above the fold should be in place on load, not a beat late. */const hold=instant?0:Math.max(0,delay);const zone=useDelayed(scroll.zone,hold);/* Three poses, but never three keyframes. The timeline only ever holds ONE\n       leg of the journey — arrive<->resting, or resting<->leave — so the target\n       is always a natural end of the animation, exactly as in 1.6.2. Nothing is\n       ever parked mid-timeline, which is the one structural difference the bench\n       could not test in isolation and the only candidate left.\n\n       The leg only switches at the far ends, and both legs meet at the resting\n       pose, so swapping the keyframes under the playhead is invisible. */const[leg,setLeg]=React.useState(0);React.useEffect(()=>{if(canvas||trigger!==\"scroll\")return;if(zone===0)setLeg(0);else if(zone===2)setLeg(1);},[zone,canvas,trigger]);const activeLeg=canvas?canvasView===\"leave\"?1:0:trigger===\"scroll\"?leg:0;const end=canvas?canvasView!==\"start\":trigger===\"always\"?true:trigger===\"load\"?loaded:trigger===\"hover\"?hovered||focused:trigger===\"click\"?clicked:activeLeg===0?zone>=1:zone>=2;/* ---- geometry: whole pixels everywhere, which is the seam fix ---- *//* b187: ONE ruler. Size is a percent of the component's HEIGHT, the same\n       reference the poses use. b186 sized against WIDTH while moving against\n       HEIGHT — invisible at a fixed window shape, but the two diverge the moment\n       the aspect ratio changes, so a stack aligned at one size drifts at\n       another. */const maskW=Math.max(1,Math.round(size.height*maskWidth/100));/* b188: the height comes from `auto`, which makes the browser derive it from\n       the SVG's own proportions. Benched: correct even for a viewBox-only export\n       with no width/height attributes, which is where naturalWidth/naturalHeight\n       are unreliable (Chromium 41357911). Requires preserveAspectRatio left at\n       its default and mask-repeat: no-repeat, both of which hold here. */const maskH=Math.max(1,Math.round(maskW/(asset.aspect||1)));/* b189: back to an EXPLICIT height whenever the probe has given us a real\n       aspect ratio, which is always by the time anything is visible — the media\n       is held hidden until the mask image has loaded, and that is the same load\n       that produces the ratio. `auto` is kept only for the case where no ratio\n       could be read at all.\n       b188 used `auto` unconditionally. It is correct per spec and benched\n       correct in Chromium, BUT `auto` falls back to the MASK POSITIONING AREA\n       when the SVG carries no intrinsic ratio — i.e. the mask silently grows to\n       the full height of the component and stops looking like a mask at all.\n       An explicit height cannot do that, and it is what b187 shipped and what\n       was confirmed working in both browsers. */const maskSizeCSS=asset.status===\"ready\"&&asset.aspect>0?`${maskW}px ${maskH}px`:`${maskW}px auto`;/* The anchor the poses are measured from. Centre keeps every existing value\n       meaning exactly what it meant before; an edge anchor is what lets several\n       stacked components stay aligned through a resize, since a percentage of a\n       full-width box moves with the window and an edge does not. */const ax=alignX===\"left\"?0:alignX===\"right\"?100:50;const ay=alignY===\"top\"?0:alignY===\"bottom\"?100:50;/* b185: both axes measured against the component's HEIGHT, so equal numbers\n       are equal pixels. mask-position takes no container units, so this engine\n       keeps doing the arithmetic itself — same unit, same result. */const unitPx=n=>Math.round(size.height*n/100);const pos=(x,y)=>`calc(${ax}% + ${unitPx(x)}px) calc(${ay}% + ${unitPx(y)}px)`;/* b188: the mask is applied as soon as one is specified. It no longer waits\n       for the probe, because waiting was what painted the media UNMASKED in the\n       meantime. What waits now is the layer's own opacity — see maskHolding. */const showMask=maskOK&&Boolean(maskSVG)&&!(canvas&&canvasView===\"media\");/* NEVER UNMASKED. Two separate gaps produce a flash of raw video and both are\n       closed here:\n         1. ours    - b187 rendered the media while the probe was in flight.\n         2. theirs  - measured in Chromium: while a mask-image is still\n                      downloading the element paints UNMASKED and visible. (The\n                      spec implies it should be hidden; Chromium disagrees, so\n                      this cannot be left to the browser.) A mask that 404s is\n                      the opposite - permanently invisible, no console error.\n       So the whole masked layer is held at opacity 0 until the mask image is\n       confirmed loaded. On failure it stays hidden, which is the behaviour Val\n       asked for: nothing is ever shown unmasked. Debug names the state so a\n       blank hero is diagnosable rather than mysterious. */const maskHolding=showMask&&!canvas&&asset.status!==\"ready\";const o0=clamp01(startOpacity/100);const o1=clamp01(endOpacity/100);const o2=clamp01(leaveOpacity/100);/* Transform engine: the mask sits permanently at its END position and the\n       whole masked layer is translated from the start offset back to zero, while\n       the content inside is translated by the exact inverse so it appears to hold\n       still. Only transform and opacity animate, both of which the compositor\n       handles without repainting the video. *//* b185: ONE unit for both axes — the component's height — so equal numbers\n       are equal pixels and 100 / -100 is a true 45°. A plain CSS percentage\n       cannot express this: percentages in a translate resolve per-axis against\n       the element's own box, which is precisely the two-different-rulers problem.\n       `cqh` resolves against the container's height on BOTH axes, and the browser\n       still does the resolving — no measurement of ours, and a running animation\n       re-resolves on resize without being rebuilt.\n       The pixel branch is the probe's fallback only; it is exact too, it just\n       costs one animation rebuild per resize. */const tShift=(x,y)=>cqh?`translate3d(${x}cqh, ${y}cqh, 0px)`:`translate3d(${unitPx(x)}px, ${unitPx(y)}px, 0px)`;/* Three poses along one path: arrive (bottom-left by default), rest\n       (centred), leave (top-right). Scrolling down walks them in order, so the\n       mask travels with the block instead of repeating one motion twice. */const poses=[{shift:tShift(enterX,enterY),back:tShift(-enterX,-enterY),pos:pos(enterX,enterY),opacity:o0},{shift:tShift(endX,endY),back:tShift(-endX,-endY),pos:pos(endX,endY),opacity:o1},{shift:tShift(startX,startY),back:tShift(-startX,-startY),pos:pos(startX,startY),opacity:o2}];const useTransform=engine===\"transform\";/* The active leg: [arrive, resting] or [resting, leave]. Both legs share the\n       resting pose, so `seed` places a rebuilt timeline exactly on that shared\n       boundary — leg 0 ends there, leg 1 starts there. */const legPoses=activeLeg===0?[poses[0],poses[1]]:[poses[1],poses[2]];const seed=activeLeg===0?1:0;/* Before the animation attaches, show the resting pose in preview so nothing\n       flashes; on canvas, show whichever pose Canvas View selects. */const at=canvas?canvasView===\"start\"?poses[0]:canvasView===\"leave\"?poses[2]:poses[1]:poses[1];const restPos=useTransform?`${ax}% ${ay}%`:at.pos;const restOpacity=at.opacity;const restShift=useTransform?at.shift:\"none\";const restUnshift=useTransform?at.back:\"none\";const targets=useTransform?[{ref:masked,frames:[{transform:legPoses[0].shift,opacity:legPoses[0].opacity},{transform:legPoses[1].shift,opacity:legPoses[1].opacity}]},{ref:counter,frames:[{transform:legPoses[0].back},{transform:legPoses[1].back}]}]:[{ref:masked,frames:[{maskPosition:legPoses[0].pos,opacity:legPoses[0].opacity},{maskPosition:legPoses[1].pos,opacity:legPoses[1].opacity}]}];/* Duration and easing belong to a journey, not to a pose, and there are two\n       journeys: in-start <-> resting, and resting <-> out-end. Each leg carries\n       its own pair, and a reversal replays that leg's own curve backwards. */const legDuration=activeLeg===0?duration:outDuration;const legEasing=easingCSS(activeLeg===0?easing:outEasing);const anim=usePairedAnimation(targets,legDuration,legEasing,end,instant,canvas||!showMask,seed);/* Debug readout. Re-renders every frame while on, which is fine because it\n       is off by default and never ships enabled. */const[,tick]=React.useReducer(n=>n+1,0);const fps=React.useRef(0);/* b186: the live visible percentage, ported from CRG Arrow Motion. The\n       fastest way to dial a trigger in is to read the number off rather than\n       guess at it. */const visible=React.useRef(0);React.useEffect(()=>{if(!debug||canvas)return;let id=0;let frames=0;let t0=performance.now();const loop=()=>{frames++;const now=performance.now();if(now-t0>=500){fps.current=Math.round(frames*1e3/(now-t0));frames=0;t0=now;}const el=root.current;if(el){const r=el.getBoundingClientRect();const vh=window.innerHeight||1;const shown=Math.max(0,Math.min(r.bottom,vh)-Math.max(r.top,0));visible.current=Math.round(shown/Math.max(1,Math.min(r.height,vh))*100);}tick();id=requestAnimationFrame(loop);};id=requestAnimationFrame(loop);return()=>cancelAnimationFrame(id);},[debug,canvas]);/* ---- video playback ----\n       b188: readiness is no longer an event this effect waits for. `videoReady`\n       (useVideoReady) decides VISIBILITY; this effect only decides PLAYBACK, and\n       it simply calls play() whenever the block is on screen. play() is the\n       non-destructive way to make a UA fetch more data and it is what iOS\n       requires; load() would reset readyState to HAVE_NOTHING and reintroduce\n       the transparent hole. preload is \"auto\" in the markup now rather than\n       being flipped later — flipping it is spec-legal but explicitly only a\n       hint, Chrome overrides it on cellular, and iOS ignores it outright. */React.useEffect(()=>{const v=videoEl.current;const host=root.current;if(!v||!host||!videoSrc||canvas||reduced){if(v)v.pause();return;}let inView=false;const tryPlay=()=>{if(!inView||document.hidden)return;v.muted=true;void v.play().catch(()=>{});};/* Still pauses off-screen: with several of these stacked that is the\n           difference between one video decoding and all of them. It no longer\n           gates the first fetch, so nothing depends on this firing. */const io=new IntersectionObserver(entries=>{inView=Boolean(entries[0]&&entries[0].isIntersecting);if(inView)tryPlay();else v.pause();},{rootMargin:\"400px 0px 400px 0px\"});const onVisibility=()=>{if(document.hidden)v.pause();else tryPlay();};const retry=()=>tryPlay();v.addEventListener(\"loadeddata\",retry);io.observe(host);document.addEventListener(\"visibilitychange\",onVisibility);return()=>{v.removeEventListener(\"loadeddata\",retry);io.disconnect();document.removeEventListener(\"visibilitychange\",onVisibility);v.pause();/* Chrome does not garbage-collect detached media elements\n               (facebook/react#15583) and iOS caps how many can exist at once. A\n               stack of these makes both bite, so release the resource. */try{v.removeAttribute(\"src\");v.load();}catch(e){}};},[videoSrc,canvas,reduced]);/* b192: the media is framed EXACTLY as the mask shape is, which is what\n       \"same as the mask\" actually means and what b191 got wrong.\n\n       The mask is sized from the component's HEIGHT, keeps its own aspect, and\n       is anchored to an edge. It does not stretch to fill the component. The\n       media now does the same:\n\n           height = Media Scale % of the component's height\n           width  = derived by the browser from the media's own aspect ratio\n           anchored by Media Align X/Y, nudged by Media Offset X/Y\n\n       b191 forced object-fit: cover so that the media could never leave part of\n       the box uncovered. That did prevent gaps — but it also meant Align X was\n       inert whenever cover happened to fill the width exactly (a square source\n       in a wide component), and more importantly it removed the control being\n       asked for. Not covering the whole component is now a DESIGN CHOICE: the\n       placeholder colour sits behind the media inside the mask, so uncovered\n       area reads as a deliberate solid, not as a hole.\n\n       To fill the component, raise Media Scale. A square source in a 1440x900\n       component fills it at 160% (900 * 1.6 = 1440 wide).\n\n       `width: auto` lets the BROWSER derive the width from the media's intrinsic\n       aspect ratio, so nothing here measures anything — the same principle that\n       keeps the rest of this component honest. */const alignPct=v=>v===\"left\"||v===\"top\"?0:v===\"right\"||v===\"bottom\"?100:50;const mediaAX=alignPct(mediaAlignX);const mediaAY=alignPct(mediaAlignY);const mediaH=Math.max(1,mediaScale);/* Offsets ride on the same ruler as everything else: a percent of the\n       component's height, via cqh, with the measured-pixel fallback. */const mediaNudge=cqh?`translate(${mediaOffsetX}cqh, ${mediaOffsetY}cqh)`:`translate(${unitPx(mediaOffsetX)}px, ${unitPx(mediaOffsetY)}px)`;const fadeCSS=`opacity ${Math.max(0,mediaFade)}s ease-out`;const mediaStyle={display:\"block\",position:\"absolute\",/* The anchor point of the media lands on the anchor point of the\n           component box — the same translate(-ax%, -ay%) trick the mask shape\n           and the arrow use, so all three agree by construction. */left:`${mediaAX}%`,top:`${mediaAY}%`,height:`${mediaH}%`,width:\"auto\",maxWidth:\"none\",objectFit:\"cover\",transform:`translate(${-mediaAX}%, ${-mediaAY}%) ${mediaNudge}`};const hasMedia=Boolean(videoSrc||imageSrc&&imageSrc.src);const interactive=trigger===\"click\"||trigger===\"hover\";const notice=videoFailed?\"Video could not load. Try an MP4 (H.264).\":asset.status===\"error\"?\"Mask SVG could not load — nothing is shown. Check the file.\":asset.status===\"loading\"?\"Loading mask…\":!maskOK&&maskSVG?\"This browser has no mask support. Showing unmasked media.\":\"\";return /*#__PURE__*/_jsxs(\"div\",{ref:root,\"data-vector-mask\":\"\",\"data-state\":activeLeg===0?end?\"resting\":\"arrive\":end?\"leave\":\"resting\",role:trigger===\"click\"?\"button\":undefined,\"aria-label\":interactive?\"Animate mask\":undefined,\"aria-pressed\":trigger===\"click\"?clicked:undefined,tabIndex:interactive&&!canvas?0:undefined,onMouseEnter:()=>setHovered(true),onMouseLeave:()=>setHovered(false),onFocus:()=>setFocused(true),onBlur:()=>setFocused(false),onClick:trigger===\"click\"?()=>setClicked(c=>!c):undefined,onKeyDown:trigger===\"click\"?e=>{if(e.key===\"Enter\"||e.key===\" \"){e.preventDefault();setClicked(c=>!c);}}:undefined,style:{position:\"relative\",width:800,height:500,backgroundColor:canvas?\"#f3f4f6\":\"transparent\",boxShadow:canvas?\"inset 0 0 0 1px rgba(90,100,120,.25)\":undefined,...style,overflow:\"hidden\",boxSizing:\"border-box\",/* b185: makes this box the reference `cqh` resolves against.\n                   Safe here because every child is absolutely positioned or\n                   100%-sized, so the component's height never came from its\n                   contents in the first place — size containment takes nothing\n                   away. Benched: it does not disturb getBoundingClientRect, so\n                   the triggers are untouched. */containerType:\"size\"},children:[[[\"reveal\",revealMark,revealPct],[\"exit\",exitMark,100-exitPct],[\"return\",returnMark,100-returnPct]].map(([name,ref,topPct])=>/*#__PURE__*/_jsx(\"div\",{ref:ref,\"data-mark\":name,\"aria-hidden\":\"true\",style:{position:\"absolute\",left:0,right:0,top:`${topPct}%`,height:1,pointerEvents:\"none\",opacity:0}},name)),/*#__PURE__*/_jsx(\"div\",{ref:masked,\"data-mask-layer\":\"\",style:{position:\"absolute\",inset:0,pointerEvents:\"none\",opacity:restOpacity,transform:restShift,willChange:useTransform?\"transform, opacity\":undefined,...showMask?{maskImage:`url(${JSON.stringify(maskSVG)})`,maskRepeat:\"no-repeat\",maskMode:\"alpha\",maskSize:maskSizeCSS,maskPosition:restPos}:null},children:/*#__PURE__*/_jsx(\"div\",{ref:counter,\"data-counter-layer\":\"\",style:{position:\"absolute\",inset:0,transform:restUnshift,willChange:useTransform?\"transform\":undefined},children:/*#__PURE__*/_jsxs(\"div\",{\"data-media-hold\":\"\",style:{position:\"absolute\",inset:0,opacity:maskHolding?0:1},children:[placeholderColor?/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",inset:0,backgroundColor:placeholderColor}}):null,poster?/*#__PURE__*/_jsx(\"img\",{src:poster,alt:\"\",\"aria-hidden\":\"true\",style:{...mediaStyle,opacity:canvas||posterReady?1:0,transition:fadeCSS}}):null,videoSrc?/*#__PURE__*/_jsx(\"video\",{ref:videoEl,src:videoSrc,muted:true,loop:true,playsInline:true,preload:\"auto\",\"aria-hidden\":\"true\",autoPlay:!canvas&&!reduced,onError:()=>setVideoFailed(true),onLoadedMetadata:()=>{const v=videoEl.current;if(!v)return;if((canvas||reduced)&&Number.isFinite(v.duration)&&v.duration>0){v.currentTime=Math.min(.1,v.duration/2);v.pause();}},style:{...mediaStyle,opacity:canvas||videoReady?1:0,transition:fadeCSS}}):imageSrc&&imageSrc.src?/*#__PURE__*/_jsx(\"img\",{src:imageSrc.src,srcSet:imageSrc.srcSet,alt:imageSrc.alt||\"\",style:{...mediaStyle}}):null]})})}),canvas&&!hasMedia&&/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",inset:0,display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",gap:12,color:\"#677080\",font:\"14px/1.5 Inter, sans-serif\",pointerEvents:\"none\"},children:[/*#__PURE__*/_jsxs(\"svg\",{width:\"44\",height:\"34\",viewBox:\"0 0 44 34\",fill:\"none\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"rect\",{x:\"1\",y:\"1\",width:\"42\",height:\"32\",rx:\"6\",stroke:\"currentColor\",strokeWidth:\"1.5\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M18 10L29 17L18 24V10Z\",fill:\"currentColor\"})]}),/*#__PURE__*/_jsxs(\"span\",{children:[\"Upload a \",mediaType===\"image\"?\"image\":\"video\",\" in Properties\"]})]}),canvas&&hasMedia&&notice&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:12,bottom:12,padding:\"8px 10px\",borderRadius:6,background:\"rgba(20,20,25,.8)\",color:\"white\",font:\"12px/1.4 sans-serif\",pointerEvents:\"none\"},children:notice}),debug&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:8,top:8,zIndex:10,padding:\"8px 10px\",borderRadius:4,background:\"rgba(8,12,14,.88)\",color:\"#9FE8F2\",font:\"11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace\",whiteSpace:\"pre\",pointerEvents:\"none\"},children:[BUILD_NAME,`renderTarget  ${String(target)}`,`isStatic      ${isStatic}   hydrated ${hydrated}`,`editorMode    ${canvas}`,`unit          ${cqh?\"cqh (native)\":\"px (probe fell back)\"}  1 unit = ${size.height}px on both axes`,`reducedMotion ${reduced}`,`trigger       ${trigger}`,`visible now   ${visible.current}%`,`reveal at     ${revealPct}% of block in view (down)`,`exit at       ${exitPct}% still in view (down)`,`return at     ${returnPct}% back in view (up)${returnClamped?`  (raised from ${returnAt} — cannot be below Exit At)`:\"\"}${boundariesCross?\"\\n⚠ Reveal At + Exit At > 100 — they overlap\":\"\"}`,`zone          ${scroll.zone} -> ${zone}  (delay ${hold}ms)   initial ${scroll.initial}`,`leg           ${activeLeg} (${activeLeg===0?\"arrive<->rest\":\"rest<->leave\"})   target ${end?\"far end\":\"near end\"}`,`instant       ${instant}`,`maskSupported ${maskOK}   svg ${asset.status}${asset.status===\"error\"?\"  ← MASK FAILED: nothing is shown, by design\":\"\"}`,`maskHolding   ${maskHolding}${maskHolding?\"  (hidden until the mask is confirmed)\":\"\"}`,`media         poster ${poster?posterReady?\"ready\":\"loading\":\"none\"}   video ${videoSrc?videoReady?\"frame on screen\":\"no frame yet (paints transparent)\":\"none\"}`,`videoState    rs ${videoEl.current?videoEl.current.readyState:\"-\"} net ${videoEl.current?videoEl.current.networkState:\"-\"} paused ${videoEl.current?videoEl.current.paused:\"-\"}`,`media frame   h ${mediaH}% of block, anchored ${mediaAlignX}/${mediaAlignY}, offset ${mediaOffsetX}/${mediaOffsetY}`,`showMask      ${showMask}${showMask?\"\":\"  ← MASK NOT APPLIED\"}`,`maskSize      ${maskSizeCSS}   aspect ${asset.aspect}`,`engine        ${engine}   fps ${fps.current}`,`animation     ${anim.current&&anim.current[0]?`${Math.round(Number(anim.current[0].currentTime||0))}ms  rate ${anim.current[0].playbackRate}  ${anim.current[0].playState}  x${anim.current.length}`:\"none\"}`,`box           ${size.width}x${size.height}  (measured)`,`anchor        ${ax}% ${ay}%  (${alignX}/${alignY})`,`arrive pose   ${useTransform?poses[0].shift:poses[0].pos}`,`rest pose     ${useTransform?poses[1].shift:poses[1].pos}`,`leave pose    ${useTransform?poses[2].shift:poses[2].pos}`].join(\"\\n\")})]});}/* ---------------------------------------------------------------- controls -- */const pct=(title,defaultValue,min=-300,max=300)=>({type:ControlType.Number,title,defaultValue,min,max,step:1,unit:\"%\",displayStepper:true});CRGVectorMask.displayName=BUILD_NAME;addPropertyControls(CRGVectorMask,{mediaType:{type:ControlType.Enum,title:\"Media\",defaultValue:\"video\",options:[\"video\",\"image\"],optionTitles:[\"Video\",\"Image\"],displaySegmentedControl:true},video:{type:ControlType.File,title:\"File\",allowedFileTypes:[\"mp4\",\"webm\"],hidden:p=>p.mediaType===\"image\",description:\"Muted and looping. MP4 (H.264) encoded with faststart.\"},image:{type:ControlType.ResponsiveImage,title:\"File\",hidden:p=>p.mediaType!==\"image\"},mediaAlignX:{type:ControlType.Enum,title:\"Media Align X\",defaultValue:\"center\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],displaySegmentedControl:true,description:\"Which edge of the component the media is anchored to. Right pins its right edge to the component's right edge, exactly as Mask Align does for the shape. It does not stretch the media.\"},mediaAlignY:{type:ControlType.Enum,title:\"Media Align Y\",defaultValue:\"center\",options:[\"top\",\"center\",\"bottom\"],optionTitles:[\"Top\",\"Center\",\"Bottom\"],displaySegmentedControl:true},mediaScale:{...pct(\"Media Scale\",100,5,400),description:\"The media's HEIGHT as a percent of the component's height — the same ruler Mask Width uses. Its width follows from the media's own proportions. 100% spans top to bottom. It does NOT stretch to fill the component: whatever it does not cover shows the Placeholder colour behind it. To fill a wide component with a square source, try around 160%.\"},mediaOffsetX:{...pct(\"Media Offset X\",0,-100,100),description:\"Nudge the media away from its anchor, as a percent of the component's height — the same unit the poses use, so 100 here travels the same distance as 100 there.\"},mediaOffsetY:{...pct(\"Media Offset Y\",0,-100,100)},maskSVG:{type:ControlType.File,title:\"Mask SVG\",allowedFileTypes:[\"svg\"],description:\"Opaque artwork on a transparent background. Leave 2–3% padding inside the viewBox or Safari shows a hairline at the edge. No SVG means unmasked media.\"},maskWidth:{...pct(\"Mask Width\",80,1,400),description:\"The mask's width, as a percent of the component's HEIGHT — the same ruler the poses use, which is what keeps a stack aligned at every window shape. The SVG's proportions set the height. Coming from b186, multiply your old value by (component width \\xf7 height): on 1440\\xd7900 a 50 becomes 80.\"},placeholderColor:{type:ControlType.Color,title:\"Placeholder\",defaultValue:\"#0C1638\",description:\"Solid fill shown inside the mask before anything else loads. Costs nothing — no request, no bytes — so the shape and the motion are there on the very first frame. Set it to transparent if you want whatever is behind the component to show through instead.\"},poster:{type:ControlType.File,title:\"Poster\",allowedFileTypes:[\"jpg\",\"jpeg\",\"png\",\"webp\",\"avif\"],description:\"Optional still, ideally the video's FIRST FRAME — then the handover to the video has nothing to cross-fade between and is invisible. Export around 1600px wide at quality 70. This is the only part of the hero worth preloading; video itself cannot be preloaded at all.\"},mediaFade:{type:ControlType.Number,title:\"Media Fade\",defaultValue:.4,min:0,max:3,step:.05,unit:\"s\",displayStepper:true,description:\"How long the poster and the video take to fade in once ready. Only matters when something arrives late — it eases in mid-animation instead of popping. 0 turns it off.\"},alignX:{type:ControlType.Enum,title:\"Mask Align X\",defaultValue:\"center\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],displaySegmentedControl:true,description:\"What the poses are measured from. Centre is the default and keeps every value meaning what it always did. Anchor to an edge when several stacked components must stay aligned through a resize — an edge holds still where a percentage of the box does not.\"},alignY:{type:ControlType.Enum,title:\"Mask Align Y\",defaultValue:\"center\",options:[\"top\",\"center\",\"bottom\"],optionTitles:[\"Top\",\"Center\",\"Bottom\"],displaySegmentedControl:true},/* ---- the journey, in the order it happens ----------------------------\n       IN-START  →  (in motion)  →  RESTING  →  (out motion)  →  OUT-END\n       Duration and easing sit between the poses they carry the mask between,\n       because a duration describes a journey, not a place. Three poses, two\n       journeys. */enterX:{...pct(\"IN-START X\",-100),description:\"Pose 1 of 3. Where the mask waits before the block arrives from below. BOTH axes are a percent of the component's HEIGHT, so equal numbers travel equal pixels and -100 / 100 is a true 45\\xb0. On a landscape block, 100 clears the top or bottom edge exactly but only part of the way sideways — set both to around 160 to clear sideways too.\"},enterY:{...pct(\"IN-START Y\",100)},startOpacity:{...pct(\"IN-START Opacity\",100,0,100)},duration:{type:ControlType.Number,title:\"IN Duration\",defaultValue:1.2,min:0,max:20,step:.05,unit:\"s\",displayStepper:true,description:\"How long IN-START ↔ RESTING takes, in both directions.\"},easing:{type:ControlType.Enum,title:\"IN Easing\",defaultValue:\"easeInOut\",options:EASING_OPTIONS,optionTitles:EASING_TITLES,description:\"2\\xd7 and 4\\xd7 are the same shape, stronger: flatter at the ends, faster through the middle. Every curve is monotonic by construction, so none of them can overshoot or judder.\"},endX:{...pct(\"RESTING X\",0),description:\"Pose 2 of 3. Where the mask sits while the block is on screen. Keep at 0 / 0 to rest dead centre.\"},endY:{...pct(\"RESTING Y\",0)},endOpacity:{...pct(\"RESTING Opacity\",100,0,100)},outDuration:{type:ControlType.Number,title:\"OUT Duration\",defaultValue:1.2,min:0,max:20,step:.05,unit:\"s\",displayStepper:true,description:\"How long RESTING ↔ OUT-END takes, in both directions.\"},outEasing:{type:ControlType.Enum,title:\"OUT Easing\",defaultValue:\"easeInOut\",options:EASING_OPTIONS,optionTitles:EASING_TITLES},startX:{...pct(\"OUT-END X\",100),description:\"Pose 3 of 3. Where the mask goes once the block has left the top. Same unit as the other poses — the component's height, both axes. Overshooting is free because it happens off-screen, but past roughly 150 the deceleration tail plays outside the frame and scrolling back in gives a dead pause then a fast arrival.\"},startY:{...pct(\"OUT-END Y\",-100)},leaveOpacity:{...pct(\"OUT-END Opacity\",100,0,100)},trigger:{type:ControlType.Enum,title:\"Trigger\",defaultValue:\"scroll\",options:[\"scroll\",\"load\",\"hover\",\"click\",\"always\"],optionTitles:[\"Scroll\",\"On Load\",\"Hover\",\"Click\",\"Always End\"],description:\"Scroll plays forward once the anchor crosses the IN line, and reverses when it crosses back.\"},/* ---- when it fires: identical to CRG Arrow Motion, field for field ---- */revealAt:{...pct(\"Reveal At\",15,0,100),hidden:p=>p.trigger!==\"scroll\",description:\"Scrolling DOWN, the IN leg fires once this much of the component has come into view. 0 is the instant its top edge appears, 50 is halfway, 100 is fully visible. LOWER = SOONER. This is the setting for 'the animation starts too late'.\"},exitAt:{...pct(\"Exit At\",25,0,100),hidden:p=>p.trigger!==\"scroll\",description:\"Scrolling DOWN, the OUT leg fires while this much of the component is still in view. HIGHER = SOONER, because more of it is still on screen when it goes. Keep Reveal At + Exit At at or under 100 or the two boundaries overlap.\"},returnAt:{...pct(\"Return At\",20,0,100),hidden:p=>p.trigger!==\"scroll\",description:\"Scrolling UP, the OUT leg reverses back to RESTING once this much of the component is back in view. LOWER = SOONER, but it CANNOT GO BELOW EXIT AT and is raised silently if you try — Debug says when. Below Exit At the block cancels its own exit and re-fires it, which reads as a stutter when scrolling slowly. Set it equal to Exit At for the fastest possible return, or higher to let the block come further back before it animates.\"},delay:{type:ControlType.Number,title:\"Delay\",defaultValue:0,min:0,max:3e3,step:10,unit:\"ms\",displayStepper:true,hidden:p=>p.trigger!==\"scroll\",description:\"How long after the trigger fires before it starts. The trigger decides WHERE on screen, this decides HOW LONG after — give stacked copies the same triggers and different delays and they cascade.\"},canvasView:{type:ControlType.Enum,title:\"Canvas View\",defaultValue:\"end\",options:[\"start\",\"end\",\"leave\",\"media\"],optionTitles:[\"Arrive\",\"Resting\",\"Leave\",\"Media\"],displaySegmentedControl:true,description:\"Editor only. Compose each of the three poses in turn. Media shows the unmasked file.\"},engine:{type:ControlType.Enum,title:\"Motion Engine\",defaultValue:\"transform\",options:[\"transform\",\"position\"],optionTitles:[\"Transform (GPU)\",\"Mask Position\"],displaySegmentedControl:true,description:\"Transform animates on the compositor and does not repaint the video — use it. Mask Position repaints the whole masked area every frame, which collapses on large or high-resolution video. Kept only for comparison.\"},debug:{type:ControlType.Boolean,title:\"Debug\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"Prints live state over the media in Preview and on the published site. Turn off before shipping.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CRGVectorMask\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"500\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"800\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Mask.map"],"mappings":"A,oOAqkBsB,SAASmB,GAAa,CAAC,GAAGC,IAAY,KAAK,OAAOA,EAAU,EAAU,GAAM,GAAG,CAA+D,GAA3D,OAAO,SAAW,KAAa,CAAC,SAAS,MAAqB,OAAO,IAAM,KAAa,CAAC,IAAI,SAAS,YAAY,gCAAgC,EAAE,MAAO,GAAM,IAAMC,EAAK,SAAS,cAAc,KAAK,EAAE,EAAK,MAAM,QAAQ,+GAAkH,IAAMC,EAAM,SAAS,cAAc,KAAK,EAAED,EAAK,YAAYC,CAAK,EAAE,SAAS,KAAK,YAAYD,CAAI,EAAE,IAAME,EAAED,EAAM,QAAQ,CAAC,CAAC,UAAU,6BAA6B,EAAE,CAAC,UAAU,+BAA+B,CAAC,EAAE,CAAC,SAAS,IAAI,KAAK,MAAM,CAAC,EAAEC,EAAE,MAAM,EAAE,EAAE,YAAY,IAAI,IAAMC,EAAE,IAAI,kBAAkB,iBAAiBF,CAAK,CAAC,CAAC,SAAS,EAAE,EAAU,KAAK,IAAIE,EAAE,IAAI,GAAG,EAAE,EA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