:root {
  --night: #0A2A20;
  --deep: #0F3528;
  --emerald: #155C45;
  --jade: #3E8E6E;
  --gold: #D4AF6A;
  --gold-soft: #E8D3A4;
  --blush: #F1D3CA;
  --ivory: #F7F0E3;
  --ink: #2A1D17;
  --doodle: #E9773E;

  --script: "Pinyon Script", cursive;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --arabic: "Amiri", "Geeza Pro", serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--night);
  isolation: isolate;
  color: var(--ivory);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

.h2 {
  font: 500 clamp(2rem, 4.5vw, 3.25rem)/1.1 var(--serif);
  font-variation-settings: "opsz" 144;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--gold-soft);
}
.script {
  font: 400 clamp(2.6rem, 6vw, 4.2rem)/1.1 var(--script);
  margin: 0;
}

/* ---------- Page texture ---------- */
/* Faint gold girih lattice over the whole page, plus film grain on top */
body {
  background-color: var(--night);
  background-image: url("assets/grain.png"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23D4AF6A' stroke-opacity='.055' stroke-width='1'%3E%3Crect x='30' y='30' width='60' height='60'/%3E%3Crect x='30' y='30' width='60' height='60' transform='rotate(45 60 60)'/%3E%3Cpath d='M0 0 L30 30 M120 0 L90 30 M0 120 L30 90 M120 120 L90 90 M60 0 V17.6 M60 120 V102.4 M0 60 H17.6 M120 60 H102.4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 180px, 120px 120px;
}


/* Soft lantern-light glows that drift behind each section, so no stretch of the page is flat */
.about, .work, .photos, .loves { position: relative; }
.about::before, .work::before, .photos::before, .loves::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -120px; bottom: -120px; left: 50%; width: 100vw; translate: -50% 0;
}
.about::before {
  background:
    radial-gradient(38% 55% at 22% 55%, rgba(62, 142, 110, .28), transparent 70%),
    radial-gradient(30% 45% at 78% 45%, rgba(241, 211, 202, .07), transparent 70%);
}
.work::before {
  background:
    radial-gradient(35% 55% at 75% 50%, rgba(212, 175, 106, .12), transparent 70%),
    radial-gradient(40% 60% at 15% 40%, rgba(62, 142, 110, .22), transparent 70%);
}
.photos::before {
  background:
    radial-gradient(40% 22% at 50% 16%, rgba(212, 175, 106, .09), transparent 70%),
    radial-gradient(45% 40% at 20% 60%, rgba(62, 142, 110, .22), transparent 70%),
    radial-gradient(45% 40% at 85% 85%, rgba(62, 142, 110, .2), transparent 70%);
}
.loves::before {
  background: radial-gradient(45% 60% at 50% 60%, rgba(233, 119, 62, .08), transparent 70%);
}

/* Ornament between sections: hairlines meeting at an eight-point star */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  width: min(420px, 70%); margin: 0 auto; color: var(--gold);
}
.ornament::before, .ornament::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 175, 106, .6));
}
.ornament::after { background: linear-gradient(to left, transparent, rgba(212, 175, 106, .6)); }
.ornament svg { width: 26px; height: 26px; flex: none; animation: spin 40s linear infinite; }

