/* The first Story chapter pairs the cinematic pitch with an illustrative incident thread. */
.story-page .incident .scene-scrim {
  background: linear-gradient(90deg, rgba(2, 8, 18, .96), rgba(2, 8, 18, .60) 54%, rgba(2, 8, 18, .60)),
    linear-gradient(0deg, rgba(2, 8, 18, .78), transparent 34%);
}
.story-page .incident-content {
  top: 50%;
  left: clamp(32px, 6vw, 115px);
  right: clamp(32px, 6vw, 115px);
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, min(42vw, 620px));
  align-items: center;
  gap: clamp(28px, 5vw, 110px);
  transform: translateY(-50%);
}
.story-page .incident-copy { min-width: 0; }
.story-page .incident h1 {
  margin: clamp(17px, 3vh, 30px) 0 22px;
  font-size: clamp(68px, 7vw, 128px);
}
.story-page .incident-copy > p:not(.eyebrow) {
  max-width: 640px;
  color: #dae2ed;
  font-size: clamp(17px, 1.5vw, 24px);
  line-height: 1.4;
}
.story-page .dialogue { margin-top: clamp(22px, 3vh, 35px); }
.story-page .bridge-agent-reply {
  max-width: 640px;
  margin-top: clamp(16px, 2.3vh, 26px);
  padding: 15px 18px;
  border-left: 3px solid var(--blue);
  background: rgba(10, 35, 60, .88);
  box-shadow: 0 14px 35px rgba(0, 0, 0, .2);
}
.story-page .bridge-agent-reply span { color: var(--blue); font: 600 10px var(--mono); letter-spacing: .13em; }
.story-page .bridge-agent-reply p { margin: 7px 0 0; color: #f0f7ff; font-size: clamp(16px, 1.3vw, 22px); line-height: 1.38; }

.story-page .incident-ops {
  width: 100%;
  max-height: calc(100svh - 150px);
  overflow-y: auto;
  border: 1px solid rgba(149, 202, 255, .38);
  background: rgba(7, 20, 38, .93);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .46), 0 0 65px rgba(46, 137, 226, .14);
  backdrop-filter: blur(20px);
  scrollbar-color: rgba(127, 200, 255, .45) transparent;
  scrollbar-width: thin;
}
.story-page .ops-header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(168, 208, 245, .17);
  background: rgba(16, 43, 72, .78);
}
.story-page .ops-live {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: #78d7bd;
  box-shadow: 0 0 0 5px rgba(120, 215, 189, .13), 0 0 22px rgba(120, 215, 189, .55);
}
.story-page .ops-header div { display: grid; gap: 4px; }
.story-page .ops-header small,
.story-page .ops-header-mark,
.story-page .ops-artifact span,
.story-page .ops-artifact small {
  font: 600 9px var(--mono);
  letter-spacing: .1em;
}
.story-page .ops-header small { color: #92c4eb; }
.story-page .ops-header strong { color: #f0f7ff; font-size: 16px; }
.story-page .ops-header-mark { margin-left: auto; color: #7da7c8; font-size: 24px; }
.story-page .ops-thread { margin: 0; padding: 9px 20px 6px; list-style: none; }
.story-page .ops-message {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(168, 208, 245, .11);
  animation: ops-enter .5s ease both;
}
.story-page .ops-message:nth-child(2) { animation-delay: .15s; }
.story-page .ops-message:nth-child(3) { animation-delay: .3s; }
.story-page .ops-message:nth-child(4) { animation-delay: .45s; }
.story-page .ops-message:nth-child(5) { animation-delay: .6s; }
.story-page .ops-avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(127, 200, 255, .53);
  border-radius: 6px;
  color: #d9ecff;
  background: #183b61;
  font: 800 17px/.9 var(--display);
}
.story-page .ops-message:nth-child(3) .ops-avatar { border-color: rgba(255, 175, 117, .55); background: #493329; color: #ffbc91; }
.story-page .ops-byline { display: flex; align-items: baseline; gap: 9px; }
.story-page .ops-byline strong { color: #f0f7ff; font-size: 13px; }
.story-page .ops-byline span { color: #86a9c7; font: 500 9px var(--mono); }
.story-page .ops-message p { margin: 4px 0 0; color: #bcd3e6; font-size: 13px; line-height: 1.35; }
.story-page .ops-message p b { color: #dceeff; }
.story-page .ops-artifacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 20px 18px; }
.story-page .ops-artifact {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(127, 200, 255, .31);
  background: linear-gradient(135deg, rgba(33, 75, 113, .77), rgba(14, 36, 63, .89));
  text-align: left;
  cursor: pointer;
  animation: ops-enter .55s .75s ease both;
}
.story-page .ops-artifact:hover, .story-page .ops-artifact:focus-visible { border-color: #8ed0ff; box-shadow: 0 0 0 2px rgba(127, 200, 255, .19); }
.story-page .ops-confluence { border-color: rgba(255, 175, 117, .32); background: linear-gradient(135deg, rgba(71, 53, 48, .78), rgba(28, 35, 54, .87)); }
.story-page .ops-artifact span { color: #81c8ff; }
.story-page .ops-confluence span { color: #ffbb8d; }
.story-page .ops-artifact strong { color: #f0f7ff; font-size: 13px; line-height: 1.15; }
.story-page .ops-artifact small { color: #abc6dc; font-size: 8px; line-height: 1.3; }
@keyframes ops-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.incident-document {
  width: min(760px, calc(100vw - 32px));
  max-height: min(760px, calc(100svh - 32px));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #8faec6;
  background: #eef3f7;
  color: #10283f;
  box-shadow: 0 35px 110px rgba(0, 0, 0, .58);
}
.incident-document::backdrop { background: rgba(2, 8, 19, .78); backdrop-filter: blur(8px); }
.incident-document-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 20px; background: #0a2139; color: #a9d8fa; font: 600 10px var(--mono); letter-spacing: .1em; }
.incident-document-bar button { border: 0; padding: 4px 8px; background: transparent; color: #e6f4ff; font-size: 23px; cursor: pointer; }
.incident-document-bar button:hover, .incident-document-bar button:focus-visible { color: #83caff; }
.incident-document-content { padding: clamp(25px, 4vw, 47px); }
.incident-document-kicker { margin: 0 0 12px; color: #277db8; font: 700 10px var(--mono); letter-spacing: .15em; }
.incident-document h2 { margin: 0 0 18px; color: #10283f; font: 800 clamp(38px, 5vw, 65px)/.95 var(--display); text-transform: uppercase; }
.incident-document-content > p:not(.incident-document-kicker):not(.incident-document-link) { max-width: 620px; color: #35516a; font-size: 17px; line-height: 1.5; }
.incident-fields, .incident-document-sections { display: grid; gap: 0; margin: 23px 0 0; border-top: 1px solid #b7c9d8; }
.incident-fields div, .incident-document-sections section { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid #b7c9d8; }
.incident-fields dt, .incident-document-sections h3 { margin: 0; color: #187cb8; font: 800 13px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.incident-fields dd, .incident-document-sections p { margin: 0; color: #25425a; font-size: 15px; line-height: 1.5; }
.incident-document-link { margin: 25px 0 0; padding: 0; border: 0; background: none; color: #247eaf; font: 700 10px var(--mono); letter-spacing: .1em; cursor: pointer; }
.incident-document-link:hover, .incident-document-link:focus-visible { color: #0e5784; text-decoration: underline; }

@media (max-width: 1100px) {
  .story-page .incident-content { left: 80px; right: 40px; gap: 24px; }
  .story-page .incident h1 { font-size: clamp(55px, 6.2vw, 76px); }
  .story-page .dialogue { display: block; }
  .story-page .dialogue span { display: block; margin-bottom: 6px; }
  .story-page .dialogue strong { font-size: 28px; }
  .story-page .ops-header { padding: 12px 15px; }
  .story-page .ops-thread { padding: 6px 15px; }
  .story-page .ops-message { padding: 8px 0; }
  .story-page .ops-artifacts { padding: 8px 15px 13px; }
}
@media (max-width: 760px) {
  .story-page .incident { overflow-y: auto; }
  .story-page .incident-content {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    width: auto;
    padding: 105px 24px 95px;
    transform: none;
  }
  .story-page .incident h1 { margin: 15px 0; font-size: clamp(48px, 11.8vw, 76px); }
  .story-page .incident-copy > p:not(.eyebrow) { font-size: 15px; }
  .story-page .dialogue { margin-top: 15px; padding-top: 10px; }
  .story-page .dialogue strong { font-size: 26px; }
  .story-page .bridge-agent-reply { margin-top: 15px; padding: 12px 14px; }
  .story-page .incident-ops { max-height: none; overflow: visible; }
  .incident-fields div, .incident-document-sections section { grid-template-columns: 1fr; gap: 5px; }
}
@media (max-height: 700px) and (min-width: 761px) {
  .story-page .incident h1 { margin: 12px 0; font-size: clamp(53px, 6vw, 100px); }
  .story-page .dialogue { margin-top: 15px; }
  .story-page .ops-message { padding: 6px 0; }
  .story-page .ops-message p { font-size: 12px; }
  .story-page .ops-artifact { padding: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-page .ops-message, .story-page .ops-artifact { animation: none; }
}
