.hero-copy .hero-note {
  font-size: 13px;
  line-height: 1.6;
  max-width: 470px;
}

.expertise-cases h2 {
  max-width: 850px;
  margin-bottom: 24px;
}

.expertise-cases .case-row:last-child {
  border-bottom: 0;
}

.expertise-cases .case-row p+p {
  margin-top: 16px;
}

.decision-story,
.decision-scene {
  --scene-line: #63828a;
  --scene-accent: #e1b293;
  color: #f2f5f3;
  min-width: 0;
  container-type: inline-size;
}

.decision-story {
  background: linear-gradient(145deg,#123340f7,#102c35e8);
  padding: 26px clamp(22px,3vw,38px);
  border-top: 2px solid var(--scene-accent);
  align-self: center;
}

.scene-label {
  font: 11px/1.6 'Plex Mono',monospace;
  letter-spacing: .08em;
  color: #c6d8d5;
  margin: 0 0 24px;
}

.story-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--scene-line);
  margin-bottom: 23px;
}

.story-tabs button {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #c6d8d5;
  padding: 12px 0;
  min-height: 48px;
  font-size: 13px;
  text-align: left;
  margin-bottom: -1px;
}

.story-tabs button span {
  font: 11px 'Plex Mono',monospace;
  color: var(--scene-accent);
}

.story-tabs button[aria-selected=true] {
  border-color: var(--scene-accent);
  color: white;
}

.story-tabs button:focus-visible,
.decision-story :focus-visible {
  outline-color: var(--scene-accent);
}

.story-panel h2 {
  font-size: clamp(29px,2.9vw,42px);
  line-height: 1.17;
  letter-spacing: -.04em;
  max-width: 480px;
  min-height: 2.4em;
}

.story-network {
  --route-gap: 40px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 48px minmax(0,1fr);
  align-items: center;
  gap: var(--route-gap);
  margin: 24px 0 32px;
  position: relative;
}

.story-sources {
  display: grid;
  grid-template-rows: repeat(2,minmax(64px,1fr));
  gap: 24px;
  position: relative;
}

.story-sources span,
.story-destination {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 64px;
  font-size: 13px;
  line-height: 1.4;
  padding: 12px;
  border: 1px solid var(--scene-line);
  position: relative;
}

.story-sources:after {
  content: '';
  position: absolute;
  top: calc(25% - 6px);
  bottom: calc(25% - 6px);
  right: calc(var(--route-gap)/-2);
  width: calc(var(--route-gap)/2);
  border-right: 1px solid var(--scene-accent);
  border-block: 1px solid var(--scene-accent);
}

.story-junction {
  position: relative;
  text-align: center;
  color: var(--scene-accent);
  width: 48px;
  height: 48px;
}

.story-junction:before,
.story-junction:after {
  content: '';
  position: absolute;
  top: 50%;
  height: 1px;
  background: var(--scene-accent);
  transform: translateY(-50%);
}

.story-junction:before {
  right: 100%;
  width: calc(var(--route-gap)/2);
}

.story-junction:after {
  left: 100%;
  width: var(--route-gap);
}

.story-junction-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--scene-accent);
  border-radius: 50%;
  font-size: 24px;
}

.story-junction strong {
  position: absolute;
  top: calc(100% + 32px);
  left: 50%;
  transform: translateX(-50%);
  width: 116px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.story-destination {
  border-color: var(--scene-accent);
}

.story-destination:before {
  content: '';
  position: absolute;
  right: calc(100% + 1px);
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--scene-accent);
  border-right: 1px solid var(--scene-accent);
  transform-origin: 100% 0;
  transform: rotate(45deg);
}

.story-explanation {
  font-size: 15px;
  color: #d6e3df;
  line-height: 1.65;
  min-height: 4.95em;
}

.story-takeaway {
  border-top: 1px solid var(--scene-line);
  margin-top: 18px;
  padding-top: 16px;
  font-size: 16px;
  line-height: 1.55;
  min-height: 6.2em;
}

.story-takeaway span {
  display: block;
  color: var(--scene-accent);
  font: 11px/1.5 'Plex Mono',monospace;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.story-note {
  font-size: 11px;
  color: #b9ceca;
  margin-top: 18px;
}

.decision-scene {
  padding: 34px;
  border-left: 1px solid #b0c8c080;
  background: linear-gradient(90deg,#123340ed,#123340c7);
}

.scene-route {
  --scene-gap: 24px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: var(--scene-gap);
  align-items: stretch;
  margin: 36px 0 44px;
}

.scene-route>span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  border: 1px solid var(--scene-line);
  padding: 14px 10px;
  font-size: 13px;
  line-height: 1.5;
  min-width: 0;
}

.scene-route>span+span:before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  width: var(--scene-gap);
  height: 1px;
  background: var(--scene-accent);
  transform: translateY(-50%);
}

