/* ====================================================
   IseMoody – Our Story Page + About Story Preview
   ==================================================== */

/* ── About page: story preview ───────────────────── */
.about-story__preview {
  position: relative;
  max-height: 152px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* hide the fade div — mask handles it now */
.about-story__fade {
  display: none;
}

.about-story__preview-text p {
  font-family: var(--font-body), sans-serif;
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--color-text, #2a2a2a);
  margin-bottom: 1em;
}

/* ── CTA button ──────────────────────────────────── */
.about-story__read-more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  gap: 10px;
  margin-top: 28px;
  font-family: var(--font-body), sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text, #2a2a2a);
  text-decoration: none;
  padding: 11px 22px;
  border: 1px solid rgba(184, 134, 11, 0.45);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease, border-color 0.35s ease;
}

/* gold fill slides in from left on hover */
.about-story__read-more::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #b8860b;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.about-story__read-more span,
.about-story__read-more svg {
  position: relative;
  z-index: 1;
}

.about-story__read-more:hover {
  color: #fff;
  border-color: #b8860b;
}

.about-story__read-more:hover::before {
  transform: translateX(0);
}

/* ── About story section layout tweaks ───────────── */
.about-story__inner {
  align-items: center !important;
}

.about-story__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-story__title {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem) !important;
  letter-spacing: 0.18em !important;
  margin-bottom: 20px !important;
}


/* ══════════════════════════════════════════════════
   OUR STORY — EDITORIAL PAGE
   ══════════════════════════════════════════════════ */

.our-story-editorial {
  overflow-x: hidden;
}

/* ── Scroll reveal ───────────────────────────────── */
.os-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.os-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Hero ────────────────────────────────────────── */
.os-hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
}

.os-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transition: transform 12s ease;
}

.os-hero:hover .os-hero__bg {
  transform: scale(1.0);
}

.os-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 10, 6, 0.65);
}

.os-hero__content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  max-width: 800px;
}

.os-hero__eyebrow {
  font-family: var(--font-body), sans-serif;
  color: #b8860b;
  letter-spacing: 0.28em;
  font-size: 0.64rem;
  text-transform: uppercase;
  margin: 0 0 28px;
}

.os-hero__title {
  font-family: var(--font-heading), "Cormorant Garamond", serif;
  font-size: clamp(4.5rem, 10vw, 8rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 0.95;
  margin: 0 0 36px;
}

.os-hero__rule {
  width: 36px;
  height: 1px;
  background: rgba(184, 134, 11, 0.7);
  margin: 0 auto 28px;
}

.os-hero__subtitle {
  font-family: var(--font-heading), "Cormorant Garamond", serif;
  font-style: italic;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.6;
}

/* ── Lead paragraph ──────────────────────────────── */
.os-lead {
  max-width: 580px;
  margin: 0 auto;
  padding: 80px 24px 72px;
  text-align: center;
}

.os-lead p {
  font-family: var(--font-heading), "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text, #2a2a2a);
  margin: 0;
}

/* ── Split sections ──────────────────────────────── */
.os-split {
  display: grid;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px 96px;
}

.os-split--a {
  grid-template-columns: 48% 52%;
  gap: 0 6%;
}

.os-split--b {
  grid-template-columns: 52% 48%;
  gap: 0 6%;
}

.os-split__image {
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.14);
  line-height: 0;
}

.os-split__image img {
  width: 100%;
  display: block;
  transition: transform 0.9s ease;
}

.os-split__image:hover img {
  transform: scale(1.03);
}

.os-split--a .os-split__image,
.os-split--b .os-split__image {
  align-self: center;
  max-height: 380px;
  width: 100%;
}

.os-split--a .os-split__image img,
.os-split--b .os-split__image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center top;
}

.os-split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 0 52px;
}

.os-split--b .os-split__text {
  padding: 0 52px 0 0;
  order: -1;
}

.os-split__eyebrow {
  font-family: var(--font-body), sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #b8860b;
  margin-bottom: 18px;
  display: block;
}

.os-split__text h2 {
  font-family: var(--font-heading), "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--color-text, #1a1a1a);
  margin: 0 0 28px;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.os-split__text p {
  font-family: var(--font-body), sans-serif;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text, #3a3a3a);
  margin-bottom: 1.2em;
}

/* ── Immersive image + text overlay ─────────────── */
.os-immersive {
  position: relative;
  height: 65vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.os-immersive__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.os-immersive--mid .os-immersive__img {
  object-position: center 30%;
}

.os-immersive__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 2, 0.62);
}

.os-immersive__text {
  position: relative;
  z-index: 1;
  max-width: 660px;
  padding: 0 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-heading), "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  line-height: 1.8;
  font-style: italic;
}

