/* NUR Media: darkness into light (Qur'an 2:257).
   Layout: asymmetric editorial grid; dark night/navy chapters alternate with pearl chapters.
   Yellow (nur) appears only where light belongs: the lamp, glows, highlights, calls to action. */
:root {
  /* Dark family */
  --night: #0C1721;
  --navy: #213B52;
  --navy-2: #1A3044;
  --navy-line: rgba(250, 243, 134, .13);
  /* Light */
  --nur: #FAF386;
  --nur-deep: #E9DF55;
  --nur-glow: rgba(250, 243, 134, .28);
  --nur-faint: rgba(250, 243, 134, .07);
  /* Light family */
  --pearl: #EEF1F4;
  --white: #FFFFFF;
  --ink: #213B52;
  --text: #1B2A38;
  --slate: #59687A;
  --mist: #B9C6D2;
  --rule: #D2DAE2;

  --display: "Gloock", "Iowan Old Style", Georgia, serif;
  --body: "Montserrat", "Segoe UI", Arial, sans-serif;
  --arabic: "Reem Kufi", "Geeza Pro", "Noto Kufi Arabic", sans-serif;

  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 88px; background: var(--night); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--pearl); color: var(--text); font: 16px/1.7 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--nur); color: var(--navy); }
:focus-visible { outline: 2px solid var(--nur); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
section { position: relative; padding-block: 120px; }
.on-dark { background: var(--navy); color: var(--white); }
.on-night { background: var(--night); color: var(--white); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; margin: 0; letter-spacing: -.01em; text-wrap: balance; color: var(--ink); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-night h1, .on-night h2, .on-night h3 { color: var(--white); }
h2 { font-size: clamp(36px, 5vw, 64px); }
h3 { font-size: 26px; }
p { margin: 0; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); margin-bottom: 22px; }
.eyebrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.on-dark .eyebrow, .on-night .eyebrow { color: var(--nur); }
.lead { font-size: 18px; max-width: 56ch; color: var(--slate); margin-top: 22px; }
.on-dark .lead, .on-night .lead { color: var(--mist); }
.mark { background: linear-gradient(transparent 58%, var(--nur) 58%, var(--nur) 92%, transparent 92%); padding: 0 .08em; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 64px; }
.head .lead { margin: 0; justify-self: end; }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; font: 600 15px var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease), border-color .35s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-nur { background: var(--nur); color: var(--navy); box-shadow: 0 0 0 0 var(--nur-glow); }
.btn-nur:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -6px var(--nur-glow); }
.btn-line { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn-line:hover { border-color: var(--nur); color: var(--nur); }
.btn-ink { border-color: var(--rule); color: var(--ink); background: var(--white); }
.btn-ink:hover { border-color: var(--ink); }
.btn-nur::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%); transform: translateX(-110%); transition: transform .8s var(--ease); }
.btn-nur:hover::after { transform: translateX(110%); }

/* Shared geometry */
.geo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.star-bullet { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--nur-deep); stroke-width: 1.3; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; top: env(safe-area-inset-top, 0px); z-index: 40; color: var(--white); transition: background .5s var(--ease), box-shadow .5s, transform .5s var(--ease); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: var(--night); }
.site-header.solid { background: rgba(12, 23, 33, .86); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--navy-line); }
.site-header.away { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.brand img { width: 42px; height: 42px; }
.nav ul { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 500; }
.nav ul a { position: relative; text-decoration: none; color: rgba(255, 255, 255, .78); transition: color .3s; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--nur); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav ul a:hover { color: var(--white); }
.nav ul a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 11px 20px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--white); padding-block: 150px 110px; min-height: min(100svh, 940px); display: flex; align-items: center; }
.hero-pattern { --to: .1; opacity: 0; animation: fade-to 2.6s .6s var(--ease) forwards; }
.hero-pattern rect { fill: url(#girih); }
.hero-vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 70% 40%, transparent 30%, var(--night) 75%); pointer-events: none; }
.cursor-light { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 72%) var(--my, 30%), rgba(250, 243, 134, .10), transparent 60%); transition: opacity .6s; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; align-items: center; width: 100%; }
.hero h1 { font-size: clamp(42px, 5vw, 74px); color: var(--white); }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: inline-block; animation: rise-in 1.1s var(--ease) both; }
.hero h1 .ln:nth-child(1) > span { animation-delay: .35s; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .47s; }
.hero h1 .ln:nth-child(3) > span { animation-delay: .59s; }
.hero h1 em { font-style: normal; color: var(--nur); text-shadow: 0 0 40px var(--nur-glow); }
.hero .eyebrow, .hero .lead, .hero-ctas, .hero-note { animation: fade-up 1s var(--ease) both; }
.hero .eyebrow { animation-delay: .2s; }
.hero .lead { animation-delay: .85s; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; animation-delay: 1s; }
.hero-note { margin-top: 20px; font-size: 13px; color: var(--mist); animation-delay: 1.1s; }

