/* Month chart, focus camera and interactive demo. */
input {
  font: inherit;
}

button[hidden],
[hidden] {
  display: none !important;
}

.story {
  position: relative;
}

.story-pin {
  position: sticky;
}

.story-content {
  max-width: 1160px;
  width: 90%;
  height: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  padding: 43px 0 17px;
}

.story-copy {
  text-align: center;
  position: relative;
  z-index: 5;
}

.story-description {
  font-size: 16px;
  line-height: 1.6;
  margin: 20px auto 0;
  max-width: 620px;
  min-height: 26px;
}

.story-art {
  flex: 1;
  min-height: 330px;
  max-height: 450px;
  position: relative;
  width: 100%;
  margin: auto 0;
}

.month-chart {
  position: absolute;
  inset: 55px 0 auto;
  transition: opacity .5s var(--ease),transform .8s var(--ease);
  transform-origin: center center;
}

.chart-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 52px;
}

.chart-top>div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 11px;
}

.metric-label {
  display: block;
  width: 100%;
  font-size: 11px;
  color: var(--muted);
}

#projection {
  font-size: 31px;
  letter-spacing: -1px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.gap {
  font-size: 12px;
  color: #a3560a;
}

.period {
  padding-top: 4px;
}

.period span {
  display: block;
  margin-top: 8px;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--muted);
}

.bar-scale {
  position: relative;
}

.revenue-bar {
  height: 53px;
  display: flex;
  overflow: hidden;
  border-radius: 2px;
  position: relative;
}

.bar-segment {
  height: 100%;
  flex: none;
  transition: width 1s var(--ease),opacity .7s var(--ease);
  transform-origin: left;
}

.bar-segment.shipped {
  background: var(--grey);
  width: 59.1895%;
}

.bar-segment.progress {
  background: var(--green);
  width: 19.4516%;
  border-left: 2px solid var(--paper);
}

.bar-segment.action {
  background: var(--orange);
  width: 6.7713%;
  border-left: 2px solid var(--paper);
}

.bar-segment.upside {
  background: var(--orange);
  width: 3.6838%;
}

.target-marker {
  position: absolute;
  z-index: 3;
  left: 86.8421%;
  height: 73px;
  top: -10px;
  border-left: 1px solid var(--ink);
}

.target-marker>span {
  position: absolute;
  white-space: nowrap;
}

.chart-labels {
  display: grid;
  grid-template-columns: 59.18% 19.45% 21.37%;
  margin-top: 18px;
}

