/* ==========================================================================
   Shabrang Films — site styles
   Visual system adapted from the Gojett (Framer) template: extra-condensed
   display type, mono UI labels, hairline grid cells, bone "journal" bands.
   Brand accent (mango #FFB703) carried over from the current Shabrang site.
   ========================================================================== */

:root {
  --bg: #0e0e0e;
  --bg-2: #151515;
  --bg-3: #1c1c1c;
  --bone: #edeae3;
  --bone-2: #e2ded5;
  --ink: #0e0e0e;
  --text: #edeae3;
  --text-dim: rgba(237, 234, 227, .64);
  --text-mute: rgba(237, 234, 227, .42);
  --line: rgba(237, 234, 227, .14);
  --line-strong: rgba(237, 234, 227, .3);
  --line-ink: rgba(14, 14, 14, .16);
  --mango: #ffb703;
  --mango-hi: #ffc83b;
  --danger: #ff5a4e;
  --ok: #4fd18b;

  --f-display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --f-body: "Sofia Sans", system-ui, -apple-system, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", monospace;
  --f-naskh: "Noto Naskh Arabic", serif;

  --g: 24px;
  --hdr: 64px;
  --sec: clamp(80px, 10vw, 168px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
@media (max-width: 767px) {
  :root { --g: 16px; --hdr: 58px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, fieldset, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--mango); outline-offset: 3px; }
::selection { background: var(--mango); color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--mango); color: var(--ink); padding: 12px 16px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; }
.skip:focus { left: var(--g); }

/* ---------- Type ---------- */
.display { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: .86; letter-spacing: -.004em; }
.fit { display: block; white-space: nowrap; font-size: clamp(56px, 14vw, 260px); }
.h-xl { font-size: clamp(56px, 10vw, 168px); }
.h-l { font-size: clamp(44px, 6.4vw, 108px); }
.h-m { font-size: clamp(36px, 4vw, 68px); }
.h-s { font-size: clamp(28px, 2.4vw, 38px); line-height: .92; }
.mono { font-family: var(--f-mono); font-size: 12px; line-height: 1.6; letter-spacing: .04em; text-transform: uppercase; }
.mono-body { font-family: var(--f-mono); font-size: 12.5px; line-height: 1.8; }
.label { display: inline-block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); }
.label::before { content: "[ "; }
.label::after { content: " ]"; }
.lead { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; max-width: 44ch; }
.body-l { font-size: clamp(17px, 1.2vw, 19px); line-height: 1.6; }
.dim { color: var(--text-dim); }
.mango { color: var(--mango); }
.prose p + p { margin-top: 1em; }
.prose a { text-decoration: underline; text-decoration-color: var(--mango); text-underline-offset: 3px; }

/* ---------- Layout ---------- */
.wrap { padding-inline: var(--g); }
.sec { padding-block: var(--sec); }
.sec--tight { padding-block: clamp(56px, 7vw, 112px); }
.sec-head { margin-bottom: clamp(32px, 4vw, 64px); }
.sec-head .label { margin-bottom: clamp(12px, 1.5vw, 20px); }
.sec-head__row { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: var(--g); align-items: end; margin-top: clamp(20px, 2.4vw, 36px); }
@media (max-width: 899px) { .sec-head__row { grid-template-columns: 1fr; } }
.rule { border-top: 1px solid var(--line); }

/* hairline grid: 1px gaps reveal the line colour */
.cells { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cells > * { background: var(--bg); }
.bone .cells { background: var(--line-ink); border-color: var(--line-ink); }
.bone .cells > * { background: var(--bone); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 22px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--text);
  transition: background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--bone); }