/* The mihrab: lamp, drawn arch, and a window of work */
.mihrab { position: relative; width: min(100%, 440px); aspect-ratio: 440 / 600; justify-self: center; }
.mihrab-glow { position: absolute; left: 50%; top: 0; width: 160%; aspect-ratio: 1; transform: translate(-50%, -38%) scale(.15); border-radius: 50%; background: radial-gradient(circle, rgba(250, 243, 134, .42) 0%, rgba(250, 243, 134, .12) 34%, transparent 62%); opacity: 0; animation: glow-on 2.2s .25s var(--ease) forwards, breathe 7s 2.6s ease-in-out infinite; }
.lamp { position: absolute; left: 50%; top: -20px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--nur); box-shadow: 0 0 18px 6px var(--nur-glow), 0 0 60px 20px rgba(250, 243, 134, .16); transform: scale(0); animation: lamp-on .7s .15s var(--ease) forwards; z-index: 3; }
.arch-line { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); fill: none; stroke: var(--nur); stroke-width: 1.2; overflow: visible; z-index: 2; }
.arch-line path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2s .45s var(--ease) forwards; }
.arch-line path.inner { stroke-opacity: .35; animation-delay: .75s; }
.arch-window { position: absolute; inset: 0; clip-path: url(#arch); background: var(--navy-2); animation: window-in 1.4s .9s var(--ease) both; }
.arch-window img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: slides 20s infinite; }
.arch-window img:nth-child(1) { animation-delay: 1s; }
.arch-window img:nth-child(2) { animation-delay: 6s; }
.arch-window img:nth-child(3) { animation-delay: 11s; }
.arch-window img:nth-child(4) { animation-delay: 16s; }
.arch-window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 23, 33, .7), transparent 40%); }
.mihrab-cap { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; z-index: 3; width: 1px; height: 56px; background: linear-gradient(var(--nur), transparent); transform-origin: top; animation: cue 2.4s 2s ease-in-out infinite both; }

