/* HAMBE A.D. integrated proof layer
   Operational evidence inside the existing Basalt site system. */

.evidence-layer {
  position: relative;
  overflow: clip;
  padding-block: clamp(84px, 10vw, 142px) !important;
  background:
    linear-gradient(180deg, rgba(197, 169, 111, .035), transparent 18%),
    #0d0b09;
  border-block: 1px solid var(--line-soft);
}

.evidence-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .19;
  background-image:
    linear-gradient(rgba(242,238,229,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,238,229,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.evidence-layer > .wrap {
  position: relative;
  z-index: 1;
}

.evidence-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: clamp(36px, 7vw, 94px);
  align-items: end;
  margin-bottom: clamp(38px, 5vw, 62px);
}

.evidence-heading h2 {
  max-width: 800px;
  margin: 17px 0 0;
  color: var(--ink);
  font-size: clamp(2.55rem, 5.1vw, 5rem);
  line-height: .98;
  letter-spacing: -.052em;
  text-wrap: balance;
}

.evidence-heading-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.evidence-heading-copy span {
  display: block;
  margin-top: 17px;
  color: var(--dim);
  font: 750 .61rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.industry-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 800px;
  margin-bottom: 18px;
  border: 1px solid rgba(242,238,229,.18);
  background: rgba(25,20,16,.78);
}

.industry-tabs button {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 13px;
  min-width: 0;
  padding: 17px 19px;
  color: var(--dim);
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(242,238,229,.16);
  text-align: left;
  cursor: pointer;
}

.industry-tabs button:last-child {
  border-right: 0;
}

.industry-tabs button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
}

.industry-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: rgba(197,169,111,.08);
}

.industry-tabs button[aria-selected="true"]::after {
  background: var(--accent);
}

.industry-tabs button > span {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--accent);
  font: 750 .64rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.industry-tabs button strong {
  color: inherit;
  font-size: .92rem;
  font-weight: 700;
}

.industry-tabs button small {
  margin-top: 2px;
  color: var(--dim);
  font-size: .67rem;
}

.evidence-frame {
  overflow: hidden;
  background: #181512;
  border: 1px solid rgba(242,238,229,.2);
  border-top-color: rgba(197,169,111,.72);
  box-shadow: 0 30px 80px rgba(0,0,0,.32);
}

.evidence-frame-top {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid rgba(242,238,229,.16);
}

.evidence-case-title {
  display: flex;
  min-width: 0;
  padding: 16px 21px;
  flex-direction: column;
  justify-content: center;
}

.evidence-case-title span {
  color: var(--dim);
  font: 750 .58rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.evidence-case-title strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: .87rem;
}

.state-tabs {
  display: flex;
  flex: none;
}

.state-tabs button {
  min-width: 122px;
  padding: 0 18px;
  color: var(--dim);
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(242,238,229,.16);
  font: 800 .66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
  cursor: pointer;
}

.state-tabs button[aria-selected="true"] {
  color: var(--ground);
  background: var(--accent);
}

.evidence-view {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, .55fr);
}

.evidence-view[hidden],
[data-industry-label][hidden],
[data-industry-metrics][hidden],
[data-artifact-industry][hidden] {
  display: none !important;
}

.evidence-paper {
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  color: #1e1b17;
  background:
    linear-gradient(rgba(248,245,237,.97), rgba(248,245,237,.97)),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(42,37,31,.08) 27px 28px);
  border-right: 1px solid rgba(242,238,229,.16);
}

.evidence-paper-before {
  background:
    linear-gradient(rgba(235,229,217,.98), rgba(235,229,217,.98)),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(42,37,31,.08) 27px 28px);
}

.paper-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 13px;
  border-bottom: 2px solid #1e1b17;
}

.paper-heading strong {
  color: #1e1b17;
  font-size: .9rem;
}

.paper-heading span {
  color: #6e675c;
  font: 750 .6rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
  text-align: right;
  text-transform: uppercase;
}

.scatter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.evidence-note {
  position: relative;
  min-height: 130px;
  padding: 17px;
  color: #1e1b17;
  background: #fffdf7;
  border: 1px solid #cbc2b3;
  box-shadow: 0 8px 18px rgba(42,37,30,.09);
}

