/* Agaaz hero "Light, engineered". Scoped to #hero. The film is the stage; copy sits on the dark side of the same field. */
#hero.ag-hero::before,#hero.ag-hero::after{content:none!important}
#hero.ag-hero,[data-theme="light"] #hero.ag-hero{position:relative;overflow:hidden;color-scheme:dark;background:#06090f!important;background-image:none!important;min-height:min(calc(100svh - 5rem),900px)}
#hero .ag-hero-inner{position:relative;min-height:min(calc(100svh - 5rem),900px);max-width:1520px;gap:0;padding-top:1.5rem;padding-bottom:1.25rem;box-sizing:border-box;align-items:center}
#hero .ag-hero-inner::before,#hero .ag-scroll-hint,#hero .ag-siderays,#hero .ag-bglow-layer{content:none;display:none!important}
#hero .ag-hero-content{position:relative;z-index:2;flex:0 0 40%;max-width:40%;text-align:start}

/* type: the site's own faces, dark stage in both themes */
#hero .ag-eyebrow{font:500 .86rem/1.5 var(--ff-body);letter-spacing:.01em;text-transform:none;background:none!important;border:0!important;box-shadow:none!important;padding:0;color:#a9c4ee!important;-webkit-backdrop-filter:none;backdrop-filter:none}
#hero .ag-eyebrow::before{content:none!important}
#hero .ag-hero-title{font-size:clamp(2.9rem,5.1vw,5.2rem);line-height:.99;text-wrap:balance;text-shadow:none!important;margin-bottom:1.35rem;color:#f2f5fa!important}
#hero .ag-hero-title .h-gd{animation:none!important;filter:none!important;background:none!important;-webkit-text-fill-color:currentColor!important;color:inherit!important}
#hero .ag-hero-sub{max-width:30em;margin-left:0;margin-right:0;color:#d5deeb!important}
#hero .ag-hero-para{max-width:34em;margin-left:0;margin-right:0;font-size:.86rem;line-height:1.7;color:rgba(196,209,229,.66)!important;margin-bottom:1.6rem}
#hero .ag-hero-stats{gap:0;margin:0 0 1.9rem;justify-content:flex-start}
#hero .ag-hero-stat{flex-direction:row;align-items:baseline;gap:.55rem;padding:0 1.6rem}
#hero .ag-hero-stat:first-child{padding-inline-start:0}
#hero .ag-hero-stat+.ag-hero-stat{border-inline-start:1px solid rgba(184,205,235,.2)}
#hero .agh-num{font-family:var(--ff-display);line-height:1;font-size:1.5rem;font-weight:600;letter-spacing:-.01em;font-variant-numeric:tabular-nums;background:none!important;-webkit-text-fill-color:#e8eef8!important;color:#e8eef8!important;text-shadow:none!important}
#hero .ag-hero-stat-label{text-transform:none;letter-spacing:0;font-size:.82rem;color:rgba(196,209,229,.78)!important}
#hero .ag-hero-ctas{justify-content:flex-start}
#hero .ag-btn-primary,#hero .ag-btn-ghost,#hero .ag-btn-wa{text-shadow:none!important}
#hero .ag-btn-ghost{color:#e8eef8!important;border-color:rgba(214,226,245,.32)!important}
#hero .ag-hero-contact-link{display:inline-flex;align-items:center;min-height:44px;font-family:var(--ff-body);font-variant-numeric:tabular-nums;letter-spacing:.01em;color:rgba(214,226,245,.8)!important}

/* the stage: full height, right of the copy, dissolving into the field on its inner edge */
#hero .ag-hero-3d.agh{position:static;flex:1 1 auto;max-width:none;min-height:0;align-self:stretch;display:flex;flex-direction:column;justify-content:flex-end;overflow:visible}
#hero .agh::before{content:none}
#hero .agh-stage{position:absolute;top:0;bottom:0;right:max(0px,calc((100% - 1700px)/2));width:min(64%,1260px);z-index:0;direction:ltr;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 30%),linear-gradient(transparent,#000 7%,#000 86%,transparent);-webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent,#000 30%),linear-gradient(transparent,#000 7%,#000 86%,transparent);mask-composite:intersect}
#hero .agh-stage picture,#hero .agh-poster,#hero .agh-film{position:absolute;inset:0;width:100%;height:100%;display:block;max-width:none;margin:0;object-fit:cover;object-position:50% 50%}
#hero .agh-film{opacity:0;transition:opacity .4s cubic-bezier(.16,1,.3,1);pointer-events:none}
#hero .agh-on .agh-film{opacity:1}
html[dir="rtl"] #hero .agh-stage,html:lang(ar) #hero .agh-stage{right:auto;left:max(0px,calc((100% - 1700px)/2));-webkit-mask-image:linear-gradient(270deg,transparent,#000 30%),linear-gradient(transparent,#000 7%,#000 86%,transparent);mask-image:linear-gradient(270deg,transparent,#000 30%),linear-gradient(transparent,#000 7%,#000 86%,transparent)}

