@font-face {
  font-family: RD;
  src: url("./assets/regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: RD;
  src: url("./assets/bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --blue: #1754c5;
  --ink: #10203d;
  --green: #076e24;
  --margin: clamp(16px, 4.1667vw, 80px);
  --section-gap: clamp(35px, 4.05vw, 68px);
  --ease-out: cubic-bezier(.2, .7, .3, 1);
  color: var(--ink);
  background: #fff;
  font-family: RD, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.page-shell {
  width: min(1760px, calc(100% - 2 * var(--margin)));
  margin-inline: auto;
}
main.page-shell {
  display: grid;
  gap: var(--section-gap);
  padding-top: var(--section-gap);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1944 / 809;
  background: var(--green) url("./assets/fundo-banner.svg") center / 100% 100% no-repeat;
}
.hero-layer, .hero-final {
  position: absolute;
  height: auto;
  animation: hero-fade var(--duration) var(--ease-out) var(--start) both;
}
.hero-left {
  top: 15.70%;
  left: 2.3148%;
  width: 33.4877%;
  --start: .1s;
  --duration: .56s;
}
.hero-right {
  top: 15.575%;
  left: 68.6214%;
  width: 29.1667%;
  --start: .69s;
  --duration: .53s;
}
.hero-portrait {
  top: .742%;
  left: 21.9136%;
  width: 46.6049%;
  --start: 1.25s;
  --duration: .66s;
}
.hero-final {
  inset: 0;
  width: 100%;
  --start: 1.93s;
  --duration: .4s;
}
@keyframes hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bio { padding: clamp(4px, 1vw, 18px) 0 clamp(16px, 2vw, 32px); }
.bio-intro {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.bio h2 {
  margin: 0 0 clamp(15px, 1.7vw, 26px);
  font-size: clamp(1.45rem, 2.55vw, 3.1rem);
  line-height: 1.07;
  font-weight: 700;
  letter-spacing: -.039em;
  text-transform: uppercase;
}
.bio h2 span, .bio-text strong { color: var(--blue); }
.bio-text {
  color: #253551;
  font-size: clamp(.97rem, 1.3vw, 1.29rem);
  line-height: 1.49;
  text-wrap: pretty;
}
.bio-text p { margin: 0; }
.bio-text p + p { margin-top: .55em; }
.portraits {
  display: grid;
  grid-template-columns: .9fr 1fr 1fr 1fr .9fr;
  gap: clamp(10px, 1.05vw, 20px);
  align-items: start;
  margin: clamp(25px, 3.1vw, 55px) clamp(0px, 2vw - 8px, 36px) 0;
}
.portrait-entry {
  min-width: 0;
  --phase: -.9s;
  --delay: 0ms;
}
.portrait-entry:nth-child(2) { --phase: -2.1s; --delay: 135ms; }
.portrait-entry:nth-child(3) { --phase: -3.7s; --delay: 270ms; --crop: 50% 26%; }
.portrait-entry:nth-child(4) { --phase: -1.4s; --delay: 405ms; --crop: 50% 0%; }
.portrait-entry:nth-child(5) { --phase: -4.4s; --delay: 540ms; }
@media (min-width: 1001px) {
  .portrait-entry:nth-child(n+2):nth-child(-n+4) {
    margin-top: clamp(55px, 7vw, 127px);
  }
}
.portrait-card {
  position: relative;
  margin: 0 0 clamp(17px, 1.8vw, 28px);
  animation: float 5.7s ease-in-out var(--phase) infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.portrait-frame {
  overflow: hidden;
  aspect-ratio: .85;
  border: 2px solid #edf2ff;
  border-radius: clamp(16px, 2.1vw, 37px);
  background: #101c3c;
  box-shadow: 0 9px 25px rgb(24 53 113 / .15);
}
.portrait-entry:nth-child(3) .portrait-frame { aspect-ratio: .91; }
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--crop, center);
}
figcaption {
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .44em;
  width: max-content;
  max-width: calc(100% + 4px);
  padding: .65em .84em;
  border: 3px solid #fff;
  border-radius: 100px;
  background: var(--blue);
  box-shadow: 0 4px 10px rgb(22 63 138 / .14);
  color: #fff;
  font-size: clamp(.66rem, 1vw, 1.13rem);
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
}
figcaption svg {
  flex: 0 0 1.18em;
  width: 1.18em;
  height: 1.18em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social { position: relative; background: #071f4d; }
.social > img { width: 100%; height: auto; }
.instagram-link {
  position: absolute;
  top: 7.4%;
  left: 95.8%;
  translate: -50% -50%;
  display: block;
  width: clamp(44px, 4.9vw, 76px);
  aspect-ratio: 1;
  border-radius: 23%;
  -webkit-tap-highlight-color: transparent;
}
.instagram-link:hover { box-shadow: 0 0 0 2px rgb(255 212 0 / .6); }
.instagram-link:focus-visible { outline-color: #ffd400; }
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .65rem 2rem;
  padding: clamp(24px, 3vw, 54px) clamp(0px, 1.4vw, 26px) clamp(30px, 4.05vw, 68px);
  color: #253551;
  font-size: clamp(.78rem, .92vw, .95rem);
  line-height: 1.5;
}
.footer p { margin: 0; }
.footer a { text-underline-offset: .17em; }
.footer a:hover { color: var(--blue); }
.separator { margin-inline: .24em; }

.motion-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(19px);
  transition: opacity .72s var(--ease-out) var(--delay, 0ms), transform .78s var(--ease-out) var(--delay, 0ms);
}
.motion-enabled [data-reveal].is-visible,
.motion-enabled [data-reveal]:focus-within {
  opacity: 1;
  transform: translateY(0);
}
.motion-enabled .social[data-reveal] { transform: none; }
.motion-enabled [data-reveal]:focus-within { transition-delay: 0ms; }

@media (max-width: 1000px) {
  .portraits {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: 23px;
    max-width: 800px;
    margin-inline: auto;
  }
  .portrait-entry { grid-column: span 2; }
  .portrait-entry:nth-child(4) { grid-column: 2 / span 2; }
  .portrait-entry:nth-child(5) { grid-column: 4 / span 2; }
  .portrait-entry:nth-child(3) .portrait-frame { aspect-ratio: .85; }
  figcaption { font-size: clamp(.68rem, 1.6vw, .95rem); }
}

@media (max-width: 640px) {
  main.page-shell { padding-top: 16px; }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    aspect-ratio: auto;
    gap: 21px;
    padding: 26px 0 0;
    background-image: url("./assets/fundo-mobile.svg");
    background-size: cover;
    background-position: center;
  }
  .hero-layer { position: static; }
  .hero-left { width: min(73%, 330px); }
  .hero-right { width: min(62%, 277px); }
  .hero-portrait { width: min(87%, 395px); margin-top: -2px; }
  .hero picture { display: none; }
  .bio-intro { padding-inline: 2px; }
  .instagram-link { top: 8%; left: 94.7%; width: 44px; }
  .footer { flex-direction: column; gap: 8px; }
}
@media (max-width: 520px) {
  .portraits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portrait-entry, .portrait-entry:nth-child(4) { grid-column: auto; }
  .portrait-entry:nth-child(5) {
    grid-column: 1 / -1;
    width: calc((100% - 10px) / 2);
    justify-self: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-layer, .hero-final, .portrait-card { animation: none; }
  .motion-enabled [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