@keyframes rise-in { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-to { to { opacity: var(--to); } }
@keyframes lamp-on { 60% { transform: scale(1.5); } to { transform: scale(1); } }
@keyframes glow-on { to { opacity: 1; transform: translate(-50%, -38%) scale(1); } }
@keyframes breathe { 50% { opacity: .78; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes window-in { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes slides { 0% { opacity: 0; transform: scale(1.08); } 5%, 25% { opacity: 1; } 30%, 100% { opacity: 0; transform: scale(1); } }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Clients band ---------- */
.band { background: var(--navy); color: var(--white); padding-block: 30px; border-block: 1px solid var(--navy-line); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.band small { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); }
.band ul { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; list-style: none; margin: 0; padding: 0; }
.band li { display: flex; align-items: center; gap: 30px; font-family: var(--display); font-size: 24px; }
.band li + li::before { content: ""; width: 10px; height: 10px; border: 1.2px solid var(--nur); transform: rotate(45deg); }
.band { padding-block: 36px; }
.logos { gap: 20px 44px; }
.logos li { gap: 44px; }
.logos img { width: auto; opacity: .78; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.logos img:hover { opacity: 1; transform: translateY(-2px); }
.lg-hwb { height: 50px; }
.lg-ik { height: 44px; }
.lg-soi { height: 62px; }
@media (max-width: 600px) { .lg-hwb { height: 40px; } .lg-ik { height: 34px; } .lg-soi { height: 50px; } .logos li { gap: 22px; } .logos { gap: 18px 22px; } }

/* ---------- Work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip { position: relative; border: 1.5px solid var(--rule); background: transparent; color: var(--ink); border-radius: 999px; padding: 9px 18px; font: 600 14px var(--body); cursor: pointer; transition: background .35s var(--ease), color .35s, border-color .35s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--nur); }
.chip span { opacity: .55; font-weight: 500; margin-left: 5px; font-variant-numeric: tabular-nums; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; }
.tile { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.tile .frame { position: relative; display: block; overflow: hidden; border-radius: 6px; background: var(--navy-2); isolation: isolate; }
.tile img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.tile .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(250, 243, 134, .28) 50%, transparent 65%); transform: translateX(-120%); transition: transform 1.1s var(--ease); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.045); }
.tile:hover .frame::after, .tile:focus-visible .frame::after { transform: translateX(120%); }
.tile.feature { grid-column: span 2; grid-row: span 2; }
.tile.feature img { aspect-ratio: 4 / 5.3; }
.tile.wide { grid-column: span 2; }
.tile.wide img, .tile.wide .logo-card { aspect-ratio: 16 / 9; }
.tile .cap { display: block; padding: 14px 2px 0; }
.tile .cap b { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.tile .cap small { font-size: 12.5px; color: var(--slate); }
.tile.feature .cap b { font-family: var(--display); font-weight: 400; font-size: 28px; }
.play { position: absolute; left: 16px; bottom: 16px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: var(--nur); display: grid; place-items: center; box-shadow: 0 0 0 0 var(--nur-glow); transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.play svg { width: 16px; height: 16px; margin-left: 3px; fill: var(--navy); }
.tile:hover .play { box-shadow: 0 0 0 10px rgba(250, 243, 134, .22); transform: scale(1.06); }
.logo-card { display: grid; place-items: center; text-align: center; padding: 24px; font-family: var(--display); font-size: 28px; line-height: 1.15; color: var(--white); background: radial-gradient(circle at 50% 40%, #2C4A66, var(--night)); }
.tile[hidden] { display: none; }
.tile.pop { animation: pop .7s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Services ---------- */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy-line); }
.service { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, .6fr); gap: 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--navy-line); }
.service::before { content: ""; position: absolute; inset: 0 -24px; background: linear-gradient(90deg, var(--nur-faint), transparent 70%); opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.service:hover::before { opacity: 1; }
.service svg { width: 30px; height: 30px; fill: none; stroke: var(--nur); stroke-width: 1.2; transition: transform 1.2s var(--ease); }
.service:hover svg { transform: rotate(45deg); }
.service h3 { font-size: 30px; transition: transform .5s var(--ease); }
.service:hover h3 { transform: translateX(6px); }
.service p { color: var(--mist); font-size: 15px; }
.service .from { justify-self: end; font-size: 14px; font-weight: 600; color: var(--nur); white-space: nowrap; }

/* ---------- Standards ---------- */
.standards { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; align-items: start; }
.standards .sticky { position: sticky; top: 120px; }
.rules { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rules li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 20px; padding: 32px 0; border-top: 1px solid var(--rule); }
.rules li:last-child { border-bottom: 1px solid var(--rule); }
.rules svg { margin-top: 8px; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.3; }
.rules b { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--ink); margin-bottom: 6px; }
.rules p { color: var(--slate); max-width: 52ch; }

/* ---------- Process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.process::before, .process::after { content: ""; position: absolute; left: 11px; right: 11px; top: 11px; height: 1px; background: var(--navy-line); }
.process::after { background: linear-gradient(90deg, var(--nur), var(--nur) 85%, rgba(250, 243, 134, 0)); box-shadow: 0 0 12px var(--nur-glow); transform-origin: left; }
.process li { position: relative; padding-top: 52px; }
.process li svg { position: absolute; top: 0; left: 0; width: 23px; height: 23px; fill: var(--night); stroke: var(--nur); stroke-width: 1.3; z-index: 1; }
.process b { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; margin-bottom: 8px; }
.process p { color: var(--mist); font-size: 14.5px; }
.process small { display: block; font-size: 11px; letter-spacing: .18em; color: var(--nur); margin-bottom: 6px; }

/* ---------- Pricing ---------- */
.price-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: end; justify-content: space-between; margin-bottom: 56px; }
.currency { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--rule); border-radius: 999px; padding: 4px; background: var(--white); }
.currency::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ink); transition: transform .5s var(--ease); }
.currency.pkr::before { transform: translateX(100%); }
.currency button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 20px; font: 600 14px var(--body); color: var(--slate); cursor: pointer; transition: color .4s; }
.currency button[aria-pressed="true"] { color: var(--nur); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 34px 26px 28px; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(33, 59, 82, .35); }
.plan.pick { background: var(--navy); border-color: var(--navy); color: var(--white); }
.plan.pick h3, .plan.pick .amount { color: var(--white); }
.plan.pick li { color: var(--mist); }
.plan .tag { position: absolute; top: -12px; left: 26px; background: var(--nur); color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan.pick::before { content: ""; position: absolute; left: 50%; top: 0; width: 70%; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--nur), transparent); box-shadow: 0 0 18px 2px var(--nur-glow); }
.amount { font-family: var(--display); font-size: 48px; line-height: 1; margin: 18px 0 4px; color: var(--ink); font-variant-numeric: tabular-nums; perspective: 400px; }
.amount .v { display: inline-block; }
.amount .v.flip { animation: flip .55s var(--ease); }
@keyframes flip { 0% { transform: rotateX(0); opacity: 1; } 45% { transform: rotateX(90deg); opacity: 0; } 55% { transform: rotateX(-90deg); opacity: 0; } 100% { transform: rotateX(0); opacity: 1; } }
.amount small { font-family: var(--body); font-size: 14px; color: var(--slate); }
.plan.pick .amount small { color: var(--mist); }
.plan ul { list-style: none; margin: 24px 0 28px; padding: 0; font-size: 14.5px; flex: 1; display: grid; gap: 10px; align-content: start; }
.plan li { display: flex; gap: 10px; align-items: baseline; color: var(--slate); }
.plan li::before { content: ""; flex: none; width: 7px; height: 7px; border: 1.2px solid var(--nur-deep); transform: rotate(45deg) translateY(-2px); }
.plan .btn { justify-content: center; }
.offers { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.offer { position: relative; overflow: hidden; background: var(--night); color: var(--white); border-radius: 8px; padding: 26px 28px; }
.offer b { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--nur); margin-bottom: 6px; }
.offer p { color: var(--mist); font-size: 14.5px; position: relative; }
.offer .geo { opacity: .08; color: var(--nur); }
.offer .geo rect { fill: url(#girih); }
.fine { margin-top: 22px; font-size: 13px; color: var(--slate); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 80px; align-items: center; }
.nur-word { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 460px; }
.nur-word .ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--nur); stroke-width: .6; opacity: .45; animation: spin 90s linear infinite; }
.nur-word span { font-family: var(--arabic); font-size: clamp(120px, 15vw, 210px); line-height: 1; color: var(--nur); text-shadow: 0 0 30px var(--nur-glow), 0 0 90px rgba(250, 243, 134, .18); animation: breathe 6s ease-in-out infinite; }
.nur-word small { position: absolute; bottom: 14%; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--mist); }
@keyframes spin { to { transform: rotate(360deg); } }
.about p { color: var(--mist); max-width: 56ch; margin-top: 18px; }
.facts { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--navy-line); }
.facts div { padding: 22px 0; border-bottom: 1px solid var(--navy-line); }
.facts div:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--navy-line); }
.facts div:nth-child(even) { padding-left: 24px; }
.facts b { display: block; font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1.1; color: var(--nur); font-variant-numeric: tabular-nums; }
.facts span { font-size: 14px; color: var(--mist); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 24px 0; font-weight: 600; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 14px; height: 14px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--ink); transition: transform .45s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .ans { color: var(--slate); max-width: 62ch; padding-bottom: 24px; }
.faq details[open] .ans { animation: fade-up .5s var(--ease); }

