/* ============================================================
   01 · Anantha Yatra — The polished editorial homepage
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper-soft);
  color: var(--color-ink);
  font-family: var(--font-ui);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--maroon); }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   CUSTOM CURSOR (small diya / flame)
   ============================================================ */
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 22px; height: 32px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -85%);
  transition: transform 80ms linear, opacity 200ms ease;
  mix-blend-mode: normal;
  filter: drop-shadow(0 0 10px rgba(232,120,42,0.55))
          drop-shadow(0 0 22px rgba(184,48,32,0.35));
  will-change: transform;
}
#cursor .flame-g {
  transform-origin: 12px 26px;
  animation: flame-flicker 1.6s ease-in-out infinite;
}
@media (hover: none) {
  #cursor { display: none; }
  body.custom-cursor-on, body.custom-cursor-on * { cursor: auto !important; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 6, 8, 0.55);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  color: #F8EFD6;
  transition: background 300ms ease, color 300ms ease;
  border-bottom: 1px solid rgba(248, 239, 214, 0.08);
}
.nav.is-light {
  background: rgba(251, 246, 230, 0.88);
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-hairline);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.01em;
}
.brand-word {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}
.brand-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  padding-left: 12px;
  margin-left: 4px;
  border-left: 1px solid currentColor;
  align-self: center;
  padding-block: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  letter-spacing: 0.02em;
}
.nav-links a:not(.cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 250ms ease;
}
.nav-links a:not(.cta):hover::after { right: 0; }
.nav-links .cta {
  background: var(--saffron);
  color: #fff;
  padding: 9px 14px;
  border-radius: 8px;
  transition: background 200ms ease;
}
.nav-links .cta:hover { background: var(--saffron-deep); }

.nav-progress {
  height: 2px;
  background: rgba(248,239,214,0.08);
}
.nav-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--saffron) 0%, var(--gold-bright) 100%);
  transition: width 80ms linear;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease;
}
.btn-primary {
  background: var(--saffron);
  color: #fff;
  border: 1px solid var(--saffron);
}
.btn-primary:hover { background: var(--saffron-deep); border-color: var(--saffron-deep); }
.btn-ghost {
  background: transparent;
  color: currentColor;
  border: 1px solid currentColor;
}
.btn-ghost:hover { background: rgba(248,239,214,0.08); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: #1A0608;
  color: #F8EFD6;
  overflow: hidden;
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
}
.hero-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(232,120,42,0.55), transparent 70%),
    radial-gradient(ellipse 50% 40% at 30% 30%, rgba(184,48,32,0.35), transparent 60%),
    var(--gradient-hero-sky);
  z-index: 0;
}
.hero-noise {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(248,239,214,0.03) 1px, transparent 1px);
  background-size: 4px 4px;
  z-index: 1;
  pointer-events: none;
}
.hero-mandala {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 880px;
  height: 880px;
  z-index: 2;
  opacity: 0.85;
  pointer-events: none;
}
.mandala-spin {
  transform-origin: 300px 300px;
  animation: slow-spin 120s linear infinite;
}
.mandala-om {
  transform-origin: 300px 305px;
}

.hero-grid {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: block;       /* single column — let the quote breathe */
}
/* Diya sits in the bottom-right as a decoration, not a grid cell */
.hero-grid > .hero-diya {
  position: absolute;
  right: 56px;
  bottom: 80px;
  text-align: right;
  z-index: 4;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(248,239,214,0.78);
  margin-bottom: 36px;
}
.hero-eyebrow .bullet {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 12px var(--saffron);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.85); }
}