.btn .arr { width: 12px; height: 12px; flex-shrink: 0; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translate(2px, -2px); }
.btn--mango { background: var(--mango); border-color: var(--mango); color: var(--ink); }
.btn--mango:hover { background: var(--mango-hi); border-color: var(--mango-hi); }
.btn--bone { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.btn--lg { min-height: 60px; padding: 0 28px; font-size: 13px; }
.btn--block { width: 100%; }
.bone .btn { border-color: var(--line-ink); color: var(--ink); }
.bone .btn:hover { border-color: var(--ink); }
.bone .btn--ink { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) {
  .btn-row--stack .btn { width: 100%; }
  .btn { white-space: normal; text-align: center; padding-block: 12px; }
}

/* text-roll hover (template nav effect) */
.roll__clip { display: inline-block; overflow: hidden; height: 1.4em; line-height: 1.4em; vertical-align: middle; }
.roll__clip > span { display: block; position: relative; transition: transform .45s var(--ease); }
.roll__clip > span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; }
.roll:hover .roll__clip > span, .roll:focus-visible .roll__clip > span { transform: translateY(-100%); }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60; display: flex; height: var(--hdr);
  background: rgba(14, 14, 14, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr__logo { display: flex; align-items: center; padding: 0 var(--g); border-right: 1px solid var(--line); flex-shrink: 0; }
.hdr__logo img { height: 38px; width: auto; }
.hdr__fill { flex: 1; }
.hdr__now {
  display: flex; align-items: center; gap: 12px; padding: 0 20px; border-left: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; color: var(--text-dim); white-space: nowrap; transition: color .25s;
}
.hdr__now:hover { color: var(--text); }
.hdr__now b { font-weight: 400; color: var(--text); }
.hdr__thumb { width: 32px; height: 32px; flex-shrink: 0; overflow: hidden; }
.hdr__thumb .poster { width: 100%; height: 100%; }
.hdr__nav { display: flex; }
.hdr__nav a {
  display: flex; align-items: center; padding: 0 clamp(14px, 1.45vw, 24px); border-left: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.4;
}
.hdr__nav a[aria-current="page"] { color: var(--mango); }
.hdr__cta {
  display: flex; align-items: center; gap: 10px; padding: 0 clamp(16px, 1.6vw, 26px);
  background: var(--mango); color: var(--ink);
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  transition: background .25s;
}
.hdr__cta:hover { background: var(--mango-hi); }
.hdr__cta .arr { width: 11px; height: 11px; }
.hdr__burger { display: none; align-items: center; justify-content: center; width: var(--hdr); border-left: 1px solid var(--line); }
.hdr__burger span { position: relative; width: 20px; height: 1.5px; background: var(--text); transition: background .2s; }
.hdr__burger span::before, .hdr__burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
.hdr__burger span::before { top: -6px; }
.hdr__burger span::after { top: 6px; }
.menu-open .hdr__burger span { background: transparent; }
.menu-open .hdr__burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .hdr__burger span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1365px) { .hdr__now { display: none; } }
@media (max-width: 1099px) {
  .hdr__nav { display: none; }
  .hdr__burger { display: flex; }
}
@media (max-width: 420px) {
  .hdr__logo img { height: 32px; }
  .hdr__cta .cta-long { display: none; }
}
@media (min-width: 421px) { .hdr__cta .cta-short { display: none; } }

