/*
 * Proof section (DIRECTION 2.2 section 9, 5.2 to 5.6). WP12.
 * Uses the tokens from css/tokens.css (--paper, --raised, --deep, --ink, --charcoal, --steel, --threat)
 * and defines none of its own. Layout values below are local to .proof.
 * Paper page, 12-column grid, one idea per block, 160 px between blocks.
 */

.proof {
  --proof-margin: clamp(20px, 3.4vw, 56px);
  --proof-gutter: clamp(16px, 1.7vw, 28px);
  --proof-max: 1600px;
  --proof-ink-72: color-mix(in srgb, var(--ink) 72%, transparent);
  --proof-ink-on-raised: color-mix(in srgb, var(--ink) 66%, var(--raised));
  position: relative;
  padding-block: 160px;
  color: var(--ink);
}
/* integration r3 (design review r3-0 must): in the film the curtain follows the SABLE launch closely; page mode keeps 160 */
html.stage .proof { padding-block: 72px 160px; }

.proof *,
.proof *::before,
.proof *::after { box-sizing: border-box; }

.proof-block {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--proof-gutter);
  width: 100%;
  max-width: calc(var(--proof-max) + 2 * var(--proof-margin));
  margin-inline: auto;
  padding-inline: var(--proof-margin);
}

.proof-block + .proof-block { margin-top: 160px; }

/* type (5.2) */
.proof-h2 {
  margin: 0;
  font-size: var(--fs-h2, clamp(34px, 4.6vw, 80px));
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  text-wrap: balance;
}

.proof-label {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
}

.proof-caption {
  margin: 0;
  color: var(--steel);
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-wrap: balance;
}

.proof-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.proof-textbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color 200ms ease;
}

@media (hover: hover) { .proof-textbtn:hover { text-decoration-color: currentColor; } }

.proof :where(a, button, summary, canvas, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.proof .proof-globe__canvas:focus-visible { border-radius: 50%; outline-offset: 6px; }

/* block 1 · incident globe (5.6) */
.proof-globe { align-items: center; }

.proof-globe__title {
  grid-column: 1 / 6;
  align-self: start;
  /* integration r3 (design review r3-0): the headline arrives first and the globe follows it (centred on a 620 px globe,
     the H2 only appeared about 80 lvh into the proof, after 65 lvh of blank paper behind the SABLE rail) */
  padding-top: clamp(24px, 6vh, 64px);
  max-width: 9.5em;
}

.proof-globe__main {
  grid-column: 6 / 13;
  justify-self: end;
  width: min(100%, 720px); /* integration r3 (design review r3-1): 720 px, was 620 */
  /* the globe follows the headline in (its top sat 54 px above the H2 text) */
  margin-top: calc(clamp(24px, 6vh, 64px) + 48px);
}

.proof-globe__figure { margin: 0; }

.proof-globe__stage { position: relative; }

.proof-globe__canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.proof-globe__figure .proof-caption { margin-top: 20px; }

.proof-globe__controls {
  position: relative;
  margin-top: 8px;
}

.proof-globe__controls > .proof-textbtn {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
}
/* integration r2 (design review r2-1): one UI line under the globe. The pause button shows only on keyboard focus
   (WCAG 2.2.2 stays met through it); a pointer resting on the globe eases the rotation to a stop (globe.js). */
#proof-globe-pause:not(:focus-visible) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.proof-incidents > summary {
  list-style: none;
}

.proof-incidents > summary::-webkit-details-marker { display: none; }

.proof-incidents__summary::after {
  content: "";
  width: 11px;
  height: 11px;
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat;
}

.proof-incidents[open] .proof-incidents__summary::after {
  background: linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat;
}

.proof-incidents__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  max-height: min(560px, 64vh);
  margin: 16px 0 0;
  padding: 0 12px 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--deep) transparent;
}

.proof-incident { padding: 0 0 28px; }

