/* Adaptasi pucuk rebung dan palet ornamen Bagas Godang Mandailing. */
.story-grid:after{content:'';display:block;grid-column:1/-1;width:min(100%,760px);height:58px;margin:20px auto 0;background:#241d25 url('mandailing-textile.svg') center / 130px 58px repeat-x;border-top:3px solid #b98b57;border-bottom:3px solid #b98b57;box-shadow:0 12px 30px #3b28252b;-webkit-mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent)}
.opening .envelope-seal{border:2px solid #d5aa6a;box-shadow:0 0 0 5px #803b45,0 3px 12px #0005}
.ulos-corner{background:#342b28 url('mandailing-weave.svg') center / 80px 40px;filter:drop-shadow(0 2px 4px #10261c50)}
.opening .opening-orn{display:block;width:112px;height:47px;margin:0 auto 18px;background:url('mandailing-crest.svg') center / contain no-repeat;font-size:0;letter-spacing:0}
.event-card:after{content:'';position:absolute;pointer-events:none;left:22px;right:22px;bottom:12px;height:12px;background:url('mandailing-weave.svg') center / 48px 24px repeat-x;opacity:.72;-webkit-mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent);mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent)}
.event-card{padding-bottom:33px}
.monogram-frame:after{content:'';position:absolute;left:25px;right:25px;bottom:20px;height:13px;background:url('mandailing-weave.svg') center / 48px 24px repeat-x;opacity:.7;-webkit-mask-image:linear-gradient(to right,transparent,#000 18%,#000 82%,transparent);mask-image:linear-gradient(to right,transparent,#000 18%,#000 82%,transparent)}
.events>.container>.orn{font-size:0;height:31px;background:url('mandailing-crest.svg') center / 72px 30px no-repeat;gap:90px;margin:12px auto 18px}
.events>.container>.orn:before,.events>.container>.orn:after{width:68px}
.section-vine-bridge{position:relative;z-index:7;pointer-events:none;isolation:isolate;height:150px;margin-top:-75px;margin-bottom:-75px}
.section-vine-bridge+[data-scroll-scene]{margin-top:-1px}
.section-vine-bridge+.story.fairy-scene{padding-top:92px}
.bridge-garden{display:block;position:absolute;inset:0;width:100%;height:100%;overflow:visible;-webkit-mask-image:linear-gradient(to right,transparent,#000 4%,#000 96%,transparent);mask-image:linear-gradient(to right,transparent,#000 4%,#000 96%,transparent)}
.bridge-stem{fill:none;stroke:#71885b;stroke-width:2;stroke-linecap:round;opacity:.8}
.bridge-trace{fill:none;stroke:#c3a565;stroke-width:1;stroke-dasharray:1;stroke-dashoffset:0;stroke-linecap:round;opacity:.9}
.bridge-tendril{fill:none;stroke:#8b9b6b;stroke-width:1.2;opacity:.75}
.bridge-bough{transform-box:fill-box;transform-origin:center;animation:bridgeBoughBreathe 8s ease-in-out infinite alternate paused}
.bridge-bough--right{animation-direction:alternate-reverse;animation-duration:9.5s}
.bridge-flower{transform-box:fill-box;transform-origin:center;filter:drop-shadow(0 0 5px #efd59a77);animation:bridgeFlowerGlow 5s ease-in-out infinite alternate paused}
.bridge-flower:nth-of-type(2n){animation-delay:-2s}
.section-vine-bridge.scene-live .bridge-bough,.section-vine-bridge.scene-live .bridge-flower{animation-play-state:running}
.bridge-heritage{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:104px;height:46px;background:url('mandailing-crest.svg') center / contain no-repeat;filter:drop-shadow(0 3px 5px #efe2c7)}
.section-vine-bridge--transition .bridge-stem{stroke:#a8bb88;opacity:.95}
.section-vine-bridge--transition .bridge-trace{stroke:#e0c88c}
.section-vine-bridge--transition .bridge-bough{filter:drop-shadow(0 1px 3px #102d2855)}
@keyframes bridgeBoughBreathe{from{transform:translateY(2px) rotate(-.25deg)}to{transform:translateY(-2px) rotate(.25deg)}}
@keyframes bridgeFlowerGlow{from{opacity:.72;transform:scale(.97)}to{opacity:1;transform:scale(1.05)}}
@media(max-width:780px){body.motion-lite .bridge-bough,body.motion-lite .bridge-flower{animation:none!important;filter:none!important}}
@media(max-width:780px){
 .story-grid:after{height:42px;margin-top:10px;background-size:94px 42px}
 .ulos-corner{background-size:56px 28px}.opening .opening-orn{width:94px;height:40px}
 .section-vine-bridge{height:110px;margin-top:-55px;margin-bottom:-55px}
 .bridge-garden{width:170%;left:-35%;max-width:none}.bridge-heritage{width:80px;height:36px}
 .section-vine-bridge+.story.fairy-scene{padding-top:76px}
 .event-card:after{left:26px;right:26px;height:10px;bottom:13px}.monogram-frame:after{height:10px;bottom:15px}
}
@media(prefers-reduced-motion:reduce){.bridge-bough,.bridge-flower{animation:none!important}.bridge-trace{stroke-dashoffset:0!important}}
@media print{.section-vine-bridge{display:none!important}.event-card:after,.monogram-frame:after{opacity:.5}}