.evidence-note:nth-child(2) {
  transform: rotate(.45deg);
}

.evidence-note:nth-child(3) {
  transform: rotate(-.35deg);
}

.evidence-note > span {
  display: block;
  margin-bottom: 10px;
  color: #504a42;
  font: 800 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.evidence-note p {
  margin: 0;
  color: #5f584e;
  font-size: .72rem;
  line-height: 1.55;
}

.evidence-note-alert {
  background: #fff0dd;
  border-color: #d7a26d;
}

.evidence-note-alert b {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 5px;
  color: #9e4338;
  border: 1px solid currentColor;
  font: 800 .5rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  transform: rotate(3deg);
}

.evidence-margin {
  position: relative;
  min-width: 0;
  padding: clamp(25px, 3vw, 35px);
  color: var(--ink);
  background: #221f1b;
}

.evidence-margin::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  width: 1px;
  background: rgba(242,238,229,.07);
}

.evidence-margin > span {
  color: var(--accent);
  font: 750 .58rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.evidence-margin h3 {
  margin: 11px 0 22px;
  color: var(--ink);
  font-size: 1.45rem;
  letter-spacing: -.03em;
  line-height: 1.05;
}

.evidence-margin dl {
  margin: 0;
}

.evidence-margin dl div {
  padding: 12px 0;
  border-top: 1px solid rgba(242,238,229,.12);
}

.evidence-margin dt {
  color: var(--dim);
  font-size: .62rem;
}

.evidence-margin dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: .79rem;
  font-weight: 650;
  line-height: 1.35;
}

.evidence-calc {
  margin: 19px 0 0;
  padding: 14px 14px 13px;
  color: var(--muted);
  background: #141210;
  border-left: 3px solid var(--accent);
  font: 500 .62rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.evidence-calc strong,
.evidence-calc small {
  display: block;
}

.evidence-calc strong {
  margin-top: 2px;
  color: var(--accent2);
  font-size: .75rem;
}

.evidence-calc small {
  margin-top: 4px;
  color: var(--dim);
  font-size: .54rem;
}

.record-list {
  display: grid;
  gap: 8px;
}

.record-row {
  display: grid;
  grid-template-columns: 62px minmax(135px, 1.25fr) minmax(115px, .85fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid #d2cabd;
  box-shadow: 0 2px 5px rgba(42,37,30,.04);
}

.record-row > b {
  color: #25211c;
  font: 800 .64rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.record-row > span {
  color: #29251f;
  font-size: .72rem;
}

.record-row small {
  display: block;
  margin-top: 2px;
  color: #766f64;
  font-size: .61rem;
}

.record-row em {
  justify-self: start;
  padding: 4px 7px;
  border: 1px solid;
  border-radius: 999px;
  font: 800 .51rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.record-good {
  color: #4d7259;
  background: rgba(77,114,89,.07);
}

.record-warn {
  color: #986825;
  background: rgba(152,104,37,.07);
}

.evidence-outcomes {
  border: 1px solid rgba(242,238,229,.18);
  border-top: 0;
  background: #141210;
}

.evidence-outcomes > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.evidence-outcomes p {
  min-height: 126px;
  margin: 0;
  padding: 20px;
  border-right: 1px solid rgba(242,238,229,.14);
}

.evidence-outcomes p:last-child {
  border-right: 0;
}

.evidence-outcomes span,
.evidence-outcomes strong,
.evidence-outcomes small {
  display: block;
}

.evidence-outcomes span {
  color: var(--dim);
  font: 700 .57rem/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.evidence-outcomes strong {
  margin: 7px 0 3px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.evidence-outcomes strong b {
  color: var(--accent);
  font-weight: inherit;
}

.evidence-outcomes small {
  color: var(--dim);
  font-size: .58rem;
}

.evidence-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(242,238,229,.1);
}

.evidence-links p {
  margin: 0;
  color: var(--dim);
  font-size: .74rem;
}

.evidence-links > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.evidence-links a {
  padding: 8px 11px;
  color: var(--ink-2);
  border: 1px solid rgba(242,238,229,.16);
  font: 700 .61rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em;
  text-decoration: none;
}

.evidence-links a:hover {
  color: var(--ground);
  background: var(--accent);
  border-color: var(--accent);
}

/* Process artifacts replace the previous generated motion studies. */

.process-scenario {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0 0;
  padding: 8px 10px;
  color: var(--dim);
  background: rgba(197,169,111,.06);
  border: 1px solid rgba(197,169,111,.2);
  font: 700 .61rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em;
}

.process-scenario strong {
  color: var(--accent2);
}

.process-artifact {
  position: relative;
  display: flex;
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 2.5vw, 32px);
  flex-direction: column;
  justify-content: center;
  color: #1e1b17;
  background:
    radial-gradient(circle at 75% 18%, rgba(197,169,111,.075), transparent 34%),
    #090c0e;
}

.artifact-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 11px;
  color: rgba(242,238,229,.64);
  background: #151515;
  border: 1px solid rgba(242,238,229,.15);
  border-bottom: 0;
  font: 750 .54rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
}

.artifact-chrome b {
  color: var(--accent);
  font-weight: 750;
}

.artifact-sheet {
  position: relative;
  min-height: 335px;
  padding: clamp(19px, 2.3vw, 29px);
  background:
    linear-gradient(rgba(248,245,237,.97), rgba(248,245,237,.97)),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(42,37,31,.07) 25px 26px);
  border: 1px solid #afa797;
  box-shadow: 0 18px 38px rgba(0,0,0,.25);
}

.artifact-sheet::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 41%;
  width: 76px;
  height: 20px;
  background: rgba(210,194,157,.68);
  transform: rotate(-2deg);
}

.artifact-sheet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 11px;
  border-bottom: 2px solid #211e19;
}