.hero-quote {
  font-size: clamp(56px, 8.4vw, 124px);
  line-height: 0.98;
  letter-spacing: -2px;
  margin: 0;
  color: #FBF6E6;
  font-weight: 400;
  position: relative;
}
.hero-quote .open-quote,
.hero-quote .close-quote {
  font-family: var(--font-display);
  color: var(--saffron);
  font-size: 0.92em;
  line-height: 1;
  vertical-align: -0.08em;
}
.hero-quote .line {
  display: block;
}
.hero-quote .line.indent {
  padding-left: 1.6em;
}
.hero-quote .serif-it {
  color: var(--gold-bright);
}
.underline-wave {
  position: relative;
  display: inline-block;
}
.underline-wave::after {
  content: '';
  position: absolute;
  left: 4%; right: 0%;
  bottom: -0.04em;
  height: 0.14em;
  background:
    radial-gradient(circle 4px at 8px 50%, var(--saffron) 60%, transparent 62%) 0 50% / 16px 100% repeat-x;
  opacity: 0.9;
}

.hero-attr {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(248,239,214,0.85);
}
.hero-attr .hairline {
  width: 56px;
  height: 1px;
  background: rgba(248,239,214,0.5);
}
.hero-attr-name {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.01em;
}
.hero-attr-role {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248,239,214,0.6);
  margin-top: 2px;
}

.hero-lede {
  margin-top: 32px;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(248,239,214,0.82);
}
.hero-lede em { color: var(--gold-bright); font-style: italic; }

.hero-cta-row {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-diya {
  position: relative;
  text-align: center;
}
.hero-diya .diya-label {
  text-align: right;
}
.hero-diya svg .flame {
  transform-origin: 40px 76px;
  animation: flame-flicker 1.4s ease-in-out infinite;
}
.hero-diya svg {
  filter: drop-shadow(0 0 16px rgba(232,120,42,0.55))
          drop-shadow(0 0 32px rgba(184,48,32,0.4));
}
.diya-label {
  display: block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: rgba(248,239,214,0.7);
  letter-spacing: 0.02em;
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 4;
  color: rgba(248,239,214,0.7);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero-scroll-cue .line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--saffron), transparent);
  animation: scroll-cue 2s ease-in-out infinite;
}
@keyframes scroll-cue {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}


/* ============================================================
   VISION
   ============================================================ */
.vision {
  background: var(--paper-soft);
  padding: 140px 0 60px;
  position: relative;
}
.vision-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}
.vision-portrait {
  position: sticky;
  top: 120px;
  align-self: start;
}
.portrait-frame {
  width: 100%;
  aspect-ratio: 280 / 360;
  background: var(--parchment);
  box-shadow:
    0 1px 0 rgba(0,0,0,0.06),
    0 20px 60px -20px rgba(74,20,16,0.35),
    inset 0 0 0 1px var(--paper-shadow);
  position: relative;
}
.portrait-frame::before {
  content: '';
  position: absolute;
  inset: -22px;
  border: 1px solid var(--paper-shadow);
  z-index: -1;
}
.portrait-caption {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--color-slate);
  line-height: 1.5;
}
.portrait-caption .eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-style: normal;
  color: var(--saffron-deep);
  margin-bottom: 4px;
}

.vision-copy { max-width: 720px; }
.vision-copy .eyebrow { color: var(--saffron-deep); margin-bottom: 24px; display: block; }
.vision-h {
  font-size: clamp(56px, 6vw, 92px);
  line-height: 1.02;
  letter-spacing: -1.5px;
  color: var(--maroon-ink);
  margin: 0 0 40px;
}
.vision-h .serif-it { color: var(--saffron); }
.vision-lead {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.4;
  color: var(--color-ink);
  margin: 0 0 32px;
  letter-spacing: -0.2px;
}
.vision-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-charcoal);
  margin: 0 0 22px;
  max-width: 60ch;
}
.vision-pull {
  margin: 40px 0;
  padding: 0 32px;
  border-left: 2px solid var(--saffron);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1.35;
  color: var(--maroon);
  position: relative;
}
.vision-pull cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-steel);
}

/* ============================================================
   TIMELINE — horizontal-pinned chronology
   Same pin mechanic as the year section.
   ============================================================ */
