/* ===== Our Story page ===== */
.eyebrow--green {
  color: var(--green-bright);
}

/* page hero */
.ostory-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: stretch;
  /* fill the viewport left below the announce bar + header (measured into
     --site-chrome by main.js; falls back to 0 before it runs). */
  min-height: calc(100svh - var(--site-chrome, 0));
  padding: 5.25rem var(--gutter) 4.625rem;
  background:
    radial-gradient(
      120% 120% at 100% 0,
      color-mix(in srgb, var(--green) 7%, transparent),
      transparent 60%
    ),
    var(--cream);
}
.ostory-hero__text {
  max-width: 35rem;
  align-self: center;
}
.ostory-hero__title {
  font-family: "Marcellus", serif;
  font-weight: 400;
  font-size: 3.875rem;
  line-height: 1.08;
  margin: 0 0 1.75rem;
  color: var(--ink-heading);
}
.ostory-hero__lead {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--ink-body);
  margin: 0 0 2rem;
  max-width: 30rem;
}
.ostory-hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ostory-hero__sign {
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.ostory-hero__rule {
  height: 0.0625rem;
  width: 2.5rem;
  background: var(--line-gold);
}
.ostory-hero__note {
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.ostory-hero__frame {
  position: relative;
  display: flex;
}
.ostory-hero__img {
  width: 100%;
  /* scale to the section height instead of the image's own 4:5 ratio */
  aspect-ratio: auto;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  background: var(--ph-a);
}
.ostory-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ostory-hero__frame .orn-corner--tl {
  top: -0.625rem;
  left: -0.625rem;
  border-top: 2px solid var(--green-bright);
  border-left: 2px solid var(--green-bright);
}
.ostory-hero__frame .orn-corner--br {
  bottom: -0.625rem;
  right: -0.625rem;
  border-bottom: 2px solid var(--green-bright);
  border-right: 2px solid var(--green-bright);
}

/* pull-quotes */
.pull {
  text-align: center;
  padding: 4.625rem var(--gutter);
  max-width: 56.25rem;
  margin: 0 auto;
}
.pull__mark {
  display: block;
  width: 0.625rem;
  height: 0.625rem;
  background: var(--green-bright);
  transform: rotate(45deg);
  margin: 0 auto 1.875rem;
}
.pull__q {
  font-family: "Marcellus", serif;
  font-size: 2.125rem;
  line-height: 1.4;
  color: var(--ink-heading);
  margin: 0 0 1.375rem;
}
.pull__by {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-body);
  max-width: 38.75rem;
  margin: 0 auto;
}

/* alternating chapters */
.chapter {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 4rem;
  padding: 2.125rem var(--gutter) 3.75rem;
}
.chapter--warm {
  background: var(--cream-warm);
  padding-top: 3.75rem;
}
.chapter__media {
  align-self: stretch;
}
.chapter__img {
  position: relative;
  min-height: 30rem;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--ph-g),
    var(--ph-g) 0.75rem,
    var(--ph-h) 0.75rem,
    var(--ph-h) 1.5rem
  );
  align-items: flex-end;
  overflow: hidden;
}
.chapter__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.chapter--rev .chapter__media {
  order: 2;
}
.chapter__text {
  max-width: 32.5rem;
}
.chapter__num {
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1.125rem;
}
.chapter__title {
  font-family: "Marcellus", serif;
  font-weight: 400;
  font-size: 2.375rem;
  line-height: 1.16;
  margin: 0 0 1.375rem;
  color: var(--ink-heading);
}
.chapter__quote {
  font-family: "Marcellus", serif;
  font-size: 1.3125rem;
  line-height: 1.5;
  color: var(--green);
  border-left: 2px solid var(--green-bright);
  padding-left: 1.25rem;
  margin: 1.625rem 0 0;
}

/* belief band (bostro) */
.belief {
  background: color-mix(in srgb, var(--green) 9%, var(--cream));
  border-top: 1px solid color-mix(in srgb, var(--green) 20%, var(--line));
  border-bottom: 1px solid color-mix(in srgb, var(--green) 20%, var(--line));
  padding: 4.875rem var(--gutter);
}
.belief__inner {
  max-width: 53.75rem;
  margin: 0 auto;
  text-align: center;
}
.belief__title {
  font-family: "Marcellus", serif;
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  color: var(--ink-heading);
}
.belief__body {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--ink-body);
  max-width: 40rem;
  margin: 0 auto;
}

/* the welcome */
.welcome {
  padding: 5.25rem var(--gutter);
}
.welcome__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3.25rem;
}
.welcome__head .eyebrow {
  margin-bottom: 0.875rem;
}
.welcome__lead {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-body);
  margin: 1.125rem 0 0;
}
.welcome__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.625rem;
  max-width: 62.5rem;
  margin: 0 auto;
}
.welcome__card {
  background: var(--cream-warm);
  border: 1px solid var(--line);
  padding: 2.375rem 1.875rem;
}
.welcome__mark {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--green-bright);
  transform: rotate(45deg);
  margin: 0 0 1.25rem;
}
.welcome__t {
  font-family: "Marcellus", serif;
  font-weight: 400;
  font-size: 1.4375rem;
  margin: 0 0 0.75rem;
  color: var(--ink-heading);
}
.welcome__p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ink-body);
  margin: 0;
}

