/* NKHL — wearable Urdu art */

:root {
  --paper: #f4efe6;
  --paper-deep: #e9e2d4;
  --paper-card: #ebe4d6;
  --ink: #171310;
  --ink-soft: #4a4238;
  --ink-faint: #8a7f70;
  --line: rgba(23, 19, 16, .14);
  --accent: #b0491f;
  --accent-light: #e27c50;
  --on-ink: rgba(244, 239, 230, .72);

  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif;

  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-anchor: none; /* pinned sections toggle position: fixed; anchoring would nudge the scroll */
  -webkit-text-size-adjust: 100%;
}

html.is-loading,
html.is-locked,
html.menu-open { overflow: hidden; }

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 60;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ol, ul { list-style: none; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.urdu {
  font-family: var(--urdu);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  unicode-bidi: isolate;
  line-height: 1.9;
}

/* clip box for line reveals; padding keeps italics and descenders from being cut */
.mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0 .08em .1em;
  margin: 0 -.08em -.1em;
}
.mask > span { display: inline-block; }

/* ---------- shared bits ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 600 11px/1 var(--sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.eyebrow span:first-child::after {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

.section-title {
  margin-top: 20px;
  font: 400 clamp(46px, 7.2vw, 116px)/.95 var(--serif);
  letter-spacing: -.02em;
}

.section-title > .urdu {
  font-size: .4em;
  line-height: 1;
  color: var(--accent);
  margin-inline-start: .35em;
  vertical-align: middle;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: 600 12px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--accent); border-color: var(--accent); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* ---------- intro curtain ---------- */
.loader { display: none; }

.js .loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  background: var(--paper);
}

.loader__mark {
  width: clamp(84px, 10vw, 128px);
  aspect-ratio: 540 / 910;
  background: var(--ink);
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
  animation: draw 1.1s cubic-bezier(.65, 0, .35, 1) .1s both;
}

.loader__line {
  font: 600 11px/1 var(--sans);
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: fade-in .8s ease .8s both;
}

@keyframes draw {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gutter);
  transition: transform .6s var(--ease), background-color .4s, box-shadow .4s, color .4s;
}

.nav.is-scrolled {
  background: rgba(244, 239, 230, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}

.nav.is-hidden { transform: translateY(calc(-100% - 2px)); }

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav__mark {
  width: 15px;
  height: 26px;
  background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}

.nav__word {
  font: 700 14px/1 var(--sans);
  letter-spacing: .45em;
}

.nav__links {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.nav__links a {
  position: relative;
  padding: 8px 0;
  font: 500 12px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: .22em;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}

.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  padding: 11px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: 600 11px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

.nav__cta:hover { background: var(--ink); color: var(--paper); }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  padding: 10px 0;
  font: 600 11px/1 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
}

.nav__toggle-icon {
  position: relative;
  width: 22px;
  height: 10px;
}

.nav__toggle-icon i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}

.nav__toggle-icon i:first-child { top: 0; }
.nav__toggle-icon i:last-child { top: 8.5px; }
.menu-open .nav__toggle-icon i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-open .nav__toggle-icon i:last-child { top: 4.25px; transform: rotate(-45deg); }

.menu-open .nav {
  color: var(--paper);
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 28px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--paper);
}

.menu[hidden] { display: none; }

.menu nav { display: grid; }

.menu nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(244, 239, 230, .14);
  font: 400 clamp(38px, 11vw, 56px)/1.1 var(--serif);
  text-decoration: none;
}

.menu nav a .urdu {
  font-size: 18px;
  line-height: 1.6;
  color: var(--accent-light);
}

.menu__ig {
  font: 600 12px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-ink);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--nav-h) + 10px) var(--gutter) clamp(20px, 3.6vh, 36px);
  overflow: clip;
  isolation: isolate;
}

.hero__kicker {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font: 600 11px/1 var(--sans);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: clamp(10px, 2vh, 24px);
}

.hero__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.2vw, 40px);
  font: 400 clamp(72px, 11.5vw, 216px)/.8 var(--serif);
  letter-spacing: -.035em;
}

.hero__word { position: relative; }
.hero__word--l { top: -.3em; }
.hero__word--r { top: .3em; }

.hero__logo {
  position: relative;
  flex: none;
  display: block;
  height: clamp(250px, 50svh, 560px);
  aspect-ratio: 540 / 910;
  user-select: none;
  -webkit-user-select: none;
}

/* 3D extrusion: stacked masked layers, pushed back by --depth */
.scene {
  position: absolute;
  inset: 0;
  display: block;
  perspective: 1100px;
  perspective-origin: 50% 40%;
}