.chart-labels>div>span {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.chart-labels strong {
  display: block;
  font-size: 21px;
  margin-top: 7px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.chart-labels small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

.swatch {
  width: 7px;
  height: 7px;
  display: inline-block;
}

.swatch.grey {
  background: var(--grey);
}

.swatch.green {
  background: var(--green);
}

.swatch.orange {
  background: var(--orange);
}

.focus-bracket {
  position: absolute;
  left: 78.64%;
  top: 188px;
  width: 10.46%;
  text-align: center;
}

.focus-bracket>span {
  display: block;
  height: 11px;
  border: 1px solid var(--orange);
  border-top: 0;
}

.focus-bracket p {
  font-size: 11px;
  width: 220px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  color: #a3560a;
  margin: 9px 0;
}

.focus-panel {
  position: absolute;
  inset: 27px 0 25px;
  background: none;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: opacity .3s var(--ease);
  border-radius: 4px;
  color: #281b08;
  flex-direction: column;
}

.focus-panel-top {
  z-index: 1;
}

.work-orders {
  position: absolute;
  inset: 5px 0 auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(35px);
  transition: opacity .5s var(--ease),transform .7s var(--ease);
}

.orders-heading {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 13px;
  padding: 0 20px;
}

.work-order {
  position: relative;
  display: grid;
  grid-template-columns: 35px 1fr 145px 140px;
  gap: 15px;
  align-items: center;
  min-height: 97px;
  border: 1px solid var(--line);
  background: #fff;
  margin: 8px 0;
  border-left: 3px solid var(--orange);
  border-radius: 4px;
  padding: 16px 20px;
  transition: background .4s,transform .6s var(--ease),opacity .5s;
  overflow: hidden;
}

.order-main h3 {
  font-size: 15px;
  letter-spacing: -.2px;
  margin: 0 0 5px;
}

.order-main p {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 10px;
}

.owner {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
}

.owner>span:last-child {
  color: var(--muted);
}

.avatar {
  border-radius: 50%;
  background: #efeee7;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  font-size: 9px;
}

.order-value {
  text-align: right;
}

.order-value strong {
  display: block;
  color: #ad5705;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.5px;
}

.order-value>span {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.clear-button {
  background: #fff3e4;
  color: #854405;
  border: 1px solid #f2dfc7;
  border-radius: 4px;
  padding: 12px 9px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  transition: background .2s;
}

.clear-button:hover {
  background: #ffe1b9;
}

.clear-button:disabled {
  background: #eaf4ee;
  color: var(--green);
  border-color: #dce9e0;
}

.work-order.is-shipped .order-value strong {
  color: var(--green);
}

.payoff-message {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  gap: 12px;
  color: var(--muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}

.text-button {
  border: 0;
  background: none;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  font-size: 11px;
  padding: 8px 0;
}

.story-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.step-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.step-nav button {
  border: 0;
  background: transparent;
  padding: 7px 0;
  display: flex;
  gap: 8px;
  font-size: 10px;
  align-items: center;
}

.step-nav button>span:first-child {
  font-size: 9px;
}

.step-nav button[aria-current] {
  color: var(--ink);
}

.scroll-hint {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 18px;
}

.mobile-next {
  display: none;
}

.story-pin[data-stage="1"] .month-chart {
  opacity: 1;
  transform: none;
}

.story-pin[data-stage="1"] .focus-panel {
  opacity: 1;
  transform: none;
  transition-delay: .65s;
}

.story-pin[data-stage="3"] .orders-heading {
  display: none;
}

.story-pin[data-stage="3"] .work-order {
  min-height: 65px;
  padding: 10px 17px;
  margin: 6px 0;
}

.story-pin[data-stage="3"] .order-main h3 {
  font-size: 13px;
}

.story-pin[data-stage="3"] .order-main p {
  margin: 0;
  font-size: 9px;
}

.story-pin[data-stage="3"] .owner {
  display: none;
}

.story-pin[data-stage="3"] .order-value strong {
  font-size: 17px;
}

.story-pin[data-stage="3"] .payoff-message {
  opacity: 1;
  pointer-events: auto;
}

.is-loaded .bar-segment {
  animation: bar-enter 1.1s var(--ease) both;
}

.is-loaded .bar-segment.progress {
  animation-delay: .12s;
}

.is-loaded .bar-segment.action {
  animation-delay: .24s;
}

.is-loaded .bar-segment.upside {
  animation-delay: .36s;
}

@keyframes bar-enter {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (min-width:761px) and (max-height:800px) {
  .story-description {
    margin-top: 12px;
    font-size: 14px;
  }

  .story-art {
    min-height: 350px;
  }

  .story-bottom {
    margin-top: 14px;
    padding-top: 10px;
  }
}

@media (max-width:1000px) {
  .story-content {
    width: 88%;
  }

  .work-order {
    grid-template-columns: 24px 1fr 100px 120px;
    gap: 9px;
    padding: 13px;
  }

  .order-main h3 {
    font-size: 13px;
  }

  .focus-bracket p {
    width: 170px;
    font-size: 10px;
  }

  .step-nav {
    gap: 15px;
  }

  .chart-labels {
    grid-template-columns: 52% 24% 24%;
  }

  .chart-labels strong {
    font-size: 18px;
  }

  .chart-labels strong small {
    display: block;
    margin-top: 4px;
  }
}

@media (max-width:760px) {
  .story {
    padding-bottom: 20px;
  }

  .story-pin {
    position: relative;
  }

  .story-content {
    width: 88%;
  }

  .story-description {
    font-size: 14px;
    margin-top: 18px;
    max-width: 310px;
    min-height: 46px;
  }

  .story-art {
    flex: none;
    height: 385px;
    min-height: 385px;
    margin-top: 0;
  }

  .month-chart {
    top: 35px;
  }

  .chart-top {
    margin-bottom: 45px;
  }

  .metric-label {
    font-size: 10px;
  }

  #projection {
    font-size: 27px;
  }

  .gap {
    font-size: 10px;
  }

  .period span {
    font-size: 9px;
  }

  .chart-top>div {
    gap: 5px;
    max-width: 210px;
  }

  .revenue-bar {
    height: 45px;
  }

  .target-marker {
    height: 61px;
    top: -8px;
  }

  .chart-labels {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }

  .chart-labels>div>span {
    font-size: 9px;
    gap: 5px;
  }

  .chart-labels strong {
    font-size: 17px;
  }

  .chart-labels strong small {
    font-size: 9px;
  }

  .focus-bracket {
    left: 78.64%;
    top: 139px;
    width: 10.46%;
  }

  .focus-bracket p {
    width: 145px;
    left: auto;
    right: 0;
    transform: translateX(-62%);
    font-size: 9px;
    margin-top: 11px;
  }

  .focus-bracket>span {
    height: 8px;
  }

  .chart-labels {
    margin-top: 70px;
  }

  .focus-panel {
    inset: 12px 0 10px;
  }

  .work-orders {
    inset: 2px 0 auto;
  }

  .orders-heading {
    font-size: 8px;
    padding: 0 2px;
  }

  .work-order {
    grid-template-columns: 20px 1fr 67px;
    gap: 6px;
    min-height: 106px;
    padding: 13px 10px;
    margin: 9px 0;
  }

  .order-main h3 {
    font-size: 12px;
    line-height: 1.4;
  }

  .order-main p {
    font-size: 8px;
    line-height: 1.5;
  }

  .owner {
    font-size: 9px;
  }

  .owner>span:last-child {
    display: none;
  }

  .order-value strong {
    font-size: 18px;
  }

  .order-value>span {
    font-size: 8px;
    line-height: 1.4;
  }

  .clear-button {
    grid-column: 2/-1;
    font-size: 10px;
    padding: 8px;
  }

  .story-pin[data-stage="3"] .work-order {
    min-height: 96px;
    padding: 10px 9px;
  }

  .story-pin[data-stage="3"] .order-main h3 {
    font-size: 11px;
  }

  .story-pin[data-stage="3"] .order-main p {
    font-size: 8px;
  }

  .story-pin[data-stage="3"] .order-value strong {
    font-size: 16px;
  }

  .payoff-message {
    font-size: 10px;
    line-height: 1.5;
    bottom: 0;
    align-items: flex-start;
  }

  .payoff-message>span {
    max-width: 240px;
  }

  .story-bottom {
    margin-top: 22px;
    padding-top: 18px;
    gap: 12px;
    align-items: center;
  }

  .step-nav button {
    padding: 12px 3px;
  }

  .step-nav button>span:first-child {
    font-size: 11px;
  }

  .step-name,
  .scroll-hint {
    display: none !important;
  }

  .mobile-next {
    display: block;
    border: 0;
    background: transparent;
    font-size: 11px;
    padding: 12px 0;
  }
}

.focus-bracket {
  display: none;
}

.shipment-flight {
  position: fixed;
  width: 180px;
  padding: 16px 10px;
  text-align: center;
  border-radius: 4px;
  z-index: 45;
  pointer-events: none;
  transition: transform .85s var(--ease),opacity .85s var(--ease);
  font-size: 12px;
}

@media (max-width:760px) {
  .clear-button {
    min-height: 44px;
  }

  .step-nav {
    gap: 4px;
  }

  .mobile-next {
    min-height: 44px;
  }

  .story-pin[data-stage="3"] .payoff-message {
    position: relative;
    inset: auto;
    margin-top: 18px;
  }

  .story-pin[data-stage="3"] .step-nav {
    gap: 0;
  }

  .story-pin[data-stage="3"] .step-nav button {
    min-width: 32px;
  }
}

.chart-viewport {
  position: absolute;
  inset: 0;
  clip-path: inset(0);
}

.bar-scale {
  transform-origin: 0 0;
  transform: translate3d(0,0,0) scale(1);
  transition: transform 1.2s var(--ease);
  will-change: transform;
}

.chart-top,
.chart-labels,
.target-marker {
  transition: opacity .25s var(--ease);
}

.story-pin[data-stage="1"] .bar-scale {
  transform: translate3d(var(--focus-x,0px),var(--focus-y,0px),0) scale(var(--focus-scale,1));
}

.story-pin[data-stage="1"] .chart-viewport {
  clip-path: inset(var(--focus-clip-top,27px) 0 var(--focus-clip-bottom,25px));
}

.story-pin[data-stage="1"] .chart-top,
.story-pin[data-stage="1"] .chart-labels,
.story-pin[data-stage="1"] .target-marker {
  opacity: 0;
}

.story-pin[data-stage="1"] .shipped,
.story-pin[data-stage="1"] .progress {
  opacity: .25;
}

@media (prefers-reduced-motion:reduce) {
  .story-pin {
    position: relative;
  }

  .mobile-next {
    display: block;
    border: 0;
    background: none;
    font-size: 12px;
  }

  .scroll-hint {
    display: none;
  }

  .story-art {
    min-height: 420px;
  }
}

.story-content {
  padding-top: 64px;
}

.story-copy {
  min-height: 140px;
}

.story-pin[data-stage="0"] .story-copy {
  min-height: 140px;
}

.story-description {
  color: var(--muted);
}

.period,
.order-main p,
.orders-heading,
.focus-panel-top,
.step-nav button > span:first-child {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
}

.period {
  font-family: 'Geist', Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.target-marker > span {
  top: -30px;
  right: 10px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
}

.revenue-bar,
.work-order,
.clear-button,
.focus-panel,
.shipment-flight {
  border-radius: 0;
}

.revenue-bar {
  background: #e9e9ee;
}

.work-order {
  border-color: #e4e4e7;
  border-left-color: var(--orange);
  box-shadow: none;
}

.work-order.is-shipped {
  border-left-color: var(--green);
  background: #f3faf7;
}

.order-main h3 {
  font-weight: 500;
}

.owner .avatar {
  background: #f0f0f3;
}

.step-nav button[aria-current] > span:first-child {
  color: var(--brand);
}

@media (min-width: 761px) and (max-height: 800px) {
  .story-content {
    padding-top: 22px;
  }

  .story-copy {
    min-height: 130px;
  }

  .story-pin[data-stage="0"] .story-copy {
    min-height: 130px;
  }
}

@media (max-width: 760px) {
  .story-content {
    padding-top: 48px;
  }

  .period {
    font-size: 16px;
  }

  .target-marker > span {
    font-size: 16px;
    right: 6px;
  }

  .story-copy {
    min-height: 164px;
  }

  .story-pin[data-stage="0"] .story-copy {
    min-height: 164px;
  }
}

.story {
  --payoff-overflow: 0px;
  height: calc(100svh - var(--header-height) + var(--story-demo-start, 800px) + 120px + var(--payoff-overflow));
  overflow-anchor: none;
}

.story-pin {
  height: calc(100svh - var(--header-height) + var(--payoff-overflow));
  min-height: calc(630px + var(--payoff-overflow));
  overflow: clip;
}

.chart-viewport {
  overflow: visible;
  transition: none;
}

.bar-scale,
.focus-panel,
.chart-top,
.chart-labels,
.target-marker,
.work-orders,
.payoff-message {
  transition: none;
}

.bar-segment.upside {
  box-shadow: none;
}

.revenue-bar.is-cleared .bar-segment.action {
  border-left-width: 0;
}

.shipment-flight {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 25px #00976730;
}

.story-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding-bottom: var(--payoff-overflow);
}

.story-pin:is([data-stage="0"],[data-stage="1"],[data-stage="3"]) {
  --hero-art-height: 280px;
  --intro-gap: 40px;
  --focus-surround: 32px;
  --intro-cover: calc(var(--intro-heading-height, 82px) + var(--intro-gap) + var(--focus-surround));
}

.story-pin:is([data-stage="0"],[data-stage="1"],[data-stage="3"]) .story-scene {
  justify-content: center;
  gap: var(--intro-gap);
}

.story-pin:is([data-stage="0"],[data-stage="1"],[data-stage="3"]) .story-copy {
  flex: none;
  min-height: 0;
  z-index: 1;
}

.story-pin:is([data-stage="0"],[data-stage="1"],[data-stage="3"]) .story-art {
  flex: none;
  height: var(--hero-art-height);
  min-height: var(--hero-art-height);
  max-height: var(--hero-art-height);
  margin: 0;
  z-index: 2;
}

.story-pin:is([data-stage="0"],[data-stage="1"],[data-stage="3"]) .chart-viewport {
  top: calc(0px - var(--intro-cover));
  bottom: calc(0px - var(--focus-surround));
}

.story-pin:is([data-stage="0"],[data-stage="1"],[data-stage="3"]) .month-chart {
  top: var(--intro-cover);
}

.story-pin:is([data-stage="0"],[data-stage="1"],[data-stage="3"]) .focus-panel {
  top: calc(0px - var(--intro-cover));
  bottom: calc(0px - var(--focus-surround));
}

.payoff-controls {
  position: absolute;
  top: calc(var(--hero-art-height) + 20px);
  left: 0;
  right: 0;
  pointer-events: none;
}

.story-pin .payoff-controls .work-orders {
  position: relative;
  inset: auto;
  margin: 0;
}

.story-pin .payoff-controls .payoff-message {
  position: relative;
  inset: auto;
  margin-top: 14px;
}

.story-pin[data-stage="3"] .work-orders {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.orders-instruction {
  display: none;
  margin: 12px auto 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.story-pin[data-stage="3"] .orders-instruction,
.story-pin.is-reversing-game .orders-instruction {
  display: block;
}

.focus-panel {
  padding: 28px 40px;
  z-index: 3;
}

.focus-panel-copy h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.focus-panel-copy p {
  margin: 14px 0 0;
  line-height: 1.4;
  color: #4d2c0c;
}

@media (max-width: 760px) {
  .story {
    height: auto;
  }

  .story-scene {
    flex: none;
  }

  .story-pin:is([data-stage="0"],[data-stage="1"],[data-stage="3"]) {
    height: auto;
    min-height: calc(100svh - var(--header-height) + var(--payoff-overflow));
    --intro-gap: 28px;
    --focus-surround: 36px;
    --hero-art-height: 300px;
  }

  .story-pin:is([data-stage="0"],[data-stage="1"],[data-stage="3"]) .story-content {
    min-height: calc(100svh - var(--header-height) + var(--payoff-overflow));
    padding-top: 24px;
  }

  .story-pin:is([data-stage="0"],[data-stage="1"],[data-stage="3"]) .story-scene {
    flex: 1;
    min-height: calc(540px + var(--payoff-overflow));
  }

  .orders-instruction {
    font-size: 13px;
  }

  .focus-panel {
    padding: 24px;
  }

  .focus-panel-copy p {
    line-height: 1.4;
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story {
    height: auto;
  }

  .story-pin {
    height: auto;
    min-height: calc(760px + var(--payoff-overflow));
  }

  .story-content {
    min-height: calc(760px + var(--payoff-overflow));
  }
}

.prototype-columns {
  display: grid;
  grid-template-columns: minmax(220px,1fr) 120px 155px 125px;
  gap: 16px;
}

.story-pin .payoff-controls .orders-heading {
  display: grid;
  padding: 12px 16px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.orders-heading > span:nth-child(n+2) {
  text-align: right;
}

.story-pin .work-order.prototype-order {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-top: 0;
  background: #fff;
}

.prototype-order .order-summary {
  padding: 14px 16px 10px;
  align-items: start;
}

.story-pin .prototype-order .order-main h3 {
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 5px;
}

.story-pin .prototype-order .order-main p {
  font-family: 'Geist',Arial,sans-serif;
  font-size: 10px;
  line-height: 1.6;
  margin: 0;
  color: var(--muted);
}

.order-part-number {
  font-size: .85em;
  font-weight: 400;
  color: var(--muted);
}

.prototype-order .order-summary strong {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.prototype-order .order-summary small,
.prototype-order .order-chance {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}

.order-repair,
.order-expected {
  text-align: right;
}

.prototype-order .cell-label {
  display: none;
}

.order-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px 12px;
}

.order-blocker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.needs-action-badge {
  padding: 4px 7px;
  background: var(--orange);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.order-next-step {
  font-size: 13px;
  line-height: 1.5;
}

.order-driver {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

.prototype-order .clear-button {
  flex: none;
  min-width: 156px;
  min-height: 36px;
  padding: 9px 12px;
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 2px 7px #6160ff24;
  transition: background 160ms ease,border-color 160ms ease,box-shadow 160ms ease;
}

.prototype-order .clear-button:hover:not(:disabled) {
  background: #4e4dd8;
  border-color: #4e4dd8;
  box-shadow: 0 3px 10px #6160ff38;
  transform: none;
}

.prototype-order .clear-button:active:not(:disabled) {
  background: #4342bb;
  border-color: #4342bb;
  transform: none;
}

.prototype-order .clear-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.prototype-order .clear-button:disabled {
  background: #eaf4ee;
  color: var(--green);
  border-color: #dce9e0;
}

.story-pin .prototype-order.is-shipped {
  border-left-color: var(--line);
  background: #f3faf7;
}

.prototype-order.is-shipped .order-action-row {
  position: relative;
  display: block;
  margin: 0 16px 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fafafa;
}

.prototype-order.is-shipped .needs-action-badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: 'IBM Plex Mono',monospace;
  font-size: 9px;
}

.prototype-order.is-shipped .order-driver {
  display: none;
}

.prototype-order.is-shipped .clear-button {
  display: none;
}

@media (min-width: 761px) and (max-width: 1000px) {
  .prototype-columns {
    grid-template-columns: minmax(180px,1fr) 100px 125px 105px;
    gap: 10px;
  }

  .order-driver {
    flex-basis: 100%;
  }
}

@media (max-width: 760px) {
  .story-pin .payoff-controls .orders-heading {
    display: none;
  }

  .story-pin .work-order.prototype-order {
    border-top: 1px solid var(--line);
    margin-bottom: 12px;
  }

  .prototype-columns {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px 12px;
  }

  .prototype-order .order-main {
    grid-column: 1 / -1;
  }

  .prototype-order .order-summary {
    padding: 16px;
  }

  .prototype-order .cell-label {
    display: block;
    margin: 0 0 4px;
    font-size: 8px;
    line-height: 1.5;
    letter-spacing: .04em;
    color: var(--muted);
    text-transform: uppercase;
  }

  .prototype-order .order-value {
    text-align: right;
  }

  .prototype-order .order-summary strong {
    font-size: 15px;
  }

  .order-action-row {
    display: block;
    padding: 0 16px 16px;
  }

  .order-blocker {
    gap: 7px;
  }

  .order-next-step {
    flex-basis: 100%;
  }

  .order-driver {
    flex-basis: 100%;
  }

  .prototype-order .clear-button {
    width: 100%;
    min-height: 44px;
    margin-top: 14px;
  }
}

.prototype-order .order-action-row,
.prototype-order.is-shipped .order-action-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) 156px;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 10px 16px 12px;
  border: 0;
  background: transparent;
  min-height: var(--action-height,72px);
}

.prototype-order.is-shipped .order-blocker {
  padding-right: 0;
}

.prototype-order .order-summary {
  min-height: var(--summary-height,80px);
}

.prototype-order .order-chance {
  min-height: 31px;
}

.order-history {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.history-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 156px;
  min-height: 36px;
  padding: 9px 12px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 7px #00976724;
  transition: background 160ms ease,border-color 160ms ease,box-shadow 160ms ease;
}

.history-trigger:hover {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 3px 10px #00976738;
}

.history-trigger:active {
  background: var(--green);
  border-color: var(--green);
}

.history-trigger:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.story-pin .payoff-controls .payoff-message {
  min-height: 54px;
  align-items: flex-start;
}

#replay[hidden] {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
}

#payoff-status {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
}

.history-dialog {
  position: fixed;
  width: min(560px,calc(100vw - 32px));
  max-height: calc(100svh - 48px);
  margin: auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 80px #18181b26;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.history-dialog::backdrop {
  background: #18181b38;
}

.history-dialog[open]::backdrop {
  animation: history-backdrop-in 450ms cubic-bezier(.22,1,.36,1) both;
}

@keyframes history-backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion:reduce) {
  .history-dialog[open]::backdrop {
    animation: none;
  }
}

.history-close {
  position: absolute;
  right: 12px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 25px;
  color: var(--muted);
}

.history-eyebrow {
  font-family: 'IBM Plex Mono',monospace;
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 0 40px 12px 0;
}

.history-dialog h2 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -.04em;
  margin: 0 20px 10px 0;
}

#history-result {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 20px;
  color: var(--muted);
}

.history-steps ul {
  list-style: none;
  padding: 18px 0 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.history-steps li {
  position: relative;
  padding-left: 24px;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
}

.history-steps li:last-child {
  margin-bottom: 0;
}

.history-steps li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
}

@media (max-width:760px) {
  .prototype-order .order-action-row,
  .prototype-order.is-shipped .order-action-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 16px 16px;
    min-height: var(--action-height,180px);
    align-content: start;
  }

  .prototype-order .order-summary {
    min-height: var(--summary-height,170px);
  }

  .prototype-order .clear-button {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }

  .order-history {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
    margin-top: 14px;
  }

  .history-trigger {
    width: 100%;
    min-height: 44px;
    text-align: center;
  }

  .story-pin .payoff-controls .payoff-message {
    min-height: 88px;
  }

  .history-dialog {
    padding: 26px 22px;
  }
}

.story-pin {
  top: var(--header-height);
}

@media (max-width:760px) {
  .story-pin {
    top: 0;
  }
}

html.month-end-landing {
  overflow-x: clip;
  scrollbar-gutter: stable;
}

.waitlist-dialog {
  border: 1px solid #ffffff20;
  border-radius: 0;
  padding: 0;
  width: min(500px,calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}

.waitlist-dialog::backdrop {
  backdrop-filter: blur(9px);
}

.waitlist-dialog[open] {
  animation: waitlist-enter .25s ease-out;
}

.waitlist-inner {
  position: relative;
  padding: 38px;
  max-height: calc(100dvh - 34px);
  overflow-x: hidden;
  overflow-y: auto;
  background: radial-gradient(ellipse at 100% 0%,#7771ff16,transparent 60%);
}

.waitlist-dialog[open] .waitlist-inner {
  animation: waitlist-content-enter .25s ease-out;
}

.waitlist-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #a1a1aa;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
}

.waitlist-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  margin-bottom: 36px;
}

.waitlist-brand img {
  width: 23px;
  height: 23px;
}

.waitlist-eyebrow {
  color: #a9a5ff;
  font-size: 10px;
  letter-spacing: .09em;
  font-weight: 500;
}

.waitlist-dialog h2 {
  font-size: 36px;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin: 13px 0;
}

.waitlist-dialog h2 span {
  color: #7771ff;
}

.waitlist-dialog p {
  color: #a1a1aa;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 27px;
}

.waitlist-dialog form {
  display: grid;
  gap: 19px;
}

.waitlist-dialog label {
  display: grid;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
}

.waitlist-dialog input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: 400 14px Geist,Arial,sans-serif;
  border: 1px solid #ffffff20;
  border-radius: 0;
  transition: border-color .18s,box-shadow .18s;
}

