@font-face {
  font-family: 'Origin Display';
  src: url('estudo-hero/fonts/gloock-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.origin-bridge {
  background: #fff;
  padding-block: clamp(42px, 7vw, 96px);
}

.origin-bridge-grid,
.founder-opening,
.founder-reflection {
  display: grid;
  align-items: center;
  gap: clamp(24px, 6vw, 88px);
}

.origin-bridge-grid,
.founder-reflection {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.origin-bridge h2,
.founder-story h2 {
  color: #373F99;
  font: 400 clamp(36px, 5vw, 74px)/1.04 "Origin Display", Georgia, serif;
  letter-spacing: -.04em;
  margin: 0 0 22px;
}

.origin-bridge h2 {
  max-width: 15ch;
  margin: 0;
}

.origin-bridge p,
.founder-story p {
  max-width: 54ch;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  text-align: justify;
  hyphens: auto;
}

.origin-bridge .text-link {
  margin-top: 20px;
}

.founder-story {
  background: #fff;
  padding-block: clamp(44px, 7vw, 96px);
}

#historia,
#origem,
#sobre {
  scroll-margin-top: calc(var(--screen-header, 110px) + 16px);
}

.founder-opening {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

.founder-opening p + p {
  margin-top: 1em;
}

.founder-photo,
.founder-illustration {
  margin: 0;
}

.founder-photo {
  justify-self: end;
  width: min(100%, 320px);
}

.founder-photo img {
  display: block;
  width: 100%;
  height: auto;
  background: #EEEFFD;
}

.founder-photo figcaption {
  padding-top: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.founder-reflection {
  border-top: 1px solid #d8d9e0;
  margin-top: clamp(30px, 6vw, 80px);
  padding-top: clamp(24px, 5vw, 64px);
}

.founder-reflection p + p {
  margin-top: 1em;
}

.origin-points {
  display: block;
  width: 100%;
  height: auto;
  max-width: 480px;
}

.origin-points .lem,
.origin-points .ring {
  fill: none;
  stroke: #0E0F13;
  stroke-width: 2;
}

.origin-points .frag { fill: #0E0F13; }
.origin-points .ring { fill: #fff; }
.origin-points .peri { fill: #7476E8; }
.origin-points .g8-dot { fill: #FFE000; stroke: #0E0F13; stroke-width: 2; }

@media (max-width: 680px) {
  .origin-bridge-grid,
  .founder-opening,
  .founder-reflection {
    grid-template-columns: minmax(0, 1fr);
  }

  .origin-bridge p,
  .founder-story p {
    text-align: start;
  }

  .founder-photo {
    justify-self: start;
    width: min(100%, 236px);
  }
}

#ilustracao-origem {
  scroll-margin-top: calc(var(--screen-header, 110px) + 16px);
}

.origin-replay {
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.origin-replay[hidden] {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .origin-points.is-ready .frag {
    transform: translate(var(--x), var(--y));
  }

  .origin-points.is-ready .lem {
    stroke-dasharray: 1 1;
    stroke-dashoffset: 1;
  }

  .origin-points.is-ready .pop {
    transform: scale(0);
    transform-box: fill-box;
    transform-origin: center;
  }

  .origin-points.is-ready.is-playing .frag {
    transform: none;
    transition: transform 1.5s cubic-bezier(.22, 1, .36, 1) var(--d, 0s);
  }

  .origin-points.is-ready.is-playing .lem {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.8s cubic-bezier(.22, 1, .36, 1) 1.2s;
  }

  .origin-points.is-ready.is-playing .pop {
    transform: scale(1);
    transition: transform .6s cubic-bezier(.3, 1.6, .5, 1) 2.7s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .origin-replay {
    display: none;
  }
}