/* ---------- Contact ---------- */
.contact-sec { overflow: hidden; }
.contact-sec .geo { opacity: .06; color: var(--nur); }
.contact-sec .geo rect { fill: url(#girih); }
.contact { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.reach { display: grid; gap: 22px; margin-top: 40px; }
.reach div { display: grid; gap: 2px; padding-left: 20px; border-left: 1px solid var(--nur); }
.reach small { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); }
.reach a, .reach span { font-size: 19px; font-weight: 600; text-decoration: none; }
.reach a:hover { color: var(--nur); }
form { background: var(--white); color: var(--text); border-radius: 10px; padding: 36px; display: grid; gap: 18px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink); }
input, select, textarea { font: 15px var(--body); padding: 13px 15px; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--pearl); color: var(--text); width: 100%; transition: border-color .3s, background .3s, box-shadow .3s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 4px rgba(33, 59, 82, .08); }
textarea { min-height: 130px; resize: vertical; }
form .btn { justify-content: center; }
.form-note { font-size: 12.5px; color: var(--slate); }

footer { background: var(--night); color: var(--mist); padding-block: 40px; font-size: 14px; border-top: 1px solid var(--navy-line); }
footer .wrap { padding-right: max(92px, env(safe-area-inset-right, 0px)); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer a { text-decoration: none; }
footer a:hover { color: var(--nur); }

/* ---------- Viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 60; background: rgba(8, 15, 22, .94); backdrop-filter: blur(6px); display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); animation: fade-up .4s var(--ease); }
.viewer[hidden] { display: none; }
.viewer-box { max-width: min(1000px, 100%); max-height: 100%; display: grid; gap: 14px; justify-items: center; }
.viewer-box img { max-height: 82vh; width: auto; border-radius: 6px; }
.viewer-box iframe { width: min(420px, 90vw); aspect-ratio: 9 / 16; max-height: 78vh; border: 0; border-radius: 8px; background: #000; }
.viewer-box iframe.landscape { width: min(960px, 90vw); aspect-ratio: 16 / 9; }
.viewer-meta { color: var(--white); font-size: 14px; text-align: center; }
.viewer-meta a { color: var(--nur); }
.viewer-close { position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--nur); color: var(--navy); font-size: 26px; line-height: 1; cursor: pointer; }

.wa-float { position: fixed; right: calc(22px + env(safe-area-inset-right, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 45; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(0, 0, 0, .3); transition: transform .4s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Legal page */
.legal { max-width: 760px; padding-block: 150px 110px; }
.legal h1 { font-size: 56px; margin-bottom: 10px; }
.legal h2 { font-size: 28px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--slate); }
.legal p + p { margin-top: 12px; }

