@import url('https://fonts.googleapis.com/css2?family=Aref+Ruqaa+Ink:wght@400;700&family=Noto+Nastaliq+Urdu:wght@400;500;600&family=Noto+Serif+Arabic:wght@600;700&family=Vazirmatn:wght@400;500;600&display=swap');

:root{
  --ink:#121212;
  --paper:#f4efe7;
  --paper2:#faf7f2;
  --charcoal:#3f3e3c;
  --charcoal2:#2e2d2b;
  --muted:#77716a;
  --line:rgba(18,18,18,.18);
  --max:1240px;
  --pad:6vw;
}
*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  color-scheme:light;
}
body{
  margin:0;
  color:var(--ink);
  background:var(--paper);
  font-family:"Vazirmatn",Tahoma,Arial,sans-serif;
  direction:rtl;
  text-align:right;
}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}

.cover{
  min-height:100svh;
  position:relative;
  color:#fff;

  background-image:url("./assets/images/hero-background.jpg?v=20260930-2");
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;

  overflow:hidden;
}
.topbar{
  position:absolute;
  inset:0 0 auto 0;
  z-index:6;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:28px var(--pad);
}
.brand-mark{
  width:34px;
  color:#fff;
  opacity:.95;
}
.brand-mark img{
  width:100%;
  filter:brightness(0) invert(1);
}

.cover-inner{
  width:min(100% - 2*var(--pad),980px);
  min-height:100svh;
  margin:0 auto;
  padding:90px 0 36px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.polaroid{
  width:clamp(250px,29vw,390px);
  margin:0 0 34px;
  background-color:#fff !important;
  color-scheme:light;
  forced-color-adjust:none;
  -webkit-print-color-adjust:exact;
  padding:20px 20px 0;
  box-shadow:0 20px 55px rgba(0,0,0,.16);
}
.polaroid-photo{
  aspect-ratio:1/1.05;
  overflow:hidden;
  background-color:#fff !important;
  color-scheme:light;
  forced-color-adjust:none;
}
.polaroid-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 25%;
}
.polaroid-bottom{
  height:82px;
  background-color:#fff !important;
  color-scheme:light;
  forced-color-adjust:none;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
}
.portrait-name{
  color:#2e2d2b;
  font-family:"Vazirmatn",Tahoma,Arial,sans-serif;
  font-size:clamp(1.08rem,1.35vw,1.28rem);
  font-weight:600;
  line-height:1.5;
  text-align:center;
  white-space:nowrap;
}
.cover h1{
  margin:0;
  font-family:"Vazirmatn",Tahoma,Arial,sans-serif;
  font-size:clamp(2.45rem,3.6vw,4rem);
  line-height:1.35;
  font-weight:600;
  letter-spacing:-0.015em;
  text-wrap:balance;
  text-shadow:0 2px 14px rgba(0,0,0,.18);
}
.cover blockquote{
  margin:22px auto 0;
  max-width:860px;
  font-size:clamp(1rem,1.65vw,1.45rem);
  line-height:2;
  font-weight:400;
  color:rgba(255,255,255,.9);
}
.down{
  width:30px;height:46px;
  display:grid;place-items:center;
  margin-top:22px;
}
.down span{
  width:16px;height:16px;
  border-left:1.5px solid rgba(255,255,255,.7);
  border-bottom:1.5px solid rgba(255,255,255,.7);
  transform:rotate(-45deg);
  animation:float 1.8s ease-in-out infinite;
}
@keyframes float{50%{transform:translateY(7px) rotate(-45deg)}}

