/* ============================================================
   Component styles — ported verbatim from src/styles/components.css
   in the Astro reference build (hand-written CSS, no Tailwind
   dependency, so the port is a straight copy).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold-soft); color: var(--ink-deep); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- type helpers ---------- */
.urdu { font-family: var(--urdu); direction: rtl; line-height: 2.05; }
.eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold-deep);
  display: flex; align-items: center; gap: .9rem; margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.urdu-co { font-size: clamp(1.25rem, 2.8vw, 1.8rem); color: var(--ink-soft); margin: 0; }

/* ============================================================
   Navigation (sticky — supports the announcement bar above it)
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 100; margin-bottom: -73px;
  padding: 14px 0;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.site-nav .container { max-width: 1400px; display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); background: #fff; }
.brand-name { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name .en { font-family: var(--display); font-size: 1.02rem; color: #fff; letter-spacing: .02em; white-space: nowrap; }
.brand-name .ur { font-family: var(--urdu); font-size: .86rem; color: var(--gold-soft); line-height: 1.6; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 2.3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .92); text-decoration: none;
  padding: .35rem 0; border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.nav-links a:hover { color: var(--gold-soft); border-color: var(--gold-soft); }
.nav-links a.active { color: var(--gold-soft); border-color: var(--gold-soft); }
.nav-links a.nav-cta { border: 1px solid var(--gold); padding: .55rem 1.1rem; color: var(--gold-soft); }
.nav-links a.nav-cta:hover { background: var(--gold); color: var(--ink-deep); }

/* "Departments" mega-menu — click-toggled (site-interactions.js), with a
   :hover/:focus-within assist so desktop pointer users get an instant
   preview without needing to click first. */
.nav-item.has-dropdown { position: relative; display: flex; align-items: center; gap: .3rem; }
.dropdown-toggle {
  background: none; border: 0; padding: .3rem; cursor: pointer;
  color: rgba(255, 255, 255, .92); display: flex; align-items: center;
}
.dropdown-toggle svg { transition: transform .2s ease; }
.nav-item.has-dropdown.dropdown-open .dropdown-toggle svg,
.nav-item.has-dropdown:hover .dropdown-toggle svg,
.nav-item.has-dropdown:focus-within .dropdown-toggle svg { transform: rotate(180deg); }

