:root {
  --ink: #005354;
  --accent: #f11355;
  --mint: #98dccd;
  --paper: #fff4e3;
  --soft-pink: #ffd5d8;
  --logo-color: #027878;
  --cursor-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath fill='%23f11355' stroke='white' stroke-width='1' d='M2 1l14 7-6.2 1.2-2.8 5.8z'/%3E%3C/svg%3E") 2 1, auto;
  --cursor-hand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath fill='white' stroke='%23005354' stroke-width='1.3' d='M11 3.8a2 2 0 0 1 2 2v8.1l1.1-1.8a2 2 0 0 1 3.4.3l.4.9.8-.9a2 2 0 0 1 3.3.8l.3 1 .7-.5a2 2 0 0 1 3 2.1l-1.6 6.1a7 7 0 0 1-6.8 5.2h-3.2a7 7 0 0 1-5.8-3.1L4.4 18a2.1 2.1 0 0 1 3.2-2.7L9 16.5V5.8a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") 10 4, pointer;
}

* {
  box-sizing: border-box;
}

::selection {
  color: #fff;
  background: var(--accent);
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(10px, 1.45vw, 24px);
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 0%, #008f72 0 18%, transparent 32%),
    radial-gradient(circle at 94% 100%, #f26c97 0 18%, transparent 36%),
    linear-gradient(135deg, #0b977a 0%, #f5e5c8 50%, #f8a1bb 100%);
  font-family: "Nunito", Arial, sans-serif;
  cursor: var(--cursor-arrow);
}

a,
button,
[role="button"] {
  cursor: var(--cursor-hand);
}

.shell {
  position: relative;
  width: min(1640px, calc(100vw - 48px));
  height: min(1010px, calc(100vh - clamp(20px, 2.9vw, 48px)));
  min-height: 650px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: clamp(30px, 4.1vh, 62px) clamp(34px, 4.5vw, 74px) clamp(24px, 3.8vh, 58px);
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 14% 28%, rgba(196, 240, 223, .8), transparent 32%),
    radial-gradient(circle at 72% 42%, rgba(255, 240, 217, .9), transparent 36%),
    radial-gradient(circle at 88% 82%, rgba(255, 204, 210, .9), transparent 28%),
    linear-gradient(130deg, #e7f5ea 0%, #fff4df 57%, #ffd7dc 100%);
  box-shadow: 0 30px 80px rgba(5, 72, 60, .28);
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  min-height: clamp(132px, 20vh, 245px);
}

.brand {
  width: clamp(220px, 19.5vw, 320px);
  display: block;
}

.brand img {
  width: 100%;
  display: block;
}

.menu {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.4vw, 64px);
  padding-top: 8px;
  font-size: clamp(18px, 1.55vw, 25px);
  font-weight: 900;
}

.menu a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.menu a:hover,
.menu a:focus-visible,
.menu a.is-active {
  color: var(--accent);
}

.join,
.cta {
  color: #fff !important;
  background: linear-gradient(135deg, #f7185d, #ed0d4d);
  box-shadow: 0 16px 28px rgba(241, 19, 85, .28);
}

.join {
  padding: clamp(12px, 1.1vw, 17px) clamp(22px, 2.1vw, 34px);
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(430px, 650px) 1fr;
  align-items: center;
  gap: clamp(28px, 3.4vw, 54px);
  min-height: 0;
  margin-top: clamp(-38px, -3.5vh, -8px);
  transition: grid-template-columns .55s ease, gap .55s ease;
}

.copy h1 {
  max-width: 650px;
  margin: 0 0 clamp(22px, 4.2vh, 48px);
  font-size: clamp(31px, min(3.25vw, 5.8vh), 60px);
  line-height: 1.2;
  font-weight: 900;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 260px;
  padding: clamp(14px, 1.55vh, 19px) 30px;
  border-radius: 999px;
  text-decoration: none;
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 900;
}

.cta span {
  font-size: 32px;
  line-height: .6;
}

.orbit {
  position: relative;
  width: min(720px, 48vw, calc(100vh - 420px));
  min-width: 430px;
  aspect-ratio: 1;
  justify-self: center;
  isolation: isolate;
  container-type: size;
}

.orbit-rings,
.orbit-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.orbit-rings span {
  border: 1.5px solid rgba(0, 165, 155, .28);
}

.orbit-rings span:nth-child(2) {
  inset: 8.5%;
}

.orbit-rings span:nth-child(3) {
  inset: 18%;
}

.orbit-rings span:nth-child(4) {
  inset: 29%;
}

.anniversary {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44cqw;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
}

.anniversary strong {
  display: block;
  font-size: clamp(38px, 8.2cqw, 70px);
  line-height: .9;
  font-weight: 900;
}

.anniversary span {
  display: block;
  margin-top: 8px;
  font-size: clamp(15px, 2.8cqw, 22px);
  font-weight: 900;
}

.avatar {
  --size: clamp(62px, 6.3cqw, 82px);
  --radius: 45cqw;
  position: absolute;
  top: calc(50% - var(--size) / 2);
  left: calc(50% - var(--size) / 2);
  width: var(--size);
  height: var(--size);
  padding: 0;
  border: 2px solid #7ef2d1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 16px 22px rgba(0, 76, 74, .18), 0 0 26px rgba(89, 233, 201, .45);
  animation: orbit-spin 42s linear infinite;
  animation-delay: var(--delay);
  transform: rotate(var(--angle)) translateX(var(--radius)) rotate(calc(0deg - var(--angle)));
  z-index: 2;
}

.orbit-two {
  --size: clamp(60px, 6cqw, 78px);
  --radius: 33cqw;
  border-color: #ff9aaf;
  box-shadow: 0 16px 22px rgba(0, 76, 74, .16), 0 0 24px rgba(241, 19, 85, .28);
  animation-duration: 42s;
}

.orbit-three {
  --size: clamp(56px, 5.6cqw, 72px);
  --radius: 21cqw;
  border-color: #ffc55d;
  box-shadow: 0 16px 22px rgba(0, 76, 74, .16), 0 0 20px rgba(255, 188, 71, .32);
  animation-duration: 42s;
}

.orbit-free {
  --size: clamp(52px, 5cqw, 68px);
  --x: 50%;
  --y: 50%;
  top: var(--y);
  left: var(--x);
  border-color: #7de9ff;
  box-shadow: 0 16px 22px rgba(0, 76, 74, .16), 0 0 22px rgba(125, 233, 255, .34);
  animation: free-drift 8s ease-in-out infinite alternate;
  animation-delay: var(--float-delay);
  transform: translate(-50%, -50%);
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

@keyframes orbit-spin {
  from {
    transform: rotate(var(--angle)) translateX(var(--radius)) rotate(calc(0deg - var(--angle)));
  }
  to {
    transform: rotate(calc(var(--angle) + 360deg)) translateX(var(--radius)) rotate(calc(0deg - var(--angle) - 360deg));
  }
}

@keyframes free-drift {
  from {
    transform: translate(-50%, -50%) translate(-10px, 8px);
  }
  to {
    transform: translate(-50%, -50%) translate(12px, -10px);
  }
}

.profile-card {
  position: absolute;
  top: -24px;
  right: -18px;
  width: min(430px, 75vw);
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(0, 83, 84, .12);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 24px 60px rgba(0, 83, 84, .22);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translate(28px, -20px) scale(.95);
  transition: opacity .36s ease, transform .36s ease, visibility .36s ease;
  z-index: 5;
}

.profile-card.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 0) scale(1);
}

.profile-card > img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.profile-card h2 {
  margin: 0 30px 6px 0;
  font-size: 19px;
  line-height: 1.1;
}

.profile-card p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.35;
}

