.first-fix {
  grid-column: 1 / -1;
  width: min(100%, 1230px);
  min-width: 0;
  margin: 26px auto 8px;
  overflow: hidden;
  border: 2px solid #243d33;
  border-radius: 16px;
  color: #243d33;
  background: #fff9ea;
  box-shadow: 8px 9px 0 #d6c6a4;
  scroll-margin-top: 18px;
}
.first-fix * { box-sizing: border-box; }
.first-fix [hidden] { display: none !important; }
.first-fix :is(h2,h3,p,span,strong) { overflow-wrap: anywhere; }
.first-fix-spine {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(17px, 3vw, 30px);
  color: #fff9ea;
  background: #243d33;
  font: 850 .67rem/1.4 ui-monospace, Menlo, monospace;
  letter-spacing: .06em;
}
.first-fix-spine time { white-space: nowrap; }
.first-fix-cover { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(230px, .7fr); }
.first-fix-copy { min-width: 0; padding: clamp(22px, 3.6vw, 44px); }
.first-fix-kicker { margin: 0 0 9px; color: #956145; font: 850 .69rem/1.3 ui-monospace, Menlo, monospace; letter-spacing: .08em; }
.first-fix h2 { max-width: 14ch; margin: 0; font-size: clamp(2.2rem, 5vw, 4.8rem); letter-spacing: -.065em; line-height: .98; }
.first-fix-copy > p:not(.first-fix-kicker) { max-width: 57ch; margin: 14px 0 0; font-size: .94rem; line-height: 1.55; }
.first-fix-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.first-fix button,
.first-fix a,
.first-fix-result-paths :is(a,button) {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 10px 15px;
  border: 2px solid #315943;
  border-radius: 5px;
  color: #fffdf3;
  background: #315943;
  font: 850 .81rem/1.3 Inter, ui-sans-serif, sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.first-fix #first-fix-try-call { border-color: #875231; background: #875231; }
.first-fix button:hover,
.first-fix a:hover,
.first-fix-result-paths :is(a,button):hover { filter: brightness(1.16); }
.first-fix :is(button,a):focus-visible,
.first-fix-result-paths :is(a,button):focus-visible { outline: 3px solid #087d9a; outline-offset: 3px; }
.first-fix-cover-art { position: relative; min-height: 280px; overflow: hidden; border-left: 2px solid #243d33; background: repeating-linear-gradient(-37deg, #e9dfc9 0 18px, #d8dac4 18px 20px); }
.first-fix-cover-art::before { position: absolute; inset: 20px 20px auto auto; width: 68px; height: 68px; border: 2px dashed #985d40; border-radius: 50%; content: "CHECKED"; display: grid; place-items: center; color: #985d40; font: 850 .57rem/1 ui-monospace, monospace; transform: rotate(13deg); }
.first-fix-paper { position: absolute; bottom: 42px; display: grid; width: 112px; height: 145px; place-items: center; padding: 15px; border: 2px solid #3d5a4c; background: #fffdf4; box-shadow: 5px 6px 0 #9aa995; font: 900 .78rem/1.2 ui-monospace, monospace; text-align: center; }
.first-fix-paper-before { left: 15%; transform: rotate(-8deg); }
.first-fix-paper-after { right: 14%; color: #265441; background: #d7e9d3; transform: rotate(8deg); transition: transform 220ms ease; }
.first-fix[data-question="result"] .first-fix-paper-before { transform: translateY(-24px) rotate(-3deg); }
.first-fix[data-question="return"] .first-fix-paper-after { transform: translateY(-28px) rotate(3deg); }
.first-fix-pocket { position: absolute; right: 0; bottom: 0; left: 0; height: 67px; padding: 25px 16px 10px; border-top: 2px solid #243d33; color: #fff9e8; background: #985d40; font: 850 .63rem/1.2 ui-monospace, monospace; letter-spacing: .08em; text-align: right; }
.first-fix-clip { position: absolute; z-index: 1; top: 21px; left: 35%; width: 28px; height: 46px; border: 6px solid #c8954b; border-bottom: 0; border-radius: 15px 15px 0 0; transform: rotate(-14deg); }
.first-fix-after { padding: clamp(17px, 3vw, 29px); border-top: 2px solid #243d33; background: #eee9d8; opacity: 1; }

/* The proof capture must see the consequence as soon as a person clicks. */
.studio-stage[data-desk="made"] { animation: none; }
#first-visit-consequence:not([hidden]) { opacity: 1; animation: none; }
.first-fix-result-paths { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid #91b39a; }
.first-fix-result-paths :is(a,button) { min-width: 0; min-height: 42px; padding: 8px 10px; font-size: .72rem; overflow-wrap: anywhere; }
.first-fix-result-paths button { border-color: #304967; background: #304967; }

@media (max-width: 700px) {
  .first-fix { margin: 20px 0 7px; box-shadow: 5px 6px 0 #d6c6a4; }
  .first-fix-spine { flex-wrap: wrap; }
  .first-fix-cover { grid-template-columns: minmax(0, 1fr); }
  .first-fix-copy { padding: 19px 16px 21px; }
  .first-fix h2 { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .first-fix-copy > p:not(.first-fix-kicker) { font-size: .85rem; }
  .first-fix-actions { display: grid; }
  .first-fix-cover-art { min-height: 150px; border-top: 2px solid #243d33; border-left: 0; }
  .first-fix-paper { bottom: 27px; width: 78px; height: 93px; font-size: .56rem; }
  .first-fix-pocket { height: 42px; padding: 14px 12px 6px; }
  .first-fix-result-paths { display: grid; }
}
@media (prefers-reduced-motion: reduce) { .first-fix *, .first-fix *::before, .first-fix *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* The investigation lives at the entrance. Both questions stay in sight above the finding. */
.first-fix-copy { padding-bottom: clamp(18px, 2.6vw, 32px); }
.first-fix-questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 23px; }
.first-fix .first-fix-question {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 116px;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  align-items: start;
  padding: 15px 15px 13px;
  border: 2px solid #315943;
  border-radius: 7px;
  color: #243d33;
  background: #fffdf4;
  box-shadow: 3px 4px 0 #c9cab4;
  /* The card must match its finding in the first painted frame. */
  transition: none;
}
.first-fix .first-fix-question:hover { filter: none; transform: translateY(-2px); }
.first-fix .first-fix-question[aria-pressed="true"] { background: #d9ead7; box-shadow: 3px 4px 0 #8cae92; }
.first-fix .first-fix-question[aria-pressed="true"] .first-fix-question-arrow { transform: rotate(45deg); }
.first-fix-question-number { grid-column: 1 / -1; font: 850 .62rem/1.3 ui-monospace, Menlo, monospace; letter-spacing: .08em; }
.first-fix-question strong { align-self: end; max-width: 19ch; font-size: clamp(.95rem, 1.35vw, 1.15rem); line-height: 1.2; letter-spacing: -.025em; }
.first-fix-question-arrow { align-self: end; font-size: 1.15rem; transition: none; }
.first-fix .first-fix-after { margin-top: 10px; padding: 0; border: 0; background: transparent; }
.fix-investigation-panel { overflow: hidden; border: 2px solid #243d33; border-radius: 7px; background: #fcf8ec; box-shadow: 3px 4px 0 #c9cab4; }
.fix-investigation-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; border-bottom: 2px solid #243d33; background: #e6e4ce; font: 850 .63rem/1.3 ui-monospace, Menlo, monospace; letter-spacing: .055em; }
.fix-investigation-stamp { display: inline-block; padding: 4px 6px; border: 1.5px solid #315943; color: #315943; transform: rotate(-4deg); }
.first-fix[data-question="return"] .fix-investigation-stamp { border-color: #875231; color: #875231; transform: rotate(4deg); }
.fix-investigation-panel h3 { margin: 0; padding: 17px 18px 0; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.12; letter-spacing: -.045em; }
.fix-investigation-finding { margin: 0; padding: 9px 18px 16px; font-size: .87rem; font-weight: 650; line-height: 1.5; }
.fix-investigation-evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px dashed #b5ad98; border-bottom: 2px dashed #b5ad98; }
.fix-investigation-evidence > div { min-width: 0; padding: 12px 16px; }
.fix-investigation-evidence > div:first-child { border-right: 2px dashed #b5ad98; background: #f5e8d7; }
.fix-investigation-evidence > div:last-child { background: #e4eedf; }
.fix-investigation-evidence span { color: #625446; font: 850 .61rem/1.3 ui-monospace, Menlo, monospace; letter-spacing: .07em; }
.fix-investigation-evidence p { margin: 7px 0 0; font-size: .77rem; line-height: 1.45; }
.fix-investigation-limit { margin: 0; padding: 14px 18px; font-size: .77rem; line-height: 1.45; }
.fix-investigation-sources { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 17px; }
.first-fix .fix-investigation-sources a { min-height: 40px; padding: 8px 10px; font-size: .72rem; }
.first-fix-actions { margin-top: 16px; padding-top: 13px; border-top: 1px solid #b8b7a7; }
.first-fix .first-fix-actions button { min-height: 42px; padding: 8px 11px; font-size: .72rem; }
.first-fix-cover-art { min-height: 315px; }
.first-fix[data-question="result"] .first-fix-paper-before { color: #875231; background: #f4e5d4; }
.first-fix[data-question="result"] .first-fix-paper-before::after { content: "FAULT FOUND"; position: absolute; right: -14px; bottom: 13px; padding: 4px; border: 2px solid #875231; background: #fff8ea; font: 900 .55rem/1.1 ui-monospace, monospace; transform: rotate(10deg); }
.first-fix[data-question="return"] .first-fix-paper-after { color: #315943; background: #d9ead7; }
.first-fix[data-question="return"] .first-fix-paper-after::after { content: "CLEARED"; position: absolute; right: -13px; bottom: 13px; padding: 4px; border: 2px solid #315943; background: #f7fff2; font: 900 .58rem/1.1 ui-monospace, monospace; transform: rotate(9deg); }

@media (max-width: 700px) {
  .first-fix-questions { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 17px; }
  .first-fix .first-fix-question { min-height: 82px; }
  .first-fix-question strong { max-width: none; }
  .fix-investigation-evidence { grid-template-columns: minmax(0, 1fr); }
  .fix-investigation-evidence > div:first-child { border-right: 0; border-bottom: 2px dashed #b5ad98; }
  .fix-investigation-sources { display: grid; }
  .first-fix-cover-art { min-height: 150px; }
}