.dropdown-menu {
  /* top: 100% (touching the trigger, no gap) is deliberate — a gap here
     is a dead zone the pointer has to cross where neither the trigger nor
     the menu is hovered, which drops :hover instantly and makes the menu
     vanish before a user can reach it diagonally. The old visual spacing
     (14px) is kept as padding-top on the menu itself instead, which is
     still inside the hoverable box. */
  list-style: none; margin: 0; padding: calc(1.2rem + 14px) 1.4rem 1.2rem; columns: 3; column-gap: 2rem; width: 640px;
  position: absolute; top: 100%; left: 0; z-index: 10;
  background: #fff; border: 1px solid var(--hairline); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-item.has-dropdown.dropdown-open .dropdown-menu,
.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { break-inside: avoid; }
.dropdown-menu a {
  display: block; padding: .5rem 0; font-family: var(--sans); font-size: .78rem;
  font-weight: 500; letter-spacing: .02em; text-transform: none;
  color: var(--ink); text-decoration: none; border-bottom: 0 !important;
}
.dropdown-menu a:hover { color: var(--gold-deep); }
.dropdown-divider { break-inside: avoid; border-top: 1px solid var(--hairline); margin: .5rem 0; height: 1px; }

.site-nav.scrolled .dropdown-toggle { color: var(--ink); }

.site-nav.scrolled { background: rgba(250, 247, 240, .96); box-shadow: 0 1px 0 var(--hairline); padding: 9px 0; backdrop-filter: blur(8px); }
.site-nav.scrolled .brand-name .en { color: var(--ink); }
.site-nav.scrolled .brand-name .ur { color: var(--gold-deep); }
.site-nav.scrolled .nav-links a { color: var(--ink); }
.site-nav.scrolled .nav-links a:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.site-nav.scrolled .nav-links a.active { color: var(--gold-deep); border-color: var(--gold-deep); }
.site-nav.scrolled .nav-links a.nav-cta { color: var(--gold-deep); border-color: var(--gold-deep); }
.site-nav.scrolled .nav-links a.nav-cta:hover { background: var(--gold); color: var(--ink-deep); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .3s, opacity .3s, background .3s; }
.site-nav.scrolled .nav-toggle span { background: var(--ink); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 84vw);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.4rem;
    background: var(--ink-deep); padding: 2rem;
    transform: translateX(100%); transition: transform .35s ease;
  }
  .nav-open .nav-links { transform: none; box-shadow: -20px 0 60px rgba(0, 0, 0, .35); }
  .nav-links a { color: #fff !important; font-size: .82rem; }
  .brand-name .en { font-size: .92rem; }

  /* The mega-menu can't float absolutely inside the fixed off-canvas
     panel — it becomes an inline collapsible section instead, single
     column (there's no room for three), no hover assist (no hover on
     touch), shown purely by the dropdown-open class from site-interactions.js. */
  .nav-item.has-dropdown { flex-direction: column; align-items: flex-start; width: 100%; gap: 0; }
  .dropdown-toggle { position: absolute; right: 0; top: 0; color: #fff; }
  .dropdown-menu {
    position: static; width: 100%; columns: 1; padding: 0; margin-top: 0; max-height: 0;
    overflow: hidden; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none;
    background: transparent; transition: max-height .3s ease, margin-top .3s ease;
  }
  .nav-item.has-dropdown.dropdown-open .dropdown-menu { max-height: 70vh; overflow-y: auto; margin-top: 1rem; }
  .dropdown-menu a { color: rgba(255, 255, 255, .82) !important; font-size: .76rem; padding: .45rem 0; }
  .dropdown-divider { border-top-color: rgba(255, 255, 255, .2); }
}

/* ============================================================
   Announcement bar
   ============================================================ */
.announce {
  position: relative; z-index: 90; width: 100%;
  background: var(--gold); color: var(--ink-deep);
  display: flex; align-items: center; gap: 1rem; justify-content: center;
  flex-wrap: wrap;
  padding: .62rem 1.1rem; text-align: center;
  font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .04em;
}
.announce .a-ur { font-family: var(--urdu); font-size: .86rem; line-height: 1.9; }
.announce a { color: var(--ink-deep); font-weight: 700; text-decoration: underline; white-space: nowrap; }
.announce button { background: none; border: 0; cursor: pointer; font-size: 1rem; line-height: 1; color: var(--ink-deep); padding: .2rem .4rem; }
@media (max-width: 760px) { .announce { gap: .4rem .8rem; } }

/* ============================================================
   Hero (home)
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 38%; background-repeat: no-repeat;
  animation: heroZoom 22s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.09); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 36, 61, .62) 0%, rgba(20, 36, 61, .38) 40%, rgba(20, 36, 61, .72) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 120px 24px 90px; max-width: 900px; }
.hero-coords {
  font-family: var(--sans); font-size: .7rem; font-weight: 700;
  letter-spacing: .38em; text-transform: uppercase; color: var(--gold-soft);
  margin: 0 0 1.4rem;
}
.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.05rem, 5.4vw, 3.55rem);
  line-height: 1.16; letter-spacing: .015em; margin: 0 0 .4rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero .hero-urdu { font-size: clamp(1.5rem, 4vw, 2.5rem); color: #fff; margin: .2rem 0 1rem; text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.hero-motto { font-size: clamp(1.15rem, 2.6vw, 1.55rem); color: var(--gold-soft); margin: .4rem 0 .1rem; }
.hero-motto-en { font-family: var(--serif); font-style: italic; font-size: .92rem; color: rgba(255, 255, 255, .78); margin: 0 0 1.6rem; }
.hero-line { font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 2.2vw, 1.2rem); color: rgba(255, 255, 255, .94); margin: 0 0 2rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-soft); border: 1px solid rgba(214, 188, 126, .65);
  padding: .62rem 1.25rem; border-radius: 999px; margin-bottom: 2.2rem;
  background: rgba(20, 36, 61, .35); backdrop-filter: blur(3px);
}
.hero-badge::before { content: "★"; font-size: .8rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; width: 1px; height: 56px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.hero-scroll::after { content: ""; position: absolute; top: -40%; left: 0; width: 100%; height: 40%; background: var(--gold-soft); animation: scrollDrip 2.2s ease-in-out infinite; }
@keyframes scrollDrip { to { top: 110%; } }

/* staggered entrance */
.fade-item { opacity: 0; animation: rise .85s cubic-bezier(.22, .8, .36, 1) forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .24s; } .d3 { animation-delay: .38s; }
.d4 { animation-delay: .52s; } .d5 { animation-delay: .66s; } .d6 { animation-delay: .8s; } .d7 { animation-delay: .94s; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block; font-family: var(--sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  padding: 1rem 1.9rem; border-radius: 2px; transition: all .25s ease; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--ink-deep); border: 1px solid var(--gold); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: #fff; color: var(--ink-deep); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--gold-soft); border: 1px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--ink-deep); }
.btn-ink { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn-ink:hover { background: var(--ink-deep); border-color: var(--ink-deep); transform: translateY(-2px); }
.btn-quiet { background: #fff; color: var(--ink); border: 1px solid var(--hairline) !important; }

/* ============================================================
   Sections — shared scaffolding
   ============================================================ */
.section { padding: 6.2rem 0; }
@media (max-width: 760px) { .section { padding: 4rem 0; } }
.section-head { margin-bottom: 3rem; }
.head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 2.5rem; }
.section-head h2 { font-family: var(--display); font-weight: 400; color: var(--ink); font-size: clamp(1.75rem, 3.6vw, 2.45rem); line-height: 1.2; margin: 0; }
.section-intro { max-width: 760px; font-size: 1.04rem; color: var(--text); }
.lead { font-size: 1.13rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Stats band
   ============================================================ */
.stats { background: var(--ink); color: #fff; padding: 3.4rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-num { font-family: var(--display); font-size: clamp(2.4rem, 4.5vw, 3.4rem); color: var(--gold-soft); line-height: 1; }
.stat-num sup { font-size: .45em; color: rgba(255, 255, 255, .7); }
.stat-label { font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .72); margin-top: .7rem; line-height: 1.8; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1rem; } }

/* ============================================================
   Fixed-ratio photo frames — every image is cropped, never stretched
   ============================================================ */
.frame { position: relative; overflow: hidden; margin: 0; background: var(--paper-2); border: 1px solid var(--hairline); box-shadow: var(--shadow); }
.frame img, img.fit { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame.gold-edge { border: 1px solid var(--gold-soft); outline: 6px solid #fff; }
.pos-top img { object-position: center 22%; }
.r-11 { aspect-ratio: 1/1; }
.r-32 { aspect-ratio: 3/2; }
.r-34 { aspect-ratio: 3/4; }
.r-43 { aspect-ratio: 4/3; }
.r-45 { aspect-ratio: 4/5; }
.r-169 { aspect-ratio: 16/9; }
.r-1610 { aspect-ratio: 16/10; }
.r-21 { aspect-ratio: 2/1; }
.r-219 { aspect-ratio: 21/9; }
.r-35 { aspect-ratio: 3/5; }
@media (max-width: 760px) { .r-21 { aspect-ratio: 16/9; } .r-45 { aspect-ratio: 3/3.4; } }

/* ============================================================
   Page hero / page head (inner pages)
   ============================================================ */
.page-hero, .page-head {
  position: relative; color: #fff; background-position: center; background-size: cover; background-repeat: no-repeat;
}
.page-hero { padding: 10.2rem 0 4rem; }
.page-head { min-height: 46vh; display: flex; align-items: flex-end; padding: 130px 0 3.2rem; }
.page-hero::after, .page-head::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 36, 61, .82), rgba(20, 36, 61, .62));
}
.page-head::after { background: linear-gradient(180deg, rgba(20, 36, 61, .55), rgba(20, 36, 61, .78)); }
.page-hero .container, .page-head .container { position: relative; z-index: 2; }
.page-hero .eyebrow, .page-head .eyebrow { color: var(--gold-soft); }
.page-hero .eyebrow::before, .page-head .eyebrow::before { background: var(--gold-soft); }
.page-hero h1, .page-head h1 { font-family: var(--display); font-weight: 400; color: #fff; line-height: 1.15; margin: .2rem 0 .3rem; }
.page-hero h1 { font-size: clamp(1.95rem, 4.6vw, 3rem); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin: 0; }
.page-hero .urdu-co, .page-head .urdu-co { color: var(--gold-soft); }

/* ============================================================
   Principal's message
   ============================================================ */
.principal-section { background: var(--paper-2); }
.principal-grid { display: grid; grid-template-columns: .8fr 1.8fr; gap: 3.2rem; align-items: start; }
@media (max-width: 860px) { .principal-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.principal-photo { margin: 0; }
.principal-photo img { border: 1px solid var(--gold-soft); outline: 6px solid #fff; box-shadow: var(--shadow); }
.principal-copy .lead { margin-top: 0; }
.principal-sign { font-family: var(--display); font-size: 1.15rem; color: var(--ink); margin-top: 1.6rem !important; }
.principal-title { display: block; font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }

/* ============================================================
   Department header — compact title bar + full ledger infographic
   shown in full below it (not layered/cropped like a photo hero, since
   the infographic carries its own dense text that a crop would mangle).
   ============================================================ */
.dept-head { background: var(--ink-deep) center / cover no-repeat; padding: 128px 0 2.2rem; position: relative; overflow: hidden; min-height: 400px; display: flex; align-items: center; }
.dept-head::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(100deg, rgba(9, 16, 28, .78) 0%, rgba(9, 16, 28, .45) 35%, rgba(9, 16, 28, .1) 55%, transparent 72%); }
.dept-head .container { position: relative; z-index: 2; width: 100%; }
.dept-head .eyebrow { color: var(--gold-soft); }
.dept-head .eyebrow::before { background: var(--gold-soft); }
.dept-head h1 { font-family: var(--display); font-weight: 400; color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.15; margin: 0; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.dept-head .urdu-co { color: var(--gold-soft); }
@media (max-width: 760px) { .dept-head { min-height: 320px; } .dept-head::before { background: linear-gradient(180deg, rgba(9, 16, 28, .82) 0%, rgba(9, 16, 28, .55) 55%, rgba(9, 16, 28, .3) 100%); } }
.dept-ledger-panel { background: linear-gradient(160deg, var(--ink-deep), var(--ink) 70%); border-top: 4px solid var(--gold); border-bottom: 4px solid var(--brick); padding: 3rem 0 2.6rem; position: relative; overflow: hidden; }
.dlp-top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.dlp-eyebrow { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin: 0; padding-bottom: .9rem; border-bottom: 1px solid rgba(214, 188, 126, .35); flex: 1 1 auto; }
.dlp-seal { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%; border: 1px dashed rgba(214, 188, 126, .55); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.dlp-seal span { font-family: var(--sans); font-size: .5rem; letter-spacing: .14em; color: var(--gold-soft); }
.dlp-seal strong { font-family: var(--display); font-weight: 400; font-size: 1.1rem; color: #fff; margin-top: .15rem; }
.dlp-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; margin-top: 1.8rem; }
.dlp-glance-label { font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 .8rem; }
.dlp-fact { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .68rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.dlp-fact .k { font-family: var(--sans); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.dlp-fact .v { font-family: var(--display); font-size: 1.25rem; color: #fff; text-align: right; }
.dlp-chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: .6rem; }
.dlp-chip { font-family: var(--serif); font-size: .84rem; color: rgba(255, 255, 255, .9); border: 1px solid rgba(214, 188, 126, .4); background: rgba(255, 255, 255, .03); padding: .55rem 1.1rem; border-radius: 2px; white-space: nowrap; }
.dlp-foot { font-family: var(--serif); font-style: italic; font-size: .78rem; color: rgba(255, 255, 255, .45); margin: 1.6rem 0 0; }
@media (max-width: 860px) {
  .dlp-grid { grid-template-columns: 1fr; gap: 2rem; }
  .dlp-fact .v { font-size: 1.1rem; }
}

/* ============================================================
   Story + traverse timeline
   ============================================================ */
.story-grid { display: grid; grid-template-columns: 1fr; gap: 3.4rem; align-items: start; margin-bottom: 4.2rem; }
.story-grid:has(> :nth-child(2)) { grid-template-columns: 1.25fr .75fr; }
.story-grid p:first-child { margin-top: 0; }
.story-figure { margin: 0; }
.story-figure img { border: 1px solid var(--hairline); box-shadow: var(--shadow); }
.story-figure figcaption, .figure-cap { font-family: var(--sans); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .8rem; line-height: 1.9; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; gap: 2rem; } }

.traverse-wrap { position: relative; }
.traverse-hint { font-family: var(--sans); font-size: .66rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); text-align: right; margin: 0 0 .9rem; }
.traverse { display: flex; gap: 1.4rem; overflow-x: auto; padding: 1.6rem 4px 1.4rem; scroll-snap-type: x mandatory; border-top: 1px solid var(--gold); scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.traverse::-webkit-scrollbar { height: 5px; }
.traverse::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.tl-card { position: relative; flex: 0 0 264px; scroll-snap-align: start; background: #fff; border: 1px solid var(--hairline); padding: 1.5rem 1.4rem 1.4rem; box-shadow: 0 8px 26px rgba(20, 36, 61, .06); }
.tl-card::before { content: ""; position: absolute; top: -1.62rem; left: 1.4rem; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.tl-card.tl-major::before { background: var(--gold); }
.tl-year { font-family: var(--display); font-size: 1.75rem; color: var(--gold-deep); line-height: 1; margin: 0 0 .55rem; }
.tl-card p { font-size: .9rem; line-height: 1.7; margin: 0; color: var(--text); }
.tl-card .tl-tag { font-family: var(--sans); font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); display: block; margin-bottom: .4rem; }

/* ============================================================
   Home-page teasers, names band, CTA bands
   ============================================================ */
.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4rem; align-items: center; margin-bottom: 4.6rem; }
.teaser:last-child { margin-bottom: 0; }
.teaser.flip .t-media { order: 2; }
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; gap: 1.8rem; } .teaser.flip .t-media { order: 0; } }
.teaser h2 { font-family: var(--display); font-weight: 400; color: var(--ink); font-size: clamp(1.6rem, 3.2vw, 2.15rem); margin: .4rem 0 1rem; }
.teaser p { margin: 0 0 1.4rem; }
.teaser-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.more-link { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid var(--gold-soft); padding-bottom: .25rem; }
.more-link::after { content: " →"; }
.more-link:hover { color: var(--ink); }

.names-band { background: var(--ink); color: #fff; padding: 4rem 0; }
.names-band h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 0 0 .4rem; color: #fff; }
.names-band .urdu-co { color: var(--gold-soft); margin: 0 0 1.6rem; }
.names-line { font-family: var(--sans); font-size: .82rem; letter-spacing: .06em; line-height: 2.5; color: rgba(255, 255, 255, .85); margin: 0 0 2rem; }
.names-line .sep { color: var(--gold); padding: 0 .45rem; }
.names-line .geo { color: var(--gold-soft); font-weight: 700; }

.cta-band { background: var(--ink-deep); color: #fff; text-align: center; padding: 4.6rem 0; }
.cta-band h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3.6vw, 2.4rem); color: #fff; margin: 0 0 .5rem; }
.cta-band .urdu-co { color: var(--gold-soft); display: block; margin: 0 0 1rem; }
.cta-band p { max-width: 640px; margin: 0 auto 2rem; color: rgba(255, 255, 255, .88); }
.cta-band .hero-actions { margin: 0; }

/* ============================================================
   Geography / department flagship section
   ============================================================ */
.geo-section {
  background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='700' viewBox='0 0 900 700' fill='none'%3E%3Cg stroke='%231D3050' stroke-opacity='0.055' stroke-width='1.4'%3E%3Cpath d='M40 620c120-90 90-190 210-230s150-160 260-180 210 30 350-40'/%3E%3Cpath d='M0 560c150-70 130-170 250-210s140-140 250-160 220 20 400-60'/%3E%3Cpath d='M80 680c110-100 70-200 190-250s160-170 270-190 200 40 360-30'/%3E%3Cpath d='M-40 500c160-60 150-150 270-190s130-120 240-140 230 10 430-80'/%3E%3C/g%3E%3C/svg%3E") right -80px top -40px no-repeat;
}
.geo-banner { margin: 0 0 3.4rem; }
.geo-banner img { border: 1px solid var(--gold-soft); outline: 6px solid #fff; box-shadow: var(--shadow); }
.geo-lead-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.2rem; align-items: start; margin-bottom: 3.6rem; }
@media (max-width: 860px) { .geo-lead-grid { grid-template-columns: 1fr; gap: 2.2rem; } }
.geo-lead-grid p:first-child { margin-top: 0; }

.founder-card { background: #fff; border-left: 3px solid var(--gold); padding: 1.8rem 1.9rem; box-shadow: var(--shadow); }
.founder-card .fc-year { font-family: var(--display); font-size: 2.1rem; color: var(--gold-deep); line-height: 1; }
.founder-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.32rem; color: var(--ink); margin: .7rem 0 .6rem; }
.founder-card p { font-size: .93rem; line-height: 1.75; margin: 0 0 .8rem; color: var(--text); }
.founder-card p:last-child { margin-bottom: 0; }

.pull-line { text-align: center; margin: 0 auto 3.6rem; max-width: 720px; padding: 2.2rem 1rem; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.pull-line .en { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--ink); display: block; }
.pull-line .urdu { font-size: clamp(1.2rem, 2.6vw, 1.55rem); color: var(--gold-deep); display: block; margin-top: .5rem; }

.rooms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; margin-bottom: 3.6rem; }
@media (max-width: 760px) { .rooms-grid { grid-template-columns: 1fr; } }
.room-card { background: #fff; border: 1px solid var(--hairline); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.room-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.room-body { padding: 1.7rem 1.8rem 1.9rem; }
.room-body .room-tag { font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); }
.room-body h3 { font-family: var(--display); font-weight: 400; font-size: 1.28rem; color: var(--ink); margin: .5rem 0 .7rem; line-height: 1.35; }
.room-body p { font-size: .92rem; line-height: 1.75; margin: 0; color: var(--text); }

.medal-band { background: var(--ink-deep); color: #fff; margin: 0 0 3.6rem; box-shadow: var(--shadow); }
.medal-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 2.6rem; align-items: center; padding: 2.6rem 2.8rem; }
.medal-20 { font-family: var(--display); font-size: clamp(4rem, 9vw, 6.4rem); color: var(--gold-soft); line-height: .95; }
.medal-copy h3 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; margin: 0 0 .6rem; color: #fff; }
.medal-copy p { font-size: .93rem; line-height: 1.75; color: rgba(255, 255, 255, .85); margin: 0; }
.medal-copy .urdu { color: var(--gold-soft); font-size: 1.05rem; margin-top: .7rem; }
.medal-photo { width: 170px; }
.medal-photo img { border: 1px solid rgba(214, 188, 126, .5); aspect-ratio: 3/5; object-fit: cover; height: auto; }
@media (max-width: 860px) { .medal-grid { grid-template-columns: 1fr; text-align: left; gap: 1.6rem; padding: 2.2rem 1.6rem; } .medal-photo { display: none; } }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.medal-roll-table {
  width: calc(100% - 5.6rem); margin: 0 2.8rem 2.6rem; border-collapse: collapse;
  font-family: var(--sans); font-size: .84rem;
}
.medal-roll-table th, .medal-roll-table td { padding: .55rem .9rem; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.medal-roll-table th { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .68rem; color: var(--gold-soft); }
.medal-roll-table td:first-child, .medal-roll-table th:first-child { color: var(--gold-soft); width: 2.4rem; }
@media (max-width: 860px) { .medal-roll-table { width: calc(100% - 3.2rem); margin: 0 1.6rem 2.2rem; font-size: .78rem; } }

.field-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; margin-bottom: 3.6rem; }
@media (max-width: 860px) { .field-grid { grid-template-columns: 1fr; gap: 2rem; } }
.field-grid img { border: 1px solid var(--hairline); box-shadow: var(--shadow); }
.field-grid h3, .faculty-block h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--ink); margin: 0 0 1rem; }
.field-grid p { margin: 0 0 1rem; }
.field-grid p:last-child { margin: 0; }

.faculty-block { margin-bottom: 3.8rem; }
.faculty-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; list-style: none; margin: 1.4rem 0 0; padding: 0; }
.faculty-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .78rem 2px; border-bottom: 1px solid var(--hairline); }
.faculty-list .f-name { font-weight: 600; color: var(--ink); font-size: .97rem; }
.faculty-list .f-role { font-family: var(--sans); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: right; }
@media (max-width: 760px) { .faculty-list { grid-template-columns: 1fr; } }

.faculty-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); align-items: start; gap: 1.6rem 1.6rem; row-gap: 2.4rem; margin-top: 1.6rem; }
.faculty-photo-card { text-align: left; }
.faculty-photo-card img, .faculty-photo-placeholder { width: 100%; border: 1px solid var(--hairline); box-shadow: var(--shadow); margin-bottom: .7rem; }
.faculty-photo-placeholder { aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; background: var(--paper-2); }
.faculty-photo-placeholder span { font-family: var(--display); font-size: 2rem; color: var(--gold-deep); }
.faculty-photo-card .f-name { font-weight: 600; color: var(--ink); font-size: .92rem; margin: 0 0 .2rem; }
.faculty-photo-card .f-role { font-family: var(--sans); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* Portal: attendance roster */
.attendance-roster { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.attendance-roster th, .attendance-roster td { padding: .7rem .6rem; border-bottom: 1px solid var(--hairline); text-align: left; }
.attendance-roster thead th { font-family: var(--sans); font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.attendance-roster tbody tr:hover { background: var(--paper-2); }

/* BS/programme conversion card */
.bs-card { background: var(--ink-deep); color: #fff; border: 1px solid var(--gold); outline: 5px solid rgba(176, 138, 60, .14); padding: 3rem 3.2rem; box-shadow: var(--shadow); }
@media (max-width: 760px) { .bs-card { padding: 2.2rem 1.5rem; } }
.bs-card .eyebrow { color: var(--gold-soft); }
.bs-card .eyebrow::before { background: var(--gold-soft); }
.bs-card h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.15rem); margin: 0 0 .3rem; color: #fff; }
.bs-card .bs-urdu { font-size: 1.25rem; color: var(--gold-soft); margin: 0 0 2rem; }
.bs-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.7rem 2rem; margin: 0 0 2.2rem; padding: 1.9rem 0; border-top: 1px solid rgba(214, 188, 126, .3); border-bottom: 1px solid rgba(214, 188, 126, .3); }
@media (max-width: 760px) { .bs-facts { grid-template-columns: repeat(2, 1fr); } }
.bs-fact .v { font-family: var(--display); font-size: 1.5rem; color: var(--gold-soft); line-height: 1.15; }
.bs-fact .k { font-family: var(--sans); font-size: .64rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .72); margin-top: .45rem; line-height: 1.7; }
.bs-note { font-size: .95rem; color: rgba(255, 255, 255, .88); font-style: italic; margin: 0 0 2rem; }
.bs-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   Programmes
   ============================================================ */
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: .9rem; margin: 2.4rem 0 1.6rem; }
.prog-card { background: #fff; border: 1px solid var(--hairline); font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .05em; color: var(--ink); padding: 1.05rem 1.1rem; text-align: center; transition: transform .25s ease, box-shadow .25s ease; }
.prog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 36, 61, .08); }
.prog-note { font-size: .92rem; color: var(--muted); max-width: 820px; }

