/* ==========================================================
   Mr. Book's — Peshawar
   One system: cream paper, navy ink, mustard badge.
   ========================================================== */

:root {
  --cream: #faf3e6;
  --paper: #f5ecda;
  --butter: #fde6b8;
  --gold: #e7b764;
  --gold-deep: #cf9a3c;
  --ink: #1a1c2c;
  --ink-2: #23263a;
  --ink-3: #2e3149;
  --text: #25262f;
  --muted: #625d55;
  --muted-dark: #a9a7b5;
  --line: rgba(26, 28, 44, 0.14);
  --line-dark: rgba(250, 243, 230, 0.16);

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */

.display {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
}
.display em,
.h2 em,
.it {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.dark .eyebrow { color: var(--gold); }

.lede { font-size: 1.15rem; color: var(--muted); max-width: 34ch; margin: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 84px;
}
.nav-left, .nav-right { display: flex; gap: 34px; font-size: 1rem; }
.nav-right { justify-content: flex-end; align-items: center; }
.nav a { position: relative; }
.nav-left a::after, .nav-right a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px;
  height: 1.5px; background: currentColor; transition: right 0.35s var(--ease);
}
.nav-left a:hover::after, .nav-right a:hover::after { right: 0; }

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
}
.wordmark span { color: var(--gold-deep); }

