/*
Theme Name: Essam Portfolio
Author: Essam Daoud
Description: Bilingual dark portfolio with interactive portrait and editable project pages.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: essam-portfolio
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
:root{--bg:#101010;--panel:#181818;--line:#ffffff21;--text:#f5f3ef;--muted:#aaa8a4;--orange:#ff5b21;color-scheme:dark;font-family:Manrope,Arial,sans-serif;font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:36px}body{margin:0;background:var(--bg);color:var(--text);font-size:16px;line-height:1.6}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:2px solid var(--orange);outline-offset:5px}button{border:0}button:disabled{cursor:default}img{max-width:100%;display:block}[hidden]{display:none!important}.wrap{width:min(1320px,90%);margin-inline:auto}.skip{position:absolute;top:-80px;left:20px;background:var(--orange);color:var(--bg);padding:12px;z-index:20}.skip:focus{top:10px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.header{display:flex;align-items:center;gap:28px;padding-block:24px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;font-size:10px;font-weight:800;letter-spacing:1.3px;line-height:1.5;margin-inline-end:auto}.monogram{font-size:56px;line-height:.9;letter-spacing:-5px;font-weight:800}.monogram span,.accent,.footer-name span{color:var(--orange)}.header nav{display:flex;gap:30px;font-size:13px;font-weight:600}.header nav a:hover,.footer a:hover{color:var(--orange)}.language{background:transparent;border:1px solid var(--line);border-radius:50px;padding:8px 13px;font-size:12px;min-height:42px}.hero{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center;padding-block:52px 28px;min-height:660px;position:relative}.hero-copy{position:relative;z-index:2}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.5px;margin:0 0 30px;color:var(--muted);display:flex;align-items:center;gap:9px}.dot{height:6px;width:6px;flex-shrink:0;border-radius:50%;background:var(--orange)}.intro{font-size:15px;color:#d0ceca;margin:0 0 17px}.hero h1{font-size:clamp(46px,5.4vw,78px);font-weight:800;letter-spacing:-3.8px;line-height:1.04;margin:0 0 24px}.hero h1 span{display:block}.soft{color:var(--muted)}.hero-note{max-width:365px;font-size:14px;color:var(--muted);margin:0 0 27px;line-height:1.7}.actions{display:flex;gap:11px;flex-wrap:wrap}.pill{display:inline-flex;align-items:center;justify-content:center;gap:22px;min-height:48px;padding:12px 21px;border-radius:50px;font-size:12px;font-weight:700;transition:background .2s,transform .2s}.pill:hover{transform:translateY(-2px)}.primary{background:var(--orange);color:#101010}.primary:hover{background:#ff783f}.outline{border:1px solid #ffffff45;background:transparent}.outline:hover{background:#ffffff0d}.play{font-size:9px}.portrait-stage{position:relative;isolation:isolate;align-self:center;touch-action:pan-y;min-width:0}.portrait-canvas,.portrait-fallback{width:100%;height:auto;aspect-ratio:1;mask-image:linear-gradient(to bottom,#000 85%,transparent),linear-gradient(to right,transparent,#000 7%,#000 93%,transparent);mask-composite:intersect}.portrait-canvas{position:relative}.portrait-caption{display:flex;justify-content:center;align-items:center;gap:8px;font-size:11px;margin-top:7px}.portrait-tools{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;margin-top:14px;font-size:10px;color:var(--muted)}.portrait-tools button{background:transparent;color:var(--muted);border-bottom:1px solid #ffffff35;font-size:10px;padding:5px 0}.gaze-controls{display:flex;justify-content:center;gap:6px;margin-top:10px}.gaze-controls button{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#ffffff09;border:1px solid var(--line);font-size:14px;line-height:1}.gaze-controls button:hover{color:var(--orange);border-color:var(--orange)}.hero-foot{display:flex;justify-content:space-between;gap:20px;font-size:10px;letter-spacing:1px;color:var(--muted);border-bottom:1px solid var(--line);padding-block:20px 27px}.work{padding-block:85px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:50px;margin-bottom:32px}.section-heading .eyebrow,.about .eyebrow{color:var(--orange);margin-bottom:22px}h2{font-size:clamp(32px,4vw,52px);line-height:1.15;letter-spacing:-2px;font-weight:700;margin:0}.section-note{font-size:13px;max-width:300px;color:var(--muted);margin:0}.filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:30px}.filters button{font-size:12px;background:transparent;border:1px solid var(--line);border-radius:50px;padding:10px 18px;min-height:42px}.filters button[aria-pressed=true]{color:#101010;background:var(--text);border-color:var(--text)}.project-grid{display:grid;grid-template-columns:1fr 1fr;gap:38px 26px}.project-card{display:block;min-width:0}.project-cover{background:var(--panel);border-radius:12px;overflow:hidden;aspect-ratio:4/3;position:relative}.project-cover img{width:100%;height:100%;object-fit:cover;transition:transform .5s}.project-card:hover .project-cover img{transform:scale(1.035)}.project-view{position:absolute;right:18px;bottom:18px;background:var(--orange);color:var(--bg);border-radius:50%;width:46px;height:46px;display:grid;place-items:center;font-size:23px;transform:translateY(70px);transition:transform .25s}.project-card:hover .project-view,.project-card:focus-visible .project-view{transform:none}.project-info{display:flex;justify-content:space-between;gap:18px;padding-top:17px}.project-info h3{margin:0;font-size:24px;font-weight:700;line-height:1.2;letter-spacing:-.7px}.project-info p{margin:7px 0 0;color:var(--muted);font-size:12px}.project-category{font-size:10px;color:var(--muted);letter-spacing:.6px;text-transform:uppercase;padding-top:4px;text-align:end}.text-link{display:inline-flex;gap:22px;border-bottom:1px solid #ffffff45;padding-block:12px;margin-top:34px;font-size:13px}.text-link:hover{color:var(--orange)}.about{display:grid;grid-template-columns:1fr 1fr;gap:65px;border-block:1px solid var(--line);padding-block:70px}.about-heading h2{white-space:pre-line}.about-lead{font-size:23px;font-weight:500;line-height:1.6;margin:0 0 16px;letter-spacing:-.5px}.muted{color:var(--muted);font-size:14px;margin:0 0 28px}.service{display:grid;grid-template-columns:32px 1fr;gap:16px;border-top:1px solid var(--line);padding-block:20px}.service>span{font-size:10px;color:var(--orange);padding-top:5px}.service h3{font-size:19px;font-weight:600;margin:0 0 6px}.service p{font-size:12px;color:var(--muted);margin:0}.contact{padding-block:85px 65px}.contact h2{font-size:clamp(40px,6.7vw,88px);line-height:1.1;letter-spacing:-4px}.contact-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:35px}.contact-bottom p{font-size:14px;color:var(--muted)}.footer{padding-block:25px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:25px;font-size:11px}.footer>div{display:flex;gap:23px}.footer-name{font-weight:800;font-size:15px;letter-spacing:-.4px}dialog{width:min(950px,92vw);padding:20px;border:1px solid var(--line);border-radius:16px;background:#151515;color:var(--text);max-height:92vh}dialog::backdrop{background:#000d}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:11px;margin-bottom:15px}.dialog-close{background:transparent;color:var(--text);border:1px solid var(--line);border-radius:50px;padding:8px 15px;min-height:42px}dialog video{display:block;width:100%;max-height:74vh;object-fit:contain;background:#101010}.case-head{padding-block:65px 40px}.case-head h1{font-size:clamp(40px,6vw,76px);line-height:1.12;letter-spacing:-3px;max-width:900px;margin:20px 0}.case-head .eyebrow{color:var(--orange)}.case-description{display:grid;grid-template-columns:1fr 2fr;gap:30px;margin:35px 0}.case-description h2{font-size:20px;letter-spacing:-.5px}.case-description p{max-width:720px;color:var(--muted);font-size:15px;margin:0}.case-media{display:grid;gap:20px;padding-block:20px 65px}.case-media img{width:100%;border-radius:8px}.case-media video{width:100%;max-height:80vh;border-radius:8px;background:#080808}.case-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-block:35px;border-top:1px solid var(--line)}html[dir=rtl] body{font-family:'IBM Plex Sans Arabic',Arial,sans-serif}html[dir=rtl] h1,html[dir=rtl] h2{letter-spacing:0;line-height:1.25}html[dir=rtl] .hero h1{font-size:clamp(42px,5vw,70px)}html[dir=rtl] .brand,html[dir=rtl] .portrait-stage{direction:ltr}html[dir=rtl] .eyebrow{letter-spacing:0}
@media(min-width:1500px){.hero{gap:50px}.portrait-stage{width:630px;margin-inline-start:-30px}}
@media(max-width:850px){.hero{min-height:0;grid-template-columns:1fr 1fr;padding-block:35px}.hero h1{font-size:clamp(42px,6.5vw,59px);letter-spacing:-2.6px}.hero .eyebrow{font-size:9px;letter-spacing:.7px}.hero-note{font-size:12px}.portrait-caption{font-size:10px}.follow-label{display:none}.section-heading{gap:25px}.section-note{max-width:230px}.about{gap:35px}.about-lead{font-size:20px}}
@media(max-width:650px){.wrap{width:89%}.header{gap:20px;padding-block:20px}.header nav{gap:16px;font-size:12px}.brand{font-size:8px;gap:8px}.monogram{font-size:43px}.language{padding:6px 10px;font-size:11px}.hero{grid-template-columns:1fr;padding-top:33px;gap:10px}.hero h1{font-size:clamp(47px,12vw,72px);letter-spacing:-3px}.hero .eyebrow{font-size:9px;margin-bottom:25px}.hero-note{font-size:14px;max-width:350px}.intro{font-size:14px}.portrait-stage{width:100%;max-width:450px;margin:15px auto 0}.portrait-tools{font-size:11px}.portrait-tools button{font-size:11px;min-height:44px}.portrait-caption{font-size:11px}.gaze-controls button{height:44px;width:44px}.hero-foot{font-size:8px;gap:15px;letter-spacing:.5px}.work{padding-block:55px}.section-heading{display:block}.section-note{margin-top:20px;max-width:340px}.project-grid{grid-template-columns:1fr;gap:30px}.project-info h3{font-size:23px}.project-cover{border-radius:9px}.project-view{transform:none;width:36px;height:36px;right:12px;bottom:12px;font-size:19px}.about{grid-template-columns:1fr;gap:32px;padding-block:50px}.about-lead{font-size:21px}.contact{padding-block:60px 45px}.contact h2{font-size:clamp(38px,9vw,60px);letter-spacing:-2px}.contact-bottom{align-items:start;flex-direction:column;margin-top:25px}.footer{flex-wrap:wrap;gap:18px}.footer-name{margin-inline-end:auto}.footer>div{gap:16px}.case-description{grid-template-columns:1fr;gap:15px}.case-head{padding-top:35px}.case-head h1{letter-spacing:-2px}.case-footer{flex-wrap:wrap}html[dir=rtl] .hero h1{font-size:clamp(45px,10vw,64px)}}
@media(max-width:365px){.header{flex-wrap:wrap;gap:13px}.header nav{order:3;width:100%;justify-content:space-between}.language{margin-inline-start:auto}.hero h1{font-size:46px}.pill{padding:12px 17px;gap:13px}.hero-foot{flex-wrap:wrap}.filters button{padding:10px 14px}.project-category{font-size:9px;max-width:105px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}.project-card:hover .project-cover img,.pill:hover{transform:none}}
.portrait-canvas,.portrait-fallback{mask-image:linear-gradient(to bottom,transparent,#000 6%,#000 85%,transparent),linear-gradient(to right,transparent,#000 7%,#000 93%,transparent);mask-composite:intersect}

/* Delivery refinements: comfortable controls, stable media, restrained motion. */
.gaze-controls button{width:44px;height:44px}.portrait-tools button{min-height:44px}
.header nav a{display:inline-flex;align-items:center;min-height:44px}
.case-head h1,.project-info h3{overflow-wrap:anywhere}.case-copy p{margin:0 0 1em}
.case-cover{aspect-ratio:4/3;object-fit:cover}.case-media figure{margin:0}
.case-footer .text-link{margin-top:0}.empty-projects{padding:30px;border:1px solid var(--line)}
.project-card{content-visibility:auto;contain-intrinsic-size:auto 440px}
.case-media img{height:auto}.project-cover img{background:#181818}
.hero-copy{animation:essam-arrive .65s ease-out both}@keyframes essam-arrive{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.footer .copyright{white-space:nowrap}.language{min-width:44px;min-height:44px}
@media(max-width:650px){.project-category{max-width:115px}.section-note{font-size:14px}.filters{gap:9px}.filters button{min-height:44px}.case-head h1{font-size:42px}.case-media{gap:15px}}

/* Local review: project presentation only. */
.quick-copy .quick-description{color:#b9b7b2;font-size:15px}
.work-counter{margin-bottom:22px}.interactive-project{translate:0 0;transition:translate .3s ease,border-color .25s,box-shadow .25s}.interactive-project:hover,.interactive-project:focus-within{translate:0 -4px}.interactive-project:hover .card-image,.interactive-project:focus-within .card-image{transform:scale(1.025)}
.work{padding-block:90px 105px}.work .section-heading{align-items:center;margin-bottom:40px}.work .section-heading h2{font-size:clamp(38px,4.8vw,68px);letter-spacing:-3px;line-height:1.08}.work .section-note{max-width:285px;font-size:14px}.work-counter{display:flex;align-items:baseline;gap:10px;color:var(--muted);font-size:11px;margin-top:24px}.work-counter strong{font-size:38px;font-weight:500;letter-spacing:-2px;color:var(--text);line-height:1}.work-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-block:20px;border-block:1px solid var(--line);margin-bottom:28px}.work-toolbar .filters{margin:0;gap:6px}.work-toolbar .filters button{border:0;background:transparent;color:var(--muted);padding:10px 15px;font-size:12px}.work-toolbar .filters button[aria-pressed=true]{color:#101010;background:var(--text)}.work-hint{font-size:10px;color:var(--muted);display:flex;gap:10px;align-items:center}.work-hint:before{content:'↗';font-size:19px;color:var(--orange)}
.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px;perspective:1500px}.interactive-project{min-width:0;--rx:0deg;--ry:0deg;animation:card-arrive .5s both;animation-delay:var(--arrive);border:1px solid #ffffff16;border-radius:18px;background:#171717;transition:border-color .25s,box-shadow .25s;position:relative}.interactive-project:hover,.interactive-project:focus-within{border-color:color-mix(in srgb,var(--card-accent) 65%,transparent);box-shadow:0 18px 50px #0006}.project-hit{width:100%;display:block;text-align:start;background:transparent;padding:0;border-radius:18px;transform:rotateX(var(--rx)) rotateY(var(--ry));transition:transform .24s ease-out;transform-style:preserve-3d}.project-hit:focus-visible{outline-offset:6px}.card-media{aspect-ratio:1.278;position:relative;overflow:hidden;border-radius:17px 17px 0 0;background:#222}.card-image{width:100%;height:100%;object-fit:cover;transition:transform .65s cubic-bezier(.2,.65,.3,1),filter .45s}.interactive-project:hover .card-image,.interactive-project:focus-within .card-image{transform:scale(1.035)}.card-top{position:absolute;inset:18px 18px auto;display:flex;justify-content:space-between;align-items:center;gap:10px;opacity:0;transform:translateY(-6px);transition:.25s;pointer-events:none}.interactive-project:hover .card-top,.interactive-project:focus-within .card-top{opacity:1;transform:none}.card-number,.card-kind{border:1px solid #ffffff36;background:#0b0b0bc9;backdrop-filter:blur(8px);padding:6px 11px;border-radius:30px;color:white;font-size:9px;letter-spacing:1px}.card-number{font-variant-numeric:tabular-nums}.card-hover{position:absolute;inset:auto 20px 20px;display:flex;justify-content:space-between;align-items:center;padding:13px 18px;background:#101010dc;backdrop-filter:blur(12px);border:1px solid #ffffff25;border-radius:9px;transform:translateY(75px);opacity:0;transition:transform .3s,opacity .3s;font-size:12px;font-weight:600}.card-hover span:last-child{font-size:23px;color:var(--orange)}.interactive-project:hover .card-hover,.interactive-project:focus-within .card-hover{transform:none;opacity:1}.card-glare{position:absolute;inset:0;background:radial-gradient(circle at var(--mx,50%) var(--my,50%),#ffffff13,transparent 65%);opacity:0;transition:opacity .3s;pointer-events:none}.interactive-project:hover .card-glare{opacity:1}.card-info{display:flex;align-items:center;justify-content:space-between;padding:23px 24px 25px;gap:20px}.card-category{display:block;font-size:9px;text-transform:uppercase;letter-spacing:1.4px;color:var(--muted);margin-bottom:9px}.card-titles h3{font-size:30px;letter-spacing:-1.2px;margin:0;line-height:1.15;font-weight:700}.card-titles p{font-size:12px;color:var(--muted);margin:7px 0 0}.card-arrow{width:44px;height:44px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;border:1px solid #ffffff2b;font-size:24px;transition:.25s;color:#e4e1db}.interactive-project:hover .card-arrow,.interactive-project:focus-within .card-arrow{background:var(--orange);color:#101010;border-color:var(--orange);transform:rotate(8deg)}
.project-open{overflow:hidden}.project-dialog{width:min(1180px,94vw);max-height:92dvh;padding:0;border-radius:18px;border:1px solid #ffffff28;overscroll-behavior:contain}.project-dialog::backdrop{background:#080808e6;backdrop-filter:blur(9px)}.quick-head{position:sticky;top:0;z-index:3;padding:16px 24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);background:#151515f2;backdrop-filter:blur(15px);gap:16px}.quick-head .eyebrow{margin:0;font-size:10px;letter-spacing:1px}.quick-layout{display:grid;grid-template-columns:1.25fr 1fr}.quick-media{padding:28px;background:#101010;min-width:0}.quick-media>img,.quick-media>video{width:100%;height:440px;max-height:57vh;object-fit:contain;background:#090909;border-radius:8px}.quick-copy{padding:38px 32px;min-width:0}.quick-category{display:block;color:var(--orange);text-transform:uppercase;font-size:10px;letter-spacing:1.5px;margin-bottom:20px}.quick-copy h2{font-size:48px;letter-spacing:-2px;line-height:1.12;overflow-wrap:anywhere}.quick-subtitle{font-size:16px;color:#c9c5bd;margin:12px 0 32px}.quick-description-title{font-size:11px;text-transform:uppercase;letter-spacing:1px;font-weight:600;margin:0 0 12px}.quick-description{font-size:14px;color:var(--muted);line-height:1.9}.quick-tags{display:flex;flex-wrap:wrap;gap:6px;margin:24px 0}.quick-tags span{font-size:10px;border:1px solid var(--line);border-radius:25px;padding:5px 9px}.quick-copy .pill{width:100%;margin-top:12px}.quick-copy .text-link{margin-top:14px;font-size:12px}.quick-thumbs{display:flex;gap:8px;overflow-x:auto;padding:16px 2px 5px}.quick-thumbs button{flex:0 0 70px;height:58px;background:#222;border:1px solid #ffffff25;padding:0;border-radius:5px;overflow:hidden}.quick-thumbs button:hover{border-color:var(--orange)}.quick-thumbs img{width:100%;height:100%;object-fit:cover}.quick-thumbs .film-thumb{font-size:10px;color:var(--orange)}html[dir=rtl] .card-titles h3,html[dir=rtl] .quick-copy h2{letter-spacing:0}html[dir=rtl] .card-category,html[dir=rtl] .quick-category,html[dir=rtl] .card-kind{letter-spacing:0}html[dir=rtl] .quick-copy{font-family:'IBM Plex Sans Arabic',sans-serif}html[dir=rtl] .work .section-heading h2{letter-spacing:0;line-height:1.25}
@keyframes card-arrive{from{opacity:0}to{opacity:1}}
@media(max-width:850px){.project-grid{gap:20px}.card-info{padding:20px}.card-titles h3{font-size:25px}.work-hint{display:none}.quick-layout{grid-template-columns:1fr}.quick-media>img,.quick-media>video{height:360px}.quick-copy{padding:25px}.quick-copy h2{font-size:37px}.quick-media{padding:20px}.quick-copy .pill{width:auto}.quick-copy .text-link{display:flex;width:max-content}}
@media(max-width:650px){.work{padding-block:60px}.work .section-heading h2{font-size:40px;letter-spacing:-1.7px}.work .section-heading{margin-bottom:24px}.work-counter{margin-top:18px}.work-toolbar{padding-block:14px;position:relative}.work-toolbar .filters{gap:4px}.work-toolbar .filters button{font-size:11px;padding:9px 12px}.project-grid{grid-template-columns:1fr;gap:24px}.card-info{padding:21px}.card-titles h3{font-size:29px}.card-top{opacity:1;transform:none;inset:12px 12px auto}.card-number,.card-kind{font-size:8px}.card-hover{display:none}.quick-head{padding:12px 18px}.quick-head .eyebrow{font-size:8px;max-width:65%}.quick-media{padding:14px}.quick-media>img,.quick-media>video{height:300px;max-height:45vh}.project-dialog{max-height:94dvh;width:95vw}.quick-copy{padding:18px 24px 30px}}
@media(prefers-reduced-motion:reduce){.interactive-project{animation:none}.interactive-project:hover,.interactive-project:focus-within{translate:none}.project-hit,.card-image{transform:none!important}.card-glare{display:none}}