.waitlist-dialog input::placeholder {
  color: #67676f;
}

.waitlist-dialog input:focus {
  outline: none;
  border-color: #8983ff;
  box-shadow: 0 0 0 3px #7771ff18;
}

.waitlist-submit {
  width: 100%;
  justify-content: space-between;
  margin-top: 7px;
  border-radius: 0 !important;
  min-height: 49px;
}

.waitlist-check {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #7771ff18;
  color: #a9a5ff;
  border: 1px solid #7771ff40;
  border-radius: 0;
  margin-bottom: 23px;
}

@keyframes waitlist-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes waitlist-content-enter {
  from {
    transform: translateY(10px) scale(.985);
  }

  to {
    transform: none;
  }
}

@media (max-width:600px) {
  .waitlist-inner {
    padding: 30px 24px;
  }

  .waitlist-dialog h2 {
    font-size: 32px;
  }

  .waitlist-brand {
    margin-bottom: 29px;
  }

  .waitlist-dialog input {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .waitlist-dialog[open],
  .waitlist-dialog[open] .waitlist-inner {
    animation: none;
  }
}

.waitlist-dialog .waitlist-error {
  margin: 0;
  font-size: 12px;
}

.waitlist-submit:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
}

.waitlist-dialog {
  margin: auto;
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
  color-scheme: light;
  box-shadow: 0 35px 120px #18181b30;
}