/* ---------- Hand-drawn doodles (boiling line) ---------- */
.doodle, .sticker svg {
  fill: none;
  stroke: var(--doodle);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: boil .45s steps(1) infinite;
}
@keyframes boil {
  0% { filter: url(#boil1); }
  33% { filter: url(#boil2); }
  66% { filter: url(#boil3); }
}

/* ---------- Nav ---------- */
.nav {
  position: absolute; top: 18px; left: 50%; z-index: 50;
  translate: -50% 0;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 16px;
  background: rgba(10, 42, 32, .6);
  border: 1px solid rgba(212, 175, 106, .25);
  border-radius: 999px;
  max-width: calc(100% - 32px);
  animation: fadeUp .8s .3s var(--ease) both;
}
.nav__mark {
  display: grid; place-items: center; flex: none;
  padding: 0 10px 6px 4px; height: 42px;
  font: 700 1.9rem/1 var(--arabic); color: var(--gold); text-decoration: none;
  transition: color .3s;
}
.nav__mark:hover { color: var(--gold-soft); }
.nav nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav nav::-webkit-scrollbar { display: none; }
.nav nav a {
  text-decoration: none; font-size: 1.02rem; padding: 10px 18px; border-radius: 999px;
  color: rgba(247, 240, 227, .8); white-space: nowrap; transition: color .25s, background .25s;
}
.nav nav a:hover { color: var(--ivory); background: rgba(212, 175, 106, .14); }
.nav nav a.nav__cta { background: var(--gold); color: var(--night); font-weight: 600; margin-left: 4px; }
.nav nav a.nav__cta:hover { background: var(--gold-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 1000px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding: 110px clamp(16px, 6vw, 96px) 80px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 60% at 30% 50%, rgba(21, 92, 69, .55), transparent 70%),
    var(--night);
}
/* Süleymaniye at sunset, tinted into the emerald palette, fading out at the bottom */
.hero__bg {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: url("assets/bg-mosque.jpg") 50% 62% / cover no-repeat;
  filter: grayscale(1) contrast(1.25) brightness(.95);
  mix-blend-mode: luminosity;
  opacity: .32;
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.hero__pattern, .ayah__pattern {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--gold); opacity: .07; z-index: -1;
}
.hero__pattern { mask-image: radial-gradient(70% 70% at 30% 50%, #000 20%, transparent 80%); -webkit-mask-image: radial-gradient(70% 70% at 30% 50%, #000 20%, transparent 80%); }

.hero__stage { position: relative; aspect-ratio: 1; width: min(100%, 560px); justify-self: center; }
.hero__frame {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  animation: frameIn 1.4s .1s var(--ease) both;
}
@keyframes frameIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.frame__shine { mix-blend-mode: soft-light; }
.frame__edge { fill: none; stroke: var(--gold); stroke-width: 1.6; }
.frame__outline { fill: none; stroke: var(--gold); stroke-width: .8; stroke-opacity: .55; stroke-dasharray: 2 5; }
.frame__key { fill: var(--night); stroke: var(--gold); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; animation: keySpin 18s linear infinite; }
.frame__key circle { fill: var(--doodle); stroke: none; }
@keyframes keySpin { to { rotate: 360deg; } }
.frame__base { fill: var(--night); stroke: var(--gold); stroke-width: 1.2; }

/* Brass lantern swinging from the top-left */
.lantern {
  position: absolute; z-index: 3; top: -14%; left: 3%; width: 13%; overflow: visible;
  transform-origin: 50% 0; animation: swing 5s ease-in-out infinite;
}
@keyframes swing { 0%, 100% { rotate: 4deg; } 50% { rotate: -4deg; } }
.lantern path, .lantern circle { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lantern__chain { stroke-dasharray: 3 3; }
.lantern .lantern__glass { fill: rgba(255, 200, 110, .35); }
.lantern .lantern__glow { fill: rgba(255, 190, 90, .22); stroke: none; filter: blur(8px); animation: flicker 3.2s ease-in-out infinite; }
.lantern g circle:last-child { fill: var(--gold); }
@keyframes flicker { 0%, 100% { opacity: .8; } 30% { opacity: 1; } 55% { opacity: .6; } 75% { opacity: .95; } }

@keyframes spin { to { transform: rotate(360deg); } }

.hero__arch {
  position: absolute; inset: 9% 22%; margin: 0;
  clip-path: url(#arch);
  overflow: hidden;
  animation: archIn 1.6s var(--ease) both;
}
.hero__arch::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 42, 32, .55), transparent 40%);
}
.hero__arch img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%;
  transform: scale(1.04);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes archIn { from { clip-path: url(#arch); opacity: 0; transform: translateY(30px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes drift { to { transform: scale(1.12) translate(-1.5%, -1%); } }

.doodle { position: absolute; z-index: 2; }
.doodle--cat { width: 26%; top: 2%; right: 0; transform: rotate(6deg); animation: boil .45s steps(1) infinite, bob 4s ease-in-out infinite; }
.doodle--cup { width: 22%; bottom: 6%; left: 2%; transform: rotate(-8deg); }
.doodle--sparkle { width: 8%; bottom: 14%; right: 6%; stroke-width: 4; animation: boil .45s steps(1) infinite, twinkle 2.6s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -8px; } }
@keyframes twinkle { 50% { scale: .6; opacity: .5; } }

.hero__text { position: relative; }
.hero__arabic {
  font: 400 clamp(1.6rem, 3vw, 2.2rem)/1 var(--arabic);
  color: var(--gold); margin: 0 0 .2em; text-align: left;
  opacity: 0; animation: fadeUp 1s .5s var(--ease) forwards;
}
.hero__name { margin: 0; font-weight: 400; }
.hero__name-ink {
  display: inline-block;
  font: 400 clamp(3.6rem, 9vw, 7.5rem)/1.05 var(--script);
  color: #FFFDF8;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
  padding: .05em .25em .15em 0;
  clip-path: inset(0 100% 0 0);
  animation: write 2.2s .7s cubic-bezier(.6, .1, .3, 1) forwards;
}
@keyframes write { to { clip-path: inset(0 -10% 0 0); } }

.pulse { width: 100%; max-width: 520px; height: 46px; display: block; margin: .3em 0 1.2em; overflow: visible; }
.pulse path, .pulse rect {
  fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.pulse path { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2s 2.4s var(--ease) forwards; }
.pulse g { opacity: 0; transform-box: fill-box; animation: starPop .8s 3.4s var(--ease) forwards; }
.pulse path:last-of-type { animation-delay: 3.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drawFrame { to { stroke-dashoffset: 0; } }
@keyframes starPop { from { opacity: 0; scale: .2; } to { opacity: 1; scale: 1; } }

.hero__tag {
  max-width: 34ch; margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(247, 240, 227, .82);
  opacity: 0; animation: fadeUp 1s 3.2s var(--ease) forwards;
}
.br-sm { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
  max-width: 1120px; margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) clamp(16px, 5vw, 48px);
}
.about__photo { position: relative; justify-self: center; width: min(100%, 380px); }
.polaroid {
  background: var(--ivory); padding: 14px 14px 0; transform: rotate(-3deg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  transition: transform .5s var(--ease);
}
.polaroid:hover { transform: rotate(0) scale(1.02); }
.polaroid__img { position: relative; aspect-ratio: 4 / 5; background: var(--emerald); overflow: hidden; }
.polaroid__img img { width: 100%; height: 100%; object-fit: cover; }
.polaroid__fallback { display: none; }
.polaroid__img.is-empty {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(212, 175, 106, .25), transparent 60%),
    var(--emerald);
}
.polaroid__img.is-empty .polaroid__fallback { display: block; font: 700 9rem/1 var(--arabic); color: var(--gold); }
.polaroid__cap { margin: 0; padding: 10px 0 14px; text-align: center; color: var(--ink); font: 400 2rem/1 var(--script); }
.doodle--star-a { width: 64px; top: -24px; right: -18px; stroke-width: 4; animation: boil .45s steps(1) infinite, twinkle 3s ease-in-out infinite; }

.paper {
  position: relative;
  background: var(--blush);
  color: var(--ink);
  padding: clamp(28px, 4vw, 48px);
  transform: rotate(1deg);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.paper::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px;
  translate: -50% 0; rotate: -3deg;
  background: rgba(247, 240, 227, .55); backdrop-filter: blur(2px);
}
.paper .script { text-align: center; color: var(--ink); }
.paper__stars { text-align: center; letter-spacing: .4em; margin: .4em 0 1.2em; font-size: 1.1rem; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center;
  padding: 14px 0; border-top: 1px solid rgba(42, 29, 23, .22);
}
.facts li:first-child { border-top: 0; }
.facts strong { font-weight: 600; }
.facts__icon {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--night); color: var(--gold);
  transition: transform .4s var(--ease), background .3s;
}
.facts li:hover .facts__icon { transform: rotate(-12deg) scale(1.1); background: var(--emerald); }
.facts__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Work & resume ---------- */
.work {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(40px, 7vw, 100px); align-items: center;
  max-width: 1120px; margin: 0 auto;
  padding: clamp(60px, 10vw, 140px) clamp(16px, 5vw, 48px);
}
.work__lede { max-width: 48ch; color: rgba(247, 240, 227, .85); margin: 0 0 36px; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 1px;
  background: linear-gradient(var(--gold), rgba(212, 175, 106, .1));
}
.timeline li { position: relative; padding: 0 0 28px 56px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: 0; top: 2px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--night); color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212, 175, 106, .5);
}
.timeline__dot svg { width: 22px; height: 22px; transition: transform .8s var(--ease); }
.timeline li:hover .timeline__dot svg { transform: rotate(135deg); }
.timeline__kind { margin: 0 0 2px; font-size: .9rem; color: var(--gold); }
.timeline h3 { margin: 0 0 4px; font: 500 1.45rem/1.25 var(--serif); color: var(--ivory); }
.timeline li > p:last-child { margin: 0; color: rgba(247, 240, 227, .75); }

.resume {
  position: relative; display: block; justify-self: center; width: min(100%, 360px);
  text-decoration: none; color: var(--ink);
}
.resume__paper {
  position: relative; display: flex; flex-direction: column; align-items: center;
  aspect-ratio: 8.5 / 11; padding: 34px 30px;
  background: var(--ivory);
  box-shadow: 0 0 0 8px rgba(247, 240, 227, .08), 0 40px 70px -30px rgba(0, 0, 0, .8);
  transform: rotate(2.5deg);
  transition: transform .6s var(--ease);
}
.resume::before, .resume::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
  transition: transform .6s var(--ease);
}
.resume::before { transform: rotate(-5deg); background: var(--blush); }
.resume::after { transform: rotate(-1.5deg); background: var(--gold-soft); }
.resume:hover .resume__paper { transform: rotate(0) translateY(-8px); }
.resume:hover::before { transform: rotate(-9deg) translateX(-14px); }
.resume:hover::after { transform: rotate(-4deg) translateX(-6px); }
.resume__seal {
  width: 76px; height: 76px; border-radius: 50%; overflow: hidden; margin-bottom: 14px;
  box-shadow: 0 0 0 3px var(--ivory), 0 0 0 4px var(--gold);
}
.resume__seal img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.4); animation: beat 1.2s ease-in-out infinite; }
@keyframes beat {
  0%, 100% { transform: scale(1.4); }
  14% { transform: scale(1.5); }
  28% { transform: scale(1.4); }
  42% { transform: scale(1.46); }
}
.resume__name { font: 400 2.3rem/1.1 var(--script); }
.resume__role { font-size: .85rem; color: var(--emerald); margin: 4px 0 22px; }
.resume__lines { display: grid; gap: 11px; width: 100%; }
.resume__lines i { display: block; height: 7px; border-radius: 4px; background: rgba(42, 29, 23, .1); }
.resume__lines i:nth-child(1), .resume__lines i:nth-child(5) { width: 38%; height: 9px; background: rgba(21, 92, 69, .35); margin-top: 6px; }
.resume__lines i:nth-child(3), .resume__lines i:nth-child(7) { width: 72%; }
.resume__lines i:nth-child(4) { width: 86%; }
.resume__cta {
  position: absolute; left: 50%; bottom: -22px; translate: -50% 0; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 13px 22px; border-radius: 999px;
  background: var(--gold); color: var(--night); font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7);
  transition: background .3s, transform .4s var(--ease);
}
.resume:hover .resume__cta { background: var(--gold-soft); transform: translateY(-3px); }
.resume__cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.resume.is-pending { cursor: default; }
.resume.is-pending .resume__cta { background: var(--deep); color: var(--gold-soft); box-shadow: inset 0 0 0 1px rgba(212, 175, 106, .5); }

/* ---------- Photos ---------- */
.photos { padding: clamp(80px, 12vw, 160px) clamp(16px, 4vw, 48px); }
.photos__head { text-align: center; margin-bottom: 48px; }
.photos__ar { margin: 0; font: 700 1.8rem/1.2 var(--arabic); color: var(--gold); }
.photos .script { color: var(--blush); }

.wall {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1180px;
  columns: 3 300px; column-gap: clamp(16px, 2.4vw, 32px);
}
.shot { break-inside: avoid; margin-bottom: clamp(16px, 2.4vw, 32px); }
.shot button {
  position: relative; display: block; width: 100%;
  padding: 10px 10px 30px; background: var(--ivory);
  box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .8);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .5s var(--ease), box-shadow .5s;
  cursor: zoom-in;
}
.shot:nth-child(4n+1) button { --tilt: -1.6deg; }
.shot:nth-child(4n+2) button { --tilt: 1.2deg; }
.shot:nth-child(4n+3) button { --tilt: -.6deg; }
.shot:nth-child(4n) button { --tilt: 1.8deg; }
.shot button:hover { transform: rotate(0) translateY(-6px) scale(1.015); box-shadow: 0 36px 60px -24px rgba(0, 0, 0, .9); }
.shot img { width: 100%; height: auto; }
.shot.reveal { transition-duration: 1s; }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(6, 26, 20, .94); color: var(--ivory);
}
.lightbox[open] { display: grid; place-items: center; animation: lbIn .35s var(--ease); }
.lightbox::backdrop { background: transparent; }
@keyframes lbIn { from { opacity: 0; } }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 10px; padding: 64px 16px 24px; }
.lightbox img {
  max-width: min(92vw, 1000px); max-height: calc(100dvh - 160px); width: auto; height: auto;
  border: 8px solid var(--ivory); box-shadow: 0 40px 80px -30px #000;
  animation: lbImg .45s var(--ease);
}
@keyframes lbImg { from { opacity: 0; transform: scale(.96); } }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(247, 240, 227, .1); color: var(--ivory);
  transition: background .25s;
}
.lightbox__btn:hover { background: rgba(212, 175, 106, .35); }
.lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }

