/* Hassan Baiga — v7 CLOSE structural clone of heynesh layout */
:root {
  --bg: #D6D0BF;
  --card: #DDDBC8;
  --ink: #111111;
  --mute: #5c5c5c;
  --mute-2: #666666;
  --yellow: #FFFF23;
  --dark: #141414;
  --dark-card: #1c1c1c;
  --dark-side: rgba(28, 28, 28, 0.88);
  --white: #f7f5ef;
  --sidebar-w: 180px;
  --radius: 20px;
  --radius-sm: 16px;
  --display: "Syne", "Space Grotesk", system-ui, sans-serif;
  --ui: "Space Grotesk", "Syne", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --urdu: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-blobs { animation: none !important; }
  .footer-wordmark { animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
strong { font-weight: 600; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--yellow); color: var(--ink); padding: 0.6rem 1rem;
  border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.45rem; border-radius: 999px;
  font-family: var(--ui);
  font-weight: 700; font-size: 0.9rem; letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}
.pill-fill { background: var(--yellow); color: var(--ink); }
.pill-fill:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.12); }
.pill-outline {
  border: 1.5px solid rgba(17,17,17,0.22); background: transparent;
}
.pill-outline:hover { border-color: var(--ink); }

.label-pill {
  display: inline-flex; align-items: center;
  padding: 0.35rem 0.75rem; margin: 0 0 1.1rem;
  border: 1.5px solid rgba(17,17,17,0.35);
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
}
.label-pill-dark { border-color: rgba(255,255,255,0.35); color: var(--white); }