/* ---------- Scroll-linked motion (browsers that support it; others show everything still) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .reveal-scale { animation: reveal-scale linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .grid .tile { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .service, .rules li, .process li, .plan, .faq details { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .process::after { animation: grow linear both; animation-timeline: view(); animation-range: entry 40% cover 55%; }
    .band li { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    .hero-grid { animation: hero-out linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes reveal-scale { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hero-out { to { transform: translateY(80px); opacity: .25; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-pattern { opacity: .09; }
  .mihrab-glow { opacity: 1; transform: translate(-50%, -38%) scale(1); }
  .lamp { transform: scale(1); }
  .arch-line path { stroke-dashoffset: 0; }
  .arch-window img:first-child { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 44px; }
  .process::before, .process::after { display: none; }
  .service { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.2fr); }
  .service .from { grid-column: 2 / -1; justify-self: start; }
}
@media (max-width: 860px) {
  section { padding-block: 88px; }
  .nav ul, .nav .btn { display: none; }
  .menu-btn { display: block; }
  .nav.open ul { display: grid; position: absolute; top: 80px; left: 0; right: 0; background: var(--night); padding: 8px max(24px, env(safe-area-inset-right, 0px)) 28px max(24px, env(safe-area-inset-left, 0px)); gap: 0; border-bottom: 1px solid var(--navy-line); }
  .nav.open ul a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--navy-line); }
  .nav.open ul a::after { display: none; }
  .site-header:has(.nav.open) { background: var(--night); }
  .hero { padding-block: 120px 90px; min-height: 0; }
  .hero-grid, .standards, .about, .contact, .faq-grid, .head { grid-template-columns: minmax(0, 1fr); }
  .head .lead { justify-self: start; }
  .hero-grid { gap: 72px; }
  .mihrab { width: min(78%, 360px); }
  .standards, .about, .faq-grid, .contact { gap: 48px; }
  .standards .sticky { position: static; }
  .nur-word { max-width: 320px; margin: 0 auto; }
  .service { grid-template-columns: 36px minmax(0, 1fr); gap: 8px 18px; }
  .service p, .service .from { grid-column: 2; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tile.feature .cap b { font-size: 22px; }
  .plans, .offers, .row2, .process { grid-template-columns: minmax(0, 1fr); }
  .facts div:nth-child(odd) { border-right: 0; padding-right: 0; }
  .facts div:nth-child(even) { padding-left: 0; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  form { padding: 24px; }
  .band li { font-size: 20px; gap: 18px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