/* ---------- Loves ---------- */
.loves { max-width: 1100px; margin: 0 auto; padding: clamp(80px, 12vw, 150px) clamp(16px, 5vw, 48px); text-align: center; }
.loves .script { color: var(--blush); margin-bottom: 48px; display: inline-block; }
.stickers { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 3vw, 32px); }
.sticker {
  position: relative; width: 168px; padding: 18px 14px 14px;
  background: var(--ivory); border-radius: 22px;
  color: var(--ink);
  box-shadow: 0 0 0 5px var(--ivory), 0 18px 36px -16px rgba(0, 0, 0, .6);
  transition: transform .4s var(--ease);
}
.sticker:nth-child(odd) { rotate: -4deg; }
.sticker:nth-child(even) { rotate: 3deg; }
.sticker:hover { transform: translateY(-8px) scale(1.04); }
.sticker:active { transform: scale(.94); }
.sticker svg { width: 100%; height: 110px; }
.sticker__label { display: block; margin-top: 6px; font: 600 1.05rem/1 var(--serif); }
.bubble {
  position: absolute; top: -18px; right: -10px;
  background: var(--doodle); color: #fff; font-weight: 600; font-size: .9rem;
  padding: 6px 12px; border-radius: 14px 14px 14px 2px;
  opacity: 0; transform: translateY(8px) scale(.6); transform-origin: bottom left;
  transition: opacity .25s, transform .35s var(--ease);
  pointer-events: none; white-space: nowrap;
}
.sticker.is-talking .bubble { opacity: 1; transform: none; }