.artifact-sheet-head strong {
  color: #211e19;
  font-size: .83rem;
}

.artifact-sheet-head span {
  color: #70695e;
  font: 750 .56rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.observation-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #d5cdbf;
}

.observation-list li {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 49px;
  padding: 8px 5px;
  border-bottom: 1px solid #d5cdbf;
}

.observation-list time,
.observation-list em {
  font: 750 .56rem/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.observation-list time {
  color: #746c61;
}

.observation-list span {
  color: #37322c;
  font-size: .68rem;
}

.observation-list em {
  color: #8c6329;
  font-style: normal;
}

.observation-list .observation-alert {
  background: rgba(180,72,59,.07);
}

.observation-list .observation-alert em {
  color: #a6473a;
}

.artifact-pencil {
  margin: 18px 0 0;
  color: #5f5222;
  font-family: "Comic Sans MS", "Bradley Hand", cursive;
  font-size: .8rem;
  transform: rotate(-.5deg);
}

.case-formula {
  display: grid;
  grid-template-columns: repeat(5, auto);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.case-formula p {
  margin: 0;
}

.case-formula span,
.case-formula strong {
  display: block;
}

.case-formula span {
  max-width: 95px;
  color: #6d665b;
  font-size: .58rem;
  line-height: 1.3;
}

.case-formula strong {
  margin-top: 5px;
  color: #241f19;
  font: 800 1.2rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.case-formula i {
  color: #a18f6d;
  font: 800 1rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-style: normal;
}

.case-total {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 6px 18px;
  margin-top: 23px;
  padding: 15px;
  color: #201d18;
  background: rgba(197,169,111,.18);
  border-left: 3px solid #9a7a3c;
}

.case-total span {
  font-size: .65rem;
  font-weight: 700;
}

.case-total strong {
  color: #6f5120;
  font: 800 1.45rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.case-total small {
  grid-column: 1 / -1;
  color: #766e62;
  font-size: .55rem;
}

.scope-boundary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid #cfc7b9;
}

.scope-boundary span {
  color: #8c672b;
  font: 800 .56rem/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.scope-boundary b {
  color: #383229;
  font-size: .66rem;
  font-weight: 650;
}

.build-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.build-board section {
  min-height: 166px;
  padding: 13px;
  background: #eee8dd;
  border: 1px solid #cec4b4;
}

.build-board section > span {
  display: block;
  margin-bottom: 15px;
  color: #765823;
  font: 800 .54rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.build-board p {
  margin: 0 0 8px;
  padding: 8px;
  color: #37312a;
  background: #fffdf7;
  border: 1px solid #d7cfc2;
  font-size: .61rem;
  line-height: 1.35;
}

.friday-proof {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 12px 13px;
  color: #315c43;
  background: rgba(72,115,84,.08);
  border: 1px solid rgba(72,115,84,.32);
}

.friday-proof span {
  font: 800 .54rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.friday-proof strong {
  color: #315c43;
  font-size: .65rem;
}

.handoff-table {
  border-top: 1px solid #cdc5b8;
}

.handoff-table p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 49px;
  margin: 0;
  padding: 8px 5px;
  border-bottom: 1px solid #cdc5b8;
}

.handoff-table span {
  color: #3c3730;
  font-size: .67rem;
}

.handoff-table b {
  color: #3f6a4d;
  font: 800 .55rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.handoff-table b::before {
  content: "✓ ";
}

.handoff-sign {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 15px;
  margin-top: 18px;
  padding: 13px;
  background: #eee8dd;
  border: 1px solid #cbc1b0;
}

.handoff-sign span {
  color: #7a5d29;
  font: 800 .54rem/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.handoff-sign strong {
  color: #29241e;
  font-size: .66rem;
}

.process-artifact figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 2px 0;
  color: rgba(242,238,229,.58);
  font: 700 .56rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .evidence-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .evidence-heading-copy {
    max-width: 700px;
  }

  .evidence-view {
    grid-template-columns: 1fr;
  }

  .evidence-paper {
    border-right: 0;
    border-bottom: 1px solid rgba(242,238,229,.16);
  }

  .evidence-outcomes > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidence-outcomes p:nth-child(2) {
    border-right: 0;
  }

  .evidence-outcomes p:nth-child(-n+2) {
    border-bottom: 1px solid rgba(242,238,229,.14);
  }
}

@media (max-width: 700px) {
  .evidence-layer {
    padding-block: 72px !important;
  }

  .evidence-heading h2 {
    font-size: clamp(2.5rem, 12vw, 3.55rem);
  }

  .industry-tabs {
    grid-template-columns: 1fr;
  }

  .industry-tabs button {
    border-right: 0;
    border-bottom: 1px solid rgba(242,238,229,.14);
  }

  .industry-tabs button:last-child {
    border-bottom: 0;
  }

  .evidence-frame-top {
    display: block;
  }

  .state-tabs {
    border-top: 1px solid rgba(242,238,229,.16);
  }

  .state-tabs button {
    flex: 1;
    min-height: 48px;
  }

  .state-tabs button:first-child {
    border-left: 0;
  }

  .paper-heading {
    align-items: flex-start;
  }

  .scatter-grid {
    grid-template-columns: 1fr;
  }

  .record-row {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .record-row > span:nth-child(3) {
    display: none;
  }

  .evidence-outcomes > div {
    grid-template-columns: 1fr;
  }

  .evidence-outcomes p,
  .evidence-outcomes p:nth-child(2) {
    min-height: 105px;
    border-right: 0;
    border-bottom: 1px solid rgba(242,238,229,.14);
  }

  .evidence-outcomes p:last-child {
    border-bottom: 0;
  }

  .evidence-links {
    display: block;
  }

  .evidence-links > div {
    margin-top: 12px;
  }

  .evidence-links a {
    width: 100%;
  }

  .process-scenario {
    display: block;
  }

  .process-scenario span {
    display: block;
    margin-top: 2px;
  }

  .process-artifact {
    padding: 14px;
  }

  .artifact-sheet {
    min-height: 0;
    padding: 19px 15px;
  }

  .artifact-sheet-head {
    align-items: flex-start;
  }

  .observation-list li {
    grid-template-columns: 50px 1fr;
  }

  .observation-list em {
    grid-column: 2;
  }

  .case-formula {
    grid-template-columns: 1fr auto 1fr auto 1fr;
  }

  .case-formula span {
    min-height: 30px;
    font-size: .51rem;
  }

  .case-formula strong {
    font-size: .93rem;
  }

  .case-total {
    grid-template-columns: 1fr;
  }

  .build-board {
    grid-template-columns: 1fr;
  }

  .build-board section {
    min-height: 0;
  }

  .friday-proof,
  .handoff-sign {
    display: block;
  }

  .friday-proof strong,
  .handoff-sign strong {
    display: block;
    margin-top: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .evidence-layer *,
  .process-artifact * {
    scroll-behavior: auto !important;
  }
}
