/* ══════════ RESET & FOUNDATION ══════════ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.62;
  font-weight: 400;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  transition: background var(--t-slow) var(--ease-out), color var(--t) var(--ease-out);
}
body.locked { overflow: hidden; }

img, svg, canvas, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
code { font-family: var(--font-mono); font-size: .9em; }

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

::selection { background: var(--accent); color: var(--accent-ink); }

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--line-3); background-clip: content-box; }

/* ══════════ TYPE ══════════ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.028em;
  font-variation-settings: "SOFT" 20, "WONK" 1;
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: -.02em; }
h4 { font-size: var(--fs-md); letter-spacing: -.015em; }

em { font-style: italic; font-variation-settings: "SOFT" 60, "WONK" 1; }

p { text-wrap: pretty; }

.lede {
  font-size: var(--fs-md);
  color: var(--ink-2);
  line-height: 1.66;
  max-width: 58ch;
}
.small { font-size: var(--fs-sm); color: var(--ink-2); }
.tiny  { font-size: var(--fs-xs); color: var(--ink-3); }

.kicker {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
  display: flex; align-items: center; gap: .7em;
}
.kicker::before {
  content: ""; width: 28px; height: 1px;
  background: currentColor; opacity: .55;
}

.eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex; align-items: center; gap: .9em;
  justify-content: center;
}
.eyebrow .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); display: inline-block; }
.urdu { font-size: 1.35em; letter-spacing: 0; text-transform: none; opacity: .9; }

/* ══════════ LAYOUT ══════════ */

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

.section {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 8.5rem);
}
.section.alt { background: var(--bg-2); }
.section.alt::before, .section.alt::after {
  content: ""; position: absolute; inset-inline: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.section.alt::before { top: 0; }
.section.alt::after  { bottom: 0; }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: var(--sp-5) var(--sp-7);
  align-items: end;
  margin-bottom: clamp(2rem, 4.5vw, 3.6rem);
}
.sec-head.col { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.sec-head.col .kicker { justify-content: center; }
.sec-head.col .kicker::before { display: none; }
.sec-note {
  color: var(--ink-2);
  font-size: var(--fs-sm);
  max-width: 46ch;
  padding-bottom: .5rem;
  border-left: 1px solid var(--line);
  padding-left: var(--sp-4);
}
@media (max-width: 860px) {
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .sec-note { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--sp-3); }
}

.skip-link {
  position: fixed; top: -60px; left: var(--sp-4); z-index: 300;
  background: var(--accent); color: var(--accent-ink);
  padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 600;
  transition: top var(--t) var(--ease-out);
}
.skip-link:focus { top: var(--sp-4); }

.only-mobile { display: none; }
@media (max-width: 980px) { .only-mobile { display: inline-flex; } }

/* ══════════ MOTIF DIVIDER (paisley / buta) ══════════ */
.motif-divider {
  height: 46px;
  margin-top: clamp(2rem, 5vw, 4rem);
  background-repeat: repeat-x;
  background-position: center;
  background-size: 108px 46px;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='108' height='46' viewBox='0 0 108 46'%3E%3Cg fill='none' stroke='%23E7B84B' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M0 23h30M78 23h30'/%3E%3Cpath d='M54 8c9 0 15 6 15 13 0 6-5 11-11 11-5 0-9-4-9-8 0-4 3-6 6-6 2 0 4 2 4 4'/%3E%3Cpath d='M54 8c-9 0-15 6-15 13 0 6 5 11 11 11'/%3E%3Ccircle cx='54' cy='6' r='1.6' fill='%23E7B84B' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
}