.stack {
  --depth: 1;
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  will-change: transform;
}

.layer {
  position: absolute;
  inset: 0;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
  backface-visibility: hidden;
  transform: translateZ(calc(var(--i) * var(--depth) * -2.2px));
}

.logo-shadow {
  position: absolute;
  left: 50%;
  bottom: -7%;
  width: 70%;
  height: 26px;
  display: block;
  background: radial-gradient(50% 50% at 50% 50%, rgba(23, 19, 16, .32), rgba(23, 19, 16, 0) 70%);
  transform: translateX(-50%);
  filter: blur(4px);
  will-change: transform, opacity;
}

.hero__sub {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(14px, 3vh, 34px);
}

.hero__urdu {
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.5;
  color: var(--accent);
}

.hero__tag {
  font: italic 400 clamp(18px, 1.6vw, 24px)/1.2 var(--serif);
  color: var(--ink-soft);
}

.hero__sub::before {
  content: "";
  order: 1;
  width: 28px;
  height: 1px;
  background: var(--ink-faint);
}
.hero__tag { order: 2; }

.hero__foot {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
}

.hero__lede {
  max-width: 36ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero__ctas {
  display: flex;
  gap: 10px;
}

.hero__next {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 600 11px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: ping 2.2s cubic-bezier(0, 0, .2, 1) infinite;
}

@keyframes ping {
  75%, 100% { transform: scale(3); opacity: 0; }
}

/* floating pieces */
.hero__floats {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.float {
  position: absolute;
  width: var(--w);
  rotate: var(--r);
}

.float__inner { will-change: transform; }

.float img {
  width: 100%;
  filter: drop-shadow(0 22px 26px rgba(23, 19, 16, .24));
  will-change: transform;
}

.float--1 { --w: clamp(150px, 17vw, 310px); --r: -9deg; left: 1.5%; top: max(13%, 110px); }
.float--2 { --w: clamp(130px, 14vw, 260px); --r: 8deg;  right: 2.5%; top: max(11%, 104px); }
.float--3 { --w: clamp(120px, 12.5vw, 230px); --r: 7deg; left: 5%; bottom: 18%; }
.float--4 { --w: clamp(150px, 16vw, 300px); --r: -7deg; right: 4%; bottom: 16%; }

/* ---------- marquee ---------- */
.marquee-wrap {
  position: relative;
  z-index: 3;
  margin-top: clamp(18px, 3vw, 40px);
  overflow-x: clip;
}

.marquee {
  width: 106%;
  margin: 0 -3%;
  padding: 16px 0;
  background: var(--ink);
  color: var(--paper);
  overflow: clip;
  rotate: -1.6deg;
}

.marquee__track {
  display: flex;
  width: max-content;
}

.no-js .marquee__track { animation: marquee 48s linear infinite; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  white-space: nowrap;
}

.marquee__group > span:not(.urdu) {
  font: italic 400 clamp(28px, 3.4vw, 50px)/1.2 var(--serif);
}

.marquee__group .urdu {
  font-size: clamp(18px, 2.1vw, 30px);
  line-height: 1.5;
  color: var(--accent-light);
}

.marquee__group i {
  font-style: normal;
  font-size: 16px;
  color: var(--accent-light);
}

/* ---------- manifesto ---------- */
.manifesto {
  padding: clamp(110px, 18vh, 200px) 0 clamp(80px, 13vh, 150px);
}

.manifesto__text {
  max-width: 1200px;
  margin-top: 40px;
  font: 400 clamp(32px, 4.6vw, 76px)/1.08 var(--serif);
  letter-spacing: -.015em;
  text-wrap: pretty;
}

.manifesto__text .urdu {
  font-size: .68em;
  line-height: 1;
  color: var(--accent);
  margin-inline: .08em;
}

.manifesto__foot {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(36px, 6vh, 64px);
  font: 600 11px/1 var(--sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.manifesto__foot p { text-wrap: balance; }

.manifesto__rule {
  flex: none;
  width: clamp(40px, 12vw, 180px);
  height: 1px;
  background: var(--ink);
  transform-origin: left;
}

/* ---------- spotlight ---------- */
.spotlight {
  padding: clamp(60px, 10vh, 110px) 0 clamp(80px, 12vh, 140px);
  border-top: 1px solid var(--line);
}

.spotlight__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 120px);
  margin-top: clamp(40px, 7vh, 80px);
}

.spotlight__frame {
  position: sticky;
  top: 10svh;
  height: 80svh;
  max-height: 880px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-deep);
}

.spotlight__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(100% 0 0 0);
}