.waitlist-dialog::backdrop {
  background: #d7d7e075;
}

.waitlist-dialog label {
  color: var(--ink);
}

.waitlist-dialog p,
.waitlist-close {
  color: var(--muted);
}

.waitlist-brand img {
  filter: none;
}

.waitlist-dialog input {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.waitlist-close:hover {
  color: var(--ink);
  background: #18181b08;
  border-color: var(--line);
}

.waitlist-eyebrow,
.waitlist-check,
.waitlist-dialog h2 span {
  color: var(--brand);
}

.waitlist-dialog h2 {
  font-weight: 500;
}

.waitlist-submit {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #202024;
  color: #fafafa;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #202024;
  cursor: pointer;
}

.waitlist-submit:hover {
  background: #343439;
}

.waitlist-dialog .waitlist-error {
  color: #b42318;
}

.waitlist-check {
  font-size: 25px;
}

.target-marker.is-reached {
  border-left-color: var(--green);
}

.target-marker > .target-reached {
  position: absolute;
  top: -57px;
  right: 10px;
  color: var(--green);
  font-family: 'Geist',Arial,sans-serif;
  font-size: 12px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.target-fleck {
  position: absolute;
  z-index: 40;
  pointer-events: none;
  width: 5px;
  height: 4px;
  border-radius: 1px;
  will-change: transform,opacity;
}

@media (max-width:760px) {
  .target-marker > .target-reached {
    top: -51px;
    right: 3px;
    font-size: 10px;
    line-height: 18px;
  }
}

.target-confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: clip;
  pointer-events: none;
}

@media (min-width:761px) {
  .story-pin[data-stage="3"] {
    height: calc(100svh - var(--header-height));
    min-height: 0;
    --hero-art-height: clamp(150px,19svh,230px);
    --intro-gap: clamp(12px,2svh,24px);
  }

  .story-pin[data-stage="3"] .story-content {
    padding-top: 32px;
    padding-bottom: 12px;
  }

  .story-pin[data-stage="3"] .story-scene {
    justify-content: safe center;
  }

  .story-pin[data-stage="3"] h1 {
    font-size: clamp(44px,5svh,64px);
  }

  .story-pin[data-stage="3"] .story-bottom {
    padding-top: 10px;
  }
}

@media (min-width:761px) and (max-height:950px) {
  .story-pin[data-stage="3"] .story-content {
    padding-top: 28px;
    padding-bottom: 8px;
  }

  .story-pin[data-stage="3"] .target-marker {
    height: 58px;
  }

  .story-pin[data-stage="3"] .chart-labels strong {
    margin-top: 4px;
  }

  .story-pin[data-stage="3"] .orders-heading {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .story-pin[data-stage="3"] .story-bottom {
    padding-top: 6px;
  }

  .story-pin[data-stage="3"] .prototype-order .order-chance {
    white-space: nowrap;
  }

  .story-pin[data-stage="3"] .prototype-order .order-action-row {
    padding: 2px 16px 6px;
  }
}

@media (min-width:761px) and (max-height:740px) {
  .story-pin[data-stage="3"] .story-bottom {
    display: none;
  }

  .story-pin[data-stage="3"] .story-content {
    padding-top: 28px;
  }
}

.story-pin.is-reversing-game > .story-content .story-copy {
  visibility: hidden;
}

.story-pin.is-reversing-game .chart-viewport {
  z-index: 2;
}

.reverse-game-layer {
  pointer-events: none !important;
  overflow: clip;
}

.hero-intro {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  pointer-events: none;
}

body.is-introducing .story-content,
body.is-introducing .story-art,
body.is-introducing .hero-prefix {
  opacity: 1;
}

body.is-introducing .chart-top > div,
body.is-introducing .period,
body.is-introducing .revenue-bar,
body.is-introducing .target-marker,
body.is-introducing .chart-labels > div,
body.is-introducing .story-bottom {
  opacity: 0;
}

body.is-introducing.is-revealing-month .chart-top > div {
  animation: hero-detail-reveal 1200ms 0ms cubic-bezier(.22,1,.36,1) both;
}

body.is-introducing.is-revealing-month .period {
  animation: hero-detail-reveal 1200ms 200ms cubic-bezier(.22,1,.36,1) both;
}

body.is-introducing.is-revealing-month .revenue-bar {
  animation: hero-word-reveal 1000ms 350ms ease-out both;
}

body.is-introducing.is-revealing-month .bar-segment {
  animation-duration: 1500ms;
  animation-delay: 400ms;
}

body.is-introducing.is-revealing-month .bar-segment.progress {
  animation-delay: 580ms;
}

body.is-introducing.is-revealing-month .bar-segment.action {
  animation-delay: 760ms;
}

body.is-introducing.is-revealing-month .bar-segment.upside {
  animation-delay: 940ms;
}

body.is-introducing.is-revealing-month .target-marker {
  animation: hero-word-reveal 1100ms 800ms ease-out both;
}

body.is-introducing.is-revealing-month .chart-labels > div {
  animation: hero-detail-reveal 1200ms 900ms cubic-bezier(.22,1,.36,1) both;
}

body.is-introducing.is-revealing-month .chart-labels > div:nth-child(2) {
  animation-delay: 1080ms;
}

body.is-introducing.is-revealing-month .chart-labels > div:nth-child(3) {
  animation-delay: 1260ms;
}

body.is-introducing.is-revealing-month .story-bottom {
  animation: hero-detail-reveal 1100ms 1500ms cubic-bezier(.22,1,.36,1) both;
}

@keyframes hero-word-reveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes hero-detail-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion:reduce) {
  body.is-introducing.is-revealing-month .hero-month-text,
  body.is-introducing.is-revealing-month .chart-top > div,
  body.is-introducing.is-revealing-month .period,
  body.is-introducing.is-revealing-month .revenue-bar,
  body.is-introducing.is-revealing-month .target-marker,
  body.is-introducing.is-revealing-month .chart-labels > div,
  body.is-introducing.is-revealing-month .story-bottom {
    opacity: 1;
    animation: none;
  }
}

.focus-panel {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  grid-template-rows: auto auto 1fr;
  justify-content: stretch;
  align-content: start;
  gap: 24px;
}

.focus-panel-top {
  display: flex;
  justify-content: flex-end;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: .08em;
}

.focus-panel-copy h2 {
  font-size: clamp(44px,5.6vw,80px);
}

.focus-panel-copy p {
  font-size: clamp(22px,2.2vw,30px);
  max-width: 960px;
}

.focus-blockers {
  position: absolute;
  bottom: 44px;
  left: 40px;
  right: 40px;
  margin: 0;
  border-top: 1px solid rgba(77,44,12,.22);
  padding-top: 20px;
}

.focus-blockers ul {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.focus-blockers li {
  margin: 0;
  padding: 0;
  font-size: clamp(20px,1.8vw,27px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.025em;
  color: #4d2c0c;
}

@media (max-width:760px) {
  .focus-panel {
    gap: 20px;
  }

  .focus-panel-top {
    font-size: 14px;
    line-height: 20px;
  }

  .focus-panel-copy h2 {
    font-size: 44px;
  }

  .focus-panel-copy p {
    font-size: 22px;
  }

  .focus-blockers {
    left: 24px;
    right: 24px;
    bottom: 36px;
    padding-top: 16px;
  }

  .focus-blockers ul {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .focus-blockers li {
    font-size: 18px;
    line-height: 1.35;
  }
}

@media (min-width:761px) {
  .story-pin[data-stage="3"] .story-scene {
    padding-bottom: 0;
  }

  .story-pin[data-stage="3"] .story-art {
    height: auto;
    min-height: 0;
    max-height: none;
    padding-top: calc(var(--game-chart-height,240px) + 20px);
  }

  .story-pin[data-stage="3"] .chart-viewport {
    height: calc(var(--intro-cover) + var(--game-chart-height,240px) + var(--focus-surround));
    bottom: auto;
  }

  .story-pin[data-stage="3"] .payoff-controls {
    position: relative;
    top: auto;
  }

  .story-pin[data-stage="3"] .story-bottom {
    flex-shrink: 0;
    margin-top: 20px;
  }
}

@media (max-width:760px) and (prefers-reduced-motion:no-preference) {
  .story {
    height: calc(var(--mobile-story-height,100svh - var(--header-height)) + var(--story-demo-start,550px) + 120px);
    padding-bottom: 0;
  }

  .story-pin:is([data-stage="0"],[data-stage="1"],[data-stage="3"]) {
    position: sticky;
    top: var(--header-height);
    height: calc(100svh - var(--header-height));
    min-height: 0;
    overflow: clip;
    --hero-art-height: 260px;
    --intro-gap: 24px;
    --focus-surround: 20px;
  }

  .story-pin:is([data-stage="0"],[data-stage="1"],[data-stage="3"]) .story-content {
    height: 100%;
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 12px;
  }

  .story-pin:is([data-stage="0"],[data-stage="1"],[data-stage="3"]) .story-scene {
    min-height: 0;
  }

  .story-pin .story-bottom {
    flex-shrink: 0;
    margin-top: 12px;
    padding-top: 8px;
  }

  .story-pin[data-stage="3"] {
    height: auto;
    min-height: calc(100svh - var(--header-height));
  }

  .story-pin[data-stage="3"] .story-scene {
    padding-bottom: 0;
  }

  .story-pin[data-stage="3"] .story-art {
    height: auto;
    min-height: 0;
    max-height: none;
    padding-top: calc(var(--game-chart-height,280px) + 20px);
  }

  .story-pin[data-stage="3"] .chart-viewport {
    height: calc(var(--intro-cover) + var(--game-chart-height,280px) + var(--focus-surround));
    bottom: auto;
  }

  .story-pin[data-stage="3"] .payoff-controls {
    position: relative;
    top: auto;
  }

  .story-pin[data-stage="3"] h1 {
    font-size: 38px;
  }

  .focus-panel-copy h2 {
    font-size: clamp(32px,9vw,44px);
  }

  .focus-panel-copy p {
    font-size: 20px;
  }
}

@media (min-width:761px) and (max-height:1000px) {
  .story-pin[data-stage="3"] {
    --hero-art-height: 150px;
    --intro-gap: 8px;
  }

  .story-pin[data-stage="3"] h1 {
    font-size: clamp(30px,4.4svh,38px);
  }

  .story-pin[data-stage="3"] #projection {
    font-size: 24px;
  }

  .story-pin[data-stage="3"] .chart-top {
    margin-bottom: 24px;
  }

  .story-pin[data-stage="3"] .chart-labels strong {
    font-size: 16px;
  }

  .story-pin[data-stage="3"] .orders-instruction {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .story-pin[data-stage="3"] .prototype-order .order-action-row {
    padding-top: 2px;
    padding-bottom: 5px;
  }

  .story-pin[data-stage="3"] .prototype-order .clear-button {
    min-height: 30px;
    padding: 6px 10px;
  }

  .story-pin[data-stage="3"] .payoff-controls #payoff-status {
    font-size: 13px;
    line-height: 1.45;
  }

  .story-pin[data-stage="3"] .payoff-controls .payoff-message {
    min-height: 30px;
    margin-top: 6px;
  }

  .story-pin[data-stage="3"] .revenue-bar {
    height: 32px;
  }

  .story-pin[data-stage="3"] .chart-labels {
    margin-top: 8px;
  }

  .story-pin[data-stage="3"] .prototype-order .order-summary {
    padding: 5px 16px 3px;
  }

  .story-pin[data-stage="3"] .prototype-order .order-chance {
    font-size: 10px;
    line-height: 1.3;
    min-height: 13px;
  }

  .story-pin[data-stage="3"] .payoff-controls .orders-heading {
    padding: 7px 16px;
    font-size: 8px;
    line-height: 1.5;
  }

  .story-pin[data-stage="3"] .history-trigger {
    min-height: 30px;
    padding: 6px 10px;
  }
}

.prototype-order .order-action-row::after {
  content: '→';
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: start;
  position: relative;
  left: -28px;
  width: 18px;
  height: 22px;
  color: var(--brand);
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
  transition: color 200ms ease;
}

.story-pin.is-inviting-actions .prototype-order .order-action-row::after {
  opacity: 1;
  animation: action-invite-arrow 1000ms ease-in-out infinite both;
}

.prototype-order.is-shipped .order-action-row::after {
  color: var(--green);
}

@keyframes action-invite-arrow {
  0%,
  100% {
    transform: translateX(-8px);
    opacity: .65;
  }

  50% {
    transform: translateX(4px);
    opacity: 1;
  }
}

@media (min-width:761px) {
  .prototype-order .clear-button {
    grid-column: 2;
    grid-row: 1;
  }

  .prototype-order:not(.is-shipped) .order-blocker {
    padding-right: 24px;
  }
}

@media (max-width:760px) {
  .prototype-order .order-action-row::after {
    grid-column: 1;
    grid-row: 2;
    left: -26px;
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .story-pin.is-inviting-actions .prototype-order .order-action-row::after {
    animation: none;
    opacity: 0;
  }
}

@media (min-width:761px) and (min-height:900px) and (max-height:1000px) {
  .story-pin[data-stage="3"] {
    --intro-gap: 20px;
  }

  .story-pin[data-stage="3"] h1 {
    font-size: clamp(42px,4.8svh,48px);
  }

  .story-pin[data-stage="3"] #projection {
    font-size: 28px;
  }

  .story-pin[data-stage="3"] .orders-instruction {
    font-size: 14px;
    margin: 12px auto 0;
  }

  .story-pin[data-stage="3"] .chart-top {
    margin-bottom: 34px;
  }

  .story-pin[data-stage="3"] .revenue-bar {
    height: 42px;
  }

  .story-pin[data-stage="3"] .target-marker {
    height: 62px;
  }

  .story-pin[data-stage="3"] .chart-labels {
    margin-top: 14px;
  }

  .story-pin[data-stage="3"] .chart-labels strong {
    font-size: 18px;
    margin-top: 6px;
  }

  .story-pin[data-stage="3"] .prototype-order .order-summary {
    padding: 10px 16px 8px;
  }

  .story-pin[data-stage="3"] .prototype-order .order-chance {
    font-size: 11px;
    line-height: 1.4;
    min-height: 16px;
  }

  .story-pin[data-stage="3"] .prototype-order .order-action-row {
    padding: 8px 16px 10px;
  }

  .story-pin[data-stage="3"] .prototype-order .clear-button,
  .story-pin[data-stage="3"] .history-trigger {
    min-height: 36px;
    padding: 8px 12px;
  }

  .story-pin[data-stage="3"] .payoff-controls .orders-heading {
    padding: 10px 16px;
    font-size: 9px;
  }
}

@media (min-width:761px) and (min-height:820px) and (max-height:899px) {
  .story-pin[data-stage="3"] .story-content {
    padding-top: 20px;
  }

  .story-pin[data-stage="3"] .story-bottom {
    margin-top: 12px;
  }

  .story-pin[data-stage="3"] {
    --intro-gap: 14px;
  }

  .story-pin[data-stage="3"] h1 {
    font-size: 42px;
  }

  .story-pin[data-stage="3"] #projection {
    font-size: 26px;
  }

  .story-pin[data-stage="3"] .orders-instruction {
    font-size: 13px;
    margin: 10px auto 0;
  }

  .story-pin[data-stage="3"] .chart-top {
    margin-bottom: 28px;
  }

  .story-pin[data-stage="3"] .revenue-bar {
    height: 38px;
  }

  .story-pin[data-stage="3"] .chart-labels {
    margin-top: 10px;
  }

  .story-pin[data-stage="3"] .chart-labels strong {
    font-size: 18px;
  }

  .story-pin[data-stage="3"] .prototype-order .order-summary {
    padding: 7px 16px 4px;
  }

  .story-pin[data-stage="3"] .prototype-order .order-chance {
    font-size: 11px;
    line-height: 1.4;
    min-height: 16px;
  }

  .story-pin[data-stage="3"] .prototype-order .order-action-row {
    padding: 4px 16px 7px;
  }

  .story-pin[data-stage="3"] .prototype-order .clear-button,
  .story-pin[data-stage="3"] .history-trigger {
    min-height: 34px;
    padding: 7px 12px;
  }
}

#story-title {
  animation: hero-detail-reveal 1000ms cubic-bezier(.22,1,.36,1) both;
}

@media (prefers-reduced-motion:reduce) {
  #story-title {
    animation: none;
  }
}

