@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@1&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+Arabic:wght@400;500;700&display=swap');
:root{--bg:#111211;--fg:#edede5;--muted:#90948e;--line:#ffffff25;--accent:#c3d88e;--violet:#60368e;--violet-light:#c7ade6;--violet-soft:#d7c2eb;--violet-muted:#a79ab6;--violet-line:#b994da60;--violet-wash:#f0e7f8}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--bg);color:var(--fg);font-family:'DM Sans','Noto Sans Arabic',sans-serif;font-size:16px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button{color:inherit;background:none;border:0}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:6px}button:hover,a:hover{color:var(--accent)}[hidden]{display:none!important}header{height:94px;display:flex;align-items:center;justify-content:space-between;padding:0 4%;position:absolute;top:0;left:0;width:100%;z-index:40}.wordmark{font-size:47px;letter-spacing:-6px;font-weight:700;line-height:1}.wordmark span{font-size:12px;letter-spacing:0;vertical-align:top;margin-left:8px}.edition,.tiny,.eyebrow{font-size:10px;letter-spacing:1.1px;line-height:1.6}nav{display:flex;gap:24px;align-items:center}nav button{font-size:11px;letter-spacing:1px}#menuButton{border:1px solid #ffffff60;border-radius:30px;padding:11px 17px}#menuButton span{margin-left:20px}#motion{font-size:18px;width:25px}.progress{position:fixed;top:0;left:0;width:0;height:3px;background:var(--accent);z-index:100}.hero{min-height:850px;height:100svh;position:relative;padding:125px 4% 35px;overflow:hidden}.hero-top,.hero-bottom{display:flex;align-items:center;justify-content:space-between}.status{font-size:10px;letter-spacing:1.2px;display:flex;gap:8px;align-items:center}.status i{width:6px;height:6px;background:var(--accent);border-radius:50%;box-shadow:0 0 12px #c3d88e66}.hero-title{position:relative;z-index:5;pointer-events:none;margin-top:38px}h1{font-size:clamp(55px,8.4vw,145px);font-weight:500;letter-spacing:-.07em;line-height:.98;margin:0}h1>span{display:block}h1 em{font-weight:400;font-family:Georgia,serif;display:block;text-align:right;font-size:.96em;letter-spacing:-.065em;margin-top:10px;padding-right:5%}.ribbon-stage{position:absolute;top:37%;height:43%;width:100%;left:0;perspective:1000px;isolation:isolate}#ribbon{width:100%;height:100%;position:relative;transform-style:preserve-3d}.ribbon-item{position:absolute;left:50%;top:36%;width:195px;height:135px;margin-left:-97px;margin-top:-67px;backface-visibility:hidden;transform-style:preserve-3d;will-change:transform;border:1px solid #ffffff30;background:#171817;box-shadow:0 12px 25px #0006;transition:filter .2s;overflow:hidden}.ribbon-item img{width:100%;height:100%;object-fit:cover}.ribbon-item:hover{filter:brightness(1.2)}.hero-monogram{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;pointer-events:none;font-family:Georgia,serif;font-style:italic;font-size:280px;line-height:1;color:var(--fg);text-shadow:0 12px 45px #0007;z-index:15}.hero-monogram span{font-family:'DM Sans',sans-serif;font-size:85px;margin-top:70px;color:var(--accent);margin-left:-20px}.ribbon-caption{position:absolute;bottom:-8px;left:50%;transform:translateX(-50%);font-size:8px;letter-spacing:1.6px;white-space:nowrap;color:var(--muted)}.hero-bottom{position:absolute;bottom:35px;left:4%;right:4%;align-items:flex-end}.hero-bottom p{font-size:14px;line-height:1.6;max-width:210px;margin:0}.round-link{display:flex;gap:20px;align-items:center;font-size:10px;letter-spacing:1px}.round-link b{display:grid;place-items:center;border:1px solid #ffffff60;width:55px;height:55px;border-radius:50%;font-size:24px;font-weight:400}.hero-note{text-align:right;color:var(--muted)}.statement-zone{height:155vh;min-height:1100px}.statement-sticky{height:100vh;min-height:680px;position:sticky;top:0;display:flex;align-items:center;justify-content:center;overflow:hidden}.statement-sticky>.eyebrow{position:absolute;top:50px;left:4%;color:var(--muted)}.statement-card{width:365px;height:500px;background:var(--violet);padding:35px;position:relative;z-index:2;transform:scale(.85) rotate(-8deg);box-shadow:0 30px 70px #0003;will-change:transform;border-radius:48% 48% 2px 2px}.statement-card>.tiny{font-size:8px}.statement-card h2{font-family:Georgia,serif;font-size:48px;font-weight:400;line-height:1.04;letter-spacing:-2px;margin:44px 0 22px}.statement-card h2 em{color:var(--violet-soft)}.statement-card p{font-size:11px;max-width:210px;line-height:1.6;color:#f0e7f6}.signature{font:italic 40px Georgia;position:absolute;bottom:25px;right:35px;transform:rotate(-12deg)}.stat{position:absolute;display:flex;flex-direction:column;gap:10px}.stat strong{font:400 60px Georgia;color:var(--violet-soft)}.stat span{font-size:9px;letter-spacing:1px;color:var(--muted)}.stat-a{left:10%;top:32%}.stat-b{right:7%;top:30%}.stat-c{right:11%;bottom:22%}.stat-c strong{font-size:85px}.work-section{padding:60px 4% 120px}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:55px}.eyebrow{color:var(--muted);display:block;margin-bottom:20px}.section-heading h2,.contact h2{font-size:clamp(44px,6vw,90px);font-weight:400;letter-spacing:-.055em;line-height:1.05;margin:0}.section-heading h2 em,.contact h2 em{font-family:Georgia,serif;font-weight:400}.section-heading>p{color:var(--muted);font-size:13px;line-height:1.6;padding-bottom:5px}.filters{display:flex;gap:8px;border-top:1px solid var(--line);padding:20px 0 35px;flex-wrap:wrap}.filters button{padding:9px 17px;font-size:11px;border:1px solid var(--line);border-radius:30px;color:#aaa}.filters button.active{background:var(--fg);color:var(--bg);border-color:var(--fg)}#projects{display:grid;grid-template-columns:1fr 1fr;gap:60px 28px}.project-card:nth-child(3){grid-column:1/-1}.project-card .visual{aspect-ratio:1.38;overflow:hidden;position:relative;background:#292b26}.project-card:nth-child(3) .visual{aspect-ratio:2.2}.project-card img{width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.2,.7,.2,1)}.project-card:hover img{transform:scale(1.035)}.view-circle{position:absolute;right:24px;bottom:24px;width:68px;height:68px;background:var(--fg);color:#141814;border-radius:50%;display:grid;place-items:center;font-size:24px;transform:translateY(110px);transition:.4s}.project-card:hover .view-circle{transform:translateY(0)}.project-meta{display:flex;justify-content:space-between;align-items:flex-start;padding-top:18px;gap:12px}.project-meta h3{font-size:22px;font-weight:400;margin:0 0 8px;letter-spacing:-.5px}.project-meta p{font-size:10px;color:var(--muted);margin:0;letter-spacing:1px}.project-meta>span{font:italic 28px Georgia;color:var(--muted)}.reveal{opacity:0;transform:translateY(45px);transition:opacity .8s,transform .8s}.reveal.visible{opacity:1;transform:none}.contact{padding:100px 4% 0;background:#c4d492;color:#192218}.contact .eyebrow{color:#3d4a33}.contact h2{font-size:clamp(60px,8vw,120px)}.contact-button{border:1px solid #192218;padding:19px 25px;border-radius:50px;margin:40px 0 70px;display:flex;width:fit-content;gap:60px;align-items:center;font-size:12px}.contact-button:hover{background:#192218;color:#d8e6b5}footer{border-top:1px solid #19221840;padding:30px 0;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:9px;letter-spacing:1px}footer a:hover{color:#586c39}footer .wordmark{font-size:32px;letter-spacing:-4px}#case{padding-top:110px}.case-top{padding:25px 4% 60px}.back{font-size:11px;letter-spacing:1px;margin-bottom:55px;display:inline-block}.case-title{display:flex;justify-content:space-between;align-items:flex-end;gap:30px}.case-title h1{font-size:clamp(60px,10vw,150px);font-family:Georgia,serif;font-style:italic;font-weight:400}.case-title p{max-width:240px;color:var(--muted);font-size:13px;line-height:1.6}.case-cover{width:100%;height:70vh;min-height:400px;object-fit:cover}.case-info{display:grid;grid-template-columns:1fr 2fr;gap:12%;padding:90px 8%;border-bottom:1px solid var(--line)}.case-info h2{font:400 42px Georgia;margin:0 0 25px}.case-info p{color:#adb1a8;line-height:1.8;font-size:15px;max-width:640px}.case-info dl{font-size:11px;display:grid;grid-template-columns:100px 1fr;gap:20px;margin:0}.case-info dt{color:var(--muted)}.case-info dd{margin:0}.experience{padding:90px 4%}.experience-heading{margin-bottom:45px;display:flex;justify-content:space-between;gap:20px;align-items:flex-end}.experience-heading h2{font:400 48px Georgia;margin:0}.experience-heading p{color:var(--muted);font-size:12px;max-width:280px;line-height:1.7}.book-stage{background:#d0c6ae;padding:70px 8%;color:#222}.book{position:relative;display:flex;margin:auto;max-width:1000px;aspect-ratio:1.55;filter:drop-shadow(0 24px 22px #35261055);perspective:1500px}.page{width:50%;height:100%;padding:6%;background:#f3efdf;position:relative;overflow:hidden}.page.left{background:linear-gradient(90deg,#ede7d4 97%,#c5beaa);border-radius:3px 0 0 3px}.page.right{background:linear-gradient(90deg,#c6beaa,#f3efdf 3%);border-radius:0 3px 3px 0}.page h3{font:400 clamp(24px,4vw,58px) Georgia;margin:15% 0 8%;line-height:.95}.page .page-no{position:absolute;bottom:5%;font-size:9px}.page img{width:100%;height:75%;object-fit:cover}.page p{font-size:clamp(9px,1vw,14px);line-height:1.8}.page-kicker{font-size:9px;letter-spacing:2px}.flipping{animation:turnPage .65s ease-in-out}@keyframes turnPage{0%{transform:rotateY(0)}50%{transform:rotateY(-80deg);opacity:.4}100%{transform:rotateY(0);opacity:1}}.book-controls{display:flex;justify-content:center;align-items:center;gap:24px;margin-top:32px;font-size:11px}.book-controls button{border:1px solid #2225;border-radius:50%;width:45px;height:45px;font-size:20px}.book-controls button:disabled{opacity:.25;cursor:default}.book-controls button:hover{color:#222;background:#fff8}.book-controls .enlarge{width:auto;border-radius:30px;padding:0 20px;font-size:11px}.sketch-stage{background:#e9e1d2;color:#252b25;padding:25px 4% 40px;position:relative}.sketch-stage svg{display:block;width:min(800px,100%);height:auto;margin:auto}.drawline{fill:none;stroke:#333f35;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1500;stroke-dashoffset:1500;animation:draw 4s ease forwards}.sketch-stage small{font-size:10px;letter-spacing:1px}.sketch-stage svg text{fill:#384b3a;font-family:Georgia,serif}.sketch-controls{display:flex;justify-content:center;gap:10px}.sketch-controls button{border:1px solid #2225;padding:10px 20px;border-radius:30px;font-size:12px;color:#273429}.sketch-controls button.active{background:#273429;color:#eee}@keyframes draw{to{stroke-dashoffset:0}}.story-scroll{height:300vh;position:relative}.story-sticky{height:100vh;position:sticky;top:0;padding:45px 4%;display:flex;flex-direction:column;justify-content:center;overflow:hidden;background:#c4d88f;color:#1c3023}.story-screen{aspect-ratio:2.05;position:relative;max-height:70vh;overflow:hidden;background:#e9edce;display:flex;align-items:center;justify-content:center}.story-sun{width:20vw;height:20vw;max-width:300px;max-height:300px;background:#ed663a;border-radius:50%;position:absolute;left:13%;top:15%;transition:transform .15s}.story-disc{width:34vw;height:34vw;border:1px solid #375d36;border-radius:50%;position:absolute;right:8%;top:8%;transition:transform .15s}.story-disc:after,.story-disc:before{content:'';position:absolute;inset:10%;border:1px solid #375d36;border-radius:50%}.story-disc:after{inset:22%}.story-word{font:bold clamp(55px,12vw,180px) 'Manrope',sans-serif;letter-spacing:-.07em;z-index:2;line-height:.9;text-align:center}.story-caption{display:flex;justify-content:space-between;font-size:11px;margin-top:25px;gap:20px}.story-meter{height:3px;background:#213a2520;margin-top:20px}.story-meter i{display:block;background:#1c3023;height:3px;width:0}.mockups{display:grid;grid-template-columns:1fr 1fr;gap:25px}.mockup{background:var(--case-color);padding:10%;perspective:1100px;min-height:340px;display:grid;place-items:center;overflow:hidden}.mockup img{width:100%;height:100%;object-fit:cover;box-shadow:15px 20px 35px #0003;transform:rotate(-8deg);transition:transform .7s}.mockup:nth-child(2) img{width:65%;transform:rotateY(-25deg) rotate(8deg);border:12px solid #171717;border-radius:30px;aspect-ratio:.55}.mockup:hover img{transform:rotate(0) rotateY(0)}.next-case{display:block;padding:85px 8%;border-top:1px solid var(--line)}.next-case span{font-size:10px;color:var(--muted);display:block;margin-bottom:20px}.next-case strong{font:italic 70px Georgia}.prototype-pill{display:inline-block;border:1px solid var(--line);padding:8px 12px;font-size:9px;letter-spacing:1px;border-radius:30px;margin:0 0 25px}.case-footer{padding:25px 4%;font-size:10px;color:var(--muted);border-top:1px solid var(--line)}dialog{background:#111;color:#eee;border:1px solid #ffffff30;width:95vw;max-width:1300px;padding:60px 4% 30px}dialog::backdrop{background:#000d;backdrop-filter:blur(10px)}#closeLightbox{position:absolute;top:20px;right:25px;font-size:11px}#lightboxContent img{width:100%}#lightboxContent .book{width:100%;height:auto}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--fg);color:var(--bg);padding:12px 22px;border-radius:30px;z-index:100;font-size:12px;display:none}html[lang=ar] h1,html[lang=ar] h2,html[lang=ar] h1 em,html[lang=ar] h2 em{font-family:'Noto Sans Arabic',sans-serif;font-style:normal;letter-spacing:-.04em;line-height:1.4}html[lang=ar] .hero-title h1{font-size:clamp(50px,7vw,100px)}html[lang=ar] .hero-title{text-align:right}html[lang=ar] .hero-title em{text-align:left}html[lang=ar] .statement-card h2{font-size:42px}html[lang=ar] p,html[lang=ar] h2,html[lang=ar] .project-meta{text-align:right}.paused *{animation-play-state:paused!important}.paused .reveal{opacity:1;transform:none}.paused .drawline{stroke-dashoffset:0}
@media(min-width:1600px){.hero-title{margin-top:60px}.ribbon-item{width:240px;height:160px;margin-left:-120px}.hero-monogram{font-size:330px}}
@media(max-width:760px){header{height:78px;padding:0 5%}.wordmark{font-size:40px}.edition{display:none}nav{gap:15px}nav button{font-size:10px}.hero{min-height:760px;max-height:1000px;padding:110px 5% 25px}.hero-top .tiny{font-size:7px}.status{font-size:8px}.hero-title{margin-top:60px}h1{font-size:clamp(43px,10.5vw,80px);letter-spacing:-.065em}h1 em{margin-top:20px;padding:0}.ribbon-stage{top:40%;height:35%;perspective:800px}.ribbon-item{width:140px;height:100px;margin-left:-70px;margin-top:-50px}.hero-monogram{font-size:220px}.hero-monogram span{font-size:55px}.hero-bottom{left:5%;right:5%;bottom:28px;flex-wrap:wrap;gap:25px}.hero-bottom p{font-size:12px}.hero-note{display:none}.round-link{font-size:8px;gap:12px}.round-link b{width:40px;height:40px}.ribbon-caption{font-size:6px}.statement-zone{min-height:1000px;height:145vh}.statement-sticky{min-height:650px}.statement-card{width:270px;height:410px;padding:26px}.statement-card h2{font-size:39px;margin-top:35px}.statement-card p{font-size:10px}.stat strong{font-size:32px}.stat span{font-size:7px}.stat-a{left:6%;top:15%}.stat-b{right:6%;top:auto;bottom:8%}.stat-c{left:6%;right:auto;bottom:7%}.stat-c strong{font-size:45px}.work-section{padding:40px 5% 70px}.section-heading{display:block;margin-bottom:30px}.section-heading h2{font-size:46px}.section-heading>p{margin-top:25px;font-size:12px}#projects{grid-template-columns:1fr;gap:35px}.project-card:nth-child(3){grid-column:auto}.project-card:nth-child(3) .visual{aspect-ratio:1.38}.project-meta h3{font-size:20px}.project-meta p{font-size:8px}.filters{gap:6px;padding-top:15px}.filters button{font-size:10px;padding:8px 12px}.view-circle{width:42px;height:42px;right:15px;bottom:15px;transform:none;font-size:20px}.contact{padding:65px 5% 0}.contact h2{font-size:57px}.contact-button{gap:25px}footer{flex-wrap:wrap;gap:25px;font-size:8px}footer>*{width:40%}.case-top{padding:20px 5% 40px}.case-title{display:block}.case-title h1{font-size:65px}.case-title p{margin-top:20px}.case-cover{height:45vh;min-height:300px}.case-info{padding:50px 6%;grid-template-columns:1fr;gap:40px}.case-info h2{font-size:34px}.case-info p{font-size:13px}.experience{padding:50px 5%}.experience-heading{display:block}.experience-heading h2{font-size:36px}.book-stage{padding:35px 3%}.book{aspect-ratio:1.2}.page{padding:5%}.page h3{font-size:27px}.page p{font-size:8px}.page-kicker{font-size:6px}.book-controls{gap:12px;flex-wrap:wrap}.book-controls .enlarge{padding:0 12px}.mockups{grid-template-columns:1fr}.mockup{min-height:280px}.story-screen{aspect-ratio:.9;max-height:65vh}.story-sun{width:45vw;height:45vw;left:10%;top:20%}.story-disc{width:70vw;height:70vw;right:-5%;top:20%}.story-word{font-size:21vw}.story-caption{font-size:9px}.next-case{padding:55px 6%}.next-case strong{font-size:48px}.prototype-pill{font-size:8px}html[lang=ar] .hero-title h1{font-size:48px}html[lang=ar] .statement-card h2{font-size:35px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reveal{opacity:1;transform:none}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}.drawline{stroke-dashoffset:0}}

.hero-title{animation:arrive 1.2s cubic-bezier(.2,.7,.2,1) both}.hero-bottom{animation:arrive 1.4s .2s both}@keyframes arrive{from{opacity:0;translate:0 30px}to{opacity:1;translate:0 0}}.page.right{transform-origin:left center}html[lang=ar] .story-word{font-family:'Noto Sans Arabic',sans-serif;font-size:clamp(50px,9vw,140px);line-height:1.35;direction:rtl}html[lang=ar] .case-info p,html[lang=ar] .case-title p,html[lang=ar] .experience-heading p{direction:rtl}
/* Reference-led sections below the hero */
.statement-zone{height:125vh;min-height:900px;background:#090a0a}.statement-sticky{min-height:720px;height:100vh}.why-scene{position:relative;width:min(1120px,94vw);height:620px;display:grid;place-items:center;--why-enter:0;background-image:linear-gradient(#ffffff04 1px,transparent 1px),linear-gradient(90deg,#ffffff04 1px,transparent 1px);background-size:25% 25%;isolation:isolate}.why-outline{position:absolute;top:-14px;left:0;right:0;text-align:center;font:400 190px/.95 Georgia,serif;letter-spacing:-7px;color:transparent;-webkit-text-stroke:1px #ffffff0c;z-index:-1}.why-caption{position:absolute;bottom:7px;left:0;right:0;text-align:center;font-size:8px;letter-spacing:2px;color:var(--violet-muted)}.stat-lines{position:absolute;inset:0;width:100%;height:100%;color:var(--violet-light);pointer-events:none}.stat-lines path{stroke-dasharray:250;stroke-dashoffset:250;transition:stroke-dashoffset 1.2s .25s}.stat-lines circle{opacity:0;transition:opacity .5s .8s}.in-view .stat-lines path{stroke-dashoffset:0}.in-view .stat-lines circle{opacity:1}.statement-card{width:280px;height:420px;padding:82px 40px 35px;border-radius:140px 140px 0 0!important;background:linear-gradient(155deg,#37214f,var(--violet));box-shadow:none;transform:none;align-self:center;position:relative;margin-top:20px}.statement-card>.tiny{font-size:8px;letter-spacing:2.2px}.statement-card h2{font-size:35px;line-height:1.03;letter-spacing:-1.6px;margin:13px 0 34px;font-family:Georgia,serif;font-weight:400}.statement-card p{font-size:11px;line-height:1.45;margin:0;color:#f9f3fc;max-width:210px}.statement-card .signature{font:italic 37px Georgia,serif;left:38px;right:auto;bottom:27px;transform:rotate(-10deg)}.stat{width:245px;gap:12px;opacity:0;translate:0 15px;transition:opacity .8s .15s,translate .8s .15s}.in-view .stat{opacity:1;translate:0 0}.stat strong,.stat-c strong{font:400 62px/.95 Georgia,serif;letter-spacing:-3px;color:var(--violet-light)}.stat span{font-family:monospace;font-size:9px;line-height:1.7;letter-spacing:1.6px;color:#c7ccd1}.stat-a{left:6.5%;top:139px}.stat-b{left:77%;right:auto;top:139px;width:220px}.stat-c{left:6.5%;right:auto;top:442px;bottom:auto}.stat-d{left:77%;right:auto;top:442px;bottom:auto;width:220px}.work-section{padding:15px 5% 100px;background:#090a0a}.section-heading{display:flex;gap:22px;align-items:center;margin:0 0 22px}.section-heading h2{font:400 10px monospace;letter-spacing:2.5px;color:var(--violet-light);white-space:nowrap}.section-heading .tiny{font-size:8px;color:var(--violet-muted);white-space:nowrap}.section-rule{height:1px;flex:1;background:var(--violet-line)}.filters{border:0;padding:0 0 25px;gap:8px}.filters button.active{background:var(--fg);color:var(--bg)}#projects{display:block}.project-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5%;align-items:center;padding:30px 0;border-bottom:1px solid #ffffff20}.project-card:first-child{padding-top:0}.project-card:nth-child(3){grid-column:auto}.project-card .visual,.project-card:nth-child(3) .visual{aspect-ratio:1.77;width:100%}.project-card:nth-child(even) .visual{grid-column:2;grid-row:1}.project-card:nth-child(even) .project-meta{grid-column:1;grid-row:1}.project-meta{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:10px 8px 10px 0;gap:17px}.project-meta>.project-number{font:400 clamp(60px,6.3vw,94px)/.9 Georgia,serif;letter-spacing:-4px;color:var(--violet-light)}.project-meta h3{font:400 clamp(27px,3vw,43px)/1.07 Georgia,serif;letter-spacing:-1.3px;margin:0 0 22px;max-width:400px;color:#edede5}.project-meta p.project-summary{font:400 13px/1.7 'DM Sans','Noto Sans Arabic',sans-serif;color:#c7cbd0;letter-spacing:0;max-width:390px;margin-bottom:17px}.project-meta p.project-category{font:400 8px/1.6 monospace;letter-spacing:1.5px;color:var(--violet-muted)}.project-open{display:inline-flex;align-items:center;gap:25px;margin-top:23px;font-size:9px;letter-spacing:1.4px;color:var(--violet-soft)}.project-open b{font-size:19px;font-weight:400;transition:translate .3s}.project-card:hover .project-open b{translate:6px 0}.project-card .view-circle{background:var(--violet-wash);color:var(--violet)}.project-card.reveal .visual{clip-path:inset(0 0 12% 0);transition:clip-path 1s cubic-bezier(.2,.7,.2,1)}.project-card.reveal.visible .visual{clip-path:inset(0)}html[lang=ar] .statement-card h2{font-size:37px;line-height:1.25;margin:10px 0 18px}html[lang=ar] .statement-card p{direction:rtl;font-size:11px}html[lang=ar] .statement-card>.tiny{letter-spacing:0}html[lang=ar] .project-meta h3{font-family:'Noto Sans Arabic',sans-serif;font-size:34px;line-height:1.4;letter-spacing:-1px}html[lang=ar] .project-meta{align-items:flex-end;width:100%}html[lang=ar] .project-meta>div{width:100%;direction:rtl}html[lang=ar] .stat span{font-family:'Noto Sans Arabic',sans-serif;letter-spacing:0;direction:rtl;text-align:left;line-height:1.8}html[lang=ar] .section-heading h2{font-size:13px;letter-spacing:0}.paused .stat{opacity:1;translate:none}.paused .stat-lines path{stroke-dashoffset:0}.paused .stat-lines circle{opacity:1}
@media(max-width:1000px) and (min-width:761px){.why-scene{width:96vw;height:580px}.statement-card{width:250px;height:400px;padding:75px 30px 30px}.statement-card h2{font-size:33px}.stat{width:190px}.stat-a,.stat-c{left:3%}.stat-b,.stat-d{left:78%;width:155px}.stat strong,.stat-c strong{font-size:54px}.stat span{font-size:7px;letter-spacing:.7px}.project-meta h3{font-size:31px;margin-bottom:14px}.project-meta{gap:12px}.project-open{margin-top:12px}}
@media(max-width:760px){.statement-zone{height:auto;min-height:0;padding:55px 0 60px}.statement-sticky{position:relative;height:auto;min-height:0;overflow:hidden}.why-scene{width:92vw;height:auto;min-height:830px;padding:95px 0 25px;display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:30px 20px}.why-outline{top:4px;font-size:130px;letter-spacing:-5px}.statement-card{grid-column:1/-1;grid-row:1;width:270px;height:410px;margin:0 0 0;padding:78px 35px 32px;justify-self:center}.statement-card h2{font-size:35px}.statement-card p{font-size:11px}.stat-lines{display:none}.stat{position:relative!important;inset:auto!important;left:auto!important;top:auto!important;width:100%!important;padding:18px 0 0;border-top:1px solid var(--violet-line);gap:10px}.stat:before{content:'';position:absolute;top:-3px;left:0;width:5px;height:5px;border-radius:50%;background:var(--violet-light)}.stat strong,.stat-c strong{font-size:50px}.stat span{font-size:8px;letter-spacing:1px}.stat-a{grid-column:1;grid-row:2}.stat-b{grid-column:2;grid-row:2}.stat-c{grid-column:1;grid-row:3}.stat-d{grid-column:2;grid-row:3}.why-caption{bottom:0;font-size:6px;letter-spacing:1px}.work-section{padding:15px 5% 65px}.section-heading{gap:12px;margin-bottom:20px}.section-heading h2{font-size:9px;letter-spacing:1.3px}.section-heading .tiny{font-size:6px;letter-spacing:.5px}.filters{padding-bottom:20px}.project-card{grid-template-columns:1fr;gap:25px;padding:28px 0 35px}.project-card:nth-child(even) .visual,.project-card:nth-child(even) .project-meta{grid-column:1;grid-row:auto}.project-card .visual,.project-card:nth-child(3) .visual{aspect-ratio:1.6}.project-meta{display:grid;grid-template-columns:58px 1fr;gap:16px;padding:0;align-items:start}.project-meta>.project-number{font-size:50px;letter-spacing:-3px}.project-meta h3{font-size:31px;margin:0 0 14px}.project-meta p.project-summary{font-size:12px;line-height:1.7;margin-bottom:12px}.project-meta p.project-category{font-size:7px}.project-open{margin-top:14px;font-size:8px}.project-card .view-circle{width:40px;height:40px}html[lang=ar] .project-meta h3{font-size:28px}html[lang=ar] .statement-card h2{font-size:37px}html[lang=ar] .stat span{text-align:right}}
@media(prefers-reduced-motion:reduce){.stat{opacity:1;translate:none}.stat-lines path{stroke-dashoffset:0}.stat-lines circle{opacity:1}.project-card.reveal .visual{clip-path:none}}

#projects{overflow-anchor:none}
/* Portrait and compact side statistics. */
.hero-portrait{position:absolute;z-index:15;left:50%;bottom:0;transform:translateX(-50%);height:108%;width:auto;max-width:65%;object-fit:contain;object-position:center bottom;pointer-events:none;filter:drop-shadow(0 18px 25px #0004);mask-image:linear-gradient(to bottom,#000 93%,transparent 100%)}.ribbon-stage{top:45%;height:37%}.ribbon-caption{bottom:-14px}.stat-lines-compact{display:none}
@media(max-width:760px){.ribbon-stage{top:41%;height:36%}.hero-portrait{height:108%;max-width:72%}.statement-zone{padding:32px 0 40px}.statement-sticky{min-height:0;overflow:hidden}.why-scene{display:block;width:94vw;height:76vw;min-height:360px;max-height:550px;padding:0;margin:0 auto}.why-outline{top:0;font-size:20vw;line-height:1;letter-spacing:-.8vw}.why-caption{bottom:2%;font-size:clamp(5px,.85vw,7px);letter-spacing:1px}.statement-card{position:absolute;left:33%;top:15%;width:34%;height:76%;margin:0;padding:12% 4% 4%;border-radius:50% 50% 0 0!important;display:block}.statement-card>.tiny{font-size:clamp(5px,.95vw,7px);letter-spacing:1px;white-space:nowrap}.statement-card h2{font-size:clamp(18px,4.1vw,30px);line-height:1.05;letter-spacing:-.8px;margin:10px 0 20px}.statement-card p{font-size:clamp(7px,1.4vw,10px);line-height:1.45;max-width:none}.statement-card .signature{left:12%;bottom:7%;font-size:clamp(20px,4.6vw,33px)}.stat{position:absolute!important;width:24%!important;border:0;padding:0;gap:10px;display:flex;grid-column:auto!important;grid-row:auto!important}.stat:before{display:none}.stat-a,.stat-c{left:1%!important;right:auto!important}.stat-b,.stat-d{left:auto!important;right:1%!important}.stat-a,.stat-b{top:22%!important;bottom:auto!important}.stat-c,.stat-d{top:70%!important;bottom:auto!important}.stat strong,.stat-c strong{font-size:clamp(27px,6.5vw,47px);line-height:.95;letter-spacing:-1.5px}.stat span{font-size:clamp(6px,1.1vw,8px);line-height:1.6;letter-spacing:.7px;overflow-wrap:normal}.stat-lines-desktop{display:none}.stat-lines-compact{display:block;width:100%;height:100%;inset:0;position:absolute}.hero-title{z-index:16}}
@media(max-width:480px){.why-scene{height:105vw;min-height:385px}.statement-card{padding-top:15%;height:73%;top:16%}.statement-card>.tiny{letter-spacing:.25px;font-size:5px}.statement-card h2{font-size:clamp(16px,4.5vw,22px);margin:9px 0 15px}.statement-card p{font-size:7px;line-height:1.5}.stat span{font-size:6px;letter-spacing:.1px}.stat{gap:8px}.ribbon-caption{font-size:5px}.hero-portrait{height:110%;max-width:82%}}

.ribbon-stage{top:47%;height:35%}@media(min-width:481px) and (max-width:760px){.ribbon-stage{top:49%;height:31%}}@media(max-width:760px){.statement-card{border-radius:50% 50% 0 0 / 16vw 16vw 0 0!important}}@media(max-width:480px){.ribbon-stage{top:41%;height:36%}}

.header-logo {
  display: block;
  flex: none;
  width: clamp(62px, 6vw, 86px);
}
.header-logo img {
  display: block;
  width: 100%;
  height: auto;
}

#menu {
  --accent: var(--violet);
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 140px 10% 50px;
  overflow-y: auto;
  background: #c4d492;
  color: var(--bg);
}
#menu a {
  font: italic clamp(45px, 7vw, 100px) Georgia, serif;
}
#menu small {
  margin-top: auto;
}
body:has(> #menu:not([hidden])) > header {
  --accent: var(--violet);
  position: fixed;
  color: var(--bg);
}
body:has(> #menu:not([hidden])) > header .header-logo img {
  filter: brightness(0);
}
body:has(> #menu:not([hidden])) > header #menuButton {
  border-color: #11121166;
}
@media (max-width: 760px) {
  #menu {
    gap: clamp(16px, 3svh, 25px);
    padding: 104px 8% 28px;
  }
  #menu a {
    font-size: clamp(34px, 10vw, 45px);
  }
}

