.thread-hero {
  padding-top: 48px;
}
.hero-statement {
  position: relative;
}
.hero-statement h1 {
  font-size: 26px;
  margin: 16px 0 10px;
  color: var(--accent);
}
.thread-promise {
  font-family: var(--display);
  font-size: 76px;
  line-height: 1.04;
  font-weight: 650;
  margin: 0;
  max-width: 1000px;
}
.hero-statement .lead {
  max-width: 820px;
  font-size: 19px;
  line-height: 1.6;
  margin-top: 24px;
}
.hero-statement .actions {
  margin-top: 24px;
}
.hero-footnote {
  font-size: 14px;
  color: var(--muted);
  margin-top: 22px;
}
.hero-thread {
  margin-top: 36px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: #e5eee8;
}
.hero-thread blockquote {
  font-family: var(--display);
  font-size: 23px;
  line-height: 1.4;
  max-width: 940px;
  margin: 12px 0;
  padding-left: 20px;
  border-left: 3px solid #b65a38;
}
.hero-thread-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 14px;
  align-items: center;
}
.hero-thread-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.thread-story {
  background: #172b26;
  color: #f7f9f6;
  padding: 72px 0 40px;
}
.thread-story .eyebrow {
  color: #b5d5c6;
}
.story-intro h2 {
  font-family: var(--display);
  font-size: 48px;
}
.story-intro .lead {
  color: #d0dcd6;
  max-width: 710px;
  margin-top: 20px;
}
.story-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 24px;
  align-items: center;
}
.thread-story a {
  color: #e0eee7;
}
.thread-story a:hover {
  color: #f2b99d;
}
.thread-story :focus-visible {
  outline-color: #f2b99d;
}
.story-controls a,
.story-controls button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.story-controls button {
  background: transparent;
  color: #e0eee7;
  border: 0;
  border-bottom: 1px solid #849c92;
  padding: 0;
}
.illustration-caption {
  color: #c0d1c9;
  font-size: 13px;
  max-width: 760px;
}
.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 28px;
  padding: 16px 0;
  border-block: 1px solid #476055;
}
.chapter-nav a {
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.chapter-nav span {
  color: #f2b99d;
  font-variant-numeric: tabular-nums;
}
.chapter-nav [aria-current="step"] {
  text-decoration: underline;
  text-underline-offset: 8px;
}
.story-layout {
  position: relative;
}
.story-chapter {
  scroll-margin-top: 0;
  padding: 44px 0;
  border-bottom: 1px solid #476055;
}
.chapter-copy h3 {
  font-size: 32px;
  font-family: var(--display);
  margin-top: 14px;
  max-width: 680px;
}
.chapter-copy > p:not(.eyebrow) {
  font-size: 17px;
  color: #d0dcd6;
  max-width: 680px;
}
.chapter-copy .chapter-takeaway {
  border-left: 2px solid #f2b99d;
  padding-left: 16px;
  font-size: 15px !important;
}
.static-scene {
  margin-top: 24px;
  color: var(--text);
  display: grid;
  gap: 20px;
}
.thread-source,
.thread-object {
  background: #f7f9f6;
  border-radius: 6px;
  padding: 16px 20px;
  position: relative;
  border: 1px solid #c5d6cc;
}
.thread-source {
  border-top: 3px solid #e8a47e;
}
.object-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #4d6259;
  line-height: 1.4;
}
.object-label span {
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
}
.source-title {
  font-weight: 650;
  font-size: 16px;
  margin: 6px 0 0;
}
.source-section {
  font-size: 13px;
  margin: 4px 0 8px;
  color: #4d6259;
}
.thread-source blockquote {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}
.thread-source mark {
  color: #17221e;
  background: #f7dfcc;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 1px 2px;
}
.thread-object {
  padding: 12px 14px;
  color: #17221e;
}
.thread-object > p {
  font-size: 16px;
  line-height: 1.35;
  margin: 6px 0;
  font-weight: 600;
}
.thread-object .expected {
  font-weight: 400;
  margin-top: 12px;
}
.relationship {
  font-size: 12px;
  color: #4d6259;
  line-height: 1.5;
  display: block;
}
.task-object {
  border-left: 3px solid #edb495;
}
.case-object {
  border-left: 3px solid #8cacd0;
}
.static-objects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.source-branch-label,
.return-label {
  color: #d0dcd6;
  font-size: 15px;
}
.thread-discussion {
  background: #f7f9f6;
  color: #17221e;
  padding: 14px 18px;
  border-radius: 6px;
}
.thread-discussion p {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid #d0ddd6;
  font-size: 15px;
  line-height: 1.35;
}
.thread-discussion b {
  font-size: 12px;
  color: #496155;
}
.thread-run {
  color: #17221e;
  background: #f7f9f6;
  padding: 12px 18px;
  border-radius: 6px;
}
.run-name {
  font-size: 14px;
  font-weight: 600;
  margin: 4px 0 8px;
}
.result {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0;
  font-size: 15px;
}
.passed {
  color: #216143;
}
.failed {
  color: #aa3628;
}
.failure-note {
  font-size: 13px;
  margin-top: 8px;
}
.history-note {
  font-size: 13px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #cad8d0;
}
.thread-defect {
  color: #f7f9f6;
  font-size: 13px;
  padding: 6px 0 0;
}
.thread-defect strong {
  display: block;
  font-size: 15px;
}
.decision {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  color: #f7f9f6;
  font-size: 13px;
}
.decision small {
  color: #c3d6cb;
}
.decision .passed {
  color: #b8e6c6;
}
.decision .failed {
  color: #ffbba9;
}
.run-history {
  color: #e0eee7;
}
.run-history summary {
  min-height: 44px;
  padding: 12px 0;
}
.story-stage {
  align-self: start;
  position: sticky;
  top: 94px;
  min-width: 0;
}
.stage-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #c6d9ce;
  font-size: 12px;
  margin-bottom: 12px;
}
.stage-canvas {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 58px;
  row-gap: 30px;
}
.stage-canvas > .thread-source {
  grid-column: 1 / -1;
  color: #17221e;
}
.stage-work,
.stage-tests {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.stage-work > *,
.stage-tests > * {
  min-height: 104px;
}
.stage-detail {
  grid-column: 1 / -1;
  min-height: 217px;
}
.stage-note {
  padding: 24px 0;
  color: #c1d5c9;
}
.stage-note > span {
  font-family: var(--display);
  font-size: 24px;
  color: #f2b99d;
}
.stage-note > p {
  font-size: 16px;
  margin-top: 10px;
  max-width: 480px;
}
.story-stage figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 20px;
  border-top: 1px solid #476055;
  padding-top: 12px;
  font-size: 11px;
  color: #c0d1c9;
}
.stage-disclaimer {
  flex-basis: 100%;
  font-size: 12px;
}
.legend-source {
  color: #f2b99d;
}
.legend-tests {
  color: #adc8ec;
}
.thread-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  color: #f2b99d;
}
.thread-lines > path {
  stroke: #f2b99d;
  stroke-width: 1.5;
  fill: none;
  marker-start: url(#thread-arrow);
  marker-end: url(#thread-arrow);
}
.thread-lines .cross-link {
  stroke: #adc8ec;
}
.stage-canvas .node-hidden {
  visibility: hidden;
}
.stage-canvas[data-step="3"] .thread-source {
  outline: 2px solid #f2b99d;
  outline-offset: 4px;
}
.stage-canvas[data-step="3"] [data-node="task-1"] {
  outline: 2px solid #f2b99d;
  outline-offset: 3px;
}
.stage-canvas[data-step="4"] .case-object .object-label > span,
.stage-canvas[data-step="5"] .case-object .object-label > span {
  visibility: hidden;
}
.real-proof > h2 {
  font-family: var(--display);
  font-size: 46px;
  margin-top: 14px;
}
.proof-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-block: 1px solid var(--line);
  margin-top: 28px;
  padding: 12px 0;
}
.proof-selector a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.proof-sequence > article {
  display: grid;
  grid-template-columns: 0.7fr 1.4fr;
  gap: 48px;
  align-items: center;
  padding: 52px 0;
  scroll-margin-top: 100px;
  border-bottom: 1px solid var(--line);
}
.proof-sequence h3 {
  font-family: var(--display);
  font-size: 30px;
  margin-top: 14px;
}
.proof-sequence .product-proof {
  margin: 0;
}
.proof-sequence #proof-run {
  display: block;
}
.proof-sequence #proof-run > div {
  max-width: 720px;
  margin-bottom: 28px;
}
@media (min-width: 601px) {
  .proof-detail[data-proof="connected-requirement"] {
    max-width: 540px;
    justify-self: center;
  }
  .proof-detail[data-proof="connected-requirement"] img {
    aspect-ratio: 512 / 550;
    object-fit: cover;
    object-position: top;
  }
  .proof-detail[data-proof="task-verification"] img {
    aspect-ratio: 672 / 390;
    object-fit: cover;
    object-position: top;
  }
  .proof-detail[data-proof="test-run-evidence"] img {
    aspect-ratio: 1376 / 760;
  }
}
.proof-sequence article:nth-child(2) {
  grid-template-columns: 1.4fr 0.7fr;
}
.proof-sequence article:nth-child(2) > div {
  order: 2;
}
.roles-band {
  background: #e7ede8;
  padding: 80px 0;
}
.roles-band h2 {
  font-family: var(--display);
  font-size: 44px;
  margin-top: 16px;
}
.role-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin-top: 44px;
}
.role-columns article {
  border-top: 1px solid #92a69a;
  padding-top: 22px;
}
.role-columns article > span {
  font-size: 14px;
  color: var(--accent);
}
.role-columns h3 {
  font-size: 24px;
  margin-top: 16px;
}
.delivery-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.delivery-band h2 {
  font-family: var(--display);
  font-size: 42px;
}
.delivery-band p:first-child {
  margin-top: 0;
}
.access-reassurance {
  margin-top: 30px;
}
.thread-ending {
  padding: 80px 0;
  background: #dce9e1;
  text-align: center;
}
.thread-ending img {
  margin: 0 auto 24px;
}
.thread-ending h2 {
  font-size: 52px;
  font-family: var(--display);
  margin: 16px auto;
}
.thread-ending p {
  max-width: 650px;
  margin-inline: auto;
}
.thread-ending .actions {
  justify-content: center;
}
@media (min-width: 1120px) and (min-height: 860px) and (prefers-reduced-motion: no-preference) {
  .thread-story.is-enhanced .story-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.8fr;
    gap: 48px;
  }
  .thread-story.is-enhanced .story-chapter {
    min-height: 74vh;
    padding: 36px 0;
    display: flex;
    align-items: center;
    border: 0;
  }
  .thread-story.is-enhanced .story-chapter:last-child {
    min-height: 110vh;
  }
  .thread-story.is-enhanced .static-scene {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .thread-story.is-enhanced .chapter-copy h3 {
    font-size: 32px;
  }
  .thread-story.is-enhanced .story-stage:not([hidden]) {
    display: block;
  }
}
@media (max-width: 1119px),
  (max-height: 859px),
  (prefers-reduced-motion: reduce) {
  .story-stage {
    display: none !important;
  }
}
@media (max-width: 800px) {
  .thread-hero {
    padding-top: 28px;
  }
  .thread-promise {
    font-size: 44px;
  }
  .hero-statement h1 {
    font-size: 23px;
    margin: 14px 0;
  }
  .hero-statement .lead {
    font-size: 17px;
  }
  .hero-footnote {
    font-size: 13px;
  }
  .hero-thread {
    margin-top: 24px;
    padding: 20px 0;
  }
  .hero-thread blockquote {
    font-size: 19px;
    padding-left: 14px;
  }
  .hero-thread-links {
    gap: 0 18px;
  }
  .hero-thread-links > span {
    flex-basis: 100%;
  }
  .thread-story {
    padding: 40px 0 20px;
  }
  .story-intro h2,
  .real-proof > h2,
  .roles-band h2,
  .delivery-band h2 {
    font-size: 34px;
  }
  .chapter-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
  }
  .static-objects {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .thread-source {
    padding: 16px;
  }
  .thread-discussion p {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .result {
    flex-wrap: wrap;
    font-size: 14px;
  }
  .proof-sequence > article,
  .proof-sequence article:nth-child(2),
  .role-columns,
  .delivery-band {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .proof-sequence article:nth-child(2) > div {
    order: 0;
  }
  .proof-sequence .product-proof img {
    max-height: 600px;
    object-fit: contain;
    background: #f7f6f2;
  }
  .thread-ending h2 {
    font-size: 38px;
  }
  .thread-ending .actions {
    flex-direction: column;
  }
  .roles-band {
    padding: 48px 0;
  }
}
@media (max-width: 360px) {
  .thread-promise {
    font-size: 38px;
  }
  .hero-statement .actions {
    gap: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .thread-story *,
  .thread-story *::before,
  .thread-story *::after {
    animation: none !important;
    transition: none !important;
  }
}