.spotlight__frame img.is-active { clip-path: inset(0 0 0 0); }

.spotlight__count {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 10;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(244, 239, 230, .88);
  font: 600 11px/1 var(--sans);
  letter-spacing: .2em;
  font-variant-numeric: tabular-nums;
}

.spotlight__count b { color: var(--accent); }

.step {
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 6vh;
}

.step + .step { border-top: 1px solid var(--line); }

.step__img { display: none; }

.step__no {
  font: 600 12px/1 var(--sans);
  letter-spacing: .22em;
  color: var(--accent);
}

.step h3 {
  margin: 16px 0 18px;
  font: 400 clamp(38px, 4.4vw, 70px)/1 var(--serif);
  letter-spacing: -.015em;
}

.step p {
  max-width: 34ch;
  font-size: clamp(16px, 1.25vw, 19px);
  color: var(--ink-soft);
}

/* ---------- archive ---------- */
.archive {
  padding: clamp(80px, 12vh, 140px) 0 clamp(90px, 14vh, 160px);
  border-top: 1px solid var(--line);
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.archive__tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.archive__count {
  font: 500 11px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.toggle button {
  padding: 11px 18px;
  border-radius: 999px;
  font: 600 11px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

.toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(30px, 3.2vw, 48px) clamp(14px, 1.6vw, 24px);
  margin-top: clamp(40px, 6vh, 68px);
}

.piece__open {
  display: block;
  width: 100%;
  text-align: left;
}

.piece__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--paper-card);
}

.piece__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .7s var(--ease), transform 1.1s var(--ease);
}

/* white studio backgrounds melt into the card */
.piece__flat { mix-blend-mode: multiply; }

.piece__worn {
  opacity: 0;
  object-position: 50% 22%;
  transform: scale(1.06);
}

.grid[data-view="worn"] .piece__worn {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--n) * 30ms);
}

@media (hover: hover) {
  .piece__open:hover .piece__flat { transform: scale(1.035); }
  .piece__open:hover .piece__worn { opacity: 1; transform: none; transition-delay: 0s; }
  .grid[data-view="worn"] .piece__open:hover .piece__worn { opacity: 0; }
}

.piece__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "no   ur"
    "name ur"
    "type type";
  column-gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.piece__no {
  grid-area: no;
  font: 600 10px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.piece__name {
  grid-area: name;
  margin-top: 8px;
  font: 400 clamp(22px, 1.9vw, 30px)/1.05 var(--serif);
}

.piece__ur {
  grid-area: ur;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.6;
  color: var(--accent);
}

.piece__type {
  grid-area: type;
  margin-top: 10px;
  font: 500 11px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.piece__open:hover .piece__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- lookbook ---------- */
/* default (no GSAP / reduced motion): heading on top, photos wrap as a gallery */
.lookbook {
  position: relative;
  padding: clamp(80px, 12vh, 140px) 0;
  background: var(--ink);
  color: var(--paper);
  overflow: clip;
}

.lookbook__track { padding-inline: var(--gutter); }

.lookbook__head { margin-bottom: clamp(36px, 6vh, 64px); }

.lookbook__rail {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(22px, 3vw, 48px);
}

/* pinned (desktop, set by main.js): heading + photos become one strip that slides sideways */
.lookbook.is-pinned {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding-block: clamp(40px, 7vh, 72px);
}

.lookbook.is-pinned .lookbook__track {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
  width: max-content;
}

.lookbook.is-pinned .lookbook__head {
  flex: none;
  width: min(34vw, 480px);
  margin-bottom: 0;
}

.lookbook.is-pinned .lookbook__rail { flex-wrap: nowrap; }

.lookbook .eyebrow { color: var(--on-ink); }
.lookbook .eyebrow span:first-child { color: var(--accent-light); }

.lookbook__ur {
  margin-top: 8px;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.8;
  color: var(--accent-light);
  text-align: left;
}

.lookbook__hint {
  display: none;
  gap: 10px;
  margin-top: 18px;
  font: 600 11px/1 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--on-ink);
}

.lookbook.is-pinned .lookbook__hint { display: flex; }
.lookbook__hint-touch { display: none; }

.shot {
  flex: none;
  position: relative;
}

.shot__img {
  height: var(--h);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 3px;
  background: #29231e;
}

.shot__img img {
  width: 116%;
  max-width: none;
  height: 100%;
  margin-left: -8%;
  object-fit: cover;
}

.shot--xl { --h: min(68svh, 660px); }
.shot--lg { --h: min(58svh, 560px); }
.shot--md { --h: min(48svh, 470px); }
.shot--low { margin-top: min(18svh, 170px); }

.shot figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font: 500 11px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--on-ink);
}

