/* ══════════════════════════════════════════════════════════════════════════
   Shovakar's — lineage site
   Shares the design system of Dr Shahaji Shovakar's portfolio: flat
   surfaces, 2px hairline rules, no radii, Archivo throughout, one green accent.
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-muted: color-mix(in srgb, #201e1d 58%, transparent);
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);

  --color-accent: #0f7a4a;
  --color-accent-100: #e7f3ec;
  --color-accent-300: #97cfb2;
  --color-accent-600: #0d6b41;
  --color-accent-700: #0a5836;

  --font: "Archivo", system-ui, -apple-system, sans-serif;
  --shell: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 800; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 10px; }
p { margin: 0 0 14px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--color-accent); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-700); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
figcaption {
  font-size: 11px;
  margin-top: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; padding: 12px 18px; background: var(--color-accent); color: #fff; font-weight: 800; }
.skip-link:focus-visible { left: 12px; top: 12px; }

.shell { max-width: var(--shell); margin: 0 auto; }
.pad { padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(64px, 11vh, 130px); padding-bottom: clamp(64px, 11vh, 130px); }
.surface { background: var(--color-surface); }
.bordered { border-top: 2px solid var(--color-divider); }

.progress {
  position: fixed; top: 0; left: 0; z-index: 150;
  height: 3px; width: 100%;
  background: var(--color-accent);
  transform: scaleX(0); transform-origin: left center;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 140;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 2px solid var(--color-divider);
}
.site-header__inner {
  max-width: var(--shell); margin: 0 auto;
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-text); }
.brand:hover { color: var(--color-text); }
.brand__mark { width: 14px; height: 14px; background: var(--color-accent); }
.brand__name { font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.nav { display: flex; gap: clamp(12px, 2vw, 26px); flex-wrap: wrap; }
.nav a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--color-text); opacity: 0.6;
  transition: opacity 0.3s, color 0.3s;
}
.nav a:hover { opacity: 1; color: var(--color-accent); }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; padding: 9px 14px;
  background: var(--color-accent); color: #fff;
  transition: background 0.3s;
}
.btn:hover { background: var(--color-accent-600); color: #fff; }
.btn--light { background: #fff; color: var(--color-accent); margin-top: 10px; }
.btn--light:hover { background: var(--color-accent-100); color: var(--color-accent-700); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--header-h) + clamp(48px, 9vh, 110px));
  padding-bottom: clamp(48px, 8vh, 90px);
  background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--color-text) 7%, transparent) 0 1px, transparent 1px 12.5%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(18px, 4vh, 36px);
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
}
.eyebrow__rule { width: 44px; height: 2px; flex: none; background: var(--color-accent); }
.eyebrow--invert .eyebrow__rule { background: currentColor; }
.hero__title { font-size: clamp(44px, 7.2vw, 128px); line-height: 0.88; letter-spacing: -0.045em; margin: 0; }
.hero__title .accent {
  display: block;
  margin-top: clamp(14px, 2.4vh, 26px);
  font-size: clamp(20px, 2.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  max-width: 22ch;
}
.hero__blurb { font-size: clamp(16px, 1.3vw, 19px); max-width: 52ch; margin: clamp(22px, 4vh, 40px) 0 24px; }
.facts { display: grid; gap: 8px; margin: 0; border-top: 2px solid var(--color-divider); padding-top: 16px; max-width: 560px; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; font-size: 14px; }
.facts dt { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); padding-top: 2px; }
.facts dd { margin: 0; font-weight: 600; }
.hero__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.marquee { border-top: 2px solid var(--color-divider); border-bottom: 2px solid var(--color-divider); overflow: hidden; padding: 12px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee__track span { font-weight: 800; font-size: clamp(16px, 2.2vw, 28px); text-transform: uppercase; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Type ───────────────────────────────────────────────────────────────── */
.section-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(18px, 3vh, 32px); }
.section-head__num { font-weight: 800; font-size: 13px; letter-spacing: 0.12em; color: var(--color-accent); }
.display { font-size: clamp(30px, 5vw, 76px); line-height: 0.98; letter-spacing: -0.035em; margin: 0; max-width: 20ch; }
.display em { font-style: normal; color: var(--color-accent); }
.display--invert { color: #fff; margin-bottom: 20px; }
.lede { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; max-width: 64ch; margin-bottom: clamp(28px, 5vh, 56px); }
.minor { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.footnote { font-size: 12px; color: var(--color-muted); max-width: 70ch; margin-top: 20px; }

/* ── 01 Members ─────────────────────────────────────────────────────────── */
.members { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--color-divider); border: 2px solid var(--color-divider); }
.member { background: var(--color-bg); padding: clamp(18px, 2vw, 30px); display: flex; flex-direction: column; gap: 10px; transition: background 0.35s; }
.member:hover { background: var(--color-accent-100); }
.member__photo { overflow: hidden; margin-bottom: 8px; }
.member__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 25%; transition: transform 0.7s var(--ease-out); }
.member:hover .member__photo img { transform: scale(1.04); }
.member__place { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); }
.member h3 { font-size: clamp(22px, 2vw, 30px); margin: 0; }
.member p { font-size: 14px; color: var(--color-muted); margin: 0; }
.member--accent { background: var(--color-accent); color: #fff; }
.member--accent:hover { background: var(--color-accent-600); }
.member--accent .member__place, .member--accent p { color: inherit; opacity: 0.9; }
.member__link { margin-top: auto; padding-top: 8px; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.member__link:hover { color: var(--color-accent-100); }

.pull {
  margin: clamp(36px, 6vh, 64px) 0 0;
  padding-left: 20px;
  border-left: 4px solid var(--color-accent);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  max-width: 40ch;
}

/* ── 02 Name ────────────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
.story figure { margin-bottom: 20px; }
.story img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.story__kicker, .card__kicker { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 8px; }
.story h3 { font-size: clamp(24px, 2.4vw, 36px); }
.story p { color: var(--color-muted); }

/* ── 03 Scholars ────────────────────────────────────────────────────────── */
.timeline { border-top: 2px solid var(--color-divider); }
.row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 44px);
  padding: clamp(22px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--color-divider);
  align-items: start;
}
.row__year { font-weight: 800; font-size: 18px; color: var(--color-accent); }
.row__body h3 { font-size: clamp(22px, 2.2vw, 34px); }
.row__body p { color: var(--color-muted); }
.row__body strong { color: var(--color-text); }
.row__img img, .row__imgs img { width: 100%; object-fit: cover; border: 2px solid var(--color-divider); transition: border-color 0.3s; }
.row__img a:hover img, .row__imgs a:hover img { border-color: var(--color-accent); }
.row__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row__imgs img { aspect-ratio: 3 / 4; object-position: top; }
.row--feature { background: var(--color-accent-100); padding-left: 20px; padding-right: 20px; border-bottom: 2px solid var(--color-accent); }