/* journey */
.journey {
  background: var(--cream-warm);
  padding: 5.25rem var(--gutter);
}
.journey__head {
  text-align: center;
  margin-bottom: 3.375rem;
}
.journey__head .eyebrow {
  margin-bottom: 0.875rem;
}
.journey__steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 67.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.875rem;
  counter-reset: none;
}
.journey__step {
  position: relative;
  padding-top: 1.625rem;
  border-top: 1px solid var(--line-gold);
}
.journey__n {
  font-family: "DM Mono", monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--green-bright);
  display: block;
  margin-bottom: 0.875rem;
}
.journey__t {
  font-family: "Marcellus", serif;
  font-weight: 400;
  font-size: 1.375rem;
  margin: 0 0 0.625rem;
  color: var(--ink-heading);
}
.journey__p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-body);
  margin: 0;
}

/* three threads */
.threads {
  padding: 5.375rem var(--gutter);
}
.threads__head {
  text-align: center;
  max-width: 42.5rem;
  margin: 0 auto 3.25rem;
}
.threads__head .eyebrow {
  margin-bottom: 0.875rem;
}
.threads__lead {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-body);
  margin: 1.125rem 0 0;
}
.threads__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.875rem;
  max-width: 67.5rem;
  margin: 0 auto;
}
.thread__img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: repeating-linear-gradient(
    135deg,
    var(--ph-i),
    var(--ph-i) 0.625rem,
    var(--ph-j) 0.625rem,
    var(--ph-j) 1.25rem
  );
  align-items: flex-end;
}
.thread__img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thread__region {
  font-family: "DM Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin: 1.125rem 0 0.375rem;
}
.thread__name {
  font-family: "Marcellus", serif;
  font-weight: 400;
  font-size: 1.5625rem;
  margin: 0 0 0.625rem;
  color: var(--ink-heading);
}
.thread__note {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-body);
  margin: 0;
}
.threads__foot {
  text-align: center;
  font-family: "Marcellus", serif;
  font-size: 1.625rem;
  color: var(--green);
  margin: 3.625rem 0 0;
}

/* shared growth — deep green band */
.manifesto {
  background: repeating-linear-gradient(
    45deg,
    color-mix(in srgb, var(--green) 88%, #000) 0,
    color-mix(in srgb, var(--green) 88%, #000) 0.875rem,
    var(--green) 0.875rem,
    var(--green) 1.75rem
  );
  color: var(--gold-pale);
  padding: 5.75rem var(--gutter);
}
.manifesto__inner {
  max-width: 45rem;
  margin: 0 auto;
  text-align: center;
}
.manifesto__inner .eyebrow {
  margin-bottom: 1.25rem;
}
.manifesto__title {
  font-family: "Marcellus", serif;
  font-weight: 400;
  font-size: 2.625rem;
  line-height: 1.16;
  margin: 0 0 1.625rem;
  color: var(--gold-pale);
}
.manifesto__body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--on-maroon-dim);
  margin: 0 auto 1.25rem;
  max-width: 37.5rem;
}
.manifesto__body:last-of-type {
  margin-bottom: 2.125rem;
}

/* closing */
.closing {
  text-align: center;
  padding: 5.25rem var(--gutter);
  max-width: 53.75rem;
  margin: 0 auto;
}
.closing .pull__mark {
  background: var(--green-bright);
}
.closing__q {
  font-family: "Marcellus", serif;
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  color: var(--ink-heading);
}
.closing__body {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink-body);
  max-width: 38.75rem;
  margin: 0 auto;
}

/* bengali lexicon */
.lexicon {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--green) 10%, var(--cream));
  border-top: 1px solid color-mix(in srgb, var(--green) 22%, var(--line));
  border-bottom: 1px solid color-mix(in srgb, var(--green) 22%, var(--line));
}
.lexicon__item {
  padding: 2.25rem 1.25rem;
  text-align: center;
  border-right: 1px solid color-mix(in srgb, var(--green) 18%, var(--line));
}
.lexicon__item:last-child {
  border-right: 0;
}
.lexicon__bn {
  display: block;
  font-family: "Noto Serif Bengali", serif;
  font-size: 1.875rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}
.lexicon__en {
  font-family: "DM Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--green) 55%, var(--ink-muted));
}

/* stacked story chapters — sticky pile on scroll (à la card stack) */
.story-stack {
  position: relative;
  z-index: 0;
}
.story-stack > section {
  position: sticky;
  top: 0;
  border-top-left-radius: 1.625rem;
  border-top-right-radius: 1.625rem;
  box-shadow: 0 -16px 40px rgba(51, 42, 32, 0.13);
}
/* opaque backgrounds so each incoming card fully hides the one beneath */
.story-stack > .chapter {
  background: var(--cream);
}
.story-stack > .chapter--warm {
  background: var(--cream-warm);
}
.story-stack > .belief {
  background: color-mix(in srgb, var(--green) 9%, var(--cream));
  border-top: 0;
  border-bottom: 0;
}
/* stagger the pin so each card's top edge peeks — the stack reads as layers */
.story-stack > section:nth-child(1) {
  top: 0;
}
.story-stack > section:nth-child(2) {
  top: 1.625rem;
}
.story-stack > section:nth-child(3) {
  top: 3.25rem;
}
.story-stack > section:nth-child(4) {
  top: 4.875rem;
}

