/* Fatma Elsayed — a storyteller's sign-painted wall.
   Palette pulled from her references: truck-art lettering, tea glasses,
   90s Gulf print ads and old stamps. Arabic first, English on the toggle. */
:root {
  --kraft: #e4d3b4;
  --kraft-dark: #cdb894;
  --paper: #fbf4e4;
  --green: #1f5c3f;
  --green-bright: #3bb66a;
  --red: #c8202b;
  --mustard: #f2b230;
  --wine: #6b1424;
  --ink: #1d2240;
  --teal: #1f8a8a;
  --tape: rgba(242, 226, 186, .85);

  --display: "Lalezar", "Readex Pro", system-ui, sans-serif;
  --ruqaa: "Aref Ruqaa", "Lalezar", serif;
  --body: "Readex Pro", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
}

/* ---------- language switching ---------- */
html[lang="ar"] .en, html[lang="en"] .ar { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  background-color: var(--kraft);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[lang="en"] body { line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: clamp(12px, 3vw, 32px);
  padding: 10px var(--gutter);
  background: var(--ink); color: var(--paper);
  border-bottom: 4px solid var(--mustard);
}
.topbar__name { font-family: var(--display); font-size: 1.4rem; text-decoration: none; color: var(--mustard); margin-inline-end: auto; line-height: 1.2; }
.topbar__nav { display: flex; gap: clamp(12px, 2.5vw, 28px); flex-wrap: wrap; }
.topbar__nav a { text-decoration: none; font-weight: 600; }
.topbar__nav a:hover { color: var(--mustard); }
.topbar__nav a[aria-current="page"] { color: var(--mustard); text-decoration: underline wavy; text-underline-offset: 7px; }
.lang {
  border: 2px solid var(--paper); background: none; cursor: pointer;
  padding: 2px 12px; border-radius: 999px; font-weight: 600; font-size: .9rem;
}
.lang:hover { background: var(--paper); color: var(--ink); }

/* ---------- painted sign: the main structural device ---------- */
.sign {
  display: inline-block; position: relative;
  padding: .25em .9em .2em;
  background: var(--green); color: var(--paper);
  border: 4px solid var(--mustard);
  outline: 3px solid var(--green); outline-offset: 2px;
  font-family: var(--display); font-weight: 400; line-height: 1.15;
  border-radius: 6px;
}
.sign--red { background: var(--red); outline-color: var(--red); }
.sign--wine { background: var(--wine); outline-color: var(--wine); }
.sign--mustard { background: var(--mustard); color: var(--ink); border-color: var(--wine); outline-color: var(--mustard); }
.sign--ink { background: var(--ink); outline-color: var(--ink); }

h1, h2, h3 { font-weight: 400; }
.section-title { font-family: var(--display); font-size: clamp(2rem, 6vw, 3.4rem); margin: 0 0 .6em; }
.section-title .ruqaa { font-family: var(--ruqaa); font-weight: 700; }

/* ---------- home hero: the pocket ---------- */
.hero {
  position: relative;
  background: var(--green);
  color: var(--paper);
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.hero::before {
  /* painted-wall texture: faint diamond pattern like truck panels */
  content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 28px), repeating-linear-gradient(-45deg, #fff 0 2px, transparent 2px 28px);
}
.hero__inner {
  position: relative; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center;
}
.hero__plaque { position: relative; z-index: 2; }
.hero__kicker {
  display: inline-block; margin: 0 0 10px;
  font-family: var(--display); font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  background: var(--mustard); color: var(--ink); padding: 4px 16px 2px;
  rotate: -2deg;
}
html[lang="en"] .hero__kicker { rotate: 2deg; }
.hero__title {
  margin: 0; line-height: .95;
  font-family: var(--ruqaa); font-weight: 700;
  font-size: clamp(5rem, 15vw, 10.5rem);
  color: var(--paper);
  text-shadow: 4px 4px 0 var(--red), 8px 8px 0 var(--wine);
}
html[lang="en"] .hero__title { font-family: var(--display); font-weight: 400; font-size: clamp(3.4rem, 10vw, 7rem); line-height: .95; }
.hero__name { margin: 18px 0 6px; font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--mustard); line-height: 1.2; }
.hero__role { margin: 0 0 18px; font-size: 1.1rem; max-width: 40ch; }

.pocket-wrap { position: relative; height: clamp(420px, 46vw, 560px); }
.pocket {
  position: absolute; inset-inline: 6% 6%; bottom: 0; height: 62%;
  z-index: 3;
  background: var(--wine);
  border-radius: 14px 14px 46% 46% / 14px 14px 30% 30%;
  box-shadow: inset 0 -18px 30px rgba(0,0,0,.25), 0 18px 30px rgba(0,0,0,.3);
  display: grid; place-items: center;
}
.pocket::before {
  /* gold stitching */
  content: ""; position: absolute; inset: 12px;
  border: 3px dashed var(--mustard);
  border-radius: 10px 10px 46% 46% / 10px 10px 30% 30%;
}
.pocket::after {
  /* pocket lip */
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 26px;
  background: color-mix(in srgb, var(--wine) 75%, black);
  border-radius: 14px 14px 0 0;
}
.pocket__label { user-select: none; position: relative; text-align: center; font-family: var(--ruqaa); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.1rem); color: var(--mustard); padding: 0 20px; line-height: 1.3; }
html[lang="en"] .pocket__label { font-family: var(--display); font-weight: 400; }
.pocket__label small { display: block; font-family: var(--body); font-size: .9rem; color: var(--paper); opacity: .85; font-weight: 400; margin-top: 4px; }