.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
  color: var(--ink);
}
.display-light { color: var(--white); }
.lede {
  max-width: 36rem; margin: 0 0 2.5rem;
  color: var(--mute); font-size: 1.05rem;
}
.lede-light { color: #9a9a9a; }
.lede strong { color: var(--ink); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem 1.25rem 3.5rem;
  overflow: visible;
  isolation: isolate;
}
.hero-blobs {
  position: absolute; inset: -20%;
  background:
    radial-gradient(ellipse 45% 40% at 18% 30%, rgba(40,35,28,0.28), transparent 60%),
    radial-gradient(ellipse 40% 35% at 82% 25%, rgba(30,28,22,0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 55% 85%, rgba(50,45,35,0.2), transparent 60%),
    radial-gradient(ellipse 30% 28% at 70% 60%, rgba(20,18,14,0.12), transparent 50%);
  filter: blur(48px);
  z-index: 0;
  pointer-events: none;
  animation: blobDrift 18s ease-in-out infinite alternate;
}
@keyframes blobDrift {
  to { transform: translate(2%, -1%) scale(1.04); }
}

/* Giant yellow Urdu wordmark — ABOVE portrait so it stays readable */
.hero-brand {
  position: absolute;
  left: 0; right: 0;
  top: 1.1rem;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  user-select: none;
}
.hero-wordmark-img {
  display: block;
  width: min(92vw, 920px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 28px rgba(255,255,35,0.35));
}
.hero-wordmark { display: none; }
.hero-wordmark-latin {
  margin: 0.15rem 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(0.65rem, 1.4vw, 0.9rem);
  letter-spacing: 0.32em;
  color: var(--ink);
  opacity: 0.8;
}

/* Split uppercase nav across middle */
.hero-nav {
  position: absolute;
  left: 0; right: 0;
  top: auto;
  bottom: 38%;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 3.5rem);
  pointer-events: none;
}
.hero-nav a,
.hero-nav .nav-sep {
  pointer-events: auto;
  font-family: var(--ui);
  font-weight: 600;
  font-size: clamp(0.65rem, 1.1vw, 0.82rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-nav a:hover { color: #000; }
.hero-nav-l,
.hero-nav-r {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(214, 208, 191, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}
.nav-sep { opacity: 0.35; pointer-events: none; }

.hero-stage {
  position: relative;
  z-index: 3;
  width: min(72%, 380px);
  margin: 0 auto;
  margin-top: clamp(5.5rem, 14vh, 8.5rem);
}

/* Cutout mode (default): transparent PNG so yellow wordmark shows THROUGH */
.hero-portrait-wrap {
  position: relative;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
.hero-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(0.95) contrast(1.05);
  filter: saturate(0.95) contrast(1.05) drop-shadow(0 28px 50px rgba(0,0,0,0.28));
}

/* Fallback card mode when JPG loads */
.hero-portrait-wrap.is-card {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
  background: var(--card);
}
.hero-portrait-wrap.is-card .hero-portrait {
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.92) contrast(1.04);
  aspect-ratio: 4 / 5;
}

.hero-overlay {
  position: absolute;
  left: 50%; top: 52%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: 92%;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.85rem, 5.5vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0,0,0,0.45), 0 0 2px rgba(0,0,0,0.3);
  pointer-events: none;
}
.hero-overlay span {
  display: block;
  animation: rise 0.9s var(--ease) both;
}
.hero-overlay span:nth-child(2) { animation-delay: 0.08s; }
.hero-overlay span:nth-child(3) { animation-delay: 0.16s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(1.1em); }
  to { opacity: 1; transform: none; }
}

.hero-glass {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(180deg, rgba(214,208,191,0.05) 0%, rgba(214,208,191,0.55) 55%, rgba(214,208,191,0.82) 100%),
    rgba(221, 219, 200, 0.28);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  transition: opacity 0.15s linear;
}
.hero-overlay { z-index: 2; }

.glass {
  background: rgba(221, 219, 200, 0.52);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.float {
  position: absolute;
  z-index: 5;
  padding: 0.9rem 1.05rem;
  animation: floatIn 0.8s var(--ease) both;
}
.float strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.float span {
  display: block;
  font-size: 0.72rem;
  color: var(--mute);
  margin-top: 0.15rem;
}
.float-years { left: -2.2rem; top: 10%; animation-delay: 0.35s; }
.float-geo { right: -2.4rem; top: 26%; animation-delay: 0.45s; text-align: right; }
.float-traits { left: -1.6rem; bottom: 12%; animation-delay: 0.55s; }
.float-traits ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.28rem;
  font-size: 0.78rem; font-weight: 600; color: var(--ink);
}
.float-traits li { display: flex; align-items: center; gap: 0.4rem; }
.float-traits .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 2px rgba(255,255,35,0.35);
  flex-shrink: 0;
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.hero-actions {
  position: relative; z-index: 4;
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  justify-content: center;
  margin-top: 1.5rem;
  animation: floatIn 0.8s var(--ease) 0.5s both;
}

.hero-corner {
  position: absolute; z-index: 4;
  margin: 0;
  font-size: 0.72rem;
  color: var(--mute);
  max-width: 15rem;
  line-height: 1.4;
}
.hero-corner-l { left: 1.5rem; bottom: 1.5rem; }
.hero-corner-r { right: 1.5rem; bottom: 1.5rem; text-align: right; }

/* hero mobile rules consolidated below */

/* ---------- SHELL / SIDEBAR ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 1.25rem;
  width: min(100% - 2rem, 1280px);
  margin: 0 auto;
  padding: 2rem 0 4rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  scrollbar-width: thin;
  z-index: 20;
}

.side-card {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 0.95rem;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.side-brand-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.side-brand .mark {
  display: inline-grid; place-items: center;
  min-width: 2.55rem; height: 2.1rem;
  padding: 0 0.55rem;
  border-radius: 8px;
  background: var(--yellow);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.side-social {
  display: flex; gap: 0.3rem;
}
.side-social a {
  width: 1.55rem; height: 1.55rem;
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 0.55rem;
  font-weight: 700;
  background: rgba(0,0,0,0.06);
  color: var(--mute);
}
.side-social a:hover { background: var(--yellow); color: var(--ink); }
.side-brand p {
  margin: 0; font-size: 0.72rem; color: var(--mute); line-height: 1.45;
}

.side-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  padding: 0.75rem 0.55rem;
  position: relative;
}
.side-stats::after {
  content: "";
  position: absolute;
  left: 50%; top: 18%; bottom: 18%;
  width: 1px;
  background: rgba(17,17,17,0.12);
}
.side-stats > div { text-align: center; padding: 0.25rem; }
.side-stats b {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.side-stats span {
  font-size: 0.58rem; color: var(--mute);
  text-transform: uppercase; letter-spacing: 0.06em;
}

.side-nav {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 0.55rem;
}
.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
  background: transparent;
  transition: background 0.2s, color 0.2s;
}
.nav-pill svg { flex-shrink: 0; opacity: 0.7; }
.nav-pill:hover { color: var(--ink); background: rgba(0,0,0,0.04); }
.nav-pill.is-active {
  background: var(--yellow);
  color: var(--ink);
}
.nav-pill.is-active svg { opacity: 1; }

.side-email {
  display: flex; gap: 0.3rem; align-items: center; padding: 0.4rem;
}
.side-email input {
  flex: 1; min-width: 0;
  border: none; background: rgba(255,255,255,0.4);
  border-radius: 10px;
  padding: 0.55rem 0.55rem;
  font-size: 0.62rem;
  color: var(--ink);
  font-family: var(--body);
}
.side-email input:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
.copy-btn {
  flex-shrink: 0;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
}
.copy-btn.copied { background: var(--yellow); color: var(--ink); }

.side-cta { width: 100%; text-align: center; padding: 0.85rem 1rem; }

/* Dark sidebar when work section is active (heynesh pattern) */
.sidebar.is-dark .side-card {
  background: var(--dark-side);
  color: var(--white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sidebar.is-dark .side-brand p,
.sidebar.is-dark .side-stats span,
.sidebar.is-dark .nav-pill { color: #a8a8a8; }
.sidebar.is-dark .side-stats b { color: #fff; }
.sidebar.is-dark .side-stats::after { background: rgba(255,255,255,0.12); }
.sidebar.is-dark .nav-pill:hover { color: #fff; background: rgba(255,255,255,0.06); }
.sidebar.is-dark .nav-pill.is-active { background: var(--yellow); color: var(--ink); }
.sidebar.is-dark .side-email input {
  background: rgba(255,255,255,0.08);
  color: #ddd;
}
.sidebar.is-dark .side-social a {
  background: rgba(255,255,255,0.08);
  color: #bbb;
}
.sidebar.is-dark .copy-btn { background: #fff; color: var(--ink); }

.content { min-width: 0; }

/* ---------- SECTIONS ---------- */
.section {
  position: relative;
  padding: 3.5rem 1.5rem 4rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.18);
  margin-bottom: 1.25rem;
}
.section.journey {
  background: transparent;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.section.work {
  background: var(--dark);
  color: var(--white);
  padding: 3.5rem 1.75rem 4.5rem;
}
.section.connect {
  background: transparent;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.section.services {
  background: rgba(255,255,255,0.22);
}

/* ---------- TIMELINE ---------- */
.timeline {
  position: relative;
  padding: 1.5rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.timeline-path {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 90px;
  height: 100%;
  transform: translateX(-50%);
  color: rgba(17,17,17,0.22);
  pointer-events: none;
  overflow: visible;
}
.timeline-curve { stroke-dasharray: none; }

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  width: 100%;
}
.tl-dot {
  position: absolute;
  left: 50%;
  top: 1.6rem;
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(255,255,35,0.28);
  z-index: 2;
}
.tl-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.2rem;
  max-width: 30rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.05);
  position: relative;
}
.tl-card::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 2px;
  background: rgba(17,17,17,0.08);
}
.tl-left .tl-card { justify-self: end; text-align: left; }
.tl-left .tl-card::before { left: 0.85rem; }
.tl-right .tl-card { justify-self: start; grid-column: 2; }
.tl-right .tl-card::before { right: 0.85rem; left: auto; }
.tl-left .tl-card { grid-column: 1; padding-left: 1.6rem; }
.tl-right .tl-card { padding-right: 1.6rem; }

.tl-year {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 4.6rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--yellow);
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 0 rgba(0,0,0,0.04);
}
.tl-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
}
.tl-teaser {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--mute);
}
.tl-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.tl-handle {
  font-size: 0.72rem;
  color: var(--mute-2);
  font-weight: 500;
}
.tl-more {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  color: var(--ink);
}
.tl-more:hover { background: var(--yellow); }
.tl-expand {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(17,17,17,0.1);
}
.tl-expand p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--mute-2);
}
.tl-expand[hidden] { display: none; }

.tl-cruiser {
  margin: 0.25rem 0 0.75rem;
  opacity: 0.95;
}

@media (max-width: 820px) {
  .timeline-path { left: 12px; transform: none; width: 40px; }
  .tl-item { grid-template-columns: 1fr; padding-left: 2rem; gap: 0; }
  .tl-dot { left: 12px; margin-left: 0; }
  .tl-left .tl-card,
  .tl-right .tl-card {
    grid-column: 1;
    justify-self: stretch;
    text-align: left;
    max-width: none;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }
  .tl-left .tl-card::before,
  .tl-right .tl-card::before { left: 0.75rem; right: auto; }
}

/* ---------- WORK ---------- */
.work-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 0.5rem;
}
.work-head .lede { margin-bottom: 1.5rem; }
@media (max-width: 700px) {
  .work-head { grid-template-columns: 1fr; }
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark-card);
  min-height: 460px;
  transition: transform 0.35s var(--ease);
}
.work-card:hover { transform: translateY(-6px); }
.work-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.6s var(--ease);
}
.work-card:hover img { transform: scale(1.05); }
.work-tags {
  position: absolute;
  top: 0.85rem; left: 0.85rem; right: 0.85rem;
  z-index: 2;
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  justify-content: flex-start;
}
.work-tags span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #eee;
  backdrop-filter: blur(6px);
}
.work-tags span:first-child {
  background: rgba(255,255,35,0.95);
  color: var(--ink);
}
.work-meta {
  position: relative; z-index: 1;
  margin-top: auto;
  padding: 1.4rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.9) 42%);
}
.work-meta h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: #fff;
}
.work-meta p {
  margin: 0 2.4rem 0 0;
  font-size: 0.85rem;
  color: #a8a8a8;
}
.work-arrow {
  position: absolute;
  right: 1.2rem; bottom: 1.4rem;
  width: 2.35rem; height: 2.35rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.work-card:hover .work-arrow,
.work-card:focus-visible .work-arrow {
  opacity: 1; transform: none;
}

@media (max-width: 960px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 380px; }
}