.shot figcaption .urdu {
  font-size: 15px;
  line-height: 1.4;
  color: var(--accent-light);
}

.shot--quote {
  align-self: center;
  width: min(30vw, 420px);
  padding-inline: 1vw;
}

.shot--quote p {
  font-size: clamp(40px, 4.4vw, 72px);
  line-height: 1.9;
  color: var(--paper);
}

.shot--quote footer {
  margin-top: 6px;
  font: italic 400 clamp(18px, 1.5vw, 22px)/1.3 var(--serif);
  color: var(--on-ink);
}

.shot--end {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(30vw, 400px);
  padding: 40px 2vw;
  text-decoration: none;
  font: 600 11px/1 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--on-ink);
}

.shot--end strong {
  font: 400 clamp(46px, 5vw, 86px)/1 var(--serif);
  letter-spacing: -.02em;
  text-transform: none;
  color: var(--paper);
  transition: color .35s var(--ease);
}

.shot--end:hover strong { color: var(--accent-light); }
.shot__handle { color: var(--accent-light); }

.lookbook__progress {
  display: none;
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(20px, 4vh, 36px);
  height: 2px;
  background: rgba(244, 239, 230, .14);
}

.lookbook.is-pinned .lookbook__progress { display: block; }

.lookbook__progress span {
  display: block;
  height: 100%;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- next drop ---------- */
.next {
  position: relative;
  padding: clamp(110px, 18vh, 200px) 0;
  overflow: clip;
  text-align: center;
}

.next__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.next__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 26px;
}

/* Nastaliq tails hang well below the baseline — leave them room above the English line */
.next__ur {
  font-size: clamp(52px, 7.6vw, 128px);
  line-height: 1.7;
  padding-bottom: .34em;
}

.next__title .mask {
  margin-top: 0;
  font: 400 clamp(40px, 5.4vw, 90px)/1 var(--serif);
  letter-spacing: -.02em;
}

.next__copy {
  max-width: 46ch;
  margin-top: 28px;
  font-size: 17px;
  color: var(--ink-soft);
}

.next__copy a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.next__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.qr {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  font: 600 10px/1 var(--sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}

.qr img {
  width: 104px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: transform .4s var(--ease), border-color .4s;
}

.qr:hover img { transform: scale(1.05); border-color: var(--ink); }

.next__floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.next__float {
  position: absolute;
  width: clamp(170px, 21vw, 360px);
  filter: drop-shadow(0 22px 26px rgba(23, 19, 16, .22));
}

.next__float--1 { left: -2vw; top: 16%; rotate: -12deg; }
.next__float--2 { right: -1vw; bottom: 12%; rotate: 10deg; }

/* ---------- footer ---------- */
.footer {
  padding-top: 26px;
  background: var(--ink);
  color: var(--paper);
  overflow: clip;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  font: 500 11px/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-ink);
}

.footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer__links a { text-decoration: none; transition: color .3s; }
.footer__links a:hover { color: var(--paper); }

.footer__word {
  display: flex;
  justify-content: space-between;
  margin: clamp(24px, 4vw, 56px) 0 -.12em;
  padding-inline: var(--gutter);
  overflow: hidden;
  font: 800 clamp(110px, 31vw, 520px)/.8 var(--sans);
  font-stretch: 88%;
  font-variation-settings: "wdth" 88;
  letter-spacing: -.03em;
}

.footer__word span { display: inline-block; }

/* ---------- piece viewer ---------- */
.viewer {
  width: min(1180px, 100vw - 32px);
  max-width: none;
  height: min(90svh, 860px);
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}

.viewer::backdrop {
  background: rgba(23, 19, 16, .74);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.viewer__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  height: 100%;
}

.viewer__stage {
  position: relative;
  min-height: 0;
  background: var(--paper-card);
  touch-action: pan-y;
  overflow: hidden;
}

.viewer__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: opacity .35s ease;
}

.viewer__img.is-loading { opacity: .25; }

.viewer__arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(244, 239, 230, .92);
  font-size: 17px;
  translate: 0 -50%;
  transition: background-color .3s, color .3s;
}

.viewer__arrow:hover { background: var(--ink); color: var(--paper); }
.viewer__arrow--prev { left: 14px; }
.viewer__arrow--next { right: 14px; }

.viewer__count {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font: 600 11px/1 var(--sans);
  letter-spacing: .2em;
  font-variant-numeric: tabular-nums;
}

.viewer__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 0;
  padding: clamp(28px, 4vw, 56px);
  overflow-y: auto;
}