/* ============================================================
   Alumni
   ============================================================ */
.alumni-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-bottom: 2.6rem; }
@media (max-width: 760px) { .alumni-grid { grid-template-columns: 1fr; } }
.alum-card { background: #fff; border: 1px solid var(--hairline); border-top: 3px solid var(--gold); padding: 1.7rem 1.6rem; box-shadow: 0 8px 26px rgba(20, 36, 61, .05); }
.alum-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.34rem; color: var(--ink); margin: 0 0 .3rem; }
.alum-card p { font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0; }
.alum-photo { margin: 0; }
.alum-photo img { border: 1px solid var(--hairline); box-shadow: var(--shadow); }

/* ============================================================
   Gallery
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: .9rem; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; } }
.g-item { position: relative; overflow: hidden; border: 1px solid var(--hairline); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-item:hover img { transform: scale(1.045); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-item figcaption { position: absolute; inset: auto 0 0 0; padding: 1.6rem .85rem .65rem; background: linear-gradient(180deg, transparent, rgba(20, 36, 61, .82)); color: #fff; font-family: var(--sans); font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

body.lightbox-locked { overflow: hidden; }
.lightbox-overlay { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 2.5rem; background: rgba(15, 28, 48, .92); }
.lightbox-overlay.open { display: flex; }
.lightbox-overlay figure { margin: 0; max-width: 92vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-overlay img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; object-fit: contain; box-shadow: var(--shadow); }
.lightbox-overlay figcaption { margin-top: 1rem; color: var(--paper); font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.lightbox-close { position: absolute; top: 1.4rem; right: 1.6rem; width: 2.6rem; height: 2.6rem; border: 1px solid rgba(245, 239, 225, .4); border-radius: 50%; background: transparent; color: var(--paper); font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-close:hover { background: rgba(245, 239, 225, .12); }
.gallery-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.gallery-filters button {
  font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: #fff; border: 1px solid var(--hairline); color: var(--ink); padding: .55rem 1rem; cursor: pointer; transition: background .2s, color .2s;
}
.gallery-filters button.active, .gallery-filters button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================================================
   Departments
   ============================================================ */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 1rem; margin: 2.4rem 0 1.8rem; }