/* ---------- SERVICES ---------- */
.svc-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: rgba(255,255,255,0.35);
  border-radius: var(--radius);
  padding: 0.5rem;
  margin-bottom: 1rem;
}
.svc-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 0.75rem;
  border-radius: 14px;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--mute);
  transition: background 0.2s, color 0.2s;
}
.svc-tab:hover { color: var(--ink); }
.svc-tab.is-active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.svc-ico {
  display: inline-grid; place-items: center;
  width: 1.35rem; height: 1.35rem;
  border-radius: 6px;
  background: var(--yellow);
  font-size: 0.7rem;
  color: var(--ink);
}
.svc-panels { margin-bottom: 1.5rem; }
.svc-panel p {
  margin: 0;
  padding: 0.25rem 0.35rem 0.5rem;
  color: var(--mute);
  max-width: 42rem;
}
.svc-panel[hidden] { display: none; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.svc-card {
  background: rgba(255,255,255,0.38);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.svc-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.55);
}
.svc-n {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 0.8rem;
  letter-spacing: -0.04em;
}
.svc-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}
.svc-card p {
  margin: 0;
  color: var(--mute);
  font-size: 0.92rem;
  margin-top: auto;
}

@media (max-width: 700px) {
  .svc-tabs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
}

/* ---------- CONNECT + FOOTER ---------- */
.connect-actions {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  margin-bottom: 2rem;
}
.connect-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
.connect-links a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--card);
  border-radius: var(--radius-sm);
  transition: transform 0.2s var(--ease);
}
.connect-links a:hover { transform: translateX(4px); }
.connect-links span {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.connect-links small { color: var(--mute); font-size: 0.8rem; }

@media (max-width: 560px) {
  .connect-links { grid-template-columns: 1fr; }
}

.site-footer {
  margin-top: 1rem;
  padding: 2rem 0.5rem 5rem;
  overflow: hidden;
}
.footer-wordmark {
  margin: 0 0 1.5rem;
  font-family: var(--urdu);
  font-weight: 700;
  font-size: clamp(2.4rem, 9vw, 6rem);
  line-height: 1.35;
  color: var(--yellow);
  white-space: nowrap;
  user-select: none;
  width: max-content;
  animation: marqueeHint 42s linear infinite;
}
@keyframes marqueeHint {
  from { transform: translateX(0); }
  to { transform: translateX(-18%); }
}
.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--mute);
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- MOBILE ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(214, 208, 191, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(17,17,17,0.08);
  gap: 0.55rem;
  justify-content: center;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
    width: min(100% - 1.5rem, 1280px);
    padding-top: 1rem;
  }
  .sidebar {
    position: static;
    max-height: none;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand stats cta"
      "nav nav nav"
      "email email email";
    gap: 0.6rem;
    align-items: stretch;
  }
  .side-brand { grid-area: brand; }
  .side-brand p { display: none; }
  .side-stats { grid-area: stats; }
  .side-nav {
    grid-area: nav;
    flex-direction: row;
    flex-wrap: wrap;
    overflow-x: auto;
  }
  .side-email { grid-area: email; }
  .side-cta { grid-area: cta; align-self: center; width: auto; padding-inline: 1.1rem; }
  .mobile-bar { display: flex; }
  .section { padding: 2.5rem 1.15rem 3rem; }
  .section.work { padding: 2.5rem 1.15rem 3.5rem; }
  .site-footer { padding-bottom: 6rem; }
}

