:root {
  --proof-line: rgba(200, 202, 198, 0.16);
  --proof-line-hot: rgba(239, 93, 39, 0.56);
  --proof-mist: #c8cac6;
  --proof-muted: #8c918d;
  --proof-surface: #101216;
}

html {
  scroll-padding-top: 7rem;
}

body.proof-page {
  overflow-x: hidden;
  color: var(--proof-mist);
  background:
    radial-gradient(circle at 82% 11%, rgba(239, 93, 39, 0.075), transparent 22rem),
    #070809;
}

.proof-page main {
  overflow: hidden;
}

.proof-page .site-nav {
  background: rgba(7, 8, 9, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, background 180ms ease;
}

.proof-page .site-nav.is-scrolled {
  background: rgba(7, 8, 9, 0.94);
  border-color: var(--proof-line);
}

.proof-page .doctrine-nav a[aria-current="page"] {
  color: var(--proof-mist);
  border-color: rgba(239, 93, 39, .72);
  background: rgba(239, 93, 39, .06);
}

.proof-grid {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(var(--proof-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--proof-line) 1px, transparent 1px);
  background-size: clamp(72px, 8vw, 142px) clamp(72px, 8vw, 142px);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.8) 72%, transparent 100%);
  pointer-events: none;
}

.proof-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(20rem, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2.5rem, 4.5vw, 6rem);
  padding: clamp(9rem, 14vh, 11rem) clamp(1.5rem, 5.4vw, 6.5rem) clamp(5rem, 8vh, 7rem);
  overflow: hidden;
  border-bottom: 1px solid var(--proof-line);
}

.proof-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,8,9,.98) 0%, rgba(7,8,9,.7) 43%, rgba(7,8,9,.18) 100%),
    repeating-linear-gradient(112deg, transparent 0 7px, rgba(255,255,255,.012) 8px 9px);
  pointer-events: none;
}

.proof-hero__copy,
.proof-hero__visual {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.proof-hero__copy {
  max-width: 48rem;
  overflow: clip;
}

.proof-kicker,
.chapter-number,
.evidence-label,
.system-frame__bar,
.proof-signal,
.control-pair dt,
.system-module span,
.system-module small,
.proof-modal__header span {
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.proof-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  color: #a1a5a0;
  font-size: 0.71rem;
  font-weight: 600;
}

.proof-kicker span {
  width: 1.8rem;
  height: 1px;
  background: #ef5d27;
  box-shadow: 0 0 12px rgba(239, 93, 39, .8);
}

.proof-hero h1,
.proof-thesis h2,
.proof-story__header h2,
.proof-chapter h3,
.system-library h2,
.evidence-note h2,
.proof-cta h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  color: var(--proof-mist);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.proof-hero h1 {
  max-width: 8.5ch;
  font-size: clamp(4.7rem, 8.7vw, 10.4rem);
  line-height: 0.78;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255,255,255,.14), 0 18px 35px rgba(0,0,0,.56);
}

.proof-hero__lede {
  max-width: 36rem;
  margin: 2.3rem 0 0;
  color: #aeb1ad;
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  line-height: 1.65;
}

.proof-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.proof-button,
.text-link,
.frame-open,
.system-module,
.proof-modal__header button {
  font: inherit;
}

.proof-button {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--proof-line);
  color: var(--proof-mist);
  background: rgba(10, 11, 13, .76);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
}

.proof-button--hot {
  color: #12100e;
  border-color: #ef5d27;
  background: #ef5d27;
  font-weight: 600;
}

.proof-button--quiet:hover,
.proof-button--quiet:focus-visible {
  border-color: rgba(200,202,198,.45);
  background: rgba(200,202,198,.06);
}

.evidence-label {
  max-width: 36rem;
  margin: 1.6rem 0 0;
  color: #656a68;
  font-size: 0.58rem;
  line-height: 1.7;
}

.proof-hero__visual {
  grid-column: 2;
  width: 100%;
  max-width: 66rem;
  justify-self: end;
}

.system-frame {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(200,202,198,.22);
  background: #101216;
  box-shadow: 0 36px 85px rgba(0,0,0,.5);
}

.system-frame::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(255,255,255,.035);
  pointer-events: none;
}

