/* भवरिलाल जुगराज फुलफगर सराफ & ज्वेलर्स — Our Story
   Fully self-contained stylesheet for the standalone /our-story/ page.
   Does not depend on the main site's css/style.css. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/fraunces-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/fraunces-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif Devanagari"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/noto-serif-devanagari-devanagari-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif Devanagari"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/noto-serif-devanagari-devanagari-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif Devanagari"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/noto-serif-devanagari-devanagari-600-normal.woff2") format("woff2"); }

:root {
  --ink: #221B14;
  --ivory: #F7F1E4;
  --gold: #A67C3D;
  --gold-soft: #CBAA6C;
  --taupe: #8A7C68;
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --font-mr: "Noto Serif Devanagari", "Fraunces", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

[lang="mr"] { font-family: var(--font-mr); letter-spacing: 0.01em; }

.font-display { font-family: var(--font-display); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Back bar ── */
.back-bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(34, 27, 20, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(247, 241, 228, 0.1);
}
.back-bar__inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600; color: rgba(247,241,228,0.85);
  text-decoration: none; transition: color 0.25s ease;
}
.back-link:hover { color: var(--gold-soft); }

/* ── Hero ── */
.story-hero {
  position: relative;
  padding: 96px 0 88px;
  text-align: center;
  overflow: hidden;
}
.story-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(203,170,108,0.28) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.6;
}
.story-hero__inner { position: relative; }
.kicker {
  font-size: 0.72rem; letter-spacing: 0.16em; font-weight: 700; text-transform: uppercase;
  color: var(--gold-soft); margin: 0 0 18px;
}
.story-hero h1 {
  font-family: var(--font-mr);
  font-weight: 500;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  line-height: 1.3;
  margin: 0 auto 22px;
  max-width: 780px;
}
.story-hero p {
  max-width: 560px; margin: 0 auto;
  color: rgba(247,241,228,0.72);
  font-size: 1rem;
}

/* ── Timeline ── */
.timeline { position: relative; padding: 20px 0 120px; }
.timeline__line {
  position: absolute;
  left: 18px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(166,124,61,0.55), transparent);
}
@media (min-width: 860px) {
  .timeline__line { left: 50%; transform: translateX(-50%); }
}

.chapter {
  position: relative;
  padding-left: 46px;
  margin-bottom: 88px;
}
.chapter:last-child { margin-bottom: 0; }
.chapter__dot {
  position: absolute; left: 12px; top: 6px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(166,124,61,0.18);
}
@media (min-width: 860px) {
  .chapter { padding-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .chapter__dot { left: 50%; top: 4px; transform: translateX(-50%); }
  .chapter--flip .chapter__media { order: 2; }
  .chapter--flip .chapter__text { order: 1; text-align: right; }
  .chapter--flip .chapter__text .chapter__kicker-row { justify-content: flex-end; }
}

.chapter__media {
  max-width: 340px;
  margin: 0 0 28px;
}
@media (min-width: 860px) { .chapter__media { margin: 0 auto; } }

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(166,124,61,0.4);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }

.chapter__kicker-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.chapter__kicker { font-family: var(--font-mr); font-size: 0.8rem; letter-spacing: 0.02em; color: var(--gold-soft); font-weight: 600; }
.chapter__name {
  font-family: var(--font-mr);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin: 0 0 16px;
}
.chapter__body {
  font-family: var(--font-mr);
  font-size: 1.05rem;
  line-height: 2;
  color: rgba(247,241,228,0.82);
  max-width: 46ch;
}
@media (min-width: 860px) {
  .chapter--flip .chapter__body { margin-left: auto; }
}

/* ── Reveal-on-scroll ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s cubic-bezier(.22,1,.36,1), transform 0.8s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Closing ── */
.closing {
  border-top: 1px solid rgba(247,241,228,0.1);
  padding: 64px 0;
  text-align: center;
}
.closing p {
  max-width: 480px; margin: 0 auto 26px;
  color: rgba(247,241,228,0.65);
  font-size: 0.95rem;
}
.btn-outline {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border: 1px solid rgba(247,241,228,0.55);
  color: var(--ivory);
  font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-outline:hover { border-color: var(--gold-soft); background: rgba(203,170,108,0.08); }
