/* Home-only additions. Existing theme tokens come from alsaeed-media-theme.css. */
html[data-site="alsaeed"] .ae-home-story{--as-ink:var(--am-text,#173e4d);--as-muted:var(--am-muted,#536b73);--as-card:var(--am-card,#fff);--as-border:var(--am-border,#d5e0d8)}
html[data-site="alsaeed"] .ae-home-story .ae-ascent .ae-short-head{flex-wrap:wrap;align-items:center;gap:12px 24px}
html[data-site="alsaeed"] .ae-home-story .ae-ascent .ae-short-head>div{margin-inline-end:auto}
html[data-site="alsaeed"] .ae-home-story .ae-story-motion,html[data-site="alsaeed"] .ae-story-controls button{font:inherit;font-size:.76rem;cursor:pointer;min-height:42px;padding:8px 13px;border:1px solid var(--as-border);border-radius:9px;color:var(--as-ink);background:var(--as-card);white-space:nowrap}
html[data-site="alsaeed"] .ae-home-story .ae-story-motion:disabled,html[data-site="alsaeed"] .ae-story-controls button:disabled{cursor:default;opacity:.6}
html[data-site="alsaeed"] body #app .ae-home-story a.ae-story-stage{--as-a:#164c62;--as-b:#287a77;display:block;text-decoration:none;background:linear-gradient(125deg,var(--as-a),var(--as-b),var(--as-a))!important;background-size:220% 220%!important;color:#fff!important;border-color:var(--as-a)!important;animation:aeStoryGradient 11s ease-in-out infinite;box-shadow:0 8px 0 -1px #d4ded5,0 9px 0 #97ada2;isolation:isolate}
html[data-site="alsaeed"] body #app .ae-home-story a.ae-story-stage:nth-child(2){--as-a:#1a5360;--as-b:#526c33;animation-delay:-3s}
html[data-site="alsaeed"] body #app .ae-home-story a.ae-story-stage:nth-child(3){--as-a:#453a60;--as-b:#2f6877;animation-delay:-6s}
html[data-site="alsaeed"] body #app .ae-home-story a.ae-story-stage:nth-child(4){--as-a:#71441c;--as-b:#4f4934;animation-delay:-9s}
html[data-site="alsaeed"] body #app .ae-home-story .ae-story-stage :is(b,small,.ae-stage-top i){color:#fff!important}
html[data-site="alsaeed"] body #app .ae-home-story .ae-story-stage .ae-stage-icon{color:#ffe2b5!important;background:#ffffff14!important;border-color:#ffffff48!important}
html[data-site="alsaeed"] .ae-home-story .ae-story-stage .ae-stage-photo{background:#edf0e9!important}
html[data-site="alsaeed"] .ae-home-story .ae-story-stage-cue{display:flex;align-items:center;justify-content:space-between;margin:13px 17px 0;padding-top:11px;border-top:1px solid #ffffff38;font-size:.73rem;color:#fff}
html[data-site="alsaeed"] .ae-home-story .ae-story-stage-cue svg{width:19px;height:19px}
html[data-site="alsaeed"][dir="ltr"] .ae-story-stage-cue svg{transform:rotate(180deg)}
html[data-site="alsaeed"] .ae-home-story[data-ae-story-paused="true"] .ae-story-stage{animation-play-state:paused!important}
html[data-site="alsaeed"] .ae-home-story .ae-story-stage-more{margin-top:18px;color:var(--as-muted);font-size:.8rem}
html[data-site="alsaeed"] .ae-home-story .ae-story-stage-more>summary{cursor:pointer;min-height:44px;padding:12px 0;width:fit-content}
html[data-site="alsaeed"] .ae-home-story .ae-story-stage-more .ae-stage-details{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;background:var(--as-card)}
html[data-site="alsaeed"] .ae-home-story .ae-story-stage-more .ae-stage-details section{display:block!important;padding:0}
html[data-site="alsaeed"] .ae-home-story .ae-story-stage-more .ae-stage-links{justify-content:flex-start;margin-top:15px}
html[data-site="alsaeed"] .ae-home-story .ae-story-about{max-width:950px;font-size:.91rem;line-height:1.95;color:var(--as-muted);margin:-4px 0 26px}
html[data-site="alsaeed"] .ae-story-clients{padding-block:32px 38px}
html[data-site="alsaeed"] .ae-story-clients .ae-short-head{margin-bottom:17px;align-items:center}
html[data-site="alsaeed"] .ae-story-controls{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
html[data-site="alsaeed"] .ae-story-controls svg{display:block;width:18px;height:18px}
html[data-site="alsaeed"] .ae-story-controls [data-ae-client-step="-1"] svg{transform:rotate(180deg)}
html[data-site="alsaeed"][dir="ltr"] .ae-story-controls [data-ae-client-step="-1"] svg{transform:none}
html[data-site="alsaeed"][dir="ltr"] .ae-story-controls [data-ae-client-step="1"] svg{transform:rotate(180deg)}
html[data-site="alsaeed"] .ae-story-client-rail{display:flex;gap:14px;list-style:none;padding:5px 2px 13px;margin:0;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#c2b796 transparent}
html[data-site="alsaeed"] .ae-story-client-rail li{box-sizing:border-box;flex:0 0 184px;scroll-snap-align:start;min-width:0;min-height:132px;padding:15px 10px 10px;border:1px solid var(--as-border);border-radius:12px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px}
html[data-site="alsaeed"] .ae-story-client-rail img{width:148px;height:65px;object-fit:contain;display:block}
html[data-site="alsaeed"] .ae-story-client-rail img[hidden]{display:none}
html[data-site="alsaeed"] .ae-story-client-rail li>span{color:#395260;display:block;font-size:.67rem;line-height:1.6;text-align:center;max-width:100%}
html[data-site="alsaeed"] .ae-story-client-rail .ae-client-text-only>span{font-size:.9rem;color:#234553;font-weight:600}
html[data-site="alsaeed"] .ae-home-story>.sa-rev-section{max-width:1160px;margin:14px auto 30px;padding:30px!important;border-radius:18px!important}
html[data-site="alsaeed"] .ae-home-story>.sa-rev-section .sa-rev-head{gap:20px;margin-bottom:18px}
html[data-site="alsaeed"] .ae-home-story>.sa-rev-section .sa-rev-head p{font-size:.83rem;max-width:660px}
html[data-site="alsaeed"] .ae-home-story>.sa-rev-section .sa-rev-rail{align-items:stretch}
html[data-site="alsaeed"] .ae-home-story>.sa-rev-section .sa-rev-card{min-height:0;padding:19px;flex-basis:310px;border-radius:13px}
html[data-site="alsaeed"] .ae-home-story>.sa-rev-section .sa-rev-card blockquote{font-size:.87rem;line-height:1.85;min-height:6.4em;max-height:7.4em;-webkit-line-clamp:4;line-clamp:4}
html[data-site="alsaeed"] .ae-home-story>.sa-rev-section .sa-rev-card-top{height:25px}
html[data-site="alsaeed"] .ae-home-story>.sa-rev-section .sa-rev-quote{font-size:2.4rem;line-height:1}
html[data-site="alsaeed"] .ae-home-story>.sa-rev-section .sa-rev-card figcaption{margin-top:13px}
html[data-site="alsaeed"] .ae-home-story>.sa-rev-section .sa-rev-foot{margin-top:14px}
html[data-site="alsaeed"] .ae-home-story .ae-media-entry.ae-story-media{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;margin-top:0;padding:25px;align-items:center}
html[data-site="alsaeed"] .ae-story-media>div:first-child p{margin-bottom:0}
html[data-site="alsaeed"] .ae-story-media-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;min-width:0}
html[data-site="alsaeed"] .ae-story-film{min-width:0;color:var(--as-ink)}
html[data-site="alsaeed"] .ae-story-film>video,html[data-site="alsaeed"] .ae-story-intro{width:100%;aspect-ratio:16/9;border-radius:11px;display:block;background:#0c2635;object-fit:contain;overflow:hidden;position:relative}
html[data-site="alsaeed"] .ae-story-intro>button[data-ae-intro-play]{width:100%;height:100%;padding:0;border:0;border-radius:0;display:block;background:#0c2635}
html[data-site="alsaeed"] .ae-story-intro img{display:block;width:100%;height:100%;object-fit:cover}
html[data-site="alsaeed"] .ae-story-play{position:absolute;inset:0;display:grid;place-items:center;margin:auto;width:48px;height:48px;border:1px solid #ffffff9e;border-radius:50%;color:#fff;background:#0a2634d9;font-size:1.2rem;padding-inline-start:3px}
html[data-site="alsaeed"] .ae-story-intro iframe{width:100%;height:100%;border:0}
html[data-site="alsaeed"] .ae-story-intro [data-ae-intro-close]{position:absolute;top:6px;inset-inline-end:6px;min-height:35px;font-size:.7rem;padding:5px 9px;background:#fff;color:#173e4d;border:1px solid #536b73;box-shadow:0 1px 8px #0003}
html[data-site="alsaeed"] body #app .ae-story-film h3{font-size:.93rem;line-height:1.5;margin:12px 0 5px;color:var(--as-ink)!important}
html[data-site="alsaeed"] .ae-story-film>span{font-size:.7rem;line-height:1.7;color:var(--as-muted);display:block}
html[data-site="alsaeed"] .ae-story-media-grid>button.ae-story-photo{padding:0;text-align:start;min-width:0;display:flex;flex-direction:column;align-items:stretch;background:transparent;border:0;justify-content:flex-start}
html[data-site="alsaeed"] .ae-story-photo>img{width:100%;aspect-ratio:16/9;object-fit:contain;display:block;background:#edf0e9;border-radius:11px}
html[data-site="alsaeed"] .ae-story-photo>span{display:grid;grid-template-columns:1fr auto;gap:5px 9px;padding:12px 0 0;color:var(--as-ink)}
html[data-site="alsaeed"] .ae-story-photo b{font-size:.93rem;line-height:1.5;grid-column:1}
html[data-site="alsaeed"] .ae-story-photo small{font-size:.7rem;line-height:1.7;color:var(--as-muted);grid-column:1}
html[data-site="alsaeed"] .ae-story-photo svg{grid-column:2;grid-row:1/3;align-self:center;width:22px;height:22px}
html[data-site="alsaeed"][dir="ltr"] .ae-story-photo svg{transform:rotate(180deg)}
html[data-site="alsaeed"] .ae-home-story :is(.ae-story-stage,.ae-story-stage-more>summary,.ae-story-motion,.ae-story-client-rail,.ae-story-controls button,.ae-story-media button):focus-visible{outline:3px solid #eaa45e;outline-offset:4px}
html[data-site="alsaeed"][data-ae-theme="dark"] body #app .ae-home-story a.ae-story-stage{box-shadow:0 8px 0 -1px #18313b,0 9px 0 #496170}
@keyframes aeStoryGradient{0%,100%{background-position:0 50%}50%{background-position:100% 50%}}
@media(max-width:900px){html[data-site="alsaeed"] .ae-home-story>.sa-rev-section{margin-inline:20px;max-width:calc(100% - 40px);padding:24px!important}html[data-site="alsaeed"] .ae-story-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-site="alsaeed"] .ae-story-media-grid>.ae-story-photo{grid-column:1/-1;display:grid!important;grid-template-columns:125px 1fr;gap:15px;align-items:center!important}html[data-site="alsaeed"] .ae-story-photo>span{padding:0}html[data-site="alsaeed"] .ae-story-stage-cue{margin-inline:12px!important}}
@media(max-width:600px){html[data-site="alsaeed"] .ae-home-story .ae-ascent .ae-short-head{display:flex;align-items:flex-start}html[data-site="alsaeed"] .ae-home-story .ae-ascent .ae-short-head>div{width:100%}html[data-site="alsaeed"] .ae-home-story .ae-ascent .ae-short-head>p{flex:1;margin:0;font-size:.8rem}html[data-site="alsaeed"] .ae-home-story .ae-story-motion{font-size:.67rem;padding-inline:9px}html[data-site="alsaeed"] body #app .ae-home-story .ae-story-stage>b{font-size:.84rem;min-height:2.7em;line-height:1.5}html[data-site="alsaeed"] .ae-home-story .ae-story-stage-cue{font-size:.65rem;margin-top:8px}html[data-site="alsaeed"] .ae-home-story .ae-story-stage-more .ae-stage-details{grid-template-columns:1fr}html[data-site="alsaeed"] .ae-home-story .ae-story-about{font-size:.82rem;margin-top:0}html[data-site="alsaeed"] .ae-story-clients{padding-block:28px}html[data-site="alsaeed"] .ae-story-clients .ae-short-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}html[data-site="alsaeed"] .ae-story-client-rail li{flex-basis:157px;min-height:122px}html[data-site="alsaeed"] .ae-story-client-rail img{width:130px;height:58px}html[data-site="alsaeed"] .ae-story-controls button{min-height:40px;font-size:.67rem;padding-inline:10px}html[data-site="alsaeed"] .ae-home-story>.sa-rev-section{margin-inline:16px;max-width:calc(100% - 32px);padding:20px 16px!important}html[data-site="alsaeed"] .ae-home-story>.sa-rev-section .sa-rev-card{flex-basis:calc(100% - 28px);min-width:0}html[data-site="alsaeed"] .ae-home-story .ae-media-entry.ae-story-media{grid-template-columns:1fr;padding:20px;gap:17px}html[data-site="alsaeed"] .ae-story-media-grid{gap:17px 12px}html[data-site="alsaeed"] body #app .ae-story-film h3,html[data-site="alsaeed"] .ae-story-photo b{font-size:.78rem}html[data-site="alsaeed"] .ae-story-film>span,html[data-site="alsaeed"] .ae-story-photo small{font-size:.64rem}html[data-site="alsaeed"] .ae-story-play{width:38px;height:38px;font-size:1rem}html[data-site="alsaeed"] .ae-story-intro [data-ae-intro-close]{font-size:.6rem;min-height:30px;padding:3px 5px}html[data-site="alsaeed"] .ae-story-media-grid>.ae-story-photo{grid-template-columns:100px 1fr}}
@media(prefers-reduced-motion:reduce){html[data-site="alsaeed"] body #app .ae-home-story a.ae-story-stage{animation:none!important;transition:none!important}html[data-site="alsaeed"] .ae-story-client-rail{scroll-behavior:auto}}
/* A compact, golden journey preview. Links remain links; dots only preview. */
html[data-site="alsaeed"] .ae-story-journey-preview{border:1px solid #b28b43;border-radius:15px;background:#143f4c;overflow:hidden;margin-bottom:24px;display:grid;grid-template-columns:minmax(0,1fr) 200px;align-items:center;color:#fff;box-shadow:0 8px 28px #183a4810}
html[data-site="alsaeed"] .ae-story-scenes{min-width:0}
html[data-site="alsaeed"] .ae-story-scenes>a{height:164px;display:grid;grid-template-columns:1fr 45%;gap:15px;align-items:center;text-decoration:none;color:#fff;animation:aeStoryImageIn .45s ease-out}
html[data-site="alsaeed"] .ae-story-scenes>a[hidden]{display:none!important}
html[data-site="alsaeed"] .ae-story-scene-copy{padding:18px 24px;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
html[data-site="alsaeed"] .ae-story-scene-copy>small{color:#e9c779;font-size:.7rem}
html[data-site="alsaeed"] .ae-story-scene-copy>b{font-size:1.3rem;line-height:1.5;color:#fff}
html[data-site="alsaeed"] .ae-story-scene-copy>span{font-size:.78rem;color:#d9e5df;line-height:1.6}
html[data-site="alsaeed"] .ae-story-scene-copy>em{font-style:normal;font-size:.73rem;color:#f5d78d;display:flex;gap:10px;align-items:center;margin-top:5px}
html[data-site="alsaeed"] .ae-story-scene-copy svg{width:19px;height:19px}
html[data-site="alsaeed"][dir="ltr"] .ae-story-scene-copy svg{transform:rotate(180deg)}
html[data-site="alsaeed"] .ae-story-scenes>a>img{display:block;width:100%;height:164px;object-fit:contain;background:#e9eee4}
html[data-site="alsaeed"] .ae-story-progress{display:flex;align-items:center;justify-content:center;gap:13px;padding:35px 18px 5px;direction:ltr;position:relative}
html[data-site="alsaeed"][dir="rtl"] .ae-story-progress{direction:rtl}
html[data-site="alsaeed"] .ae-story-progress>button{width:32px;min-width:32px;height:46px;border:0;background:none;color:#c6d8d3;font:inherit;font-size:.65rem;cursor:pointer;position:relative;transform:translateY(calc(var(--dot)*-10px));padding:0;display:flex;align-items:center;flex-direction:column;gap:5px}
html[data-site="alsaeed"] .ae-story-progress>button>span{display:block;width:13px;height:13px;border:2px solid #c9a457;background:#244c55;border-radius:50%;position:relative}
html[data-site="alsaeed"] .ae-story-progress>button:not(:last-child)>span::after{content:'';position:absolute;inset-inline-start:14px;bottom:5px;width:31px;height:11px;border-inline-end:1px solid #a38c5d;border-bottom:1px solid #a38c5d}
html[data-site="alsaeed"] .ae-story-progress>button[aria-pressed="true"]>span{background:#ffe1a1;border-color:#ffe1a1;box-shadow:0 0 0 5px #edc36a24,0 0 18px #fbd4837a}
html[data-site="alsaeed"] .ae-story-progress>button[aria-pressed="true"]>b{color:#ffe1a1}
html[data-site="alsaeed"] .ae-home-story .ae-stair-line{stroke:#bd9140;stroke-width:3;stroke-dasharray:5 10;animation:aeStorySteps 3s linear infinite}
html[data-site="alsaeed"] body #app .ae-home-story a.ae-story-stage.ae-story-current{outline:2px solid #c99b43;outline-offset:3px;box-shadow:0 8px 0 -1px #dfc183,0 9px 0 #b68d40}
html[data-site="alsaeed"] .ae-home-story[data-ae-story-paused="true"] .ae-stair-line{animation-play-state:paused}
html[data-site="alsaeed"] .ae-story-scenes>a:focus-visible,html[data-site="alsaeed"] .ae-story-progress>button:focus-visible{outline:3px solid #ffe1a1;outline-offset:-4px}
@keyframes aeStoryImageIn{from{opacity:.65}to{opacity:1}}
@keyframes aeStorySteps{to{stroke-dashoffset:-30}}
@media(max-width:900px){html[data-site="alsaeed"] .ae-story-journey-preview{grid-template-columns:minmax(0,1fr) 150px}html[data-site="alsaeed"] .ae-story-scenes>a{grid-template-columns:1fr 41%}html[data-site="alsaeed"] .ae-story-progress{gap:3px;padding-inline:8px}html[data-site="alsaeed"] .ae-story-progress>button:not(:last-child)>span::after{width:21px}html[data-site="alsaeed"] .ae-story-scene-copy>b{font-size:1.1rem}}
@media(max-width:600px){html[data-site="alsaeed"] .ae-story-journey-preview{grid-template-columns:1fr;margin-bottom:22px}html[data-site="alsaeed"] .ae-story-scenes>a{height:138px;grid-template-columns:1fr 43%;gap:8px}html[data-site="alsaeed"] .ae-story-scenes>a>img{height:138px}html[data-site="alsaeed"] .ae-story-scene-copy{padding:12px 16px;gap:4px}html[data-site="alsaeed"] .ae-story-scene-copy>b{font-size:.99rem}html[data-site="alsaeed"] .ae-story-scene-copy>span{font-size:.66rem}html[data-site="alsaeed"] .ae-story-scene-copy>em{font-size:.63rem}html[data-site="alsaeed"] .ae-story-progress{border-top:1px solid #b28b4340;padding:12px 15px 8px;gap:25px;justify-content:center}html[data-site="alsaeed"] .ae-story-progress>button{transform:none;height:34px;gap:2px}html[data-site="alsaeed"] .ae-story-progress>button:not(:last-child)>span::after{height:0;width:43px;bottom:4px}}
@media(prefers-reduced-motion:reduce){html[data-site="alsaeed"] .ae-home-story .ae-stair-line,html[data-site="alsaeed"] .ae-story-scenes>a{animation:none!important}}
/* The preserved testimonial viewer remains centered on phones and desktop. */
html[data-site="alsaeed"] dialog.sa-review-dialog{inset:0;margin:auto!important;max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);overflow:auto}
html[data-site="alsaeed"] .ae-story-photo>img{height:auto}
@media(max-width:600px){html[data-site="alsaeed"] .ae-story-media-grid{grid-template-columns:1fr}html[data-site="alsaeed"] .ae-story-media-grid>.ae-story-photo{grid-template-columns:100px 1fr}}
