/* ---------- Custom Arabic display font ---------- */
@font-face{
  font-family: "Handicrafts";
  src: url("assets/fonts/TheYearofHandicrafts-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Handicrafts";
  src: url("assets/fonts/TheYearofHandicrafts-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root{
  --linen: #F5F0E8;
  --linen-2: #EFE8DB;
  --linen-deep: #2C2A26;
  --ink: #1C1C1A;
  --ink-soft: #3A3833;
  --muted: #8A847A;
  --muted-2: #B5AE9F;
  --rule: #D9D1BF;
  --gold: #C4A882;
  --gold-deep: #A88B62;

  --serif-ar: "Handicrafts", "Playfair Display", serif;
  --serif-en: "Playfair Display", serif;
  --sans-ar: "DM Sans", "Handicrafts", system-ui, sans-serif;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans-ar);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body, p, li, a, span, blockquote{
  font-feature-settings: "kern" 1, "liga" 1;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}

.wrap{max-width: var(--maxw); margin:0 auto; padding: 0 var(--gutter);}

.ar{ font-family: "Handicrafts", "DM Sans", system-ui, sans-serif; }

/* ---------- Typography ---------- */
.eyebrow{
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .32em;
  color: var(--muted);
  text-transform: uppercase;
}
.eyebrow-ar{
  font-family: "Handicrafts", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--muted);
}
.eyebrow .dot, .eyebrow-ar .dot{
  display:inline-block; width:5px; height:5px; border-radius:50%;
  background: var(--gold); margin: 0 10px 2px; vertical-align: middle;
}
h1,h2,h3{
  font-family: "Handicrafts", "Playfair Display", serif;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.005em;
}
h1{ font-size: clamp(44px, 7.2vw, 104px); font-weight: 700; }
h2{ font-size: clamp(34px, 5vw, 68px); font-weight: 700; }
h3{ font-size: clamp(20px, 1.6vw, 26px); font-weight: 700; }
p{margin:0; font-family: "Handicrafts", "DM Sans", sans-serif; font-weight: 400;}

.lede{
  color: var(--ink-soft);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 400;
  line-height: 1.95;
}
.muted{ color: var(--muted); }

/* ---------- Buttons ---------- */
.pill{
  display:inline-flex; align-items:center; gap: 14px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: "Handicrafts", "DM Sans", sans-serif;
  font-size: 15px; font-weight: 700;
  background: var(--ink); color: var(--linen);
  transition: opacity .25s ease, transform .25s ease;
  border: 1px solid var(--ink);
  letter-spacing: .02em;
}
.pill:hover{ opacity: .85; transform: translateY(-1px); }
.pill .arrow{ display:inline-block; transition: transform .3s ease; font-family: "DM Sans"; font-weight: 400; font-size: 14px;}
.pill:hover .arrow{ transform: translateX(-4px); }
.pill.lg{ padding: 18px 36px; font-size: 16px; }
.pill.sm{ padding: 10px 22px; font-size: 13.5px; }

/* ---------- Nav ---------- */
.nav{
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--linen) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-stuck{ border-bottom-color: var(--rule); }
.nav-inner{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  height: 86px;
  gap: 24px;
}
.nav-brand{ display:flex; align-items:center; gap: 12px; }
.nav-brand img{ width: 38px; height: 38px; object-fit: contain; }
.nav-brand .word{
  font-family: "Handicrafts", serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: .01em;
  color: var(--ink);
}
.nav-links{
  display:flex; justify-content:center; gap: clamp(20px, 3vw, 44px);
  font-family: "Handicrafts", sans-serif;
  font-size: 15.5px; font-weight: 400; color: var(--ink-soft);
}
.nav-links a{
  position: relative; padding: 8px 2px;
  transition: color .25s ease;
}
.nav-links a::after{
  content:""; position:absolute; right:0; left:0; bottom: 0;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s ease;
}
.nav-links a:hover::after, .nav-links a.active::after{ transform: scaleX(1); }
.nav-cta{ display:flex; justify-content: flex-start; }

/* ---------- Hero ---------- */
.hero{
  padding-top: clamp(60px, 9vw, 130px);
  padding-bottom: clamp(40px, 6vw, 80px);
  text-align: center;
  position: relative;
}
.hero .eyebrow-ar{ display:block; margin-bottom: 32px; }
.hero h1{
  max-width: 17ch;
  margin: 0 auto;
  line-height: 1.16;
}
.hero h1 .accent{
  color: var(--gold-deep);
  font-weight: 700;
}
.hero .sub{
  max-width: 50ch;
  margin: 36px auto 44px;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.85;
}

.strip{
  margin-top: clamp(60px, 9vw, 110px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
  align-items: end;
}
.strip .ph{ border-radius: 8px; overflow:hidden; position: relative; }
.strip .ph-1{ grid-column: 1 / span 3; aspect-ratio: 3/4.2; transform: translateY(-30px);}
.strip .ph-2{ grid-column: 4 / span 3; aspect-ratio: 3/3.4;}
.strip .ph-3{ grid-column: 7 / span 3; aspect-ratio: 3/4.6; transform: translateY(40px);}
.strip .ph-4{ grid-column: 10 / span 3; aspect-ratio: 3/3.6;}

/* ---------- Section frame ---------- */
section{ padding: clamp(80px, 10vw, 160px) 0; }
.section-label{
  display:flex; align-items:center; gap: 16px;
  margin-bottom: clamp(28px, 3vw, 44px);
}
.section-label .line{
  flex: 0 0 56px; height:1px; background: var(--gold);
}
.section-label.center{ justify-content:center; }

/* ---------- Problem ---------- */
.problem h2{ max-width: 22ch; }
.problem-head{
  margin-bottom: clamp(60px, 8vw, 100px);
  max-width: 28ch;
}
.pains{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px);
}
.pain{
  border-top: 1px solid var(--gold);
  padding-top: 26px;
}
.pain p{
  font-family: "Handicrafts", serif;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
}
.problem-foot{
  margin-top: clamp(60px, 7vw, 90px);
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
  font-family: "Handicrafts", serif;
}
.problem-foot::before{
  content:""; display:block; width:1px; height:40px; background: var(--rule); margin: 0 auto 26px;
}

/* ---------- Guide ---------- */
.guide{ background: var(--linen-2); }
.guide-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.guide-img{
  aspect-ratio: 4 / 5;
  border-radius: 8px; overflow:hidden;
}
.guide h2{ margin: 18px 0 32px; max-width: 12ch; }
.guide h2 em{
  font-style: normal; color: var(--gold-deep); font-weight: 700;
}
.guide .lede{ max-width: 44ch; }
.guide .proof{
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
  max-width: 46ch;
}

/* ---------- Methodology ---------- */
.method{ text-align:center; }
.method h2{ max-width: 18ch; margin: 0 auto; }
.method h2 em{ font-style: normal; color: var(--gold-deep); font-weight: 700;}
.timeline{
  margin-top: clamp(70px, 9vw, 130px);
  position: relative;
}
.timeline-track{
  position: absolute;
  top: 70px;
  right: 12%; left: 12%;
  height: 1px; background: var(--gold);
}
.timeline-track::before, .timeline-track::after{
  content:""; position:absolute; top:50%; width:7px; height:7px; border-radius:50%;
  background: var(--gold); transform: translateY(-50%);
}
.timeline-track::before{ right: -3px; }
.timeline-track::after{ left: -3px; }
.steps{
  display:grid; grid-template-columns: repeat(3,1fr);
  gap: clamp(24px, 4vw, 56px);
  position: relative;
}
.step{ text-align: center; padding: 0 8px; }
.step .num{
  display:flex; align-items:center; justify-content:center;
  width: 140px; height: 140px;
  margin: 0 auto;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--linen);
  font-family: "Handicrafts", serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--gold-deep);
  position: relative;
  line-height: 1;
}
.step h3{
  margin-top: 32px;
  font-family: "Handicrafts", serif;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
}
.step p{
  margin: 16px auto 0;
  color: var(--muted);
  max-width: 28ch;
  font-size: 15px;
  line-height: 1.85;
}
.method-divider{
  margin: clamp(70px, 9vw, 110px) auto 0;
  width: 80%; height: 1px; background: var(--gold);
  position: relative;
}
.method-divider::before{
  content:""; position:absolute; top:50%; right:50%;
  transform: translate(50%, -50%) rotate(45deg);
  width: 8px; height: 8px; background: var(--gold);
}