.system-frame--hero {
  transform: none;
}

.system-frame__bar {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.9rem;
  border-bottom: 1px solid var(--proof-line);
  color: #a6aaa6;
  background: linear-gradient(180deg, #171a1e, #101215);
  font-size: 0.57rem;
}

.system-frame__bar i {
  color: #ef5d27;
  font-style: normal;
}

.system-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(.72) contrast(1.03) brightness(.91);
}

.frame-open {
  position: absolute;
  z-index: 3;
  right: 0.8rem;
  bottom: 0.8rem;
  min-height: 2.5rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(200,202,198,.28);
  color: var(--proof-mist);
  background: rgba(8,9,11,.92);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.frame-open:hover,
.frame-open:focus-visible {
  color: #0a0a0a;
  border-color: #ef5d27;
  background: #ef5d27;
}

.proof-signal {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 1rem 0 0;
  color: #777d79;
  font-size: 0.56rem;
}

.proof-signal i {
  display: block;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #d8ff65;
  box-shadow: 0 0 10px rgba(216,255,101,.72);
}

.proof-thesis {
  display: grid;
  grid-template-columns: minmax(12rem, .55fr) minmax(22rem, 1.2fr) minmax(18rem, .72fr);
  gap: clamp(2rem, 5vw, 7rem);
  align-items: start;
  padding: clamp(6rem, 10vw, 10rem) clamp(1.5rem, 7vw, 8.5rem);
  border-bottom: 1px solid var(--proof-line);
}

.proof-thesis h2 {
  max-width: 12ch;
  font-size: clamp(3rem, 5.1vw, 6.4rem);
  line-height: .9;
}

.proof-thesis > p:last-child,
.system-library__header > p,
.evidence-note > p {
  margin: 0;
  color: #959a96;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.72;
}

.proof-story {
  padding: clamp(6rem, 10vw, 10rem) clamp(1.5rem, 5.4vw, 6.5rem);
}

.proof-story__header {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 3rem;
  max-width: 95rem;
  margin: 0 auto clamp(5rem, 9vw, 10rem);
}

.proof-story__header h2 {
  font-size: clamp(4.3rem, 7.8vw, 9.6rem);
  line-height: .8;
}

.proof-chapter {
  display: grid;
  grid-template-columns: minmax(20rem, .76fr) minmax(38rem, 1.45fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
  max-width: 95rem;
  margin: 0 auto clamp(8rem, 14vw, 15rem);
}

.proof-chapter--reverse {
  grid-template-columns: minmax(38rem, 1.45fr) minmax(20rem, .76fr);
}

.proof-chapter--reverse .proof-chapter__copy {
  grid-column: 2;
  grid-row: 1;
}

.proof-chapter--reverse .system-frame {
  grid-column: 1;
  grid-row: 1;
}

.chapter-number {
  margin: 0 0 1.2rem;
  color: #ef5d27;
  font-size: 0.67rem;
}

.proof-chapter h3 {
  max-width: 11ch;
  font-size: clamp(3.1rem, 5.5vw, 6.5rem);
  line-height: .86;
}

.proof-chapter__copy > p:not(.chapter-number) {
  max-width: 35rem;
  margin: 1.6rem 0 0;
  color: #999e9a;
  font-size: clamp(.98rem, 1.16vw, 1.13rem);
  line-height: 1.7;
}

.control-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 2rem 0 0;
  border: 1px solid var(--proof-line);
  background: var(--proof-line);
}

.control-pair div {
  min-height: 8rem;
  padding: 1rem;
  background: #0c0e10;
}

.control-pair dt {
  margin-bottom: .65rem;
  color: #6f7471;
  font-size: .58rem;
}

.control-pair dd {
  margin: 0;
  color: #b8bbb7;
  font-size: .87rem;
  line-height: 1.5;
}

.text-link {
  margin-top: 1.4rem;
  padding: .5rem 0;
  border: 0;
  border-bottom: 1px solid rgba(239,93,39,.48);
  color: #c5c7c3;
  background: transparent;
  font-family: "JetBrains Mono", monospace;
  font-size: .67rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
}

.text-link:hover,
.text-link:focus-visible {
  color: #ef5d27;
  border-color: #ef5d27;
}

.wireframe-live {
  position: relative;
  aspect-ratio: 1500 / 980;
  overflow: hidden;
  background: #eaeaea;
}

.wireframe-live--portal {
  aspect-ratio: 1200 / 1000;
}

.wireframe-live iframe {
  position: absolute;
  inset: 0;
  width: 200%;
  height: 200%;
  border: 0;
  transform: scale(.5);
  transform-origin: top left;
  pointer-events: none;
}

.system-library {
  padding: clamp(6rem, 10vw, 10rem) clamp(1.5rem, 7vw, 8.5rem);
  border-top: 1px solid var(--proof-line);
  border-bottom: 1px solid var(--proof-line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.02), transparent 36%),
    #0a0c0e;
}

