/* ============================================================
   Mahmoud El Haj Ali — Portfolio 2026
   Built to the Claude Design spec: "Website sketch from PDF"
   ink #080808 · panel #0B0B0B · lime #D7F24E · ivory #F2EFE9
   Instrument Serif (display) · Outfit (body)
   ============================================================ */

:root{
  --ink:#080808;
  --panel:#0B0B0B;
  --panel-2:#0E0E0E;
  --acc:#D7F24E;
  --acc-hi:#EEFFA0;
  --ivory:#F2EFE9;
  --mut:rgba(242,239,233,.66);
  --mut-2:rgba(242,239,233,.55);
  --mut-3:rgba(242,239,233,.42);
  --line:rgba(255,255,255,.10);
  --line-2:rgba(255,255,255,.06);

  --serif:'Instrument Serif',Georgia,serif;
  --sans:'Outfit',system-ui,-apple-system,sans-serif;

  --pad:clamp(20px,4vw,64px);
  --maxw:1320px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--ink)}
body{
  margin:0;background:var(--ink);color:var(--ivory);
  font-family:var(--sans);font-weight:300;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
img{display:block;max-width:100%}
a{color:var(--acc);text-decoration:none}
a:hover{color:var(--acc-hi)}
::selection{background:var(--acc);color:var(--ink)}
section[id]{scroll-margin-top:88px}
:focus-visible{outline:2px solid var(--acc);outline-offset:3px}

h1,h2,h3{margin:0;font-family:var(--serif);font-weight:400}
p{margin:0}

@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none !important;transition-duration:.01ms !important}
  .rv{opacity:1 !important;transform:none !important}
}

/* ---------- scroll progress ---------- */
#bar-track{
  position:fixed;top:0;left:0;height:2px;width:100%;z-index:60;
  background:rgba(255,255,255,.06);
}
#bar{height:100%;background:var(--acc);width:0;transition:width .1s linear}

/* ---------- floating pill nav ---------- */
nav{
  position:fixed;top:14px;left:50%;transform:translateX(-50%);z-index:50;
  width:min(var(--maxw),calc(100% - 28px));
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:10px 10px 10px 22px;
  border:1px solid var(--line);border-radius:999px;
  background:rgba(12,12,12,.72);backdrop-filter:blur(14px);
}
.brand{display:flex;align-items:center;gap:10px;color:var(--ivory)}
.brand:hover{color:var(--ivory)}
.brand .dot{
  width:9px;height:9px;border-radius:50%;background:var(--acc);
  box-shadow:0 0 14px var(--acc);flex:none;
}
.brand span{font-size:14px;letter-spacing:.14em;text-transform:uppercase;font-weight:500}
.navlinks{
  display:flex;flex-wrap:nowrap;align-items:center;
  gap:clamp(10px,1.6vw,26px);font-size:13.5px;
  white-space:nowrap;overflow-x:auto;scrollbar-width:none;min-width:0;
}
.navlinks::-webkit-scrollbar{display:none}
.navlinks a{color:rgba(242,239,233,.72)}
.navlinks a:hover,.navlinks a.active{color:var(--ivory)}
.nav-cta{
  flex:none;white-space:nowrap;padding:10px 18px;border-radius:999px;
  background:var(--acc);color:var(--ink);font-size:13.5px;font-weight:500;
}
.nav-cta:hover{background:var(--acc-hi);color:var(--ink)}
@media(max-width:720px){
  .navlinks{display:none}
}

/* ---------- reveal ---------- */
.rv{
  opacity:0;transform:translateY(26px);
  transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1);
}
.rv.in{opacity:1;transform:none}

