/* ==========================================================================
   Our Story page
   Matches the Stitch "our_story" screen.
   ========================================================================== */

/* The design's inner wrappers put the page margin inside the 1280px box. */
.os-wrap {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--page-margin);
}

/* ---- Hero ---------------------------------------------------------------- */
.os-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 614px;
  overflow: hidden;
  background: var(--color-surface-container-low);
}
.os-hero__bg { position: absolute; inset: 0; z-index: 0; }
.os-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  mix-blend-mode: multiply;
}
.os-hero__content {
  position: relative;
  z-index: 10;
  margin-top: 3rem;
  margin-bottom: 6rem;
  text-align: center;
}
.os-hero__eyebrow {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.os-hero__title {
  margin-bottom: 1.5rem;
  font-size: 3rem;
  line-height: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.os-hero__lead {
  max-width: 42rem;
  margin-inline: auto;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--color-on-surface-variant);
}

/* ---- Himalayan Roots ----------------------------------------------------- */
.os-roots { padding-block: 6rem; background: var(--color-surface); }
.os-roots__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--gutter);
}
.os-roots__text { display: flex; flex-direction: column; gap: 1.5rem; }
.os-roots__text p { color: var(--color-on-surface-variant); }
.os-roots__title {
  position: relative;
  font-size: 2rem;
  line-height: 2.5rem;
  font-weight: 700;
}
.os-roots__title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 33.333%;
  height: 2px;
  background: linear-gradient(to right, var(--color-secondary), transparent);
}
.os-roots__note { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.os-roots__note-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-soft);
  background: var(--color-surface-container);
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgb(111 48 130 / 0.05);
}
.os-roots__note-text {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.os-roots__media { position: relative; height: 500px; margin-top: 3rem; }
.os-roots__photo {
  position: absolute;
  overflow: hidden;
  border-radius: 0.25rem; /* the design's rounded-lg */
}
.os-roots__photo img { width: 100%; height: 100%; object-fit: cover; }
.os-roots__photo--back {
  top: 0;
  right: 0;
  z-index: 10;
  width: 75%;
  height: 400px;
  border: 1px solid var(--color-surface-container-highest);
  box-shadow: 0 12px 24px rgb(111 48 130 / 0.08);
}
.os-roots__photo--front {
  bottom: 0;
  left: 0;
  z-index: 20;
  width: 66.667%;
  height: 300px;
  border: 4px solid var(--color-surface);
  box-shadow: 0 12px 24px rgb(111 48 130 / 0.12);
}

@media (min-width: 1024px) {
  .os-roots__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .os-roots__text { grid-column: span 5 / span 5; }
  .os-roots__media { grid-column: span 7 / span 7; margin-top: 0; }
}

/* ---- The Artisan Network (bento) ----------------------------------------- */
.os-network { padding-block: 6rem; background: var(--color-surface-container-low); }
.os-network__head { margin-bottom: 4rem; text-align: center; }
.os-network__head h2 { margin-bottom: 1rem; font-size: 2rem; line-height: 2.5rem; font-weight: 700; }
.os-network__head p { max-width: 42rem; margin-inline: auto; color: var(--color-on-surface-variant); }

.os-bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 250px;
  gap: 1.5rem;
}
.os-card {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-outline-variant) 30%, transparent);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: 0 4px 12px rgb(111 48 130 / 0.03);
}
.os-card__title { margin-bottom: 0.5rem; font-size: 1.5rem; line-height: 2rem; font-weight: 600; }

.os-card--feature { grid-row: span 2 / span 2; transition: box-shadow 500ms var(--ease); } /* 2 rows on phones too, so the caption fits */
.os-card--feature:hover { box-shadow: 0 8px 24px rgb(111 48 130 / 0.08); }
.os-card--feature > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.os-card--feature:hover > img { transform: scale(1.05); }
.os-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    color-mix(in srgb, var(--color-inverse-surface) 80%, transparent),
    color-mix(in srgb, var(--color-inverse-surface) 20%, transparent),
    transparent);
}
.os-card__caption { position: absolute; bottom: 0; left: 0; padding: 2rem; }
.os-card__caption .os-card__title { color: var(--color-on-primary); }
.os-card__caption p { max-width: 28rem; color: var(--color-surface-container-highest); }