.tline {
  background: var(--paper);
  position: relative;
  border-top: 1px solid var(--paper-shadow);
  border-bottom: 1px solid var(--paper-shadow);
  /* NO overflow:hidden here — would break the sticky inside. */
}
.tline-pin-host {
  position: relative;
  min-height: 100vh;
}
.tline-pin-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 380px 1fr;
  grid-template-rows: 100vh;
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 60% at 0% 50%, rgba(232,120,42,0.06), transparent 60%),
    var(--paper);
  background-image:
    radial-gradient(ellipse 60% 60% at 0% 50%, rgba(232,120,42,0.06), transparent 60%),
    radial-gradient(circle at 1px 1px, rgba(58,15,12,0.04) 1px, transparent 1px);
  background-size: auto, 6px 6px;
}

/* left sticky rail */
.tline-rail {
  padding: 88px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  border-right: 1px solid var(--paper-shadow);
  z-index: 2;
  background: linear-gradient(90deg, var(--paper) 80%, rgba(248,239,214,0));
}
.tline-rail .eyebrow { color: var(--saffron-deep); }
.tline-h {
  font-size: clamp(48px, 5vw, 80px);
  line-height: 0.96;
  letter-spacing: -1.6px;
  color: var(--maroon-ink);
  margin: 0;
  font-weight: 400;
}
.tline-h .serif-it { color: var(--saffron); }
.tline-lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-slate);
  margin: 0;
  max-width: 30ch;
}
.tline-progress {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tline-bar {
  position: relative;
  height: 1px;
  background: var(--paper-shadow);
  overflow: hidden;
}
.tline-bar-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--saffron) 0%, var(--vermillion) 60%, var(--maroon) 100%);
}
.tline-readout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.tline-year-now {
  font-size: 32px;
  color: var(--maroon-ink);
  letter-spacing: -0.5px;
  line-height: 1;
}
.tline-count {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-steel);
  font-variant-numeric: tabular-nums;
}
.tline-count #tlineIdx { color: var(--saffron-deep); font-weight: 600; }

/* the horizontal track */
.tline-track {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 64px;
  gap: 0;
  height: 100%;
  will-change: transform;
}

/* the chronological line going through the centre */
.tline-line {
  position: absolute;
  left: 64px; right: 0;
  top: 50%;
  height: 1px;
  background: var(--paper-shadow);
  transform: translateY(-0.5px);
}
.tline-line-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--saffron) 0%, var(--vermillion) 60%, var(--maroon) 100%);
  transition: width 80ms linear;
}

/* each stop on the line */
.tline-stop {
  flex: 0 0 380px;
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto auto 1fr;
  justify-items: center;
  align-items: center;
  text-align: center;
  padding: 80px 16px;
}
/* stops that sit "above" the line: card top, dot middle, year below */
.tline-stop.above {
  grid-template-rows: 1fr auto 14px 1fr;
}
.tline-stop.above .tline-card  { grid-row: 1; align-self: end; }
.tline-stop.above .tline-dot   { grid-row: 2; }
.tline-stop.above .tline-year  { grid-row: 3 / span 2; align-self: start; margin-top: 12px; }

.tline-stop.below {
  grid-template-rows: 1fr 14px auto 1fr;
}
.tline-stop.below .tline-year  { grid-row: 1; align-self: end; margin-bottom: 12px; }
.tline-stop.below .tline-dot   { grid-row: 2; }
.tline-stop.below .tline-card  { grid-row: 3; align-self: start; }

.tline-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--color-stone);
  position: relative;
  z-index: 2;
  transition: background 300ms ease, border-color 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}
.tline-stop.is-active .tline-dot {
  background: var(--saffron);
  border-color: var(--saffron-deep);
  transform: scale(1.45);
  box-shadow: 0 0 0 6px rgba(232,120,42,0.18);
}
.tline-dot.key {
  width: 18px; height: 18px;
  background: var(--vermillion);
  border-color: var(--maroon);
  box-shadow: 0 0 0 6px rgba(184,48,32,0.14);
}
.tline-stop.is-active .tline-dot.key {
  background: var(--vermillion);
  border-color: var(--maroon-deep);
}
.tline-dot.now {
  background: var(--gold-bright);
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 6px rgba(229,184,85,0.26), 0 0 22px rgba(229,184,85,0.55);
}

