.credential-body {
  background: #050608;
  color: var(--paper);
}

.credential-main {
  padding-top: 72px;
  overflow: hidden;
}

.credential-hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--faint);
  background: #090b10;
}

.credential-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 4, 6, 0.98) 0%, rgba(3, 4, 6, 0.86) 38%, rgba(3, 4, 6, 0.18) 76%, rgba(3, 4, 6, 0.08) 100%);
}

.credential-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.credential-sheet {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: clamp(28px, 6vw, 120px);
  width: min(38vw, 620px);
  aspect-ratio: 1.42;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: clamp(8px, 1.2vw, 18px);
  padding: clamp(24px, 4vw, 64px);
  color: #19130c;
  text-align: center;
  transform: translateY(-50%) rotate(2deg);
  border: 1px solid #8f6b2d;
  outline: 8px double rgba(143, 107, 45, 0.58);
  outline-offset: -20px;
  background:
    linear-gradient(rgba(255, 250, 235, 0.92), rgba(240, 226, 194, 0.96)),
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(83, 61, 24, 0.04) 8px 9px);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.58);
}

.credential-sheet span,
.credential-sheet small,
.credential-sheet b,
.credential-sheet em {
  font-family: var(--display);
  font-style: normal;
}

.credential-sheet span,
.credential-sheet small {
  font-size: clamp(8px, 0.85vw, 13px);
  letter-spacing: 0.08em;
}

.credential-sheet strong {
  font-family: Georgia, serif;
  font-size: clamp(36px, 6vw, 92px);
  letter-spacing: 0.04em;
}

.credential-sheet b {
  max-width: 86%;
  font-size: clamp(11px, 1.35vw, 22px);
}

.credential-sheet em {
  font-size: clamp(9px, 1vw, 15px);
}

.credential-hero-copy {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 2 * var(--page-pad)));
  margin: 0 auto;
  padding: 120px 0 96px;
}

.credential-kicker {
  margin: 0 0 22px;
  color: rgba(244, 247, 251, 0.56);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.credential-hero h1 {
  max-width: min(48vw, 720px);
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 8vw, 126px);
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.credential-intro {
  max-width: min(48vw, 620px);
  margin: 30px 0 0;
  color: rgba(244, 247, 251, 0.72);
  font-size: 18px;
  line-height: 1.65;
}

.credential-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.credential-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1240px, calc(100% - 2 * var(--page-pad)));
  margin: 0 auto;
  border-right: 1px solid var(--faint);
  border-left: 1px solid var(--faint);
}

.credential-metrics article {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  border-right: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
}

.credential-metrics article:last-child {
  border-right: 0;
}

.credential-metrics span,
.credential-verifier dt {
  color: rgba(244, 247, 251, 0.44);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
}

.credential-metrics strong {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1;
}

.credential-story {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 72px;
  width: min(1240px, calc(100% - 2 * var(--page-pad)));
  margin: 0 auto;
  padding: 144px 0;
}

.credential-story h2,
.cristallo-note h2 {
  max-width: 780px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.credential-narrative > p:not(.credential-kicker),
.cristallo-note > p:not(.credential-kicker) {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.credential-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 52px;
  border-top: 1px solid var(--faint);
  border-left: 1px solid var(--faint);
}

.credential-proof-grid article {
  min-height: 180px;
  padding: 26px;
  border-right: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
}

.credential-proof-grid span {
  color: rgba(244, 247, 251, 0.24);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
}

.credential-proof-grid strong {
  display: block;
  margin-top: 22px;
  font-family: var(--display);
  font-size: 20px;
}

.credential-proof-grid p {
  color: var(--muted);
  line-height: 1.5;
}

.credential-verifier {
  position: sticky;
  top: 108px;
  padding: 38px;
  border: 1px solid rgba(244, 247, 251, 0.18);
  background: linear-gradient(145deg, rgba(244, 247, 251, 0.07), rgba(244, 247, 251, 0.02));
}

.credential-verifier h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 34px;
  line-height: 1.08;
}

.credential-verifier dl {
  margin: 34px 0 0;
}

.credential-verifier dl div {
  padding: 18px 0;
  border-top: 1px solid var(--faint);
}

.credential-verifier dd {
  margin: 8px 0 0;
  color: var(--paper);
  line-height: 1.45;
}

.credential-code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.cristallo-note {
  padding: 140px var(--page-pad);
  border-top: 1px solid var(--faint);
  background: radial-gradient(circle at 80% 30%, rgba(77, 108, 255, 0.15), transparent 34%), #030405;
}

.cristallo-note > * {
  width: min(1020px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.credential-disclaimer {
  margin-top: 40px;
  padding: 22px 24px;
  border-left: 2px solid rgba(244, 247, 251, 0.45);
  background: rgba(244, 247, 251, 0.04);
}

.cristallo-note .action {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .credential-hero::after {
    background: linear-gradient(180deg, rgba(3, 4, 6, 0.22), rgba(3, 4, 6, 0.96) 70%);
  }

  .credential-hero-copy {
    padding-top: 320px;
  }

  .credential-sheet {
    top: 72px;
    right: 50%;
    width: min(78vw, 620px);
    transform: translateX(50%) rotate(1deg);
  }

  .credential-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .credential-story {
    grid-template-columns: 1fr;
  }

  .credential-verifier {
    position: static;
  }
}

@media (max-width: 560px) {
  .credential-main {
    padding-top: 64px;
  }

  .credential-hero-copy {
    width: calc(100% - 36px);
    padding: 300px 0 54px;
  }

  .credential-sheet {
    top: 92px;
    width: 82vw;
    padding: 30px 22px;
    outline-width: 5px;
    outline-offset: -14px;
  }

  .credential-hero h1 {
    font-size: 54px;
  }

  .credential-intro {
    font-size: 16px;
  }

  .credential-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .credential-actions .action {
    justify-content: center;
  }

  .credential-metrics {
    grid-template-columns: 1fr;
    width: calc(100% - 36px);
  }

  .credential-metrics article {
    min-height: 128px;
  }

  .credential-story {
    width: calc(100% - 36px);
    padding: 82px 0;
  }

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

  .credential-story h2,
  .cristallo-note h2 {
    font-size: 44px;
  }

  .credential-verifier {
    padding: 26px;
  }

  .cristallo-note {
    padding: 82px 18px;
  }
}
