/* Homepage-only. Linked from index.html. Do not import on archive pages. */

body.home {
  --atlas-deep: #012411;
  --atlas-green: #01411c;
  --atlas-forest: #0a3d22;
  --atlas-gold: #c9a227;
  --atlas-gold-soft: #e3c66a;
  --atlas-ivory: #f4efe4;
  --atlas-cream: #f7f4ee;
  --atlas-ink: #1a1a1a;
  --atlas-muted: #5c5c5c;
  background: var(--atlas-cream);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(201, 162, 39, 0.28);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.home .topbar { display: none; }
body.home header.site {
  background: #f3eee3;
  box-shadow: none;
  border-bottom: 1px solid rgba(20, 40, 24, 0.07);
}
body.home .nav-wrap { padding: 0.82rem 0; }
body.home .logo { color: #14301c; }
body.home .logo-mark {
  width: 44px;
  height: 44px;
  border: 2px solid var(--atlas-gold);
}
body.home nav ul {
  gap: 1.7rem;
  align-items: center;
}
body.home nav a {
  color: #1d2c20;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}
body.home nav a.active { color: #0e2416; font-weight: 600; }
body.home nav a.active::after {
  width: 100%;
  height: 1.5px;
  margin-top: 0.42rem;
  background: var(--atlas-gold);
}
body.home .nav-search {
  display: grid;
  place-items: center;
  color: #1d2c20 !important;
  padding: 0.1rem;
}
body.home .nav-search svg {
  width: 18px;
  height: 18px;
  display: block;
}
body.home .nav-search::after { display: none !important; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--atlas-gold);
  color: #111;
  font-weight: 700;
  padding: 0.55rem 1rem;
}
.skip-link:focus { left: 0.8rem; top: 0.8rem; }
body.home a:focus-visible {
  outline: 2px solid var(--atlas-gold);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */
.atlas-hero {
  position: relative;
  background: #01411c;
  color: #f4ead0;
  overflow: hidden;
  padding: 0 !important;
  isolation: isolate;
  min-height: calc(100vh - 74px);
  min-height: calc(100dvh - 74px);
  display: flex;
  flex-direction: column;
}
.atlas-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.scene-statue {
  position: absolute;
  left: 0;
  top: 2%;
  width: 28%;
  height: 82%;
  object-fit: cover;
  object-position: 50% 12%;
  z-index: 2;
  filter: brightness(1.12) contrast(1.08) saturate(1.04);
  -webkit-mask-image: linear-gradient(to right, #000 82%, transparent 100%);
  mask-image: linear-gradient(to right, #000 82%, transparent 100%);
}
.scene-ruins {
  position: absolute;
  left: 0;
  bottom: 12%;
  width: 34%;
  height: 48%;
  object-fit: cover;
  object-position: 38% 62%;
  -webkit-mask-image: linear-gradient(to right, #000 48%, transparent), linear-gradient(to top, #000 50%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 48%, transparent), linear-gradient(to top, #000 50%, transparent);
  mask-composite: intersect;
}
.scene-mountains {
  position: absolute;
  right: 0;
  top: 0;
  width: 44%;
  height: 88%;
  object-fit: cover;
  object-position: 60% 36%;
  -webkit-mask-image: linear-gradient(to left, #000 60%, transparent 100%);
  mask-image: linear-gradient(to left, #000 60%, transparent 100%);
}
.scene-flag {
  position: absolute;
  right: -3%;
  top: -5%;
  width: 38%;
  height: 54%;
  object-fit: cover;
  object-position: 16% 40%;
  -webkit-mask-image: linear-gradient(to left, #000 52%, transparent 94%), linear-gradient(to bottom, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, #000 52%, transparent 94%), linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-composite: intersect;
  filter: saturate(1.14) contrast(1.08) brightness(1.05);
}
.scene-mosque {
  position: absolute;
  right: 0.5%;
  bottom: 13%;
  width: 30%;
  height: 46%;
  object-fit: cover;
  object-position: 48% 28%;
  -webkit-mask-image: linear-gradient(to left, #000 70%, transparent 100%), linear-gradient(to top, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, #000 70%, transparent 100%), linear-gradient(to top, #000 78%, transparent 100%);
  mask-composite: intersect;
}
.scene-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 340px at 50% 20%, rgba(201, 162, 39, 0.1), transparent 62%),
    linear-gradient(180deg, rgba(1, 36, 17, 0.06) 0%, transparent 32%, rgba(1, 18, 8, 0.28) 100%);
}
.scene-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0 30%,
    rgba(1, 38, 17, 0.45) 42%,
    rgba(1, 38, 17, 0.78) 52%,
    rgba(1, 38, 17, 0.5) 66%,
    transparent 82% 100%);
}

.atlas-hero-copy {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 1.4rem 0 0.4rem;
}
.atlas-hero-copy-grid {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(380px, 680px) minmax(180px, 260px);
  gap: 0.4rem 0.8rem;
  align-items: start;
  width: min(1360px, 96%);
  margin: 0 auto;
}
.atlas-hero-left-label {
  padding-top: 0.45rem;
  justify-self: end;
  padding-right: 0.2rem;
}
.atlas-hero-center {
  text-align: center;
  min-width: 0;
  padding: 0.15rem 0.1rem 0.2rem;
}
.atlas-hero-right-copy {
  padding-top: 0.35rem;
  text-align: left;
  min-width: 0;
}
.atlas-kicker,
.atlas-kicker-right {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--atlas-gold-soft);
  font-weight: 600;
}
.atlas-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}
.kicker-rule {
  display: block;
  width: 4.4rem;
  height: 1px;
  background: #d4b24a;
  flex-shrink: 0;
}
.atlas-kicker-right {
  letter-spacing: 0.2em;
  font-size: 0.62rem;
  color: rgba(244, 234, 208, 0.82);
  margin: 0 0 1.5rem;
}
.atlas-hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 7.1rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: #f7f1e1;
  margin: 0.05rem 0 0.7rem;
}
.atlas-hero h1 .welcome-line {
  display: block;
  font-weight: 600;
  font-size: 0.7em;
  letter-spacing: -0.02em;
  color: #f6f0e2;
}
.atlas-hero h1 .pakistan-line {
  display: block;
  color: var(--atlas-gold-soft);
  font-size: 1.2em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}
.atlas-lead {
  font-size: clamp(1.05rem, 1.25vw + 0.72rem, 1.42rem);
  line-height: 1.4;
  max-width: 22em;
  margin: 0 auto 0.85rem;
  color: #efe4c8;
  font-weight: 400;
}
.atlas-urdu-title {
  font-family: "Noto Nastaliq Urdu", serif;
  direction: rtl;
  font-size: clamp(1.5rem, 2.5vw + 0.7rem, 2.35rem);
  line-height: 2.05;
  color: #f3e6c4;
  margin: 0.35rem 0 0.1rem;
  font-weight: 600;
}
.atlas-urdu-sub {
  font-family: "Noto Nastaliq Urdu", serif;
  direction: rtl;
  font-size: clamp(0.95rem, 1.05vw + 0.7rem, 1.16rem);
  line-height: 2.15;
  color: rgba(243, 230, 196, 0.88);
  max-width: 30em;
  margin: 0 auto;
}
.atlas-quote {
  margin: 0.4rem 0 0;
  padding: 0 0 0.85rem;
  max-width: 15.5em;
  text-align: left;
  border-bottom: 1px solid rgba(201, 162, 39, 0.5);
}
.atlas-quote p {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.48;
  color: #f0e4c4;
}

.atlas-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  width: min(1280px, 94%);
  margin: 0 auto;
  border-top: 1px solid rgba(201, 162, 39, 0.28);
}
.atlas-stat {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 0.7rem;
  color: #f4ead0;
  border-right: 1px solid rgba(201, 162, 39, 0.2);
  min-width: 0;
}
.atlas-stat div { min-width: 0; }
.atlas-stat:last-child { border-right: 0; }
.atlas-stat svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--atlas-gold-soft);
}
.atlas-stat b {
  display: block;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.atlas-stat span {
  display: block;
  font-size: 0.78rem;
  color: rgba(244, 234, 208, 0.78);
}
.atlas-cta-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  padding: 1.15rem 1rem 1.2rem;
}
.cta-rule {
  width: 5.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4b24a);
  flex-shrink: 0;
}
.cta-rule-rev { background: linear-gradient(90deg, #d4b24a, transparent); }
.atlas-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #d4b24a;
  color: #1a1406 !important;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 0.72rem 1.55rem;
  min-height: 44px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  -webkit-tap-highlight-color: transparent;
}
.atlas-cta:hover { background: #e0c05a; color: #111 !important; }
.atlas-hero-ornament {
  height: 28px;
  background: url("../images/home/ornament.svg") center / 80px 28px repeat-x;
  opacity: 0.8;
  border-top: 1px solid rgba(201, 162, 39, 0.18);
}
.atlas-motto {
  margin: 0.95rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 234, 208, 0.7);
  text-align: center;
}

/* ---------- Sections ---------- */
body.home .atlas-section {
  padding: 4.2rem 0 3.4rem;
}
body.home .atlas-section-alt {
  background: #efe8d8;
}
.atlas-section-head {
  text-align: center;
  margin-bottom: 2rem;
}
.atlas-section-head h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 2vw + 1.2rem, 2.45rem);
  color: var(--atlas-green);
  line-height: 1.15;
  text-wrap: balance;
}
.atlas-section-head p {
  color: var(--atlas-muted);
  max-width: 42rem;
  margin: 0.55rem auto 0;
  font-size: 1.08rem;
  line-height: 1.7;
  text-wrap: pretty;
}