.editorial{
  width:min(calc(100% - 2*var(--pad)),var(--max));
  margin:0 auto;
  padding:110px 0 130px;
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(420px,1.25fr);
  gap:8vw;
  align-items:center;
}
.copy{max-width:560px}
.kicker{
  display:flex;align-items:center;gap:14px;
  color:#57534f;
  font-size:.78rem;
  margin-bottom:48px;
}
.kicker i{width:52px;height:1px;background:#8c867f;display:block}
.kicker span:first-child{direction:ltr;letter-spacing:.18em}
.copy h2{
  margin:0;
  font-size:clamp(3.4rem,6vw,6.6rem);
  line-height:1;
  letter-spacing:-.055em;
}
.copy h3{
  margin:28px 0 0;
  font-size:clamp(1.3rem,2vw,2rem);
  line-height:1.7;
  font-weight:400;
  color:#2e2d2b;
}
.copy p{
  margin:38px 0 0;
  font-size:1.03rem;
  line-height:2.2;
  color:#2e2d2b;
}
.editorial .copy h2,
.editorial .copy h3,
.statement h3,
.statement .statement-body{
  color:#2e2d2b;
}

/* Match rows 3 and 4 typography to row 2, with sizes balanced to each row */
.thought-copy h3,
.editorial-reverse .copy h2,
.editorial-reverse .copy h3,
.editorial-reverse .copy p{
  font-family:"Vazirmatn",Tahoma,Arial,sans-serif;
  font-weight:400;
}

/* Row 3: long sentence — same visual scale as row 2 */
.thought-copy h3{
  margin:0;
  font-size:clamp(1.3rem,2vw,2rem);
  line-height:1.7;
  max-width:560px;
}

/* Row 4: shorter main title can be a little larger, but not oversized */
.editorial-reverse .copy h2{
  margin:0;
  font-size:clamp(2rem,3.2vw,3.25rem);
  line-height:1.25;
  letter-spacing:-0.02em;
}

/* Row 4 supporting line follows the same scale as row 2 */
.editorial-reverse .copy h3{
  margin-top:24px;
  font-size:clamp(1.3rem,2vw,2rem);
  line-height:1.7;
}

/* Row 4 body remains subordinate and readable */
.editorial-reverse .copy p{
  margin-top:30px;
  font-size:clamp(1rem,1.2vw,1.08rem);
  line-height:2.1;
}
.text-link{
  display:inline-block;
  margin-top:32px;
  padding-bottom:5px;
  border-bottom:1px solid currentColor;
}
.editorial-image{
  margin:0;
  overflow:hidden;
  background:#ddd;
}
.editorial-image img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
}

.statement{
  width:min(calc(100% - 2*var(--pad)),var(--max));
  margin:0 auto;
  padding:150px 0 170px;
  border-top:1px solid var(--line);
}
.thought-row{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr);
  gap:clamp(48px,7vw,110px);
  align-items:center;
  direction:ltr;
}
.thought-copy{
  direction:rtl;
  text-align:right;
  min-width:0;
}
.thought-image{
  margin:0;
  min-width:0;
  overflow:hidden;
  background:#e9e4dc;
}
.thought-image img{
  width:100%;
  height:auto;
  aspect-ratio:1/1;
  object-fit:cover;
  object-position:center center;
  display:block;
}
.eyebrow{
  margin:0 0 28px;
  color:var(--muted);
  font-size:.82rem
}
.statement h2{
  margin:0;
  max-width:1050px;
  font-size:clamp(2.8rem,5.5vw,6rem);
  line-height:1.32;
  letter-spacing:-.045em;
  font-weight:500;
}
.statement-body{
  max-width:720px;
  margin:48px 0 0;
  font-size:1.08rem;
  line-height:2.1;
  color:#504c47;
}
.full-image{
  width:100%;
  background:#ddd;
}
.full-image img{
  width:100%;
  max-height:82vh;
  object-fit:cover;
}
.editorial-reverse{
  grid-template-columns:minmax(420px,1.25fr) minmax(0,.9fr);
}
.editorial-reverse .copy{order:2}
.editorial-reverse .placeholder{order:1}
.placeholder{
  min-height:520px;
  background:#d9d4cd;
  display:grid;
  place-items:center;
  color:#6d6761;
  font-size:.9rem;
}
.dark-quote{
  background:var(--charcoal2);
  color:#fff;
  padding:150px var(--pad);
}
.dark-quote p{
  margin:0 0 28px;
  direction:ltr;text-align:left;
  letter-spacing:.18em;
  font-size:.7rem;
  opacity:.6;
}
.dark-quote h2{
  margin:0;
  max-width:1000px;
  font-size:clamp(2.6rem,5vw,5.5rem);
  line-height:1.35;
  font-weight:500;
}
footer{
  display:flex;
  justify-content:space-between;
  gap:30px;
  padding:38px var(--pad);
  background:#211f1e;
  color:rgba(255,255,255,.65);
  font-size:.8rem;
}
.latin{direction:ltr}

.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .85s ease,transform .85s ease;
}
.reveal.visible{
  opacity:1;
  transform:none;
}