.sticker--cat:hover svg { animation: boil .45s steps(1) infinite, wiggle .5s ease-in-out infinite; }
@keyframes wiggle { 50% { rotate: -6deg; } }
.sticker--plane svg { transition: translate .6s var(--ease); }
.sticker--plane:hover svg { translate: 14px -10px; }
.sticker .ball { fill: var(--doodle); fill-opacity: .25; animation: ball 1.4s cubic-bezier(.5, 0, .5, 1) infinite alternate; }
@keyframes ball { from { transform: translate(0, 0); } to { transform: translate(-10px, 46px); } }
.sticker .eq rect { fill: var(--doodle); stroke: none; transform-box: fill-box; transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.sticker .eq rect:nth-child(2) { animation-delay: -.3s; }
.sticker .eq rect:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { scale: 1 .3; } 50% { scale: 1 1; } }
.sticker .steam { animation: boil .45s steps(1) infinite, steam 2.4s ease-in-out infinite; }
@keyframes steam { 0% { opacity: 0; translate: 0 6px; } 40% { opacity: 1; } 100% { opacity: 0; translate: 0 -8px; } }

/* ---------- Ayah ---------- */
.ayah {
  position: relative; isolation: isolate;
  padding: clamp(90px, 14vw, 180px) clamp(16px, 5vw, 48px);
  background: radial-gradient(75% 60% at 50% 50%, var(--emerald), var(--night) 100%);
  overflow: hidden;
}
.ayah__pattern { opacity: .12; animation: patternDrift 60s linear infinite; }
/* Fade the pattern and glow into the plain green above and below */
.ayah::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--night), transparent 26%, transparent 74%, var(--night));
}
@keyframes patternDrift { to { transform: translate(80px, 80px); } }
.ayah__frame {
  position: relative; max-width: 860px; margin: 0 auto; text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border: 1px solid rgba(212, 175, 106, .5);
  outline: 1px solid rgba(212, 175, 106, .25); outline-offset: 8px;
  background: rgba(10, 42, 32, .55);
  backdrop-filter: blur(4px);
}
.ayah__corner { position: absolute; width: 44px; height: 44px; color: var(--gold); background: var(--emerald); animation: spin 30s linear infinite; }
.ayah__corner--tl { top: -22px; left: -22px; }
.ayah__corner--tr { top: -22px; right: -22px; }
.ayah__corner--bl { bottom: -22px; left: -22px; }
.ayah__corner--br { bottom: -22px; right: -22px; }
.ayah__label { margin: 0 0 18px; color: var(--gold); font-size: .95rem; }
.ayah__ar {
  font: 700 clamp(2rem, 5.5vw, 3.6rem)/1.9 var(--arabic);
  color: var(--ivory); margin: 0 0 .4em;
}
.ayah__ar .w { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(10px); transition: opacity .9s, filter .9s, transform .9s var(--ease); }
.ayah__ar.is-lit .w { opacity: 1; filter: none; transform: none; }
.ayah__ar .w.glow { color: var(--gold-soft); text-shadow: 0 0 24px rgba(212, 175, 106, .55); }
.ayah__en { font: 300 italic clamp(1.15rem, 2.2vw, 1.45rem)/1.6 var(--serif); margin: 0 auto 14px; max-width: 40ch; color: rgba(247, 240, 227, .9); }
.ayah__ref { margin: 0; color: var(--gold); font-size: .95rem; }