/* ---------- HERO ---------- */
.hero{
  position:relative;min-height:100svh;
  padding:clamp(120px,14vh,180px) var(--pad) 0;
  display:flex;flex-direction:column;justify-content:center;
}
.hero-glow{
  position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(90% 70% at 78% 40%,rgba(215,242,78,.10),transparent 60%);
}
.hero-in{
  position:relative;width:min(var(--maxw),100%);margin:0 auto;
  display:flex;flex-wrap:wrap;align-items:flex-end;gap:clamp(24px,4vw,56px);
}
.hero-copy{flex:1 1 460px;min-width:300px;padding-bottom:clamp(20px,6vh,80px)}
.pill-row{display:flex;align-items:center;gap:12px;margin-bottom:22px}
.pill-o{width:26px;height:26px;border-radius:50%;border:1px solid rgba(242,239,233,.5)}
.pill{
  padding:6px 16px;border-radius:999px;border:1px solid rgba(242,239,233,.5);
  font-size:13px;letter-spacing:.18em;font-variant-numeric:tabular-nums;
}
h1.display{
  font-size:clamp(64px,11vw,168px);line-height:.86;letter-spacing:-.02em;
  text-wrap:balance;
}
.name-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:26px}
.name-chip{
  padding:9px 20px;border-radius:999px;background:var(--ivory);color:var(--ink);
  font-size:15px;font-weight:500;
}
.name-chip i{font-weight:300;font-style:italic;font-family:var(--serif);font-size:18px}
.name-ball{width:14px;height:14px;border-radius:50%;background:var(--ivory)}
.hero-sub{
  max-width:44ch;margin-top:32px;
  font-size:clamp(15px,1.5vw,18px);line-height:1.65;color:var(--mut);
  text-wrap:pretty;
}
.hero-stats{display:flex;flex-wrap:wrap;gap:34px;margin-top:44px}
.hero-stats .n{
  font-family:var(--serif);font-size:40px;line-height:1;color:var(--acc);
  font-variant-numeric:tabular-nums;
}
.hero-stats .l{
  font-size:13px;letter-spacing:.12em;text-transform:uppercase;
  color:rgba(242,239,233,.5);margin-top:8px;
}

/* hero portrait — tilted, bleeds into About */
.hero-shot{
  flex:1 1 380px;min-width:280px;max-width:min(100%,460px);
  margin-left:auto;margin-right:auto;position:relative;z-index:4;
  margin-bottom:clamp(-160px,-10vh,-70px);perspective:1400px;
}
.hero-shot .tilt{
  transform:rotateY(-11deg) rotateX(5deg);transform-style:preserve-3d;
  border-radius:26px;overflow:hidden;
  box-shadow:-40px 60px 120px rgba(0,0,0,.85),0 0 0 1px rgba(255,255,255,.07);
}
.hero-shot img{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:center top}
.tag-lime{
  padding:10px 18px;border-radius:10px;background:var(--acc);color:var(--ink);
  font-size:14px;font-weight:500;box-shadow:0 18px 40px rgba(0,0,0,.6);
  transition:background .3s;
}
/* keep the label dark on hover — the global a:hover would wash it out */
a.tag-lime:hover{background:var(--acc-hi);color:var(--ink)}
.hero-shot .tag-lime{position:absolute;left:-26px;bottom:38px}

/* ---------- section heads ---------- */
.sec{position:relative;padding:clamp(90px,11vh,150px) var(--pad)}
.wrap{width:min(var(--maxw),100%);margin:0 auto}
.head{display:flex;align-items:baseline;gap:18px;margin-bottom:clamp(40px,6vh,72px)}
.head .no{font-size:13px;letter-spacing:.2em;color:var(--acc);font-variant-numeric:tabular-nums}
h2{font-size:clamp(38px,6vw,86px);line-height:1;letter-spacing:-.01em}

/* ---------- ABOUT ---------- */
#about{
  padding-top:clamp(140px,18vh,220px);padding-bottom:clamp(90px,10vh,140px);
  background:linear-gradient(180deg,var(--panel),var(--ink));
}
.about-row{display:flex;flex-wrap:wrap;gap:clamp(28px,4vw,64px);align-items:flex-start}
.about-shot{
  flex:1 1 320px;min-width:260px;max-width:min(100%,400px);
  margin-inline:auto;position:relative;perspective:1200px;
}
.about-shot .tilt{
  transform:rotateY(7deg);border-radius:18px;overflow:hidden;
  box-shadow:40px 50px 100px rgba(0,0,0,.8),0 0 0 1px rgba(215,242,78,.18);
}
.about-shot img{width:100%;aspect-ratio:3/4;object-fit:cover;filter:grayscale(1) contrast(1.04)}
.about-shot .tag-lime{position:absolute;right:-14px;bottom:-18px;line-height:1.3}

.tl{
  flex:2 1 520px;min-width:300px;display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:clamp(20px,2.4vw,36px);
}
.tl-item{border-top:1px solid rgba(255,255,255,.12);padding-top:18px}
.tl-item.now{border-top-color:rgba(215,242,78,.5)}
.tl-item .yr{font-family:var(--serif);font-size:26px;color:var(--acc);line-height:1}
.tl-item h3{font-size:22px;margin:6px 0 10px}
.tl-item p{font-size:15px;line-height:1.6;color:rgba(242,239,233,.62)}