@media (max-width: 560px) {
  .sidebar {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand cta"
      "stats stats"
      "nav nav"
      "email email";
  }
}




.hero-portrait-wrap.is-sketch {
  background: transparent;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0,0,0,0.18);
}
.hero-portrait-wrap.is-sketch .hero-portrait {
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 1 / 1;
  filter: none;
}


/* ========== MOBILE-FIRST v8m: 700 / 480 ========== */
@media (max-width: 700px) {
  body { overflow-x: hidden; }

  .hero {
    min-height: auto;
    padding: 0.65rem 0.85rem 2.25rem;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .hero-brand {
    position: relative;
    top: 0;
    left: auto;
    right: auto;
    margin: 0.15rem auto 0.35rem;
    width: 100%;
    z-index: 6;
  }

  .hero-wordmark-img {
    width: min(88vw, 340px);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 16px rgba(255,255,35,0.28));
  }

  .hero-wordmark-latin {
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    margin-top: 0.1rem;
  }

  /* Compact top nav under wordmark — not mid-portrait */
  .hero-nav {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    top: auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.15rem 0 0.55rem;
    z-index: 6;
    pointer-events: none;
  }
  .hero-nav-l,
  .hero-nav-r {
    pointer-events: auto;
    gap: 0.3rem;
    padding: 0.32rem 0.55rem;
    background: rgba(214, 208, 191, 0.82);
  }
  .hero-nav a,
  .hero-nav .nav-sep {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .hero-stage {
    width: min(86vw, 320px);
    margin-top: 0.25rem;
    overflow: visible;
  }

  .hero-portrait-wrap.is-sketch .hero-portrait {
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .hero-overlay {
    top: 54%;
    width: 94%;
    font-size: clamp(1.25rem, 7.2vw, 1.85rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
  }

  /* Smaller floats — sides/bottom, less face coverage */
  .float {
    padding: 0.55rem 0.7rem;
    max-width: 42%;
  }
  .float strong { font-size: 0.88rem; }
  .float span { font-size: 0.62rem; }
  .float-years { left: -0.15rem; top: auto; bottom: 14%; }
  .float-geo { right: -0.15rem; top: auto; bottom: 14%; text-align: right; }
  .float-traits {
    left: 0.25rem;
    right: 0.25rem;
    bottom: -0.35rem;
    max-width: none;
    width: auto;
    padding: 0.45rem 0.65rem;
  }
  .float-traits ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.55rem;
    font-size: 0.65rem;
  }

  .hero-actions {
    margin-top: 1.85rem;
    gap: 0.5rem;
  }
  .hero-actions .pill {
    padding: 0.75rem 1.15rem;
    font-size: 0.82rem;
  }

  .hero-corner { display: none; }

  /* Sidebar → compact header */
  .shell {
    grid-template-columns: 1fr;
    width: min(100% - 1.25rem, 1280px);
    padding: 0.75rem 0 5.5rem;
    gap: 0.85rem;
    overflow-x: hidden;
  }

  .sidebar {
    position: static;
    max-height: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: visible;
  }

  .side-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.75rem;
  }
  .side-brand-top {
    margin-bottom: 0;
    width: 100%;
    align-items: center;
  }
  .side-brand p,
  .side-stats,
  .side-email { display: none; }

  .side-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.35rem;
    padding: 0.45rem;
  }
  .side-nav::-webkit-scrollbar { display: none; }
  .nav-pill {
    flex: 0 0 auto;
    padding: 0.45rem 0.7rem;
    font-size: 0.65rem;
    white-space: nowrap;
  }

  .side-cta {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
  }

  .mobile-bar { display: flex; }

  .section {
    padding: 2rem 0.85rem 2.5rem;
    border-radius: 18px;
    overflow-x: hidden;
  }
  .section.journey {
    padding-left: 0.15rem;
    padding-right: 0.15rem;
  }
  .section.work {
    padding: 2rem 0.85rem 2.75rem;
  }

  .display {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }

  .work-head { grid-template-columns: 1fr; }
  .work-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .work-card {
    min-height: 360px;
    width: 100%;
  }
  .work-card img {
    object-fit: cover;
  }

  .timeline {
    gap: 1.35rem;
    overflow-x: hidden;
  }
  .timeline-path {
    left: 10px;
    transform: none;
    width: 36px;
  }
  .tl-item {
    grid-template-columns: 1fr;
    padding-left: 1.75rem;
    gap: 0;
  }
  .tl-dot { left: 10px; margin-left: 0; }
  .tl-left .tl-card,
  .tl-right .tl-card {
    grid-column: 1;
    justify-self: stretch;
    max-width: none;
    text-align: left;
    padding: 1.1rem 1.05rem 1rem 1.25rem;
  }
  .tl-left .tl-card::before,
  .tl-right .tl-card::before { left: 0.65rem; right: auto; }
  .tl-year { font-size: clamp(2.2rem, 12vw, 3.2rem); }

  .svc-tabs { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }

  .connect-links { grid-template-columns: 1fr; }

  .site-footer { padding-bottom: 6.5rem; }
  .content { padding-bottom: 0.5rem; }
}

