/* Dr. Hukam Chand Jain: site styles.
   Colours come from the logo (saffron #ff9d00 and near-black) on a warm paper ground.
   The logo's doorway cut-out (a pointed "gable") is the recurring motif. */

:root {
  --saffron: #ff9d00;
  --saffron-ink: #9a5800;      /* saffron dark enough for text on paper */
  --saffron-soft: #fff1d9;
  --ink: #1b1815;
  --ink-2: #3a342e;
  --muted: #6b6157;
  --paper: #fbf7f0;
  --paper-2: #f3ebdd;
  --line: #e3d6c1;
  --white: #fff;

  --sans: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", "Noto Serif Devanagari", Georgia, serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
  --radius: 6px;
  --shadow-book: 0 1px 2px rgba(27, 24, 21, .12), 0 10px 24px -8px rgba(27, 24, 21, .28);

  /* The logo doorway: a pointed roof over straight walls. */
  --gable: polygon(50% 0, 100% 34%, 100% 100%, 0 100%, 0 34%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
:lang(hi) body, html[lang="hi"] body { line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; } /* AVIF wrapper: lets the inner img size against its real parent */
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3 { line-height: 1.35; letter-spacing: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--saffron-ink); outline-offset: 3px; }

/* ---------- motif */
.gable {
  display: inline-block;
  width: 11px; height: 14px;
  background: var(--saffron);
  clip-path: var(--gable);
  flex: none;
}
.gable.big { width: 28px; height: 36px; }

/* ---------- header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(251, 247, 240, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand img { height: 42px; width: auto; }
.main-nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.main-nav a { text-decoration: none; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--saffron); }
.lang-switch {
  font-size: 14px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  background: var(--white);
}
.lang-switch:hover { border-color: var(--saffron); }

/* ---------- buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 15px/1 var(--sans);
  padding: 15px 22px; border-radius: var(--radius);
  text-decoration: none; border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-2); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--white); }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--saffron-ink); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " →"; }
.more { margin-top: 36px; }

/* ---------- hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron-ink); margin-bottom: 18px; }
html[lang="hi"] .eyebrow { letter-spacing: .02em; font-size: 15px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); margin-bottom: 24px; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 36em; }
.hero-quote { margin: 32px 0 36px; padding-left: 22px; border-left: 3px solid var(--saffron); }
.hero-quote blockquote { margin: 0; }
.hero-quote p { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 24px); line-height: 1.45; color: var(--ink); }
html[lang="hi"] .hero-quote p { font-style: normal; }
.hero-quote figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-portrait { position: relative; justify-self: center; width: min(100%, 420px); }
.arch, .arch-back { aspect-ratio: 4 / 5; clip-path: var(--gable); }
.arch { position: relative; background: var(--paper-2); overflow: hidden; }
.arch > img, .arch > picture > img { width: 100%; height: 100%; object-fit: cover; }
.arch-back { position: absolute; inset: 0; transform: translate(18px, 18px); background: var(--saffron); }
.portrait-placeholder {
  width: 100%; height: 100%;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(154, 88, 0, .05) 22px 23px),
    var(--paper-2);
  color: var(--muted); font-size: 14px;
}
.portrait-placeholder img { width: 84px; opacity: .9; margin-top: 40px; }

/* ---------- stats */
.stats { background: var(--paper-2); border-block: 1px solid var(--line); padding: 44px 0; }
.stats-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.stats-grid li { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; border-left: 1px solid var(--line); }
.stats-grid li:first-child { border-left: 0; padding-left: 0; }
.num { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 3.4vw, 44px); line-height: 1; color: var(--ink); }
.label { font-size: 14px; color: var(--muted); line-height: 1.4; }

/* ---------- section heads */
.section { padding: var(--section) 0; scroll-margin-top: 72px; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron-ink); margin-bottom: 14px; }
html[lang="hi"] .kicker { letter-spacing: .02em; font-size: 15px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 48px); }
.section-lead { margin-top: 16px; font-size: 18px; color: var(--ink-2); }

/* ---------- timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 900px; }
.timeline::before { content: ""; position: absolute; left: 148px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 0 56px; padding: 0 0 36px; position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: 143px; top: 9px;
  width: 11px; height: 14px; background: var(--saffron); clip-path: var(--gable);
}
.tl-year { font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--saffron-ink); line-height: 1.2; text-align: right; }
.tl-body h3 { font-size: 22px; margin-bottom: 6px; }
.tl-body p { color: var(--ink-2); max-width: 40em; }

/* ---------- works */
.works { background: var(--white); border-block: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 44px; }
.chips-label { font-size: 14px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  background: var(--paper);
}
.chip span { font-size: 12px; color: var(--muted); background: var(--white); border-radius: 999px; padding: 1px 7px; }
.chip:hover { border-color: var(--saffron); background: var(--saffron-soft); }

