:root {
  --stories-ink: #071b4d;
  --stories-gold: #ddb52e;
  --stories-paper: #f7f8fb;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--stories-ink);
  background: var(--stories-paper);
  font-family: Poppins, sans-serif;
}

.stories-page-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 86px;
  padding: .75rem clamp(1.25rem, 5vw, 5rem);
  background: #fff;
  border-top: 4px solid var(--stories-gold);
  box-shadow: 0 8px 24px rgba(7, 27, 77, .07);
}
.stories-brand { margin-right: auto; }
.stories-brand img { display: block; width: 142px; height: auto; }
.stories-page-nav nav { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }
.stories-page-nav nav a { color: var(--stories-ink); text-decoration: none; font-size: .88rem; font-weight: 600; }
.stories-page-nav nav a.is-active { color: #b78900; }
.stories-cta {
  padding: .8rem 1.4rem;
  border-radius: 999px;
  color: var(--stories-ink);
  background: linear-gradient(135deg, #f7d868, #dcb42f);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.stories-page-main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 4.5rem 0 6rem; }
.stories-page-heading { max-width: 700px; margin: 0 auto 3rem; text-align: center; }
.stories-kicker { color: #b78900; font-size: .72rem; font-weight: 700; letter-spacing: .25em; }
.stories-page-heading h1 { margin: .6rem 0 1rem; font-family: "DM Serif Display", serif; font-size: clamp(2.6rem, 6vw, 5rem); line-height: .98; }
.stories-page-heading > p:last-child { color: #64728f; line-height: 1.8; }

.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.story-tile { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 18px; background: #0b2860; cursor: pointer; box-shadow: 0 12px 28px rgba(7, 27, 77, .12); }
.story-tile-media { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.story-tile:hover .story-tile-media { transform: scale(1.05); }
.story-tile::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); pointer-events: none; }
.story-tile-copy { position: absolute; z-index: 1; right: 1rem; bottom: 1rem; left: 1rem; color: #fff; }
.story-tile-copy h2 { margin: 0; font-size: 1rem; line-height: 1.3; }
.story-tile-copy p { margin: .3rem 0 0; font-size: .72rem; opacity: .8; }
.story-tile-play { position: absolute; z-index: 2; top: 1rem; right: 1rem; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: rgba(7,27,77,.75); }
.stories-loading, .stories-empty { grid-column: 1 / -1; padding: 4rem 1rem; color: #64728f; text-align: center; }

.story-viewer { position: fixed; z-index: 20; inset: 0; display: none; place-items: center; padding: 1.5rem; background: rgba(2, 12, 35, .92); }
.story-viewer.is-open { display: grid; }
.story-viewer-content { width: min(850px, 88vw); max-height: 88vh; color: #fff; text-align: center; }
.story-viewer-content img, .story-viewer-content video { display: block; width: 100%; max-height: 75vh; object-fit: contain; border-radius: 14px; background: #000; }
.story-viewer-content h2 { margin: 1rem 0 .2rem; font-size: 1.2rem; }
.story-viewer-content p { margin: 0; color: #cad2e3; font-size: .85rem; }
.story-viewer-close, .story-viewer-arrow { position: absolute; z-index: 2; border: 0; color: #fff; background: rgba(255,255,255,.14); cursor: pointer; }
.story-viewer-close { top: 1.2rem; right: 1.4rem; width: 42px; height: 42px; border-radius: 50%; font-size: 1.8rem; }
.story-viewer-arrow { top: 50%; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; transform: translateY(-50%); }
.story-viewer-prev { left: 1rem; }
.story-viewer-next { right: 1rem; }

@media (max-width: 760px) {
  .stories-page-nav nav { display: none; }
  .stories-page-main { padding-top: 3rem; }
  .stories-grid { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
  .story-tile { border-radius: 12px; }
  .story-tile-copy { right: .7rem; bottom: .7rem; left: .7rem; }
  .story-tile-copy h2 { font-size: .78rem; }
  .story-viewer-arrow { display: none; }
}
