/* Awais Jaffery — personal site */
:root {
  --ink: #141414;
  --gold: #c8a24a;
  --gold-soft: #e8d5a3;
  --paper: #f7f5f0;
  --muted: #6b6b6b;
  --night: #0d0d12;
  --night-2: #16161d;
  --line: rgba(0,0,0,.09);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid var(--line);
}
.nav.dark { background: rgba(13,13,18,.82); border-bottom-color: rgba(255,255,255,.08); }
.nav-inner { max-width: 1140px; margin: 0 auto; padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center; }
.brand { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: .18em; font-size: 15px; text-decoration: none; }
.brand span { color: var(--gold); }
.nav.dark .brand { color: #fff; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { text-decoration: none; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; transition: color .2s; }
.nav.dark .nav-links a { color: #999; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav.dark .nav-links a:hover, .nav.dark .nav-links a.active { color: #fff; }
@media (max-width: 640px) { .nav-links { gap: 14px; } .nav-links a { font-size: 11px; } }

/* ---------- hero ---------- */
.hero { min-height: 92vh; display: flex; align-items: center; background: var(--ink); color: #fff;
  position: relative; overflow: hidden; padding: 110px 0 70px; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,10,12,.92) 30%, rgba(10,10,12,.45) 65%, rgba(10,10,12,.15)); }