.tline-year {
  font-size: 42px;
  line-height: 1;
  color: var(--maroon-ink);
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}
.tline-year.highlight { color: var(--vermillion); }
.tline-year.now { color: var(--gold-deep); }

.tline-card {
  background: var(--paper-soft);
  border: 1px solid var(--paper-shadow);
  border-radius: 12px;
  padding: 18px 20px;
  max-width: 320px;
  box-shadow: 0 12px 24px -10px rgba(74,20,16,0.16);
  position: relative;
  transition: transform 400ms cubic-bezier(.2,.7,.2,1), box-shadow 400ms ease;
}
.tline-stop:hover .tline-card {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -14px rgba(74,20,16,0.28);
}
/* little connector from card to dot */
.tline-card::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 24px;
  background: var(--paper-shadow);
  left: 50%;
}
.tline-stop.above .tline-card::after { bottom: -24px; }
.tline-stop.below .tline-card::after { top: -24px; }

.tline-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 6px;
  color: var(--maroon-ink);
  letter-spacing: -0.2px;
  line-height: 1.2;
  font-weight: 400;
}
.tline-card p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  color: var(--color-charcoal);
}
.tline-card em { color: var(--saffron-deep); font-style: italic; }

.tline-card.highlight {
  background: var(--maroon);
  border-color: var(--maroon-deep);
  color: #FBF6E6;
}
.tline-card.highlight h4 { color: #FBF6E6; }
.tline-card.highlight p { color: rgba(248,239,214,0.85); }

.tline-card.now {
  background: linear-gradient(180deg, #FFF7E4 0%, #F0E0AE 100%);
  border-color: var(--gold);
}

.tline-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--saffron);
  color: #fff;
  margin-bottom: 10px;
}
.tline-card.highlight .tline-badge {
  background: var(--gold-bright);
  color: var(--maroon-ink);
}
.tline-badge.gold {
  background: var(--gold-deep);
  color: var(--paper-soft);
}

/* mobile fallback: collapse to swipeable strip */
@media (max-width: 980px) {
  .tline-pin-host { min-height: 0; height: auto; }
  .tline-pin-inner {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
  }
  .tline-rail {
    padding: 60px 32px 24px;
    border-right: none;
    border-bottom: 1px solid var(--paper-shadow);
  }
  .tline-track {
    padding: 32px;
    height: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    transform: none !important;
    align-items: stretch;
  }
  .tline-line { display: none; }
  .tline-stop {
    flex: 0 0 80vw;
    height: auto;
    grid-template-rows: auto auto auto !important;
    padding: 24px 0;
    scroll-snap-align: center;
  }
  .tline-stop .tline-card { margin: 12px 0; }
  .tline-stop .tline-card::after { display: none; }
}


/* ============================================================
   THREE PILLARS — stacking sticky cards
   ============================================================ */
.pillars {
  background: var(--paper);
  padding: 140px 0 0;
  position: relative;
}
.pillars-intro {
  max-width: 1240px;
  margin: 0 auto 80px;
  padding: 0 32px;
}
.pillars-intro .eyebrow { color: var(--saffron-deep); display: block; margin-bottom: 20px; }
.pillars-h {
  font-size: clamp(56px, 6.4vw, 100px);
  line-height: 1.0;
  letter-spacing: -1.8px;
  color: var(--maroon-ink);
  margin: 0 0 28px;
  max-width: 16ch;
}
.pillars-h .serif-it { color: var(--saffron); }
.pillars-lede {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.4;
  color: var(--color-charcoal);
  max-width: 640px;
  margin: 0;
}

.stack-host {
  /* gives the sticky cards a tall enough scroll runway */
  padding-bottom: 30vh;
}

.pillar-card {
  position: sticky;
  top: 100px;
  margin: 0 auto 80px;
  max-width: 1180px;
  width: calc(100% - 64px);
  display: grid;
  grid-template-columns: 100px 1fr 360px;
  gap: 48px;
  background: var(--paper-soft);
  border-radius: 20px;
  padding: 64px 56px;
  border: 1px solid var(--paper-shadow);
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 28px 60px -24px rgba(74,20,16,0.18);
  overflow: hidden;
  isolation: isolate;
  transform: translateY(calc((var(--i, 1) - 1) * 12px)) scale(calc(1 - (var(--i, 1) - 1) * 0.012));
  transform-origin: 50% 0%;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}