@media (max-width:760px) {
  #visibility .customer-repair-summary dl > div:last-child {
    display: none;
  }

  #visibility .customer-repair-status {
    height: 98px;
    grid-template-rows: 20px 40px 36px;
  }

  #visibility .customer-repair-status > span {
    padding: 10px 12px 0;
    line-height: 10px;
  }

  #visibility .customer-repair-status > strong {
    padding: 3px 12px 0;
    font-size: 15px;
    line-height: 18px;
    min-height: 0;
  }

  #visibility .customer-repair-status > small {
    padding: 4px 12px 8px;
    font-size: 8.5px;
    line-height: 11px;
    min-height: 0;
  }

  #visibility .customer-repair-timeline {
    height: 320px;
    min-height: 320px;
    padding: 10px 16px;
    grid-template-rows: repeat(6,minmax(0,1fr));
  }

  #visibility .customer-repair-stage {
    padding-left: 38px;
    min-height: 0;
  }

  #visibility .customer-repair-stage.is-animated::after {
    left: 30px;
    right: -2px;
    top: -3px;
    bottom: 0;
  }

  #visibility .customer-repair-stage > div {
    padding-top: 2px;
  }

  #visibility .customer-repair-stage.active.is-revealed > div {
    transform: none;
  }

  #visibility .customer-repair-stage-heading {
    min-height: 20px;
    gap: 6px;
  }

  #visibility .customer-repair-stage > div > p {
    font-size: 9.5px;
    line-height: 12px;
    margin: 2px 0 0;
  }
}