/* mobile menu */
.menu {
  position: fixed; top: var(--hdr); left: 0; right: 0; bottom: 0; z-index: 59;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 8px var(--g) calc(24px + env(safe-area-inset-bottom));
  background: var(--bg); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.menu-open .menu { opacity: 1; visibility: visible; transform: none; }
.menu-open { overflow: hidden; }
.menu__link {
  display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(42px, 11vw, 76px); line-height: .95;
}
.menu__link small { font-family: var(--f-mono); font-weight: 400; font-size: 11px; color: var(--text-mute); letter-spacing: .04em; }
.menu__link[aria-current="page"] { color: var(--mango); }
.menu__foot { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Hero (home) ---------- */
.hero__title { padding-block: clamp(14px, 1.8vw, 26px); }
.hero__frame { position: relative; height: clamp(500px, calc(100svh - var(--hdr) - 19vw), 840px); overflow: hidden; background: #0b0907; }
.hero__art { position: absolute; inset: 0; }
.hero__art svg { width: 100%; height: 100%; transform-origin: 70% 60%; }
@media (prefers-reduced-motion: no-preference) {
  .hero__art svg { animation: drift 28s ease-in-out infinite alternate; }
}
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.09) translateX(-1.2%); } }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 6, 5, .9) 0%, rgba(8, 6, 5, .62) 34%, rgba(8, 6, 5, 0) 68%),
    linear-gradient(0deg, rgba(8, 6, 5, .55) 0%, rgba(8, 6, 5, 0) 45%);
}
.hero__copy { position: absolute; left: clamp(20px, 3.4vw, 56px); right: clamp(20px, 3.4vw, 56px); bottom: clamp(24px, 3.4vw, 56px); max-width: 660px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mango); flex-shrink: 0; }
.dot--rec { background: #ff3b30; }
@media (prefers-reduced-motion: no-preference) { .dot--blink { animation: blink 1.4s steps(2, start) infinite; } }
@keyframes blink { to { visibility: hidden; } }
.hero__h { font-size: clamp(46px, 5.6vw, 96px); }
.hero__lead { margin: 18px 0 28px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: rgba(237, 234, 227, .86); max-width: 48ch; }
@media (max-width: 767px) {
  .hero__frame { height: auto; min-height: calc(100svh - var(--hdr) - 24vw); display: flex; align-items: flex-end; }
  .hero__copy { position: relative; left: auto; right: auto; bottom: auto; width: 100%; max-width: none; padding: 120px 20px 28px; }
  .hero__scrim { background: linear-gradient(0deg, rgba(8, 6, 5, .96) 0%, rgba(8, 6, 5, .75) 45%, rgba(8, 6, 5, .1) 80%); }
  .hero__art svg { transform-origin: 72% 50%; }
}

/* viewfinder overlay */
.vf { position: absolute; inset: clamp(12px, 1.8vw, 26px); pointer-events: none; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(237, 234, 227, .82); }
.vf__c { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(237, 234, 227, .7); }
.vf__c--tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.vf__c--tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.vf__c--bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.vf__c--br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.vf__tl, .vf__tr, .vf__br { position: absolute; display: flex; align-items: center; gap: 8px; }
.vf__tl { top: 6px; left: 30px; }
.vf__tr { top: 6px; right: 30px; }
.vf__br { bottom: 6px; right: 30px; }
@media (max-width: 767px) { .vf__br { display: none; } .vf__tl { left: 26px; } .vf__tr { right: 26px; } }

/* audience router */
.router { grid-template-columns: repeat(5, 1fr); margin-top: var(--g); }
.router a { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 24px; min-height: 168px; transition: background .3s, color .3s; }
.router a:hover { background: var(--bone); color: var(--ink); }
.router a:hover .router__d, .router a:hover .router__n { color: rgba(14, 14, 14, .62); }
.router__n { color: var(--text-mute); }
.router__t { margin-top: auto; font-size: clamp(28px, 2.3vw, 38px); }
.router__d { font-family: var(--f-mono); font-size: 11.5px; line-height: 1.6; color: var(--text-dim); }
.router .arr { position: absolute; top: 22px; right: 20px; width: 14px; height: 14px; transition: transform .3s var(--ease); }
.router a:hover .arr { transform: translate(3px, -3px); }
.router a.is-primary .router__n { color: var(--mango); }
@media (max-width: 1099px) {
  .router { grid-template-columns: repeat(2, 1fr); }
  .router a:first-child { grid-column: span 2; }
}
@media (max-width: 599px) {
  .router { grid-template-columns: 1fr; }
  .router a:first-child { grid-column: auto; }
  .router a { min-height: 0; padding: 18px 16px; }
  .router__t { margin-top: 4px; }
}

/* proof strip */
.proof { grid-template-columns: repeat(5, 1fr); }
.proof > div { padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.proof__n { font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 4.6vw, 80px); line-height: .85; text-transform: uppercase; }
.proof__t { font-family: var(--f-mono); font-size: 11.5px; line-height: 1.6; color: var(--text-dim); }
.proof__t b { color: var(--text); font-weight: 500; }
@media (max-width: 1099px) { .proof { grid-template-columns: repeat(2, 1fr); } .proof > div:first-child { grid-column: span 2; } }
@media (max-width: 479px) { .proof__n { font-size: 52px; } }

/* ---------- Intro (template 3-col) ---------- */
.intro { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: var(--g); align-items: stretch; }
.intro__a { display: flex; flex-direction: column; gap: 18px; max-width: 34ch; }
.intro__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-2); }
.intro__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.05); }
.intro__img figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent); }
.intro__c { display: flex; flex-direction: column; justify-content: flex-end; gap: 20px; max-width: 36ch; }
@media (max-width: 899px) {
  .intro { grid-template-columns: 1fr 1fr; }
  .intro__img { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
}
@media (max-width: 599px) { .intro { grid-template-columns: 1fr; } .intro__img { aspect-ratio: 4 / 5; } }

/* ---------- Service rows ---------- */
.svc { border-top: 1px solid var(--line); }
.svc__row { display: grid; grid-template-columns: 72px minmax(0, 1.35fr) minmax(0, 1fr) auto; gap: var(--g); align-items: start; padding: clamp(26px, 3vw, 44px) var(--g); border-bottom: 1px solid var(--line); transition: background .35s; }
.svc__row:hover { background: var(--bg-2); }
.svc__n { color: var(--text-mute); padding-top: .5em; }
.svc__t { font-size: clamp(40px, 4.6vw, 80px); }
.svc__tag { display: inline-block; margin-bottom: 12px; color: var(--mango); }
.svc__d { display: flex; flex-direction: column; gap: 16px; color: var(--text-dim); }
.svc__go { align-self: center; }
@media (max-width: 1099px) {
  .svc__row { grid-template-columns: 56px 1fr; }
  .svc__d, .svc__go { grid-column: 2; }
  .svc__go { justify-self: start; }
}
@media (max-width: 599px) {
  .svc__row { grid-template-columns: 1fr; gap: 14px; }
  .svc__d, .svc__go { grid-column: auto; }
  .svc__n { padding-top: 0; }
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line-strong); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text); line-height: 1.4; }
.chip--mango { border-color: var(--mango); color: var(--mango); }
.chip--solid { background: var(--mango); border-color: var(--mango); color: var(--ink); }
.bone .chip { border-color: var(--line-ink); color: var(--ink); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(10px, 1.6vw, 22px); }
.marquee__track { display: flex; width: max-content; }
@media (prefers-reduced-motion: no-preference) { .marquee__track { animation: mq 42s linear infinite; } }
.marquee__track span { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(72px, 12.5vw, 220px); line-height: .9; white-space: nowrap; padding-right: .3em; }
.marquee__track i { font-style: normal; color: var(--mango); padding-right: .3em; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- Posters / film cards ---------- */
.poster { position: relative; overflow: hidden; background: var(--p-bg, #111); isolation: isolate; }
.poster > svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.poster::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.slate { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
.film-card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.film-card .poster { aspect-ratio: 4 / 5; }
.film-card:hover .poster > svg { transform: scale(1.045); }
.film-card__top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: clamp(16px, 1.8vw, 26px); }
.film-card__title { font-size: clamp(44px, 4.4vw, 84px); }
.film-card__status { flex-shrink: 0; }
.film-card__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.film-card__meta { color: var(--text-dim); }
.film-card__log { color: var(--text-dim); font-size: 15.5px; line-height: 1.5; max-width: 46ch; }
.film-card--wide { grid-column: 1 / -1; }
.film-card--wide .poster { aspect-ratio: 21 / 9; }
.film-card--wide .film-card__title { font-size: clamp(64px, 11vw, 200px); }
.film-card--wide .film-card__bottom { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: clamp(16px, 2.2vw, 32px); background: linear-gradient(0deg, rgba(0, 0, 0, .72), transparent); }
.film-card--wide .film-card__bottom p { max-width: 54ch; color: rgba(237, 234, 227, .86); }
@media (max-width: 1099px) { .slate { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .film-card__top { flex-wrap: wrap; }
  .film-card--wide .poster { aspect-ratio: 4 / 5; }
  .film-card--wide .film-card__title { font-size: clamp(52px, 16vw, 96px); }
  .film-card--wide .film-card__bottom { position: static; flex-direction: column; align-items: flex-start; padding: 18px 0 0; background: none; }
}
@media (max-width: 599px) { .slate { grid-template-columns: 1fr; } }

.bar-link {
  display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 76px; margin-top: var(--g);
  border: 1px solid var(--line); font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 2.6vw, 40px); text-transform: uppercase;
  transition: background .3s, color .3s, border-color .3s;
}
.bar-link:hover { background: var(--mango); color: var(--ink); border-color: var(--mango); }
.bar-link .arr { width: 18px; height: 18px; }

/* ---------- Steps ---------- */
.steps { grid-template-columns: repeat(5, 1fr); }
.steps > li { display: flex; flex-direction: column; gap: 14px; padding: 24px 20px 28px; min-height: 240px; }
.steps__n { font-family: var(--f-display); font-weight: 800; font-size: 64px; line-height: .8; color: var(--mango); }
.steps__t { font-size: clamp(30px, 2.4vw, 40px); margin-top: auto; }
.steps__d { font-size: 15.5px; line-height: 1.5; color: var(--text-dim); }
@media (max-width: 1099px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps > li:last-child { grid-column: span 2; } .steps > li { min-height: 0; } }
@media (max-width: 599px) { .steps { grid-template-columns: 1fr; } .steps > li:last-child { grid-column: auto; } }

/* generic card grid */
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.2vw, 32px); }
.card__n { color: var(--text-mute); }
.card__t { font-size: clamp(30px, 2.5vw, 42px); }
.card__d { color: var(--text-dim); font-size: 16px; line-height: 1.55; }
.card ul.ticks { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.ticks li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--mango); }
.bone .card__d { color: rgba(14, 14, 14, .7); }
.bone .card__n { color: rgba(14, 14, 14, .5); }
@media (max-width: 1099px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-3 > :last-child:nth-child(odd) { grid-column: span 2; } }
@media (max-width: 599px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } .grid-3 > :last-child:nth-child(odd) { grid-column: auto; } }