/* ── 04 Haripur ─────────────────────────────────────────────────────────── */
.framed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid var(--color-divider); }
.framed--light img { border-color: rgba(255, 255, 255, 0.5); }
.cards { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 2px; background: var(--color-divider); border: 2px solid var(--color-divider); margin-top: clamp(36px, 6vh, 72px); }
.card { background: var(--color-bg); padding: clamp(20px, 2.2vw, 32px); transition: background 0.35s; }
.card:hover { background: var(--color-accent-100); }
.card h3 { font-size: clamp(20px, 1.9vw, 28px); }
.card p { font-size: 14px; color: var(--color-muted); margin: 0; }

.verse {
  margin: clamp(36px, 6vh, 72px) 0 0;
  padding: clamp(24px, 3vw, 44px);
  background: var(--color-text);
  color: var(--color-bg);
}
.verse p { font-size: clamp(24px, 3.2vw, 46px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 18px; }
.verse footer { font-size: 13px; opacity: 0.75; max-width: 70ch; }

/* ── 05 Bari ────────────────────────────────────────────────────────────── */
.accent-band { background: var(--color-accent); color: #fff; }
.accent-band .lede { color: #fff; opacity: 0.94; }

/* ── 06 Print ───────────────────────────────────────────────────────────── */
.book { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.book img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: top; border: 2px solid var(--color-divider); background: #fff; transition: transform 0.5s var(--ease-out), border-color 0.3s; }
.book a:hover img { transform: translateY(-6px); border-color: var(--color-accent); }

/* ── 07 Archive ─────────────────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--color-divider); border: 2px solid var(--color-divider); }
.gallery a { position: relative; display: block; overflow: hidden; background: var(--color-text); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; opacity: 0.92; transition: transform 0.7s var(--ease-out), opacity 0.4s; }
.gallery a:hover img { transform: scale(1.05); opacity: 1; }
.gallery span {
  position: absolute; left: 0; bottom: 0;
  padding: 8px 12px;
  background: var(--color-bg); color: var(--color-text);
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ── Sources ────────────────────────────────────────────────────────────── */
.sources { background: var(--color-text); color: var(--color-bg); }
.sources a { color: var(--color-accent-300); }
.source-list { display: grid; gap: 10px; border-top: 2px solid rgba(255, 255, 255, 0.25); padding-top: 18px; }
.source-list li { font-size: 14px; }
.sources .footnote { color: rgba(255, 255, 255, 0.6); }
.colophon {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 20px;
  border-top: 2px solid rgba(255, 255, 255, 0.25);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8;
}

/* ── Reveal ─────────────────────────────────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav { display: none; }
  .row { grid-template-columns: 110px minmax(0, 1fr); }
  .row__img, .row__imgs { grid-column: 2; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero__grid, .split, .split--wide { grid-template-columns: 1fr; }
  .members { grid-template-columns: 1fr; }
  .member__photo img { aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { background-image: none; }
}
@media (max-width: 600px) {
  .row { grid-template-columns: 1fr; gap: 8px; }
  .row__img, .row__imgs { grid-column: auto; }
  .book { grid-template-columns: 1fr 1fr; }
  .book figure:first-child { grid-column: span 2; }
  .gallery { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .site-header .btn { font-size: 10px; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