/* ---------- LOGOFOLIO ---------- */
#logos{
  padding:clamp(80px,10vh,130px) 0 clamp(90px,11vh,150px);
  background:var(--panel);border-top:1px solid var(--line-2);
}
#logos .wrap{padding:0 var(--pad)}
.logos-head{
  display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;
  gap:18px;margin-bottom:clamp(32px,5vh,56px);
}
.logos-head .head{margin-bottom:0}
.logos-head p{max-width:34ch;font-size:15px;line-height:1.6;color:var(--mut-2)}
.logo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
.logo-cell{
  aspect-ratio:1;border:1px solid rgba(255,255,255,.08);border-radius:16px;
  overflow:hidden;background:var(--panel-2);padding:13%;
  display:grid;place-items:center;transition:border-color .4s,background .4s;
}
.logo-cell.hot{border-color:rgba(215,242,78,.35)}
.logo-cell:hover{border-color:rgba(215,242,78,.6);background:#121208}
.logo-cell img{
  width:100%;height:100%;object-fit:contain;
  transition:transform .5s cubic-bezier(.2,.7,.2,1);
}
.logo-cell:hover img{transform:scale(1.06)}

.marquee-band{
  margin-top:clamp(48px,7vh,84px);overflow:hidden;
  border-top:1px solid var(--line-2);border-bottom:1px solid var(--line-2);
  padding:18px 0;
}
.marquee{
  display:flex;width:max-content;gap:46px;
  animation:marquee 26s linear infinite;
  font-family:var(--serif);font-size:clamp(26px,3.4vw,44px);
  color:rgba(242,239,233,.34);white-space:nowrap;
}
.marquee .sep{color:var(--acc)}

/* ---------- BRANDING ---------- */
#branding{padding-bottom:clamp(120px,14vh,190px);background:var(--ink)}
.proj{
  display:flex;flex-wrap:wrap;gap:clamp(24px,3vw,48px);align-items:center;
  margin-bottom:clamp(70px,9vh,130px);
}
.proj:last-child{margin-bottom:0}
.proj.flip{flex-wrap:wrap-reverse}
.proj-txt{flex:1 1 300px;min-width:260px}
.proj-kind{
  font-size:13px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--acc);margin-bottom:14px;
}
.proj-txt h3{font-size:clamp(30px,3.6vw,52px);line-height:1.05;margin-bottom:14px}
.proj-txt p{max-width:38ch;font-size:15px;line-height:1.65;color:rgba(242,239,233,.6);margin-bottom:22px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  padding:7px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.14);
  font-size:13px;color:rgba(242,239,233,.72);
}

.proj-vis{flex:1.4 1 460px;min-width:280px;perspective:1500px}
.proj-vis .tilt{
  transform:rotateY(-7deg) rotateX(4deg);
  box-shadow:-30px 48px 110px rgba(0,0,0,.8);border-radius:16px;
}
.proj.flip .proj-vis .tilt{
  transform:rotateY(7deg) rotateX(4deg);
  box-shadow:30px 48px 110px rgba(0,0,0,.8);
}
.proj-board{border-radius:16px;overflow:hidden;margin-bottom:10px}
.proj-board.edge{border:1px solid rgba(215,242,78,.4)}
.proj-board img{width:100%;display:block}
.proj-mark{
  border-radius:16px;overflow:hidden;margin-bottom:10px;
  background:var(--panel-2);padding:clamp(18px,2.6vw,34px);
  display:grid;place-items:center;
}
.proj-mark img{max-height:118px;width:auto;object-fit:contain}

/* ---------- SOCIAL ---------- */
#social{
  padding-bottom:clamp(100px,12vh,160px);
  background:radial-gradient(70% 50% at 20% 0%,rgba(215,242,78,.12),transparent 60%),var(--panel);
  border-top:1px solid var(--line-2);
}
#social .head{margin-bottom:clamp(30px,5vh,54px)}

/* five fanned phones */
.fan{
  position:relative;display:flex;justify-content:center;align-items:flex-end;
  min-height:clamp(320px,46vh,470px);perspective:1600px;
  margin-bottom:clamp(50px,7vh,90px);
}
.fan .ph{border-radius:20px;overflow:hidden}
.fan .ph img{width:100%;aspect-ratio:9/19;object-fit:cover;display:block}
.fan .p1{
  width:clamp(120px,15vw,190px);
  transform:rotate(-9deg) rotateY(16deg) translateY(20px);
  box-shadow:-20px 40px 80px rgba(0,0,0,.75);
  animation:floaty 7s ease-in-out infinite;
}
.fan .p2{
  width:clamp(126px,16vw,200px);margin-left:-22px;
  transform:rotate(-4deg) rotateY(9deg);
  box-shadow:-18px 40px 80px rgba(0,0,0,.75);
  animation:floaty 8s ease-in-out .4s infinite;
}
.fan .p3{
  width:clamp(140px,18vw,224px);margin-left:-22px;z-index:3;
  transform:translateY(-18px);border-radius:22px;
  box-shadow:0 50px 100px rgba(0,0,0,.85),0 0 0 1px rgba(215,242,78,.25);
  animation:floaty 6.5s ease-in-out .2s infinite;
}
.fan .p4{
  width:clamp(126px,16vw,200px);margin-left:-22px;
  transform:rotate(4deg) rotateY(-9deg);
  box-shadow:18px 40px 80px rgba(0,0,0,.75);
  animation:floaty 8.4s ease-in-out .6s infinite;
}
.fan .p5{
  width:clamp(120px,15vw,190px);margin-left:-22px;
  transform:rotate(9deg) rotateY(-16deg) translateY(20px);
  box-shadow:20px 40px 80px rgba(0,0,0,.75);
  animation:floaty 7.6s ease-in-out .8s infinite;
}
.fan .share{
  position:absolute;right:clamp(0px,8vw,120px);top:clamp(10px,6vh,60px);z-index:5;
  padding:9px 16px;border-radius:8px;background:var(--acc);color:var(--ink);
  font-size:14px;font-weight:500;box-shadow:0 16px 34px rgba(0,0,0,.6);
}