.pillar-card::before {
  /* faint number watermark behind */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 110% 0%, rgba(232,120,42,0.18), transparent 50%);
  z-index: -1;
}

.pillar-1 { background: linear-gradient(180deg, #FFF7E4 0%, var(--paper) 100%); }
.pillar-2 { background: linear-gradient(180deg, #F8EFD6 0%, #F0E0AE 100%); border-color: #DDC684; }
.pillar-3 { background: linear-gradient(180deg, #6B1F1A 0%, #3A0F0C 100%); color: #FBF6E6; border-color: #4A1410; }
.pillar-3 .eyebrow { color: var(--gold-bright); }
.pillar-3 .pillar-copy { color: rgba(248,239,214,0.85); }
.pillar-3 .pillar-bullets li { color: rgba(248,239,214,0.78); border-color: rgba(248,239,214,0.18); }
.pillar-3 .pillar-bullets li::before { background: var(--gold-bright); }
.pillar-3 .pillar-num { color: rgba(229,184,85,0.85); }
.pillar-3 .pillar-sub { color: rgba(248,239,214,0.72); }

.pillar-num {
  font-size: 200px;
  line-height: 0.8;
  letter-spacing: -8px;
  color: var(--saffron);
  opacity: 0.55;
  align-self: start;
}
.pillar-body { max-width: 56ch; }
.pillar-body .eyebrow {
  color: var(--saffron-deep);
  display: block;
  margin-bottom: 12px;
}
.pillar-title {
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 0 0 12px;
  color: inherit;
}
.pillar-title .serif-it { color: var(--saffron); }
.pillar-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--color-slate);
  margin: 0 0 24px;
}
.pillar-copy {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--color-charcoal);
  margin: 0 0 24px;
}
.pillar-bullets {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.pillar-bullets li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-top: 1px solid var(--paper-shadow);
  font-size: 14.5px;
  color: var(--color-charcoal);
}
.pillar-bullets li:last-child { border-bottom: 1px solid var(--paper-shadow); }
.pillar-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 19px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--saffron);
}

.pillar-art {
  align-self: center;
  width: 100%;
}
.pillar-art svg { width: 100%; height: auto; display: block; }
.lamp-flame {
  transform-origin: 0 -4px;
  animation: flame-flicker 1.4s ease-in-out infinite;
}
.lamp-flame-2 { animation-delay: -0.7s; }

.pillar-stripe {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: var(--gradient-sunset-stripe);
  opacity: 0.92;
}
.pillar-3 .pillar-stripe { opacity: 0.7; }


/* ============================================================
   IMPACT (removed in v2 — replaced by horizontal-pinned year)
   ============================================================ */


/* ============================================================
   NOW — latest programs
   ============================================================ */
.now {
  background: var(--paper);
  padding: 140px 0;
  border-top: 1px solid var(--paper-shadow);
}
.now-head {
  max-width: 1240px;
  margin: 0 auto 60px;
  padding: 0 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.now-head .eyebrow { color: var(--saffron-deep); display: block; margin-bottom: 12px; }
.now-h {
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 1.0;
  letter-spacing: -1.2px;
  color: var(--maroon-ink);
  margin: 0;
}
.now-h .serif-it { color: var(--saffron); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--saffron-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: gap 200ms ease;
}
.link-arrow:hover { gap: 14px; }

.now-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: minmax(260px, auto);
  gap: 16px;
}
.now-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper-soft);
  border: 1px solid var(--paper-shadow);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 350ms cubic-bezier(.2,.7,.2,1), box-shadow 350ms ease;
}
.now-card.feature {
  grid-row: span 2;
}
.now-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -16px rgba(74,20,16,0.22);
}
.now-card-art {
  width: 100%;
  flex: 1 1 60%;
  min-height: 180px;
  overflow: hidden;
  position: relative;
}
.now-card-art svg {
  width: 100%; height: 100%;
  display: block;
  transition: transform 600ms ease;
}
.now-card:hover .now-card-art svg { transform: scale(1.04); }
.now-card-body {
  padding: 24px 28px 28px;
  flex: 0 0 auto;
}
.now-card.feature .now-card-body { padding: 32px 36px 36px; }
.now-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--saffron-deep);
  margin-bottom: 12px;
}
.now-card h3 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
  color: var(--maroon-ink);
}
.now-card.feature h3 { font-size: 34px; }
.now-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-charcoal);
  margin: 0 0 12px;
}
.now-card-meta {
  font-size: 12.5px;
  color: var(--color-slate);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.dot-sep { color: var(--color-stone); }


/* ============================================================
   JOIN — doors
   ============================================================ */
.join {
  background: var(--paper-soft);
  padding: 140px 0;
  position: relative;
}
.join-head {
  max-width: 920px;
  margin: 0 auto 80px;
  text-align: center;
}
.join-head .eyebrow { color: var(--saffron-deep); display: block; margin-bottom: 20px; }
.join-h {
  font-size: clamp(56px, 6vw, 92px);
  line-height: 1.0;
  letter-spacing: -1.5px;
  color: var(--maroon-ink);
  margin: 0 0 24px;
}
.join-h .serif-it { color: var(--saffron); }
.join-lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--color-slate);
  margin: 0;
}