/* ---------- Contact ---------- */
/* Contact + footer sit over her city-at-dusk photo, fading up into the page */
.finale {
  position: relative; isolation: isolate;
  background: var(--night);
}
.finale::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("assets/photos/skyline.jpg") 50% 78% / cover no-repeat;
  filter: grayscale(1) contrast(1.2);
  mix-blend-mode: luminosity;
  opacity: .22;
  mask-image: linear-gradient(transparent, #000 45%);
  -webkit-mask-image: linear-gradient(transparent, #000 45%);
}
.salam { padding: clamp(80px, 12vw, 150px) clamp(16px, 5vw, 48px) 60px; }
.salam__arch {
  max-width: 640px; margin: 0 auto; text-align: center;
  padding: clamp(80px, 12vw, 120px) clamp(20px, 5vw, 56px) clamp(40px, 6vw, 60px);
  background: var(--ivory); color: var(--ink);
  border-radius: 50% 50% 18px 18px / 34% 34% 18px 18px;
  box-shadow: 0 0 0 8px var(--night), 0 0 0 9px rgba(212, 175, 106, .55), 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.salam__ar { margin: 0 0 6px; font: 700 2rem/1.4 var(--arabic); color: var(--emerald); }
.salam .h2 { color: var(--emerald); }
.salam__arch > p:not(.salam__ar) { max-width: 40ch; margin: 0 auto 28px; }
.salam__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 600;
  background: var(--emerald); color: var(--ivory);
  transition: transform .3s var(--ease), background .3s;
  overflow-wrap: anywhere;
}
.btn:hover { transform: translateY(-2px); background: var(--night); }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn--ghost { background: transparent; color: var(--emerald); box-shadow: inset 0 0 0 1.5px var(--emerald); }
.btn--ghost:hover { background: var(--emerald); color: var(--ivory); }

.foot { position: relative; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); text-align: center; padding: 30px 16px 48px; color: rgba(247, 240, 227, .85); font-size: .9rem; }
.foot svg { width: 28px; height: 28px; color: var(--gold); animation: spin 20s linear infinite; }
.foot p { margin: 8px 0 0; }