@media (max-width:359px) {
  #visibility .customer-repair-status {
    height: 116px;
    grid-template-rows: 20px 58px 36px;
  }
}

@media (max-width:760px) and (prefers-reduced-motion:no-preference) {
  #story .story-pin[data-stage="3"] {
    height: calc(100svh - var(--header-height));
    min-height: 0;
    --intro-gap: 12px;
  }

  #story .story-pin[data-stage="3"] .story-content {
    height: 100%;
    padding: 14px 0 8px;
  }

  #story .story-pin[data-stage="3"] .story-scene {
    justify-content: safe center;
    gap: 12px;
  }

  #story .story-pin[data-stage="3"] h1 {
    font-size: clamp(28px,7vw,34px);
    line-height: 1.1;
  }

  #story .story-pin[data-stage="3"] .orders-instruction {
    font-size: 11px;
    line-height: 1.45;
    margin: 8px 0 0;
  }

  #story .story-pin[data-stage="3"] .story-art {
    padding-top: calc(var(--game-chart-height,155px) + 12px);
  }

  #story .story-pin[data-stage="3"] .chart-top {
    margin-bottom: 28px;
  }

  #story .story-pin[data-stage="3"] #projection {
    font-size: 25px;
    line-height: 1.1;
  }

  #story .story-pin[data-stage="3"] .gap {
    display: none;
  }

  #story .story-pin[data-stage="3"] .period {
    font-size: 13px;
  }

  #story .story-pin[data-stage="3"] .revenue-bar {
    height: 30px;
  }

  #story .story-pin[data-stage="3"] .target-marker {
    height: 46px;
  }

  #story .story-pin[data-stage="3"] .target-marker > span {
    font-size: 10px;
  }

  #story .story-pin[data-stage="3"] .chart-labels {
    margin-top: 10px;
    gap: 8px;
  }

  #story .story-pin[data-stage="3"] .chart-labels > div > span {
    height: 24px;
    line-height: 11px;
  }

  #story .story-pin[data-stage="3"] .chart-labels strong {
    font-size: 15px;
    margin-top: 4px;
  }

  #story .story-pin[data-stage="3"] .chart-labels small {
    display: none;
  }

  #story .story-pin[data-stage="3"] .prototype-order {
    display: grid;
    grid-template-columns: minmax(0,1fr) 120px;
    align-items: center;
    gap: 26px;
    padding: 10px 12px;
    margin: 0 0 8px;
  }

  #story .story-pin[data-stage="3"] .order-summary {
    display: block;
    min-height: 0;
    padding: 0;
  }

  #story .story-pin[data-stage="3"] .order-repair,
  #story .story-pin[data-stage="3"] .order-expected,
  #story .story-pin[data-stage="3"] .order-value,
  #story .story-pin[data-stage="3"] .order-part-number,
  #story .story-pin[data-stage="3"] .order-blocker {
    display: none;
  }

  #story .story-pin[data-stage="3"] .order-main h3 {
    font-size: 11px;
    margin: 0 0 4px;
  }

  #story .story-pin[data-stage="3"] .order-main p {
    font-size: 9px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #story .story-pin[data-stage="3"] .order-action-row {
    position: relative;
    display: block;
    min-height: 0;
    padding: 0;
    margin: 0;
  }

  #story .story-pin[data-stage="3"] .clear-button,
  #story .story-pin[data-stage="3"] .history-trigger {
    width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding: 8px 6px;
    margin: 0;
    font-size: 10px;
  }

  #story .story-pin[data-stage="3"] .is-shipped .clear-button {
    display: none;
  }

  #story .story-pin[data-stage="3"] .order-history {
    margin: 0;
  }

  #story .story-pin[data-stage="3"] .order-action-row::after {
    position: absolute;
    left: -30px;
    top: 50%;
    margin-top: -11px;
  }

  #story .story-pin[data-stage="3"] .payoff-message {
    height: 32px;
    min-height: 32px;
    margin-top: 0;
    justify-content: flex-end;
  }

  #story .story-pin[data-stage="3"] .story-bottom {
    margin-top: 6px;
    padding-top: 4px;
  }
}

