.proof-story,
.proof-offer { border-top: 1px solid var(--border-hairline); }

.proof-pin,
.proof-offer {
  display: grid;
  gap: clamp(16px, 3.4vw, 52px);
  padding-block: clamp(24px, 5vw, 72px);
}

.proof-intro,
.proof-workbench,
.proof-handoff-copy { min-width: 0; }

.proof-intro > p:last-child,
.proof-handoff-copy > p:not(.kicker) {
  max-width: 27.816em /* 38ch of the brand face at 400 */;
  margin-top: 14px;
  font-size: clamp(16px, 1.3vw, 21px);
  line-height: 1.48;
}

.proof-intro a { text-underline-offset:.18em; }

.proof-canvas {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface-raised);
}

.proof-scene {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 1.4;
  background: var(--surface-raised);
}

.proof-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof-mark img {
  width: 42%;
  height: auto;
  margin-bottom: 6%;
}

[data-proof] .proof-canvas { aspect-ratio: 1.4; }
[data-proof] .proof-scene {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  background: transparent;
}

[data-proof] .proof-track-photo { opacity: var(--track-light, 1); }
[data-proof] .proof-track-photo img {
  transform: scale(var(--track-zoom, 1));
  transform-origin: 48% 80%;
}

[data-proof] .proof-fleet img {
  clip-path: inset(
    calc((1 - var(--fleet-reveal, 0)) * 56.8%)
    calc((1 - var(--fleet-reveal, 0)) * 45.7%)
    calc((1 - var(--fleet-reveal, 0)) * 43.2%)
    calc((1 - var(--fleet-reveal, 0)) * 54.3%)
  );
}

[data-proof] .proof-mark { z-index: 1; pointer-events: none; }
[data-proof] .proof-mark img {
  position: absolute;
  --imprint: var(--proof-imprint, 0);
  --specimen: calc(1 - var(--imprint));
  width: calc(var(--mark-width, 40%) * var(--specimen) + 34% * var(--imprint));
  left: calc(var(--mark-x, 50%) * var(--specimen) + 50% * var(--imprint));
  top: calc(var(--mark-y, 54%) * var(--specimen) + 50% * var(--imprint));
  margin: 0;
  opacity: max(var(--mark-opacity, 0), var(--imprint));
  transform: translate(-50%, -50%) rotate(calc(var(--mark-angle, 0deg) * var(--specimen)));
}

[data-proof] .proof-fleet[data-transfer],
[data-work-motion] [data-transfer] .work-source { visibility: hidden; }
[data-work-motion] .work-crop[data-transfer] { background: transparent; }

.proof-transfer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  contain: layout paint;
  overflow: hidden;
  pointer-events: none;
}
.proof-transfer img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 879px) {
  [data-proof] .proof-workbench { display: grid; }
  [data-proof] .proof-workbench .proof-rail { grid-row: 1; margin-top: 0; }
  [data-proof] .proof-canvas { grid-row: 2; }
}

.proof-rail { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.proof-rail[hidden] { display: none; }

.proof-rail button {
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: clamp(13px, 1.15vw, 16px);
  text-align: left;
  padding: 8px 3px;
  min-height: 44px;
  border: 0;
  border-top: 2px solid var(--border-hairline);
  cursor: pointer;
}

.proof-rail button[aria-pressed="true"] {
  border-color: var(--text-primary);
  color: var(--text-primary);
  font-weight: 650;
}

[data-pinned] .proof-track { height: calc(var(--proof-pin-height) + min(96svh, 800px)); }
[data-pinned] .proof-pin { position: sticky; top: var(--proof-top); scroll-margin-top: var(--header-h); }

.proof-offer { align-items: center; }
.proof-offer h2 { font-size: clamp(34px, 4.3vw, 64px); }
.proof-offer .rulelink { display: inline-block; margin: 12px 18px 0 0; }
.proof-handoff-visual {
  margin: 0;
  min-width: 0;
}

.proof-files {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(6px, 1.2vw, 16px);
  align-items: center;
  background: var(--surface-raised);
  padding: clamp(8px, 2.3vw, 30px);
  overflow: hidden;
}

.proof-file-cover,
.proof-file-leaf {
  min-width: 0;
  border: 1px solid var(--border-hairline);
  background: var(--surface-canvas);
}

.proof-file-cover { position: relative; z-index: 1; overflow: hidden; }
.proof-file-cover-title { display: grid; gap: clamp(10px, 2vw, 24px); padding: clamp(10px, 2.2vw, 21px); }
.proof-file-cover-title img { display: block; width: min(100%, 100px); height: auto; }
.proof-file-cover-title strong {
  color: var(--text-primary);
  font-size: clamp(25px, 4vw, 55px);
  font-weight: 550;
  line-height: .91;
  letter-spacing: -.065em;
}

/* The cover's portrait sits in a <picture> only to share the hero's phone file; the box is the image's. */
.proof-file-picture { display: contents; }

.proof-file-portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.18;
  object-fit: cover;
  object-position: 66% 10%;
}

.proof-file-leaves { display: grid; gap: clamp(6px, 1.2vw, 16px); min-width: 0; }
.proof-file-leaf { padding: clamp(7px, 1.2vw, 16px) clamp(8px, 1.5vw, 22px); }
.proof-file-leaf strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-secondary);
  font: var(--weight-medium) clamp(11px, 1.2vw, 14px)/1.25 var(--font-mono);
}

.proof-file-leaf p { color: var(--text-primary); font-size: clamp(13px, 1.48vw, 21px); line-height: 1.3; }
.proof-handoff-visual figcaption { margin-top: 8px; color: var(--text-secondary); font-size: 12px; }

@media (min-width: 880px) {
  .proof-pin { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: center; padding-block: clamp(20px, 3svh, 38px); }
  .proof-intro h2 { max-width: 8ch; font-size: clamp(60px, 6.25vw, 90px); }
  .proof-workbench { width: min(100%, max(460px, 80svh)); justify-self: end; }
  .proof-offer { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
}

@media (max-width: 879px) {
  .proof-pin { padding-block: 20px; }
  .proof-intro .kicker { margin-bottom: 6px; }
  .proof-intro h2 { font-size: clamp(38px, 8vw, 66px); }
  .proof-intro > p:last-child { margin-top: 8px; max-width: 54ch; }
  .proof-handoff-copy { grid-row: 1; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .proof-files { view-timeline-name: --proof-handoff; --proof-file-travel: -24%; }
    .proof-file-leaf {
      animation: proof-unpack-files linear both;
      animation-timeline: --proof-handoff;
      animation-range: entry 0% cover 52%;
    }
    .proof-file-leaf + .proof-file-leaf { animation-range: entry 8% cover 62%; }

    @media (max-width: 480px) {
      .proof-files { --proof-file-travel: -8%; }
    }

    @keyframes proof-unpack-files {
      from { transform: translateX(var(--proof-file-travel)); }
      to { transform: translateX(0); }
    }
  }
}

/* The homepage contact form shares this stylesheet. */
.adaptius-contact__more { margin: 2px 0 10px; color: var(--text-secondary); font: inherit; }
.adaptius-contact__more summary { cursor: pointer; padding: 8px 0; min-height: 44px; }