.close-card {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font: 900 22px/1 Arial, sans-serif;
}

.bar-row {
  display: grid;
  grid-template-columns: 72px 1fr 24px;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 12px;
  font-weight: 900;
}

.bar-row span:nth-child(2) {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 83, 84, .13);
}

.bar-row i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #ff7e9d);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 18px rgba(241, 19, 85, .22);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.profile-lattes {
  color: var(--accent);
  background: rgba(241, 19, 85, .1);
  box-shadow: none;
}

.partners {
  display: grid;
  grid-template-columns: 1.25fr auto 1fr auto 1.35fr auto 1fr auto 1.18fr;
  align-items: center;
  gap: clamp(20px, 2.3vw, 36px);
  margin-top: clamp(12px, 3vh, 46px);
}

.partner {
  min-height: clamp(62px, 9vh, 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--logo-color);
  text-decoration: none;
  filter: sepia(1) saturate(13) hue-rotate(132deg) brightness(.55);
  transition: filter .3s ease, color .3s ease, transform .3s ease;
}

.partner:hover,
.partner:focus-visible {
  color: var(--accent);
  filter: sepia(1) saturate(14) hue-rotate(295deg) brightness(.92);
}

.partner img {
  max-width: 100%;
  max-height: clamp(58px, 8.7vh, 96px);
  object-fit: contain;
}

