.story-section {
  position: relative;
  overflow: hidden;
}

.story-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.story-section__bg-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-section__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.7) 100%);
}

.story-section__inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - (var(--section-padding-x) * 2)));
  margin: 0 auto;
  padding: var(--section-padding-y) 0;
  color: var(--color-text-inverse);
}

.story-section__title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-display);
  text-wrap: balance;
  opacity: 0;
  transform: translateY(30px);
}

.story-section__text {
  max-width: 56rem;
  margin-bottom: 48px;
  line-height: var(--lh-body);
}

.story-section__text-content {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.story-section__text.is-expanded .story-section__text-content {
  display: block;
}

.story-section__read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  background: none;
  border: none;
  color: var(--color-primary);
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: gap 0.2s ease;
}

.story-section__read-more:hover {
  gap: 12px;
}

.story-section__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.story-section__card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--color-border-light);
  background: var(--color-bg-card, #fff);
}

.story-section__card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 0.5s var(--ease-out);
}

.story-section__card:hover .story-section__card-bg {
  transform: scale(1.06);
}

.story-section__card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-section__card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
}

.story-section__card-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 24px;
}

.story-section__card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: var(--lh-display);
  color: var(--color-text-inverse);
}

.story-section__card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.2);
  color: var(--color-text-inverse);
  transition: background 0.2s ease;
}

.story-section__card:hover .story-section__card-icon {
  background: var(--color-primary);
  color: var(--color-surface-inverse);
}

/* ── Modal ────────────────────────────────────────── */

.story-section__modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 9999);
  display: none;
  align-items: center;
  justify-content: center;
}

.story-section__modal[hidden] {
  display: none;
}

.story-section__modal:not([hidden]) {
  display: flex;
}

.story-section__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
}

.story-section__modal-panel {
  position: relative;
  width: min(800px, calc(100% - 32px));
  max-height: 90vh;
  background: var(--color-surface, #fff);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.story-section__modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.5);
  color: var(--color-text-inverse);
  border: none;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.story-section__modal-close:hover {
  background: rgba(0,0,0,0.8);
}

.story-section__modal-scroll {
  overflow-y: auto;
  max-height: 90vh;
  -webkit-overflow-scrolling: touch;
}

.story-section__modal-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.story-section__modal-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-section__modal-content {
  padding: 32px;
}

.story-section__modal-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-display);
  color: var(--color-text-dark);
}

.story-section__modal-body {
  color: var(--color-text-secondary);
  line-height: var(--lh-body);
}

.story-section__modal-body p {
  margin-bottom: 1rem;
}

.story-section__modal-subtitle {
  margin: 24px 0 8px;
  font-family: var(--font-display);
  color: var(--color-text-dark);
}

@media (max-width: 768px) {
  .story-section__cards {
    grid-template-columns: 1fr;
  }

  .story-section__card {
    aspect-ratio: 16 / 9;
  }

  .story-section__inner {
    padding: calc(var(--section-padding-y) * 0.75) 0;
  }

  .story-section__modal-content {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .story-section__cards {
    grid-template-columns: 1fr;
  }
}
