/* Cinematic layers are decorative and never carry text or focus. */
.cinema-dialog{background:#1B304C;color:#E4E7ED;border:1px solid #B9B7BD;padding:.8rem;max-width:min(94vw,70rem);max-height:94vh}
.cinema-dialog::backdrop{background:#1b304cdd}
.cinema-dialog img{display:block;max-width:100%;max-height:78vh;object-fit:contain;margin:auto}
.cinema-dialog button{display:block;margin-inline-start:auto;margin-block-end:.55rem}

/* Internal artwork is a lighting layer behind the editorial composition. */
.aida-inner { overflow-x: clip; }
.aida-shell { position:relative; isolation:isolate; }
.cinema-atmosphere {
    --wash: radial-gradient(ellipse at 72% 34%, #5c728827, transparent 64%);
    --geometry: repeating-linear-gradient(117deg, transparent 0 74px, #b9b7bd1c 75px, transparent 77px 112px);
    position:absolute; z-index:-1; pointer-events:none; inset-block-start:0;
    inset-inline-start:50%; transform:translateX(-50%); width:100vw;
    height:clamp(23rem,55vw,45rem); overflow:hidden;
    background:var(--wash),linear-gradient(to bottom,#243c5a72,transparent 92%);
    mask-image:linear-gradient(#000 42%,transparent 100%);
}
[dir=rtl] .cinema-atmosphere { transform:translateX(50%); }
.cinema-atmosphere::before {
    content:""; position:absolute; inset:-2rem 0;
    background:var(--geometry);
    mask-image:radial-gradient(ellipse at 64% 28%,#000,transparent 73%);
}
[data-composition=about] .cinema-atmosphere {
    --geometry: repeating-linear-gradient(100deg,transparent 0 45px,#b9b7bd24 46px,transparent 49px 89px);
}
[data-composition=qualifications] .cinema-atmosphere {
    --wash: radial-gradient(ellipse at 50% 12%,#b9b7bd33,transparent 65%);
    --geometry: repeating-radial-gradient(ellipse at 50% 8%,transparent 0 70px,#b9b7bd2b 71px,transparent 73px 106px);
}
[data-composition=practice] .cinema-atmosphere {
    --wash: linear-gradient(125deg,#243c5a 12%,#50677f55 48%,transparent 76%);
    --geometry: repeating-linear-gradient(130deg,transparent 0 100px,#b9b7bd34 101px,transparent 103px 163px);
}
[data-composition=insights] .cinema-atmosphere {
    --geometry: repeating-linear-gradient(0deg,transparent 0 28px,#b9b7bd23 29px,transparent 30px 51px),linear-gradient(90deg,transparent 47%,#b9b7bd30 49%,transparent 51%);
}
[data-composition=contact] .cinema-atmosphere {
    --wash: radial-gradient(ellipse at 48% 14%,#788fa958,transparent 66%);
    --geometry: radial-gradient(ellipse at 50% 16%,transparent 24%,#b9b7bd49 24.4%,transparent 25% 31%,#b9b7bd24 31.4%,transparent 32%);
}
@media(prefers-reduced-motion:no-preference){
}
@media(prefers-reduced-motion:reduce){
    html{scroll-behavior:auto!important}
    .cinema-atmosphere::before,.hero-art{transform:none}
}


.editorial-chapter .aida-profile-record > strong {display:inline-block}

/* Initial entrances are CSS-driven, so a late or failed script cannot block the page. */
@media(prefers-reduced-motion:no-preference){
    [dir=ltr],html[lang=en]{--entry-start:-1;--entry-end:1}
    [dir=rtl],html[lang=fa]{--entry-start:1;--entry-end:-1}
    :is(.top > .brand,.aida-top > a:first-child){
        --entry-y:8px;--entry-opacity:.32;
        animation:aida-page-enter 800ms cubic-bezier(.22,.73,.24,1) both;
    }
    :is(.top .nav > a,.aida-inner-nav > a,.top .switch,.aida-lang,.top .menu){
        --entry-x:calc(13px * var(--entry-start));--entry-opacity:.12;--entry-delay:110ms;
        animation:aida-page-enter 720ms cubic-bezier(.22,.73,.24,1) var(--entry-delay) both;
    }
    :is(.top .nav,.aida-inner-nav) > a:nth-child(2){--entry-delay:220ms}
    :is(.top .nav,.aida-inner-nav) > a:nth-child(3){--entry-delay:330ms}
    :is(.top .nav,.aida-inner-nav) > a:nth-child(4){--entry-delay:440ms}
    :is(.top .nav,.aida-inner-nav) > a:nth-child(5){--entry-delay:550ms}
    :is(.top .switch,.aida-lang){--entry-delay:660ms}
    :is(.hero-copy h1,.aida-main-article h1){
        --entry-x:calc(36px * var(--entry-start));--entry-opacity:.04;
        animation:aida-title-enter 940ms cubic-bezier(.22,.73,.24,1) 230ms both;
    }
    :is(.hero-copy p,.aida-main-article .aida-profile-lead,.aida-main-article > p:not(.aida-form-state)){
        --entry-y:14px;--entry-opacity:.08;
        animation:aida-page-enter 820ms cubic-bezier(.22,.73,.24,1) 365ms both;
    }
    :is(.hero-copy .btn,.aida-contact-form button[type=submit]){
        --entry-y:8px;--entry-opacity:.08;
        animation:aida-page-enter 770ms cubic-bezier(.22,.73,.24,1) 500ms both;
    }
    .scroll-enter{
        --entry-x:calc(21px * var(--entry-start));--entry-opacity:.08;
        animation:aida-title-enter 810ms cubic-bezier(.22,.73,.24,1) var(--entry-delay,0ms) both;
    }
    .scroll-enter-opposite{--entry-x:calc(21px * var(--entry-end))}
    :is(.top,.aida-top,.hero-copy,.aida-contact-form) :focus-visible,
    .scroll-enter:focus-within{animation:none}
}
@keyframes aida-page-enter{
    from{opacity:var(--entry-opacity,.1);transform:translate3d(var(--entry-x,0px),var(--entry-y,0px),0)}
    to{opacity:1;transform:none}
}
@keyframes aida-title-enter{
    from{opacity:var(--entry-opacity,.08);transform:translateX(var(--entry-x,0px));clip-path:inset(0 19% 8%)}
    to{opacity:1;transform:none;clip-path:inset(0)}
}