.partner img[src$="fapes.png"] {
  max-height: clamp(56px, 7.8vh, 86px);
  transform: scale(.96);
}

.partner img[src$="ifes.png"] {
  width: clamp(96px, 9vw, 154px);
  height: clamp(58px, 8.7vh, 96px);
  object-fit: cover;
  object-position: left center;
}

.partner img[src$="educimat.png"] {
  max-height: clamp(62px, 8.5vh, 94px);
}

.divider {
  width: 1px;
  height: clamp(54px, 7.5vh, 78px);
  background: rgba(0, 83, 84, .24);
}

.partner-text {
  gap: 9px;
  filter: none;
  font-weight: 900;
  transform: scale(.86);
  transform-origin: center;
}

.partner-text:hover,
.partner-text:focus-visible {
  filter: none;
}

.u-mark {
  font-size: clamp(38px, 3.2vw, 48px);
  line-height: 1;
}

.partner-text small {
  font-size: clamp(9px, .72vw, 11px);
  line-height: 1;
  text-transform: uppercase;
}

.ebook-view {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 74px minmax(0, 1fr);
  gap: 0;
  padding: 22px;
  border-radius: inherit;
  background: rgba(255, 248, 234, .96);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(26px);
  z-index: 20;
  transition: opacity .55s ease, transform .55s ease, visibility .55s ease;
}

.history-view {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 46px minmax(0, 1fr);
  gap: 0;
  padding: 14px 18px 18px;
  overflow: hidden;
  border-radius: inherit;
  background: rgba(255, 248, 234, .96);
  box-shadow: none;
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px) scale(.985);
  transition: opacity .55s ease, transform .55s ease, visibility .55s ease;
  z-index: 12;
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
}

.history-view iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: 18px;
  background: transparent;
}

.contributions-view {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 42px);
  border-radius: inherit;
  background: rgba(255, 248, 234, .96);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px) scale(.985);
  transition: opacity .55s ease, transform .55s ease, visibility .55s ease;
  z-index: 14;
}

.contributions-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: 100%;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(20px, 3vw, 42px);
  padding: clamp(24px, 4vw, 48px);
  overflow: auto;
  border: 1px solid rgba(0, 83, 84, .12);
  border-radius: 24px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 30px 90px rgba(0, 83, 84, .22);
}

.close-contributions {
  top: 18px;
  right: 18px;
}

.contributions-copy span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.contributions-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  font-weight: 900;
}

.contributions-copy p {
  max-width: 360px;
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
}

.contributions-chart {
  align-self: center;
}

.contribution-row {
  display: grid;
  grid-template-columns: minmax(120px, 230px) 1fr 58px;
  align-items: center;
  gap: 14px;
  margin: 17px 0;
  font-weight: 900;
}

.contribution-row > span:first-child {
  font-size: 15px;
}

.contribution-row .track {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 83, 84, .13);
}

.contribution-row i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #ff7e9d);
}

.contribution-row strong {
  text-align: right;
  font-size: 20px;
}

.contributions-details {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.detail-pill {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 83, 84, .08);
  font-size: 13px;
  font-weight: 900;
}

.detail-pill strong {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 22px;
}

.ebook-head {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.ebook-head span {
  min-width: 180px;
  text-align: center;
  font-weight: 900;
}

.ebook-head button,
.back-home {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 22px rgba(241, 19, 85, .25);
  font-weight: 900;
}

.ebook-head button {
  width: 46px;
  height: 46px;
  font-size: 34px;
  line-height: 1;
}

.back-home {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 32px;
}

.book-stage {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.book {
  width: min(96%, 1180px);
  height: min(100%, 780px);
  box-shadow: 0 30px 90px rgba(0, 83, 84, .22);
}

.page {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 2px;
}

.page img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.ebook-page {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 46px);
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(241, 19, 85, .12), transparent 34%),
    linear-gradient(145deg, #fffdfa 0%, #f6fff9 100%);
  border: 1px solid rgba(0, 83, 84, .08);
  font-weight: 800;
}

.ebook-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 83, 84, .14), transparent 6%, transparent 94%, rgba(0, 83, 84, .12)),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .55), transparent 22%),
    radial-gradient(circle at 0% 100%, rgba(0, 83, 84, .08), transparent 26%);
  mix-blend-mode: multiply;
  opacity: .78;
}

