/* Urdu: Jameel Noori Nastaleeq wherever the visitor's device has it; otherwise Noto Nastaliq, loaded in the background */
@font-face { font-family: "Isaar Nastaleeq"; src: local("Jameel Noori Nastaleeq"), local("Jameel Noori Nastaleeq Regular"), local("JameelNooriNastaleeq"); font-display: swap; }
@property --rise { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --float { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --tilt { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --sc { syntax: "<number>"; inherits: false; initial-value: 1; }
/* Isaar website. One bold moment (the living 3D stage); everything else calm and readable. */
:root {
  --oxblood: #2A0E14; --oxblood-deep: #1C070C; --red: #D7263D; --red-text: #B3122B; --rose: #FF8291;
  --paper: #FFF4F1; --blush: #FBD9D5; --ink: #2A0E14; --muted: #7A5A5F; --line: #EBD8D6;
  --life: #0C7259; --life-glow: #2BB38A; --on-dark: #F8EDEE; --on-dark-muted: #C9AEB3;
  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .75, .1, 1);
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --urdu: "Isaar Nastaleeq", "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif;
  --wrap: 72rem; --gutter: clamp(1.25rem, 4vw, 3rem);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--body); color: var(--ink); background: var(--oxblood); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--paper); color: var(--ink); padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { top: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem; border-radius: 999px;
  font: 700 1rem/1 var(--body); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #C21E34; }
.btn-ghost { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(248, 237, 238, .55); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--on-dark); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn.small { min-height: 2.5rem; padding: 0 1.1rem; font-size: .9rem; }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 1.5rem;
  padding: calc(.75rem + env(safe-area-inset-top)) var(--gutter) .75rem; color: var(--on-dark);
  background: rgba(30, 9, 15, .96); }
.brand { display: block; width: 6.2rem; color: var(--on-dark); }
.brand svg { display: block; width: 100%; height: auto; }
.nav nav { display: flex; gap: 1.5rem; margin-inline-start: auto; }
.nav nav a { text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .85; }
.nav nav a:hover { opacity: 1; }
.lang { background: none; border: 0; color: var(--on-dark); font: 600 1rem var(--urdu), var(--body); cursor: pointer; padding: .4rem .6rem; border-radius: 8px; line-height: 1.8; }
@media (max-width: 760px) { .nav nav { display: none; } .lang { margin-inline-start: auto; } }

/* ---------- reading sections ---------- */
.paper { background: var(--paper); color: var(--ink); }
.night { background: var(--oxblood); color: var(--on-dark); }
.impact { padding: clamp(4rem, 9vw, 7rem) var(--gutter); }
.impact-line { max-width: 54rem; margin: 0 auto; font: 500 clamp(1.5rem, 3.2vw, 2.4rem)/1.3 var(--display); font-variation-settings: "opsz" 32; letter-spacing: -.012em; text-wrap: balance; }
.impact-line .num { color: var(--red-text); font-weight: 800; font-variant-numeric: tabular-nums; }
.families, .support { padding: clamp(4rem, 8vw, 6.5rem) 0; }
h2 { font: 500 clamp(2rem, 4.4vw, 3.3rem)/1.06 var(--display); font-variation-settings: "opsz" 32; letter-spacing: -.018em; margin: 0 0 1.25rem; text-wrap: balance; }
h3 { font: 700 1.4rem/1.2 var(--display); margin: 0 0 .5rem; }
.two { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.steps { margin: 0 0 2rem; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 .9rem 3.25rem; max-width: 36rem; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: -.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--blush); color: var(--red-text); font: 700 1rem var(--display); }
[dir="rtl"] .steps li { padding: 0 3.25rem 1.25rem 0; }
.steps b { display: block; font-size: 1.1rem; }
.steps span { color: var(--muted); }
.promise { background: var(--oxblood); color: var(--on-dark); border-radius: 28px; padding: 2rem; }
.promise .promise-big { font: 600 clamp(1.9rem, 3.6vw, 2.6rem)/1.08 var(--display); font-variation-settings: "opsz" 32; letter-spacing: -.015em; margin: 0 0 1rem; color: #fff; }
.promise p { margin: 0 0 1rem; color: var(--on-dark-muted); }
.promise .emergency { background: rgba(255, 255, 255, .08); color: var(--on-dark); margin: 1.25rem 0 0; max-width: none; }

/* ---------- donors: compatibility and the quick check ---------- */
.donors { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.sub { color: var(--on-dark-muted); margin: -0.75rem 0 2.5rem; font-size: 1.1rem; max-width: 40rem; }
.paper .sub { color: var(--muted); }
.donor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "wheel read" "wheel check"; gap: 2rem 3.5rem; align-items: start; }
@media (max-width: 860px) { .donor-grid { grid-template-columns: 1fr; grid-template-areas: "wheel" "read" "check"; } }
.compat { grid-area: wheel; position: relative; aspect-ratio: 1; max-width: 30rem; width: 100%; margin: 0 auto; }
.compat-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.compat-lines line { stroke: var(--life-glow); stroke-width: 1.2; stroke-linecap: round; opacity: .9; }
.g { position: absolute; width: 21%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .06); color: var(--on-dark); font: 800 clamp(1rem, 2.4vw, 1.5rem) var(--display);
  box-shadow: inset 0 0 0 1.5px rgba(255, 130, 145, .3); transition: background .2s ease, box-shadow .2s ease, color .2s ease; }
.g:hover { box-shadow: inset 0 0 0 1.5px var(--rose); }
.g[aria-pressed="true"] { background: var(--red); color: #fff; box-shadow: 0 0 0 6px rgba(215, 38, 61, .25); }
.g.can { background: rgba(43, 179, 138, .18); box-shadow: inset 0 0 0 1.5px var(--life-glow); color: #fff; }
.compat-read { grid-area: read; }
.compat-big { font: 700 clamp(1.4rem, 2.6vw, 1.9rem)/1.2 var(--display); margin: 0 0 .5rem; }
.compat-small { color: var(--on-dark-muted); margin: 0; }
.check { grid-area: check; background: rgba(255, 255, 255, .05); border-radius: 24px; padding: 1.5rem; display: grid; gap: .9rem; }
.check h3 { margin: 0 0 .25rem; }
.check label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.check input[type=number] { font: 500 1.05rem var(--body); padding: .75rem .9rem; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .2); color: var(--on-dark); }
.check fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.check legend { font-weight: 600; font-size: .95rem; margin-bottom: .3rem; width: 100%; }
.pill { display: inline-flex !important; grid-auto-flow: column; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2); cursor: pointer; }
.pill:has(input:checked) { background: var(--red); box-shadow: none; }
.pill input { accent-color: #fff; }
.check-out { margin: 0; font-weight: 700; min-height: 1.6em; }
.check-out.yes { color: var(--life-glow); } .check-out.no { color: #FFB86B; }
.fine { font-size: .85rem; color: var(--on-dark-muted); margin: 0; }
.paper .fine { color: var(--muted); }

/* ---------- support ---------- */
.give, .sponsor { border-radius: 28px; padding: 2rem; }
.give { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.sponsor { background: var(--blush); }
.give p, .sponsor p { color: var(--muted); }
.pay { display: grid; gap: .6rem; margin-top: 1.25rem; }
.pay-row { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: 16px; background: var(--paper); }
.pay-row div { flex: 1; min-width: 0; }
.pay-row b { display: block; }
.pay-row span { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.copy { border: 0; background: none; color: var(--red-text); font: 700 .9rem var(--body); cursor: pointer; padding: .5rem .6rem; border-radius: 8px; }
.pay-qr { display: flex; gap: 1rem; align-items: center; }
.pay-qr img { width: 7.5rem; height: 7.5rem; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.muted { color: var(--muted); }

/* ---------- download + footer ---------- */
.download { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.dl { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
@media (max-width: 760px) { .dl { grid-template-columns: 1fr; } }
.dl .fine { margin-top: 1rem; }
.qr { margin: 0; text-align: center; }
.qr img { width: 12.5rem; height: 12.5rem; background: #fff; padding: .8rem; border-radius: 22px; }
.qr figcaption { margin-top: .6rem; color: var(--on-dark-muted); font-size: .9rem; }
.foot { padding: 3rem 0 calc(3rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .08); }
.foot-by { display: flex; align-items: center; gap: .75rem; font-weight: 700; margin: 0 0 1.5rem; }
.foot-by img { border-radius: 50%; }
.dua { color: var(--on-dark-muted); max-width: 44rem; margin: 0 0 .75rem; font-size: .95rem; }
.dua[lang="ur"] { font: 400 1.05rem/2.2 var(--urdu); }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.75rem; }
.foot-links a { color: var(--on-dark); font-weight: 600; text-decoration: none; opacity: .8; }
.foot-links a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Urdu ---------- */
body.ur { font-family: var(--urdu); line-height: 2.1; }
body.ur h1, body.ur h2, body.ur h3, body.ur .promise-big, body.ur .impact-line, body.ur .compat-big { font-family: var(--urdu); line-height: 1.9; letter-spacing: 0; font-weight: 600; }
body.ur h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.75; }
body.ur .btn { font-family: var(--urdu); line-height: 1.6; padding-bottom: .2rem; }

/* ---------- calm version ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue::before { animation: none; }
}



/* ---------- the stage: one pinned, cinematic screen ---------- */
.stage { position: relative; background: #13050A; color: var(--on-dark); }
.stage-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#liquid { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.still { position: absolute; inset: 0; display: none; background: radial-gradient(closest-side at 68% 50%, rgba(215, 38, 61, .55), rgba(120, 10, 30, .2) 55%, transparent 80%), #13050A; }
.no-gl .still { display: block; }
.stage-content { position: relative; margin-top: -100vh; margin-top: -100svh; pointer-events: none; }
.stage-content a, .stage-content button { pointer-events: auto; }
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 7rem var(--gutter) 2.25rem; max-width: var(--wrap); margin: 0 auto; }
.hero-copy { max-width: 38rem; }
.hero h1 { font: 400 clamp(2.5rem, 6vw, 5rem)/1.02 var(--display); font-variation-settings: "opsz" 40; letter-spacing: -.025em; margin: 0 0 1.4rem; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--on-dark-muted); margin: 0 0 1.75rem; max-width: 31rem; }
.ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.by { display: flex; align-items: center; gap: .6rem; margin: 1.6rem 0 0; font-size: .92rem; color: var(--on-dark-muted); }
.by img { border-radius: 50%; }
.scroll-cue { margin: 2.5rem 0 0; font-size: .82rem; color: var(--on-dark-muted); display: flex; align-items: center; gap: .7rem; }
.scroll-cue::before { content: ""; width: 1px; height: 2.4rem; background: linear-gradient(var(--rose), transparent); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.story-space { height: 330vh; }

/* the story panel stays put while the scene changes behind it */
.story { position: absolute; inset-inline-start: var(--gutter); top: 50%; transform: translateY(-50%); width: min(26rem, calc(100% - 2 * var(--gutter)));
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.story.on { opacity: 1; visibility: visible; }
.rail { position: relative; width: 2px; background: rgba(255, 255, 255, .12); display: flex; flex-direction: column; justify-content: space-between; border-radius: 2px; }
.rail span { width: 8px; height: 8px; margin-inline-start: -3px; border-radius: 50%; background: #13050A; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); z-index: 1; }
.rail i { position: absolute; inset: 0 0 auto 0; height: var(--fill, 0%); background: var(--rose); border-radius: 2px; transition: height .2s linear; }
.steps-live { list-style: none; margin: 0; padding: 0; display: grid; }
.step { grid-area: 1 / 1; min-height: 13rem; }
.step .step-n { display: block; font: 500 .9rem var(--display); letter-spacing: .08em; color: var(--rose); margin-bottom: .9rem; overflow: hidden; }
.step h2 { font: 500 clamp(1.8rem, 3.2vw, 2.6rem)/1.06 var(--display); font-variation-settings: "opsz" 32; letter-spacing: -.018em; margin: 0 0 .9rem; }
.step p { margin: 0; color: var(--on-dark-muted); max-width: 22rem; }
.step > * { transform: translateY(1.2rem); opacity: 0; transition: transform .7s var(--ease), opacity .6s var(--ease); }
.step.on > * { transform: none; opacity: 1; }
.step.on > :nth-child(2) { transition-delay: .06s; } .step.on > :nth-child(3) { transition-delay: .12s; }
.step.off > * { transform: translateY(-1.2rem); opacity: 0; }
.finale { position: absolute; inset: auto 0 6vh; text-align: center; padding: 0 var(--gutter); opacity: 0; transform: translateY(1.5rem); transition: opacity .9s var(--ease), transform .9s var(--ease); pointer-events: none; }
.finale.on { opacity: 1; transform: none; }
.finale-ur { font: 600 clamp(1.6rem, 3.6vw, 2.7rem)/1.9 var(--urdu); margin: 0; direction: rtl; }
.finale-en { margin: .2rem 0 0; color: var(--on-dark-muted); font-size: 1.05rem; letter-spacing: .01em; }

/* ---------- city band ---------- */
.marquee { overflow: hidden; background: #13050A; padding: 1.6rem 0 1.9rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.marquee-track { display: flex; width: max-content; gap: 2.2rem; align-items: center; animation: slide 46s linear infinite; will-change: transform; }
.marquee-track span { font: 400 clamp(2.4rem, 6vw, 4.6rem)/1 var(--display); font-variation-settings: "opsz" 40; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px rgba(255, 130, 145, .45); white-space: nowrap; transition: color .4s var(--ease); }
.marquee-track span:hover { color: var(--rose); }
.marquee-track svg { width: .9rem; height: 1.2rem; flex: none; fill: var(--red); }
@keyframes slide { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-direction: reverse; }

/* ---------- motion: words rise from behind a mask; blocks fade up; light sections open like a curtain ---------- */
.kinetic .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.kinetic .wi { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.kinetic.in .wi { transform: none; }
.reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.curtain { clip-path: inset(var(--c, 0%) calc(var(--c, 0%) * .6) 0 round calc(var(--c, 0%) * 1.2)); }
.families { padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }

/* ---------- buttons follow the cursor a little ---------- */
.magnetic { transition: transform .35s var(--ease), background .15s ease, box-shadow .15s ease; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .hero { justify-content: flex-start; padding-top: calc(4.5rem + min(32vh, 260px)); padding-bottom: 2rem; }
  .hero h1 { font-size: clamp(2.3rem, 10vw, 3rem); }
  .story { top: auto; bottom: 7vh; transform: none; }
  .step { min-height: 11rem; }
  .step h2 { font-size: clamp(1.7rem, 7.5vw, 2.1rem); }
  .finale { bottom: 9vh; }
}

/* ---------- calm version ---------- */
@media (prefers-reduced-motion: reduce) {
  .kinetic .wi, .reveal, .step > *, .finale { transition: none !important; transform: none !important; opacity: 1 !important; filter: none !important; }
  .marquee-track { animation: none; }
  .curtain { clip-path: none; }
}

.impact h2 { font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 600; letter-spacing: 0; color: var(--muted); max-width: 54rem; margin: 0 auto 1rem; }

/* computers that struggle: no moving city band, no curtain */
.lite .marquee-track { animation-duration: 0s; animation: none; }
.lite .curtain { clip-path: none; }

/* ---------- cards: rise into place with a slight tilt, then drift at their own depth as you scroll ---------- */
.card-rise { --rise: 70px; --tilt: 14deg; --sc: .95; opacity: 0;
  transform: perspective(1100px) translate3d(0, calc(var(--rise) + var(--float)), 0) rotateX(var(--tilt)) scale(var(--sc));
  transform-origin: 50% 100%;
  transition: --rise 1.15s var(--ease), --tilt 1.15s var(--ease), --sc 1.15s var(--ease), opacity .9s var(--ease), box-shadow .45s var(--ease);
  transition-delay: calc(var(--d, 0) * 95ms); will-change: transform; }
.card-rise.in { --rise: 0px; --tilt: 0deg; --sc: 1; opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .card-rise.in:hover { --rise: -10px; transition-delay: 0s; box-shadow: 0 30px 60px -30px rgba(42, 14, 20, .5); }
  .night .card-rise.in:hover, .stage .card-rise.in:hover { box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 130, 145, .25); }
}
.steps li.card-rise { padding: 1rem 1rem 1rem 4rem; margin: 0 0 .6rem; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.steps li.card-rise::before { inset-inline-start: 1rem; top: 1rem; }
[dir="rtl"] .steps li.card-rise { padding: 1rem 4rem 1rem 1rem; }
.pay-row.card-rise { background: var(--paper); }
@media (prefers-reduced-motion: reduce) { .card-rise { transform: none !important; opacity: 1 !important; transition: none !important; } }

/* ======================= multi-page site ======================= */
.nav .nav-links a[aria-current] { opacity: 1; box-shadow: 0 2px 0 var(--rose); }
.lang { text-decoration: none; }
/* phones: a full-screen menu */
.menu-btn { display: none; width: 2.75rem; height: 2.75rem; border: 0; background: none; padding: 0; cursor: pointer; position: relative; margin-inline-start: .25rem; }
.menu-btn span { position: absolute; left: 50%; width: 1.4rem; height: 2px; margin-left: -.7rem; background: var(--on-dark); border-radius: 2px; transition: transform .45s var(--ease); }
.menu-btn span:first-child { top: 1.05rem; } .menu-btn span:last-child { top: 1.6rem; }
.menu-open .menu-btn span:first-child { transform: translateY(.28rem) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-.28rem) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 19; background: #13050A; padding: calc(6rem + env(safe-area-inset-top)) var(--gutter) 2rem; display: flex; flex-direction: column; gap: 2rem;
  clip-path: circle(0% at calc(100% - 2.5rem) 2rem); transition: clip-path .6s var(--ease); overflow-y: auto; }
.menu.on { clip-path: circle(150% at calc(100% - 2.5rem) 2rem); }
.menu nav { display: grid; gap: .2rem; }
.menu nav a { color: var(--on-dark); text-decoration: none; font: 400 clamp(1.9rem, 8vw, 2.6rem)/1.25 var(--display); letter-spacing: -.02em;
  opacity: 0; transform: translateY(1.2rem); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 45ms + .15s); }
.menu.on nav a { opacity: 1; transform: none; }
.menu .btn { align-self: flex-start; }
.menu-open { overflow: hidden; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav .btn.small { display: none; }
}

/* inner page hero: the liquid, quieter, beside the title */
.phero { position: relative; overflow: hidden; background: #13050A; min-height: min(80vh, 46rem); display: flex; align-items: flex-end; }
.phero #liquid { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.phero .still { position: absolute; inset: 0; display: none; background: radial-gradient(closest-side at 80% 50%, rgba(215, 38, 61, .45), transparent 75%), #13050A; }
.no-gl .phero .still { display: block; }
.phero-in { position: relative; padding-top: 8rem; padding-bottom: clamp(3rem, 7vw, 5rem); width: 100%; }
.phero h1 { font: 400 clamp(2.3rem, 5.4vw, 4.4rem)/1.04 var(--display); font-variation-settings: "opsz" 40; letter-spacing: -.025em; margin: 0 0 1.2rem; max-width: 16ch; }
.phero .lead { max-width: 34rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; color: var(--on-dark-muted); margin-bottom: 1.4rem; }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; } .crumbs a:hover { color: var(--on-dark); }
.crumbs i { font-style: normal; opacity: .4; }
@media (max-width: 760px) { .phero { min-height: 0; } .phero-in { padding-top: calc(5rem + 28vh); } .phero h1 { max-width: none; } }

/* sections and cards */
.block { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.block .sub { margin-top: -.5rem; }
.tiles { display: grid; gap: 1rem; margin-top: 1.75rem; }
.tiles.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tiles.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .tiles.c4, .tiles.c5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tiles.c2, .tiles.c3, .tiles.c4, .tiles.c5 { grid-template-columns: 1fr; } }
.tile { position: relative; display: block; padding: 1.5rem 1.4rem 1.6rem; border-radius: 22px; text-decoration: none; color: inherit; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.night .tile, .band .tile { background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.tile h3 { font: 500 1.25rem/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 .5rem; padding-inline-end: 1.5rem; }
.tile p { margin: 0; color: var(--muted); font-size: .97rem; }
.night .tile p { color: var(--on-dark-muted); }
.tile-go { position: absolute; inset-inline-end: 1.2rem; top: 1.45rem; width: .7rem; height: .7rem; border-top: 2px solid var(--red); border-inline-end: 2px solid var(--red); transform: rotate(45deg); transition: transform .4s var(--ease); }
[dir="rtl"] .tile-go { transform: rotate(-45deg); }
a.tile:hover .tile-go { transform: translateX(4px) rotate(45deg); }
[dir="rtl"] a.tile:hover .tile-go { transform: translateX(-4px) rotate(-45deg); }
.emergency { margin: 1.5rem 0 0; padding: 1rem 1.2rem; border-radius: 16px; background: #FCE7CF; color: #6B3205; font-weight: 600; max-width: 44rem; }
.night .emergency { background: rgba(255, 255, 255, .07); color: var(--on-dark); }
.more { margin-top: 1.25rem; } .more a { color: var(--red-text); font-weight: 700; }
.night .sub { color: var(--on-dark-muted); }

/* FAQ */
.faq { display: grid; gap: .75rem; margin-top: 1.5rem; max-width: 52rem; }
.faq details { border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.night .faq details { background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 3.2rem 1.15rem 1.3rem; font-weight: 700; position: relative; }
[dir="rtl"] .faq summary { padding: 1.15rem 1.3rem 1.15rem 3.2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; inset-inline-end: 1.3rem; top: 50%; width: .9rem; height: .9rem; margin-top: -.45rem;
  background: linear-gradient(var(--red), var(--red)) center / 100% 2px no-repeat, linear-gradient(var(--red), var(--red)) center / 2px 100% no-repeat; transition: transform .45s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq-a { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq-a p { margin: 0; }
.night .faq-a { color: var(--on-dark-muted); }
.faq details[open] .faq-a { animation: open .5s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-.4rem); } }

/* compatibility table */
.table-wrap { overflow-x: auto; margin-top: 1.5rem; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.compat-table { border-collapse: collapse; width: 100%; min-width: 34rem; text-align: center; }
.compat-table caption { caption-side: bottom; padding: .9rem; color: var(--muted); font-size: .85rem; }
.compat-table th, .compat-table td { padding: .75rem .5rem; border-bottom: 1px solid var(--line); }
.compat-table thead th { font: 600 .95rem var(--display); color: var(--muted); }
.compat-table tbody th { font: 700 1rem var(--display); }
.compat-table td { color: var(--red); font-size: 1.1rem; }
.compat-table tbody tr:hover { background: var(--paper); }

/* call-to-action band */
.band { padding: clamp(3rem, 6vw, 5rem) 0; background: #13050A; }
.band-in { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 760px) { .band-in { grid-template-columns: 1fr; } }
.band-card { padding: 2rem; border-radius: 26px; background: linear-gradient(160deg, rgba(215, 38, 61, .22), rgba(215, 38, 61, .04)); box-shadow: inset 0 0 0 1px rgba(255, 130, 145, .18); }
.band-card + .band-card { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.band-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .6rem; }
.band-card p { color: var(--on-dark-muted); margin: 0 0 1.4rem; max-width: 28rem; }

/* about + contact */
.hwf { display: flex; align-items: center; gap: 1.5rem; max-width: 44rem; } .hwf img { border-radius: 50%; flex: none; } .hwf p { color: var(--on-dark-muted); font-size: 1.1rem; margin: 0; }
.dedication { max-width: 46rem; } .dedication p { font: 400 clamp(1.15rem, 2vw, 1.45rem)/1.6 var(--display); margin: 0 0 1rem; }
.dedication p[lang="ur"] { font: 400 clamp(1.25rem, 2.2vw, 1.6rem)/2.2 var(--urdu); }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .tile p { overflow-wrap: anywhere; }
.promise-line { font-weight: 700; color: var(--life) !important; }
.check-wide { max-width: 36rem; }

/* footer: links everywhere (people and search engines find every page) */
.foot { padding: clamp(3.5rem, 7vw, 5.5rem) 0 calc(2.5rem + env(safe-area-inset-bottom)); background: #13050A; }
.foot-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.brand.big { width: 9rem; color: var(--on-dark); }
.foot-line { font: 400 clamp(1.3rem, 2.6vw, 2rem)/1.15 var(--display); letter-spacing: -.02em; margin: 0; max-width: 24rem; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding: 2.5rem 0; max-width: 46rem; }
@media (max-width: 620px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
.foot-cols h2 { font: 600 .85rem var(--body); letter-spacing: .02em; color: var(--rose); margin: 0 0 .9rem; }
.foot-cols a { display: block; color: var(--on-dark-muted); text-decoration: none; padding: .28rem 0; font-size: .95rem; }
.foot-cols a:hover { color: var(--on-dark); }
.foot-legal { color: var(--on-dark-muted); font-size: .85rem; margin: 1.5rem 0 0; } .foot-legal a { color: var(--on-dark); }
body.ur .foot-cols a, body.ur .tile p, body.ur .faq-a { line-height: 2; }
body.ur .tile h3, body.ur .phero h1, body.ur .foot-line, body.ur .band-card h2 { font-family: var(--urdu); line-height: 1.9; letter-spacing: 0; }
body.ur .phero h1 { font-size: clamp(2rem, 5vw, 3.6rem); }

/* ---------- city finder: a drawer with search (scales to any number of cities) ---------- */
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 40; width: min(28rem, 100%); background: #1A070D; color: var(--on-dark); display: flex; flex-direction: column;
  box-shadow: -30px 0 80px rgba(0, 0, 0, .5); transform: translateX(105%); transition: transform .55s var(--ease); }
[dir="rtl"] .drawer { inset: 0 auto 0 0; transform: translateX(-105%); box-shadow: 30px 0 80px rgba(0, 0, 0, .5); }
.drawer.on { transform: none; }
.drawer-scrim { position: fixed; inset: 0; z-index: 39; background: rgba(10, 2, 5, .55); opacity: 0; transition: opacity .45s var(--ease); }
.drawer-scrim.on { opacity: 1; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: calc(1.25rem + env(safe-area-inset-top)) 1.5rem .75rem; }
.drawer-head h2 { font-size: 1.6rem; margin: 0; }
.drawer-x { width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .07); color: var(--on-dark); font-size: 1.4rem; cursor: pointer; }
.drawer-search { margin: 0 1.5rem 1rem; position: relative; }
.drawer-search input { width: 100%; font: 500 1.05rem var(--body); padding: .95rem 1rem .95rem 2.8rem; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: var(--on-dark); }
[dir="rtl"] .drawer-search input { padding: .95rem 2.8rem .95rem 1rem; }
.drawer-search input:focus { outline: none; border-color: var(--rose); }
.drawer-search svg { position: absolute; inset-inline-start: 1rem; top: 50%; width: 1.1rem; height: 1.1rem; margin-top: -.55rem; stroke: var(--on-dark-muted); }
.drawer-list { flex: 1; overflow-y: auto; padding: 0 1rem 1.5rem; overscroll-behavior: contain; }
.drawer-list h3 { font: 600 .82rem var(--body); letter-spacing: .02em; color: var(--rose); margin: 1.2rem .5rem .4rem; }
.drawer-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem .5rem; border-radius: 12px; color: var(--on-dark); text-decoration: none; font-size: 1.05rem; }
.drawer-list a:hover, .drawer-list a:focus-visible { background: rgba(255, 255, 255, .06); }
.drawer-list a small { color: var(--on-dark-muted); }
.drawer-empty { color: var(--on-dark-muted); padding: 1rem .5rem; }
.drawer-foot { padding: 1rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .08); }
.drawer-foot a { color: var(--rose); font-weight: 700; text-decoration: none; }
.drawer-open { overflow: hidden; }
.city-search { max-width: 30rem; margin-top: 1.5rem; }
.city-search input { width: 100%; font: 500 1.05rem var(--body); padding: .95rem 1.1rem; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.city-search input:focus { outline: none; border-color: var(--red); }

/* contrast fixes from the audit */
.promise-line { color: #0A5A46 !important; }
.paper .qr figcaption { color: var(--muted); }
.paper .qr img { box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -24px rgba(42, 14, 20, .35); }
.marquee-track span { -webkit-text-stroke: 1px rgba(255, 130, 145, .62); }

/* closed means gone: no shadow at the screen edge, and no invisible links for keyboard users */
.drawer[hidden], .drawer-scrim[hidden], .menu[hidden] { display: none !important; }