/* quiet credit line + controls, no viewer chrome */
#hero .agh-meta{position:relative;z-index:2;align-self:flex-end;display:grid;justify-items:end;gap:.1rem;max-width:34rem;text-align:end}
#hero .agh-cap{margin:0;font-size:.82rem;line-height:1.5;color:rgba(222,232,248,.84)}
#hero .agh-cap a{color:#fff;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(159,200,255,.5)}
#hero .agh-ctl{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:0 .2rem}
#hero .agh-ctl button,#hero .agh-about summary{appearance:none;background:none;border:0;min-height:44px;padding:0 .7rem;font:inherit;font-size:.78rem;color:rgba(205,218,239,.62);cursor:pointer;border-radius:4px;list-style:none}
#hero .agh-about summary::-webkit-details-marker{display:none}
#hero .agh-ctl button:hover,#hero .agh-about summary:hover,#hero .agh-about[open] summary{color:#fff}
#hero .agh-ctl button:active,#hero .agh-about summary:active{opacity:.65}
#hero .agh-ctl button:focus-visible,#hero .agh-about summary:focus-visible{outline:2px solid #9fc8ff;outline-offset:-3px}
#hero .agh-ctl [hidden]{display:none}
#hero .agh-about{display:contents}
#hero .agh-about summary{display:inline-flex;align-items:center}
#hero .agh-note{flex-basis:100%;margin:0 .7rem .4rem;font-size:.72rem;line-height:1.55;color:rgba(186,200,222,.78);text-align:end}

@media (min-width:769px) and (max-width:1100px){
  #hero .ag-hero-content{flex-basis:48%;max-width:48%}
  #hero .agh-stage{width:62%}
  #hero .ag-hero-para{display:none}
}
/* phones: a portrait film of its own at the top, the headline rises out of its dark lower edge, actions right under it */
@media (max-width:768px){
  #hero.ag-hero,#hero .ag-hero-inner{min-height:0}
  #hero .ag-hero-inner{flex-direction:column;align-items:stretch;gap:0;padding:0 1.15rem 2.5rem}
  #hero .ag-hero-content,#hero .ag-hero-3d.agh{display:contents!important}
  #hero .agh-stage{order:1;position:relative;inset:auto;flex:none;width:calc(100% + 2.3rem);margin:0 -1.15rem;height:min(125vw,60svh);
    -webkit-mask-image:linear-gradient(#000 62%,transparent);mask-image:linear-gradient(#000 62%,transparent)}
  #hero .ag-eyebrow{order:2;position:relative;z-index:2;align-self:flex-start;font-size:.78rem;margin:-3.6rem 0 .5rem}
  #hero .ag-hero-title{order:3;position:relative;z-index:2;font-size:clamp(2rem,10vw,3.1rem);margin:0}
  #hero .ag-hero-ctas{order:4;flex-direction:row;flex-wrap:wrap;gap:.6rem;margin:1rem 0 0}
  #hero .ag-hero-ctas>a{flex:1 1 9.5rem;justify-content:center;text-align:center;min-height:48px;width:auto;white-space:nowrap;padding:.7rem;font-size:.9rem;gap:.35rem}
  #hero .ag-hero-cta-secondary{order:5}
  #hero .agh-meta{order:6;justify-items:start;text-align:start;margin-top:1.2rem;max-width:none}
  #hero .agh-ctl{justify-content:flex-start;margin-inline-start:-.7rem}
  #hero .agh-note{text-align:start}
  #hero .ag-hero-sub{order:7;margin-top:1.4rem}
  #hero .ag-hero-para{order:8;max-width:100%}
  #hero .ag-hero-stats{order:9;margin:0}
  html:lang(ar) #hero .agh-stage,html[dir="rtl"] #hero .agh-stage{left:auto;-webkit-mask-image:linear-gradient(#000 62%,transparent);mask-image:linear-gradient(#000 62%,transparent)}
}
@media (prefers-reduced-motion:reduce){#hero .agh *{transition:none!important}}
/* the living optic: the loop sits on the intro and appears in one step (a fade would double the lens) */
#hero .agh .agh-film.agh-amb{opacity:0;transition:none}
#hero .agh.agh-loop .agh-film.agh-amb{opacity:1}
/* the hero is a dark stage in both themes: it never inherits the page text colour. Light-theme rules are kept out of
   #hero at their sources (../navfix/hero_island.py), so no per-theme patches are needed here. */
#hero.ag-hero{color:#d5deeb;
  /* the light theme redefines these tokens on <html>; the stage keeps its dark values (translated markup reads them) */
  --electric:#7eb8f7;--teal:#72e8d4;--white:#edf4ff;--void:#06080f;--deep:#0b0f1a;--surface:#0f1524;--rim:#1c2640;--muted:#6a82a8;--dim:#3a4e68;
  --h-bg:#040610;--h-ink:#edf4ff;--h-mut:#6a82a8;--bg:#06080f;--bg2:#0b0f1a;--panel:#0f1524;--border:#1c2640;
  --text:#edf4ff;--text-muted:#6a82a8;--text-dim:#3a4e68;--accent:#7eb8f7;--accent2:#72e8d4}
