/* Credibility bento: portrait, mark, roles card and the call-to-action panel. Each tile's outline
   draws with the scroll; when it completes the tile's contents fade in. */
/* credibility bento (from Figma 2126-911): portrait, mark, now/before card, the long panel */
.bento-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 40px 0 96px;
}
.bento {
  width: min(1240px, 100%);
  min-height: 577px;
  display: grid;
  grid-template-columns: minmax(0, 398fr) minmax(0, 810fr);
  gap: 25px;
}
.bento > * {
  min-width: 0;
  min-height: 0;
}
.b-photo {
  margin: 0;
  position: relative;
  border: 2px solid var(--line);
  border-radius: 16px;
}
.b-photo img,
.b-photo video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 14px;
}
/* the video runs under the tile's border and is clipped to its outer rounded edge; the white ring
   is drawn over it, so no compositor seam (Safari) can show as a gap between picture and line */
.b-photo video {
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border-radius: 0;
  clip-path: inset(0 round 16px);
}
.b-photo::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 1;
  box-sizing: border-box;
  border: 2px solid var(--line);
  border-radius: 16px;
  pointer-events: none;
}
.js .bento .b-photo::after {
  border-color: transparent;
}
.js .bento .b-photo.is-done::after {
  border-color: var(--line);
}
.b-right {
  display: grid;
  grid-template-rows: auto auto;
  gap: 25px;
}
.b-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 25px;
}
.b-mark {
  position: relative;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #000;
  min-height: 260px;
}
.b-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: url(../img/bento-texture.jpg) center/cover;
}
.b-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.5);
}
.b-mark canvas {
  position: relative;
  z-index: 1;
  width: min(240px, 70%);
  aspect-ratio: 26 / 12;
  height: auto;
  display: block;
}
.b-card {
  box-sizing: border-box;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.b-card.light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  justify-content: space-between;
}
.b-card h3 {
  margin: 0;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.3;
  text-wrap: balance;
}
.b-card p,
.b-card li {
  margin: 0;
  font-family: var(--font-utility);
  font-size: 14px;
  line-height: 1.4;
}
.b-card .label {
  font-family: var(--font-utility);
  font-size: 14px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.55);
  margin: 0 0 6px;
}
.b-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.b-card .body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
}
.b-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.b-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  background: transparent;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}
.b-chip.tool {
  width: 164px;
}
.b-chip img {
  width: 22px;
  height: 22px;
  display: block;
}
.b-chip:hover,
.b-chip:focus-visible {
  background: var(--fg);
  color: var(--bg);
}
.b-chip:hover img,
.b-chip:focus-visible img {
  filter: invert(1);
}
.b-chip.solid {
  background: var(--fg);
  color: var(--bg);
  font-weight: 500;
}
.b-chip svg {
  width: 22px;
  height: 22px;
  display: block;
  flex: none;
}
.b-chip.solid:hover {
  background: var(--chip);
  color: var(--fg);
}
/* bento entrance: each tile's outline draws as the page scrolls; when it completes, the tile's contents fade in */
.tile {
  position: relative;
}
.tile .draw {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}
.tile .draw path {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
}
.js .bento .tile {
  border-color: transparent;
}
.js .bento .b-mark {
  border: 2px solid transparent;
}
.js .bento .b-card.light {
  background: transparent;
  transition: background-color 0.6s ease;
}
.js .bento .b-mark::before,
.js .bento .b-mark::after {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.js .bento .tile > :not(.draw) {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.7s ease,
    transform 0.8s var(--ease);
}
.js .bento .tile.is-done {
  border-color: var(--line);
}
.js .bento .b-mark.is-done {
  border-color: transparent;
}
.js .bento .b-card.light.is-done {
  background: var(--paper);
  border-color: var(--paper);
}
.js .bento .tile.is-done .draw {
  opacity: 0;
}
.js .bento .b-mark.is-done::before,
.js .bento .b-mark.is-done::after {
  opacity: 1;
}
.js .bento .tile.is-done > :not(.draw) {
  opacity: 1;
  transform: none;
}
.js .bento .b-mark.is-done .draw {
  opacity: 0;
  transition: opacity 0.6s ease;
  transition-delay: 0.1s;
}
@media (prefers-reduced-motion: reduce) {
  .js .bento .tile,
  .js .bento .tile > :not(.draw),
  .js .bento .b-card.light,
  .js .bento .b-mark::before,
  .js .bento .b-mark::after,
  .js .bento .tile .draw {
    transition: none !important;
  }
}
@media (max-width: 1100px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .b-photo {
    aspect-ratio: 4 / 5;
    max-height: 560px;
    width: 100%;
    box-sizing: border-box;
  }
}
@media (max-width: 700px) {
  .b-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .b-mark {
    min-height: 200px;
  }
  .b-card {
    padding: 28px;
  }
  .b-card h3 {
    font-size: 24px;
  }
  .b-chip.tool {
    width: auto;
    flex: 1 1 140px;
  }
}