/* idea cards tucked in the pocket; they rise out on load and can be dragged */
.idea-card {
  position: absolute; z-index: 2;
  width: clamp(150px, 19vw, 230px);
  left: var(--x); bottom: 46%;
  background: var(--paper); padding: 6px 6px 8px;
  box-shadow: 0 8px 18px rgba(0,0,0,.3);
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r));
  text-decoration: none; color: var(--ink);
}
.idea-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; pointer-events: none; }
.idea-card span { display: block; font-family: var(--display); font-size: 1.05rem; line-height: 1.2; padding: 6px 4px 0; }
.js .idea-card { animation: rise .9s cubic-bezier(.2, 1.4, .4, 1) calc(.3s + var(--i) * .15s) both; }
@keyframes rise { from { translate: 0 120%; } to { translate: 0 0; } }

/* ---------- client sign strip ---------- */
.strip {
  background: var(--red); color: var(--paper);
  border-block: 4px solid var(--mustard);
  overflow: hidden;
}
.strip__track { display: flex; width: max-content; animation: slide 50s linear infinite; }
html[dir="rtl"] .strip__track { animation-name: slide-rtl; }
.strip__track span { font-family: var(--display); font-size: 1.35rem; padding: 12px 20px 8px; white-space: nowrap; }
.strip__track span::after { content: "✦"; color: var(--mustard); margin-inline-start: 40px; }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes slide-rtl { to { transform: translateX(50%); } }

/* ---------- shared layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter); }
.paper {
  background: var(--paper); padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 10px 24px rgba(60, 40, 10, .16);
  position: relative;
}
.paper::before {
  content: ""; position: absolute; top: -12px; inset-inline-start: 40px;
  width: 110px; height: 26px; background: var(--tape); rotate: -3deg;
}
.prose p { max-width: 62ch; margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- home: synopsis ---------- */
.synopsis { position: relative; }
.synopsis .paper { max-width: 760px; }
.synopsis .paper { rotate: -.6deg; }
.synopsis__lead { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.35; margin: 0 0 .5em; color: var(--wine); }

/* ---------- home: doors to other pages ---------- */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.door {
  display: block; text-decoration: none; padding: 26px 24px 28px;
  color: var(--paper); position: relative;
  border: 4px solid var(--mustard); outline: 3px solid var(--c); outline-offset: 2px; background: var(--c);
  border-radius: 8px;
  transition: translate .2s ease;
}
.door:nth-child(1) { --c: var(--green); rotate: -1.5deg; }
.door:nth-child(2) { --c: var(--red); rotate: 1deg; }
.door:nth-child(3) { --c: var(--ink); rotate: -.8deg; }
.door:hover, .door:focus-visible { translate: 0 -4px; }
.door__title { display: block; font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; }
.door__sub { display: block; margin-top: 6px; max-width: 34ch; }

