/* ============================================================
   HITALI MAKKAR — Editorial Spotlight design system
   Warm ink + champagne gold · Fraunces display · Archivo body
   ============================================================ */

:root {
  --ink: #0e0d0b;
  --ink-2: #14120e;
  --ink-3: #1c1913;
  --bone: #ede5d6;
  --bone-dim: #a89d88;
  --gold: #d8b26e;
  --gold-bright: #ecc987;
  --gold-deep: #a97e2f;
  --hairline: rgba(216, 178, 110, 0.16);
  --hairline-soft: rgba(237, 229, 214, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- grain overlay ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 9s steps(6) infinite;
}
@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- typography helpers ---------- */
.label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.label::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
  opacity: 0.7;
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.display-l {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.display-m {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
}
.italic-accent {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-bright);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--bone-dim);
  max-width: 58ch;
}
.body-dim { color: var(--bone-dim); }

/* ---------- layout ---------- */
.wrap {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}
section { position: relative; }
.section-pad { padding: clamp(84px, 12vw, 150px) 0; }

.hairline-top { border-top: 1px solid var(--hairline); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14, 13, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.monogram {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bone);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.monogram em {
  font-style: italic;
  color: var(--gold);
}
.nav-links {
  display: flex;
  gap: 38px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover,
.nav-links a.active { color: var(--bone); }
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-cta {
  border: 1px solid var(--gold-deep) !important;
  padding: 10px 22px !important;
  color: var(--gold) !important;
  transition: background 0.3s ease, color 0.3s ease !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--gold);
  color: var(--ink) !important;
}

/* mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: var(--bone);
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease, top 0.35s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(14, 13, 11, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  .nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { font-size: 17px; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
  padding-bottom: 130px;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 90% 70% at 68% 45%, transparent 0%, rgba(14, 13, 11, 0.25) 55%, rgba(14, 13, 11, 0.92) 100%),
    linear-gradient(to right, rgba(14, 13, 11, 0.88) 0%, rgba(14, 13, 11, 0.35) 45%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
}
.hero-kicker { margin-bottom: 28px; }
.hero-name { margin-bottom: 8px; }
.hero-name .line { display: block; overflow: hidden; }
.hero-name .line span { display: inline-block; }
.hero-role {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  color: var(--gold-bright);
  margin: 18px 0 30px;
  max-width: 30ch;
  line-height: 1.35;
}
.hero-sub {
  max-width: 52ch;
  color: var(--bone-dim);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  margin-bottom: 44px;
}
.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; }

.hero-meta {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  z-index: 3;
}
.hero-meta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}
@media (max-width: 640px) {
  .hero-meta-inner span:nth-child(2) { display: none; }
}

/* hero load animation — CSS-driven so above-fold never flashes */
.hr-0, .hr-1, .hr-2, .hr-3, .hr-4, .hr-5 {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 1.1s var(--ease-out) forwards;
}
.hr-0 { animation-delay: 0.15s; }
.hr-1 { animation-delay: 0.3s; }
.hr-2 { animation-delay: 0.45s; }
.hr-3 { animation-delay: 0.6s; }
.hr-4 { animation-delay: 0.78s; }
.hr-5 { animation-delay: 1.0s; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid var(--gold-deep);
  color: var(--ink);
  background: var(--gold);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink-3);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--gold); }
.btn span { position: relative; z-index: 1; }
.btn .arr { position: relative; z-index: 1; transition: transform 0.35s var(--ease-out); }
.btn:hover .arr { transform: translateX(5px); }

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: rgba(237, 229, 214, 0.25);
}
.btn-ghost::before { background: var(--gold); }
.btn-ghost:hover { color: var(--ink); border-color: var(--gold); }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  padding: 22px 0;
  background: var(--ink-2);
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--bone-dim);
  white-space: nowrap;
  padding-right: 26px;
}
.marquee-track span::after {
  content: "✦";
  color: var(--gold);
  font-size: 0.7em;
  padding-left: 26px;
  font-style: normal;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--hairline);
}
.stat {
  border-right: 1px solid var(--hairline);
  padding: clamp(28px, 4vw, 48px) clamp(18px, 3vw, 40px);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1;
  color: var(--gold);
}
.stat-num sup { font-size: 0.45em; color: var(--gold-bright); }
.stat-label {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--hairline); }
  .stat { border-bottom: 1px solid var(--hairline); }
}