.system-library__header {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: clamp(3rem, 8vw, 9rem);
  align-items: end;
  max-width: 95rem;
  margin: 0 auto clamp(4rem, 7vw, 7rem);
}

.system-library h2 {
  font-size: clamp(4rem, 7vw, 8.8rem);
  line-height: .82;
}

.system-library__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 95rem;
  margin: 0 auto;
  border: 1px solid var(--proof-line);
  background: var(--proof-line);
}

.system-module {
  position: relative;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: .45rem;
  padding: 1.35rem;
  border: 0;
  color: var(--proof-mist);
  background: #0d0f12;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.system-module::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background: #555b5a;
  transition: width 180ms ease, background 180ms ease;
}

.system-module--hot::before {
  background: #ef5d27;
  box-shadow: 0 0 12px rgba(239,93,39,.6);
}

.system-module:hover,
.system-module:focus-visible {
  color: #d9dad6;
  background: #14171a;
}

.system-module:hover::before,
.system-module:focus-visible::before {
  width: 100%;
  background: #ef5d27;
}

.system-module span,
.system-module small {
  color: #707572;
  font-size: .55rem;
}

.system-module strong {
  max-width: 12ch;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
  line-height: .95;
  text-transform: uppercase;
}

.system-module i {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #656b68;
  font-style: normal;
}

.evidence-note {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(3rem, 8vw, 10rem);
  align-items: end;
  padding: clamp(6rem, 10vw, 10rem) clamp(1.5rem, 9vw, 11rem);
}

.evidence-note h2 {
  max-width: 13ch;
  font-size: clamp(3.2rem, 6vw, 7.5rem);
  line-height: .86;
}

.proof-cta {
  position: relative;
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(7rem, 14vw, 15rem) clamp(1.5rem, 9vw, 11rem);
  border-top: 1px solid var(--proof-line);
  background:
    linear-gradient(90deg, rgba(7,8,9,.98), rgba(7,8,9,.64) 62%, rgba(7,8,9,.83)),
    url("img/forgify-brand-reveal-background.png") center / cover no-repeat;
}

.proof-cta::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 42vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239,93,39,.3), #ef5d27);
  box-shadow: 0 0 14px rgba(239,93,39,.52);
}

.proof-cta > * {
  position: relative;
  z-index: 1;
}

.proof-cta h2 {
  font-size: clamp(5rem, 10vw, 12rem);
  line-height: .78;
}

.proof-cta > p:not(.proof-kicker) {
  max-width: 36rem;
  margin: 2rem 0;
  color: #a4a8a4;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.6;
}

.proof-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.proof-quiet-link {
  padding: .75rem 0;
  border-bottom: 1px solid rgba(200,202,198,.25);
  color: #959a96;
  font-family: "JetBrains Mono", monospace;
  font-size: .62rem;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.proof-quiet-link:hover,
.proof-quiet-link:focus-visible {
  color: var(--proof-mist);
  border-color: #ef5d27;
}

.proof-page .site-footer {
  position: relative;
  z-index: 1;
}

.proof-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(.65rem, 2vw, 2rem);
}

.proof-modal[aria-hidden="false"] {
  display: flex;
}

.proof-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.proof-modal__window {
  position: relative;
  width: min(96vw, 110rem);
  height: min(92svh, 72rem);
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(200,202,198,.3);
  background: #0b0d0f;
  box-shadow: 0 38px 120px rgba(0,0,0,.76);
}