.doors-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.door {
  background: var(--paper);
  border: 1px solid var(--paper-shadow);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform 400ms cubic-bezier(.2,.7,.2,1), box-shadow 400ms ease, border-color 400ms ease;
  position: relative;
  overflow: hidden;
}
.door::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}
.door:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 60px -20px rgba(74,20,16,0.28);
  border-color: var(--saffron);
}
.door:hover::before { transform: scaleX(1); }

.door-frame {
  background: var(--parchment);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 200 / 320;
  border: 1px solid var(--paper-shadow);
  position: relative;
}
.door-frame svg { width: 100%; height: 100%; display: block; }

.door-body { padding: 0 4px 4px; }
.door-body .eyebrow {
  color: var(--saffron-deep);
  display: block;
  margin-bottom: 8px;
}
.door-body h3 {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
  color: var(--maroon-ink);
}
.door-body p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-charcoal);
  margin: 0 0 16px;
}
.door-arrow {
  font-size: 22px;
  color: var(--saffron);
  transition: transform 300ms ease;
  display: inline-block;
}
.door:hover .door-arrow { transform: translateX(10px); }


/* ============================================================
   CONTACT
   ============================================================ */
.contact-row {
  max-width: 1180px;
  margin: 100px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 16px;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--paper-shadow);
  border-radius: 12px;
  padding: 28px 32px;
}
.contact-card .eyebrow { color: var(--saffron-deep); display: block; margin-bottom: 10px; }
.contact-card h4 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--maroon-ink);
}
.contact-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-charcoal);
  margin: 0;
}
.map-card { padding: 16px; }
.mini-map svg {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.map-pin circle:last-child {
  transform-origin: center;
  animation: ping 2.6s ease-out infinite;
}
.map-pin-2 circle:last-child { animation-delay: -1.3s; }
@keyframes ping {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2);   opacity: 0; }
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #1A0608;
  color: #F4E8C8;
}
.footer .brand-stripe { height: 8px; }
.footer-inner {
  padding: 60px 32px 40px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}
