/* Brand story — homepage teaser + dedicated page (TASK-1023) */

/* —— Homepage teaser —— */
.sf-story-teaser {
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
}

/* TASK-1045: story follows hero — tighten top gap, keep nav anchor clearance */
.sf-campaign-hero + .sf-story-teaser {
  padding-top: clamp(1.15rem, 2.8vw, 1.85rem);
}

#cau-chuyen {
  scroll-margin-top: 5.5rem;
}

.sf-story-teaser__spread {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1.75rem;
  align-items: center;
  min-width: 0;
}

.sf-story-teaser__media {
  margin: 0;
  min-width: 0;
}

.sf-story-teaser__frame {
  overflow: hidden;
  border-radius: 0.4rem;
  background: color-mix(in srgb, var(--palette-sand, #e8dcc8) 40%, var(--palette-cream, #f7f1e6));
  border: none;
  aspect-ratio: 4 / 5;
  max-height: min(36rem, 72vh);
}

.sf-story-teaser__frame img,
.sf-story-teaser__frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sf-story-teaser__frame--video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: min(28rem, 56vh);
  background: #1a120e;
}

.sf-story-teaser__frame--video .sf-story-teaser__poster {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sf-story-teaser__frame--video .sf-story-teaser__video {
  position: relative;
  z-index: 1;
  background: transparent;
}

.sf-story-teaser__frame--video.is-playing .sf-story-teaser__poster,
.sf-editorial-film__frame.is-playing .sf-editorial-film__poster {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.sf-story-teaser__frame--video.is-reduced-motion .sf-story-teaser__video,
.sf-editorial-film__frame.is-reduced-motion .sf-editorial-film__video {
  display: none !important;
}

/* Taste editorial film — centered editorial axis (TASK-1030) */
.sf-editorial-film {
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  background: color-mix(in srgb, var(--palette-cream, #f7f1e6) 70%, #1a120e 8%);
}

.sf-editorial-film__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.sf-editorial-film__head.sf-section-head {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: min(100%, 40rem);
  margin: 0;
  gap: 0;
}

.sf-editorial-film__head h2 {
  margin: 0;
}

.sf-editorial-film__head .sf-section-lead {
  width: auto;
  max-width: 34rem;
  margin: 0.55rem 0 0; /* ~9px heading → subtitle */
  text-align: center;
}

/* Living Book gold rule — center on this section only */
.sf-editorial-film[data-reveal-section] .sf-editorial-film__head::after {
  margin-inline: auto;
  margin-top: 1.5rem; /* ~24px subtitle → rule */
  max-width: 3.25rem;
  transform-origin: center center;
}

.sf-editorial-film__media {
  margin: 1.35rem 0 0; /* ~22px rule → video */
  width: 100%;
  max-width: min(100%, 72.5rem); /* ~1160px */
  min-width: 0;
}

.sf-editorial-film__frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-inline: auto;
  border-radius: 0.65rem;
  aspect-ratio: 16 / 9;
  max-height: min(32rem, 58vh);
  background: #1a120e;
  border: 1px solid color-mix(in srgb, var(--palette-gold, #c99538) 35%, transparent);
}

.sf-editorial-film__frame img,
.sf-editorial-film__frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sf-editorial-film__poster {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sf-editorial-film__video {
  position: relative;
  z-index: 1;
}

.sf-editorial-film__cap,
.sf-story-teaser__cap {
  display: none;
}

.sf-editorial-film__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0.95rem auto 0; /* ~15px video → note */
  padding: 0 0.25rem;
  max-width: min(100%, clamp(22rem, 88vw, 44rem));
  text-align: center;
  font-family: var(--font-display, Literata, Georgia, serif);
  font-size: clamp(0.92rem, 0.35vw + 0.86rem, 1.05rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: color-mix(in srgb, var(--palette-brown, #2a1b14) 72%, transparent);
}

.sf-editorial-film__note-copy {
  min-width: 0;
  text-wrap: balance;
}

.sf-editorial-film__note-keep {
  white-space: nowrap;
}

.sf-editorial-film__note::before,
.sf-editorial-film__note::after {
  content: "";
  flex: 0 0 1.6rem;
  height: 1px;
  background: color-mix(in srgb, var(--palette-gold, #c99538) 75%, transparent);
}

@media (max-width: 430px) {
  .sf-editorial-film__note {
    gap: 0.5rem;
    max-width: 100%;
  }

  .sf-editorial-film__note::before,
  .sf-editorial-film__note::after {
    flex-basis: 1rem;
  }
}

/* Curated moon-season gallery (TASK-1050) */
.sf-moon-gallery {
  padding: 2rem 0 2.75rem;
  border-top: 1px solid color-mix(in srgb, var(--palette-gold, #c99538) 30%, transparent);
}

.sf-moon-gallery__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 1.1rem;
}

.sf-moon-gallery__head-copy {
  min-width: 0;
  flex: 1 1 14rem;
}

.sf-moon-gallery__eyebrow {
  margin: 0;
  font-family: var(--font-body, "Be Vietnam Pro", sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--palette-red, #9e2f24);
}

.sf-moon-gallery__title {
  margin: 0.35rem 0 0;
  font-family: var(--font-display, Literata, Georgia, serif);
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 600;
  line-height: 1.2;
}

.sf-moon-gallery__lead {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--palette-brown, #2a1b14) 72%, transparent);
  max-width: 34rem;
}

.sf-moon-gallery__count {
  margin: 0;
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--palette-brown, #2a1b14) 78%, transparent);
  background: color-mix(in srgb, var(--palette-gold, #c99538) 14%, #fff8ef);
  border: 1px solid color-mix(in srgb, var(--palette-gold, #c99538) 35%, transparent);
}

.sf-moon-gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "p1 p1"
    "p2 p3"
    "p4 p5"
    "p6 p6";
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sf-moon-gallery__item {
  margin: 0;
  min-width: 0;
}

.sf-moon-gallery__item[data-moon-pos="1"] {
  grid-area: p1;
}

.sf-moon-gallery__item[data-moon-pos="2"] {
  grid-area: p2;
}

.sf-moon-gallery__item[data-moon-pos="3"] {
  grid-area: p3;
}

.sf-moon-gallery__item[data-moon-pos="4"] {
  grid-area: p4;
}

.sf-moon-gallery__item[data-moon-pos="5"] {
  grid-area: p5;
}

.sf-moon-gallery__item[data-moon-pos="6"] {
  grid-area: p6;
}

.sf-moon-gallery__open {
  display: block;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.4rem;
  overflow: hidden;
  cursor: pointer;
  background: #1a120e;
  touch-action: pan-y pinch-zoom;
}

.sf-moon-gallery__open:focus-visible {
  outline: 2px solid var(--palette-gold, #c99538);
  outline-offset: 2px;
}

.sf-moon-gallery__open img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: calc(var(--moon-focal-x, 50) * 1%) calc(var(--moon-focal-y, 50) * 1%);
}

.sf-moon-gallery__item[data-moon-pos="1"] .sf-moon-gallery__open,
.sf-moon-gallery__item[data-moon-pos="6"] .sf-moon-gallery__open {
  aspect-ratio: 4 / 5;
}

.sf-moon-gallery__item[data-moon-pos="2"] .sf-moon-gallery__open,
.sf-moon-gallery__item[data-moon-pos="3"] .sf-moon-gallery__open,
.sf-moon-gallery__item[data-moon-pos="4"] .sf-moon-gallery__open,
.sf-moon-gallery__item[data-moon-pos="5"] .sf-moon-gallery__open {
  aspect-ratio: 1 / 1;
}

.sf-moon-gallery__expand {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.25rem;
  background: color-mix(in srgb, #1a120e 55%, transparent);
  border: 1px solid color-mix(in srgb, #fff 35%, transparent);
  opacity: 0.85;
}

.sf-moon-gallery__expand::before,
.sf-moon-gallery__expand::after {
  content: "";
  position: absolute;
  background: #fff;
}

.sf-moon-gallery__expand::before {
  right: 0.28rem;
  bottom: 0.28rem;
  width: 0.55rem;
  height: 1px;
  box-shadow: 0 -0.32rem 0 0 #fff;
}

.sf-moon-gallery__expand::after {
  right: 0.28rem;
  bottom: 0.28rem;
  width: 1px;
  height: 0.55rem;
  box-shadow: -0.32rem 0 0 0 #fff;
}

.sf-moon-gallery__caption {
  margin: 0.35rem 0 0;
  font-size: 0.76rem;
  line-height: 1.35;
  color: color-mix(in srgb, var(--palette-brown, #2a1b14) 68%, transparent);
}

@media (min-width: 768px) and (max-width: 1199px) {
  .sf-moon-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas: none;
    grid-auto-rows: minmax(10rem, auto);
  }

  .sf-moon-gallery__item[data-moon-pos] {
    grid-area: auto;
  }

  .sf-moon-gallery__item .sf-moon-gallery__open {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 1200px) {
  .sf-moon-gallery__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: minmax(11rem, 1fr) minmax(9.5rem, 1fr);
    grid-template-areas:
      "p1 p1 p1 p2 p2 p2 p2 p2 p2 p3 p3 p3"
      "p1 p1 p1 p4 p4 p4 p4 p5 p5 p6 p6 p6";
    min-height: clamp(22rem, 42vw, 34rem);
  }

  .sf-moon-gallery__item[data-moon-pos="1"] .sf-moon-gallery__open {
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
  }

  .sf-moon-gallery__item[data-moon-pos="2"] .sf-moon-gallery__open {
    aspect-ratio: 16 / 10;
    height: 100%;
  }

  .sf-moon-gallery__item[data-moon-pos="3"] .sf-moon-gallery__open {
    aspect-ratio: 3 / 4;
    height: 100%;
  }

  .sf-moon-gallery__item[data-moon-pos="4"] .sf-moon-gallery__open {
    aspect-ratio: 16 / 11;
    height: 100%;
  }

  .sf-moon-gallery__item[data-moon-pos="5"] .sf-moon-gallery__open {
    aspect-ratio: 1 / 1;
    height: 100%;
  }

  .sf-moon-gallery__item[data-moon-pos="6"] .sf-moon-gallery__open {
    aspect-ratio: 3 / 4;
    height: 100%;
  }
}

/* Moon gallery lightbox */
.sf-moon-lb {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.5rem, env(safe-area-inset-top)) max(0.5rem, env(safe-area-inset-right))
    max(0.5rem, env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
}

.sf-moon-lb[hidden] {
  display: none !important;
}

.sf-moon-lb__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #120c09 88%, transparent);
}

.sf-moon-lb__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(100%, 58rem);
  max-height: 100%;
  min-width: 0;
  gap: 0.5rem;
}

.sf-moon-lb__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #f6efe6;
}

.sf-moon-lb__counter {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.sf-moon-lb__close {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid color-mix(in srgb, #fff 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, #fff 8%, transparent);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.sf-moon-lb__stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.35rem;
  min-height: 0;
  flex: 1 1 auto;
}

.sf-moon-lb__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(68vh, 42rem);
  min-width: 0;
  touch-action: pan-y pinch-zoom;
}

.sf-moon-lb__img {
  display: block;
  max-width: 100%;
  max-height: min(68vh, 42rem);
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sf-moon-lb__img.is-ready {
  opacity: 1;
}

.sf-moon-lb__status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 0.85rem;
  color: color-mix(in srgb, #fff 75%, transparent);
}

.sf-moon-lb__status.is-loading::after {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.5rem;
  border: 2px solid color-mix(in srgb, #fff 25%, transparent);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sf-moon-lb-spin 0.7s linear infinite;
}

@keyframes sf-moon-lb-spin {
  to {
    transform: rotate(360deg);
  }
}

.sf-moon-lb__status.is-error {
  flex-direction: column;
  gap: 0.5rem;
}

.sf-moon-lb__retry {
  border: 0;
  background: none;
  color: var(--palette-gold, #c99538);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.sf-moon-lb__nav {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid color-mix(in srgb, #fff 22%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, #fff 6%, transparent);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.sf-moon-lb__nav:disabled {
  opacity: 0.28;
  cursor: default;
}

.sf-moon-lb__caption {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  color: color-mix(in srgb, #fff 72%, transparent);
}

.sf-moon-lb__thumbs {
  display: none;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding-top: 0.15rem;
}

.sf-moon-lb__thumb {
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.3rem;
  overflow: hidden;
  cursor: pointer;
  background: #1a120e;
  opacity: 0.72;
}

.sf-moon-lb__thumb.is-active {
  border-color: var(--palette-gold, #c99538);
  opacity: 1;
}

.sf-moon-lb__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html.sf-moon-lb-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .sf-moon-lb__thumbs {
    display: flex;
  }
}

@media (max-width: 767px) {
  .sf-moon-lb__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .sf-moon-lb__nav--prev {
    left: 0.15rem;
  }

  .sf-moon-lb__nav--next {
    right: 0.15rem;
  }

  .sf-moon-lb__stage {
    position: relative;
    display: block;
  }
}

.sf-story-teaser__cap {
  display: none;
}

.sf-story-teaser__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding-inline: 0;
}

.sf-story-teaser__eyebrow {
  margin: 0;
  font-family: var(--font-body, "Be Vietnam Pro", sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--palette-gold, #c99538);
  text-align: center;
  align-self: center;
}

.sf-story-teaser__rule {
  width: 3.25rem;
  height: 2px;
  margin: 0.55rem auto 0.75rem;
  background: var(--palette-gold, #c99538);
  transform-origin: center center;
  align-self: center;
}

.sf-story-teaser__title {
  margin: 0;
  font-family: var(--font-display, Literata, Georgia, serif);
  font-size: clamp(1.35rem, 5.2vw, 2.15rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--palette-brown, #2a1b14);
  letter-spacing: 0.01em;
  text-align: left;
  text-wrap: balance;
  max-width: none;
}

.sf-story-teaser__body {
  margin: 0.75rem 0 0;
  max-width: none;
  text-align: left;
}

.sf-story-teaser__body p {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--palette-brown, #2a1b14) 82%, transparent);
}

.sf-story-teaser__body p:last-child {
  margin-bottom: 0;
}

.sf-story-teaser__facts {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0;
  width: 100%;
  max-width: none;
  border-top: 1px solid color-mix(in srgb, var(--palette-gold, #c99538) 35%, transparent);
}

.sf-story-teaser__facts li {
  min-width: 0;
  min-height: 0;
  padding: 0 0.55rem;
  text-align: center;
  border: none;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sf-story-teaser__facts li + li::before {
  content: "·";
  position: absolute;
  left: -0.15rem;
  color: color-mix(in srgb, var(--palette-brown, #2a1b14) 45%, transparent);
  font-weight: 600;
  pointer-events: none;
}

.sf-story-teaser__facts strong {
  display: inline;
  font-family: var(--font-body, "Be Vietnam Pro", sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--palette-brown, #2a1b14);
}

.sf-story-teaser__actions {
  margin-top: 1.15rem;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sf-story-teaser__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: auto;
  max-width: 100%;
  padding: 0.7rem 1.35rem;
  text-align: center;
  text-decoration: none;
}

.sf-story-teaser__sign {
  margin: 1.05rem 0 0;
  text-align: center;
  align-self: center;
  font-family: var(--font-display, Literata, Georgia, serif);
  font-size: 0.88rem;
  font-style: italic;
  color: color-mix(in srgb, var(--palette-brown, #2a1b14) 72%, transparent);
}

.sf-story-teaser__sign-text {
  display: inline-block;
  max-width: 20rem;
  text-wrap: balance;
}

.sf-story-teaser__sign::before,
.sf-story-teaser__sign::after {
  content: "";
  display: inline-block;
  width: 1.1rem;
  height: 1px;
  margin: 0 0.45rem;
  vertical-align: middle;
  background: color-mix(in srgb, var(--palette-gold, #c99538) 80%, transparent);
}

.sf-contact-block {
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid color-mix(in srgb, var(--palette-gold, #c99538) 28%, transparent);
}

.sf-contact-block .sf-contact {
  max-width: 36rem;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .sf-story-teaser__spread {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1.5rem 2rem;
  }

  .sf-story-teaser__frame {
    max-height: min(32rem, 68vh);
  }

  .sf-story-teaser__eyebrow {
    text-align: left;
    align-self: flex-start;
  }

  .sf-story-teaser__rule {
    margin-left: 0;
    margin-right: 0;
    align-self: flex-start;
    transform-origin: left center;
  }

  .sf-story-teaser__body {
    max-width: 34rem;
  }

  .sf-story-teaser__facts {
    max-width: 28rem;
  }

  .sf-story-teaser__actions {
    max-width: 26rem;
  }

  .sf-story-teaser__cta {
    width: auto;
  }

  .sf-story-teaser__sign {
    text-align: left;
    align-self: flex-start;
  }

  .sf-story-teaser__sign-text {
    display: inline;
    max-width: none;
    text-wrap: wrap;
  }

  .sf-story-teaser__sign::before {
    display: none;
  }
}

@media (max-width: 430px) {
  .sf-story-teaser__sign-text {
    max-width: 18rem;
    font-size: clamp(0.82rem, 3.7vw, 0.88rem);
  }

  .sf-story-teaser__title {
    font-size: clamp(1.28rem, 6.2vw, 1.55rem);
  }

  .sf-story-teaser__facts {
    gap: 0.25rem 0;
  }

  .sf-story-teaser__facts li {
    min-height: 0;
    padding: 0 0.45rem;
  }

  .sf-story-teaser__facts strong {
    font-size: 0.78rem;
  }
}

/* —— Dedicated story page —— */
.sf-story-page {
  background: var(--palette-cream, #f7f1e6);
  color: var(--palette-brown, #2a1b14);
}

.sf-story-page__hero {
  position: relative;
  min-height: clamp(16rem, 48vw, 26rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #1a120e;
}

.sf-story-page__hero-img {
  position: absolute;
  inset: 0;
}

.sf-story-page__hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.72;
}

.sf-story-page__hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, #1a120e 35%, transparent) 0%,
    color-mix(in srgb, #1a120e 72%, transparent) 100%
  );
  pointer-events: none;
}

.sf-story-page__hero-copy {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 2rem;
  text-align: center;
  color: #f7f1e6;
}

.sf-story-page__kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, #f7f1e6 78%, var(--palette-gold, #c99538));
}

.sf-story-page__hero-title {
  margin: 0.65rem 0 0;
  font-family: var(--font-display, Literata, Georgia, serif);
  font-size: clamp(1.7rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
}

.sf-story-page__hero-rule {
  width: 3.5rem;
  height: 2px;
  margin: 1rem auto 0;
  background: var(--palette-gold, #c99538);
}

.sf-story-page__hero-sign {
  margin: 0.85rem 0 0;
  font-family: var(--font-display, Literata, Georgia, serif);
  font-size: 0.95rem;
  font-style: italic;
  opacity: 0.92;
}

.sf-story-chapters-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.55rem 0;
  background: color-mix(in srgb, var(--palette-cream, #f7f1e6) 92%, white);
  border-bottom: 1px solid color-mix(in srgb, var(--palette-gold, #c99538) 35%, transparent);
}

.sf-story-chapters-nav::-webkit-scrollbar {
  display: none;
}

.sf-story-chapters-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  min-width: 4.6rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.4rem;
  text-decoration: none;
  color: color-mix(in srgb, var(--palette-brown, #2a1b14) 72%, transparent);
  font-size: 0.72rem;
  line-height: 1.2;
  border: 1px solid transparent;
}

.sf-story-chapters-nav a strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--palette-brown, #2a1b14);
}

.sf-story-chapters-nav a.is-active {
  background: color-mix(in srgb, white 70%, var(--palette-cream, #f7f1e6));
  border-color: color-mix(in srgb, var(--palette-gold, #c99538) 55%, transparent);
  color: var(--palette-brown, #2a1b14);
}

.sf-story-chapters-nav a:focus-visible {
  outline: 2px solid var(--palette-red, #9e2f24);
  outline-offset: 2px;
}

.sf-story-chapter {
  padding-block: clamp(1.5rem, 3.5vw, 2.65rem);
  scroll-margin-top: 4.75rem;
}

.sf-story-chapter__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem 1.75rem;
  align-items: center;
  min-width: 0;
}

.sf-story-chapter__media {
  margin: 0;
  min-width: 0;
  order: -1;
}

.sf-story-chapter__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--story-media-ar, 4 / 3);
  object-fit: cover;
  object-position: var(--story-object-position-mobile, center 45%);
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--palette-sand, #e8dcc8) 35%, var(--palette-cream, #f7f1e6));
  border: 1px solid color-mix(in srgb, var(--palette-gold, #c99538) 30%, transparent);
}

.sf-story-chapter__media--product img {
  object-fit: contain;
  background: #fff;
  padding: 0.65rem;
}

.sf-story-chapter__media--video .sf-editorial-film__frame {
  max-height: none;
  border-radius: 0.55rem;
}

/* Captions removed from customer UI (TASK-1029); keep class inert if reused */
.sf-story-chapter__cap {
  display: none;
}

.sf-story-chapter__num {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--palette-red, #9e2f24);
}

.sf-story-chapter__label {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--palette-brown, #2a1b14) 62%, transparent);
}

.sf-story-chapter__title {
  margin: 0.55rem 0 0;
  font-family: var(--font-display, Literata, Georgia, serif);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
}

.sf-story-chapter__rule {
  width: 2.75rem;
  height: 2px;
  margin: 0.75rem 0;
  background: var(--palette-gold, #c99538);
}

.sf-story-chapter__body {
  margin: 0;
  font-size: clamp(1.02rem, 2.4vw, 1.125rem);
  line-height: 1.65;
  color: color-mix(in srgb, var(--palette-brown, #2a1b14) 86%, transparent);
  max-width: 38rem;
}

.sf-story-chapter__body + .sf-story-chapter__body {
  margin-top: 0.85rem;
}

.sf-story-timeline {
  margin: 0.5rem 0 0;
  padding: 1.5rem 0 0.5rem;
}

.sf-story-timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.sf-story-timeline__item {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.75rem;
  align-items: start;
  min-width: 0;
}

.sf-story-timeline__ico {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--palette-gold, #c99538) 50%, transparent);
  color: var(--palette-brown, #2a1b14);
  background: color-mix(in srgb, white 65%, var(--palette-cream, #f7f1e6));
}

.sf-story-timeline__item strong {
  display: block;
  font-family: var(--font-display, Literata, Georgia, serif);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.sf-story-timeline__item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--palette-brown, #2a1b14) 72%, transparent);
}

.sf-story-quote {
  margin: 0.5rem 0 0;
  padding: 1.75rem 0 0.5rem;
  text-align: center;
}

.sf-story-quote__mark {
  display: block;
  font-family: var(--font-display, Literata, Georgia, serif);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--palette-gold, #c99538);
  opacity: 0.85;
}

.sf-story-quote blockquote {
  margin: 0.35rem auto 0;
  max-width: 36rem;
  padding: 0;
  border: 0;
  font-family: var(--font-display, Literata, Georgia, serif);
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--palette-brown, #2a1b14);
}

.sf-story-quote__rule {
  width: 3rem;
  height: 1px;
  margin: 1rem auto 0;
  background: color-mix(in srgb, var(--palette-gold, #c99538) 80%, transparent);
}

.sf-story-close {
  padding: 2rem 0 2.75rem;
  text-align: center;
}

.sf-story-close__title {
  margin: 0 auto;
  max-width: 34rem;
  font-family: var(--font-display, Literata, Georgia, serif);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 600;
  line-height: 1.35;
}

.sf-story-close__actions {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
  max-width: 22rem;
  margin-inline: auto;
}

.sf-story-close__actions .btn {
  min-height: 46px;
  justify-content: center;
}

.sf-story-close__actions .btn-secondary-brown {
  background: var(--palette-brown, #2a1b14);
  color: #fff;
  border: 0;
}

.sf-story-close__actions .btn-secondary-brown:hover {
  background: color-mix(in srgb, var(--palette-brown, #2a1b14) 88%, black);
  color: #fff;
}

.sf-story-page .sf-header__brand {
  /* reuse storefront header */
}

@media (min-width: 768px) {
  .sf-story-chapters-nav {
    top: 0;
    justify-content: center;
    gap: 0.45rem;
  }

  .sf-story-close__actions {
    flex-direction: row;
    max-width: none;
    justify-content: center;
  }

  .sf-story-close__actions .btn {
    width: auto;
    min-width: 12rem;
  }
}

@media (min-width: 900px) {
  .sf-story-chapter__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.75rem 2.25rem;
  }

  .sf-story-chapter__media {
    order: 0;
  }

  .sf-story-chapter--flip .sf-story-chapter__media {
    order: -1;
  }

  .sf-story-chapter__media img {
    aspect-ratio: var(--story-media-ar, 5 / 4);
    object-position: var(--story-object-position-desktop, center 45%);
  }

  .sf-story-timeline__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
  }
}