.history-trigger,
.history-trigger:hover,
.history-trigger:active {
  color: var(--ink);
}

.needs-action-badge {
  color: var(--ink);
}

.story-pin .prototype-order.is-shipped .order-value strong,
.target-marker > .target-reached {
  color: #006b49;
}

.step-nav button {
  color: var(--muted);
}

.step-nav button[aria-current] > span:first-child,
.waitlist-eyebrow {
  color: #514fda;
}

@media (max-width:760px) {
  .step-nav button {
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
  }

  #story .story-pin[data-stage="3"] #payoff-status {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

#story > .story-pin.is-positioned > .story-content {
  position: relative;
  height: var(--scene-content-height);
}

#story > .story-pin.is-positioned > .story-content > .story-scene,
#story > .story-pin.is-positioned > .story-content > .story-bottom,
#story > .story-pin.is-positioned > .story-content > .story-scene > .story-copy,
#story > .story-pin.is-positioned > .story-content > .story-scene > .story-art,
#story > .story-pin.is-positioned > .story-content > .story-scene > .story-art > .chart-viewport,
#story > .story-pin.is-positioned > .story-content > .story-scene > .story-art > .focus-panel,
#story > .story-pin.is-positioned > .story-content > .story-scene > .story-art > .payoff-controls,
#story > .story-pin.is-positioned .chart-viewport > .month-chart,
#story > .story-pin.is-positioned .month-chart > .bar-scale,
#story > .story-pin.is-positioned .month-chart > .chart-labels {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: var(--scene-height);
  min-height: 0;
  max-height: none;
  margin: 0;
  translate: var(--scene-x) var(--scene-y);
}