/* ---------- work page ---------- */
.page-head { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 0; }
.page-head h1 { margin: 0 0 14px; font-size: clamp(2.4rem, 7vw, 4.2rem); }
.page-head p { max-width: 60ch; margin: 0; font-size: 1.1rem; }
.shelf { margin-top: clamp(40px, 6vw, 64px); }
.shelf__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 26px; }
.shelf__head h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.shelf__head p { margin: 0; max-width: 50ch; }
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 28px 22px; }
.reel {
  background: var(--paper); padding: 8px 8px 14px; text-align: start;
  border: 0; cursor: pointer; width: 100%;
  box-shadow: 0 8px 18px rgba(60, 40, 10, .16);
  display: flex; flex-direction: column; gap: 10px;
}
.reel:nth-child(odd) { rotate: -1deg; }
.reel:nth-child(even) { rotate: 1.2deg; }
.reel__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.reel__screen img { width: 100%; height: 100%; object-fit: cover; }
.reel__screen--plain { display: grid; place-items: center; background: var(--c, var(--teal)); }
.reel__screen--plain span { font-family: var(--display); font-size: 1.6rem; color: var(--paper); }
.reel__client { font-family: var(--display); font-size: 1.25rem; line-height: 1.25; padding-inline: 4px; }
.reel__what { font-size: .92rem; padding-inline: 4px; line-height: 1.5; }
.reel__where { margin-inline: 4px; align-self: flex-start; font-size: .78rem; font-weight: 600; padding: 1px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.reel:hover .reel__screen img { scale: 1.04; }
.reel__screen img { transition: scale .4s ease; }

/* ---------- ideas page ---------- */
.ideas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 32px; margin-top: 48px; }
.idea { background: var(--paper); box-shadow: 0 10px 22px rgba(60, 40, 10, .16); display: flex; flex-direction: column; }
.idea:nth-child(4n+1) { rotate: -.8deg; }
.idea:nth-child(4n+2) { rotate: .7deg; }
.idea:nth-child(4n+3) { rotate: .5deg; }
.idea:nth-child(4n) { rotate: -.6deg; }
.idea__cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.idea__cover img { width: 100%; height: 100%; object-fit: cover; transition: scale .4s ease; }
.idea__cover:hover img { scale: 1.04; }
.idea__cover--locked { display: grid; place-items: center; text-align: center; padding: 20px; background: repeating-linear-gradient(-45deg, var(--kraft-dark) 0 14px, var(--kraft) 14px 28px); color: var(--wine); }
.idea__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.idea__title { margin: 0; font-family: var(--display); font-size: 1.8rem; line-height: 1.2; }
.idea__type { align-self: flex-start; font-size: .82rem; font-weight: 600; padding: 2px 12px; border-radius: 999px; background: var(--c, var(--green)); color: var(--paper); }
.idea__body p { margin: 0; }
.idea__files { margin-top: auto !important; padding-top: 10px; border-top: 2px dashed var(--kraft-dark); display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .95rem; }
.idea__files a { font-weight: 600; color: var(--red); }
.idea__files span { color: #6b5f4c; font-size: .88rem; }

/* ---------- about page ---------- */
.about-top { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.portrait {
  position: sticky; top: 90px;
  background: #fff; padding: 12px 12px 48px; rotate: -3deg;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.portrait__slot { aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; background: repeating-linear-gradient(45deg, var(--kraft-dark) 0 12px, var(--kraft) 12px 24px); color: var(--wine); font-family: var(--display); font-size: 1.3rem; padding: 12px; }
.portrait figcaption { position: absolute; bottom: 10px; inset-inline: 0; text-align: center; font-family: var(--ruqaa); font-size: 1.4rem; color: var(--wine); }
html[lang="en"] .portrait figcaption { font-family: var(--display); font-size: 1.1rem; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; inset-block: 8px; inset-inline-start: 74px; width: 3px; background: repeating-linear-gradient(var(--wine) 0 8px, transparent 8px 14px); }
.timeline li { display: grid; grid-template-columns: 74px 1fr; gap: 26px; padding: 12px 0; position: relative; }
.timeline li::after { content: ""; position: absolute; inset-inline-start: 67px; top: 22px; width: 17px; height: 17px; border-radius: 50%; background: var(--mustard); border: 3px solid var(--wine); }
.timeline time { font-family: var(--display); font-size: 1.2rem; color: var(--red); line-height: 1.4; }
.timeline h3 { margin: 0; font-family: var(--display); font-size: 1.35rem; line-height: 1.3; }
.timeline p { margin: 2px 0 0; font-size: .97rem; max-width: 56ch; }

.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.skills > div { background: var(--paper); padding: 20px 22px; border-top: 6px solid var(--c, var(--green)); box-shadow: 0 6px 14px rgba(60,40,10,.12); }
.skills > div:nth-child(2) { --c: var(--red); }
.skills > div:nth-child(3) { --c: var(--mustard); }
.skills > div:nth-child(4) { --c: var(--teal); }
.skills h3 { margin: 0 0 6px; font-family: var(--display); font-size: 1.35rem; }
.skills p { margin: 0; font-size: .97rem; }
.cv-link { display: inline-block; margin-top: 28px; text-decoration: none; font-size: 1.3rem; }

/* ---------- contact page ---------- */
.contact { text-align: center; }
.contact h1 { font-family: var(--ruqaa); font-weight: 700; font-size: clamp(3rem, 10vw, 6rem); line-height: 1.1; margin: 0 0 10px; color: var(--red); text-shadow: 3px 3px 0 var(--mustard); }
html[lang="en"] .contact h1 { font-family: var(--display); font-weight: 400; }
.contact p { max-width: 52ch; margin: 0 auto 28px; font-size: 1.15rem; }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.contact__links a { text-decoration: none; font-size: clamp(1.1rem, 3vw, 1.5rem); }

.footer { background: var(--ink); color: var(--paper); text-align: center; padding: 28px var(--gutter); font-size: .95rem; margin-top: 40px; }
.footer a { color: var(--mustard); }

/* ---------- video viewer ---------- */
.viewer { border: 0; padding: 0; background: var(--ink); color: var(--paper); width: min(960px, 96vw); max-height: 94vh; }
.viewer::backdrop { background: rgba(29, 34, 64, .85); }
.viewer__bar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: var(--wine); }
.viewer__title { margin: 0; flex: 1; font-family: var(--display); font-size: 1.25rem; line-height: 1.3; }
.viewer__bar a { color: var(--mustard); font-weight: 600; white-space: nowrap; }
.viewer__close { background: var(--paper); color: var(--ink); border: 0; padding: 4px 14px; cursor: pointer; font-weight: 600; }
.viewer__stage { display: grid; place-items: center; padding: 16px; background: #000; }
.viewer__stage iframe { border: 0; width: 100%; background: #000; }
.viewer__stage iframe.is-wide { aspect-ratio: 16 / 9; }
.viewer__stage iframe.is-tall { width: min(100%, 360px); aspect-ratio: 9 / 16; max-height: calc(94vh - 90px); }

/* ---------- sparkle & shine (carried over from the first site, in gold) ---------- */
:where(.shine) { position: relative; }
.shine::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%);
  background-size: 260% 100%; background-position: 130% 0;
  animation: sheen var(--shine-every, 8s) ease-in-out var(--shine-delay, 0s) infinite;
}
.shine:hover::before { animation-duration: 1.4s; animation-delay: 0s; }
@keyframes sheen { 0%, 75% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
.sparkles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 44; }

/* pinned stickers (drawn in SVG, inspired by her references) */
.pins { position: fixed; inset: 0; pointer-events: none; z-index: 45; }
.pin { position: absolute; pointer-events: auto; cursor: grab; touch-action: none; user-select: none; width: clamp(64px, 7vw, 96px); transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r, 0deg)); filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); }
.pin.is-dragging { cursor: grabbing; filter: drop-shadow(0 14px 18px rgba(0,0,0,.3)); }
.pin--tea { --r: -8deg; inset-inline-end: 14px; bottom: 14px; }
.pin--stamp { --r: 7deg; inset-inline-end: 14px; top: 76px; }
.drag { cursor: grab; touch-action: none; user-select: none; }
.drag.is-dragging { cursor: grabbing; z-index: 40; }

