/* ─────────────────────────────────────────────
   STORY — styles exclusive to story.html
   Depends on: css/shared.css
   ───────────────────────────────────────────── */

/* ── NAV (story-specific elements) ── */
.nav-back {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--gray-400);
  text-decoration: none;
  transition: color .2s;
}

.nav-back:hover {
  color: var(--black);
}

.nav-issue {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--gray-400);
  text-transform: uppercase;
}

/* ── DIVIDER ── */
hr.rule {
  border: none;
  border-top: var(--gutter);
  max-width: var(--max);
  margin: 80px auto;
}

/* ── CHAPTER HEADER ── */
.chapter-header {
  padding: 112px 40px 80px;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  border-bottom: var(--gutter);
  margin-bottom: 80px;
}

.chapter-header .overline {
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 28px;
  display: block;
}

.chapter-header h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin-bottom: 24px;
}

.chapter-header .subhead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--gray-500);
  text-wrap: balance;
  max-width: 48ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── EDITORIAL PANEL (two-col image + text) ── */
.editorial-panel {
  max-width: var(--max);
  margin: 0 auto 80px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.editorial-panel.flip {
  direction: rtl;
}

.editorial-panel.flip > * {
  direction: ltr;
}

.panel-art {
  position: relative;
}

.panel-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: var(--gutter);
  background: var(--gray-100);
}

.panel-img-wrap.wide {
  aspect-ratio: 16 / 9;
}

.panel-img-wrap.square {
  aspect-ratio: 1 / 1;
}

.panel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%) contrast(1.05);
  transition: transform .6s var(--ease);
}

.editorial-panel:hover .panel-img-wrap img {
  transform: scale(1.03);
}

.img-caption {
  font-size: 11px;
  font-style: italic;
  color: var(--gray-400);
  margin-top: 10px;
  letter-spacing: .04em;
}

/* Text side */
.panel-text h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin-bottom: 18px;
  text-wrap: balance;
}

.panel-text p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.9;
  margin-bottom: 14px;
  max-width: 42ch;
}

/* ── DIALOGUE ── */
.dialogue {
  border-left: 2px solid var(--black);
  margin: 20px 0;
  padding: 10px 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--black);
  line-height: 1.5;
}

.dialogue cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--gray-400);
  margin-top: 8px;
}

/* ── SFX WORD (absolute overlay on image) ── */
.sfx-word {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: -.02em;
  color: var(--black);
  line-height: 1;
  opacity: .08;
  user-select: none;
  pointer-events: none;
  position: absolute;
  bottom: 12px;
  right: 16px;
}

/* ── FULL-WIDTH PANEL ── */
.full-panel {
  max-width: var(--max);
  margin: 0 auto 80px;
  padding: 0 40px;
}

.full-panel-img {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border: var(--gutter);
  background: var(--gray-100);
  position: relative;
}

.full-panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
  transition: transform .6s var(--ease);
}

.full-panel:hover .full-panel-img img {
  transform: scale(1.02);
}

.full-panel-caption {
  font-size: 11px;
  font-style: italic;
  color: var(--gray-400);
  margin-top: 10px;
  letter-spacing: .04em;
}

.img-overlay-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-style: italic;
  letter-spacing: .04em;
  color: var(--black);
  padding: 4px 10px;
  border-left: 2px solid var(--black);
}

/* ── 3-COL GRID ROW ── */
.three-col {
  max-width: var(--max);
  margin: 0 auto 80px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.three-col .cell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.three-col .cell-img {
  overflow: hidden;
  border: var(--gutter);
  background: var(--gray-100);
}

.three-col .cell-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
  filter: grayscale(20%);
  transition: transform .5s var(--ease);
}

.three-col .cell:hover .cell-img img {
  transform: scale(1.04);
}

.three-col .cell-label {
  font-size: 11px;
  font-style: italic;
  color: var(--gray-400);
}

.three-col .cell-text {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ── SPLIT PANEL ── */
.split-panel {
  max-width: var(--max);
  margin: 0 auto 80px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: var(--gutter);
  background: var(--gray-200);
}

.split-panel .half {
  position: relative;
  background: var(--white);
  overflow: hidden;
}

.split-panel .half img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
}

.split-panel .half:first-child img {
  filter: grayscale(80%) sepia(20%);
}

.split-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  padding: 3px 10px;
}

/* ── PULL QUOTE ── */
.pull-quote {
  max-width: var(--max);
  margin: 0 auto 80px;
  padding: 64px 80px;
  text-align: center;
  border-top: var(--gutter);
  border-bottom: var(--gutter);
}

.pull-quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3.5vw, 32px);
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--black);
  text-wrap: balance;
  position: relative;
}

.pull-quote blockquote::before {
  content: '\201C';
  font-size: 5rem;
  line-height: .6;
  color: var(--gray-200);
  display: block;
  margin-bottom: 16px;
  font-style: normal;
}

/* ── SFX DIVIDER ── */
.sfx-divider {
  max-width: var(--max);
  margin: 0 auto 80px;
  padding: 0 40px;
  display: flex;
  align-items: baseline;
  gap: 40px;
}

.sfx-divider .sfx-item {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -.02em;
  color: var(--gray-200);
  line-height: 1;
  user-select: none;
  flex: 1;
  text-align: center;
}

.sfx-divider .sfx-item.accent {
  color: var(--black);
  opacity: .7;
}

/* ── SECTION LABEL ── */
.section-label {
  max-width: var(--max);
  margin: 0 auto 48px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-label span {
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--black);
  font-weight: 500;
  white-space: nowrap;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* ── FOOTER ── */
footer {
  border-top: var(--gutter);
  padding: 48px 40px;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer .footer-note {
  font-size: 11px;
  color: var(--gray-400);
  letter-spacing: .06em;
}

.back-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  transition: opacity .2s, letter-spacing .2s;
}

.back-link:hover {
  opacity: .5;
  letter-spacing: .06em;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.in,
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal-stagger.in > *,
.reveal-stagger.visible > * {
  opacity: 1;
  transform: none;
}

.reveal-stagger.in > *:nth-child(1),
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }

.reveal-stagger.in > *:nth-child(2),
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 80ms; }

.reveal-stagger.in > *:nth-child(3),
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 160ms; }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .chapter-header {
    padding: 64px 24px 48px;
  }

  .editorial-panel {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 24px;
  }

  .editorial-panel.flip {
    direction: ltr;
  }

  .full-panel {
    padding: 0 24px;
  }

  .three-col {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }

  .split-panel {
    grid-template-columns: 1fr;
    padding: 0;
    margin: 0 24px 64px;
  }

  .pull-quote {
    padding: 40px 24px;
  }

  .section-label {
    padding: 0 24px;
  }

  .sfx-divider {
    padding: 0 24px;
    gap: 16px;
  }

  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 40px 24px;
  }

  .wrap {
    padding: 0 24px;
  }
}
