/* Bayan v1.9.2 — Living Linguistic Memory */
.route-home .bh-hero{position:relative;overflow:hidden;isolation:isolate;transition:background 3s ease}
.route-home .bh-hero>.shell{position:relative;z-index:2}
.route-home .bh-hero[data-memory-time="dawn"]{background:linear-gradient(180deg,#f4f1ec 0%,#f3efe6 100%)}
.route-home .bh-hero[data-memory-time="day"]{background:linear-gradient(180deg,#f7f3eb 0%,#f4efe4 100%)}
.route-home .bh-hero[data-memory-time="sunset"]{background:linear-gradient(180deg,#f4eee4 0%,#f1e9dd 100%)}
.route-home .bh-hero[data-memory-time="night"]{background:linear-gradient(180deg,#efede9 0%,#eee9e1 100%)}
.bayan-hero-memory{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;user-select:none;contain:layout paint style}
.bayan-memory-timewash{position:absolute;inset:-12%;opacity:.88;filter:blur(9px);transition:background 2.8s ease,filter 2.8s ease,opacity 2.8s ease;transform:translate3d(0,0,0);background:radial-gradient(circle at 17% 17%,rgba(121,126,246,.14),transparent 27rem),radial-gradient(circle at 83% 26%,rgba(234,191,75,.12),transparent 25rem),radial-gradient(circle at 56% 78%,rgba(45,212,191,.05),transparent 23rem)}
.bayan-hero-memory[data-time="dawn"] .bayan-memory-timewash{background:radial-gradient(circle at 17% 17%,rgba(121,126,246,.18),transparent 27rem),radial-gradient(circle at 83% 26%,rgba(234,191,75,.08),transparent 25rem),radial-gradient(circle at 56% 78%,rgba(45,212,191,.05),transparent 23rem)}
.bayan-hero-memory[data-time="day"] .bayan-memory-timewash{background:radial-gradient(circle at 17% 17%,rgba(121,126,246,.095),transparent 27rem),radial-gradient(circle at 83% 26%,rgba(234,191,75,.17),transparent 25rem),radial-gradient(circle at 56% 78%,rgba(45,212,191,.045),transparent 23rem)}
.bayan-hero-memory[data-time="sunset"] .bayan-memory-timewash{background:radial-gradient(circle at 17% 17%,rgba(121,126,246,.08),transparent 27rem),radial-gradient(circle at 83% 26%,rgba(234,191,75,.22),transparent 25rem),radial-gradient(circle at 54% 78%,rgba(180,115,80,.075),transparent 23rem)}
.bayan-hero-memory[data-time="night"] .bayan-memory-timewash{background:radial-gradient(circle at 17% 17%,rgba(77,82,171,.19),transparent 27rem),radial-gradient(circle at 83% 26%,rgba(121,126,246,.095),transparent 25rem),radial-gradient(circle at 54% 78%,rgba(45,212,191,.04),transparent 23rem);filter:blur(11px) brightness(.94)}
.bayan-memory-calligraphy,.bayan-memory-place{position:absolute;inset:0;width:100%;height:100%}
.bayan-memory-stroke,.bayan-place-line{fill:none;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.bayan-memory-stroke{opacity:.72}
.bayan-memory-stroke.stroke-a{stroke:rgba(121,126,246,.17);stroke-width:1.62;stroke-dasharray:10 17;animation:bayan-memory-drift-a 28s ease-in-out infinite alternate}
.bayan-memory-stroke.stroke-b{stroke:rgba(234,191,75,.21);stroke-width:1.34;stroke-dasharray:6 15;animation:bayan-memory-drift-b 33s ease-in-out infinite alternate}
.bayan-memory-stroke.stroke-c{stroke:rgba(45,42,37,.105);stroke-width:1.08;stroke-dasharray:4 19;animation:bayan-memory-drift-c 31s ease-in-out infinite alternate}
.bayan-memory-stroke.stroke-d{stroke:rgba(45,212,191,.095);stroke-width:1.14;stroke-dasharray:8 21;animation:bayan-memory-drift-d 37s ease-in-out infinite alternate}
@keyframes bayan-memory-drift-a{to{transform:translate3d(13px,-8px,0);opacity:.9}}
@keyframes bayan-memory-drift-b{to{transform:translate3d(-10px,7px,0);opacity:.82}}
@keyframes bayan-memory-drift-c{to{transform:translate3d(8px,-4px,0);opacity:.75}}
@keyframes bayan-memory-drift-d{to{transform:translate3d(-9px,-6px,0);opacity:.9}}
.bayan-place-line{stroke:rgba(72,65,57,.11);stroke-width:1.02;opacity:.9;stroke-dasharray:140 16;animation:bayan-place-drift 34s ease-in-out infinite alternate}
.bayan-place-line.soft{stroke:rgba(121,126,246,.085)}
.bayan-place-line.gold{stroke:rgba(234,191,75,.11)}
@keyframes bayan-place-drift{0%{stroke-dashoffset:0;transform:translate3d(0,0,0)}100%{stroke-dashoffset:-56;transform:translate3d(9px,-5px,0);opacity:.64}}
.bayan-memory-glyph{position:absolute;font-family:var(--ar-literary,Amiri,"Noto Naskh Arabic",serif);font-weight:400;line-height:1;color:#17181d;opacity:.029;mix-blend-mode:multiply;will-change:transform}
.bayan-memory-glyph-n{font-size:clamp(170px,22vw,330px);right:-1.5vw;top:13%;transform:rotate(-7deg)}
.bayan-memory-glyph-w{font-size:clamp(145px,18vw,265px);left:4%;bottom:0;transform:rotate(5deg);color:var(--nfi-violet,#797EF6)}
.bayan-memory-glyph-m{font-size:clamp(110px,14vw,205px);left:40%;top:4%;transform:rotate(-3deg);color:#8d7542}
.bayan-memory-reveal{position:absolute;z-index:0;right:8%;top:42%;width:clamp(190px,22vw,330px);height:clamp(100px,13vw,170px);display:grid;place-items:center;transform:rotate(-4deg);opacity:.0;animation:bayan-word-reveal 30s ease-in-out infinite}
.bayan-memory-reveal:before{content:"";position:absolute;left:3%;right:3%;top:54%;height:1px;background:linear-gradient(90deg,transparent,rgba(121,126,246,.20),rgba(234,191,75,.24),transparent);transform:scaleX(.25);transform-origin:center;animation:bayan-word-thread 30s ease-in-out infinite}
.bayan-memory-reveal span{font-family:var(--ar-literary,Amiri,"Noto Naskh Arabic",serif);font-size:clamp(54px,7vw,104px);font-weight:400;color:#3c3933;letter-spacing:-.06em;filter:blur(.25px)}
@keyframes bayan-word-reveal{0%,45%,100%{opacity:0;transform:rotate(-4deg) translate3d(0,10px,0)}53%{opacity:.025}59%{opacity:.075;transform:rotate(-2deg) translate3d(0,0,0)}66%{opacity:.035}74%{opacity:0;transform:rotate(0deg) translate3d(6px,-6px,0)}}
@keyframes bayan-word-thread{0%,42%,100%{opacity:0;transform:scaleX(.25)}52%{opacity:.34;transform:scaleX(.65)}61%{opacity:.5;transform:scaleX(1)}72%{opacity:0;transform:scaleX(.78)}}
.bayan-memory-fragments{position:absolute;inset:0}
.bayan-memory-fragments .fragment{position:absolute;white-space:nowrap;font-family:var(--ar-literary,Amiri,"Noto Naskh Arabic",serif);font-size:clamp(13px,1.25vw,17px);color:#37342f;opacity:0;filter:blur(.08px);text-shadow:0 1px 0 rgba(255,255,255,.38);transform:translate3d(0,8px,0);transition:opacity 1.8s ease,transform 1.8s ease}
.bayan-memory-fragments .fragment.is-memory-visible{opacity:.085;transform:translate3d(0,0,0)}
.bayan-memory-fragments .f1{top:16%;right:11%}
.bayan-memory-fragments .f2{top:67%;left:9%}
.bayan-memory-fragments .f3{top:30%;left:16%}
.bayan-memory-fragments .f4{top:73%;right:18%}
.bayan-memory-fragments .f5{top:43%;right:33%}
.bayan-memory-fragments .f6{top:22%;left:44%}
/* Keep the reading column calm even while the memory field becomes more visible. */
html[dir="rtl"] .route-home .bh-hero:after,html[dir="ltr"] .route-home .bh-hero:after{content:"";position:absolute;z-index:1;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(243,239,230,.03),rgba(243,239,230,.15) 34%,rgba(243,239,230,.36) 60%,rgba(243,239,230,.70) 100%)}
html[dir="ltr"] .route-home .bh-hero:after{transform:scaleX(-1)}
html[lang="en"] .bayan-hero-memory{opacity:.84}
html[lang="en"] .bayan-memory-reveal{opacity:.0;animation-name:bayan-word-reveal-en}
@keyframes bayan-word-reveal-en{0%,45%,100%{opacity:0;transform:rotate(-4deg) translate3d(0,10px,0)}53%{opacity:.016}59%{opacity:.045;transform:rotate(-2deg) translate3d(0,0,0)}66%{opacity:.022}74%{opacity:0;transform:rotate(0deg) translate3d(6px,-6px,0)}}
html[lang="en"] .bayan-memory-fragments .fragment.is-memory-visible{opacity:.055}
@media(max-width:900px){.bayan-memory-fragments .f3,.bayan-memory-fragments .f6{display:none}.bayan-memory-glyph{opacity:.02}.bayan-memory-stroke{opacity:.56}.bayan-place-line{opacity:.65}.bayan-memory-timewash{opacity:.72}.bayan-memory-reveal{right:2%;top:48%;opacity:0}.route-home .bh-hero:after{background:linear-gradient(180deg,rgba(243,239,230,.10),rgba(243,239,230,.30) 58%,rgba(243,239,230,.54))!important;transform:none!important}}
@media(max-width:620px){.bayan-memory-fragments .fragment{font-size:11px}.bayan-memory-fragments .f2,.bayan-memory-fragments .f4{display:none}.bayan-memory-glyph-n{right:-12%;top:22%}.bayan-memory-glyph-w{left:-5%;bottom:5%}.bayan-memory-glyph-m{display:none}.bayan-memory-timewash{opacity:.58}.bayan-memory-calligraphy,.bayan-memory-place{opacity:.72}.bayan-memory-reveal{display:none}}
@media(prefers-reduced-motion:reduce){.bayan-memory-stroke,.bayan-place-line,.bayan-memory-reveal,.bayan-memory-reveal:before{animation:none!important}.bayan-memory-fragments .fragment{transition:none!important}.bayan-memory-fragments .fragment{display:none}.bayan-memory-timewash{transition:none!important}.bayan-memory-glyph{transform:none!important}.bayan-memory-reveal{display:none}}
.bayan-hero-memory.is-paused .bayan-memory-stroke,.bayan-hero-memory.is-paused .bayan-place-line,.bayan-hero-memory.is-paused .bayan-memory-reveal,.bayan-hero-memory.is-paused .bayan-memory-reveal:before{animation-play-state:paused!important}