/* scroll reveal: used only on the pitch cards and reels */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .6s ease, translate .7s cubic-bezier(.2, 1.3, .4, 1); transition-delay: var(--rd, 0ms); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__inner, .synopsis, .about-top { grid-template-columns: 1fr; }
  .pocket-wrap { height: 420px; max-width: 520px; width: 100%; margin-inline: auto; }
  .doors, .ideas, .skills { grid-template-columns: 1fr; }
  .portrait { position: relative; top: 0; max-width: 300px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; row-gap: 4px; }
  .topbar__name { flex-basis: calc(100% - 70px); }
  .topbar__nav { order: 3; flex-basis: 100%; gap: 14px; font-size: .95rem; }
  .idea-card { width: 132px; }
  .pocket-wrap { height: 360px; }
  .timeline::before { inset-inline-start: 58px; }
  .timeline li { grid-template-columns: 58px 1fr; gap: 20px; }
  .timeline li::after { inset-inline-start: 51px; }
  .pin { width: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip__track, .shine::before, .js .idea-card { animation: none; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .sparkles { display: none; }
}

/* "تبحث عني": the phrase she wanted in a different colour; it brings up the sticker */
.lookfor {
  border: 0; cursor: pointer; padding: 0 6px; margin: 0;
  background: var(--mustard); color: var(--red);
  font-family: var(--display); font-size: 1.15em; line-height: 1.3;
  text-decoration: underline wavy var(--red); text-underline-offset: 5px;
  rotate: -2deg; display: inline-block;
}
.lookfor:hover { background: var(--red); color: var(--paper); text-decoration-color: var(--mustard); }

/* ---------- calligraphy layer ----------
   Four classical hands, used as decoration only (aria-hidden in the markup). */
:root {
  --nastaliq: "Noto Nastaliq Urdu", "Aref Ruqaa", serif;
  --kufi: "Reem Kufi", "Lalezar", sans-serif;
  --naskh: "Amiri", serif;
}
.callig { position: absolute; pointer-events: none; user-select: none; white-space: nowrap; line-height: 1.4; direction: rtl; }
.callig--nastaliq { font-family: var(--nastaliq); font-weight: 500; }
.callig--kufi { font-family: var(--kufi); font-weight: 700; }
.callig--naskh { font-family: var(--naskh); font-weight: 700; }
.callig--ruqaa { font-family: var(--ruqaa); font-weight: 700; }

/* home hero: "once upon a time" painted faintly across the wall */
.callig--hero { font-size: clamp(4rem, 12vw, 10rem); color: var(--mustard); opacity: .13; inset-inline-start: 3%; top: 4%; rotate: -6deg; }
.callig--hero2 { font-size: clamp(3rem, 8vw, 6rem); color: var(--paper); opacity: .1; inset-inline-end: 4%; bottom: 2%; letter-spacing: .02em; }

/* home synopsis: Ruqaa beside the hello note */
.callig--syn { font-size: clamp(3.4rem, 9vw, 6.5rem); color: var(--red); opacity: .16; top: 30%; inset-inline-end: var(--gutter); rotate: -8deg; }
@media (max-width: 1100px) { .callig--syn { top: auto; bottom: 0; } }

/* home: a band of words in four scripts, like a calligraphy practice sheet (mashq) */
.callig-band {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: 8px clamp(20px, 5vw, 64px);
  padding: 28px var(--gutter) 40px; max-width: 1180px; margin: 0 auto;
  border-block: 2px dashed var(--kraft-dark);
}
.callig-band .callig { position: static; font-size: clamp(2rem, 5vw, 3.4rem); }
.callig-band .callig:nth-child(1) { color: var(--green); }
.callig-band .callig:nth-child(2) { color: var(--wine); }
.callig-band .callig:nth-child(3) { color: var(--red); font-size: clamp(2.4rem, 6vw, 4rem); }
.callig-band .callig:nth-child(4) { color: var(--teal); }

/* page heads */
.page-head { position: relative; }
.callig--head { font-size: clamp(4rem, 13vw, 9rem); color: var(--wine); opacity: .1; inset-inline-end: 0; top: 0; }
.paper .callig--about { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--red); opacity: .14; inset-inline-end: 24px; top: 14px; }
.contact { position: relative; }
.callig--contact { font-size: clamp(2.6rem, 8vw, 5.4rem); color: var(--green); opacity: .14; inset-inline: 0; top: -40px; text-align: center; }