.scene-route>span+span:after {
  content: '';
  position: absolute;
  right: calc(100% + 1px);
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--scene-accent);
  border-right: 1px solid var(--scene-accent);
  transform-origin: 100% 0;
  transform: rotate(45deg);
}

.scene-route>span.scene-route-focus {
  color: var(--scene-accent);
  border-color: var(--scene-accent);
}

.scene-route--comparison>span:last-child:after {
  right: auto;
  left: calc(-1 * var(--scene-gap) - 1px);
  transform: translateX(-100%) rotate(225deg);
}

.scene-branch {
  --branch-gap: 32px;
  display: grid;
  grid-template-columns: minmax(0,.85fr) minmax(0,1fr);
  gap: var(--branch-gap);
  align-items: center;
  margin: 28px 0 32px;
}

.scene-branch-root,
.scene-branch-options>li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--scene-line);
  padding: 12px 8px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
}

.scene-branch-root {
  color: var(--scene-accent);
  border-color: var(--scene-accent);
}

.scene-branch-options {
  position: relative;
  display: grid;
  grid-template-rows: repeat(3,1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.scene-branch-options:before {
  content: '';
  position: absolute;
  left: calc(var(--branch-gap) / -2);
  top: calc((100% - 32px) / 6);
  bottom: calc((100% - 32px) / 6);
  border-left: 1px solid var(--scene-accent);
}

.scene-branch-root:before,
.scene-branch-options>li:before {
  content: '';
  position: absolute;
  top: 50%;
  height: 1px;
  width: calc(var(--branch-gap) / 2 + 1px);
  background: var(--scene-accent);
  transform: translateY(-50%);
}

.scene-branch-root:before {
  left: 100%;
}

.scene-branch-options>li:before {
  right: 100%;
}

.scene-branch-options>li:after {
  content: '';
  position: absolute;
  right: calc(100% + 1px);
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--scene-accent);
  border-right: 1px solid var(--scene-accent);
  transform-origin: 100% 0;
  transform: rotate(45deg);
}

.subpage .decision-scene h2 {
  font-size: clamp(28px,2.6vw,39px);
  line-height: 1.2;
  letter-spacing: -.04em;
  max-width: 460px;
}

.scene-explanation {
  font-size: 16px;
  color: #d6e3df;
  margin-top: 22px;
  max-width: 470px;
}

.scene-resolution {
  display: flex;
  gap: 15px;
  border-top: 1px solid var(--scene-line);
  margin-top: 30px;
  padding-top: 23px;
}

.scene-resolution>span {
  font-size: 25px;
  color: var(--scene-accent);
}

.scene-resolution p {
  font-size: 14px;
  color: #e1b293;
}

.service-detail .sub-hero-grid {
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px,6vw,85px);
  min-height: 610px;
  padding-block: 55px 70px;
}

