/* Saudi host slider inside the Creative theme (html.embed): theme container, Cairo, crimson, square buttons */
.embed{
  --cr:#C8244F;--dk2:#1E1E20;
  --f-ar:'Cairo',system-ui,sans-serif;
  --box:min(1200px,calc(100vw - 40px));
  --gut:calc((100vw - var(--box)) / 2);
  --gut-r:calc((100vw - var(--box)) / 2);
}
.embed .top{display:none}
.embed body,.embed .copy,.embed .side,.embed .hint{font-family:var(--f-ar)}

/* giant word sized to the container, not the screen */
.embed .word{font-size:min(calc(var(--box) / var(--len,6) * 1.3), 30vh);top:9%}
.embed .desk{inset-inline-end:var(--gut-r);top:27%}

/* copy: same voice as the theme hero (crimson skewed label, heavy Cairo heading, square crimson button) */
.embed .copy{top:15%;gap:12px}
.embed .eyebrow{justify-self:start;background:var(--cr);color:#fff;padding:3px 16px;font-size:13px;font-weight:700;letter-spacing:0;text-transform:none;gap:10px}
.embed .eyebrow::before{width:12px;height:8px;background:#fff;border-radius:0;transform:skewX(-28deg)}
.embed .copy h1{font-weight:900;line-height:1.3;font-size:clamp(24px,2.6vw,40px)}
.embed .copy p{font-size:15px;line-height:1.9;color:#4a4f5a}
.embed .btn{border-radius:0;background:var(--cr);padding:11px 26px;font:700 14.5px var(--f-ar)}
.embed .btn:hover{background:#DB2F5E;transform:none}
.embed .side strong{font-weight:800}

/* client tabs + arrows: square, crimson progress like the theme slider bar */
.embed .tab{border-radius:0;font-size:11.5px}
.embed .tab[aria-selected="true"]{background:#fff;box-shadow:0 6px 18px -8px rgba(0,0,0,.25)}
.embed .tab .pg i{background:var(--cr)}
.embed .arrow{border-radius:0;background:var(--dk2);color:#fff;border-color:var(--dk2)}
.embed .arrow:hover{background:var(--cr);border-color:var(--cr)}
.embed .hint{border-radius:0}
.embed .nav{background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--c) 8%,#eef0f2) 60%)}

@media (max-width:900px) and (orientation:portrait){
  .embed{--box:calc(100vw - 32px)}
  .embed .copy{top:16px}
  .embed .word{font-size:min(calc(96vw / var(--len,6) * 1.38), 20vh);top:auto}
  .embed .desk{inset-inline-end:-8vw}
}
@media (max-height:500px) and (orientation:landscape){
  .embed .copy{top:8%}
  .embed .word{font-size:min(calc(70vw / var(--len,6) * 1.38), 34vh)}
}
/* desktop inside the site: shorter copy column, phone tucked behind the host's shoulder */
@media (min-width:901px){
  .embed .copy{width:min(26vw,330px)}
  .embed .copy p{-webkit-line-clamp:3}
  .embed .phone{inset-inline-start:calc(50% - 13vw)}
  .embed .side{width:min(22vw,280px)}
  .embed .side span{display:none}
}
/* final layout inside the site: no description paragraph; word on top, copy and screens below it — nothing overlaps */
.embed .copy p{display:none}
@media (min-width:901px){
  .embed .word{top:5%;font-size:min(calc(var(--box) / var(--len,6) * 1.18), 23vh)}
  .embed .copy{top:auto;bottom:calc(36% - 20px);width:min(25vw,320px)}
  .embed .copy h1{font-size:clamp(22px,2.1vw,32px)}
  .embed .desk{top:31%;width:min(36vw,520px)}
  .embed .desk .vp{height:calc(min(36vw,520px) * .54)}
  .embed .host{height:min(78%,calc(100vw * 1.05))}
}
@media (min-width:901px) and (max-width:1180px){
  .embed .copy{width:min(30vw,300px)}
  .embed .desk{width:min(34vw,380px)}
  .embed .desk .vp{height:calc(min(34vw,380px) * .54)}
}
/* neutral ground in the theme's greys: crimson is the only accent; the giant word in charcoal */
.embed .stage{background:radial-gradient(55% 65% at 50% 100%,#ffffff 0%,rgba(255,255,255,0) 70%),linear-gradient(180deg,#f4f4f5 0%,#e5e5e8 100%)}
.embed .word span{background:linear-gradient(180deg,#2b2b2f 0%,rgba(43,43,47,.72) 45%,rgba(43,43,47,.14) 82%,rgba(43,43,47,0) 100%);-webkit-background-clip:text;background-clip:text}
.embed .nav{background:linear-gradient(180deg,rgba(229,229,232,0),#e5e5e8 60%)}
/* devices as one pair on the far side: phone in FRONT of the desktop, never behind the host */
.embed .desk{z-index:1}
.embed .phone{z-index:3;inset-inline-start:auto;inset-inline-end:calc(var(--gut-r) - 4px)}
@media (min-width:901px){
  .embed .desk{inset-inline-end:calc(var(--gut-r) + 6vw)}
  .embed .phone{top:43%;width:min(11vw,150px)}
  .embed .phone .vp{height:calc(min(11vw,150px) * 1.9)}
}
@media (min-width:901px) and (max-width:1180px){.embed .phone{display:block}}
@media (max-width:900px) and (orientation:portrait){
  .embed .desk{inset-inline-end:-14vw}
  .embed .phone{inset-inline-end:3vw}
}
.embed .side{display:none}
.embed .host{transition:none}

/* ===== Home 1 — dark cinematic studio (overrides the neutral ground above) ===== */
.embed .stage{
  background:
    radial-gradient(34% 46% at 50% 42%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(52% 62% at 50% 52%, rgba(200,36,79,.42) 0%, rgba(200,36,79,.10) 45%, rgba(200,36,79,0) 72%),
    radial-gradient(70% 40% at 50% 104%, rgba(200,36,79,.35), rgba(200,36,79,0) 70%),
    linear-gradient(180deg,#19191c 0%,#121214 100%)}
/* Sadu-inspired diamond lattice, faint, only around the host */
.embed .stage::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.5;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 1px, transparent 1px 34px);
  -webkit-mask-image:radial-gradient(48% 60% at 50% 55%,#000 0%,transparent 75%);mask-image:radial-gradient(48% 60% at 50% 55%,#000 0%,transparent 75%)}
/* light beams from above, drifting slowly */
.embed .stage::after{content:"";position:absolute;left:50%;top:-30%;width:140%;height:150%;transform:translateX(-50%);z-index:0;pointer-events:none;
  background:conic-gradient(from 180deg at 50% 0%, transparent 0deg 160deg, rgba(255,255,255,.07) 168deg, transparent 174deg, rgba(255,255,255,.05) 180deg, transparent 186deg, rgba(255,255,255,.07) 192deg, transparent 200deg 360deg);
  animation:beams 14s ease-in-out infinite alternate;mix-blend-mode:screen}
@keyframes beams{from{transform:translateX(-50%) rotate(-4deg)}to{transform:translateX(-50%) rotate(4deg)}}
.embed .dust{position:absolute;inset:0;width:100%;height:100%;z-index:4;pointer-events:none}
/* rim light so the black bisht separates from the dark ground */
.embed .host{filter:drop-shadow(0 0 1px rgba(255,255,255,.35)) drop-shadow(0 0 28px rgba(200,36,79,.45))}
.embed .host::after{background:radial-gradient(50% 50% at 50% 50%,rgba(0,0,0,.6),transparent 70%)}
/* type on dark */
.embed .word span{background:linear-gradient(180deg,#ffffff 0%,rgba(255,255,255,.78) 40%,rgba(255,255,255,.12) 82%,rgba(255,255,255,0) 100%);-webkit-background-clip:text;background-clip:text}
.embed .copy h1{color:#fff}
.embed .url{color:rgba(255,255,255,.6)}
.embed .dev{box-shadow:0 40px 80px -24px rgba(0,0,0,.8),0 0 0 1px rgba(255,255,255,.08)}
.embed .phone{border-color:#000}
.embed .nav{background:linear-gradient(180deg,rgba(18,18,20,0),#121214 62%)}
.embed .tab{color:rgba(255,255,255,.55)}
.embed .tab:hover{color:#fff}
.embed .tab[aria-selected="true"]{background:none;color:#fff;box-shadow:none}
.embed .tab .pg{background:rgba(255,255,255,.14)}
.embed .arrow{background:transparent;border-color:rgba(255,255,255,.25);color:#fff}
.embed .hint{background:rgba(255,255,255,.08);color:rgba(255,255,255,.75)}
@media (prefers-reduced-motion:reduce){.embed .stage::after{animation:none}}

/* short line back under the heading (first sentence only, max 2 lines), on the dark ground */
.embed .copy p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:-4px 0 4px;
  font-size:14.5px;line-height:1.85;color:rgba(255,255,255,.68)}
@media (max-width:900px) and (orientation:portrait){.embed .copy p{display:none}}
@media (max-height:500px) and (orientation:landscape){.embed .copy p{display:none}}
/* GPU-only motion: no filter on the moving host (it forced a re-render on every crossfade frame) */
.embed .host{filter:none}
.embed .host::before{content:"";position:absolute;inset:8% -18% -4%;z-index:-1;pointer-events:none;
  background:radial-gradient(45% 50% at 50% 45%,rgba(200,36,79,.38),rgba(200,36,79,0) 70%)}
.embed .stage::after{mix-blend-mode:normal;will-change:transform}