/* ---------- Bone band + journal-style list ---------- */
.bone { background: var(--bone); color: var(--ink); }
.bone .label { color: rgba(14, 14, 14, .58); }
.bone .dim { color: rgba(14, 14, 14, .64); }
.list { border-top: 1px solid var(--line-ink); }
.list-row { display: grid; grid-template-columns: 120px minmax(0, 1.25fr) minmax(0, 1fr) 44px; gap: var(--g); align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line-ink); }
.list-row__date { color: rgba(14, 14, 14, .6); }
.list-row__t { font-size: clamp(30px, 3vw, 50px); transition: transform .4s var(--ease); }
.list-row__x { font-family: var(--f-mono); font-size: 12px; line-height: 1.75; color: rgba(14, 14, 14, .72); }
.circ { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-ink); transition: background .3s, color .3s, border-color .3s; }
.circ .arr { width: 12px; height: 12px; }
.list-row:hover .list-row__t { transform: translateX(10px); }
.list-row:hover .circ { background: var(--ink); color: var(--bone); border-color: var(--ink); }
@media (max-width: 899px) {
  .list-row { grid-template-columns: 1fr 44px; gap: 8px 16px; }
  .list-row__date { grid-column: 1 / -1; }
  .list-row__x { grid-column: 1; }
  .list-row .circ { grid-row: 2 / span 2; grid-column: 2; align-self: center; }
}