.dept-card { background: #fff; border: 1px solid var(--hairline); border-top: 3px solid var(--gold-soft); padding: 1.5rem 1.4rem; transition: transform .25s ease, box-shadow .25s ease; }
.dept-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20, 36, 61, .08); }
.dept-card-thumb { margin: -1.5rem -1.4rem 1rem; aspect-ratio: 4/1; overflow: hidden; background: var(--ink-deep); border-bottom: 1px solid var(--hairline); display: flex; align-items: center; justify-content: center; }
.dept-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dept-card-thumb-fallback { font-family: var(--display); font-weight: 400; font-size: 1.2rem; letter-spacing: .03em; color: var(--gold-soft); text-align: center; padding: 0 1rem; }
.dept-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.14rem; color: var(--ink); margin: 0 0 .4rem; }
.dept-card p { font-size: .85rem; line-height: 1.7; color: var(--muted); margin: 0; }
.dept-card .d-tag { font-family: var(--sans); font-size: .58rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); display: block; margin-bottom: .5rem; }
.dept-card.note { background: var(--paper-2); border-style: dashed; border-top-style: solid; }
.status-badge { font-family: var(--sans); font-size: .58rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; display: inline-block; }
.status-badge.complete { background: rgba(176, 138, 60, .15); color: var(--gold-deep); }
.status-badge.coming-soon { background: var(--paper-2); color: var(--muted); border: 1px dashed var(--hairline); }