.hero-title h1 {
  font-size: clamp(28px, 6.2vw, 112px);
}
.hero > .hero-portrait {
  z-index: 3;
  bottom: 0;
  height: 77%;
  max-width: 56%;
  mask-image: none;
}
.hero-bottom {
  z-index: 16;
}
@media (max-width: 760px) {
  .hero-title h1 {
    font-size: clamp(24px, 6.1vw, 46px);
  }
  .hero > .hero-portrait {
    height: 70%;
    max-width: 94%;
  }
}

/* Biography and education in the About scene. */
.statement-card {
  scale: .9;
  min-height: 460px;
  height: auto;
  padding: 73px 28px 25px;
}
.statement-card h2,
html[lang=ar] .statement-card h2 {
  font-size: clamp(20px, 2.5vw, 27px);
  line-height: 1.16;
  letter-spacing: -.025em;
  margin: 13px 0 14px;
}
.statement-card p,
html[lang=ar] .statement-card p {
  font-size: 13px;
  line-height: 1.52;
  max-width: none;
}
.statement-card .signature {
  position: static;
  display: inline-block;
  font-size: 31px;
  margin-top: 9px;
}

.why-outline {
  font-size: clamp(56px, 12vw, 160px);
  letter-spacing: -.045em;
  -webkit-text-stroke-color: #ffffff20;
}
.why-scene .stat {
  gap: 8px;
}
.stat h3 {
  margin: 0;
  color: var(--violet-light);
  font: 400 clamp(21px, 2.6vw, 36px)/1.08 Georgia, serif;
}
.why-scene .stat :is(span, address, ul, ol) {
  margin: 0;
  color: #e5ddea;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0;
}
.stat address, .work-history li {
  display: grid;
  justify-items: start;
}
.stat address {
  gap: 4px;
  font-style: normal;
}
.stat address a {
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.stat :is(ol, ul) {
  padding: 0;
  list-style: none;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
}
.why-scene .work-history {
  top: 54%;
}
.work-history ol {
  display: grid;
  gap: 8px;
}
.stat .job-years {
  color: var(--violet-soft);
  font-variant-numeric: tabular-nums;
}
.job-company {
  font-weight: 700;
}
@media (min-width: 641px) and (max-width: 760px) {
  .why-scene {
    height: 640px;
    max-height: none;
  }
  .statement-card {
    top: 13%;
    left: 26%;
    width: 48%;
    min-height: 0;
    padding: 66px 20px 23px;
  }
  .why-scene .work-history {
    top: 46% !important;
  }
}
@media (max-width: 640px) {
  .why-scene {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    min-height: 0;
    max-height: none;
    gap: 25px 16px;
    padding: 65px 12px 46px;
  }
  .statement-card {
    grid-column: 1 / -1;
    position: relative;
    inset: auto;
    width: min(100%, 320px);
    scale: .94;
    min-height: 0;
    padding: 61px 24px 24px;
  }
  .statement-card p,
  html[lang=ar] .statement-card p {
    font-size: 14px;
  }
  .why-scene .stat {
    position: static !important;
    width: 100% !important;
    border-top: 1px solid var(--violet-line);
    padding-top: 13px;
  }
  .why-scene .work-history {
    grid-column: 1 / -1 !important;
  }
  .work-history ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }
  .why-scene .stat-lines {
    display: none;
  }
}