.os-card--text { display: flex; flex-direction: column; justify-content: center; padding: 2rem; }
.os-card--text .material-symbols-outlined {
  margin-bottom: 1rem;
  font-size: 2.25rem;
  line-height: 2.5rem;
  color: var(--color-secondary);
}
.os-card--text p { color: var(--color-on-surface-variant); }

.os-card--photo img { width: 100%; height: 100%; object-fit: cover; }

.os-card--wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  border-color: color-mix(in srgb, var(--color-primary-container) 50%, transparent);
  background: var(--color-primary-container);
  color: var(--color-on-primary-container);
  box-shadow: 0 4px 12px rgb(111 48 130 / 0.1);
}
.os-card--wide > div { max-width: 48rem; }
.os-card--wide p { opacity: 0.9; }
.os-card--wide .material-symbols-outlined { font-size: 3rem; opacity: 0.2; }

@media (min-width: 768px) {
  .os-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .os-card--feature { grid-column: span 2 / span 2; }
  .os-card--wide { grid-column: span 3 / span 3; }
}

/* ---- Global Reach & Preserving Tradition --------------------------------- */
.os-reach {
  position: relative;
  overflow: hidden;
  padding-block: 6rem;
  background: var(--color-surface);
}
.os-reach__glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 24rem;
  height: 24rem;
  border-radius: var(--radius-soft);
  background: color-mix(in srgb, var(--color-secondary) 5%, transparent);
  filter: blur(64px);
  transform: translate(33.333%, -50%);
}
.os-reach__inner { position: relative; z-index: 10; }
.os-reach__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 4rem;
}
.os-reach__rule { width: 4rem; height: 0.25rem; margin-bottom: 2rem; background: var(--color-secondary); }
.os-reach__title { margin-bottom: 1.5rem; font-size: 2rem; line-height: 2.5rem; font-weight: 700; }
.os-reach__text p { margin-bottom: 1.5rem; color: var(--color-on-surface-variant); }
.os-reach__text p:last-of-type { margin-bottom: 2rem; }
.os-reach__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  transition: color 150ms var(--ease);
}
.os-reach__link:hover { color: var(--color-primary-container); }
.os-reach__link .material-symbols-outlined { transition: transform 150ms var(--ease); }
.os-reach__link:hover .material-symbols-outlined { transform: translateX(0.25rem); }

.os-quote {
  position: relative;
  padding: 2rem;
  border: 1px solid color-mix(in srgb, var(--color-outline-variant) 20%, transparent);
  border-radius: var(--radius-card);
  background: var(--color-surface-container-lowest);
  box-shadow: 0 12px 32px rgb(111 48 130 / 0.06);
}
.os-quote__mark {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 3.75rem;
  color: color-mix(in srgb, var(--color-primary) 20%, transparent);
}
.os-quote__body { position: relative; z-index: 10; margin: 0; padding: 2rem 1rem 1rem; }
.os-quote__text {
  margin-bottom: 1.5rem;
  font-family: var(--font-headline);
  font-size: 1.5rem;
  line-height: 1.625;
  font-weight: 600;
  font-style: italic;
}
.os-quote__author { display: flex; align-items: center; gap: 1rem; }
.os-quote__avatar {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  border-radius: var(--radius-soft);
  background: var(--color-surface-container-highest);
}
.os-quote__avatar img { width: 100%; height: 100%; object-fit: cover; }
.os-quote__avatar--logo { background: var(--color-surface); }
.os-quote__avatar--logo img { padding: 0.25rem; object-fit: contain; }
.os-quote__name {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.os-quote__role { color: var(--color-on-surface-variant); }

@media (min-width: 768px) {
  .os-reach__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
