@font-face {
  font-family: Sora;
  src: url("assets/fonts/Sora.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}

@font-face {
  font-family: Campton;
  src: url("assets/fonts/Campton-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: Campton;
  src: url("assets/fonts/Campton-Book.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Campton;
  src: url("assets/fonts/Campton-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #0e0e0e;
  --panel: #151515;
  --border: #222;
  --text: #fff;
  --rail: #2a2a2a;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--text); font-family: Campton, Arial, sans-serif; }
main { overflow: clip; }
img { display: block; max-inline-size: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid #bcacff; outline-offset: 4px; }

.links {
  position: relative;
  isolation: isolate;
  padding-block: 120px 110px;
}

.links::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -2;
  height: 1080px;
  background: url("assets/grade.svg") top center / 1920px 1080px no-repeat;
  opacity: .22;
  pointer-events: none;
}

.brand {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-inline: 16px;
}

.brand__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 3vw, 42px);
  width: min(100%, 740px);
}

.brand__values {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c0c0c0;
  font: 400 clamp(14px, 1.45vw, 19px)/1.2 Campton, Arial, sans-serif;
}

.brand__portrait {
  width: clamp(120px, 15vw, 148px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 36%;
  border-radius: 50%;
}

.brand__wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font: 300 clamp(17px, 2.1vw, 23px)/1 Campton, Arial, sans-serif;
  letter-spacing: .025em;
  white-space: nowrap;
}

.brand__icon { flex: none; }

.clients {
  --clients-gap: 13px;
  --clients-visible: 10;
  --clients-duration: 80s;
  width: 47.21%;
  margin: 0 auto 50px;
  padding: 10px;
  scroll-margin-top: 36px;
}

.clients__viewport {
  container-type: inline-size;
  overflow-x: auto;
}

.clients__track {
  display: flex;
  width: max-content;
}

.clients__list {
  display: flex;
  gap: var(--clients-gap);
  margin: 0;
  padding: 0 var(--clients-gap) 0 0;
  list-style: none;
}

.clients__list[aria-hidden="true"] { display: none; }
.clients__viewport[data-animated] .clients__list[aria-hidden="true"] { display: flex; }

.clients__list li {
  display: grid;
  align-content: start;
  gap: 4px;
  width: calc((100cqi + var(--clients-gap)) / var(--clients-visible) - var(--clients-gap));
  text-align: center;
  color: #c0c0c0;
  font: 400 7px/1 Arial, sans-serif;
}

.clients__list img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  padding: 1px;
  border: 1px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(var(--canvas), var(--canvas)) padding-box,
    linear-gradient(225deg, #a733cb, #e00087 32%, #fa334f 60%, #ff7a00 82%, #ffcf54) border-box;
}

.clients__viewport[data-animated] { overflow: clip; }

.clients__viewport[data-animated] .clients__track { animation: clients-scroll var(--clients-duration) linear infinite; }

@keyframes clients-scroll {
  to { transform: translateX(-50%); }
}

@media (max-width: 1366px) {
  .clients { width: 704.688px; }
}

@media (max-width: 1024px) {
  .clients { width: 505.672px; }
}

@media (767px <= width < 1024px) {
  .clients { --clients-visible: 7; }
}

@media (max-width: 767px) {
  .clients { width: calc(100% - 40px); }
}

@media (width < 767px) {
  .clients {
    --clients-gap: 5px;
    --clients-visible: 6;
    --clients-duration: 40s;
  }
}

.side-mark {
  position: absolute;
  top: 258px;
  left: max(16px, calc(50% - 566px));
  width: 65px;
  height: 720px;
  z-index: -1;
}

.side-mark span {
  position: absolute;
  inset: 50% auto auto 50%;
  font: 300 70px/1 Campton, Arial, sans-serif;
  letter-spacing: .16em;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.ambient {
  position: absolute;
  right: max(0px, calc(50% - 520px));
  bottom: 100px;
  width: 571px;
  height: auto;
  z-index: -1;
  opacity: .25;
  transform: translate3d(0, var(--ambient-y, 0px), 0) scale(var(--ambient-scale, 1));
  transform-origin: center;
  animation: ambient-light 5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ambient-light {
  from { opacity: .18; }
  to { opacity: .38; }
}

.socials {
  position: fixed;
  right: 0;
  bottom: 40%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  width: 91px;
  padding: 20px;
  border-radius: 10px 0 0 10px;
  background: var(--rail);
}

.socials a { display: grid; min-width: 0; height: 50px; place-items: center; border-radius: 6px; }
.socials a:hover { background: #3a3a3a; }

.cards {
  display: grid;
  gap: 72px;
  width: min(600px, calc(100% - 60px));
  margin-inline: auto;
}

.card {
  overflow: hidden;
  min-width: 0;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
}

.link-card {
  display: grid;
  grid-template-columns: 53.333% 46.667%;
  min-height: 289px;
  transition: transform .35s ease, background-color .35s ease;
}

.link-card__art { display: block; grid-column: 2; grid-row: 1; min-width: 0; }
.link-card__art picture { display: contents; }
.link-card__art img { width: 100%; height: 100%; object-fit: cover; }

.link-card__body {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  min-width: 0;
  padding: 28px 37px;
}

.link-card__body .brand__icon { margin-bottom: 14px; }

.link-card h2 {
  margin: 0 0 26px;
  font: 600 16px/1.4 Sora, Arial, sans-serif;
}

.link-card h2 a { text-decoration: none; }
.link-card--portfolio h2 { font-size: 14px; }

.link-card--youtube { grid-template-columns: 39% 61%; }

.link-card--youtube .link-card__art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #111;
  mask-image: linear-gradient(to right, transparent, #000 13%);
}

.link-card--youtube .link-card__art::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(24%, 72px);
  backdrop-filter: blur(9px);
  mask-image: linear-gradient(to right, #000 12%, transparent);
  pointer-events: none;
}

.link-card--youtube .link-card__art img {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  object-position: left center;
  transform-origin: right top;
  transform: translateY(-4%) rotate(-5deg) scale(1.08);
}

.link-card--youtube .link-card__body { padding-inline: 30px 12px; }

.pill {
  display: inline-block;
  max-width: 100%;
  padding: 11px 18px;
  border: 0;
  border-radius: 45px;
  font: 600 12px/14px Arial, sans-serif;
  background: #fff;
  color: #050505;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow .3s ease;
}

.pill:focus-visible { outline-offset: 5px; }
.link-card--courses .pill { min-width: min(165px, 100%); }
.link-card--briefing .pill { padding-inline: 22px; }

@media (hover: hover) {
  .link-card:hover { background-color: #212121; transform: translateY(-10px); }
  .link-card:hover .pill, .pill:hover { box-shadow: 0 5px 22px rgb(255 255 255 / .32); }
}

.separator {
  position: relative;
  z-index: 1;
  height: 52px;
  scroll-margin-top: clamp(100px, 28vh, 250px);
  pointer-events: none;
}

.separator__ribbon {
  position: absolute;
  inset: -14px -12% auto;
  height: 82px;
  overflow: hidden;
  border-block: 1px solid #2b2b2b;
  background: #171717;
  transform: rotate(2deg);
}

.separator__ribbon--reverse {
  top: 12px;
  background-color: #202020;
  transform: rotate(-4deg);
}

.separator__track {
  --mark-width: 150px;
  position: absolute;
  inset: 0 -180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font: 300 18px/1 Campton, Arial, sans-serif;
  transform: translate3d(calc(-1 * var(--ribbon-shift, 0px)), 0, 0);
}

.separator__track span {
  display: flex;
  flex: 0 0 var(--mark-width);
  align-items: center;
  justify-content: center;
  gap: .35em;
  white-space: nowrap;
}

.separator__track span::before {
  content: "";
  width: 1.6em;
  aspect-ratio: 1155 / 679;
  background: url("assets/marca-faixa.svg") center / contain no-repeat;
}

.separator__ribbon--reverse .separator__track {
  transform: translate3d(calc(var(--ribbon-shift, 0px) + var(--mark-width) / 2), 0, 0);
}

.about {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 900px;
  padding-block: 108px 80px;
  background: #000 url("assets/diogo-vieira.webp") center top / cover no-repeat;
}

.about::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: clamp(90px, 10vw, 150px);
  background: linear-gradient(to bottom, var(--canvas), rgb(14 14 14 / .48) 32%, transparent);
  pointer-events: none;
}

.about__inner { width: calc(100% - 11.111%); max-width: 1280px; margin-inline: auto; }
.about h2 { margin: 0 0 30px; font: 600 clamp(30px, 3.34vw, 48px)/1.2 Campton, Arial, sans-serif; }
.about__copy { width: min(510px, 53vw); font: 400 16px/1.5 Campton, Arial, sans-serif; }
.about__copy p { margin: 0 0 16px; }

@media (min-width: 768px) and (max-width: 1040px) {
  .side-mark { opacity: .55; left: 18px; width: 36px; }
  .side-mark span { font-size: 44px; }
  .socials { width: 60px; padding-inline: 8px; }
  .about {
    min-height: 720px;
    background-image:
      linear-gradient(to bottom, transparent 460px, #000 800px),
      linear-gradient(to right, #000, #000c 44%, transparent 80%),
      url("assets/diogo-vieira.webp");
    background-position: center, center, 56% top;
    background-size: 100% 100%, 100% 100%, auto 800px;
  }
}

@media (max-width: 767px) {
  .links { padding-block: 60px 145px; }
  .side-mark { top: 823px; left: -28px; width: 35px; height: 390px; }
  .side-mark span { font-size: 36px; }
  .ambient { right: 0; bottom: 0; width: min(390px, 100%); }

  .socials {
    right: 25%;
    bottom: 0;
    bottom: env(safe-area-inset-bottom, 0px);
    flex-direction: row;
    width: auto;
    padding: 5px 4px;
    border-radius: 20px 20px 0 0;
  }
  .socials a { width: 54px; height: 52px; }

  .link-card { grid-template-columns: 1fr; min-height: 0; }
  .link-card__art { grid-column: 1; grid-row: 1; }
  .link-card__art img { height: auto; aspect-ratio: 585 / 600; }
  .link-card__body { grid-column: 1; grid-row: 2; padding: 54px clamp(23px, 9.5vw, 37px) 45px; }
  .link-card--briefing .link-card__body { padding-block: 59px 50px; }
  .link-card--youtube { grid-template-columns: minmax(0, 1fr); }
  .link-card--youtube .link-card__art {
    aspect-ratio: 1.55;
    mask-image: linear-gradient(to top, transparent, #000 14%);
  }
  .link-card--youtube .link-card__art::after {
    inset: auto 0 0;
    width: auto;
    height: 24%;
    mask-image: linear-gradient(to top, #000 12%, transparent);
  }
  .link-card--youtube .link-card__art img { object-position: center 40%; }
  .link-card--youtube .link-card__body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px clamp(16px, 6vw, 28px) 24px;
  }
  .link-card--youtube .brand__icon { width: 34px; height: 34px; margin: 0; }
  .link-card--youtube h2 { margin: 0; font-size: 14px; }
  .link-card--youtube .pill { grid-column: 2; justify-self: start; }

  .separator { height: 78px; }
  .separator__ribbon { height: 54px; top: 2px; }
  .separator__ribbon--reverse { top: 28px; }
  .separator__track { --mark-width: 124px; font-size: 15px; }

  .about {
    min-height: 1050px;
    align-items: start;
    padding: 410px 20px 120px;
    background-image: linear-gradient(180deg, transparent 23%, #000 40%), url("assets/diogo-vieira.webp");
    background-size: 100% 100%, auto 440px;
    background-position: top center, 73% top;
  }
  .about__inner { width: 100%; }
  .about__copy { width: 100%; }
  .about h2 { margin-bottom: 30px; }
}

@media (max-width: 540px) {
  .brand__portrait { width: clamp(94px, 28vw, 120px); }
  .brand__values { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .ambient, .separator__ribbon .separator__track { animation: none; transform: none; }
}