.project-header {
  background: var(--bg);
  padding-bottom: clamp(36px, 7vw, 90px);
}
.project-header .case-title {
  display: grid;
  justify-content: stretch;
  justify-items: center;
  text-align: center;
  gap: 14px;
  margin-top: clamp(28px, 5vw, 62px);
}
.project-logo {
  display: block;
  width: min(58vw, 285px);
  height: clamp(76px, 15vw, 146px);
  object-fit: contain;
  margin-bottom: 9px;
}
.project-header .case-title h1 {
  font-size: clamp(32px, 6vw, 84px);
  line-height: 1.02;
  margin: 0;
  overflow-wrap: anywhere;
}
.project-header .case-title p {
  max-width: 52ch;
  margin: 0;
}
.project-header--compact .case-title {
  justify-items: left;
  text-align: left;
}
.project-header--compact .project-logo {
  width: clamp(140px, 29vw, 220px);
  height: auto;
}
.project-header--compact .project-logo--small {
  width: clamp(94px, 16vw, 136px);
}
.heritage-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 26px);
}
.heritage-image {
  display: block;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  min-width: 0;
}
.heritage-image:first-child {
  grid-column: 1 / -1;
}
.heritage-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
.heritage-image:first-child img {
  aspect-ratio: auto;
  max-height: 820px;
}
.heritage-report .heritage-gallery {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 560px) {
  .heritage-gallery {
    grid-template-columns: 1fr;
  }
}
#lightboxContent > img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  margin: auto;
}