/* ---------- Award band ---------- */
.award { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 4vw, 64px); align-items: center; }
.award__n { font-family: var(--f-display); font-weight: 900; font-size: clamp(120px, 18vw, 300px); line-height: .78; color: var(--mango); text-transform: uppercase; }
.award__n sup { font-size: .32em; vertical-align: top; position: relative; top: .25em; margin-left: .04em; }
@media (max-width: 899px) { .award { grid-template-columns: 1fr; } }

/* ---------- Locations ---------- */
.loc { display: flex; flex-direction: column; }
.loc .poster { aspect-ratio: 16 / 10; }
.loc__body { display: flex; flex-direction: column; gap: 10px; padding: 22px clamp(20px, 2vw, 28px) 28px; }
.loc__t { font-size: clamp(30px, 2.6vw, 44px); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(20px, 2vw, 28px) 0; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 2.4vw, 38px); line-height: 1;
}
.faq summary::-webkit-details-marker { display: none; }
.pm { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: 10px; width: 22px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.pm::after { transform: rotate(90deg); }
details[open] > summary .pm::after { transform: rotate(0); }
.faq .ans { padding: 0 0 28px; max-width: 72ch; color: var(--text-dim); font-size: 17px; }
.faq summary:hover { color: var(--mango); }

/* ---------- Page hero (inner pages) ---------- */
.phero { padding-top: clamp(20px, 2.4vw, 36px); padding-bottom: clamp(48px, 6vw, 96px); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; color: var(--text-mute); margin-bottom: clamp(16px, 2vw, 28px); }
.crumbs a:hover { color: var(--text); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-top: clamp(24px, 3vw, 44px); }
.phero__side { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 899px) { .phero__grid { grid-template-columns: 1fr; } }
.stat-row { grid-template-columns: repeat(4, 1fr); margin-top: clamp(32px, 4vw, 56px); }
.stat-row > div { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.stat-row .proof__n { font-size: clamp(44px, 4vw, 68px); }
@media (max-width: 767px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Films page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); }
.filters button { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line-strong); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s; }
.filters button sup { font-size: 10px; color: var(--text-mute); }
.filters button:hover { border-color: var(--bone); }
.filters button[aria-pressed="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.filters button[aria-pressed="true"] sup { color: rgba(14, 14, 14, .6); }
.film-row { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(24px, 3vw, 56px); padding-block: clamp(28px, 3vw, 48px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--hdr) + 16px); }
.film-row:last-child { border-bottom: 1px solid var(--line); }
.film-row[hidden] { display: none; }
.film-row .poster { aspect-ratio: 4 / 5; }
.film-row__body { display: flex; flex-direction: column; gap: 18px; }
.film-row__t { font-size: clamp(56px, 7vw, 120px); }
.film-row__credit { color: var(--text-dim); }
.film-row__log { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.5; max-width: 52ch; }
.spec { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spec > div { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.spec dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-mute); }
.spec dd { font-size: 15.5px; line-height: 1.35; }
@media (max-width: 1099px) { .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.film-row:target { background: linear-gradient(90deg, rgba(255, 183, 3, .07), transparent 60%); }
.credits { margin-top: 4px; }
.credits summary { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.credits summary::-webkit-details-marker { display: none; }
.credits .pm { width: 14px; height: 14px; }
.credits .pm::before, .credits .pm::after { width: 14px; top: 6px; }
.credits dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin-top: 16px; font-size: 15.5px; }
.credits dt { color: var(--text-mute); font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding-top: 3px; }
@media (max-width: 899px) { .film-row { grid-template-columns: 1fr; } .film-row .poster { aspect-ratio: 16 / 11; } }

.arch { grid-template-columns: repeat(3, 1fr); }
.arch__bar { position: relative; height: 6px; background: var(--line); margin: 12px 0 8px; }
.arch__bar span { position: absolute; top: 0; bottom: 0; background: var(--mango); }
@media (max-width: 899px) { .arch { grid-template-columns: 1fr; } }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.founder__img { position: sticky; top: calc(var(--hdr) + 24px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.founder__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .founder { grid-template-columns: 1fr; } .founder__img { position: relative; top: 0; } }
.quote { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 3vw, 48px); line-height: .98; border-left: 3px solid var(--mango); padding-left: 20px; }

/* ---------- Forms ---------- */
.intake-wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
@media (max-width: 1023px) { .intake-wrap { grid-template-columns: 1fr; } }
.intake { display: flex; flex-direction: column; gap: 36px; }
.intake__step { display: flex; flex-direction: column; gap: 16px; }
.intake__legend { display: flex; align-items: baseline; gap: 12px; padding: 0 0 18px; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 2.4vw, 38px); line-height: 1; }
.intake__legend small { font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: .04em; color: var(--mango); }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.type-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 18px; background: var(--bg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s, color .2s; }
.type-card:hover { background: var(--bg-2); }
.type-card input { position: absolute; opacity: 0; pointer-events: none; }
.type-card__t { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: .95; padding-right: 22px; }
.type-card__d { font-size: 13.5px; line-height: 1.45; color: var(--text-dim); }
.type-card::after { content: ""; position: absolute; top: 16px; right: 14px; width: 12px; height: 12px; border: 1px solid var(--line-strong); border-radius: 50%; }
.type-card.is-checked { background: var(--mango); color: var(--ink); }
.type-card.is-checked .type-card__d { color: rgba(14, 14, 14, .72); }
.type-card.is-checked::after { background: var(--ink); border-color: var(--ink); }
.type-card:focus-within { outline: 2px solid var(--mango); outline-offset: -3px; }
.type-card.is-checked:focus-within { outline-color: var(--ink); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields .span-2 { grid-column: 1 / -1; }
@media (max-width: 599px) { .fields { grid-template-columns: 1fr; } .fields .span-2 { grid-column: auto; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field[hidden] { display: none; }
.field label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim); }
.field label em { font-style: normal; color: var(--text-mute); text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-strong); color: var(--text); border-radius: 0;
  font-family: var(--f-body); font-size: 16px; line-height: 1.4; padding: 14px 16px; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23edeae3' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mango); box-shadow: 0 0 0 1px var(--mango); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--danger); }
.field__meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .03em; color: var(--text-mute); }
.field__err { color: var(--danger); }
.type-err { font-family: var(--f-mono); font-size: 11px; color: var(--danger); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.intake__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.intake__note { font-family: var(--f-mono); font-size: 11px; line-height: 1.6; color: var(--text-mute); max-width: 40ch; }
.intake__status { font-family: var(--f-mono); font-size: 12px; line-height: 1.6; }
.intake__status.is-error { color: var(--danger); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.done { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--mango); }
.done[hidden] { display: none; }
.aside { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); position: sticky; top: calc(var(--hdr) + 24px); }
.aside > div { background: var(--bg); padding: 22px clamp(20px, 2vw, 28px); display: flex; flex-direction: column; gap: 10px; }
.aside ol { counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.aside ol li { counter-increment: s; position: relative; padding-left: 36px; font-size: 15.5px; line-height: 1.5; color: var(--text-dim); }
.aside ol li b { color: var(--text); font-weight: 600; }
.aside ol li::before { content: "0" counter(s); position: absolute; left: 0; top: 2px; font-family: var(--f-mono); font-size: 11px; color: var(--mango); }
@media (max-width: 1023px) { .aside { position: relative; top: 0; } }

/* quick quote (services hero) */
.qq { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.2vw, 32px); border: 1px solid var(--line-strong); background: var(--bg-2); }
.qq__h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.qq .field input, .qq .field textarea { background: var(--bg); }
.qq .field textarea { min-height: 96px; }