.os-immersive__text--large {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.3;
  max-width: 800px;
  color: #fff;
}

.os-immersive__text em {
  color: rgba(220, 180, 80, 0.9);
  font-style: normal;
}

/* ── Pull quote with gold rules ──────────────────── */
.os-pull {
  text-align: center;
  padding: 64px 24px;
  max-width: 760px;
  margin: 0 auto;
}

.os-pull::before,
.os-pull::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(184, 134, 11, 0.45);
  margin: 0 auto 28px;
}

.os-pull::after {
  margin: 28px auto 0;
}

.os-pull__text {
  font-family: var(--font-heading), "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-style: italic;
  color: #b8860b;
  line-height: 1.4;
}

/* ── Tinted section ──────────────────────────────── */
.os-tinted {
  background: transparent;
}

/* ── Final centered text ─────────────────────────── */
.os-centered {
  background: transparent;
  padding: 80px 24px 72px;
  text-align: center;
}

.os-centered__inner {
  max-width: 620px;
  margin: 0 auto;
}

.os-centered__eyebrow {
  font-family: var(--font-body), sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #b8860b;
  display: block;
  margin-bottom: 28px;
}

.os-centered p {
  font-family: var(--font-heading), "Cormorant Garamond", serif;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-style: italic;
  line-height: 1.75;
  color: var(--color-text, #2a2a2a);
  margin-bottom: 1.2em;
}

.os-centered p:last-child {
  margin-bottom: 0;
}

/* ── Closing block ───────────────────────────────── */
.os-closing {
  text-align: center;
  padding: 64px 24px 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  background: transparent;
}

.os-closing__ornament {
  display: flex;
  align-items: center;
  gap: 10px;
}

.os-closing__ornament::before,
.os-closing__ornament::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(184, 134, 11, 0.4);
}

.os-closing__ornament span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(184, 134, 11, 0.55);
  display: block;
}

.os-closing__signature {
  font-family: var(--font-heading), "Cormorant Garamond", serif;
  font-style: italic;
  color: #888;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

/* Back button — gold fill slide-in (matches read-more CTA) */
.os-closing__back a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--font-body), sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text, #2a2a2a);
  text-decoration: none;
  padding: 12px 28px;
  border: 1px solid rgba(184, 134, 11, 0.45);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease, border-color 0.35s ease;
}

.os-closing__back a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #b8860b;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.os-closing__back a span {
  position: relative;
  z-index: 1;
}

.os-closing__back a:hover {
  color: #fff;
  border-color: #b8860b;
}

.os-closing__back a:hover::before {
  transform: translateX(0);
}

/* ── Mobile ──────────────────────────────────────── */
@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  .our-story-editorial {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Hero — shorter on mobile */
  .os-hero {
    min-height: 55vh;
  }

  .os-hero__title {
    font-size: clamp(3rem, 14vw, 5rem);
    margin-bottom: 20px;
  }

  .os-hero__subtitle {
    font-size: 1rem;
  }

  /* Lead paragraph */
  .os-lead {
    padding: 44px 20px 36px;
  }

  .os-lead p {
    font-size: clamp(1.1rem, 4vw, 1.35rem);
  }

  /* Split sections — stack vertically, image on top */
  .os-split {
    grid-template-columns: 1fr !important;
    padding: 0 18px 48px;
    gap: 0;
  }

  /* Reset hardcoded 380px image height */
  .os-split--a .os-split__image,
  .os-split--b .os-split__image {
    max-height: none;
    aspect-ratio: 4 / 3;
  }

  .os-split--a .os-split__image img,
  .os-split--b .os-split__image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  /* Text always below image */
  .os-split__text,
  .os-split--b .os-split__text {
    padding: 28px 0 0;
    order: 1;
  }

  /* Image always on top */
  .os-split__image {
    order: 0;
  }

  .os-split__text h2 {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
    margin-bottom: 18px;
  }

  .os-split__text p {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  /* Immersive sections */
  .os-immersive {
    height: 48vh;
    min-height: 240px;
  }

  .os-immersive__text {
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
    padding: 0 20px;
  }

  .os-immersive__text--large {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  /* Pull quote */
  .os-pull {
    padding: 36px 20px;
  }

  .os-pull__text {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  /* Final centered text */
  .os-centered {
    padding: 40px 20px 36px;
  }

  .os-centered p {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
  }

  /* Closing */
  .os-closing {
    padding: 44px 20px 64px;
    gap: 20px;
  }

  .os-closing__signature {
    font-size: 1rem;
  }

  /* About page story preview */
  .about-story__preview { max-height: 148px; }
  .about-story__read-more { margin-top: 18px; }
}