.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 32px; }
.book-card a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.cover { display: block; aspect-ratio: 3 / 4; margin-bottom: 12px; border-radius: 2px 4px 4px 2px; overflow: hidden; box-shadow: var(--shadow-book); background: var(--paper-2); transition: transform .2s, box-shadow .2s; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card a:hover .cover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(27,24,21,.12), 0 18px 32px -10px rgba(27,24,21,.35); }
.book-title { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.3; }
.book-title:lang(hi), .book-title:lang(mr) { line-height: 1.5; }
.book-sub { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.book-meta { font-size: 13px; color: var(--muted); }

/* ---------- voice */
.voice { background: var(--ink); color: var(--paper); }
.voice .section-head h2 { color: var(--white); }
.voice .section-lead { color: #d8cfc2; }
.voice .kicker, .voice .link-arrow { color: var(--saffron); }
.voice-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.voice .section-head { margin-bottom: 28px; }
.chapters-label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #a99f92; margin-bottom: 8px; }
.chapters { list-style: none; margin: 0; padding: 0; border-top: 1px solid #3a342e; }
.chapters a { display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px solid #3a342e; text-decoration: none; color: var(--paper); }
.chapters a:hover { color: var(--saffron); }
.ts { font-variant-numeric: tabular-nums; color: #a99f92; min-width: 3.4em; }

.lite-yt {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000;
}
.lite-yt img { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: opacity .2s; }
.lite-yt:hover img { opacity: 1; }
.lite-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%);
  background: var(--saffron); border-radius: 50%;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.play::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--ink); }
.play.small { width: 48px; height: 48px; }
.play.small::after { left: 19px; top: 15px; border-width: 9px 0 9px 14px; }
.play-label { position: absolute; left: 16px; bottom: 14px; font: 600 14px/1 var(--sans); color: var(--white); background: rgba(0,0,0,.6); padding: 8px 12px; border-radius: 4px; }

/* ---------- readers */
.readers-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: stretch; }
.reviews { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.thumb { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); margin-bottom: 8px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.review-title { font-weight: 600; font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.review-channel { font-size: 13px; color: var(--muted); }
.memory-card { background: var(--saffron-soft); border: 1px solid #f3d7a6; border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.memory-card h3 { font-size: 26px; }
.memory-card p { color: var(--ink-2); margin-bottom: 8px; }

/* ---------- honours */
.honours { padding-top: 0; }
.honours-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; border-top: 1px solid var(--line); }
.honours-list li { display: grid; grid-template-columns: 64px 1fr; gap: 2px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.h-year { grid-row: span 2; font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--saffron-ink); }
.h-name { font-weight: 600; }
.h-by { font-size: 15px; color: var(--muted); }

/* ---------- footer */
.site-footer { background: var(--ink); color: #d8cfc2; padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; }
.footer-grid img { height: 56px; width: auto; }
.footer-tag { margin-top: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 40px; justify-self: end; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--saffron); }
.variants { grid-column: 1 / -1; font-size: 13px; color: #a99f92; border-top: 1px solid #3a342e; padding-top: 24px; }
.variants span { font-weight: 600; }
.footer-bottom { margin-top: 20px; font-size: 13px; color: #a99f92; }

/* ---------- responsive */
@media (max-width: 1000px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .stats-grid li:nth-child(4) { border-left: 0; padding-left: 0; }
  .shelf { grid-template-columns: repeat(3, 1fr); }
  .voice-grid { grid-template-columns: 1fr; }
  .voice-video { order: -1; }
  .readers-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-row { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-top: 12px; }
  .brand img { height: 36px; }
  .lang-switch { margin-left: auto; }
  .main-nav {
    order: 3; width: 100%; margin: 8px 0 0; gap: 22px;
    overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; white-space: nowrap;
  }
  .main-nav::-webkit-scrollbar { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; width: min(72%, 300px); margin-right: 18px; }
  .hero h1 { margin-bottom: 18px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid li { border-left: 0; padding-left: 0; }

  .timeline::before { left: 5px; }
  .tl-item { grid-template-columns: 1fr; padding-left: 32px; padding-bottom: 30px; }
  .tl-item::before { left: 0; top: 6px; }
  .tl-year { text-align: left; font-size: 20px; margin-bottom: 2px; }

  .shelf { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .book-title { font-size: 16px; }

  .reviews { grid-template-columns: 1fr; }
  .review-card a { display: grid; grid-template-columns: 132px 1fr; gap: 4px 14px; }
  .review-card .thumb { grid-row: span 2; margin: 0; }

  .honours-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =====================================================================
   Inner pages: breadcrumbs, Books list, book detail
   ===================================================================== */
.page-head { padding: clamp(28px, 4vw, 48px) 0 0; }
.page-head .section-head { margin-bottom: 0; }
.page-head h1 { font-size: clamp(40px, 5.6vw, 64px); }
.crumbs ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--saffron-ink); }
.crumbs [aria-current] { color: var(--ink-2); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.books-all { padding-top: 40px; }
.filters { display: grid; gap: 14px; margin-bottom: 48px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-row .chips-label { min-width: 74px; }
button.chip { font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] span { background: var(--saffron); color: var(--ink); }
.showing { font-size: 14px; color: var(--muted); }
.book-card[hidden] { display: none; }

.other-titles { background: var(--paper-2); border-top: 1px solid var(--line); }
.other-list { list-style: none; margin: 0; padding: 0; columns: 2 320px; column-gap: 48px; }
.other-list li { break-inside: avoid; display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ot-title { font-weight: 600; }
.ot-meta { font-size: 14px; color: var(--muted); }

/* ---------- book detail */
.book-page { padding: clamp(28px, 4vw, 48px) 0 var(--section); }
.book-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.book-visual { position: sticky; top: 104px; perspective: 1600px; display: grid; justify-items: center; gap: 20px; }
.flip { width: min(100%, 400px); transform-style: preserve-3d; transform: rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg)); transition: transform .25s ease-out; }
.flip-inner { position: relative; aspect-ratio: 3 / 4; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.3, .7, .2, 1); }
.flip[data-flipped="true"] .flip-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 3px 6px 6px 3px; box-shadow: 0 2px 4px rgba(27,24,21,.12), 0 30px 50px -20px rgba(27,24,21,.45); }
.face.back { transform: rotateY(180deg); }
.face.front::after { content: ""; }
.flip-btn {
  font: 600 14px/1 var(--sans); cursor: pointer; color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px;
}
.flip-btn::before { content: "↻"; font-size: 17px; color: var(--saffron-ink); transition: transform .6s; }
.flip-btn[aria-pressed="true"]::before { transform: rotate(-180deg); }
.flip-btn:hover { border-color: var(--saffron); }

.book-info .kicker { margin-bottom: 12px; }
.book-h1 { font-size: clamp(32px, 4vw, 48px); }
.book-h1:lang(hi), .book-h1:lang(mr) { line-height: 1.3; }
.book-h1-sub { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-2); }
.book-byline { margin-top: 14px; font-weight: 500; color: var(--muted); }
.book-desc { margin-top: 22px; font-size: 18px; color: var(--ink-2); }
.book-info h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
html[lang="hi"] .book-info h2 { letter-spacing: .02em; font-size: 15px; }
.book-info > div, .book-info > aside { margin-top: 36px; }

.in-short { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--saffron); border-radius: var(--radius); padding: 22px 24px; }
.in-short h2 { display: flex; align-items: center; gap: 10px; color: var(--saffron-ink) !important; }
.in-short ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.in-short strong { font-weight: 600; }

.buy-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-buy { gap: 10px; min-width: 150px; }
.btn-amazon { background: var(--ink); color: var(--paper); }
.btn-amazon:hover { background: var(--ink-2); }
.btn-flipkart { border-color: var(--ink); color: var(--ink); background: var(--white); }
.btn-flipkart:hover { border-color: var(--saffron); }
.buy-note { margin-top: 12px; font-size: 14px; color: var(--muted); }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--saffron-soft); border: 1px solid #f3d7a6; }

.details dl { margin: 0; border-top: 1px solid var(--line); }
.details dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); font-size: 15px; }
.details dd { margin: 0; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.book-videos { padding-top: 0; }
.book-videos .reviews { grid-template-columns: repeat(3, 1fr); }
.author-strip { background: var(--paper-2); border-block: 1px solid var(--line); padding: 56px 0; }
.author-grid { display: grid; grid-template-columns: 56px 1fr; gap: 28px; align-items: start; max-width: 820px; }
.author-grid h2 { font-size: 28px; margin-bottom: 10px; }
.author-grid p { color: var(--ink-2); }
.author-grid .more { margin-top: 16px; }
.ai-md { margin-top: 40px; font-size: 13px; }
.ai-md a { color: var(--muted); }

/* =====================================================================
   Motion. Everything below is decoration: without JS, or with reduced
   motion, the page shows in its final state.
   ===================================================================== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hero: the doorway rises out of the ground, its saffron shadow slides in behind, then light passes through. */
.js .hero-text > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-text > :nth-child(1) { animation-delay: .15s; }
.js .hero-text > :nth-child(2) { animation-delay: .25s; }
.js .hero-text > :nth-child(3) { animation-delay: .4s; }
.js .hero-text > :nth-child(4) { animation-delay: .55s; }
.js .hero-text > :nth-child(5) { animation-delay: .7s; }
.js .arch { animation: doorway 1.3s cubic-bezier(.65, 0, .35, 1) .1s both; }
.js .arch-back { animation: shadow-in 1s cubic-bezier(.2, .7, .2, 1) 1s both; }
.arch::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%);
}
.js .arch::after { animation: sheen 1.6s ease-in-out 1.5s both; }
.portrait-placeholder img { animation: float 6s ease-in-out 2.4s infinite; }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes doorway {
  from { clip-path: polygon(50% 100%, 100% 100%, 100% 100%, 0 100%, 0 100%); }
  60% { clip-path: polygon(50% 8%, 100% 40%, 100% 100%, 0 100%, 0 40%); }
  to { clip-path: polygon(50% 0, 100% 34%, 100% 100%, 0 100%, 0 34%); }
}
@keyframes shadow-in { from { opacity: 0; transform: translate(0, 0); } }
@keyframes sheen { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Timeline: a saffron thread draws down as you read, lighting each doorway marker it passes. */
.timeline::after {
  content: ""; position: absolute; left: 147px; top: 10px; width: 3px; border-radius: 2px;
  height: calc((100% - 20px) * var(--p, 0)); background: var(--saffron);
}

.js .tl-item::before { background: var(--line); transition: background .4s, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.js .tl-item.passed::before { background: var(--saffron); transform: scale(1.35); }
.js .tl-item .tl-year { transition: color .4s; }
.js .tl-item:not(.passed) .tl-year { color: var(--muted); }

/* Books: covers open slightly on their spine when pointed at. */
.book-card a { perspective: 900px; }
.cover.book3d { position: relative; transform-origin: left center; transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; }
.cover.book3d::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(255,255,255,.18) 2.5%, rgba(0,0,0,.06) 5%, transparent 9%);
}
.book-card a:hover .cover.book3d, .book-card a:focus-visible .cover.book3d {
  transform: rotateY(-16deg) translateY(-4px);
  box-shadow: 14px 18px 30px -12px rgba(27, 24, 21, .45);
}

/* Book page: the book swings in, and follows the pointer a little. */
.js .flip { animation: book-in 1.2s cubic-bezier(.2, .7, .2, 1) .1s backwards; }
@keyframes book-in { from { opacity: 0; transform: rotateY(-40deg) translateY(40px); } }

/* Stats count up (set by JS); filtered cards morph with View Transitions where supported. */
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }

@media (max-width: 1000px) {
  .book-videos .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .timeline::after { left: 4px; }
  .book-grid { grid-template-columns: 1fr; }
  .book-visual { position: static; }
  .flip { width: min(78%, 320px); }
  .details dl > div { grid-template-columns: 1fr; gap: 2px; }
  .author-grid { grid-template-columns: 1fr; gap: 16px; }
  .author-grid img { width: 40px; }
  .filter-row .chips-label { width: 100%; }
  .btn-buy { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .js .hero-text > *, .js .arch, .js .arch-back, .js .arch::after, .js .flip, .portrait-placeholder img { animation: none; }
  .flip-inner { transition: none; }
}

/* =====================================================================
   Heritage layer: paper grain, Rajasthani ornament (jaali,
   mandana), stamped years, manuscript type and the journey map.
   ===================================================================== */
:root {
  --deva-display: "Amita", "Noto Serif Devanagari", serif;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .42  0 0 0 0 .3  0 0 0 0 .16  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --ink-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -3.2 2.55'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>");
  --deckle: polygon(0% 0.36%, 2% 0.17%, 4% 0.72%, 6% 0.08%, 8% 0.59%, 10% 0.40%, 12% 0.06%, 14% 0.56%, 16% 0.04%, 18% 0.48%, 20% 0.08%, 22% 0.10%, 24% 0.47%, 26% 0.91%, 28% 0.14%, 30% 0.25%, 32% 0.69%, 34% 1.04%, 36% 0.63%, 38% 0.44%, 40% 1.07%, 42% 0.05%, 44% 0.94%, 46% 0.32%, 48% 0.16%, 50% 0.13%, 52% 0.34%, 54% 0.90%, 56% 0.20%, 58% 0.64%, 60% 0.70%, 62% 0.41%, 64% 0.60%, 66% 0.07%, 68% 0.07%, 70% 0.23%, 72% 0.75%, 74% 0.47%, 76% 0.35%, 78% 0.64%, 80% 0.50%, 82% 0.33%, 84% 0.87%, 86% 0.77%, 88% 0.27%, 90% 0.63%, 92% 0.58%, 94% 0.96%, 96% 0.80%, 98% 0.32%, 100% 1.08%, 100% 99.87%, 98% 99.54%, 96% 99.17%, 94% 99.83%, 92% 99.46%, 90% 99.96%, 88% 99.26%, 86% 99.16%, 84% 99.37%, 82% 99.04%, 80% 99.65%, 78% 99.24%, 76% 99.35%, 74% 99.36%, 72% 99.50%, 70% 99.08%, 68% 98.96%, 66% 99.48%, 64% 99.27%, 62% 99.93%, 60% 99.23%, 58% 99.29%, 56% 98.91%, 54% 99.10%, 52% 99.69%, 50% 99.58%, 48% 99.26%, 46% 99.98%, 44% 99.49%, 42% 99.82%, 40% 99.87%, 38% 99.94%, 36% 99.15%, 34% 99.86%, 32% 99.73%, 30% 99.57%, 28% 99.04%, 26% 99.91%, 24% 99.51%, 22% 99.40%, 20% 99.03%, 18% 99.10%, 16% 99.05%, 14% 99.69%, 12% 99.54%, 10% 99.61%, 8% 99.03%, 6% 98.95%, 4% 99.83%, 2% 99.81%, 0% 99.74%);
}

/* Paper: a faint grain over every light surface. */
body { background-image: var(--grain); }
.works { background: #fffcf6 var(--grain); }

/* Jaali (lattice screen) behind the quieter bands. */
.stats, .author-strip, .other-titles { background-image: url(/assets/img/jaali.svg), var(--grain); background-size: 48px, auto; }
.voice { background-image: url(/assets/img/jaali-light.svg); background-size: 48px; }
.site-footer { background-image: url(/assets/img/jaali-light.svg); background-size: 48px; }

/* Mandana medallions sit on the seams between sections. */
.works, .readers, .other-titles, .author-strip, .related { position: relative; }
.works::before, .readers::before, .other-titles::before, .author-strip::before, .related::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 160px; height: 48px;
  transform: translate(-50%, -50%);
  background: url(/assets/img/mandana.svg) center / contain no-repeat;
  pointer-events: none;
}
.related { border-top: 1px solid var(--line); }

/* Hero: a calligraphic watermark behind the text. */
.hero { position: relative; }
.hero-watermark {
  position: absolute; left: -2vw; top: 50%; transform: translateY(-58%);
  font: 700 clamp(160px, 26vw, 380px)/1 var(--deva-display);
  color: var(--saffron); opacity: .07; white-space: nowrap; pointer-events: none; user-select: none;
}
.hero-grid { position: relative; }
.hero-portrait { isolation: isolate; }

/* Manuscript touches: calligraphic Devanagari lines and illuminated first letters. */
.deva-kicker { font: 400 clamp(24px, 2.4vw, 30px)/1.25 var(--deva-display) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--saffron-ink); }
.deva-display { font-family: var(--deva-display); font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.voice .deva-kicker { color: var(--saffron); }
html[lang="en"] .drop::first-letter {
  float: left; font-family: var(--serif); font-weight: 600; font-size: 3.5em; line-height: .82;
  padding: .08em .12em 0 0; margin-right: .06em; color: var(--saffron-ink);
  text-shadow: 2px 2px 0 var(--saffron-soft);
}

/* Deckled paper edges on the cards that read like notes. */
.memory-card, .in-short { clip-path: var(--deckle); border: 0; padding-block: 34px; }
.memory-card { background: var(--saffron-soft) var(--grain); }
.in-short { background: var(--white) var(--grain); box-shadow: inset 3px 0 0 var(--saffron); }

/* Stamped years on the timeline. */
.stamp {
  display: inline-block; padding: 4px 10px 3px; border-radius: 3px;
  font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: .04em; line-height: 1.2;
  border: 2px solid currentColor; outline: 1px solid currentColor; outline-offset: 2px;
  transform: rotate(-4deg);
  -webkit-mask-image: var(--ink-mask); mask-image: var(--ink-mask);
  -webkit-mask-size: 90px; mask-size: 90px;
}
.tl-item:nth-child(even) .stamp { transform: rotate(3deg); }
.tl-year { font-size: inherit; padding-top: 2px; }
.js .tl-item:not(.passed) .stamp { opacity: .35; }
.js .tl-item.passed .stamp { animation: stamp .45s cubic-bezier(.3, 1.4, .5, 1) both; }
.js .tl-item.passed:nth-child(even) .stamp { animation-name: stamp-even; }
@keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(1.7); } to { opacity: 1; transform: rotate(-4deg) scale(1); } }
@keyframes stamp-even { from { opacity: 0; transform: rotate(10deg) scale(1.7); } to { opacity: 1; transform: rotate(3deg) scale(1); } }