/* Faculty directory table */
.faculty-directory { width: 100%; border-collapse: collapse; margin-top: 1.6rem; }
.faculty-directory th { text-align: left; font-family: var(--sans); font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: .8rem 1rem; border-bottom: 2px solid var(--ink); }
.faculty-directory td { padding: .85rem 1rem; border-bottom: 1px solid var(--hairline); font-size: .93rem; }
.faculty-directory tr:hover td { background: var(--paper-2); }
.faculty-search { width: 100%; max-width: 420px; font-family: var(--serif); font-size: .98rem; padding: .75rem .9rem; border: 1px solid var(--hairline); background: #fff; margin-bottom: 1.6rem; }
.faculty-search:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

/* ============================================================
   Notices
   ============================================================ */
.notice-list { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.notice-list li { display: flex; gap: 1.4rem; padding: 1rem 2px; border-bottom: 1px solid var(--hairline); align-items: baseline; flex-wrap: wrap; }
.notice-list .n-date { font-family: var(--sans); font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); white-space: nowrap; min-width: 110px; }
.notice-list .n-text { font-size: .95rem; margin: 0; }
.notice-list .n-cat { font-family: var(--sans); font-size: .58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   Admissions
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; margin: 0 0 3.4rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 1.8rem; } }
.step .s-num { font-family: var(--display); font-size: 2.5rem; color: var(--gold); line-height: 1; border-bottom: 1px solid var(--hairline); padding-bottom: .8rem; margin-bottom: 1rem; }
.step h3 { font-family: var(--display); font-weight: 400; font-size: 1.22rem; color: var(--ink); margin: 0 0 .5rem; }
.step p { font-size: .93rem; margin: 0; color: var(--text); }