.proof-modal__header {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem .75rem 1.35rem;
  border-bottom: 1px solid var(--proof-line);
}

.proof-modal__header span {
  color: #777c78;
  font-size: .52rem;
}

.proof-modal__header h2 {
  margin: .15rem 0 0;
  font-family: "Barlow Condensed", sans-serif;
  color: var(--proof-mist);
  font-size: 1.4rem;
  line-height: 1;
  text-transform: uppercase;
}

.proof-modal__header button {
  min-height: 2.75rem;
  padding: .65rem .9rem;
  border: 1px solid var(--proof-line);
  color: #aeb2ae;
  background: transparent;
  font-family: "JetBrains Mono", monospace;
  font-size: .62rem;
  text-transform: uppercase;
  cursor: pointer;
}

.proof-modal__header button span {
  margin-left: .6rem;
  color: #ef5d27;
  font-size: 1rem;
}

.proof-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #eee;
}

body.modal-open {
  overflow: hidden;
}

.proof-js .proof-reveal {
  opacity: 0;
  transform: translateY(2.25rem);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(.2,.7,.2,1);
}

.proof-js .proof-reveal[data-delay="1"] {
  transition-delay: 120ms;
}

.proof-js .proof-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1500px) {
  .proof-hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 4rem;
    min-height: auto;
  }

  .proof-hero__copy {
    max-width: 64rem;
  }

  .proof-hero h1 {
    max-width: 10ch;
    font-size: clamp(5rem, 11vw, 9rem);
  }

  .proof-hero__visual {
    grid-column: 1;
    width: min(100%, 64rem);
    justify-self: start;
  }
}

@media (max-width: 1120px) {

  .proof-thesis {
    grid-template-columns: 1fr 1.5fr;
  }

  .proof-thesis > p:last-child {
    grid-column: 2;
  }

  .proof-chapter,
  .proof-chapter--reverse {
    grid-template-columns: minmax(18rem, .72fr) minmax(30rem, 1.28fr);
  }

  .system-library__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 8rem;
  }

  .proof-hero {
    min-height: auto;
    padding-top: 10.5rem;
  }

  .proof-hero h1 {
    font-size: clamp(4.3rem, 22vw, 7rem);
  }

  .proof-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .proof-button {
    width: 100%;
  }

  .system-frame--hero {
    transform: none;
  }

  .proof-thesis,
  .proof-story__header,
  .proof-chapter,
  .proof-chapter--reverse,
  .system-library__header,
  .evidence-note {
    grid-template-columns: 1fr;
  }

  .proof-thesis > p:last-child,
  .proof-chapter--reverse .proof-chapter__copy,
  .proof-chapter--reverse .system-frame {
    grid-column: auto;
    grid-row: auto;
  }

  .proof-story__header {
    gap: 1rem;
  }

  .proof-story__header h2 {
    font-size: clamp(4rem, 20vw, 7rem);
  }

  .proof-chapter,
  .proof-chapter--reverse {
    gap: 2.5rem;
    margin-bottom: 8rem;
  }

  .proof-chapter--reverse .proof-chapter__copy {
    order: 0;
  }

  .proof-chapter--reverse .system-frame {
    order: 1;
  }

  .proof-chapter h3 {
    font-size: clamp(3.2rem, 16vw, 5.6rem);
  }

  .control-pair {
    grid-template-columns: 1fr;
  }

  .control-pair div {
    min-height: 0;
  }

  .system-library__grid {
    grid-template-columns: 1fr;
  }

  .system-module {
    min-height: 9.5rem;
  }

  .evidence-note {
    align-items: start;
  }

  .proof-cta {
    min-height: 72svh;
  }

  .proof-cta h2 {
    font-size: clamp(4.8rem, 23vw, 8rem);
  }

  .proof-cta__actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .proof-cta__actions .primary-cta,
  .proof-quiet-link {
    width: 100%;
  }

  .proof-cta::after {
    top: auto;
    bottom: 24%;
    width: 56vw;
  }

  .proof-modal {
    padding: 0;
  }

  .proof-modal__window {
    width: 100vw;
    height: 100svh;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .proof-js .proof-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .system-frame--hero {
    transform: none;
  }
}