.proof-incident__date,
.proof-incident__source {
  display: block;
  margin: 0;
  color: var(--steel);
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.proof-incident__title {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.proof-incident__detail {
  margin: 6px 0 8px;
  text-wrap: pretty;
  color: var(--steel);
  font-size: 15px;
  line-height: 1.45;
}

.proof-incident__source a,
.proof-tip__source a { color: inherit; text-underline-offset: 3px; }

.proof-nowrap { white-space: nowrap; }

/* headline reveal (integration r3, design review r3-0): the proof H2s rise through masks like every film heading, once,
   when a third of the heading is in view (main.js); page mode and reduced motion show them static */
html.stage .proof-h2.split .ln-i { transform: translateY(calc(100% + 0.3em)); }
html.stage .proof-h2.split.is-in .ln-i { transform: none; transition: transform var(--t-reveal) var(--ease-out-expo) calc(var(--i, 0) * var(--stagger)); }

/* hover or tap card: label and small styles on --raised */
.proof-tip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: min(292px, calc(100% - 16px));
  padding: 16px 18px 15px;
  border-radius: 16px;
  background: var(--raised);
  box-shadow: 0 1px 2px rgb(20 20 20 / 0.06), 0 14px 36px rgb(20 20 20 / 0.09);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.proof-tip.is-on { opacity: 1; }

.proof-tip > p { margin: 0; }

.proof-tip__date,
.proof-tip__source {
  color: var(--proof-ink-on-raised);
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.proof-tip > .proof-tip__title {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.proof-tip > .proof-tip__detail {
  margin-top: 6px;
  text-wrap: pretty;
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.proof-tip > .proof-tip__source { margin-top: 10px; }

/* block 2 · founders */
.proof-founders { align-items: start; }

.proof-founders__title {
  grid-column: 1 / 6;
  max-width: 9.5em;
}

.proof-founders__cards {
  grid-column: 6 / 13;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--proof-gutter);
}

.proof-founder {
  /* WP13 (design review 2): photo straight on paper, no raised card around it (card in card read as a template) */
  margin: 0;
}

.proof-founder__photo {
  display: block;
  width: 100%;
  height: auto;
  /* integration r2 (lead request 18:58): a 6:5 crop from the top of the 4:5 portraits, so the face and the bio fit one
     screen together (a 1280x720 scroll showed only crossed arms under the nav) with the eyes at 35 to 38 % of the frame
     height: Alessandro's curls sit at the top of his photo (0 %), Jasper's photo has 9 % headroom to trim */
  aspect-ratio: 6 / 5;
  object-fit: cover;
  object-position: 50% 0%;
  border-radius: 20px;
  background: var(--deep);
}
.proof-founder__photo[src*='founder-jasper'] { object-position: 50% 9%; }

.proof-founder__text { padding: 20px 0 0; }

.proof-founder__name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.proof-founder__role {
  margin: 4px 0 0;
  color: var(--steel);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.proof-founder__bio {
  margin: 16px 0 0;
  text-wrap: pretty;
  font-size: 17px;
  font-weight: 450;
  line-height: 1.5;
}

/* desktop (integration r3, design review r3-1): the H2 in columns 1 to 4, top aligned with the photos in columns 5 to 12,
   so headline, photos and bios share one screen and no columns stand empty beside the photos (WP13 had it as two
   full-width lines above them) */
@media (min-width: 900px) {
  .proof-founders__title { grid-column: 1 / 5; max-width: none; padding-right: var(--proof-gutter); }
  .proof-founders__cards { grid-column: 5 / 13; }
}

/* block 3 · press and backing: label left and the YC line right on one row, logos below */
.proof-press { align-items: center; }

.proof-press__title { grid-column: 1 / 7; grid-row: 1; }

.proof-press__row {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.proof-press__row li { flex: 0 1 auto; min-width: 0; }

.proof-press__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  opacity: 0.72;
  transition: opacity 200ms ease;
}

@media (hover: hover) { .proof-press__link:hover { opacity: 1; } }

.proof-press__link img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 40px;
  /* integration r2 (design review r2-0 could): every mark in one ink tone on the paper (boxed, seal, thin and bold
     treatments read ragged next to the clean type) */
  filter: grayscale(1) contrast(1.15);
  mix-blend-mode: multiply;
}
/* optical sizes (WP13, design review 2): the square DCD mark read tiny next to the long word marks; integration r3
   (design review r3-0 could): 40 px base as DIRECTION 9 block 3, same optical ratios */
.proof-press__link img[src*='data-center-dynamics'] { height: 52px; }
.proof-press__link img[src*='edr-magazine'] { height: 42px; }
.proof-press__link img[src*='unmanned-airspace'] { height: 45px; }

.proof-yc {
  grid-column: 7 / -1;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.proof-yc__mark {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  color: var(--ink);
}

.proof-yc__y { fill: var(--paper); }

/* narrow desktops and tablets: the six logos still fit one row */
@media (max-width: 1199px) {
  .proof-press__row { gap: 24px; }
  .proof-press__link img { height: 32px; }
  .proof-press__link img[src*='data-center-dynamics'] { height: 42px; }
  .proof-press__link img[src*='edr-magazine'] { height: 34px; }
  .proof-press__link img[src*='unmanned-airspace'] { height: 36px; }
}

/* phones and narrow tablets: one column */
@media (max-width: 899px) {
  .proof { padding-block: 112px; }
  html.stage .proof { padding-block: 48px 112px; }
  .proof-block + .proof-block { margin-top: 112px; }
  .proof-globe__title,
  .proof-globe__main,
  .proof-founders__title,
  .proof-founders__cards { grid-column: 1 / -1; }
  .proof-globe__title,
  .proof-founders__title { max-width: 11em; }
  .proof-globe__main { justify-self: stretch; width: auto; margin-top: 40px; }
  .proof-founders__cards { margin-top: 40px; }
  .proof-press__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
    margin-top: 24px;
  }
  .proof-press__link img { height: 28px; }
  .proof-press__link img[src*='data-center-dynamics'] { height: 36px; }
  .proof-press__title { grid-column: 1 / -1; }
  .proof-yc { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin-top: 64px; }
}

@media (max-width: 599px) {
  .proof-press__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* integration r2 (design review r2-1): the two founders side by side, about 520 px instead of 2.5 screens of portraits */
  /* integration r3 (design review r3-1): photos, names and roles stay side by side, the two bios run full width below
     them at 16/1.5 (two 170 px columns of 8-line bios read as dense) */
  .proof-founders__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 0; }
  .proof-founder, .proof-founder__text { display: contents; }
  .proof-founder__photo { border-radius: 14px; grid-row: 1; }
  .proof-founder__name { font-size: 17px; grid-row: 2; padding-top: 14px; }
  .proof-founder__role { font-size: 13px; grid-row: 3; }
  .proof-founder:nth-of-type(1) :is(.proof-founder__photo, .proof-founder__name, .proof-founder__role) { grid-column: 1; }
  .proof-founder:nth-of-type(2) :is(.proof-founder__photo, .proof-founder__name, .proof-founder__role) { grid-column: 2; }
  .proof-founder .proof-founder__bio { grid-column: 1 / -1; font-size: 16px; line-height: 1.5; margin-top: 16px; }
  .proof-founder:nth-of-type(1) .proof-founder__bio { grid-row: 4; margin-top: 24px; }
  .proof-founder:nth-of-type(2) .proof-founder__bio { grid-row: 5; }
  .proof-incidents__list { grid-template-columns: minmax(0, 1fr); max-height: 70vh; }
  .proof-tip { width: min(280px, calc(100% - 16px)); }
}

@media (prefers-reduced-motion: reduce) {
  .proof-tip,
  .proof-textbtn,
  .proof-press__link { transition: none; }
}

/* Oct 3 (Jasper: "bridge mismatch"): the two portraits were crops of one photo, so side by side the Golden Gate broke in
   two. Now one uncut photo of both founders (press kit marin-headlands-02, same paper grade) spans both columns, with each
   name and bio under the right person; phones get a tighter 4:3 crop so the faces stay large. */
.proof-founders__pair { grid-column: 1 / -1; display: block; margin: 0 0 4px; }
.proof-founders__pairimg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  background: var(--deep);
}
@media (max-width: 599px) {
  .proof-founders__pair { grid-row: 1; }
  .proof-founders__pairimg { aspect-ratio: 4 / 3; border-radius: 14px; }
}