.adm-card { background: #fff; border: 1px solid var(--hairline); border-top: 3px solid var(--gold); box-shadow: var(--shadow); padding: 2.6rem 2.8rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.6rem; align-items: center; }
@media (max-width: 860px) { .adm-card { grid-template-columns: 1fr; padding: 2rem 1.5rem; } }
.adm-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.55rem; color: var(--ink); margin: 0 0 .8rem; }
.adm-card p { font-size: .96rem; margin: 0 0 1rem; }
.adm-card p:last-child { margin: 0; }
.adm-contacts { display: flex; flex-direction: column; gap: .9rem; }
.tel-btn { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border: 1px solid var(--ink); padding: 1rem 1.3rem; text-decoration: none; transition: background .25s, color .25s; }
.tel-btn .who { font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.tel-btn .num { font-family: var(--display); font-size: 1.12rem; color: var(--gold-deep); white-space: nowrap; }
.tel-btn:hover { background: var(--ink); }
.tel-btn:hover .who { color: #fff; }
.tel-btn:hover .num { color: var(--gold-soft); }
.adm-meta { font-family: var(--sans); font-size: .78rem; color: var(--muted); line-height: 2; }
.adm-meta a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid var(--gold-soft); }

/* ============================================================
   Contact form
   ============================================================ */
.contact-form { max-width: 560px; }
.contact-form label { display: block; font-family: var(--sans); font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 1.1rem 0 .4rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="number"],
.contact-form input[type="date"], .contact-form select, .contact-form textarea {
  width: 100%; font-family: var(--serif); font-size: .98rem; color: var(--text);
  padding: .75rem .85rem; border: 1px solid var(--hairline); background: var(--paper); border-radius: 2px;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.contact-form .hp-field { position: absolute; left: -9999px; }
.form-status { font-family: var(--sans); font-size: .82rem; margin-top: 1rem; }
.form-status.ok { color: #2c6e3f; }
.form-status.err { color: #a33; }

/* ============================================================
   Visitor counter widget
   ============================================================ */
.visit-counter { font-family: var(--sans); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.visit-counter .n { color: var(--gold-soft); font-weight: 700; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--ink-deep); color: rgba(255, 255, 255, .82); padding: 4.6rem 0 2rem; margin-top: 2rem; }
.footer-motto { text-align: center; margin-bottom: 3rem; }
.footer-motto .urdu { font-size: 1.7rem; color: var(--gold-soft); }
.footer-motto .tr { font-family: var(--serif); font-style: italic; font-size: .9rem; color: rgba(255, 255, 255, .6); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 2.6rem; padding-top: 2.6rem; border-top: 1px solid rgba(255, 255, 255, .14); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer h4 { font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 1rem; }
.footer p, .footer li { font-size: .9rem; line-height: 1.9; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer a { color: rgba(255, 255, 255, .85); text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.footer a:hover { color: var(--gold-soft); border-color: var(--gold-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .14); font-family: var(--sans); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }

/* ============================================================
   Motion preferences
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-item, .reveal { opacity: 1 !important; transform: none !important; }
}