.selected-cover {
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: #231f25;
}
.selected-cover button,
.selected-gallery-grid button {
  border: 0;
  padding: 0;
  display: block;
  cursor: zoom-in;
}
.selected-cover img {
  display: block;
  max-width: min(100%, 1260px);
  max-height: min(78vh, 850px);
  width: auto;
  height: auto;
  margin-inline: auto;
}
.selected-gallery {
  border-bottom: 1px solid var(--line);
}
.selected-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 26px);
}
.selected-gallery-grid button {
  background: #201e22;
  width: 100%;
}
.selected-gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
}
.selected-viewer-stage {
  max-height: 72vh;
  overflow: auto;
  overscroll-behavior: contain;
  background: #1b1a1c;
}
#lightboxContent .selected-viewer img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: none;
  margin-inline: auto;
}
.selected-viewer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px;
}
.selected-viewer-controls button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.selected-viewer-controls button:disabled {
  opacity: .4;
  cursor: default;
}
@media (max-width: 680px) {
  .selected-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.selected-gallery-grid.selected-gallery-grid--stacked {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1100px;
  margin-inline: auto;
}
.selected-gallery-grid--stacked img {
  aspect-ratio: auto;
}

.selected-gallery-grid--carousel {
  grid-template-columns: minmax(0, 1fr);
  max-width: 600px;
  margin-inline: auto;
}
.selected-gallery-grid--carousel img {
  aspect-ratio: 1;
}
.selected-gallery-grid--carousel .selected-viewer-controls button {
  width: 44px;
  cursor: pointer;
}
.selected-gallery-grid--carousel .selected-viewer-controls button:hover {
  background: var(--fg);
  color: var(--bg);
}

.experience-heading--described {
  display: grid;
  gap: 12px;
}
.experience-heading--described p {
  max-width: 65ch;
  margin: 0;
  font-size: 14px;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  padding: 0 4% clamp(32px, 5vw, 68px);
  border-bottom: 1px solid var(--line);
}
.project-details h2 {
  margin: 0 0 14px;
  font: 400 clamp(24px, 2.3vw, 36px)/1.15 Georgia, serif;
}
.project-details p,
.project-details ul {
  font-size: 14px;
  line-height: 1.65;
  color: #c7cac3;
  margin: 0;
}
.project-details ul {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}
.project-details li + li {
  margin-top: 8px;
}
.project-color {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid #ffffff50;
  margin-inline-end: 3px;
}
.selected-gallery-grid--portrait button[data-group],
.selected-viewer--portrait .selected-viewer-stage {
  background: var(--bg);
}
.selected-gallery-grid--portrait img {
  aspect-ratio: auto;
  height: min(72svh, 150vw, 720px);
}
@media (max-width: 850px) {
  .project-details {
    grid-template-columns: minmax(0, 65ch);
  }
}

.project-card .visual,
.project-card:nth-child(3) .visual {
  aspect-ratio: 3 / 2;
}
.ribbon-item .visual {
  position: relative;
  width: 100%;
  height: 100%;
}
.project-card .visual--cropped > img,
.ribbon-item .visual--cropped > img {
  position: absolute;
  width: var(--crop-width);
  max-width: none;
  height: auto;
  left: var(--crop-left);
  top: var(--crop-top);
}
.project-collection {
  padding-top: 0;
  padding-inline: 5%;
}
.project-collection .project-card h2 {
  font: 400 clamp(28px, 4vw, 54px)/1.1 Georgia, serif;
  margin: 0 0 16px;
}
.project-collection .project-card .visual,
.project-collection .project-card:nth-child(even) .visual {
  grid-column: auto;
  grid-row: auto;
  background: var(--bg);
}
.project-collection .project-card .collection-project-logo {
  display: block;
  width: min(96px, 24vw);
  height: 60px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 12px;
}
.project-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  max-width: 820px;
  margin: 32px auto 0;
}
.project-videos video {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: var(--bg);
}
.project-videos--paired {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.project-animations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  align-items: end;
  gap: 16px;
  max-width: 820px;
  margin-inline: auto;
}
.project-animations--single {
  max-width: 440px;
}
.project-animations img {
  display: block;
  width: 100%;
  height: auto;
}