/* ---------- Majboori support ---------- */
.upi { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: center; padding: clamp(22px, 3vw, 40px); border: 1px solid var(--mango); background: var(--bg-2); }
.upi__qr { background: #fff; padding: 14px; }
.upi__qr img { width: 100%; height: auto; image-rendering: pixelated; }
.upi__id { display: flex; align-items: stretch; border: 1px solid var(--line-strong); }
.upi__id code { flex: 1; display: flex; align-items: center; padding: 12px 14px; font-family: var(--f-mono); font-size: 14px; overflow-wrap: anywhere; }
.upi__id button { padding: 0 16px; border-left: 1px solid var(--line-strong); font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.upi__id button:hover { background: var(--bone); color: var(--ink); }
@media (max-width: 767px) { .upi { grid-template-columns: 1fr; } .upi__qr { max-width: 280px; } }
.notice { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-left: 3px solid #ff3b30; background: rgba(255, 59, 48, .08); }
.urdu { font-family: var(--f-naskh); direction: rtl; text-align: right; font-size: 19px; line-height: 1.9; }
.ks-letters { font-family: var(--f-naskh); direction: rtl; font-size: clamp(30px, 3.4vw, 54px); line-height: 1.5; letter-spacing: .08em; word-spacing: .25em; color: var(--text-dim); }
.ks-letters b { color: var(--mango); font-weight: 600; }

/* ---------- End CTA + footer ---------- */
.cta-end { padding-top: clamp(96px, 12vw, 200px); padding-bottom: clamp(40px, 5vw, 72px); text-align: center; }
.cta-end .lead { margin: clamp(20px, 2.4vw, 36px) auto 28px; max-width: 50ch; color: var(--text-dim); }
.cta-end .btn-row { justify-content: center; }
.cta-end__meta { margin-top: 28px; color: var(--text-mute); }
.ftr { border-top: 1px solid var(--line); }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: var(--g); padding: clamp(40px, 4vw, 64px) var(--g); }
.ftr__brand { display: flex; flex-direction: column; gap: 18px; max-width: 40ch; }
.ftr__brand img { height: 48px; width: auto; align-self: flex-start; }
.ftr__brand p { font-size: 15px; color: var(--text-dim); }
.ftr__brand p.mono { font-size: 11px; color: var(--mango); }
.ftr h3 { margin-bottom: 14px; color: var(--text-mute); font-weight: 400; }
.ftr ul { display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; }
.ftr ul a { color: var(--text-dim); transition: color .2s; }
.ftr ul a:hover { color: var(--text); }
.ftr__bar { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.ftr__bar > * { display: flex; align-items: center; min-height: 56px; padding: 0 var(--g); }
.ftr__bar > * + * { border-left: 1px solid var(--line); }
.ftr__bar .grow { flex: 1; color: var(--text-mute); }
.ftr__bar a:hover { color: var(--mango); }
@media (max-width: 899px) {
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .ftr__bar { flex-direction: column; }
  .ftr__bar > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .ftr__bar > * { min-height: 48px; }
}

/* sticky mobile CTA */
.mcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 58; display: none; grid-template-columns: 1fr auto; gap: 1px; background: var(--line); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
.mcta a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 20px; background: var(--bg); font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.mcta a.mcta__main { background: var(--mango); color: var(--ink); white-space: nowrap; }
.mcta .arr { width: 12px; height: 12px; flex-shrink: 0; }
.mcta.is-on { transform: none; }
@media (max-width: 1099px) {
  .mcta { display: grid; }
  body.has-mcta .ftr { padding-bottom: 56px; }
}

/* ---------- Reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }

/* utilities */
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: clamp(32px, 4vw, 56px); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } }
.center { text-align: center; }