.footer-mark {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer-cols .eyebrow {
  color: var(--gold-bright);
  display: block;
  margin-bottom: 16px;
}
.footer-cols a {
  display: block;
  padding: 6px 0;
  font-size: 13.5px;
  color: rgba(248,239,214,0.75);
  transition: color 200ms ease;
}
.footer-cols a:hover { color: var(--saffron); }

.footer-base {
  border-top: 1px solid rgba(248,239,214,0.12);
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(248,239,214,0.6);
  letter-spacing: 0.02em;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-base .serif-it { font-family: var(--font-display); font-style: italic; }


/* ============================================================
   A YEAR AT CHINMAYA — horizontal-pinned scroll section
   ============================================================ */
.year {
  background: var(--paper);
  position: relative;
  border-top: 1px solid var(--paper-shadow);
  border-bottom: 1px solid var(--paper-shadow);
  /* IMPORTANT: do NOT set overflow:hidden here — it would create a new
     scrolling context that breaks the position:sticky inside .year-pin-inner.
     The inner itself already clips horizontally. */
}

/* Tall outer host — its height is set dynamically by JS so the runway
   matches the horizontal overflow exactly (no empty tail after cards land). */
.year-pin-host {
  position: relative;
  /* fallback height before JS measures, overridden inline */
  min-height: 100vh;
}
.year-pin-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 420px 1fr;
  grid-template-rows: 100vh;     /* force row to fill the panel */
  align-items: stretch;
  overflow: hidden;
  /* warm paper-feel backdrop */
  background:
    radial-gradient(ellipse 60% 60% at 0% 50%, rgba(232,120,42,0.08), transparent 60%),
    radial-gradient(ellipse 50% 70% at 100% 50%, rgba(184,48,32,0.06), transparent 60%),
    var(--paper);
  background-image:
    radial-gradient(ellipse 60% 60% at 0% 50%, rgba(232,120,42,0.08), transparent 60%),
    radial-gradient(ellipse 50% 70% at 100% 50%, rgba(184,48,32,0.06), transparent 60%),
    radial-gradient(circle at 1px 1px, rgba(58,15,12,0.04) 1px, transparent 1px);
  background-size: auto, auto, 6px 6px;
}

/* The sticky left rail — heading stays put while cards scroll past */
.year-rail {
  padding: 88px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  border-right: 1px solid var(--paper-shadow);
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, var(--paper) 80%, rgba(248,239,214,0));
}
.year-rail .eyebrow {
  color: var(--saffron-deep);
}
.year-h {
  font-size: clamp(56px, 5.4vw, 84px);
  line-height: 0.96;
  letter-spacing: -1.6px;
  color: var(--maroon-ink);
  margin: 0;
  font-weight: 400;
}
.year-h .serif-it { color: var(--saffron); }
.year-lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-slate);
  margin: 0;
  max-width: 32ch;
}
.year-lede.sub {
  font-size: 14px;
  color: var(--color-steel);
}

.year-progress {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.year-rail-line {
  position: relative;
  height: 1px;
  background: var(--paper-shadow);
  overflow: hidden;
}
.year-rail-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--saffron) 0%, var(--vermillion) 60%, var(--maroon) 100%);
}
.year-readout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.year-month {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--maroon-ink);
  letter-spacing: 0.04em;
}
.year-count {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-steel);
  font-variant-numeric: tabular-nums;
}
.year-count #yearIdx { color: var(--saffron-deep); font-weight: 600; }

/* The horizontal track — translated by JS based on vertical scroll progress */
.year-track {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 80px 64px 80px 64px;
  height: 100%;
  will-change: transform;
  /* widths come from cards; track grows to its content */
}

/* Each moment card */
.moment {
  flex: 0 0 520px;
  height: calc(100% - 80px);
  max-height: 720px;
  display: grid;
  grid-template-rows: 55% 1fr;
  background: var(--paper-soft);
  border: 1px solid var(--paper-shadow);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 28px 60px -24px rgba(74,20,16,0.22);
  position: relative;
  transition: transform 400ms cubic-bezier(.2,.7,.2,1), box-shadow 400ms ease;
}
.moment:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 40px 80px -24px rgba(74,20,16,0.32);
}
.moment-art {
  overflow: hidden;
  position: relative;
}
.moment-art svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 1200ms cubic-bezier(.2,.7,.2,1);
}
.moment:hover .moment-art svg { transform: scale(1.06); }

.moment-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.moment-body.dark {
  background: #1A0608;
  color: #FBF6E6;
  border-top: 1px solid var(--maroon);
}
.moment-body.dark em { color: var(--gold-bright); }