/* ---------- Extra motion ---------- */
/* Script headings write themselves in, like her name in the hero */
.reveal .script {
  clip-path: inset(-30% 100% -30% 0);
  transition: clip-path 1.8s .25s cubic-bezier(.6, .1, .3, 1), opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in .script { clip-path: inset(-30% -10% -30% 0); }

/* Timeline rail draws down as it comes into view; stars pop in */
.timeline::before { transform: scaleY(0); transform-origin: top; transition: transform 1.6s .2s var(--ease); }
.timeline.is-drawn::before { transform: scaleY(1); }
.timeline li .timeline__dot { scale: 0; transition: scale .6s cubic-bezier(.34, 1.8, .64, 1); }
.timeline li.is-in .timeline__dot { scale: 1; transition-delay: .25s; }

/* Polaroids get "placed" on the wall with a little settle */
.shot.reveal { transform: translateY(-36px) rotate(-5deg) scale(1.05); transition: opacity .8s var(--ease), transform 1.1s cubic-bezier(.34, 1.45, .64, 1); }
.shot.reveal.is-in { transform: none; }
.shot button { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--tilt, 0deg)); }
.shot button:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px) scale(1.02); }
.shot button::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .22), transparent 55%);
  opacity: 0; transition: opacity .3s;
}
.shot button:hover::after { opacity: 1; }
.shot button:hover { transition: transform .18s ease-out, box-shadow .5s; }