/* ---------- Work showcase ---------- */
.work-head{
  display:flex; justify-content: space-between; align-items: end;
  flex-wrap: wrap; gap: 24px;
  margin-bottom: clamp(50px, 6vw, 80px);
}
.work-head h2{ max-width: 18ch; }
.work-head .meta{ color: var(--muted); font-size: 14px; padding-bottom: 6px; }

.work-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.4vw, 36px) clamp(20px, 2vw, 28px);
}
.work-card{ display:block; transition: opacity .3s ease; }
.work-card:hover{ opacity: .82; }
.work-card .ph{ border-radius: 8px; overflow:hidden; }
.work-card .meta-row{
  display:flex; justify-content: space-between; align-items: baseline;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  gap: 16px;
}
.work-card .desc{
  font-family: "Handicrafts", serif;
  font-size: clamp(17px, 1.3vw, 21px);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 700;
}
.work-card .tag{
  font-family: "DM Sans", sans-serif;
  font-size: 11px; letter-spacing: .22em; color: var(--muted);
  text-transform: uppercase;
  flex-shrink: 0;
  padding-top: 4px;
}

.work-card.c1{ grid-column: 1 / span 7; }
.work-card.c1 .ph{ aspect-ratio: 7/5; }
.work-card.c2{ grid-column: 8 / span 5; transform: translateY(60px); }
.work-card.c2 .ph{ aspect-ratio: 5/6; }
.work-card.c3{ grid-column: 1 / span 5; }
.work-card.c3 .ph{ aspect-ratio: 5/5.5; }
.work-card.c4{ grid-column: 6 / span 7; transform: translateY(-40px); }
.work-card.c4 .ph{ aspect-ratio: 7/4.6; }