/* the calligrapher's measuring dots: three stacked rhombuses beside section titles */
.nuqta { display: inline-flex; flex-direction: column; gap: 3px; vertical-align: middle; margin-inline-end: 14px; }
.nuqta i { display: block; width: 9px; height: 9px; background: var(--red); rotate: 45deg; }
.nuqta i:nth-child(2) { background: var(--mustard); margin-inline-start: 7px; }
.nuqta i:nth-child(3) { background: var(--green); }

/* footer: the storyteller's closing line */
.footer__close { margin: 0 0 6px; font-family: var(--nastaliq); font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--mustard); line-height: 1.9; }

.pin--qalam { --r: 10deg; inset-inline-start: 14px; bottom: 14px; }
@media (max-width: 560px) { .pin--qalam { display: none; } }

/* "Put everything back": a small sign that shows up once something has been moved */
.put-back {
  position: fixed; z-index: 46; bottom: 16px; left: 50%;
  translate: -50% 160%; opacity: 0; pointer-events: none;
  padding: 6px 18px 4px; cursor: pointer;
  font-family: var(--display); font-size: 1.1rem; line-height: 1.4;
  background: var(--mustard); color: var(--ink);
  border: 3px solid var(--wine); outline: 2px solid var(--mustard); outline-offset: 2px; border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  transition: translate .35s cubic-bezier(.2, 1.4, .4, 1), opacity .25s ease;
}
.put-back.is-shown { translate: -50% 0; opacity: 1; pointer-events: auto; }
.put-back:hover { background: var(--paper); }
.is-returning { transition: transform .55s cubic-bezier(.2, 1.3, .4, 1); }
@media (prefers-reduced-motion: reduce) { .put-back, .is-returning { transition: none; } }