.hero-content { position: relative; z-index: 2; }
.kicker { display: inline-block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 18px; }
.hero h1 { font-size: clamp(42px, 7vw, 84px); font-weight: 700; max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { margin-top: 20px; font-size: 17px; color: #c9c9c9; max-width: 52ch; }
.cta-row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 30px; border-radius: 999px; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; font-weight: 700; text-decoration: none;
  transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.gold { background: var(--gold); color: #141414; box-shadow: 0 8px 24px rgba(200,162,74,.35); }
.btn.ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn.dark-ghost { border: 1px solid rgba(0,0,0,.25); color: var(--ink); }

/* ---------- identity cards ---------- */
.identities { background: var(--paper); padding: 84px 0; }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head h2 em { font-style: normal; color: var(--gold); }
.section-head p { color: var(--muted); margin-top: 10px; max-width: 60ch; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 34px rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s; text-decoration: none; display: block; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0,0,0,.12); }
.card .ph { aspect-ratio: 4/3; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .ph img { transform: scale(1.05); }
.card .tx { padding: 26px 24px 28px; }
.card .tx .n { font-size: 11px; letter-spacing: .2em; color: var(--gold); font-weight: 700; text-transform: uppercase; }
.card .tx h3 { font-size: 21px; margin: 8px 0; }
.card .tx p { font-size: 14px; color: var(--muted); }
.card .tx .more { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.card .tx .more::after { content: ' →'; color: var(--gold); }

/* ---------- feature strip ---------- */
.strip { background: var(--ink); color: #fff; padding: 60px 0; }
.strip-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.strip h2 { font-size: clamp(24px, 3.4vw, 38px); }
.strip h2 em { font-style: normal; color: var(--gold); }
.strip p { color: #999; margin-top: 8px; font-size: 14px; }

/* ---------- quote ---------- */
.quote { padding: 90px 0; text-align: center; background: #fff; }
.quote blockquote { font-size: clamp(20px, 3vw, 30px); font-style: italic; color: #333;
  max-width: 640px; margin: 0 auto; line-height: 1.5; font-weight: 400; }
.quote cite { display: block; margin-top: 18px; font-style: normal; font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* ---------- music page ---------- */
.night { background: var(--night); color: #fff; }
.mhero { padding: 150px 0 70px; position: relative; overflow: hidden; }
.mhero h1 { font-size: clamp(40px, 6.5vw, 76px); max-width: 14ch; }
.mhero h1 em { font-style: normal; color: var(--gold); }
.mhero p { color: #a9a9b3; margin-top: 18px; max-width: 56ch; font-size: 16px; }
.mhero-img { margin-top: 44px; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.mhero-img img { width: 100%; max-height: 520px; object-fit: cover; }
.timeline { padding: 30px 0 80px; }
.titem { display: grid; grid-template-columns: 90px 26px 1fr; gap: 16px; padding: 26px 0;
  border-bottom: 1px solid rgba(255,255,255,.08); }
.titem .year { font-family: 'Space Grotesk'; font-weight: 700; color: var(--gold); font-size: 17px; padding-top: 2px; }
.titem .rail { position: relative; }
.titem .rail::before { content: ''; position: absolute; left: 7px; top: 22px; bottom: -30px; width: 2px; background: rgba(200,162,74,.25); }
.titem:last-child .rail::before { display: none; }
.titem .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--gold); margin-top: 4px;
  box-shadow: 0 0 0 5px rgba(200,162,74,.18); }
.titem h3 { font-size: 19px; margin-bottom: 6px; }
.titem p { color: #a9a9b3; font-size: 14px; max-width: 62ch; }
.titem .tph { margin-top: 16px; border-radius: 14px; overflow: hidden; max-width: 560px; }
.titem .tph img { width: 100%; max-height: 340px; object-fit: cover; }
.gallery { padding: 20px 0 90px; }
.gallery h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 8px; }
.gallery .sub { color: #a9a9b3; margin-bottom: 30px; }
.ggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .ggrid { grid-template-columns: repeat(2, 1fr); } }
.gitem { border-radius: 14px; overflow: hidden; cursor: pointer; aspect-ratio: 4/5; background: var(--night-2); }
.gitem.wide { grid-column: span 2; aspect-ratio: 16/10; }
@media (max-width: 820px) { .gitem.wide { grid-column: span 2; } }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.gitem:hover img { transform: scale(1.04); opacity: .9; }
.tracks { padding: 0 0 90px; }
.track { display: flex; align-items: center; gap: 18px; background: var(--night-2);
  border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 18px 22px; margin-bottom: 14px; }
.track .play { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: #141414;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.track h4 { font-size: 16px; }
.track p { color: #8b8b96; font-size: 13px; margin-top: 2px; }
.track .status { margin-left: auto; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; border: 1px solid rgba(200,162,74,.4);
  padding: 6px 14px; border-radius: 999px; white-space: nowrap; }

/* ---------- about ---------- */
.about-hero { padding: 150px 0 60px; }
.about-grid { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.portrait { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.14); }
.portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-copy h1 { font-size: clamp(38px, 5.5vw, 64px); margin-bottom: 20px; }
.about-copy h1 em { font-style: normal; color: var(--gold); }
.about-copy p { color: #444; font-size: 16px; margin-bottom: 16px; max-width: 58ch; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 20px 0 80px; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }
.pillar { border-top: 3px solid var(--gold); padding-top: 20px; }
.pillar h3 { font-size: 17px; margin-bottom: 12px; }
.pillar ul { list-style: none; }
.pillar li { font-size: 14px; color: var(--muted); padding: 7px 0; border-bottom: 1px solid var(--line); }
.pillar li:last-child { border-bottom: none; }
.second-img { border-radius: 20px; overflow: hidden; margin-bottom: 80px; box-shadow: 0 20px 60px rgba(0,0,0,.12); }
.second-img img { width: 100%; max-height: 440px; object-fit: cover; }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: #fff; padding: 90px 0; text-align: center; }
.contact h2 { font-size: clamp(30px, 4.5vw, 52px); margin-bottom: 14px; }
.contact h2 em { font-style: normal; color: var(--gold); }
.contact p { color: #999; max-width: 52ch; margin: 0 auto 30px; }
.socials { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.socials a { text-decoration: none; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  border: 1px solid rgba(255,255,255,.22); color: #ddd; padding: 12px 24px; border-radius: 999px; transition: all .2s; }
.socials a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- footer ---------- */
footer { background: #0b0b0c; color: #777; padding: 30px 0; font-size: 12px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,8,10,.94);
  display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.lightbox .close { position: absolute; top: 22px; right: 28px; color: #fff; font-size: 34px;
  cursor: pointer; line-height: 1; opacity: .7; }
.lightbox .close:hover { opacity: 1; }
.lightbox .cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center;
  color: #bbb; font-size: 13px; letter-spacing: .06em; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== v2.1: Asif-style editorial theme, Awais palette (charcoal + gold) ===== */
html{scroll-behavior:smooth}
::selection{background:#c8a24a;color:#141414}
body{background:#141414}
.nav{position:sticky;top:0;z-index:50;background:rgba(20,20,20,.72);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid rgba(255,255,255,.07)}
.nav-links a{position:relative;letter-spacing:.06em;text-transform:uppercase;font-size:12.5px;font-weight:600}
.nav-links a::after{content:"";position:absolute;left:0;bottom:-6px;height:2px;width:0;background:#c8a24a;transition:width .35s cubic-bezier(.22,1,.36,1)}
.nav-links a:hover::after{width:100%}
.kicker{display:inline-flex;align-items:center;gap:12px;letter-spacing:.22em;text-transform:uppercase;font-size:12px;font-weight:600;color:#c8a24a}
.kicker::before{content:"";width:38px;height:1px;background:linear-gradient(90deg,#c8a24a,rgba(200,162,74,0))}
.hero-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:56px;align-items:center;min-height:88vh;padding:64px 0}
.hero-text h1{font-family:"Space Grotesk",sans-serif;font-size:clamp(64px,10vw,124px);line-height:.95;letter-spacing:-.015em;margin:18px 0 26px;color:#f4f1e8}
.hero-text .role{font-size:clamp(20px,2.5vw,27px);line-height:1.45;color:#e8e4da;font-weight:400;max-width:32ch}
.hero-text .role strong{background:linear-gradient(92deg,#e6c878,#c8a24a);-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:700}
.hero-text .previously{margin-top:16px;color:#9d97a8;font-size:16px;line-height:1.65;max-width:46ch}
.hero-text .previously strong{color:#e8e4da;font-weight:600}
.hero-photo{position:relative}
.hero-photo::before{content:"";position:absolute;inset:18px -18px -18px 18px;border:1px solid rgba(200,162,74,.35);border-radius:16px;z-index:0}
.hero-photo img{position:relative;z-index:1;width:100%;height:100%;max-height:540px;object-fit:cover;border-radius:16px;filter:grayscale(30%);box-shadow:0 30px 80px rgba(0,0,0,.55)}
.btn{border-radius:999px;padding:14px 28px;font-weight:600;transition:transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s}
.btn.gold{background:linear-gradient(120deg,#e6c878,#c8a24a);color:#141414}
.btn.gold:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(200,162,74,.28)}
.btn.ghost{border:1px solid rgba(255,255,255,.22);color:#e8e4da;background:rgba(255,255,255,.02)}
.btn.ghost:hover{transform:translateY(-2px);border-color:rgba(200,162,74,.6)}
.section-head h2{font-family:"Space Grotesk",sans-serif;font-size:clamp(38px,5.4vw,62px);line-height:1.05;letter-spacing:-.01em}
.section-head h2 em{font-style:normal;background:linear-gradient(92deg,#e6c878,#c8a24a);-webkit-background-clip:text;background-clip:text;color:transparent}
.cases{counter-reset:case;padding:20px 0 6px}
.case{position:relative;display:grid;grid-template-columns:360px 1fr;gap:44px;padding:56px 18px;border-top:1px solid rgba(255,255,255,.09);align-items:start;border-radius:6px;transition:background .4s,padding-left .4s}
.case:last-child{border-bottom:1px solid rgba(255,255,255,.09)}
.case::after{counter-increment:case;content:counter(case,decimal-leading-zero);position:absolute;top:34px;right:14px;font-family:"Space Grotesk",sans-serif;font-size:64px;font-weight:700;color:rgba(200,162,74,.13);line-height:1;pointer-events:none}
.case:hover{background:linear-gradient(90deg,rgba(200,162,74,.055),rgba(200,162,74,0) 65%)}
.case-photo img{width:100%;height:240px;object-fit:cover;border-radius:14px;transition:transform .6s cubic-bezier(.22,1,.36,1)}
.case:hover .case-photo img{transform:scale(1.025)}
.case-body.wide{grid-column:1/-1;max-width:840px}
.case-role{display:block;font-size:12.5px;letter-spacing:.16em;text-transform:uppercase;color:#c8a24a;font-weight:600}
.case-body h3{font-family:"Space Grotesk",sans-serif;font-size:clamp(34px,4.6vw,54px);line-height:1.05;margin:10px 0 6px;color:#f4f1e8}
.case-body h3 .sub{font-size:.48em;color:#9d97a8;font-weight:500}
.case-meta{display:block;color:#9d97a8;font-size:14px;letter-spacing:.04em;margin-bottom:16px}
.case-body p{color:#cfcaba;line-height:1.7;font-size:17.5px;max-width:60ch}
.case-tags{display:inline-block;margin-top:18px;font-size:13px;color:#bdb6a4;border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:7px 15px;background:rgba(255,255,255,.02)}
.earlier{padding:64px 0}
.section-sub{color:#9d97a8;margin-top:12px;max-width:60ch;line-height:1.65}
.earlier-list{border-top:1px solid rgba(255,255,255,.09);margin-top:30px}
.erow{display:grid;grid-template-columns:130px 1fr auto;gap:22px;padding:17px 14px;border-bottom:1px solid rgba(255,255,255,.09);align-items:baseline;border-radius:4px;transition:background .3s}
.erow:hover{background:rgba(200,162,74,.05)}
.erow .eyears{color:#c8a24a;font-weight:600;font-size:14px;white-space:nowrap}
.erow .etitle{color:#e8e4da;line-height:1.55}
.erow .eco{color:#9d97a8;font-size:14px;white-space:nowrap}
.leadership{padding:64px 0}
.lead-big{font-family:"Space Grotesk",sans-serif;font-size:clamp(26px,3.6vw,38px);line-height:1.32;max-width:25ch;margin-bottom:30px;color:#f4f1e8}
.lead-cols{display:grid;grid-template-columns:1fr 1fr;gap:38px;margin-bottom:38px}
.lead-cols p{color:#cfcaba;line-height:1.75}
.lead-points{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.lpoint{border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:24px;background:rgba(255,255,255,.025);transition:border-color .3s,transform .3s}
.lpoint:hover{border-color:rgba(200,162,74,.55);transform:translateY(-3px)}
.lpoint h4{margin:0 0 9px;font-size:16.5px;color:#f4f1e8}
.lpoint p{color:#9d97a8;line-height:1.65;font-size:15px;margin:0}
.beyond{padding:64px 0 76px}
.beyond .card{transition:transform .35s cubic-bezier(.22,1,.36,1),border-color .35s}
.beyond .card:hover{transform:translateY(-4px)}
.footer{border-top:1px solid rgba(255,255,255,.09);padding:72px 0 44px;background:linear-gradient(180deg,rgba(200,162,74,.045),rgba(200,162,74,0) 55%)}
.footer h2{font-family:"Space Grotesk",sans-serif;font-size:clamp(28px,4vw,44px);max-width:24ch;line-height:1.22;margin:14px 0 20px;color:#f4f1e8}
.footer h2 em{font-style:normal;background:linear-gradient(92deg,#e6c878,#c8a24a);-webkit-background-clip:text;background-clip:text;color:transparent}
.foot-line{color:#cfcaba;font-size:17px}
.foot-line a{color:#c8a24a;text-decoration:none;background-image:linear-gradient(#c8a24a,#c8a24a);background-size:0% 1px;background-repeat:no-repeat;background-position:0 100%;transition:background-size .4s}
.foot-line a:hover{background-size:100% 1px}
.foot-meta{display:flex;gap:30px;flex-wrap:wrap;margin-top:48px;color:#9d97a8;font-size:14px}
.foot-meta a{color:#9d97a8}
@media(max-width:820px){
  .hero-grid{grid-template-columns:1fr;min-height:0;padding:52px 0 44px}
  .hero-photo img{max-height:340px}
  .case{grid-template-columns:1fr;gap:20px;padding:40px 8px}
  .case::after{font-size:44px;top:22px}
  .lead-cols,.lead-points{grid-template-columns:1fr}
  .erow{grid-template-columns:104px 1fr;padding:15px 6px}
  .erow .eco{grid-column:2}
}

/* ===== v2.2: mobile hero overflow fix ===== */
html,body{overflow-x:clip}
@media(max-width:820px){
  .hero-photo::before{inset:10px 0 -10px 10px}
  .hero-text h1{font-size:clamp(52px,15vw,72px)}
  .hero-grid{gap:40px}
}

/* ===== v2.3: dark-theme text color fixes ===== */
.brand{color:#f4f1e8}
.nav-links a{color:#bdb6a4}
.nav-links a:hover,.nav-links a.active{color:#fff}
body.home{color:#e8e4da}
body.home .section-head h2{color:#f4f1e8}

/* ===== v2.4: hero gap + mobile nav fixes ===== */
body.home .hero{display:block;min-height:0}
.hero-grid{align-content:center}
@media(max-width:820px){
  .hero-grid{min-height:0}
}
@media(max-width:640px){
  .nav-inner{flex-direction:column;align-items:flex-start;gap:7px;padding:12px 20px}
  .nav-links{gap:16px;flex-wrap:wrap}
  .nav-links a{font-size:11px}
}

/* ===== v2.5: new corporate portraits ===== */
.hero-photo img{object-position:center 22%}
.case-photo img{object-position:center 18%}

/* ===== v2.6: hero background treatment ===== */
body.home .hero{position:relative;display:flex;align-items:center;min-height:94vh;overflow:hidden}
body.home .hero-bg{position:absolute;inset:0;z-index:0}
body.home .hero-bg img{width:100%;height:100%;object-fit:cover;object-position:center 22%;opacity:.34;filter:grayscale(20%)}
body.home .hero-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,20,20,.55) 0%,rgba(20,20,20,.42) 45%,#141414 100%)}
body.home .hero-grid{position:relative;z-index:2;display:block;min-height:0;width:100%;padding:110px 24px 80px}
body.home .hero-text{max-width:720px}
body.home .hero-text h1{text-shadow:0 4px 40px rgba(0,0,0,.6)}
body.home .hero-text .role,body.home .hero-text .previously{text-shadow:0 2px 18px rgba(0,0,0,.55)}
@media(max-width:820px){
  body.home .hero{min-height:0}
  body.home .hero-grid{padding:84px 24px 64px}
  body.home .hero-bg img{object-position:center 18%;opacity:.30}
}