@media (max-width: 480px) {
  .hero { padding: 0.4rem 0.65rem 1.85rem; }

  .hero-wordmark-img {
    width: min(88vw, 300px);
  }

  /* Hide mid-face clutter on very small phones */
  .float-traits { display: none; }
  .float-years,
  .float-geo {
    bottom: 8%;
    max-width: 46%;
    padding: 0.45rem 0.55rem;
  }
  .float strong { font-size: 0.78rem; }
  .float span { font-size: 0.55rem; }

  .hero-stage { width: min(90vw, 300px); }

  .hero-overlay {
    font-size: clamp(1.1rem, 7vw, 1.55rem);
    top: 56%;
  }

  /* Optional: collapse hero-nav to a single compact row; hide if too busy */
  .hero-nav {
    gap: 0.25rem;
  }
  .hero-nav-l,
  .hero-nav-r {
    padding: 0.28rem 0.45rem;
  }
  .hero-nav a,
  .hero-nav .nav-sep {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
  }

  .hero-actions .pill {
    width: 100%;
    max-width: 16rem;
  }

  .shell {
    width: min(100% - 0.85rem, 1280px);
    padding-bottom: 5.75rem;
  }

  .work-card { min-height: 320px; }

  .section { padding: 1.65rem 0.7rem 2.1rem; }
  .section.work { padding: 1.65rem 0.7rem 2.35rem; }
}