.service-detail h1 {
  font-size: clamp(42px,4.6vw,68px);
  line-height: 1.1;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.service-detail .sub-lead {
  font-size: 17px;
  line-height: 1.7;
  max-width: 600px;
}

.service-detail .sub-intro {
  padding-top: 85px;
  padding-bottom: 45px;
}

.service-detail .sub-intro .line-list p {
  font-weight: 600;
}

.service-detail .line-list .pain-consequence {
  display: block;
  color: var(--secondary);
  font: 400 15px/1.65 Manrope,sans-serif;
  letter-spacing: normal;
  padding: 0;
  margin-top: 9px;
}

.service-outcomes {
  padding-block: 45px 90px;
}

.service-outcomes>h2 {
  max-width: 850px;
  margin-bottom: 40px;
}

.service-outcomes .section-label {
  margin-bottom: 20px;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 35px;
}

.outcome-grid article {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.outcome-number {
  font: 11px 'Plex Mono',monospace;
  color: var(--copper);
}

.outcome-grid h3 {
  font-size: 22px;
  margin: 20px 0 14px;
}

.outcome-grid p {
  font-size: 16px;
  color: var(--secondary);
}

.service-detail .output-panel {
  background: none;
  border: 0;
  border-left: 2px solid var(--copper);
  padding: 5px 0 5px 28px;
}

@media(prefers-reduced-motion:no-preference) {
  .story-panel:not([hidden]) {
    animation: decision-reveal .35s var(--ease);
  }

  @keyframes decision-reveal {
    from {
      opacity: .45;
      transform: translateY(7px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media(max-width:1000px) {
  .story-tabs {
    gap: 10px;
  }

  .story-tabs button {
    font-size: 12px;
  }

  .decision-story {
    padding: 24px;
  }

  .service-detail .sub-hero-grid {
    gap: 30px;
  }

  .decision-scene {
    padding: 24px;
  }

  .scene-route {
    --scene-gap: 16px;
  }
}

@media(max-width:800px) {
  .service-detail .sub-hero-grid {
    grid-template-columns: 1fr;
  }

  .service-detail h1 {
    max-width: 680px;
  }

  .decision-scene {
    max-width: 680px;
  }

  .outcome-grid {
    gap: 24px;
  }
}

@media(max-width:700px) {
  .decision-story {
    padding: 24px 20px;
  }

  .story-panel h2 {
    font-size: 30px;
    min-height: 0;
  }

  .story-tabs {
    gap: 12px;
  }

  .story-tabs button {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .story-sources span,
  .story-destination {
    font-size: 12px;
  }

  .story-junction strong {
    font-size: 11px;
  }

  .story-explanation,
  .story-takeaway {
    min-height: 0;
  }

  .story-takeaway {
    font-size: 16px;
  }

  .service-detail .sub-hero-grid {
    padding: 34px 0 45px;
    gap: 32px;
  }

  .service-detail h1 {
    font-size: clamp(37px,9vw,49px);
  }

  .service-detail .sub-lead {
    font-size: 16px;
  }

  .decision-scene {
    padding: 24px;
    border-left: 0;
    border-top: 1px solid var(--scene-line);
  }

  .scene-label {
    margin-bottom: 16px;
  }

  .scene-route {
    margin: 20px 0 26px;
  }

  .scene-route>span {
    font-size: 12px;
    padding: 12px 0;
  }

  .subpage .decision-scene h2 {
    font-size: 28px;
  }

  .scene-explanation {
    font-size: 15px;
    margin-top: 15px;
  }

  .scene-resolution {
    margin-top: 20px;
    padding-top: 16px;
  }

  .service-detail .sub-intro {
    padding-top: 60px;
    padding-bottom: 25px;
  }

  .service-outcomes {
    padding-block: 30px 65px;
  }

  .outcome-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .outcome-grid h3 {
    margin-top: 12px;
  }

  .service-detail .output-panel {
    padding-left: 20px;
  }
}

@media print {
  .decision-story,
  .decision-scene {
    color: var(--ink);
    background: none;
    --scene-line: #536970;
    --scene-accent: #995432;
  }

  .scene-label,
  .scene-explanation,
  .scene-resolution p,
  .story-explanation,
  .story-note {
    color: var(--ink);
  }

  .story-tabs {
    display: none;
  }
}

@media(min-width:701px) {
  .hero-scene .hero {
    padding-block: 55px;
    min-height: 730px;
  }
}

@container (max-width:360px) {
  .story-network {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-block: 24px 28px;
  }

  .story-sources {
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-template-rows: minmax(64px,1fr);
    gap: 24px;
  }

  .story-sources:after {
    top: 100%;
    bottom: auto;
    left: calc(25% - 6px);
    right: calc(25% - 6px);
    width: auto;
    height: 18px;
    border-top: 0;
    border-left: 1px solid var(--scene-accent);
    border-bottom: 1px solid var(--scene-accent);
  }

  .story-junction {
    justify-self: center;
  }

  .story-junction:before,
  .story-junction:after {
    left: 50%;
    right: auto;
    width: 1px;
    transform: translateX(-50%);
  }

  .story-junction:before {
    top: auto;
    bottom: 100%;
    height: 18px;
  }

  .story-junction:after {
    top: 100%;
    height: 36px;
  }

  .story-junction strong {
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    width: calc((100cqw - 48px)/2 - 12px);
    text-align: left;
  }

  .story-destination {
    justify-self: center;
    width: 100%;
    max-width: 220px;
  }

  .story-destination:before {
    left: 50%;
    right: auto;
    top: -1px;
    transform: translateX(-100%) rotate(135deg);
  }

  .scene-route {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .scene-route>span {
    min-height: 48px;
    padding: 12px;
  }

  .scene-route>span+span:before {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 100%;
    width: 1px;
    height: 24px;
    transform: translateX(-50%);
  }

  .scene-route>span+span:after {
    left: 50%;
    right: auto;
    top: -1px;
    transform: translateX(-100%) rotate(135deg);
  }

  .scene-route--comparison>span:last-child:after {
    left: 50%;
    top: calc(-1 * 24px - 1px);
    transform: translateX(-100%) rotate(-45deg);
  }

  .scene-branch {
    --branch-gap: 24px;
  }

  .scene-branch-root,
  .scene-branch-options>li {
    font-size: 12px;
    padding: 12px 6px;
    overflow-wrap: break-word;
  }
}

@media(max-width:700px) {
  .decision-story {
    padding-block: 20px;
  }

  .decision-story .story-tabs {
    margin-bottom: 16px;
  }

  .decision-story .story-network {
    margin-block: 16px 20px;
  }

  .decision-story .story-takeaway {
    margin-top: 14px;
    padding-top: 14px;
  }

  .decision-story .story-note {
    margin-top: 14px;
  }

  @container (max-width:360px) {
    .story-network {
      gap: 24px;
    }

    .story-sources {
      grid-template-rows: minmax(52px,1fr);
    }

    .story-sources span,
    .story-destination {
      min-height: 52px;
    }

    .story-sources:after,
    .story-junction:before {
      height: 12px;
    }

    .story-junction:after {
      height: 24px;
    }
  }
}
