/* Own Goal's doorway: stepping in from the library, the story sweeps across the screen
   from left to right, like a ball crossing the line. */
html[data-opening="own-goal"]::view-transition-old(root) { animation: none; }
html[data-opening="own-goal"]::view-transition-new(root) {
  animation: og-sweep 0.8s cubic-bezier(0.7, 0, 0.2, 1) both;
}
html[data-opening="own-goal"]::view-transition-group(story-art) {
  animation-duration: 0.95s;
  animation-timing-function: cubic-bezier(0.7, 0, 0.2, 1);
}
@keyframes og-sweep {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* The title on Own Goal's page: wide and heavy, like a stadium scoreboard */
html[data-opening="own-goal"] .story-copy h1 { font-stretch: 125%; letter-spacing: -0.01em; text-transform: uppercase; }
html[data-opening="own-goal"] .story-copy .hook { font-style: italic; color: var(--r-fg); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7); }
html[data-opening="own-goal"] .story-copy .eyebrow { color: var(--r-accent); }

/* A soft shade behind the words so they stay readable over the artwork */
html[data-opening="own-goal"] .story-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(10, 16, 32, 0.85), rgba(10, 16, 32, 0.35) 60%, rgba(10, 16, 32, 0) 85%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html[data-opening="own-goal"]::view-transition-new(root),
  html[data-opening="own-goal"]::view-transition-group(story-art) { animation: none; }
}