/* Archive cards — book-chapter plates */
.atlas-archives {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.atlas-archive {
  display: flex;
  flex-direction: column;
  background: #fffdf8;
  border: 1px solid rgba(1, 65, 28, 0.08);
  border-top: 3px solid var(--atlas-gold);
  box-shadow: 0 10px 28px rgba(1, 65, 28, 0.07);
  overflow: hidden;
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.atlas-archive:hover,
.atlas-archive:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(1, 65, 28, 0.12);
  border-color: rgba(201, 162, 39, 0.55);
}
.atlas-archive-visual {
  position: relative;
  height: 232px;
  background: #12351f;
  overflow: hidden;
}
.atlas-archive-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(6, 18, 12, 0.82));
  pointer-events: none;
  z-index: 1;
}
.atlas-archive-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.001);
  transition: transform 0.45s ease;
}
.atlas-archive:hover .atlas-archive-visual img,
.atlas-archive:focus-within .atlas-archive-visual img {
  transform: scale(1.05);
}
.atlas-archive-visual img[src*="t20-2009"] { object-position: 50% 38%; }
.atlas-archive-visual img[src*="humsafar"] { object-position: 50% 48%; }
.atlas-archive-visual img[src*="iqbal"] { object-position: 50% 10%; }
.atlas-archive-visual img[src*="jinnah"] { object-position: 50% 8%; }
.atlas-archive-visual img[src*="hills"] { object-position: 50% 38%; }
.atlas-archive-visual img[src*="street"] { object-position: 50% 42%; }
.atlas-archive-visual.sports,
.atlas-archive-visual.showbiz {
  background: #12351f;
  display: block;
}
.atlas-plate {
  position: absolute;
  left: 0.85rem;
  right: 5.5rem;
  bottom: 0.72rem;
  z-index: 2;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f6edd4;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.atlas-photo-credit {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  z-index: 2;
  font-size: 0.58rem;
  letter-spacing: 0.02em;
  color: rgba(246, 237, 212, 0.9);
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  max-width: 46%;
  text-align: right;
}
.atlas-icon {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(1, 20, 8, 0.62);
  border: 1px solid rgba(201, 162, 39, 0.55);
  display: grid;
  place-items: center;
  color: var(--atlas-gold-soft);
  z-index: 2;
}
.atlas-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.atlas-archive-body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.atlas-archive h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.32rem;
  color: var(--atlas-green);
  margin: 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.45);
  text-wrap: balance;
}
.atlas-archive h3 a { color: inherit; }
.atlas-archive h3 a:hover { color: var(--atlas-green); }
.atlas-archive p {
  color: var(--atlas-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
  flex: 1;
  text-wrap: pretty;
}
.atlas-more {
  font-weight: 700;
  font-size: 0.86rem;
  color: #6a5208;
  margin-top: 0.45rem;
}
.atlas-archive:hover .atlas-more { color: #3d3004; }

/* Region chips + units */
.atlas-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 0 1.8rem;
}
.atlas-quick a {
  background: #fff;
  border: 1px solid #d5e0d6;
  color: var(--atlas-green);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}
.atlas-quick a:hover {
  background: #e8f5e9;
  color: var(--atlas-green);
}
.atlas-quick a.gold {
  background: #fff4d4;
  color: #6a5208;
  border-color: #e6d08a;
}
.atlas-quick a.gold:hover { background: #ffe9a8; color: #3d3004; }

.atlas-units {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.atlas-unit {
  background: #fff;
  border: 1px solid rgba(1, 65, 28, 0.08);
  box-shadow: 0 10px 28px rgba(1, 65, 28, 0.07);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-top: 4px solid var(--atlas-green);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.atlas-unit:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(1, 65, 28, 0.12);
}
.atlas-unit.unit-punjab { border-top-color: #c9a227; }
.atlas-unit.unit-sindh { border-top-color: #b85c38; }
.atlas-unit.unit-kpk { border-top-color: #2d6a4f; }
.atlas-unit.unit-balochistan { border-top-color: #c47b2b; }
.atlas-unit.unit-ict { border-top-color: #01411c; }
.atlas-unit.unit-gb { border-top-color: #3d6b8a; }
.atlas-unit.unit-ajk { border-top-color: #5b7c4a; }
.atlas-unit-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem 0.2rem;
}
.atlas-unit-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef5ef;
}
.atlas-unit-mark svg {
  width: 28px;
  height: 28px;
  stroke: var(--atlas-green);
  fill: none;
  stroke-width: 1.5;
}
.atlas-unit.unit-punjab .atlas-unit-mark { background: #fbf4de; }
.atlas-unit.unit-sindh .atlas-unit-mark { background: #f8ebe4; }
.atlas-unit.unit-kpk .atlas-unit-mark { background: #e5f2ea; }
.atlas-unit.unit-balochistan .atlas-unit-mark { background: #f8edd9; }
.atlas-unit.unit-ict .atlas-unit-mark { background: #e7f3ea; }
.atlas-unit.unit-gb .atlas-unit-mark { background: #e4eef3; }
.atlas-unit.unit-ajk .atlas-unit-mark { background: #eaf2e6; }
.atlas-unit-body { padding: 0.55rem 1.15rem 1.15rem; }
.atlas-unit .badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--atlas-green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
}
.atlas-unit h3 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--atlas-green);
  font-size: 1.22rem;
  margin: 0.3rem 0 0.15rem;
  line-height: 1.25;
}
.atlas-unit h3 a { color: inherit; }
.atlas-unit h3 .urdu {
  display: inline-block;
  margin-inline-start: 0.35rem;
  font-size: 0.95rem;
  color: #3d5a45;
  font-weight: 400;
}
.atlas-unit .unit-meta {
  color: #3d5a45;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0.2rem 0 0.45rem;
}
.atlas-unit .unit-blurb {
  color: var(--atlas-muted);
  font-size: 0.92rem;
  margin: 0;
}
.atlas-unit .meta { margin-top: 0.7rem; }
.atlas-note {
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--atlas-muted);
}

#explore-pakistan,
#explore-regions,
#heritage {
  scroll-margin-top: 110px;
}

/* Heritage strip */
.atlas-heritage {
  background:
    linear-gradient(180deg, #01351a, #012411);
  color: #f4ead0;
  padding: 3.6rem 0 3.2rem !important;
}
.atlas-heritage h2 {
  font-family: "Playfair Display", Georgia, serif;
  text-align: center;
  font-size: clamp(1.7rem, 2vw + 1.1rem, 2.3rem);
  color: var(--atlas-gold-soft);
  margin: 0 0 0.45rem;
}
.atlas-heritage .lede {
  text-align: center;
  color: rgba(244, 234, 208, 0.86);
  margin: 0 0 1.8rem;
  font-size: 1.05rem;
}
.atlas-heritage-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.atlas-heritage-row figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: #012411;
}
.atlas-heritage-row img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.atlas-heritage-row figcaption {
  padding: 0.55rem 0.75rem 0.7rem;
  font-size: 0.82rem;
  color: #ead9a8;
  text-align: center;
}
.atlas-heritage .atlas-motto {
  color: rgba(244, 234, 208, 0.7);
}
.atlas-credit {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(244, 234, 208, 0.55);
  margin-top: 0.8rem;
}

body.home .ad-slot { margin: 2rem auto 0; width: min(1280px, 94%); }


/* ---------- Breakpoints ---------- */
@media (max-width: 1100px) {
  .atlas-archives { grid-template-columns: repeat(3, 1fr); }
  .atlas-units { grid-template-columns: repeat(2, 1fr); }
  .atlas-stats { grid-template-columns: repeat(3, 1fr); }
  .atlas-stat:nth-child(3) { border-right: 0; }
  .atlas-stat:nth-child(n + 4) { border-top: 1px solid rgba(201, 162, 39, 0.18); }
  .scene-statue { width: 24%; object-position: 50% 10%; }
  .scene-mountains { width: 48%; }
  .scene-flag { width: 42%; }
  .atlas-hero-copy-grid {
    grid-template-columns: 0.55fr minmax(240px, 1.7fr) 0.9fr;
  }
  .atlas-hero h1 { font-size: clamp(2.5rem, 4.6vw + 1.1rem, 4.6rem); }
}
@media (max-width: 900px) {
  .atlas-hero { min-height: 0; }
  .atlas-scene {
    position: relative;
    height: 216px;
    inset: auto;
  }
  .scene-statue {
    left: 3%;
    top: 50%;
    transform: translateY(-50%);
    width: 30%;
    height: 90%;
    object-fit: contain;
    object-position: center center;
    -webkit-mask-image: none;
    mask-image: none;
    filter: brightness(1.12) contrast(1.08) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
  }
  .scene-ruins { display: none; }
  .scene-mountains { width: 62%; height: 100%; }
  .scene-flag { width: 48%; height: 78%; top: -6%; }
  .scene-mosque { display: none; }
  .scene-veil::after { background: none; }
  .atlas-hero-copy {
    flex: none;
    padding: 1.15rem 0 0.3rem;
  }
  .atlas-hero-copy-grid { grid-template-columns: 1fr; }
  .atlas-hero-left-label,
  .atlas-hero-right-copy { text-align: center; }
  .atlas-kicker { justify-content: center; }
  .atlas-kicker-right { width: 100%; text-align: center; margin-bottom: 0; }
  .atlas-quote { display: none; }
  .atlas-archives { grid-template-columns: repeat(2, 1fr); }
  .atlas-heritage-row { grid-template-columns: 1fr; }
  .atlas-heritage-row img { height: 180px; }
  body.home .menu-btn {
    width: 44px;
    height: 44px;
    font-size: 1.55rem;
    color: #14301c;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }
  body.home header.site { position: sticky; }
  body.home nav.open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #f3eee3;
    padding: 0.35rem 1.1rem 0.85rem;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
    z-index: 80;
    border-top: 1px solid rgba(20, 40, 24, 0.08);
  }
  body.home nav.open ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  body.home nav.open a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.2rem 0.15rem;
    border-bottom: 1px solid rgba(20, 40, 24, 0.07);
  }
  body.home nav.open .nav-search { justify-content: flex-start; }
  body.home .logo span { font-size: 1.12rem; }
}
@media (max-width: 700px) {
  .atlas-archives { grid-template-columns: 1fr 1fr; }
  body.home .atlas-section { padding: 2.7rem 0 2.2rem; }
}
@media (max-width: 560px) {
  body.home .container { width: min(1280px, calc(100% - 1.35rem)); }
  .atlas-scene { height: 192px; }
  .scene-statue {
    left: 2.5%;
    width: 34%;
    height: 92%;
    object-fit: contain;
    object-position: center center;
  }
  .scene-flag { width: 54%; height: 70%; }
  .atlas-hero h1 { font-size: clamp(2.15rem, 10vw, 2.85rem); }
  .atlas-hero h1 .pakistan-line { font-size: 1.18em; }
  .atlas-urdu-title { font-size: 1.38rem; line-height: 1.9; }
  .atlas-urdu-sub { font-size: 0.95rem; line-height: 1.95; padding: 0 0.4rem; }
  .atlas-lead { font-size: 1.02rem; max-width: 20em; }
  .atlas-lead br { display: none; }
  .atlas-stats { grid-template-columns: 1fr 1fr; width: 100%; }
  .atlas-stat { padding: 0.72rem 0.45rem; gap: 0.42rem; }
  .atlas-stat svg { width: 20px; height: 20px; }
  .atlas-stat b { font-size: 0.84rem; }
  .atlas-stat span { font-size: 0.72rem; }
  .atlas-stat:nth-child(2n) { border-right: 0; }
  .atlas-stat:nth-child(n + 3) { border-top: 1px solid rgba(201, 162, 39, 0.18); }
  .atlas-stat:nth-child(3) { border-right: 1px solid rgba(201, 162, 39, 0.18); }
  .atlas-archives,
  .atlas-units,
  .atlas-heritage-row { grid-template-columns: 1fr; }
  .atlas-archive-visual { height: 198px; }
  .atlas-plate { font-size: 0.6rem; letter-spacing: 0.12em; }
  .atlas-cta-wrap { padding: 0.95rem 0.75rem 1.05rem; gap: 0.7rem; }
  .atlas-cta { width: min(100%, 22rem); justify-content: center; }
  .cta-rule { width: 1.8rem; }
  .atlas-kicker { letter-spacing: 0.16em; font-size: 0.62rem; }
  .atlas-quick a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
  }
  .atlas-unit h3 { font-size: 1.12rem; }
  .atlas-unit h3 .urdu { display: block; margin: 0.15rem 0 0; }
  .atlas-credit { padding: 0 0.4rem; line-height: 1.5; }
  body.home .ad-slot { width: calc(100% - 1.35rem); margin: 1.4rem auto 0; }
}
@media (max-width: 380px) {
  .scene-statue { width: 28%; }
  .atlas-hero h1 { font-size: 2.05rem; }
  .atlas-stat { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-archive,
  .atlas-unit { transition: none; }
  .atlas-archive-visual img { transition: none; transform: none !important; }
}