.work-more{
  margin-top: clamp(60px, 7vw, 100px);
  text-align: center;
}
.work-more a{
  font-family: "Handicrafts", serif;
  font-size: 17px;
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
  transition: opacity .25s ease;
}
.work-more a:hover{ opacity: .65; }

/* ---------- Failure line ---------- */
.failure{
  text-align:center;
  padding: clamp(80px, 10vw, 140px) 0;
}
.failure-rule{
  width: 80%; height: 1px; background: var(--gold);
  margin: 0 auto;
}
.failure p{
  font-family: "Handicrafts", serif;
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 32px);
  color: var(--muted);
  max-width: 32ch;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
  padding: clamp(60px, 7vw, 90px) 0;
}

/* ---------- Final CTA ---------- */
.final{
  text-align:center;
  padding: clamp(120px, 14vw, 200px) 0;
  background: var(--linen);
}
.final h2{
  max-width: 16ch; margin: 0 auto;
  font-size: clamp(48px, 8vw, 120px);
}
.final h2 em{ font-style: normal; color: var(--gold-deep); font-weight:700; }
.final p{
  margin: 36px auto 52px;
  max-width: 38ch;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.9;
}

/* ---------- Footer ---------- */
footer{
  border-top: 1px solid var(--gold);
  background: var(--linen);
  padding: 70px 0 40px;
}
.foot{
  display:grid;
  grid-template-columns: 1.2fr 1fr .8fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
.foot-brand{ display:flex; flex-direction:column; gap: 14px; }
.foot-brand .row{ display:flex; align-items:center; gap: 12px; }
.foot-brand img{ width: 42px; height: 42px; object-fit: contain; }
.foot-brand .word{ font-family: "Handicrafts", serif; font-size: 28px; font-weight: 700; }
.foot-brand .tag{ color: var(--muted); font-size: 14.5px; max-width: 28ch; line-height: 1.8; }

.foot ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 12px; }
.foot ul a{
  font-family: "Handicrafts", serif;
  font-size: 16px; color: var(--ink-soft);
  transition: color .25s ease;
}
.foot ul a:hover{ color: var(--gold-deep); }

.socials{ display:flex; gap: 14px; align-items: flex-start; }
.socials a{
  display:inline-flex; align-items:center; justify-content:center;
  width: 44px; height: 44px;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.socials a:hover{ border-color: var(--gold); color: var(--gold-deep); }
.socials svg{ width: 18px; height: 18px; }

.foot-base{
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 12.5px; color: var(--muted);
  letter-spacing: .04em;
}

/* ---------- Image placeholder ---------- */
.ph{
  background: var(--linen-deep);
  color: rgba(245,240,232,.55);
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  position: relative;
  overflow: hidden;
}
.ph img{
  width:100%; height:100%; object-fit: cover; display:block;
  transition: transform 1.2s ease;
}
.work-card:hover .ph img,
.strip .ph:hover img{ transform: scale(1.03); }
.ph .label{
  font-family: "Handicrafts", serif;
  font-size: 14px;
  letter-spacing: .04em;
  color: rgba(245,240,232,.5);
  padding: 0 12px;
  font-weight: 400;
  position: absolute;
}
.ph.empty::before{
  content:"";
  position:absolute;
  inset: 14px;
  border: 1px solid rgba(196,168,130,.18);
  pointer-events: none;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 960px){
  .nav-inner{ grid-template-columns: 1fr auto; height: 72px;}
  .nav-links{ display:none; }
  .strip{ grid-template-columns: repeat(6, 1fr); }
  .strip .ph-1{ grid-column: 1 / span 3; transform:none; aspect-ratio: 3/4;}
  .strip .ph-2{ grid-column: 4 / span 3; aspect-ratio: 3/4;}
  .strip .ph-3{ grid-column: 1 / span 3; transform:none; aspect-ratio: 3/4;}
  .strip .ph-4{ grid-column: 4 / span 3; aspect-ratio: 3/4;}
  .pains{ grid-template-columns: 1fr; gap: 36px; }
  .guide-grid{ grid-template-columns: 1fr; }
  .guide-img{ aspect-ratio: 4/3.6; }
  .timeline-track{ display:none; }
  .steps{ grid-template-columns: 1fr; gap: 56px; }
  .work-grid{ grid-template-columns: 1fr; }
  .work-card.c1, .work-card.c2, .work-card.c3, .work-card.c4{
    grid-column: 1 / -1; transform: none;
  }
  .work-card .ph{ aspect-ratio: 4/3 !important; }
  .foot{ grid-template-columns: 1fr; gap: 40px; }
}