/* Mattat logo on its Instagram card */
.reel__logo { width: 62%; height: auto !important; object-fit: contain !important; }

/* "بيدور عليا": a small sticker that pops up next to "تبحث عني" and leaves on scroll */
.henedy-pop {
  position: fixed; z-index: 60;
  width: clamp(130px, 16vw, 170px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  background: #fff; border: 6px solid #fff;
  box-shadow: 0 0 0 3px var(--wine), 0 12px 24px rgba(0,0,0,.28);
  cursor: pointer; user-select: none; -webkit-user-select: none;
  opacity: 0; scale: .4; rotate: -16deg;
  transition: opacity .2s ease, scale .45s cubic-bezier(.2, 1.6, .4, 1), rotate .45s cubic-bezier(.2, 1.6, .4, 1);
}
.henedy-pop[hidden] { display: none; }
.henedy-pop.is-shown { opacity: 1; scale: 1; rotate: 6deg; }
.henedy-pop img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 45%; border-radius: 50%; -webkit-user-drag: none; pointer-events: none; }
.henedy-pop__caption {
  position: absolute; inset-inline: 0; bottom: 6%; text-align: center; pointer-events: none;
  font-family: var(--ruqaa); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.1;
  color: var(--mustard);
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 0 2px 0 var(--ink);
}
@media (prefers-reduced-motion: reduce) { .henedy-pop { transition: none; } }

/* the LinkedIn hint under her name */
.hero__note { margin: -2px 0 16px; font-size: .95rem; opacity: .85; }
.hero__name bdi { font-family: var(--display); }