.open-now { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.95rem; }
.open-now i { width: 8px; height: 8px; border-radius: 50%; background: #3f9b5a; box-shadow: 0 0 0 4px rgba(63,155,90,.16); }
.open-now.closed i { background: #b8574a; box-shadow: 0 0 0 4px rgba(184,87,74,.16); }

.menu-btn { display: none; width: 44px; height: 44px; justify-self: end; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px var(--gutter) 28px;
}
.mobile-menu a { display: block; padding: 14px 0; font-size: 1.3rem; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border: 0; }

/* ---------- Circular badge (the recurring device) ---------- */

.badge {
  --size: 168px;
  position: relative;
  display: inline-grid; place-items: center;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  flex: none;
  transition: transform 0.5s var(--ease), background 0.3s;
}
.badge svg.ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: spin 22s linear infinite;
}
.badge svg.ring text {
  font-family: var(--sans); font-size: 11.2px; font-weight: 500;
  letter-spacing: 0.08em; fill: var(--ink);
}
.badge .core {
  position: relative;
  display: grid; place-items: center;
  width: 44%; height: 44%;
  border-radius: 50%;
  background: var(--cream);
  transition: transform 0.5s var(--ease);
}
.badge .core svg { width: 42%; height: 42%; }
.badge:hover { background: var(--butter); }
.badge:hover .core { transform: rotate(45deg); }
.badge.sm { --size: 128px; }
.badge.sm svg.ring text { font-size: 12.4px; }
.dark .badge .core { background: var(--ink); color: var(--gold); }
.dark .badge .core svg { stroke: var(--gold); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Book covers (typographic mockups) ---------- */

.cover {
  position: relative;
  aspect-ratio: 2 / 3;
  width: 100%;
  overflow: hidden;
  border-radius: 2px 4px 4px 2px;
  box-shadow:
    inset 5px 0 0 rgba(0,0,0,.10),
    inset 7px 0 0 rgba(255,255,255,.14),
    0 1px 1px rgba(26,28,44,.10),
    0 18px 34px -14px rgba(26,28,44,.45);
  font-family: var(--sans);
  isolation: isolate;
}
.cover::after { /* paper grain + light fall-off */
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,0) 6%, rgba(255,255,255,.06) 9%, rgba(0,0,0,0) 30%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.cover > * { position: absolute; z-index: 2; }

/* 1 · Peer-e-Kamil — saffron, black slab */
.c-peer { background: #f2c21b; color: #111; container-type: inline-size; }
.c-peer .ribbon {
  left: -6%; right: -6%; top: 9%; background: #fffdf5; padding: 1.4% 0;
  transform: rotate(6deg); text-align: center;
  font-size: 3.1cqi; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.c-peer .slab {
  left: 14%; right: 11%; top: 27%; background: #121212; color: #f2c21b;
  padding: 7% 7% 6%; transform: rotate(-5deg);
}
.c-peer .slab b { display: block; font-family: var(--display); font-weight: 900; font-size: 17cqi; line-height: .86; text-transform: uppercase; color: #fff; }
.c-peer .slab small { display: block; margin-top: 5%; font-size: 3.4cqi; letter-spacing: .38em; text-transform: uppercase; }
.c-peer .ur { left: 0; right: 0; top: 67%; text-align: center; font-family: var(--urdu); font-size: 7cqi; line-height: 1.8; }
.c-peer .au { left: 0; right: 0; bottom: 8%; text-align: center; font-size: 6.2cqi; letter-spacing: -.01em; }
.c-peer .au strong { font-weight: 800; }

/* 2 · The Reluctant Fundamentalist — navy + brass */
.c-rel { background: #1f2d4f; color: #f4d38a; container-type: inline-size; }
.c-rel .quote { left: 12%; right: 12%; top: 7%; font-family: var(--serif); font-style: italic; font-size: 3.8cqi; color: #c9cde0; text-align: center; }
.c-rel .t { left: 10%; right: 6%; top: 22%; font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .84; font-size: 15cqi; }
.c-rel .t span { display: block; color: #fff; }
.c-rel .rule { left: 10%; right: 10%; top: 64%; height: 1px; background: rgba(244,211,138,.5); }
.c-rel .sub { left: 10%; right: 10%; top: 67%; font-size: 3.6cqi; letter-spacing: .12em; text-transform: uppercase; color: #c9cde0; }
.c-rel .au { left: 10%; bottom: 8%; font-weight: 800; font-size: 5.4cqi; letter-spacing: .06em; text-transform: uppercase; }

/* 3 · Ice-Candy-Man — terracotta, circle */
.c-ice { background: #c8553d; color: #fff4e4; container-type: inline-size; }
.c-ice .sun { width: 64%; aspect-ratio: 1; left: 18%; top: 14%; border-radius: 50%; background: #f1c27d; }
.c-ice .line { left: 0; right: 0; top: 47%; height: 3px; background: #1a1c2c; }
.c-ice .t { left: 8%; right: 8%; bottom: 20%; font-family: var(--serif); font-style: italic; font-weight: 800; font-size: 14cqi; line-height: .9; }
.c-ice .au { left: 8%; bottom: 8%; font-size: 4.2cqi; letter-spacing: .24em; text-transform: uppercase; }

/* 4 · Raja Gidh — bone + ink brushstroke */
.c-raja { background: #ece3d0; color: #1b1b1b; container-type: inline-size; }
.c-raja .ur { left: 0; right: 0; top: 15%; text-align: center; font-family: var(--urdu); font-size: 17cqi; line-height: 1.7; }
.c-raja .wing { left: 12%; right: 12%; top: 50%; height: 16%; background: #1b1b1b; clip-path: polygon(0 60%, 30% 20%, 50% 55%, 70% 20%, 100% 60%, 70% 45%, 50% 85%, 30% 45%); }
.c-raja .t { left: 0; right: 0; bottom: 15%; text-align: center; font-size: 4.2cqi; font-weight: 700; letter-spacing: .5em; text-transform: uppercase; }
.c-raja .au { left: 0; right: 0; bottom: 7%; text-align: center; font-family: var(--serif); font-style: italic; font-size: 5cqi; color: #8a3b2a; }

/* 5 · Twilight in Delhi — dusk gradient, arches */
.c-twi { background: linear-gradient(180deg, #2a2346 0%, #6b3f6a 52%, #e1906a 100%); color: #fff; container-type: inline-size; }
.c-twi .arches { left: 12%; right: 12%; bottom: 0; height: 36%; background:
  radial-gradient(circle at 16.6% 0, transparent 13.5%, #1a1530 14%) 0 0 / 33.4% 200% repeat-x; }
.c-twi .t { left: 10%; right: 10%; top: 10%; font-family: var(--serif); font-weight: 700; font-size: 11cqi; line-height: 1; }
.c-twi .t em { display: block; font-weight: 400; font-size: 7cqi; }
.c-twi .au { left: 10%; top: 46%; font-size: 4cqi; letter-spacing: .28em; text-transform: uppercase; opacity: .85; }

/* 6 · Home Fire — flame orange / black type block */
.c-home { background: #111; color: #fff; container-type: inline-size; }
.c-home .flame { left: 0; right: 0; bottom: 0; height: 36%; background: linear-gradient(0deg, #ff6a2b, #ffb23e 60%, transparent); clip-path: polygon(0 100%, 0 40%, 12% 58%, 22% 22%, 34% 50%, 46% 0, 58% 44%, 70% 18%, 82% 52%, 100% 30%, 100% 100%); }
.c-home .t { left: 9%; top: 9%; font-family: var(--display); font-weight: 900; font-size: 25cqi; line-height: .9; text-transform: uppercase; }
.c-home .au { left: 9%; top: 60%; z-index: 3; font-size: 4.2cqi; letter-spacing: .2em; text-transform: uppercase; color: #ffb23e; }

/* 7 · Rahman Baba — deep green, lattice */
.c-rah { background: #1e4a3d; color: #efe3c4; container-type: inline-size; }
.c-rah .lattice { inset: 6%; border: 1px solid rgba(239,227,196,.55); background:
  repeating-linear-gradient(45deg, transparent 0 14px, rgba(239,227,196,.07) 14px 15px),
  repeating-linear-gradient(-45deg, transparent 0 14px, rgba(239,227,196,.07) 14px 15px); }
.c-rah .ps { left: 0; right: 0; top: 18%; text-align: center; font-family: var(--urdu); font-size: 12cqi; line-height: 1.8; color: #e7b764; }
.c-rah .t { left: 12%; right: 12%; top: 50%; text-align: center; font-family: var(--serif); font-style: italic; font-size: 9cqi; line-height: 1.05; }
.c-rah .au { left: 0; right: 0; bottom: 12%; text-align: center; font-size: 3.6cqi; letter-spacing: .3em; text-transform: uppercase; }

/* 8 · Moth Smoke — pale blue, dotted moth */
.c-moth { background: #cfdde3; color: #1a1c2c; container-type: inline-size; }
.c-moth .moth { left: 30%; top: 16%; width: 40%; aspect-ratio: 1.3; background: radial-gradient(circle, #1a1c2c 18%, transparent 20%) 0 0 / 9% 12%; clip-path: polygon(50% 30%, 90% 0, 100% 40%, 60% 60%, 80% 100%, 50% 70%, 20% 100%, 40% 60%, 0 40%, 10% 0); }
.c-moth .t { left: 10%; right: 10%; top: 56%; font-family: var(--sans); font-weight: 800; font-size: 13cqi; line-height: .9; letter-spacing: -.04em; }
.c-moth .au { left: 10%; bottom: 8%; font-family: var(--serif); font-style: italic; font-size: 5.4cqi; }

/* 9 · Atomic Habits — off-white, stepped bars */
.c-atom { background: #f7f4ee; color: #1a1c2c; container-type: inline-size; }
.c-atom .bars { left: 10%; right: 10%; top: 12%; height: 30%; display: flex; align-items: flex-end; gap: 4%; }
.c-atom .bars i { flex: 1; background: #1a1c2c; }
.c-atom .bars i:nth-child(1) { height: 12%; } .c-atom .bars i:nth-child(2) { height: 22%; }
.c-atom .bars i:nth-child(3) { height: 38%; } .c-atom .bars i:nth-child(4) { height: 62%; }
.c-atom .bars i:nth-child(5) { height: 100%; background: #e7b764; }
.c-atom .t { left: 10%; right: 10%; top: 50%; font-weight: 800; text-transform: uppercase; font-size: 11cqi; line-height: .92; letter-spacing: -.02em; }
.c-atom .sub { left: 10%; right: 12%; top: 74%; font-size: 3.6cqi; color: #5a5a5a; }
.c-atom .au { left: 10%; bottom: 7%; font-weight: 700; font-size: 4.6cqi; letter-spacing: .14em; text-transform: uppercase; }

/* 10 · The Holy Woman — indigo, gold frame */
.c-holy { background: #2c2a63; color: #f3e7c9; container-type: inline-size; }
.c-holy .frame { inset: 8%; border: 2px solid #e7b764; border-radius: 48% 48% 4px 4px / 30% 30% 4px 4px; }
.c-holy .t { left: 14%; right: 14%; top: 34%; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 11cqi; line-height: 1; }
.c-holy .t em { display: block; font-size: 6cqi; font-weight: 400; margin-bottom: 4%; }
.c-holy .au { left: 0; right: 0; bottom: 16%; text-align: center; font-size: 3.8cqi; letter-spacing: .26em; text-transform: uppercase; color: #e7b764; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  padding-block: clamp(40px, 7vw, 96px) 0;
}
.hero .display { font-size: clamp(3rem, 7.2vw, 6.1rem); color: var(--ink); }
.hero-copy { position: relative; z-index: 2; }
.hero-row {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  margin-top: clamp(28px, 4vw, 52px);
  max-width: 640px;
}

.qr-card {
  position: relative; z-index: 3;
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  width: 188px;
  margin-top: clamp(36px, 5vw, 64px);
  margin-bottom: -96px;
  padding: 18px 18px 16px;
  background: var(--gold);
  color: var(--ink);
  text-align: center;
  font-size: 0.9rem; line-height: 1.3; font-weight: 500;
}
.qr-card .qr { background: #fff; padding: 12px; width: 100%; }
.qr-card .qr img { width: 100%; }
.qr-card small { display: block; font-weight: 400; opacity: .75; font-size: .78rem; margin-top: 2px; }

.hero-visual { position: relative; height: clamp(440px, 52vw, 640px); z-index: 2; }
.hero-frame {
  position: absolute; left: 6%; top: 2%;
  width: min(420px, 66%);
  padding: 7.5%;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(26,28,44,.35);
  z-index: 3;
}
.hero-frame .slides { position: relative; aspect-ratio: 2/3; }
.hero-frame .slides .cover { position: absolute; inset: 0; opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.hero-frame .slides .cover.is-active { opacity: 1; transform: none; }
.hero-frame figcaption {
  display: flex; justify-content: flex-end; gap: 12px; padding-left: 28%; text-align: right;
  margin-top: 16px; font-size: .85rem; color: var(--muted);
}
.hero-frame figcaption b { color: var(--ink); font-weight: 600; }

.tilt {
  position: absolute;
  padding: 3.2%;
  background: var(--butter);
  box-shadow: 0 24px 50px -24px rgba(26,28,44,.45);
}
.tilt-a { right: -8%; top: 12%; width: 38%; transform: rotate(10deg); z-index: 2; }
.tilt-b { left: -6%; bottom: 8%; width: 28%; transform: rotate(-9deg); z-index: 4; background: #fff; }

/* dark strip under hero (the reference move) */
.strip { background: var(--ink); color: var(--cream); position: relative; margin-top: -150px; padding-top: 150px; }
.strip-grid {
  display: grid;
  grid-template-columns: 188px 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-block: 60px 64px;
}
.strip .arrow-doodle { width: 92px; margin: -40px 0 0 214px; color: var(--gold); }
.community { display: grid; gap: 12px; max-width: 380px; }
.avatars { display: flex; }
.avatars img, .avatars span {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--ink); margin-left: -10px; object-fit: cover;
}
.avatars :first-child { margin-left: 0; }
.avatars span { display: grid; place-items: center; background: var(--gold); color: var(--ink); font-size: .72rem; font-weight: 700; }
.community h3 { margin: 4px 0 0; font-size: 1.6rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.community p { margin: 0; color: var(--muted-dark); font-size: .95rem; }

.arrow-link { display: inline-flex; align-items: center; gap: 14px; font-weight: 500; margin-top: 8px; width: fit-content; }
.arrow-link .dot {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  transition: transform .4s var(--ease);
}
.arrow-link .dot svg { width: 16px; height: 16px; }
.arrow-link::before { content: ""; order: 1; width: 16px; height: 1.5px; background: currentColor; margin-right: -22px; transition: width .4s var(--ease); }
.arrow-link .dot { order: 2; }
.arrow-link:hover .dot { transform: translateX(6px); }

.counter {
  display: flex; align-items: center; gap: 22px;
  justify-self: end; align-self: center;
  font-size: 1.45rem; color: var(--muted-dark);
  padding-left: 14%;
}
.counter .now { font-family: var(--serif); font-style: italic; font-weight: 800; font-size: 3rem; color: var(--cream); line-height: 1; min-width: 2ch; }
.counter .track { position: relative; width: clamp(120px, 16vw, 230px); height: 2px; background: repeating-linear-gradient(90deg, var(--muted-dark) 0 8px, transparent 8px 14px); opacity: .6; }
.counter .fill { position: absolute; left: 0; top: -1px; height: 4px; background: var(--gold); width: 0; transition: width .6s var(--ease); }
.counter-btns { display: flex; gap: 8px; margin-left: 6px; }
.counter-btns button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-dark); display: grid; place-items: center;
  transition: background .3s, border-color .3s, color .3s;
}
.counter-btns button:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.counter-btns svg { width: 16px; height: 16px; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(80px, 10vw, 140px); }
.dark { background: var(--ink); color: var(--cream); }
.dark .lede, .dark p { color: var(--muted-dark); }
.butter { background: var(--butter); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .h2 { max-width: 14ch; }

/* Featured books */
.shelf {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(18px, 2.4vw, 34px);
  list-style: none; margin: 0; padding: 0;
}
.book { display: grid; gap: 16px; align-content: start; }
.book .cover { transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.book:nth-child(odd):hover .cover { transform: rotate(-3deg) translateY(-8px); }
.book:nth-child(even):hover .cover { transform: rotate(3deg) translateY(-8px); }
.book-meta { display: grid; gap: 2px; font-size: .95rem; }
.book-meta .tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.book-meta h3 { margin: 0; font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.book-meta .by { color: var(--muted); }
.book-meta .price { margin-top: 6px; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 10px; }
.book-meta .price b { font-weight: 600; }
.book-meta .price span { color: var(--muted); font-size: .85rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-photo .tilt { width: 34%; right: -9%; bottom: -8%; transform: rotate(8deg); background: var(--cream); padding: 3%; }
.about-photo .badge { position: absolute; left: -46px; top: 36px; }
.about-copy p { margin: 0 0 18px; max-width: 52ch; color: var(--muted); }
.about-copy p.first { font-size: 1.3rem; color: var(--text); line-height: 1.5; }
.signed { margin-top: 30px; display: flex; align-items: center; gap: 16px; font-size: .95rem; }
.signed .sig { font-family: var(--serif); font-style: italic; font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1; }
.signed span { color: var(--muted); }

/* Stats band */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
}
.stat { padding: 34px 28px 6px 0; border-right: 1px solid var(--line-dark); }
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--serif); font-style: italic; font-weight: 800; font-size: clamp(3rem, 6vw, 5.2rem); line-height: 1; color: var(--cream); letter-spacing: -.02em; }
.stat .num sup { font-family: var(--sans); font-style: normal; font-size: .4em; color: var(--gold); font-weight: 600; margin-left: 4px; vertical-align: top; position: relative; top: .5em; }
.stat .lbl { margin-top: 14px; font-weight: 500; color: var(--cream); }
.stat p { margin: 4px 0 0; font-size: .92rem; max-width: 24ch; }
.stats-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 48px; }

/* Genres list */
.genres-grid { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.genres-aside { position: sticky; top: 120px; }
.genres-aside .lede { margin-top: 22px; }
.genres-aside .note { margin-top: 30px; font-size: .92rem; color: var(--muted); border-left: 2px solid var(--gold); padding-left: 14px; max-width: 34ch; }
.genre-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.genre {
  display: grid;
  grid-template-columns: 34px 64px 1fr auto 28px;
  gap: 22px; align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.genre .idx { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--muted); }
.genre img { width: 64px; height: 64px; object-fit: cover; border-radius: 2px; transition: transform .5s var(--ease); }
.genre:nth-child(odd):hover img { transform: rotate(-6deg) scale(1.06); }
.genre:nth-child(even):hover img { transform: rotate(6deg) scale(1.06); }
.genre h3 { margin: 0; font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.genre h3 .ur { font-family: var(--urdu); font-weight: 400; font-size: 1rem; color: var(--muted); margin-left: 10px; }
.genre p { margin: 2px 0 0; font-size: .92rem; color: var(--muted); }
.genre .count { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.genre .go { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: transparent; transition: background .3s, transform .4s var(--ease); }
.genre .go svg { width: 14px; height: 14px; }
.genre:hover .go { background: var(--gold); transform: rotate(45deg); }

/* Photo break */
.photo-break { position: relative; min-height: clamp(420px, 62vw, 760px); display: flex; align-items: flex-end; overflow: hidden; color: var(--cream); }
.photo-break img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-break::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,28,44,0) 35%, rgba(26,28,44,.88) 100%); }
.photo-break figcaption { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(28px, 5vw, 56px); }
.photo-break .cap { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; }
.photo-break blockquote { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.8rem); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; max-width: 20ch; }
.photo-break small { font-size: .85rem; opacity: .8; max-width: 30ch; text-align: right; }

/* Events */
.events-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.events-visual { position: sticky; top: 110px; padding: 0 10% 18% 0; }
.events-visual .main { width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.events-visual .second { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 4/5; object-fit: cover; border: 10px solid var(--ink-2); transform: rotate(6deg); box-shadow: 0 30px 50px -20px rgba(0,0,0,.6); }
.events-visual .badge { position: absolute; left: -24px; bottom: 6%; }
.event-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line-dark); }
.event { display: grid; grid-template-columns: 86px 1fr auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line-dark); align-items: start; }
.event .date { font-family: var(--serif); font-style: italic; font-weight: 800; font-size: 2.3rem; line-height: .9; color: var(--cream); }
.event .date small { display: block; font-family: var(--sans); font-style: normal; font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: 8px; }
.event h3 { margin: 0 0 4px; font-size: 1.2rem; font-weight: 600; color: var(--cream); letter-spacing: -.01em; }
.event p { margin: 0; font-size: .95rem; }
.event .pill { font-size: .78rem; border: 1px solid var(--line-dark); border-radius: 999px; padding: 5px 12px; white-space: nowrap; color: var(--muted-dark); }
.event .pill.free { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.events-copy .community { margin-top: 36px; max-width: none; grid-template-columns: auto 1fr; align-items: center; column-gap: 20px; }
.events-copy .community p { grid-column: 1 / -1; }

/* Visit — spec list */
.visit-grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: clamp(40px, 6vw, 90px); }
.spec { margin: 0; border-top: 1.5px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.spec dd { margin: 0; font-size: 1.08rem; }
.spec dd a { border-bottom: 1px solid var(--gold-deep); }
.hours { display: grid; grid-template-columns: max-content 1fr; column-gap: 28px; row-gap: 4px; }
.hours .today { font-weight: 600; color: var(--ink); }
.hours span:nth-child(odd) { color: var(--muted); }
.hours .today { color: var(--ink) !important; }
.visit-aside .lede { margin-top: 22px; }
.visit-aside .badge { margin-top: 40px; }

/* Testimonial */
.testimonial { text-align: center; }
.testimonial .mark { font-family: var(--serif); font-style: italic; font-weight: 800; font-size: 7rem; line-height: .6; color: var(--gold-deep); height: 48px; }
.testimonial blockquote { margin: 0 auto; max-width: 30ch; font-size: clamp(1.6rem, 3.3vw, 2.6rem); line-height: 1.22; letter-spacing: -.02em; font-weight: 500; color: var(--ink); }
.testimonial blockquote em { font-family: var(--serif); font-style: italic; font-weight: 800; }
.testimonial .who { margin-top: 36px; display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.testimonial .who .ini { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-weight: 800; font-size: 1.2rem; }
.testimonial .who b { display: block; font-weight: 600; }
.testimonial .who span { color: var(--muted); font-size: .92rem; }
.stars { color: var(--gold-deep); letter-spacing: .15em; font-size: .95rem; margin-top: 28px; }

/* Footer / contact band */
.footer { background: var(--ink); color: var(--cream); padding-top: clamp(80px, 10vw, 130px); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: end; }
.footer .display { font-size: clamp(2.6rem, 6vw, 5rem); }
.footer-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px; margin-top: 56px; }
.footer-contact h4 { margin: 0 0 8px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.footer-contact p, .footer-contact a { margin: 0; color: var(--cream); font-size: 1.05rem; line-height: 1.55; }
.footer-contact a:hover { color: var(--gold); }
.footer-contact .big { font-size: 1.5rem; letter-spacing: -.01em; }
.footer-app { display: flex; gap: 28px; align-items: flex-end; justify-content: flex-end; position: relative; }
.footer-app .qr-card { margin: 0; transform: rotate(-4deg); }
.footer-app .stack { position: relative; width: 150px; height: 230px; flex: none; }
.footer-app .stack .cover { position: absolute; width: 120px; }
.footer-app .stack .cover:nth-child(1) { left: 0; top: 10px; transform: rotate(-10deg); }
.footer-app .stack .cover:nth-child(2) { left: 30px; top: 30px; transform: rotate(7deg); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 30px;
  margin-top: clamp(60px, 8vw, 100px);
  padding-block: 26px 34px;
  border-top: 1px solid var(--line-dark);
  font-size: .9rem; color: var(--muted-dark);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-bottom a:hover { color: var(--cream); }
.footer-mark { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(5rem, 22vw, 20rem); line-height: .78; letter-spacing: -.01em; color: var(--ink-3); text-align: center; margin: 40px 0 -0.08em; user-select: none; white-space: nowrap; }
.footer-mark span { color: var(--gold); opacity: .8; }

/* ---------- Policy page ---------- */

.policy-hero { padding-block: clamp(50px, 8vw, 110px) 0; position: relative; }
.policy-hero .display { font-size: clamp(3rem, 7vw, 5.8rem); color: var(--ink); max-width: 11ch; }
.policy-hero .meta { display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 30px; font-size: .95rem; color: var(--muted); }
.policy-hero .meta b { color: var(--ink); font-weight: 600; }
.policy-hero .badge { position: absolute; right: var(--gutter); top: clamp(50px, 8vw, 110px); }
.policy-strip { background: var(--ink); color: var(--cream); margin-top: clamp(50px, 7vw, 90px); }
.policy-strip .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 26px; font-size: .95rem; color: var(--muted-dark); }
.policy-strip b { color: var(--cream); font-weight: 500; }

.policy { display: grid; grid-template-columns: 260px 1fr; gap: clamp(40px, 6vw, 90px); padding-block: clamp(60px, 8vw, 110px); }
.toc { position: sticky; top: 110px; align-self: start; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; border-top: 1px solid var(--line); }
.toc li { counter-increment: t; border-bottom: 1px solid var(--line); }
.toc a { display: flex; gap: 14px; padding: 11px 0; font-size: .95rem; color: var(--muted); transition: color .2s; }
.toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--serif); font-style: italic; color: var(--gold-deep); }
.toc a:hover, .toc a.is-current { color: var(--ink); }

.prose { max-width: 70ch; }
.prose section { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.prose section:last-child { border: 0; }
.prose h2 { margin: 0 0 18px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; color: var(--ink); }
.prose h2 em { font-family: var(--serif); font-style: italic; font-weight: 800; }
.prose h3 { margin: 26px 0 8px; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.prose p, .prose li { color: #45423d; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--gold-deep); }
.prose a { border-bottom: 1px solid var(--gold-deep); color: var(--ink); }
.prose a:hover { background: var(--butter); }
.optout { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 22px 0; }
.prose .optout a { border: 1px solid var(--line); padding: 18px 20px; display: grid; gap: 4px; background: #fffaf0; transition: border-color .3s, transform .4s var(--ease); }
.prose .optout a:hover { border-color: var(--ink); transform: translateY(-3px); background: #fffaf0; }
.optout b { font-weight: 600; }
.optout span { font-size: .85rem; color: var(--muted); word-break: break-all; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 18px 0; }
.cookie-table th, .cookie-table td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cookie-table th { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge svg.ring { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .shelf { grid-template-columns: repeat(3, 1fr); }
  .shelf .book:nth-child(n+4) { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .strip-grid { grid-template-columns: 188px 1fr; }
  .counter { grid-column: 1 / -1; justify-self: start; padding-left: 0; }
}

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; height: 70px; }
  .nav-left, .nav-right { display: none; }
  .wordmark { justify-self: start; }
  .menu-btn { display: block; }
  .mobile-menu.open { display: block; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: auto; aspect-ratio: 1 / 1.05; max-width: 520px; width: 100%; margin: 20px auto 0; }
  .hero-frame { left: 16%; width: 62%; }
  .hero-frame figcaption { padding-left: 0; }
  .events-visual { position: relative; top: 0; }
  .qr-card { margin-bottom: 0; }
  .strip { margin-top: -110px; padding-top: 110px; }
  .strip-grid { grid-template-columns: 1fr; gap: 36px; }
  .strip .arrow-doodle { display: none; }
  .hero .qr-card { display: none; }

  .about-grid, .genres-grid, .events-grid, .visit-grid, .footer-top, .policy { grid-template-columns: 1fr; }
  .about-photo { max-width: 520px; }
  .about-photo .badge { left: auto; right: 12px; top: -40px; }
  .genres-aside, .toc { position: static; }
  .footer-app { justify-content: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .policy-hero .badge { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-row { flex-direction: column; align-items: flex-start; }
  .badge { --size: 136px; }
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .shelf .book:nth-child(n+4) { display: grid; }
  .shelf .book:nth-child(n+5) { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding-left: 0; border-right: 0; }
  .stat + .stat { border-top: 1px solid var(--line-dark); }
  .genre { grid-template-columns: 52px 1fr 24px; gap: 16px; }
  .genre .idx, .genre .count { display: none; }
  .genre img { width: 52px; height: 52px; }
  .genre h3 { font-size: 1.15rem; }
  .genre h3 .ur { display: block; margin: 0; line-height: 2.2; }
  .event { grid-template-columns: 70px 1fr; }
  .event .pill { grid-column: 2; justify-self: start; }
  .spec > div { grid-template-columns: 1fr; gap: 6px; }
  .footer-contact { grid-template-columns: 1fr; }
  .footer-app .stack { display: none; }
  .photo-break .cap { flex-direction: column; align-items: flex-start; }
  .photo-break small { text-align: left; }
  .counter { flex-wrap: wrap; gap: 16px; }
  .events-visual .badge { --size: 110px; left: -8px; }
  .about-photo .badge { --size: 110px; }
}