.project-header--collection.project-header--compact .project-logo {
  width: min(78vw, 380px);
}

.phone-guide {
  width: min(100%, 380px);
  margin: 0 auto;
}
.phone-guide-device {
  position: relative;
  width: min(100%, clamp(248px, 44svh, 380px));
  aspect-ratio: 350 / 702;
  margin-inline: auto;
  filter: drop-shadow(0 9px 15px #0007);
}
.phone-guide-frame,
.phone-guide-notch {
  position: absolute;
  inset: 0;
  background: var(--phone-art) center / 228.5714% auto no-repeat;
  pointer-events: none;
}
.phone-guide-frame {
  border-radius: 15.3% / 7.65%;
}
.phone-guide-notch {
  clip-path: polygon(
    25.3% 2%, 74.7% 2%, 74.5% 3.7%, 73.7% 4.75%, 72.3% 5.55%,
    69.5% 6.27%, 30.5% 6.27%, 27.7% 5.55%, 26.3% 4.75%, 25.5% 3.7%
  );
}
.phone-guide-screen {
  position: absolute;
  inset: 2.28% 4.57%;
  overflow: hidden;
  border-radius: 10.4% / 4.93%;
  background: #21152e;
}
.phone-guide-status {
  position: absolute;
  inset: 0 0 auto;
  height: 4.8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6.5%;
  color: #fff;
  font: 600 clamp(10px, 1.7svh, 15px) / 1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  background: #1a1023;
}
.phone-guide-status svg {
  width: 16%;
  max-width: 45px;
}
.phone-guide-scroll {
  position: absolute;
  inset: 4.8% 0 0;
  overflow: hidden auto;
  scrollbar-width: thin;
  scrollbar-color: var(--violet-soft) #21152e;
  touch-action: pan-y pinch-zoom;
  cursor: pointer;
}
.phone-guide-scroll:focus-visible {
  outline: 2px solid var(--violet-soft);
  outline-offset: -2px;
}
.phone-guide-scroll img {
  display: block;
  width: 100%;
  height: auto;
}
.phone-guide figcaption {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #c7cac3;
}
.phone-guide figcaption span {
  margin-inline-end: 6px;
}

.selected-gallery-grid--featured,
.selected-gallery-grid--full-width-first {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1100px;
  margin-inline: auto;
  align-items: start;
}
.selected-gallery-grid--featured img,
.selected-gallery-grid--full-width-first img {
  aspect-ratio: auto;
}
.selected-gallery-grid--full-width-first > button:first-child {
  grid-column: 1 / -1;
}
.selected-gallery-grid--full-width-first img[src$="/device-01.webp"] {
  aspect-ratio: auto 1334 / 966;
}
.selected-gallery-grid--full-width-first img[src$="/screen-02.webp"] {
  aspect-ratio: auto 1480 / 624;
}
img[src^="assets/selected/qasas/real-floor-"] {
  aspect-ratio: auto 2 / 3;
  filter: brightness(1.035) contrast(1.04);
}
img[src^="assets/selected/qasas/real-counter-"] {
  aspect-ratio: auto 3 / 2;
  filter: brightness(1.055);
}
.selected-gallery-grid--featured > button:nth-child(-n+2) {
  grid-column: 1 / -1;
  padding: clamp(18px, 7vw, 88px);
  background: radial-gradient(ellipse at 35% 20%, #e6e0d6, #beb7ab);
}
.selected-gallery-grid--featured > button:nth-child(-n+2) img {
  box-shadow: 2px 5px 0 #9e9386, 8px 14px 24px #30291f55;
}


.selected-gallery-grid--format {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}
.selected-gallery-grid--format + .selected-gallery-grid--format {
  margin-top: clamp(10px, 2vw, 26px);
}
.selected-gallery-grid--format > button:only-child {
  grid-column: 2;
}
.selected-gallery-grid--format:has(> button:nth-child(2):last-child) {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.selected-gallery-grid--format:has(> button:nth-child(2):last-child) > button {
  grid-column: span 2;
}
.selected-gallery-grid--format:has(> button:nth-child(2):last-child) > button:first-child {
  grid-column: 2 / span 2;
}
.selected-gallery-grid--format img {
  aspect-ratio: auto;
}
.selected-gallery-grid--align-bottom {
  align-items: end;
}

.selected-gallery-grid--black-stage > button {
  background: #000;
}
.selected-gallery-grid--black-stage > button[data-image="0"] img {
  clip-path: inset(0 0 0.65% 0);
}
.selected-gallery-grid--poster-frame > button[data-group] {
  width: min(100%, 410px);
  margin-inline: auto;
  position: relative;
  padding: 0;
  aspect-ratio: 255 / 347;
  background: url(assets/selected/black-gold/frame-reference.jpg) 49.3% 50.64% / 182.75% 167.15% no-repeat;
  display: grid;
  place-items: center;
}
.selected-gallery-grid--poster-frame > button[data-group] img {
  position: absolute;
  inset: 2.3% 3.1%;
  width: 93.8%;
  height: 95.4%;
  aspect-ratio: auto;
  object-fit: contain;
  background: #000;
}
.laptop-reader {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.laptop-reader-bezel {
  position: relative;
  width: 91%;
  margin: auto;
  padding: 3% 1.8% 1.8%;
  background: #0b0b0d;
  border: 2px solid #8c8c90;
  border-radius: 2.5% 2.5% 0 0;
}
.laptop-reader-bezel::before {
  content: '';
  position: absolute;
  top: 2%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #4b515d;
  border-radius: 50%;
}
.laptop-reader-screen {
  height: auto;
  aspect-ratio: 16 / 10;
  overflow: auto;
  overscroll-behavior: contain;
  background: #ebebeb;
}
.laptop-reader-screen img {
  display: block;
  width: 100%;
  height: auto;
}
.laptop-reader-base {
  height: clamp(9px, 1.6vw, 19px);
  border-radius: 0 0 45% 45% / 0 0 85% 85%;
  background: linear-gradient(#ceced1, #85868b 60%, #494a4e);
}
.laptop-reader figcaption {
  margin-top: 16px;
  color: #c7cac3;
}

.selected-gallery-grid--equal-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
  margin-inline: auto;
}
.selected-gallery-grid--equal-pair > button,
.selected-gallery-grid--clear-stage > button[data-group] {
  background: transparent;
}
.selected-gallery-grid--equal-pair img {
  aspect-ratio: 1;
  object-fit: contain;
}
.selected-gallery-grid--black-stage > button[data-group] img {
  clip-path: inset(0 0 1.5% 0);
}

footer .footer-logo {
  width: auto;
  flex: 0 0 auto;
}
footer .footer-logo img {
  display: block;
  width: clamp(56px, 10vw, 90px);
  height: auto;
  filter: brightness(0);
}

/* Logos & Branding */
.brand-index { background: #050505; container-type: inline-size; }
.brand-grid {
  --cell-size: min(calc(100cqw / 6), 188px);
  position: relative;
  isolation: isolate;
  display: grid;
  direction: rtl;
  box-shadow: inset -1px -1px #ffffff31;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(6, var(--cell-size));
  grid-auto-rows: var(--cell-size);
  max-width: 1128px;
  margin-inline: auto;
}
.brand-grid::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background-image: linear-gradient(to right, #ffffff31 1px, transparent 1px), linear-gradient(to bottom, #ffffff31 1px, transparent 1px);
  background-size: var(--cell-size) var(--cell-size);
  animation: brand-grid-draw 850ms cubic-bezier(.22,.61,.36,1) both;
}
.brand-title {
  position: relative;
  overflow: hidden;
  grid-area: 3 / 3 / span 2 / span 2;
  display: grid;
  min-width: 0;
  margin: 0;
  height: 100%;
  background: #fff;
  animation: brand-arrive 520ms 400ms both;
}
.brand-title > img, .branding-entry-folio img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.brand-tile {
  display: grid;
  place-items: center;
  transition: background-color .32s ease;
  animation: brand-arrive .6s .5s both;
}
.brand-tile img {
  width: 57%;
  height: 57%;
  min-width: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter .32s ease;
}
.brand-tile--large img { width: 74%; height: 74%; }
.brand-grid-filters { position: absolute; }
.brand-tile--small img { width: 45%; height: 45%; }
.brand-tile[data-brand="ger-car"] img { width: 37%; height: 37%; }
.brand-tile--solid-white img { filter: url(#brand-white-ink) brightness(0) invert(1); }
.brand-tile:hover, .brand-tile:focus-visible { background-color: #fff; }
.brand-tile:hover img, .brand-tile:focus-visible img { filter: none; }
.brand-tile:focus-visible { outline: 2px solid var(--violet-light); outline-offset: -2px; }
.brand-detail { max-width: 1250px; padding: 0 3.5% 8%; margin-inline: auto; }
.brand-detail-header {
  display: flex;
  position: static;
  align-items: baseline;
  height: auto;
  padding: 0 0 22px;
  gap: 16px;
}
.brand-detail-header a { color: #d4d4cf; font-size: 13px; }
.brand-detail-header h1 { font: 400 clamp(22px, 4vw, 48px)/1.1 'DM Sans', sans-serif; letter-spacing: -.045em; text-align: end; }
.brand-detail-summary {
  max-width: 65ch;
  margin: 0 0 clamp(18px, 3vw, 32px);
  color: #d3cbc0;
  font: 400 clamp(15px, 1.4vw, 17px)/1.65 'DM Sans', 'Noto Sans Arabic', sans-serif;
}
.brand-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr);
  grid-template-areas: 'palette palette lead' 'mockup lockup construction';
  gap: clamp(6px, 1.5vw, 18px);
}
.brand-board figure { margin: 0; }
.brand-board figure { min-width: 0; min-height: 0; overflow: hidden; }
.brand-lead { grid-area: lead; }
.brand-mockup { grid-area: mockup; }
.brand-construction { grid-area: construction; }
.brand-board > figure > img, .brand-guides { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand-board .brand-construction > img { object-fit: contain; background: #f0ebe5; }
.brand-lead, .brand-mockup, .brand-construction { animation: brand-arrive 650ms 220ms both; }
.brand-lead { aspect-ratio: 1.05; }
.brand-logo-proof { display: grid; place-items: center; background: var(--proof-color); }
.brand-logo-proof img { width: 62%; max-height: 68%; object-fit: contain; filter: brightness(0) invert(1); }
.brand-detail--midad .brand-lead > img { object-position: 80% center; }
.brand-board .brand-lead--contain > img { object-fit: contain; padding: 7%; background: #fff; }
.brand-board--no-mockup { grid-template-areas: 'palette palette lead' 'lockup lockup construction'; }
.brand-board--no-mockup .brand-lockup { aspect-ratio: 2; }
.brand-palette { grid-area: palette; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; overflow: hidden; }
.brand-palette div {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  background: var(--swatch);
  color: var(--ink);
  animation: brand-swatch .65s .3s both;
}
.brand-palette div:nth-child(2) { animation-delay: .39s; }
.brand-palette div:nth-child(3) { animation-delay: .48s; }
.brand-palette img { width: 45%; max-height: 80px; object-fit: contain; filter: brightness(0) invert(1); }
.brand-palette div:last-child img { filter: none; }
.brand-palette span { font: 500 clamp(8px, 1.4vw, 12px)/1.2 'DM Sans', sans-serif; }
.brand-lockup {
  min-width: 0;
  grid-area: lockup;
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: #faf8f3;
  animation: brand-arrive .42s both;
}
.brand-lockup img { width: 64%; height: auto; grid-area: 1 / 1; }
.brand-lockup .brand-symbol {
  clip-path: inset(0 0 calc(100% - var(--logo-split)) 0);
  animation: brand-symbol .72s .13s both;
}
.brand-lockup .brand-lettering {
  clip-path: inset(var(--logo-split) 0 0 0);
  animation: brand-lettering .5s .47s both;
}
.brand-lockup--side .brand-symbol {
  clip-path: inset(0 0 0 var(--logo-split));
  animation-name: brand-symbol-side;
}
.brand-lockup--side .brand-lettering {
  clip-path: inset(0 calc(100% - var(--logo-split)) 0 0);
  animation-name: brand-lettering-side;
}
.brand-board--no-mockup .brand-lockup img { width: 53%; }
.brand-guides {
  display: grid;
  place-items: center;
  background-color: #ebe5db;
  background-image: linear-gradient(to right, #60368e26 1px, transparent 1px), linear-gradient(to bottom, #60368e26 1px, transparent 1px);
  background-size: 12.5% 12.5%;
}
.brand-guides img { width: 66%; max-width: 220px; }
.brand-applications {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(var(--application-columns), minmax(0, 1fr));
  align-items: start;
  gap: inherit;
}
.brand-applications img { display: block; width: 100%; height: auto; }

.brand-detail--tilal .brand-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.brand-detail--tilal .brand-lead {
  aspect-ratio: 1;
}
.brand-detail--tilal .brand-applications img {
  aspect-ratio: 4 / 5;
  object-fit: contain;
}
.brand-detail--tilal .brand-applications img[src$="/tilal/logo.webp"] {
  padding: 18%;
  background: #fff;
}
@media (max-width: 620px) {
  .brand-detail--tilal :is(.brand-board, .brand-applications) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@keyframes brand-grid-draw { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0); } }
@keyframes brand-arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes brand-symbol { 0% { opacity: 0; transform: translateY(7%) scale(.91); } 45% { opacity: 1; transform: translateY(6%); } 100% { opacity: 1; transform: none; } }
@keyframes brand-lettering { from { opacity: 0; transform: translateY(-6%); } to { opacity: 1; transform: none; } }
@keyframes brand-symbol-side { 0% { opacity: 0; transform: translateX(-30%); } 45% { opacity: 1; transform: translateX(-30%); } 100% { opacity: 1; transform: none; } }
@keyframes brand-lettering-side { from { opacity: 0; transform: translateX(7%); } to { opacity: 1; transform: none; } }
@keyframes brand-swatch { from { transform: translateX(-35%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 620px) {
  .brand-grid { --cell-size: 25cqw; grid-template-columns: repeat(4,minmax(0,1fr)); grid-template-rows: repeat(4,var(--cell-size)); }
  .brand-title { grid-area: 2 / 2 / span 2 / span 2; }
  .brand-board { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-areas: 'lockup construction' 'palette palette' 'lead mockup'; }
  .brand-board--no-mockup { grid-template-areas: 'lockup construction' 'palette palette' 'lead lead'; }
  .brand-board--no-mockup .brand-lockup { aspect-ratio: 1; }
  .brand-board--no-mockup .brand-lead { aspect-ratio: 2; }
  .brand-palette { min-height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-grid::before, .brand-title, .brand-tile, .brand-tile img, .brand-board * {
    animation: none !important;
    transition: none !important;
  }
}

.branding-entry {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: center;
  gap: clamp(18px, 4vw, 56px);
  padding-bottom: clamp(20px, 3vw, 36px);
  margin-bottom: clamp(22px, 3vw, 36px);
  border-bottom: 1px solid #ffffff20;
}
.branding-entry-preview {
  display: grid;
  direction: ltr;
  grid-template-columns: 1fr 1fr 1.45fr 1fr 1fr;
  align-items: stretch;
  aspect-ratio: 3.75;
  background: #050505;
  border: 1px solid #ffffff31;
}
.branding-entry-preview > * {
  align-self: stretch;
  justify-self: stretch;
  min-width: 0;
  border-inline-end: 1px solid #ffffff31;
}
.branding-entry-preview > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 22%;
  filter: brightness(0) invert(1);
  transition: filter .3s ease, background-color .3s ease;
}
.branding-entry-preview > :last-child { border-inline-end: 0; }
.branding-entry-preview > img:hover { filter: none; background-color: #fff; }
.branding-entry-folio { display: grid; background: #fff; }
.branding-entry-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.branding-entry-label h3 {
  margin: 0;
  color: #edede5;
  font: 400 clamp(24px, 3vw, 43px)/1.1 Georgia, 'Noto Sans Arabic', serif;
}
.branding-entry-arrow {
  color: var(--violet-soft);
  font: 400 24px/1 'DM Sans', sans-serif;
  transition: translate .3s ease;
}
.branding-entry:hover .branding-entry-arrow,
.branding-entry:focus-visible .branding-entry-arrow { translate: 5px; }
.branding-entry:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 6px; }
html[lang=ar] .branding-entry-label { direction: rtl; }
html[lang=ar] .branding-entry-arrow { scale: -1 1; }
@media (max-width: 760px) {
  .branding-entry { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .branding-entry-preview > img, .branding-entry-arrow { transition: none; }
}

.selected-gallery-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 42px);
  padding-inline: 4%;
}
.selected-gallery-pair > .selected-gallery {
  display: flex;
  flex-direction: column;
  padding-inline: 0;
  min-width: 0;
}
.selected-gallery-pair .selected-gallery-grid--carousel {
  width: 100%;
  margin-top: auto;
}

.social-media-project { display:grid; grid-template-columns:minmax(150px, 1fr) minmax(0, 3fr); gap:clamp(16px, 4vw, 60px); align-items:start; }
.social-media-copy h3 { font:400 clamp(26px, 3.2vw, 46px)/1.1 Georgia, serif; margin:0 0 16px; }
.social-media-copy p { margin:0 0 12px; line-height:1.65; }
.social-media-copy p:last-child { color:var(--violet-soft); font-size:.85rem; }
.social-media-art { --art-gap: clamp(5px, 1vw, 14px); }
.social-media-art, .social-media-posts, .social-media-posts > div, .social-media-stories { display:grid; gap:var(--art-gap); align-items:start; }
.social-media-posts { grid-template-columns:minmax(0, 1.35fr) minmax(0, 3fr); align-items:center; }
.social-media-posts > div { grid-template-columns:repeat(3, minmax(0, 1fr)); }
.social-media-stories {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  /* Match each of the three post columns beside the wider phone mockup. */
  width: calc((100% - 3 * var(--art-gap)) / 4.35 * 4 + 3 * var(--art-gap));
  justify-self: end;
}
.social-media-preview {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}
.social-media-preview:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 2px; }
.social-media-art img { display:block; width:100%; height:auto; }
@media (max-width:680px) { .social-media-project { grid-template-columns:1fr; } }
.social-media-copy .social-media-logo {
  display: block;
  width: 120px;
  height: auto;
  margin-bottom: 16px;
}

.social-media-project + .social-media-project {
  margin-top: clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--line);
  padding-top: clamp(24px, 4vw, 56px);
}

.social-media-covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--art-gap);
}

.social-media-posts--wide > div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.social-media-infographics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--art-gap);
}

.social-media-copy .social-media-logo--emblem { width: 72px; }

.project-cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: 100%;
  gap: clamp(3px, .65vw, 9px);
  padding: clamp(5px, 1vw, 14px);
}

.project-card .project-cover-grid img {
  display: block;
  min-height: 0;
  object-fit: contain;
}

.selected-gallery-grid.selected-gallery-grid--wide-carousel {
  width: 100%;
  max-width: 980px;
}

.selected-gallery-grid--wide-carousel > button[data-group] img {
  aspect-ratio: auto;
}

.selected-gallery-pair:has(img[src$="/lg-twin-wash/flyer-mockup.webp"]) {
  direction: ltr;
  /* Allocate columns in proportion to the original image aspect ratios. */
  grid-template-columns: minmax(0, 1.736111fr) minmax(0, 1fr);
  align-items: start;
}
.selected-gallery-pair:has(img[src$="/lg-twin-wash/flyer-mockup.webp"]) + .next-case {
  border-top: 0;
}

/* Match the column proportions to the artwork so both images have equal height. */
.selected-gallery-pair:has(img[src$="/lg-free-installation/flyer.webp"]) {
  grid-template-columns: minmax(0, 2.140977fr) minmax(0, 1.514100fr);
  align-items: start;
}
.selected-gallery-pair:has(img[src$="/lg-high-resolution-tv/poster.webp"]) {
  grid-template-columns: minmax(0, .704339fr) minmax(0, 1.071429fr);
  align-items: start;
}

.project-header .case-title[hidden] {
  display: none;
}
.selected-gallery-grid:has(img[src$="/bosch-van-branding/van-mockups-overview.webp"]) {
  gap: 12px;
}
.selected-gallery-grid:has(img[src$="/bosch-van-branding/van-mockups-overview.webp"]) > button[data-group] {
  border-radius: 0;
}

.selected-gallery-grid:has(img[src*="/bosch-catalogue-2020/"]) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.selected-gallery-grid:has(img[src*="/bosch-table-tent/"], img[src*="/bosch-catalogue-2020/"]) {
  align-items: start;
}
.selected-gallery-grid img[src*="/bosch-table-tent/"],
.selected-gallery-grid img[src*="/bosch-catalogue-2020/"] {
  aspect-ratio: auto;
}

.project-card[href="#project/social-media"] .visual {
  aspect-ratio: 16 / 9;
}

/* Editorial opening */
.hero.editorial-hero {
  --opening-height: clamp(680px, 100svh, 1120px);
  --scene-height: calc(.92 * var(--opening-height));
  --scene-center: 50%;
  --scene-bottom: 0px;
  --headline-center: 48.2%;
  --word-line-height: .86;
  --desk-height: calc(var(--scene-bottom) + var(--scene-height) * .276);
  --editorial-ink: var(--violet);
  --editorial-ui: #2e2630;
  --editorial-note-font: 'Caveat', 'Segoe Print', 'Comic Sans MS', cursive;
  height: var(--opening-height);
  max-height: 1120px;
  padding: 0;
  isolation: isolate;
  background: #d4c7c2 url('assets/aya-editorial-office-background.webp') center top /
    100% calc((100% - var(--desk-height)) / .783) no-repeat;
  color: var(--editorial-ui);
}

.editorial-hero-scene,
.editorial-hero-reveal {
  position: absolute;
  left: var(--scene-center);
  bottom: var(--scene-bottom);
  width: auto;
  height: var(--scene-height);
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
}
.editorial-hero-scene {
  z-index: 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent),
    linear-gradient(transparent, #000 12%);
  mask-composite: intersect;
}
.editorial-hero-restoration {
  z-index: 0;
}
.editorial-hero-person {
  z-index: 2;
}
.editorial-hero-typography {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.editorial-hero .hero-title {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  color: var(--editorial-ink);
  pointer-events: none;
  animation: none;
}
.editorial-hero .hero-title h1,
html[lang=ar] .editorial-hero .hero-title h1 {
  position: relative;
  height: 100%;
  margin: 0;
  font-weight: normal;
  line-height: 1;
  letter-spacing: normal;
}
.editorial-hero-lead,
.editorial-hero .editorial-hero-word {
  position: absolute;
  left: var(--headline-center);
  width: max-content;
  transform: translateX(-50%);
  text-align: center;
}
.editorial-hero-lead {
  top: clamp(90px, 10.1svh, 118px);
  padding-inline: .07em;
  font: 700 clamp(34px, 4.2vw, 60px)/1 var(--editorial-note-font);
}
.editorial-hero .editorial-hero-word {
  top: clamp(137px, 15.5svh, 176px);
  margin: 0;
  padding: 0 .085em 0 0;
  font: italic 400 clamp(190px, min(37vw, 44svh), 530px)/var(--word-line-height) 'Instrument Serif', Georgia, serif;
  letter-spacing: -.075em;
}
.editorial-hero-follow {
  position: absolute;
  inset-inline-start: calc(50% + min(24vw, 323px));
  top: 43%;
  display: grid;
  justify-items: start;
  gap: .2rem;
  transform: rotate(5deg);
  text-align: start;
}
.editorial-hero-end {
  font: 700 clamp(27px, 3vw, 43px)/.95 var(--editorial-note-font);
  white-space: nowrap;
}
.editorial-hero-arrow {
  width: clamp(38px, 5.5vw, 75px);
}
.editorial-hero .hero-bottom {
  z-index: 3;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  color: var(--editorial-ui);
}
.editorial-hero .round-link {
  padding: 3px 4px 3px 13px;
  border-radius: 999px;
  background: #f3ece6df;
}
.editorial-hero .round-link b {
  border-color: #2e263063;
}
.editorial-hero .round-link:hover {
  color: var(--editorial-ink);
}
body:has(#home:not([hidden])):has(#menu[hidden]) > header {
  color: #2e2630;
}
body:has(#home:not([hidden])):has(#menu[hidden]) > header .header-logo img {
  filter: brightness(0);
}
body:has(#home:not([hidden])):has(#menu[hidden]) > header #menuButton {
  border-color: #2e263063;
}
body:has(#home:not([hidden])):has(#menu[hidden]) > header #menuButton:hover {
  color: var(--violet);
}
html[lang=ar] .editorial-hero .hero-title {
  direction: rtl;
}
html[lang=ar] .editorial-hero-lead,
html[lang=ar] .editorial-hero-end {
  font-family: 'Noto Sans Arabic', sans-serif;
  line-height: 1.18;
}
html[lang=ar] .editorial-hero .editorial-hero-word {
  font-family: 'Noto Sans Arabic', sans-serif;
  font-style: normal;
  font-size: clamp(95px, 17vw, 240px);
  line-height: 1.18;
  letter-spacing: -.04em;
  padding: 0;
}
html[lang=ar] .editorial-hero-follow {
  transform: rotate(-5deg);
}
html[lang=ar] .editorial-hero-arrow {
  transform: scaleX(-1);
}
@media (760px < width <= 1040px) {
  .editorial-hero-follow {
    inset-inline-start: auto;
    inset-inline-end: 4.2%;
    max-width: 15vw;
    justify-items: end;
    text-align: end;
  }
  .editorial-hero-end {
    white-space: normal;
  }
}
@media (max-width: 760px) {
  .hero.editorial-hero {
    --opening-height: 100svh;
    --scene-height: min(145vw, 80svh);
    --scene-center: calc(50% + min(4.3vw, 21px));
    --scene-bottom: clamp(34px, 6svh, 62px);
    --headline-center: 50%;
    --portrait-crown: calc(100% - var(--scene-bottom) - .849 * var(--scene-height));
    --word-top: max(139px, calc(var(--portrait-crown) - min(31vw, 192px) + 15px));
    --word-size: clamp(144px, 53vw, 345px);
    min-height: max(635px, calc(var(--scene-height) + 165px));
  }
  .editorial-hero-scene {
    mask-image: linear-gradient(transparent, #000 13%, #000 96%, transparent);
  }
  .editorial-hero-lead {
    top: calc(var(--word-top) - clamp(43px, 11vw, 58px));
    font-size: clamp(34px, 8.7vw, 50px);
  }
  .editorial-hero .editorial-hero-word {
    top: var(--word-top);
    font-size: var(--word-size);
  }
  .editorial-hero-follow {
    --arrow-width: clamp(27px, 8vw, 48px);
    --follow-top: calc(100% - var(--scene-bottom) - .77 * var(--scene-height) - 9px);
    inset-inline-start: auto;
    inset-inline-end: max(8px, 2vw);
    top: var(--follow-top);
    justify-items: end;
    gap: 3px;
    text-align: end;
  }
  html[lang=en] .editorial-hero-follow {
    /* Keep the caption below the word while the arrow sits beside it. */
    top: max(var(--follow-top),
      calc(var(--word-top) + var(--word-size) * var(--word-line-height) - var(--arrow-width) * 1.12));
    transform: none;
  }
  .editorial-hero-end {
    max-width: min(21vw, 5em);
    font-size: clamp(18px, 5.1vw, 33px);
    white-space: normal;
  }
  .editorial-hero-arrow {
    width: var(--arrow-width);
  }
  .editorial-hero .hero-bottom {
    bottom: 16px;
    flex-wrap: nowrap;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .editorial-hero .editorial-hero-word {
    animation: editorial-word-in .62s .08s cubic-bezier(.22, 1, .36, 1) both;
  }
  .editorial-hero-lead {
    animation: editorial-lead-type .60s .58s steps(12, end) both;
  }
  html[lang=ar] .editorial-hero-lead {
    animation-name: editorial-lead-type-rtl;
  }
  .editorial-hero-reveal,
  .editorial-hero-typography {
    mask-repeat: no-repeat;
    animation-duration: 1.14s;
    animation-delay: 1.13s;
    animation-timing-function: cubic-bezier(.3, .08, .25, 1);
    animation-fill-mode: both;
  }
  .editorial-hero-reveal {
    mask-image: linear-gradient(transparent 44%, #0008 49%, #000 55%);
    mask-size: 100% 230%;
    animation-name: editorial-portrait-in;
  }
  .editorial-hero-typography {
    /* Occlude the letters just ahead of the softer portrait reveal. */
    --letter-reveal-mask: linear-gradient(#000, #000),
      url('assets/aya-editorial-portrait-and-chair-matte.svg'),
      linear-gradient(transparent 43.5%, #000 46%);
    mask-composite: subtract, intersect;
    mask-size: 100% 100%, auto var(--scene-height), 100% calc(2.3 * var(--scene-height));
    animation-name: editorial-word-occlusion;
    animation-fill-mode: backwards;
  }
  .editorial-hero-arrow path {
    stroke-dasharray: 1;
    animation: editorial-arrow-draw .54s 1.94s ease-out both;
  }
  .editorial-hero-arrow path + path {
    animation-duration: .16s;
    animation-delay: 2.46s;
  }
  .editorial-hero-end {
    animation: editorial-end-in .36s 2.62s ease-out both;
  }
}

@keyframes editorial-word-in {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes editorial-lead-type {
  from { clip-path: inset(-.2em 100% -.2em 0); }
  to { clip-path: inset(-.2em 0); }
}
@keyframes editorial-lead-type-rtl {
  from { clip-path: inset(-.2em 0 -.2em 100%); }
  to { clip-path: inset(-.2em 0); }
}
@keyframes editorial-portrait-in {
  from { mask-position: center top; }
  to { mask-position: center bottom; }
}
@keyframes editorial-word-occlusion {
  from {
    mask-image: var(--letter-reveal-mask);
    mask-position: center,
      var(--scene-center) calc(100% - var(--scene-bottom)),
      center calc(100% - var(--scene-bottom) + 1.3 * var(--scene-height));
  }
  to {
    mask-image: var(--letter-reveal-mask);
    mask-position: center,
      var(--scene-center) calc(100% - var(--scene-bottom)),
      center calc(100% - var(--scene-bottom));
  }
}
@keyframes editorial-arrow-draw {
  from { opacity: 0; stroke-dashoffset: 1; }
  1% { opacity: 1; }
  to { opacity: 1; stroke-dashoffset: 0; }
}
@keyframes editorial-end-in {
  from { opacity: 0; translate: 0 7px; }
  to { opacity: 1; translate: 0 0; }
}