/* Journey map beside the timeline. */
.life-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(32px, 5vw, 64px); align-items: start; }
.journey { position: sticky; top: 104px; margin: 0; }
.journey svg { width: 100%; height: auto; display: block; overflow: visible; }
.journey .frame { fill: #f6efe2; stroke: #b48a52; stroke-width: 1.2; }
.journey .frame.inner { fill: none; stroke-width: .6; }
.journey .graticule line { stroke: #b48a52; stroke-width: .5; stroke-dasharray: 2 4; opacity: .5; }
.journey .land-shadow { fill: #e3d2b4; }
.journey .land { fill: #fbf5ea; stroke: #7a5a3a; stroke-width: 1.3; stroke-linejoin: round; }
.journey .route { fill: none; stroke: var(--saffron-ink); stroke-width: 2.2; stroke-dasharray: 5 5; stroke-linecap: round; }
.journey .route-draw { fill: none; stroke: #fff; stroke-width: 10; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.journey .city .dot { fill: #fbf5ea; stroke: #7a5a3a; stroke-width: 1.6; transition: fill .4s; }
.journey .city .halo { fill: var(--saffron); opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .4s; }
.journey .city.on .dot { fill: var(--saffron); stroke: var(--saffron-ink); }
.journey .city.on .halo { opacity: .25; animation: halo 2.4s ease-out infinite; }
@keyframes halo { from { transform: scale(.6); opacity: .45; } to { transform: scale(1.8); opacity: 0; } }
.journey .city-name { font: italic 600 15px var(--serif); fill: var(--ink); }
.journey .city-note { font: 500 10.5px var(--sans); fill: var(--muted); letter-spacing: .04em; }
.journey .c-title { font: italic 600 26px var(--serif); fill: #7a5a3a; }
.journey .c-deva { font: 700 24px var(--deva-display); fill: var(--saffron-ink); }
.journey .compass circle { fill: none; stroke: #b48a52; stroke-width: .8; }
.journey .compass path { fill: #fbf5ea; stroke: #7a5a3a; stroke-width: .8; }
.journey .compass .n { fill: var(--saffron); }
.journey .compass text { font: 600 10px var(--serif); fill: #7a5a3a; }
.journey figcaption { margin-top: 10px; text-align: center; font: italic 14px var(--serif); color: var(--muted); }
.timeline { max-width: none; }

@media (max-width: 1000px) {
  .life-grid { grid-template-columns: 1fr; }
  .journey { position: static; order: -1; width: min(100%, 420px); margin: 0 auto 8px; }
}
@media (max-width: 760px) {
  .hero-watermark { top: 22%; left: -6vw; font-size: 46vw; }
  .stamp { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .tl-item.passed .stamp, .journey .city.on .halo { animation: none; }
  .journey .route-draw { stroke-dashoffset: 0; }
}
.journey .route-draw { transition: stroke-dashoffset .25s linear; }
@media (max-width: 1000px) { .journey .route-draw { transition: stroke-dashoffset 2.6s cubic-bezier(.4, 0, .2, 1) .3s; } }

/* =====================================================================
   Life & work page: contents, chapters, pull quotes, beliefs, FAQ
   ===================================================================== */
.about-intro { padding-top: 40px; padding-bottom: 24px; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.glance { background: var(--white) var(--grain); box-shadow: inset 3px 0 0 var(--saffron); clip-path: var(--deckle); padding: 34px 28px; }
.glance h2, .toc h2 { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--saffron-ink); margin-bottom: 18px; }
html[lang="hi"] .glance h2, html[lang="hi"] .toc h2 { letter-spacing: .02em; font-size: 15px; }
.glance dl { margin: 0; display: grid; gap: 10px; }
.glance dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.glance dt { color: var(--muted); font-size: 15px; }
.glance dd { margin: 0; }

.toc { border: 1px solid #c9ad84; outline: 1px solid #c9ad84; outline-offset: 4px; padding: 30px 30px 22px; background: #fbf5ea var(--grain); }
.toc h2 { justify-content: center; font-family: var(--serif); font-style: italic; font-size: 22px; letter-spacing: 0; text-transform: none; color: #7a5a3a; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; text-decoration: none; }
.toc a:hover .toc-title { color: var(--saffron-ink); }
.toc-num { font-family: var(--serif); font-weight: 600; color: var(--saffron-ink); min-width: 2.2em; }
.toc-title { font-family: var(--serif); font-size: 18px; }
.toc-years { margin-left: auto; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc a::after { content: none; }
.toc-title { flex: 0 1 auto; }
.toc a .toc-title + .toc-years { padding-left: 8px; }
.toc a { background: radial-gradient(circle, #c9ad84 1px, transparent 1.4px) 0 72% / 7px 7px repeat-x; }
.toc a > span { background: #fbf5ea; position: relative; }
.toc-num { padding-right: 6px; }

.chapters { padding: clamp(40px, 6vw, 72px) 0 var(--section); }
.chapter { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); max-width: 1020px; scroll-margin-top: 90px; }
.ch-mark { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ch-label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[lang="hi"] .ch-label { letter-spacing: .02em; font-size: 15px; }
.ch-num { font-family: var(--serif); font-weight: 600; font-size: 76px; line-height: 1; color: var(--saffron-ink); }
html[lang="hi"] .ch-num { font-family: var(--deva-display); }
.ch-years { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 6px; }
.ch-body h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 18px; }
html[lang="hi"] .ch-body h2 { font-family: var(--deva-display); font-weight: 700; }
.ch-body p { font-size: 18px; color: var(--ink-2); max-width: 40em; }
.ch-body p + p { margin-top: 16px; }
.ornament { height: 48px; margin: clamp(48px, 7vw, 80px) auto; max-width: 1020px; background: url(/assets/img/mandana.svg) center / 160px 48px no-repeat, linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat; }

.pull-quote { margin: 32px 0 0; padding: 30px 32px; background: var(--saffron-soft) var(--grain); clip-path: var(--deckle); position: relative; max-width: 40em; }
.pull-quote::before { content: "“"; position: absolute; left: 16px; top: -6px; font: 600 90px/1 var(--serif); color: var(--saffron); opacity: .5; }
.pull-quote blockquote { margin: 0; padding-left: 28px; }
.pq-hi { font: 400 clamp(22px, 2.4vw, 28px)/1.45 var(--deva-display) !important; color: var(--saffron-ink) !important; }
.pq-en { margin-top: 10px; font: italic 18px/1.5 var(--serif) !important; color: var(--ink) !important; }
.source-note { margin-top: 56px; text-align: center; font-size: 14px; color: var(--muted); font-style: italic; }

.beliefs { background: var(--white) var(--grain); border-block: 1px solid var(--line); position: relative; }
.beliefs::before { content: ""; position: absolute; left: 50%; top: 0; width: 160px; height: 48px; transform: translate(-50%, -50%); background: url(/assets/img/mandana.svg) center / contain no-repeat; }
.belief-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.belief { border-top: 2px solid var(--saffron); padding-top: 18px; }
.b-num { font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--saffron-ink); }
.belief h3 { font-size: 24px; margin: 4px 0 12px; }
html[lang="hi"] .belief h3 { font-family: var(--deva-display); }
.b-hi { font: 400 21px/1.5 var(--deva-display); color: var(--saffron-ink); }
.b-en { margin-top: 8px; font: italic 17px/1.5 var(--serif); color: var(--ink-2); }

.pos-list { list-style: none; margin: 0; padding: 0; columns: 2 380px; column-gap: 56px; border-top: 1px solid var(--line); }
.pos-list li { break-inside: avoid; display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pos-years { font-family: var(--serif); font-weight: 600; color: var(--saffron-ink); font-variant-numeric: tabular-nums; }
.positions + .honours { padding-top: 0; }

.faq { background: var(--paper-2) url(/assets/img/jaali.svg); background-size: 48px; border-top: 1px solid var(--line); position: relative; }
.faq::before { content: ""; position: absolute; left: 50%; top: 0; width: 160px; height: 48px; transform: translate(-50%, -50%); background: url(/assets/img/mandana.svg) center / contain no-repeat; }
.faq-list { max-width: 860px; display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-family: var(--serif); font-weight: 600; font-size: 19px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 26px/1 var(--sans); color: var(--saffron-ink); transition: transform .3s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--ink-2); }

@media (max-width: 1000px) {
  .belief-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .intro-grid { grid-template-columns: 1fr; }
  .chapter { grid-template-columns: 1fr; gap: 12px; }
  .ch-mark { position: static; flex-direction: row; align-items: baseline; gap: 12px; }
  .ch-num { font-size: 48px; }
  .ch-years { border: 0; padding: 0; margin: 0; }
  .ch-body p { font-size: 17px; }
  .pull-quote { padding: 26px 20px; }
  .belief-list { grid-template-columns: 1fr; }
  .pos-list li { grid-template-columns: 88px 1fr; }
  .glance dl > div { grid-template-columns: 96px 1fr; }
  .toc { padding: 24px 18px 16px; }
}

/* =====================================================================
   Videos: list, feature, video page
   ===================================================================== */
.thumb .dur { position: absolute; right: 8px; bottom: 8px; font: 600 12px/1 var(--sans); color: #fff; background: rgba(0,0,0,.72); padding: 4px 6px; border-radius: 3px; }
.vh-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.vh-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
html[lang="hi"] .vh-head h2 { font-family: var(--deva-display); }
.vh-head p { color: var(--ink-2); margin-top: 6px; }
.videos-his { padding-top: 40px; }
.video-feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; text-decoration: none; background: var(--ink); color: var(--paper); border-radius: var(--radius); overflow: hidden; margin-bottom: 48px; background-image: url(/assets/img/jaali-light.svg); background-size: 48px; }
.video-feature .thumb { position: relative; display: block; aspect-ratio: 16 / 9; }
.video-feature .thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-feature .vf-text { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(24px, 4vw, 44px); }
.video-feature .kicker { color: var(--saffron); margin: 0; }
.vf-title { font: 600 clamp(24px, 2.6vw, 32px)/1.2 var(--serif); color: #fff; }
.vf-sum { color: #d8cfc2; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.video-feature:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.play { transition: transform .25s; }
.video-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.review-card a:hover .review-title { color: var(--saffron-ink); }
.review-card .thumb img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.review-card a:hover .thumb img { transform: scale(1.04); }
.videos-reviews { background: var(--white) var(--grain); border-top: 1px solid var(--line); position: relative; }
.videos-reviews::before, .videos-more::before { content: ""; position: absolute; left: 50%; top: 0; width: 160px; height: 48px; transform: translate(-50%, -50%); background: url(/assets/img/mandana.svg) center / contain no-repeat; }
.videos-more { position: relative; border-top: 1px solid var(--line); }

.video-page { padding: clamp(28px, 4vw, 48px) 0 var(--section); }
.vp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.vp-main .lite-yt { margin-bottom: 28px; }
.v-h1 { font-size: clamp(30px, 3.8vw, 44px); margin-top: 4px; }
html[lang="hi"] .v-h1 { line-height: 1.35; }
.v-orig { margin-top: 8px; font: 400 22px/1.4 var(--deva-display); color: var(--saffron-ink); }
.vp-main .in-short { margin-top: 28px; }
.vp-main .in-short p { font-size: 18px; color: var(--ink-2); }
.vp-main h2 { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--saffron-ink); margin-bottom: 14px; }
html[lang="hi"] .vp-main h2, html[lang="hi"] .vp-side h2 { letter-spacing: .02em; font-size: 15px; }
.v-points { margin-top: 32px; }
.v-points ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.v-points li { position: relative; padding-left: 24px; color: var(--ink-2); }
.v-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 12px; background: var(--saffron); clip-path: var(--gable); }
.review-note { margin-top: 28px; font-size: 14px; font-style: italic; color: var(--muted); }
.vp-side { position: sticky; top: 104px; display: grid; gap: 20px; }
.v-meta { margin: 0; border-top: 1px solid var(--line); }
.v-meta > div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.v-meta dt { color: var(--muted); }
.v-meta dd { margin: 0; }
.v-yt { justify-self: start; }
.vp-side h2 { font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.v-chapters .chapters { border-top-color: var(--line); }
.v-chapters .chapters a { color: var(--ink); border-bottom-color: var(--line); font-size: 15px; }
.v-chapters .chapters a:hover { color: var(--saffron-ink); }
.v-chapters .ts { color: var(--saffron-ink); }

@media (max-width: 1000px) {
  .video-feature { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .vp-grid { grid-template-columns: 1fr; }
  .vp-side { position: static; }
}
@media (max-width: 760px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-grid .review-card a { grid-template-columns: 140px 1fr; }
}
.video-feature .thumb { aspect-ratio: auto; min-height: 320px; }
.video-feature .thumb img { position: absolute; inset: 0; }
@media (max-width: 1000px) { .video-feature .thumb { aspect-ratio: 16 / 9; min-height: 0; } }

/* =====================================================================
   Homepage shelf: 3D covers with edition stacks fanned behind them
   ===================================================================== */
.works-shelf { gap: 56px 36px; }
.work-card a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.stack { --fan: 14%; --base: 1%; --w: 68%; position: relative; display: block; aspect-ratio: 1 / 1.08; margin-bottom: 18px; }
.stack.n2 { --base: 8%; --fan: 17%; }
.stack.n1 { --base: 15%; }
.stack::after {   /* soft floor shadow */
  content: ""; position: absolute; left: 6%; right: 2%; bottom: -10px; height: 18px; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(27, 24, 21, .28), transparent 70%);
}
.tome {
  position: absolute; bottom: 0; right: calc(var(--base) + var(--k) * var(--fan)); z-index: calc(10 - var(--k));
  width: var(--w); aspect-ratio: 3 / 4; border-radius: 2px 5px 5px 2px; overflow: hidden; background: var(--paper-2);
  box-shadow: -12px 10px 22px -12px rgba(27, 24, 21, .55), 0 1px 2px rgba(27, 24, 21, .2);
  transition: right .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1), opacity .7s, filter .4s;
  transition-delay: calc(var(--k) * 70ms);
}
.tome img { width: 100%; height: 100%; object-fit: cover; }
.tome::before {   /* spine: a dark crease, a highlight, then the cover */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.38) 0, rgba(0,0,0,.12) 1.6%, rgba(255,255,255,.28) 3%, rgba(0,0,0,.08) 5.5%, transparent 9%),
              linear-gradient(270deg, rgba(255,255,255,.22) 0, transparent 2.5%);
}
.tome:not([style*="--k:0"]) { filter: brightness(.93) saturate(.95); }
.work-card a:hover .stack, .work-card a:focus-visible .stack { --fan: 16.5%; }
.work-card a:hover .stack.n2, .work-card a:focus-visible .stack.n2 { --fan: 21%; }
.work-card a:hover .tome[style*="--k:0"], .work-card a:focus-visible .tome[style*="--k:0"] { transform: translateY(-8px) rotate(-1deg); }
.work-card a:hover .tome:not([style*="--k:0"]) { filter: none; }
.work-card a:hover .book-title { color: var(--saffron-ink); }
.work-card .book-title { font-size: 19px; }

/* Entrance: the editions slide out from behind the main cover. */
.js .work-card:not(.in) .tome { right: var(--base); opacity: 0; transform: translateY(16px); }
.js .work-card { transform: none; }

@media (max-width: 760px) {
  .works-shelf { gap: 40px 18px; }
  .stack { --fan: 9%; --w: 74%; }
  .stack.n2 { --fan: 12%; }
  .work-card .book-title { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .tome { transition: none; }
}

/* =====================================================================
   Exam guides: hub cards, reading path, tips
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.guides-hub { padding-top: 32px; }
.guide-grid { grid-template-columns: repeat(3, 1fr); gap: 56px 40px; }
.guide-card .stack { aspect-ratio: 1.25 / 1; }
.guide-card .tome { --w: 52%; }
.guide-card .stack.n1 { --base: 24%; }
.guide-card .stack.n2 { --base: 16%; }
.guide-card .stack.n3 { --base: 9%; }
.guide-card .book-title { font-size: 21px; }
.guide-short { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.guide-disclaimer { display: flex; gap: 10px; align-items: baseline; margin-top: 56px; padding: 16px 20px; font-size: 14px; color: var(--muted); border: 1px dashed #c9ad84; border-radius: var(--radius); background: #fbf5ea; }

.guide-path { padding-top: 32px; }
.path-title { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--sans) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--saffron-ink); margin-bottom: 28px; }
html[lang="hi"] .path-title { letter-spacing: .02em; font-size: 15px !important; }
.path { list-style: none; margin: 0; padding: 0; position: relative; max-width: 980px; }
.path::before, .path::after { content: ""; position: absolute; left: 31px; top: 24px; width: 2px; }
.path::before { bottom: 24px; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 11px); }
.path::after { height: calc((100% - 48px) * var(--p, 0)); background: var(--saffron); width: 3px; left: 30.5px; border-radius: 2px; }
.path-step { position: relative; display: grid; grid-template-columns: 64px 150px minmax(0, 1fr); gap: 28px; align-items: center; padding: 18px 0 30px; }
.path-num { position: relative; z-index: 1; display: grid; place-items: center; }
.path-num .stamp { background: var(--paper); font-size: 22px; min-width: 46px; text-align: center; color: var(--saffron-ink); }
.js .path-step:not(.passed) .stamp { opacity: .35; }
.js .path-step.passed .stamp { animation: stamp .45s cubic-bezier(.3, 1.4, .5, 1) both; }
.path-cover .stack { margin: 0; aspect-ratio: 1 / 1.05; }
.path-cover .tome { --w: 74%; }
.path-cover .stack.n1 { --base: 13%; }
.path-cover:hover .stack { --fan: 18%; }
.path-role { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--saffron-ink); margin-bottom: 6px; }
html[lang="hi"] .path-role { letter-spacing: .02em; font-size: 15px; }
.path-body h3 { font-size: 22px; line-height: 1.35; margin-bottom: 8px; }
.path-body h3 a { text-decoration: none; }
.path-body h3 a:hover { color: var(--saffron-ink); text-decoration: underline; text-underline-offset: 3px; }
.path-body p:last-child { color: var(--ink-2); max-width: 44em; }

.guide-lower { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; margin-top: 48px; align-items: start; }
.tips ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tips li { position: relative; padding-left: 22px; color: var(--ink-2); }
.tips li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 12px; background: var(--saffron); clip-path: var(--gable); }
.tips h2 { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--saffron-ink); margin-bottom: 16px; }
.guide-faq .faq-list { max-width: none; }

@media (max-width: 1000px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-lower { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .guide-grid { grid-template-columns: 1fr; gap: 40px; }
  .guide-card .stack { aspect-ratio: 1.5 / 1; }
  .guide-card .tome { --w: 40%; }
  .guide-card .stack.n1 { --base: 30%; }
  .guide-card .stack.n2 { --base: 22%; }
  .guide-card .stack.n3 { --base: 16%; }
  .path::before, .path::after { left: 21px; }
  .path::after { left: 20.5px; }
  .path-step { grid-template-columns: 44px 1fr; gap: 6px 16px; align-items: start; }
  .path-cover { grid-column: 2; width: 120px; }
  .path-body { grid-column: 2; }
  .path-num { grid-row: 1 / span 2; align-self: start; padding-top: 6px; }
  .path-num .stamp { font-size: 17px; min-width: 34px; }
}

/* =====================================================================
   Contact: the form is a letter on paper, with a Kota postmark and a seal
   ===================================================================== */
.contact { padding-top: 32px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.letter {
  position: relative; padding: clamp(28px, 4vw, 52px) clamp(22px, 4vw, 52px) clamp(28px, 4vw, 44px);
  background: #fffdf8 var(--grain); clip-path: var(--deckle);
  box-shadow: inset 4px 0 0 var(--saffron);
}
.hp { position: absolute; left: -9999px; }
.postmark { position: absolute; right: clamp(14px, 3vw, 34px); top: clamp(14px, 3vw, 30px); width: 104px; transform: rotate(-12deg); pointer-events: none; }
.postmark svg { width: 100%; height: auto; display: block; overflow: visible; }
.postmark circle { fill: none; stroke: var(--saffron-ink); stroke-width: 1.6; opacity: .7; }
.postmark text { font: 600 9.5px var(--sans); letter-spacing: .18em; fill: var(--saffron-ink); opacity: .8; }
.postmark .pm-mark { fill: var(--saffron); opacity: .85; }
.postmark { -webkit-mask-image: var(--ink-mask); mask-image: var(--ink-mask); -webkit-mask-size: 90px; mask-size: 90px; }
.js .letter:not(.in) .postmark { opacity: 0; transform: rotate(-30deg) scale(1.6); }
.js .letter .postmark { transition: opacity .4s .5s, transform .5s cubic-bezier(.3, 1.4, .5, 1) .5s; }

.purposes { border: 0; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: calc(100% - 110px); }
.purposes legend { font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--saffron-ink); margin-bottom: 14px; }
html[lang="hi"] .purposes legend { letter-spacing: .02em; font-size: 15px; }
.purpose input { position: absolute; opacity: 0; pointer-events: none; }
.purpose span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; background: var(--white); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.purpose input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.purpose input:focus-visible + span { outline: 2px solid var(--saffron-ink); outline-offset: 2px; }
.purpose span:hover { border-color: var(--saffron); }

.salutation { font: italic 600 24px/1.3 var(--serif); margin-bottom: 8px; color: var(--ink); }
html[lang="hi"] .salutation { font: 400 26px/1.4 var(--deva-display); font-style: normal; color: var(--saffron-ink); }
.field { display: grid; gap: 6px; margin-bottom: 22px; }
.field > span { font-size: 14px; color: var(--muted); }
.field small { font-size: 12.5px; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); width: 100%; border: 0; border-radius: 0; padding: 8px 2px;
  background: linear-gradient(var(--saffron), var(--saffron)) left bottom / 0 2px no-repeat,
              linear-gradient(#cdb995, #cdb995) left bottom / 100% 1px no-repeat;
  transition: background-size .45s cubic-bezier(.2, .7, .2, 1);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-size: 100% 2px, 100% 1px; }
.field-message textarea {
  resize: vertical; line-height: 32px; padding: 0 2px; min-height: 230px;
  background: linear-gradient(var(--saffron), var(--saffron)) left bottom / 0 2px no-repeat,
              repeating-linear-gradient(transparent 0 31px, #e0d1b6 31px 32px);
  font-family: var(--serif); font-size: 18px;
}
html[lang="hi"] .field-message textarea { font-family: var(--sans); }
.field-message textarea:focus { background-size: 100% 2px, auto; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); margin: 4px 0 26px; }
.consent[hidden] { display: none; }
.consent input { margin-top: 4px; accent-color: var(--saffron-ink); width: 18px; height: 18px; flex: none; }

.send-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.btn-seal { background: var(--ink); color: var(--paper); gap: 12px; padding: 14px 24px 14px 16px; position: relative; }
.btn-seal:hover { background: var(--ink-2); }
.seal {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #ffc04d, var(--saffron) 45%, #c46f00 100%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.18), 0 2px 4px rgba(0,0,0,.35);
  position: relative; transition: transform .25s;
}
.seal::after { content: ""; position: absolute; inset: 8px 9px 7px; background: rgba(27, 24, 21, .55); clip-path: var(--gable); }
.btn-seal:hover .seal { transform: rotate(-18deg) scale(1.08); }
.btn-seal:active .seal, .letter.sealing .seal { transform: scale(.82); }
.privacy { font-size: 13px; color: var(--muted); }

.contact-side { display: grid; gap: 14px; position: sticky; top: 104px; }
.other-way { display: grid; gap: 4px; padding: 20px 22px; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .3s; }
.other-way:hover { border-color: var(--saffron); transform: translateY(-3px); }
.other-way strong { font-family: var(--serif); font-size: 19px; }
.other-way span { font-size: 15px; color: var(--ink-2); }
.other-way em { font-style: normal; font-weight: 600; font-size: 14px; color: var(--saffron-ink); margin-top: 4px; }

.thanks { min-height: 60vh; display: grid; align-items: center; }
.thanks-box { max-width: 640px; text-align: center; }
.thanks-box h1 { font-size: clamp(34px, 5vw, 52px); margin: 18px 0 14px; }
html[lang="hi"] .thanks-box h1 { font-family: var(--deva-display); }
.postmark.big { position: static; width: 120px; margin: 0 auto; display: block; }

@media (max-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { position: static; }
}
@media (max-width: 760px) {
  .field-row { grid-template-columns: 1fr; }
  .postmark { width: 76px; }
  .purposes { max-width: 100%; margin-top: 64px; }
}

/* =====================================================================
   Privacy, credits and 404
   ===================================================================== */
.legal-updated { margin-top: 14px; font-size: 14px; color: var(--muted); }
.legal { padding-top: 32px; }
.legal-body { max-width: 780px; }
.legal-sec { padding: 26px 0; border-top: 1px solid var(--line); }
.legal-sec h2 { font-size: 24px; margin-bottom: 10px; }
.legal-sec p { color: var(--ink-2); }
.legal-sec p + p { margin-top: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--saffron); }

.notfound { min-height: 70vh; display: grid; align-items: center; }
.nf-box { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.nf-door { position: relative; aspect-ratio: 4 / 5; clip-path: var(--gable); background: var(--paper-2) url(/assets/img/jaali.svg); display: grid; place-items: center; }
.nf-door img { width: 62px; opacity: .9; margin-top: 150px; }
.nf-num { position: absolute; top: 30%; font: 600 64px/1 var(--serif); color: var(--saffron-ink); -webkit-mask-image: var(--ink-mask); mask-image: var(--ink-mask); -webkit-mask-size: 90px; mask-size: 90px; transform: rotate(-6deg); }
.js .nf-door { animation: doorway 1.3s cubic-bezier(.65, 0, .35, 1) .1s both; }
.js .nf-door.in .nf-num { animation: stamp .5s cubic-bezier(.3, 1.4, .5, 1) 1.2s both; }
.notfound h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 14px; }
.nf-hi { font-size: 30px; color: var(--saffron-ink); margin-top: 28px; margin-bottom: 8px; }
.nf-links { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.nf-links a { color: var(--saffron-ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; }
@media (max-width: 760px) {
  .nf-box { grid-template-columns: 1fr; }
  .nf-door { width: 220px; }
}

/* =====================================================================
   Articles: hub cards (fanned video stills) and the reading page
   ===================================================================== */
.video-stack .tome { --w: 46%; aspect-ratio: 9 / 13; }
.video-stack .tome::before { background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.25)); }
.video-stack .play.small { z-index: 20; left: 50%; top: 52%; }
.article-card .stack.n3 { --base: 14%; --fan: 13%; }
.article-card .stack.n2 { --base: 20%; }
.article-card .stack.n1 { --base: 27%; }
.article-card a:hover .stack { --fan: 17%; }

.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 20; background: var(--saffron); transform-origin: left; transform: scaleX(0); pointer-events: none; }
.art-wrap { max-width: 760px; }
.art-h1 { font-size: clamp(34px, 5vw, 56px); margin-top: 6px; }
html[lang="hi"] .art-h1 { font-family: var(--deva-display); font-weight: 700; line-height: 1.3; }
.art-dek { margin-top: 18px; font: italic 22px/1.45 var(--serif); color: var(--ink-2); }
html[lang="hi"] .art-dek { font: 400 20px/1.6 var(--sans); }
.art-meta { margin-top: 16px; font-size: 14px; color: var(--muted); padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-body { padding-top: 32px; padding-bottom: var(--section); }
.article-body p { font-size: 19px; line-height: 1.75; color: var(--ink-2); }
html[lang="hi"] .article-body p { font-size: 18px; line-height: 1.9; }
.article-body p + p { margin-top: 16px; }
.art-sec { margin-top: 44px; }
.art-sec h2 { font-size: clamp(26px, 3vw, 32px); margin-bottom: 16px; }
html[lang="hi"] .art-sec h2 { font-family: var(--deva-display); font-weight: 700; }
.art-video { margin: 0 0 22px; }
.art-video figcaption { margin-top: 8px; font-size: 14px; }
.art-video figcaption a { color: var(--muted); }
.art-video.short { float: right; width: 210px; margin: 6px 0 16px 28px; }
.art-video.short .lite-yt { aspect-ratio: 9 / 16; }
.art-sec::after { content: ""; display: block; clear: both; }
.article-body .pull-quote { max-width: none; }
.article-body .tips { margin-top: 48px; }
.art-sources { margin-top: 44px; }
.art-sources ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; }
.art-sources a { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; text-decoration: none; font-size: 15px; }
.art-sources img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; }
.art-sources a:hover span { color: var(--saffron-ink); }

@media (max-width: 760px) {
  .art-video.short { float: none; width: 62%; margin: 0 auto 18px; }
  .article-body p { font-size: 17px; }
  .art-sources ul { grid-template-columns: 1fr; }
  .video-stack .tome { --w: 36%; }
}
.art-sec .pull-quote { clear: both; }

/* =====================================================================
   Flagship band: A History of the Modern World
   ===================================================================== */
.flagship {
  position: relative; overflow: hidden; color: var(--paper);
  background: radial-gradient(ellipse at 22% 40%, rgba(255, 157, 0, .16), transparent 55%), url(/assets/img/jaali-light.svg), var(--ink);
  background-size: auto, 48px, auto;
  padding: var(--section) 0 calc(var(--section) * .8);
}
.flagship::before { content: ""; position: absolute; left: 50%; top: 0; width: 160px; height: 48px; transform: translate(-50%, -50%); background: url(/assets/img/mandana.svg) center / contain no-repeat; }
.fl-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.fl-book { position: relative; display: block; text-decoration: none; }
.fl-book .stack { --fan: 15%; --base: 4%; --w: 64%; aspect-ratio: 1 / 1.02; margin: 0; }
.fl-book .tome { box-shadow: -18px 20px 40px -14px rgba(0, 0, 0, .7), 0 1px 2px rgba(0, 0, 0, .3); }
.fl-book .tome[style*="--k:0"]::after {   /* a slow band of light across the front cover */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-130%); animation: sheen 5s ease-in-out 1.5s infinite;
}
.fl-book:hover .stack { --fan: 19%; }
.fl-book:hover .tome[style*="--k:0"] { transform: translateY(-8px) rotate(-1deg); }
.js .fl-book:not(.in) .tome { right: var(--base); opacity: 0; transform: translateY(20px); }
.fl-badge {
  position: absolute; right: 2%; top: 4%; z-index: 20; width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: 2px;
  background: var(--saffron); color: var(--ink); transform: rotate(-12deg);
  box-shadow: 0 0 0 4px var(--ink), 0 0 0 5.5px var(--saffron), 0 10px 24px rgba(0, 0, 0, .4);
  -webkit-mask-image: var(--ink-mask); mask-image: var(--ink-mask); -webkit-mask-size: 90px; mask-size: 90px;
}
.fl-badge span:first-child { font: 700 24px/1 var(--serif); letter-spacing: .04em; }
.fl-badge span:last-child { font: 600 10.5px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.js .fl-book:not(.in) .fl-badge { opacity: 0; transform: rotate(-40deg) scale(1.8); }
.js .fl-badge { transition: opacity .4s 1s, transform .55s cubic-bezier(.3, 1.4, .5, 1) 1s; }

.flagship .kicker { color: var(--saffron); }
.flagship .deva-kicker { color: var(--saffron); }
.fl-title { font-size: clamp(30px, 3.8vw, 46px); color: var(--white); line-height: 1.15; }
html[lang="hi"] .fl-title { font-family: var(--deva-display); font-weight: 700; line-height: 1.35; }
.fl-sub { margin-top: 14px; font: italic 18px/1.5 var(--serif); color: #e7c58f; }
html[lang="hi"] .fl-sub { font: 500 16px/1.6 var(--sans); }
.fl-lead { margin-top: 16px; color: #d8cfc2; font-size: 17px; max-width: 38em; }
.fl-stats { list-style: none; margin: 28px 0 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 1px solid #3a342e; }
.fl-stats li { display: grid; gap: 4px; }
.fl-stats .num { color: var(--saffron); font-size: clamp(30px, 3.2vw, 40px); }
.fl-stats .label { color: #a99f92; font-size: 13px; line-height: 1.35; }
.fl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 30px; }
.btn-saffron { background: var(--saffron); color: var(--ink); }
.btn-saffron:hover { background: #ffb43d; }
.btn-ghost-light { border-color: #6b6157; color: var(--paper); }
.btn-ghost-light:hover { border-color: var(--saffron); color: var(--white); }
.flagship .link-arrow { color: var(--saffron); }

.fl-lower { margin-top: clamp(48px, 6vw, 80px); }
.fl-h3 { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #a99f92; margin: 0 0 16px; }
html[lang="hi"] .fl-h3 { letter-spacing: .02em; font-size: 15px; }
.fl-recs { list-style: none; margin: 0 0 44px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fl-recs a { display: grid; gap: 6px; height: 100%; padding: 18px 18px 16px; text-decoration: none; border: 1px solid #3a342e; border-radius: var(--radius); background: rgba(255, 255, 255, .03); transition: border-color .2s, transform .3s; }
.fl-recs a:hover { border-color: var(--saffron); transform: translateY(-3px); }
.fl-recs strong { font: 600 18px/1.2 var(--serif); color: var(--white); }
.fl-recs span { font-size: 14px; color: #d8cfc2; line-height: 1.45; }

.voices { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.voice-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; width: max-content; animation: marquee 48s linear infinite; }
.voices:hover .voice-track, .voices:focus-within .voice-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.voice-card { width: 300px; flex: none; padding: 20px 22px; border-radius: var(--radius); background: #fbf5ea var(--grain); color: var(--ink); clip-path: var(--deckle); }
.voice-card .stars { color: var(--saffron-ink); letter-spacing: 2px; font-size: 15px; }
.voice-card p { margin: 8px 0 10px; font: italic 17px/1.45 var(--serif); }
html[lang="hi"] .voice-card p { font: 500 16px/1.6 var(--sans); }
.voice-card .who { font-size: 12.5px; color: var(--muted); }
.fl-note { margin-top: 22px; font-size: 13px; color: #a99f92; max-width: 60em; }

.flagship.compact { padding: calc(var(--section) * .7) 0; }
.fl-compact-head { display: grid; gap: 4px; }
.fl-compact-head .fl-stats { border-top: 0; padding-top: 6px; margin-top: 0; max-width: 760px; }
.flagship.compact .fl-lower { margin-top: 36px; }

@media (max-width: 1000px) {
  .fl-grid { grid-template-columns: 1fr; }
  .fl-book { width: min(100%, 420px); margin: 0 auto; }
  .fl-recs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .fl-stats { grid-template-columns: repeat(2, 1fr); }
  .fl-badge { width: 84px; height: 84px; }
  .fl-badge span:first-child { font-size: 19px; }
  .fl-recs { grid-template-columns: 1fr; }
  .voice-card { width: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  .voice-track { animation: none; flex-wrap: wrap; width: auto; }
  .voice-track [aria-hidden="true"] { display: none; }
  .fl-book .tome[style*="--k:0"]::after { animation: none; }
}

/* Homepage order: timeline (paper) → flagship (dark) → works (light).
   The flagship's medallion sits on the paper/dark seam; the works band drops its
   top rule so the dark band meets it cleanly, and keeps its own medallion. */
.flagship + .works { border-top: 0; }
.flagship { box-shadow: inset 0 1px 0 #3a342e; }

/* =====================================================================
   Life & work: top photo, sticky chapter bar, chapter photos
   ===================================================================== */
.intro-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; }
.about-photo { position: relative; width: min(100%, 340px); justify-self: center; isolation: isolate; }
.about-photo .arch-back { z-index: -1; }
.js .about-photo:not(.in) .arch-back { transform: translate(0, 0); opacity: 0; }
.about-photo .arch-back { transition: transform .9s cubic-bezier(.2, .7, .2, 1) .3s, opacity .6s .3s; }

.chapter-bar {
  position: sticky; top: var(--header-h, 72px); z-index: 4;
  background: rgba(251, 247, 240, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-block: 1px solid var(--line);
}
.chapter-bar .wrap { display: flex; align-items: center; gap: 18px; }
.cb-label { flex: none; font: italic 600 15px var(--serif); color: #7a5a3a; }
.chapter-bar ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.chapter-bar ol::-webkit-scrollbar { display: none; }
.chapter-bar a {
  display: flex; align-items: baseline; gap: 7px; white-space: nowrap; text-decoration: none;
  padding: 12px 12px 10px; font-size: 14px; color: var(--ink-2); border-bottom: 2px solid transparent;
  transition: color .2s, border-color .3s;
}
.cb-num { font: 600 13px var(--serif); color: var(--saffron-ink); }
html[lang="hi"] .cb-num { font-family: var(--deva-display); font-size: 16px; }
.chapter-bar a:hover { color: var(--ink); }
.chapter-bar a.active { color: var(--ink); border-bottom-color: var(--saffron); }
.chapter { scroll-margin-top: calc(var(--header-h, 72px) + 64px); }
.ch-mark { top: calc(var(--header-h, 72px) + 80px); }

.ch-photo { margin: 0 0 22px; max-width: 40em; }
.ch-photo img { width: 100%; height: auto; border-radius: 3px; box-shadow: 0 2px 4px rgba(27,24,21,.12), 0 18px 36px -16px rgba(27,24,21,.4); filter: sepia(.08); }
.ch-photo figcaption { margin-top: 10px; font: italic 14px var(--serif); color: var(--muted); }

@media (max-width: 760px) {
  .intro-grid { grid-template-columns: 1fr; }
  .about-photo { width: min(72%, 260px); margin-right: 18px; }
  .cb-label { display: none; }
  .chapter-bar a { padding: 11px 10px 9px; }
}

/* =====================================================================
   Belief cards and their pop-up
   ===================================================================== */
.belief { border-top: 0; padding-top: 0; }
.belief-open {
  all: unset; box-sizing: border-box; display: block; width: 100%; height: 100%; cursor: pointer;
  border-top: 2px solid var(--saffron); padding: 18px 16px 18px 0; position: relative;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.belief-open::after {   /* the rule grows into a soft paper panel on hover */
  content: ""; position: absolute; inset: 0 -14px 0 -14px; z-index: -1; background: var(--saffron-soft); opacity: 0;
  transition: opacity .3s; border-radius: 0 0 var(--radius) var(--radius);
}
.belief-open:hover, .belief-open:focus-visible { transform: translateY(-3px); }
.belief-open:hover::after, .belief-open:focus-visible::after { opacity: 1; }
.belief { position: relative; isolation: isolate; }
.b-more { display: inline-block; margin-top: 12px; font: 600 14px var(--sans); color: var(--saffron-ink); border-bottom: 1.5px solid currentColor; }
.b-more::after { content: " →"; }

.belief-dialog { border: 0; padding: 0; background: transparent; max-width: min(640px, calc(100vw - 32px)); width: 100%; overflow: visible; }
.belief-dialog::backdrop { background: rgba(27, 24, 21, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.bd-card {
  position: relative; padding: clamp(28px, 5vw, 48px); background: #fffcf6 var(--grain); color: var(--ink);
  clip-path: var(--deckle); box-shadow: inset 4px 0 0 var(--saffron);
}
.belief-dialog[open] .bd-card { animation: bd-in .45s cubic-bezier(.2, .7, .2, 1) both; }
.belief-dialog[open]::backdrop { animation: fade-in .3s both; }
.belief-dialog.closing .bd-card { animation: bd-out .22s ease-in both; }
@keyframes bd-in { from { opacity: 0; transform: translateY(28px) scale(.97); } }
@keyframes bd-out { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
.bd-close { position: absolute; right: 18px; top: 14px; border: 0; background: none; font: 400 30px/1 var(--sans); color: var(--muted); cursor: pointer; padding: 4px 8px; }
.bd-close:hover { color: var(--ink); }
.bd-num { display: inline-block; font: 600 15px var(--serif); color: var(--saffron-ink); border: 1.5px solid currentColor; border-radius: 3px; padding: 1px 8px; transform: rotate(-4deg); }
.bd-card h3 { font-size: clamp(26px, 3.4vw, 34px); margin: 14px 0 12px; }
html[lang="hi"] .bd-card h3 { font-family: var(--deva-display); }
.bd-quote { font: 400 clamp(22px, 3vw, 28px)/1.45 var(--deva-display); color: var(--saffron-ink); }
.bd-trans { margin-top: 6px; font: italic 18px/1.5 var(--serif); color: var(--ink-2); }
.bd-text { margin-top: 18px; font-size: 17px; line-height: 1.75; color: var(--ink-2); }
html[lang="hi"] .bd-text { line-height: 1.9; }
.bd-links { display: grid; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.bd-watch { font-size: 14px; color: var(--muted); }

.credit a { color: var(--saffron); text-decoration: none; font-weight: 600; }
.credit a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .credit { margin-left: auto; }
@media (max-width: 760px) { .footer-bottom .credit { margin-left: 0; width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .belief-dialog[open] .bd-card, .belief-dialog[open]::backdrop, .belief-dialog.closing .bd-card { animation: none; }
}

/* =====================================================================
   Logo (locked Nov 2026): saffron "h" + "Dr. Hukam Chand Jain" / "Historian · Author"
   ===================================================================== */
.lockup { display: inline-flex; align-items: center; gap: 11px; height: 46px; color: var(--ink); }
.brand-mark { display: block; height: 100%; width: auto; aspect-ratio: 152.6 / 209.5; flex: none; fill: var(--saffron); }
.lk-txt { display: flex; flex-direction: column; justify-content: center; }
.lk-name { font: 600 21px/1.05 var(--serif); letter-spacing: -0.01em; white-space: nowrap; }
.lk-desc { font: 600 9px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--saffron-ink); margin-top: 6px; white-space: nowrap; }
.lockup:lang(hi) .lk-name { font: 600 21px/1.35 "Noto Serif Devanagari", var(--serif); letter-spacing: 0; }
.lockup:lang(hi) .lk-desc { font: 500 12px/1 "Noto Serif Devanagari", var(--sans); letter-spacing: 0; text-transform: none; margin-top: 2px; }
.brand { text-decoration: none; }
.brand:hover .brand-mark { transform: translateY(-1px); }
.brand-mark { transition: transform .3s; }

.footer-lockup { display: inline-flex; align-items: center; gap: 16px; height: 64px; text-decoration: none; color: var(--paper); }
.footer-lockup .lk-bar { width: 1.5px; align-self: stretch; background: #3a342e; }
.footer-lockup .lk-name { font-size: 22px; color: var(--white); }
.footer-lockup .lk-hi { font: 500 16px/1.4 "Noto Serif Devanagari", serif; color: #a99f92; margin-top: 3px; white-space: nowrap; }

@media (max-width: 760px) {
  .lockup { height: 38px; gap: 9px; }
  .lk-name { font-size: 17px; }
  .lk-desc { font-size: 7.5px; letter-spacing: .18em; margin-top: 5px; }
  .lockup:lang(hi) .lk-name { font-size: 17px; }
  .lockup:lang(hi) .lk-desc { font-size: 10.5px; }
  .footer-lockup { height: 52px; gap: 12px; }
  .footer-lockup .lk-name { font-size: 18px; }
}

/* Contact: call / WhatsApp panel (first thing on the page) */
.contact-main { min-width: 0; }
.letter-title { margin-bottom: 16px; }
.talk {
  position: relative; display: grid; gap: 10px; justify-items: start; padding: 28px 26px 24px;
  background: var(--ink) url(/assets/img/jaali-light.svg); background-size: 48px; color: var(--paper);
  border-radius: var(--radius); margin-bottom: 10px;
}
.talk .gable.big { margin-bottom: 4px; }
.talk h2 { font: 600 26px/1.2 var(--serif); color: var(--white); }
html[lang="hi"] .talk h2 { font-family: var(--deva-display); font-weight: 700; }
.talk p { color: #d8cfc2; font-size: 15px; }
.phone-num { font: 600 clamp(26px, 3vw, 32px)/1.2 var(--serif); color: var(--saffron); text-decoration: none; letter-spacing: .01em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.phone-num:hover { text-decoration: underline; text-underline-offset: 4px; }
.talk-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-wa { background: #25d366; color: #0b3d1f; gap: 10px; }
.btn-wa:hover { background: #2fe072; }
.wa-icon { flex: none; }
.talk .btn-ghost { border-color: #6b6157; color: var(--paper); }
.talk .btn-ghost:hover { border-color: var(--saffron); background: transparent; }
.talk-note { font-size: 13px !important; color: #a99f92 !important; }
.js .talk:not(.in) .phone-num { opacity: 0; transform: translateY(8px); }
.talk .phone-num { transition: opacity .6s .3s, transform .6s .3s; }
@media (max-width: 1000px) {
  .contact-side { display: contents; }
  .contact-grid > .contact-side > .talk { order: -1; }
  .contact-grid { display: flex; flex-direction: column; }
  .contact-grid .talk { order: -1; width: 100%; }
}

/* ---------- gallery: prints laid in an album, year by year */
.gal-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.gal-year { margin-bottom: clamp(48px, 7vw, 80px); }
.gal-year[hidden] { display: none; }
.gal-yr { display: flex; align-items: baseline; gap: 18px; margin-bottom: 30px; }
.gal-yr h2 { margin: 0; font: 600 clamp(44px, 6vw, 72px)/1 var(--serif); color: var(--saffron-ink); letter-spacing: -.01em; }
.gal-rule { flex: 1; height: 2px; background: linear-gradient(90deg, var(--saffron), var(--line)); transform-origin: left; }
.js .gal-yr:not(.in) .gal-rule { transform: scaleX(0); }
.gal-rule { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1) .2s; }
.gal-n { font-size: 14px; color: var(--muted); white-space: nowrap; }

.gal-grid { list-style: none; margin: 0; padding: 0; columns: 3 250px; column-gap: clamp(20px, 3vw, 36px); }
.print { break-inside: avoid; margin: 0 0 clamp(24px, 3vw, 36px); padding: 10px 10px 4px; background: var(--white);
  box-shadow: 0 1px 2px rgba(27, 24, 21, .1), 0 14px 30px -14px rgba(27, 24, 21, .35);
  transform: rotate(var(--r)); transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; }
.js .print.reveal { opacity: 0; transform: translateY(40px) rotate(calc(var(--r) * 4)) scale(.94); }
.js .print.reveal.in { opacity: 1; transform: rotate(var(--r)); }
.js .print.reveal.in:hover, .print:focus-within { transform: rotate(0) translateY(-6px) scale(1.02); box-shadow: 0 2px 4px rgba(27, 24, 21, .12), 0 26px 44px -16px rgba(27, 24, 21, .45); }
.print-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.print-photo { position: relative; display: block; overflow: hidden; background: var(--paper-2); }
/* Album photo corners. */
.print-photo::before, .print-photo::after { content: ""; position: absolute; z-index: 1; width: 22px; height: 22px; background: var(--ink-2); opacity: .85; }
.print-photo::before { top: 0; left: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.print-photo::after { right: 0; bottom: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.print-photo img { display: block; width: 100%; height: auto; transition: filter 1.6s ease .25s, transform .8s cubic-bezier(.2, .7, .2, 1); }
/* The photo "develops": from faded sepia to full colour as it lands. */
.js .print:not(.in) .print-photo img { filter: sepia(1) contrast(.7) brightness(1.18) blur(3px); }
.print-btn:hover img { transform: scale(1.04); }
.print-cap { margin: 10px 4px 8px; font: italic 500 16px/1.4 var(--serif); color: var(--ink-2); }
html[lang="hi"] .print-cap { font-style: normal; }
.print-yr { display: inline-block; margin-right: 8px; font: 600 12px var(--sans); font-style: normal; letter-spacing: .08em; color: var(--saffron-ink); }

.lightbox { border: 0; padding: 0; background: transparent; width: 100vw; height: 100dvh; max-width: none; max-height: none; overflow: hidden; }
.lightbox::backdrop { background: rgba(20, 17, 14, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox[open]::backdrop { animation: fade-in .3s both; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 56px max(16px, 6vw) 24px; max-height: 100dvh; }
.lb-img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; background: var(--white); padding: 8px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.lightbox[open] .lb-img { animation: lb-in .5s cubic-bezier(.2, .7, .2, 1) both; }
.lb-img.swap { animation: lb-swap .45s cubic-bezier(.2, .7, .2, 1) both !important; }
.lb-figure figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 14px; color: #f3ebdd; text-align: center; }
.lb-year { font: 600 13px var(--sans); letter-spacing: .1em; color: var(--saffron); }
.lb-cap { font: italic 18px/1.4 var(--serif); }
html[lang="hi"] .lb-cap { font-style: normal; }
.lb-pos { font-size: 13px; color: #b9ad9c; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(27, 24, 21, .55); color: #fff; font: 400 30px/1 var(--serif); cursor: pointer; transition: background .2s, border-color .2s; }
.lb-btn:hover { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.lb-prev { left: max(12px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(12px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
.lb-close { right: max(12px, env(safe-area-inset-right, 0px)); top: max(12px, env(safe-area-inset-top, 0px)); }
@keyframes lb-in { from { opacity: 0; transform: scale(.92) rotate(-1.5deg); } }
@keyframes lb-swap { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 40px)); } }
@media (max-width: 640px) {
  .gal-grid { columns: 2; column-gap: 14px; }
  .print { padding: 6px 6px 2px; margin-bottom: 18px; }
  .print-cap { font-size: 14px; margin: 8px 2px 6px; }
  .print-yr { display: none; }
  .print-photo::before, .print-photo::after { width: 14px; height: 14px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-figure { padding-bottom: 80px; }
  .lb-img { max-height: calc(100dvh - 200px); }
}
@media (prefers-reduced-motion: reduce) {
  .js .print.reveal, .js .print.reveal.in { transform: rotate(var(--r)); opacity: 1; }
  .js .print:not(.in) .print-photo img { filter: none; }
  .lightbox[open] .lb-img, .lb-img.swap { animation: none !important; }
}

/* Gallery cover: the family photo as one large print. */
.gal-cover { margin: 0 0 clamp(40px, 6vw, 64px); padding: clamp(8px, 1.2vw, 14px) clamp(8px, 1.2vw, 14px) 4px; background: var(--white);
  box-shadow: 0 2px 4px rgba(27, 24, 21, .1), 0 30px 60px -28px rgba(27, 24, 21, .45); transform: rotate(-.5deg); }
.js .gal-cover.reveal { transform: translateY(30px) rotate(-2deg) scale(.97); }
.js .gal-cover.reveal.in { transform: rotate(-.5deg); }
.gal-cover .print-photo img { width: 100%; height: auto; transform: scale(1.08); transition: filter 1.8s ease .2s, transform 6s cubic-bezier(.2, .7, .2, 1); }
.js .gal-cover:not(.in) .print-photo img { filter: sepia(1) contrast(.7) brightness(1.18) blur(3px); }
.gal-cover.in .print-photo img, .gal-cover:not(.reveal) .print-photo img { transform: none; }
.gal-cover .print-photo::before, .gal-cover .print-photo::after { width: 34px; height: 34px; }
.gal-cover .print-cap { font-size: clamp(16px, 1.6vw, 19px); }
.gal-yr h2.gal-yr-words { font-size: clamp(32px, 4vw, 48px); }
@media (prefers-reduced-motion: reduce) {
  .js .gal-cover.reveal, .js .gal-cover.reveal.in { transform: rotate(-.5deg); }
  .gal-cover .print-photo img { transform: none; transition: none; }
}

/* ---------- honours: each one a stamped seal on a saffron thread */
.honours { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: clamp(22px, 3vw, 34px); max-width: 860px; }
.honours::before { content: ""; position: absolute; left: 43px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--saffron), var(--line)); }
.honour { position: relative; display: grid; grid-template-columns: 88px 1fr auto; gap: 24px; align-items: start; }
.hseal { position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8ea, var(--saffron-soft) 70%); color: var(--saffron-ink);
  box-shadow: 0 0 0 6px var(--paper), 0 6px 16px -6px rgba(154, 88, 0, .45); }
.hseal > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.5; }
.hseal > svg:first-child circle + circle { stroke-width: 1.2; stroke-dasharray: 3 4; }
.hseal .seal-mark { position: relative; width: auto; height: 30px; }
.js .honour.reveal .hseal { opacity: 0; }
.js .honour.reveal.in .hseal { animation: stamp .55s cubic-bezier(.3, 1.4, .5, 1) calc(var(--i, 0) * 90ms + .15s) both; }
.honour-text { padding-top: 6px; min-width: 0; }
.seal-year { display: block; font: 600 clamp(26px, 3vw, 34px)/1 var(--serif); color: var(--saffron-ink); margin-bottom: 8px; }
.seal-year.seal-none { font: 600 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.honour h3 { margin: 0 0 4px; font: 600 clamp(20px, 2vw, 24px)/1.3 var(--serif); text-wrap: balance; }
.honour-by { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.honour-text p:last-child { margin: 0; color: var(--ink-2); }
.honour-photo { margin: 0; width: 160px; padding: 6px; background: var(--white); box-shadow: var(--shadow-book); transform: rotate(1.5deg); }
.honour-photo img { display: block; width: 100%; height: auto; }

/* ---------- press: newspaper cards */
.press-sec { background: #fffcf6 var(--grain); border-top: 1px solid var(--line); }
.press-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: clamp(22px, 3vw, 36px); }
.press-card a { display: grid; grid-template-columns: 38% 1fr; gap: 22px; align-items: start; height: 100%; padding: 20px; color: inherit; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .4s, transform .4s; }
.press-card a:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(27, 24, 21, .4); }
.pc-clip { display: block; perspective: 900px; }
.pc-clip img { display: block; width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 10px 22px -12px rgba(27, 24, 21, .45);
  transform: rotate(-2deg); transform-origin: top center; transition: transform .9s cubic-bezier(.2, .7, .2, 1) .15s, filter 1.4s ease .2s; }
/* The cutting unfolds, and yellows into place, as the card arrives. */
.js .press-card:not(.in) .pc-clip img { transform: rotateX(70deg); filter: sepia(.8) brightness(1.1); }
.press-card a:hover .pc-clip img { transform: rotate(0) scale(1.03); }
.pc-text { display: grid; gap: 8px; min-width: 0; }
.pc-mast { font: 700 clamp(18px, 1.8vw, 21px)/1.2 var(--serif); letter-spacing: .01em; padding-bottom: 6px; border-bottom: 3px double var(--ink); }
.pc-date { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--saffron-ink); }
.pc-head { font: 600 clamp(18px, 1.7vw, 21px)/1.45 "Noto Serif Devanagari", var(--serif); color: var(--ink); }
.pc-dek { font-size: 15px; color: var(--ink-2); }
.pc-also { font-size: 13px; color: var(--muted); font-style: italic; }
.press-card .link-arrow { margin-top: 4px; justify-self: start; }

.press-headline { margin: 0 0 40px; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--ink); }
.press-headline blockquote { margin: 12px 0 0; font: 600 clamp(22px, 2.6vw, 30px)/1.45 "Noto Serif Devanagari", var(--serif); }
.press-clips { columns: 2 220px; margin: 18px 0 44px; }

@media (max-width: 640px) {
  .honours::before { left: 31px; }
  .honour { grid-template-columns: 64px 1fr; gap: 16px; }
  .hseal { width: 64px; height: 64px; }
  .hseal .seal-mark { height: 22px; }
  .honour-photo { grid-column: 2; width: 140px; }
  .press-card a { grid-template-columns: 1fr; }
  .pc-clip { max-width: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .honour.reveal .hseal { opacity: 1; animation: none; }
  .js .press-card:not(.in) .pc-clip img { transform: rotate(-2deg); filter: none; }
}

/* ---------- videos: the wall of Shorts (vertical cards) */
.videos-shorts { background: #fffcf6 var(--grain); border-block: 1px solid var(--line); }
.shorts-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; }
.short-card a { display: grid; gap: 10px; color: inherit; text-decoration: none; }
.short-thumb { position: relative; display: block; aspect-ratio: 9 / 16; max-width: 100%; overflow: hidden; border-radius: 10px; background: var(--ink);
  box-shadow: 0 12px 24px -14px rgba(27, 24, 21, .5); }
.short-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.short-card a:hover .short-thumb img { transform: scale(1.08); }
.short-thumb .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.short-title { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink-2); }
.short-card a:hover .short-title { color: var(--ink); }
.js .shorts-grid:not(.all) .short-card.extra { display: none; }
.shorts-foot { display: flex; justify-content: center; margin-top: 36px; }
@media (max-width: 640px) { .shorts-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; } }
.short-article { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--saffron-ink); text-decoration: none; }
.short-article:hover { text-decoration: underline; }

/* Tilted prints, unfolding clippings and the postmark may lean past the edge; never let them widen the page. */
main { overflow-x: clip; }
.pc-clip { overflow: hidden; padding: 4px; }

/* ---------- header: all seven sections in the menu */
.main-nav a { white-space: nowrap; }
.main-nav { gap: clamp(16px, 1.9vw, 26px); }
@media (max-width: 1120px) and (min-width: 761px) {
  .header-row { flex-wrap: wrap; gap: 0 20px; min-height: 0; padding-top: 12px; }
  .lang-switch { margin-left: auto; }
  .main-nav { order: 3; width: 100%; margin: 6px 0 0; padding-bottom: 10px; gap: 22px; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 760px) {
  /* Phones: every section visible at once, on two short rows, instead of a sideways strip. */
  .main-nav { flex-wrap: wrap; overflow: visible; white-space: normal; gap: 4px 18px; padding-bottom: 10px; font-size: 15px; }
  .main-nav a { padding: 4px 0; }
}
@media (max-width: 760px) {
  /* With the full menu the header is taller, so on phones it scrolls away with the page. */
  .site-header { position: relative; }
  .chapter-bar { top: 0; }
}
