.project-stories, .story-detail {
  --story-text: #f6f2e9;
  --story-muted: #bacbc6;
  --story-line: #405652;
  --story-accent: #ff9b55;
  color: var(--story-text);
}
.project-stories { padding-block: clamp(3.5rem, 8vw, 7rem); }
.project-stories > h2 { margin: 0 0 1.75rem; font-size: clamp(2rem, 5vw, 3.6rem); }
.story-card {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr);
  background: #102925;
  border: 1px solid var(--story-line);
  border-radius: 12px;
  overflow: hidden;
}
.story-card + .story-card { margin-block-start: 1.25rem; }
.story-copy { align-self: center; padding: clamp(1.25rem, 4vw, 3.25rem); }
.story-copy h3 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); line-height: 1.25; margin: 0; }
.story-copy p, .story-detail p { max-width: 58ch; color: var(--story-muted); line-height: 1.8; }
.story-copy .button, .story-next .button { margin-block-start: .45rem; }
.story-visual { display: grid; height: clamp(15rem, 27vw, 22rem); overflow: hidden; }
.story-visual img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.story-visual-bon { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); background: #2b1710; }
.story-visual-bon img:first-child {
  object-fit: contain;
  padding: clamp(.6rem, 2.5vw, 2rem);
  background: #f2e2ca;
}
.story-visual-mido {
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  max-height: 24rem;
  gap: 3px;
  background: #1c302a;
}
.story-visual-mido img:first-child { grid-row: span 2; }
.story-detail { padding-block: clamp(2rem, 6vw, 5rem); }
.story-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 5vw, 4rem);
  margin-block: 1.5rem 3.5rem;
}
.story-detail h1 { font-size: clamp(2.4rem, 6vw, 5.3rem); line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.story-detail h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.3; margin: 0; }
.story-detail-hero p { font-size: clamp(1.05rem, 2vw, 1.25rem); }
.story-brand-art {
  display: grid;
  place-items: center;
  min-height: 15rem;
  padding: clamp(.75rem, 3vw, 2rem);
  border-radius: 12px;
  background: #f2e2ca;
}
.story-brand-art img { width: min(100%, 25rem); height: auto; max-height: 23rem; object-fit: contain; }
.story-timeline { display: grid; gap: 2.25rem; padding-inline-start: 1.6rem; margin: 0; }
.story-timeline > li { border-block-start: 1px solid var(--story-line); padding-block-start: 1.45rem; padding-inline-start: .6rem; }
.story-timeline > li::marker { color: var(--story-accent); font-weight: bold; }
.story-link { color: var(--story-accent); text-decoration: underline; text-underline-offset: .22em; }
.story-link:focus-visible, .story-reels a:focus-visible { outline: 2px solid var(--story-accent); outline-offset: 5px; }
.story-reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; list-style: none; padding: 0; margin-block: 1.25rem 0; }
.story-reels a { display: block; background: #102925; border: 1px solid var(--story-line); border-radius: 8px; overflow: hidden; }
.story-reels img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story-reels a > span { display: block; padding: .75rem; line-height: 1.4; }
.story-launch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: start; gap: 1.25rem; }
.story-launch img { width: min(100%, 26rem); height: auto; border-radius: 8px; }
.story-next { margin-block-start: 3rem; padding: clamp(1.1rem, 4vw, 2.5rem); border: 1px solid var(--story-line); background: #102925; border-radius: 12px; }
.story-next .button { margin-block-start: 1rem; }
.story-designs { margin-block-start: 1.5rem; }
.story-designs h3 { margin: 0; font-size: clamp(1.2rem, 2.3vw, 1.55rem); }
.story-design-grid img { aspect-ratio: 1; object-fit: contain; background: #182e28; }
#bon-designs, #bon-reels { scroll-margin-block-start: 6rem; }
.story-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem 1.25rem; }
.story-card .story-link { color: #ff9b55; }
.mido-detail .story-detail-hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); }
.mido-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block-start: 1.1rem; }
.mido-gallery > :nth-child(3) { grid-column: 1 / -1; }
.mido-figure { margin: 0; min-width: 0; }
.mido-figure a { display: block; border: 1px solid var(--story-line); border-radius: 8px; overflow: hidden; }
.mido-figure a:focus-visible { outline: 2px solid var(--story-accent); outline-offset: 4px; }
.mido-figure img { display: block; width: 100%; height: auto; }
.mido-figure figcaption { margin-block-start: .55rem; color: var(--story-muted); font-size: .94rem; line-height: 1.5; }
.mido-detail .story-timeline > li { scroll-margin-block-start: 6rem; }
@media (max-width: 690px) {
  .story-card, .story-detail-hero, .story-launch { grid-template-columns: minmax(0, 1fr); }
  .story-visual { min-height: 0; height: clamp(12rem, 62vw, 19rem); }
  .story-timeline { padding-inline-start: 1.2rem; }
  .story-reels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mido-detail .story-detail-hero, .mido-gallery { grid-template-columns: minmax(0, 1fr); }
}