.viewer__no {
  font: 600 11px/1 var(--sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
}

.viewer__name {
  margin-top: 16px;
  font: 400 clamp(40px, 4.2vw, 64px)/1 var(--serif);
  letter-spacing: -.015em;
}

.viewer__ur {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.8;
  color: var(--accent);
}

.viewer__ur:empty { display: none; }

.viewer__type {
  margin-top: 6px;
  font: 500 11px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.viewer__blurb {
  max-width: 44ch;
  margin-top: 20px;
  color: var(--ink-soft);
}

.viewer__blurb .urdu {
  font-size: 1.1em;
  line-height: 1;
  color: var(--ink);
}

.viewer__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
  width: 100%;
  margin: 26px 0 28px;
}

.viewer__thumbs button {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 3px;
  background: var(--paper-card);
  opacity: .55;
  transition: opacity .3s, box-shadow .3s;
}

.viewer__thumbs button:hover { opacity: .85; }
.viewer__thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 1.5px var(--ink); }

.viewer__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.viewer__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-faint);
}

.viewer__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(244, 239, 230, .92);
  font: 600 11px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: background-color .3s, color .3s;
}

.viewer__close:hover { background: var(--ink); color: var(--paper); }
.viewer__close span { font-size: 16px; letter-spacing: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__foot { grid-template-columns: 1fr auto; }
  .hero__next { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 860px) {
  .spotlight__grid { grid-template-columns: 1fr; gap: 0; margin-top: 24px; }
  .spotlight__media { display: none; }
  .step { min-height: 0; padding-block: 34px; }
  .step + .step { border-top: 0; }
  .step__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    margin-bottom: 22px;
    border-radius: 4px;
    background: var(--paper-deep);
  }

  /* lookbook: heading on top, photos in a native swipe rail */
  .lookbook { padding: 72px 0 56px; }
  .lookbook__track { padding: 0; }
  .lookbook__head { margin-bottom: 30px; padding-inline: var(--gutter); }
  .lookbook__hint { display: flex; }
  .lookbook__rail {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    padding: 0 var(--gutter) 8px;
  }
  .lookbook__rail::-webkit-scrollbar { display: none; }
  .lookbook__rail > * { scroll-snap-align: start; }
  .lookbook__hint-desk { display: none; }
  .lookbook__hint-touch { display: inline; }
  .shot--xl, .shot--lg { --h: min(62svh, 520px); }
  .shot--md { --h: min(52svh, 440px); }
  .shot--low { margin-top: 0; }
  .shot--quote, .shot--end { width: 72vw; }
  .lookbook__progress { display: block; position: relative; inset: auto; margin: 26px var(--gutter) 0; }
}

@media (max-width: 760px) {
  :root { --nav-h: 58px; }

  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .hero__kicker span:last-child { display: none; }
  .hero__kicker { justify-content: center; }

  .hero__title {
    flex-direction: column;
    gap: 0;
    width: 100%;
    font-size: clamp(64px, 23vw, 120px);
  }
  .hero__word--l { align-self: flex-start; top: 0; margin-bottom: -.12em; }
  .hero__word--r { align-self: flex-end; top: 0; margin-top: -.18em; }
  .hero__logo { height: clamp(210px, 33svh, 340px); }

  .hero__sub { flex-direction: column; gap: 8px; }
  .hero__sub::before { display: none; }

  .hero__foot { grid-template-columns: 1fr; gap: 16px; }
  .hero__lede { font-size: 14px; }
  .hero__ctas .btn { flex: 1; padding: 0 16px; }
  .hero__next { grid-column: auto; }

  .float--1 { --w: 38vw; right: -5vw; left: auto; top: 13%; }
  .float--2 { --w: 34vw; left: -6vw; right: auto; top: auto; bottom: 34%; }
  .float--3, .float--4 { display: none; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .piece__meta { grid-template-columns: 1fr; grid-template-areas: "no" "name" "ur" "type"; }
  .piece__ur { justify-self: start; line-height: 1.5; margin-top: 2px; }
  .piece__name { font-size: 21px; }
  .piece__flat { transform: scale(1.14); }

  .archive__tools { align-items: flex-start; }

  .next__float { width: 42vw; }
  .next__float--1 { left: -14vw; top: 6%; }
  .next__float--2 { right: -12vw; bottom: 4%; }

  .footer__row { flex-direction: column; align-items: flex-start; }

  .viewer {
    width: 100vw;
    height: 100svh;
    border-radius: 0;
  }
  .viewer__panel {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 58svh) auto;
    overflow-y: auto;
  }
  .viewer__info { overflow: visible; padding: 26px 20px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