.ebook-page::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 54px;
  height: 54px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .9) 0 48%, rgba(0, 83, 84, .16) 49% 54%, transparent 55%);
  opacity: .52;
}

.ebook-page.cover {
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(0, 141, 114, .22), transparent 34%),
    radial-gradient(circle at 82% 80%, rgba(241, 19, 85, .18), transparent 36%),
    linear-gradient(145deg, #fff8e9 0%, #edf9f2 100%);
}

.ebook-page h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1;
  font-weight: 900;
}

.ebook-page h3 {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 900;
}

.ebook-page p,
.ebook-page li {
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.45;
}

.ebook-page ul {
  margin: 0;
  padding-left: 22px;
}

.ebook-page .page-number {
  align-self: flex-end;
  color: rgba(0, 83, 84, .52);
  font-size: 14px;
  font-weight: 900;
}

.shell.ebook-open .panel-fade {
  opacity: 0;
  transform: translateY(22px) scale(.985);
  pointer-events: none;
}

.shell.ebook-open .orbit {
  opacity: .08;
}

.shell.ebook-open .ebook-view {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.shell.history-open .copy,
.shell.history-open .orbit,
.shell.history-open .partners {
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px) scale(.985);
}

.shell.history-open .history-view {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.shell.contributions-open .copy,
.shell.contributions-open .orbit,
.shell.contributions-open .partners {
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px) scale(.985);
}

.shell.contributions-open .contributions-view {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.shell.team-open .copy,
.shell.team-open .partners {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  pointer-events: none;
  transform: translateY(18px) scale(.985);
}

.shell.team-open .hero {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: -34px;
  align-items: start;
  justify-items: center;
}

.shell.team-open .orbit {
  width: min(840px, 76vw, calc(100vh - 220px));
  min-width: min(680px, 88vw);
  transform: translateY(-18px);
}

.shell.team-open .profile-card {
  top: 0;
  right: 0;
}

.panel-fade {
  transition: opacity .55s ease, transform .55s ease;
}

.copy,
.partners {
  transition: opacity .55s ease, transform .55s ease;
}

@media (max-width: 1100px) {
  body {
    padding: 14px;
    overflow-y: auto;
  }

  .shell {
    width: calc(100vw - 28px);
    height: auto;
    min-height: auto;
    display: block;
    padding: 34px 24px;
  }

  .topbar {
    min-height: auto;
    align-items: center;
    flex-wrap: wrap;
  }

  .brand {
    width: 220px;
  }

  .menu {
    width: 100%;
    overflow-x: auto;
    gap: 28px;
    padding-bottom: 10px;
    font-size: 18px;
  }

  .join {
    padding: 12px 22px;
  }

  .hero {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .copy h1 {
    margin-bottom: 30px;
    font-size: clamp(30px, 8vw, 44px);
  }

  .orbit {
    width: min(92vw, 620px);
    min-width: 0;
  }

  .partners {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 34px;
  }

  .divider {
    width: 100%;
    height: 1px;
  }

  .book {
    width: 100%;
    height: min(100%, 74vh);
  }

  .ebook-view {
    inset: 0;
    padding: 14px;
    grid-template-rows: 64px minmax(0, 1fr);
  }

  .history-view {
    inset: 0;
    padding: 10px 12px 14px;
    grid-template-rows: 42px minmax(0, 1fr);
  }

  .contributions-panel {
    grid-template-columns: 1fr;
  }

  .contributions-details {
    grid-template-columns: 1fr;
  }

  .contribution-row {
    grid-template-columns: 1fr 1fr 48px;
  }
}

@media (min-width: 1101px) and (max-height: 820px) {
  .shell {
    min-height: 600px;
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .topbar {
    min-height: 112px;
  }

  .brand {
    width: 210px;
  }

  .hero {
    margin-top: -16px;
  }

  .copy h1 {
    max-width: 610px;
    font-size: clamp(29px, 2.85vw, 46px);
    margin-bottom: 24px;
  }

  .cta {
    min-width: 232px;
    padding: 12px 24px;
  }

  .orbit {
    width: min(540px, 43vw, calc(100vh - 310px));
  }

  .avatar {
    --size: 70px;
  }

  .orbit-two {
    --size: 68px;
  }

  .orbit-three {
    --size: 64px;
  }

  .partners {
    margin-top: 8px;
  }
}