/* Resume stack floats gently */
.resume.is-in .resume__paper { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -8px; } }
.resume:hover .resume__paper { animation-play-state: paused; }

/* Gold dust rising through the hero */
.dust { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.dust i {
  position: absolute; bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px 2px rgba(212, 175, 106, .55);
  opacity: 0; animation: rise var(--d) linear var(--delay) infinite;
}
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: .8; }
  85% { opacity: .5; }
  100% { transform: translate(var(--x), -95vh); opacity: 0; }
}

/* Stickers hop in one after another */
.stickers .sticker { opacity: 0; translate: 0 30px; transition: opacity .6s var(--ease), translate .8s cubic-bezier(.34, 1.6, .64, 1), transform .4s var(--ease); }
.stickers.is-in .sticker { opacity: 1; translate: 0 0; }
.stickers.is-in .sticker:nth-child(2) { transition-delay: .08s; }
.stickers.is-in .sticker:nth-child(3) { transition-delay: .16s; }
.stickers.is-in .sticker:nth-child(4) { transition-delay: .24s; }
.stickers.is-in .sticker:nth-child(5) { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 96px; gap: 8px; }
  .hero__stage { width: min(100%, 420px); }
  .hero__text { display: flex; flex-direction: column; align-items: center; }
  .hero__arabic { text-align: center; }
  .pulse { margin-inline: auto; }
  .hero__tag { margin-inline: auto; }
  .about, .work { grid-template-columns: 1fr; }
  .resume { width: min(80%, 300px); margin: 20px auto 30px; }
  .about__photo { width: min(78%, 300px); }
  .ayah__corner { width: 32px; height: 32px; }
  .ayah__corner--tl, .ayah__corner--tr { top: -16px; }
  .ayah__corner--bl, .ayah__corner--br { bottom: -16px; }
  .ayah__corner--tl, .ayah__corner--bl { left: -16px; }
  .ayah__corner--tr, .ayah__corner--br { right: -16px; }
  .wall { columns: 2; }
}
@media (max-width: 560px) {
  .br-sm { display: inline; }
  .nav { padding: 6px 6px 6px 12px; gap: 4px; }
  .nav__mark { font-size: 1.6rem; height: 36px; padding: 0 6px 5px 2px; }
  .nav nav a { padding: 8px 10px; font-size: .88rem; }
  .nav nav a:not(.nav__cta):nth-child(n+4) { display: none; }
  .wall { column-gap: 12px; }
  .shot { margin-bottom: 12px; }
  .shot button { padding: 6px 6px 18px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; translate: none; }
  .sticker { width: calc(50% - 10px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .doodle, .sticker svg { filter: url(#boil1); }
  .reveal { opacity: 1; transform: none; }
  .reveal .script { clip-path: none; }
  .timeline::before { transform: none; }
  .timeline li .timeline__dot, .stickers .sticker { scale: 1; opacity: 1; translate: 0 0; }
  .dust { display: none; }
}