@media(max-width:850px){
  .topbar{padding-top:22px}
  .cover-inner{padding-top:80px}
  .polaroid{width:min(72vw,330px)}
  .polaroid-bottom{height:65px}
  .editorial,.editorial-reverse{
    grid-template-columns:1fr;
    gap:56px;
    padding:88px 0 100px;
  }
  .editorial-reverse .copy,.editorial-reverse .placeholder{order:initial}
  .copy{max-width:none}
  .kicker{margin-bottom:32px}
  .statement{padding:100px 0 115px}
  .thought-row{
    grid-template-columns:1fr;
    gap:42px;
  }
  .thought-image{order:1}
  .thought-copy{order:2}
  .placeholder{min-height:360px}
  .dark-quote{padding-top:105px;padding-bottom:105px}
}
@media(max-width:520px){
  :root{--pad:7vw}
  .cover h1{
    font-size:2.65rem;
    line-height:1.4;
    font-weight:600;
    letter-spacing:0;
  }
  .cover blockquote{font-size:.96rem}
  .polaroid{padding:14px 14px 0}
  .polaroid-bottom{height:55px}
  .copy h2{font-size:3.35rem}
  .copy h3{font-size:1.28rem}
  .thought-copy h3{font-size:1.28rem}
  .editorial-reverse .copy h2{font-size:2.15rem}
  .editorial-reverse .copy h3{font-size:1.28rem}
  .editorial-reverse .copy p{font-size:1rem}
  footer{flex-direction:column}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .reveal{opacity:1;transform:none}
}


/* Letter from Mahmoud */
.founder-letter{
  min-height:100svh;
  display:grid;
  place-items:center;
  background:#fff;
  padding:82px var(--pad);
  overflow:hidden;
}
.letter-stage{
  width:min(100%,1280px);
  margin:0 auto;
}
.letter-columns{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);
  gap:clamp(46px,7vw,110px);
  align-items:center;
  direction:ltr;
}
.letter-handwriting,
.letter-typed{
  min-width:0;
}
.letter-handwriting{
  order:2;
  direction:rtl;
  overflow:hidden;
  position:relative;
  background:#fff;
}
.letter-handwriting img{
  width:100%;
  height:auto;
  display:block;
}

/* The approved artwork stays untouched; only its visibility is animated. */
.founder-letter-image{
  opacity:1;
  filter:none;
  transform:none;
}
.js-ready .founder-letter-image{
  opacity:0;
  filter:blur(6px);
  transform:translateY(10px);
  transition:
    opacity 3.2s ease,
    filter 3.2s ease,
    transform 3.2s ease;
  will-change:opacity,filter,transform;
}
.js-ready .founder-letter-image.is-visible{
  opacity:1;
  filter:blur(0);
  transform:translateY(0);
}

.letter-typed{
  order:1;
  direction:rtl;
  text-align:right;
  color:#4d78b7;
}
.letter-typed p{
  margin:0;
  font-size:clamp(1.15rem,1.55vw,1.5rem);
  line-height:2.15;
  font-weight:400;
  color:#2e2d2b !important;
}
.letter-signature{
  margin-top:34px;
  display:flex;
  justify-content:flex-start;
  gap:.38em;
  font-size:clamp(.98rem,1.15vw,1.15rem);
  font-weight:500;
  color:#4d78b7;
}
.letter-signature span{
  opacity:0;
  transform:translateY(7px);
}

@media(max-width:850px){
  .founder-letter{
    min-height:auto;
    padding:64px 6vw 76px;
  }
  .letter-columns{
    grid-template-columns:1fr;
    gap:42px;
  }
  .letter-handwriting{
    order:1;
  }
  .letter-typed{
    order:2;
  }
  .letter-handwriting img{
    width:min(100%,720px);
    margin:0 auto;
  }
  .letter-typed p{
    font-size:1.08rem;
    line-height:2.05;
  }
  .letter-signature{
    margin-top:24px;
    font-size:1rem;
  }
}
@media(max-width:520px){
  .founder-letter{
    padding:46px 5vw 58px;
  }
  .letter-columns{
    gap:32px;
  }
  .letter-handwriting img{
    width:108%;
    max-width:none;
    margin-right:-4%;
  }
  .letter-typed p{
    font-size:1rem;
    line-height:2;
  }
}
@media(prefers-reduced-motion:reduce){
  .founder-letter-image{
    opacity:1!important;
    filter:none!important;
    transform:none!important;
    transition:none!important;
  }
  .letter-signature span{
    opacity:1;
    transform:none;
  }
}