.moment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.moment-month {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--saffron-deep);
}
.moment-body.dark .moment-month { color: var(--gold-bright); }
.moment-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--color-slate);
}
.moment-body.dark .moment-tag { color: rgba(248,239,214,0.65); }

.moment h3 {
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin: 0;
  color: var(--maroon-ink);
  font-weight: 400;
}
.moment-body.dark h3 { color: #FBF6E6; }
.moment-blurb {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-charcoal);
  margin: 4px 0 8px;
}
.moment-body.dark .moment-blurb { color: rgba(248,239,214,0.82); }

.moment-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--paper-shadow);
  font-size: 12.5px;
  color: var(--color-slate);
  margin-top: auto;
}
.moment-body.dark .moment-detail {
  border-top-color: rgba(248,239,214,0.18);
  color: rgba(248,239,214,0.7);
}
.moment-detail strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--maroon-ink);
  margin-right: 4px;
  letter-spacing: -0.2px;
}
.moment-body.dark .moment-detail strong { color: var(--gold-bright); }

/* Closing quote card */
.moment-quote {
  flex: 0 0 480px;
  background: linear-gradient(180deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  border-color: var(--maroon-deep);
  color: #FBF6E6;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  grid-template-rows: 1fr;
}
.moment-quote-inner {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  position: relative;
}
.moment-quote .quote-mark {
  position: absolute;
  top: -20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 120px;
  color: var(--saffron);
  line-height: 1;
  opacity: 0.85;
}
.moment-quote blockquote {
  font-size: 24px;
  line-height: 1.35;
  margin: 24px 0 0;
  color: #FBF6E6;
  letter-spacing: -0.2px;
  font-weight: 400;
}
.moment-quote blockquote .serif-it { color: var(--gold-bright); }
.moment-quote figcaption {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248,239,214,0.7);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.moment-quote figcaption .line {
  width: 30px; height: 1px;
  background: rgba(248,239,214,0.4);
  margin-bottom: 8px;
}
.moment-quote figcaption strong {
  color: var(--gold-bright);
  font-size: 14px;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.moment-quote .quote-foot {
  margin-top: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: rgba(248,239,214,0.65);
}
.moment-quote .quote-foot a {
  color: var(--saffron);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* The horizontal-pin section collapses on small screens to a swipeable strip */
@media (max-width: 980px) {
  .year-pin-host { height: auto; }
  .year-pin-inner {
    position: relative;
    grid-template-columns: 1fr;
    height: auto;
  }
  .year-rail {
    padding: 80px 32px 32px;
    border-right: none;
    border-bottom: 1px solid var(--paper-shadow);
  }
  .year-track {
    padding: 32px;
    height: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    transform: none !important;
  }
  .moment { height: auto; min-height: 520px; scroll-snap-align: center; flex: 0 0 80vw; }
  .moment-quote { flex: 0 0 80vw; }
}


/* ============================================================
   REVEAL — set up by IntersectionObserver in JS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms ease, transform 800ms cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero-grid { display: block; }
  .hero-grid > .hero-diya { position: static; text-align: center; margin-top: 40px; }
  .hero-diya .diya-label { text-align: center; }
  .hero-mandala { width: 600px; height: 600px; right: -200px; opacity: 0.6; }
  .vision-grid { grid-template-columns: 1fr; gap: 48px; }
  .vision-portrait { position: static; max-width: 280px; }
  .pillar-card { grid-template-columns: 60px 1fr 240px; gap: 32px; padding: 48px 36px; }
  .pillar-num { font-size: 120px; }
  .now-grid { grid-template-columns: 1fr 1fr; }
  .now-card.feature { grid-column: span 2; grid-row: span 1; }
  .doors-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-stops { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links a:not(.cta) { display: none; }
  .pillar-card { grid-template-columns: 1fr; }
  .pillar-num { font-size: 80px; }
  .pillar-art { max-width: 280px; margin: 0 auto; }
  .now-grid { grid-template-columns: 1fr; }
  .now-card.feature { grid-column: span 1; }
  .stat-grid { grid-template-columns: 1fr; }
  .timeline-stops { grid-template-columns: repeat(2, 1fr); }
}