.ig-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.ig-cell{
  border-radius:14px;overflow:hidden;background:#111;
  transition:transform .4s cubic-bezier(.2,.7,.2,1);
}
.ig-cell:hover{transform:translateY(-6px)}
.ig-cell img{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:center;display:block}

/* ---------- PHOTOGRAPHY ---------- */
#photo{padding-bottom:clamp(120px,14vh,200px);background:var(--ink)}
#photo .head{margin-bottom:22px}
.pull{
  margin-bottom:clamp(36px,5vh,64px);
  font-size:clamp(20px,2.6vw,34px);line-height:1.35;max-width:24ch;
}
.pull .qm{
  font-family:var(--serif);color:var(--acc);
  font-size:1.5em;line-height:0;vertical-align:-.12em;
}
.pull em{font-style:italic;font-family:var(--serif);color:var(--acc)}

.mosaic{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  grid-auto-rows:clamp(120px,15vh,170px);gap:14px;
}
.mosaic figure{margin:0;border-radius:14px;overflow:hidden;grid-row:span 2}
.mosaic figure.tall{grid-row:span 3}
.mosaic img{
  width:100%;height:100%;object-fit:cover;
  transition:transform 1s cubic-bezier(.2,.7,.2,1);
}
.mosaic figure:hover img{transform:scale(1.05)}

/* ---------- CONTACT ---------- */
#contact{
  padding:clamp(90px,11vh,150px) var(--pad) 40px;
  background:radial-gradient(60% 60% at 78% 40%,rgba(215,242,78,.14),transparent 62%),var(--panel);
  border-top:1px solid var(--line-2);
}
.contact-row{
  width:min(var(--maxw),100%);margin:0 auto;
  display:flex;flex-wrap:wrap;gap:clamp(30px,5vw,70px);align-items:center;
}
.contact-copy{flex:1.3 1 420px;min-width:280px}
.contact-copy .head{margin-bottom:clamp(30px,5vh,50px)}
.c-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px 26px;margin-bottom:clamp(34px,5vh,54px);
}
.c-item{
  display:flex;align-items:center;gap:14px;
  color:var(--ivory);font-size:15px;font-weight:300;
}
a.c-item:hover{color:var(--acc)}
.c-ico{
  flex:none;width:34px;height:34px;border-radius:50%;
  border:1px solid rgba(215,242,78,.6);
  display:flex;align-items:center;justify-content:center;
  color:var(--acc);font-size:14px;
}
.c-ico svg{width:16px;height:16px}

.contact-vis{flex:1 1 300px;min-width:240px;display:flex;justify-content:center;perspective:1400px}
.contact-phone{position:relative;width:clamp(200px,26vw,300px)}
.contact-phone .tilt{
  transform:rotateY(-12deg) rotateX(6deg);border-radius:26px;overflow:hidden;
  box-shadow:-24px 50px 100px rgba(0,0,0,.85),0 0 0 1px rgba(215,242,78,.3);
  animation:floaty 9s ease-in-out infinite;
}
.contact-phone img{width:100%;aspect-ratio:9/18;object-fit:cover;display:block}
.contact-phone .tag-lime{position:absolute;right:-24px;bottom:52px}
.contact-phone .tag-lime:hover{background:var(--acc-hi)}

footer{
  width:min(var(--maxw),100%);margin:clamp(60px,9vh,110px) auto 0;
  padding-top:24px;border-top:1px solid rgba(255,255,255,.08);
  display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;
  font-size:13px;color:var(--mut-3);
}
footer a{color:var(--mut-3)}
footer a:hover{color:var(--acc)}
.copyleft{display:inline-block;transform:scaleX(-1)}