/* ---------- split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.split .sticky-col { position: sticky; top: calc(var(--nav-h) + 40px); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split .sticky-col { position: static; }
}

/* ---------- expertise grid ---------- */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.exp-cell {
  background: var(--ink);
  padding: clamp(26px, 3.4vw, 44px);
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}
.exp-cell:hover { background: var(--ink-2); }
.exp-cell::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.exp-cell:hover::after { transform: scaleX(1); }
.exp-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 16px;
}
.exp-cell h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  margin-bottom: 12px;
  color: var(--bone);
}
.exp-cell p { font-size: 0.95rem; color: var(--bone-dim); }
@media (max-width: 700px) {
  .exp-grid { grid-template-columns: 1fr; }
}

/* ---------- timeline ---------- */
.timeline { position: relative; }
.tl-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(24px, 4vw, 70px);
  padding: clamp(34px, 4.6vw, 56px) 0;
  border-top: 1px solid var(--hairline);
  position: relative;
}
.tl-item:last-child { border-bottom: 1px solid var(--hairline); }
.tl-year {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: oldstyle-nums;
}
.tl-year small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-top: 10px;
}
.tl-body h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  color: var(--bone);
}
.tl-company {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 8px 0 14px;
  font-weight: 600;
}
.tl-body p { color: var(--bone-dim); max-width: 62ch; }
.tl-roles { margin-top: 14px; list-style: none; }
.tl-roles li {
  color: var(--bone-dim);
  font-size: 0.95rem;
  padding: 7px 0 7px 22px;
  position: relative;
}
.tl-roles li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold-deep);
}
@media (max-width: 700px) {
  .tl-item { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- portrait placeholder ---------- */
.portrait {
  aspect-ratio: 4 / 5;
  position: relative;
  background:
    radial-gradient(circle at 30% 25%, rgba(216, 178, 110, 0.16), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(169, 126, 47, 0.12), transparent 50%),
    var(--ink-3);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--hairline);
  pointer-events: none;
}
.portrait-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4rem, 9vw, 7rem);
  color: rgba(216, 178, 110, 0.35);
  line-height: 1;
}
.portrait-note {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* ---------- credentials list ---------- */
.cred-list { list-style: none; }
.cred-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.cred-list li strong {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.05rem;
  color: var(--bone);
}
.cred-list li span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .cred-list li { flex-direction: column; gap: 4px; }
}

/* ---------- sector chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  border: 1px solid var(--hairline);
  padding: 10px 18px;
  border-radius: 100px;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.chip:hover {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

/* ---------- CTA panel ---------- */
.cta-panel {
  border: 1px solid var(--hairline);
  background:
    radial-gradient(ellipse 70% 90% at 50% 110%, rgba(216, 178, 110, 0.12), transparent 60%),
    var(--ink-2);
  padding: clamp(56px, 9vw, 120px) clamp(24px, 6vw, 90px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-panel .display-l { margin: 20px 0 18px; }
.cta-panel .lede { margin: 0 auto 40px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  padding: calc(var(--nav-h) + clamp(64px, 10vw, 120px)) 0 clamp(48px, 7vw, 90px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(216, 178, 110, 0.09), transparent 65%);
  pointer-events: none;
}
.page-hero .display-xl { margin-top: 26px; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(48px, 7vw, 80px) 0 40px;
  background: var(--ink-2);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.footer .monogram { font-size: 1.8rem; }
.footer-links {
  display: flex;
  gap: 30px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--bone-dim);
  border-top: 1px solid var(--hairline-soft);
  padding-top: 28px;
}

/* ---------- scroll reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hr-0, .hr-1, .hr-2, .hr-3, .hr-4, .hr-5 { opacity: 1; transform: none; animation: none; }
  html { scroll-behavior: auto; }
}
