/* O ângulo dos encaixes do monograma orienta os grafismos do site. */
main > section {
  position: relative;
  isolation: isolate;
  --graphic-line: #164d7a24;
  --graphic-light: #57b3e52b;
}

.fold-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.fold-art::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent 3%, var(--graphic-line) 28%,
    var(--graphic-light) 56%, transparent 96%);
  transform-origin: left;
}

.fold-art::after {
  content: "";
  position: absolute;
  width: clamp(180px, 34vw, 510px);
  height: clamp(120px, 19vw, 280px);
  top: 26px;
  right: -5%;
  border: 1px solid var(--graphic-line);
  box-shadow: 18px 18px 0 -17px var(--graphic-line);
  transform: skewX(-20deg);
}

.section:nth-of-type(even) > .fold-art::after {
  right: auto;
  left: -10%;
  transform: skewX(20deg);
}

.fold-art.has-entered::before {
  animation: trace-divider 650ms var(--ease-cinema) both;
}

.fold-art.has-entered::after {
  animation: show-graphic 780ms var(--ease-cinema) both;
}

@keyframes trace-divider {
  from { transform: scaleX(.12); opacity: .15; }
  to { transform: scaleX(1); opacity: 1; }
}

@keyframes show-graphic {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero {
  background:
    radial-gradient(ellipse at 77% 25%, #b9d9f171, transparent 48%),
    linear-gradient(115deg, #ffffff 18%, #eff6fc 62%, #dbe9f5);
  --graphic-line: #23578938;
  --graphic-light: #67b6ec72;
}

.hero > .fold-art::before {
  inset: 8% auto 7% 55%;
  width: 37%;
  height: auto;
  border: 1px solid var(--graphic-line);
  border-radius: 6px;
  background: linear-gradient(145deg, #ffffffb0, #ffffff10 55%, #57b3e53b);
  transform: skewX(-20deg);
  animation: show-hero-plane 1150ms var(--ease-cinema) both;
}

.hero > .fold-art::after {
  top: 11%;
  right: 3%;
  width: 41%;
  height: 77%;
  border-color: var(--graphic-line);
  animation: show-hero-plane 1150ms var(--ease-cinema) 100ms both;
}

@keyframes show-hero-plane {
  from { translate: 28px -6px; opacity: 0; }
  to { translate: 0 0; opacity: 1; }
}

.hero .hero-inner {
  min-height: clamp(630px, calc(100svh - 88px), 800px);
  padding-block: 42px;
}

.hero h1 {
  font-size: clamp(64px, 6.6vw, 108px);
  line-height: 1.07;
}

.hero h1 em {
  line-height: inherit;
}

.hero .hero-copy {
  position: static;
  z-index: auto;
}

.hero-copy > :not(.hero-visual) {
  position: relative;
  z-index: 3;
}

.hero h1 .title-line > :is(span, em) {
  animation: show-hero-title 880ms var(--ease-cinema) both;
}

.hero h1 .title-line:nth-child(2) > span { animation-delay: 120ms; }
.hero h1 .title-line:nth-child(3) > em { animation-delay: 215ms; }

@keyframes show-hero-title {
  from { transform: translate3d(-8px, 115%, 0); opacity: .2; }
  to { transform: translate3d(0, 0, 0); opacity: 1; }
}

.hero .hero-copy .intro {
  max-width: 540px;
  margin-top: 23px;
  animation-delay: 230ms;
}

.hero .hero-copy .hero-actions {
  animation: none;
  margin-top: 23px;
}

.hero-actions > .button {
  animation: show-hero-action 590ms var(--ease-cinema) 360ms both;
}

.hero-actions > .button + .button {
  animation-duration: 510ms;
  animation-delay: 450ms;
  background: #ffffff90;
}

.hero-actions > .button:focus {
  animation: none;
}

@keyframes show-hero-action {
  from { translate: 0 20px; scale: .95; opacity: .2; }
  to { translate: 0 0; scale: 1; opacity: 1; }
}

.hero .hero-visual {
  right: 0;
  width: 51%;
  --photo-from-x: 64px;
  --photo-from-y: 18px;
  --photo-from-scale: 1.12;
  transform-origin: 52% 35%;
  animation: show-hero-photo 1350ms var(--ease-cinema) 110ms both;
}

@keyframes show-hero-photo {
  from {
    transform: translate3d(var(--photo-from-x), var(--photo-from-y), 0)
      scale(var(--photo-from-scale));
    opacity: .1;
  }
  to {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}

.hero .hero-visual .hero-portrait {
  object-position: 50% 31%;
  mask-image: linear-gradient(#000 0%, #000 81%, transparent 100%),
    linear-gradient(90deg, transparent, #000 18%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(#000 0%, #000 81%, transparent 100%),
    linear-gradient(90deg, transparent, #000 18%, #000 86%, transparent);
}

.practice, .lessons, .contact {
  --graphic-line: #8fc9f643;
  --graphic-light: #57b3e59c;
}

.practice {
  color: #f5faff;
  background: radial-gradient(ellipse at 93% 14%, #12366b 0%, transparent 60%),
    linear-gradient(130deg, #050c15, #071c35 70%, #061222);
}

.practice :is(h2, h3) { color: #f5faff; }
.practice :is(.lead, p) { color: #c7d7e6; }
.practice .kicker, .practice-item :is(.icon, .text-link) { color: #bde3fc; }
.practice :is(a, button):focus-visible { outline-color: #bde3fc; }
.practice .text-link:hover { color: #fff; }
.practice-item {
  padding: 26px;
  border: 1px solid #a5d4f641;
  border-top-color: #83c6f180;
  border-radius: 5px;
  background: #06172e9c;
}

.about .about-picture {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #fff;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}

.about-picture img {
  object-fit: cover;
  object-position: center 12%;
}

.about-picture .picture-note {
  position: static;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 14px 20px;
}

@media (max-width: 850px) {
  .hero h1 { font-size: clamp(55px, 7.8vw, 74px); }
}

@media (max-width: 600px) {
  .hero .hero-inner { min-height: 0; padding-block: 25px 24px; }
  .hero .hero-copy { display: contents; }
  .hero .kicker { margin-bottom: 13px; }
  .hero h1 { font-size: clamp(44px, 12.9vw, 71px); }
  .hero .hero-visual {
    width: 100%;
    height: clamp(220px, 62vw, 340px);
    margin-top: 9px;
    --photo-from-x: 0px;
    --photo-from-y: 32px;
    --photo-from-scale: 1.09;
  }
  .hero .hero-visual .hero-portrait {
    margin-top: 0;
    object-position: 50% 15%;
  }
  .hero .hero-copy .intro {
    font-size: 16px;
    line-height: 1.55;
    margin-top: 9px;
  }
  .hero .hero-copy .hero-actions { margin-top: 16px; gap: 8px; }
  .hero .hero-actions > .button {
    min-height: 46px;
    padding-block: 10px;
    font-size: 15px;
  }
  .hero > .fold-art::before { inset: 34% auto 27% 18%; width: 66%; }
  .hero > .fold-art::after { top: 37%; height: 34%; width: 70%; }
  .about .about-picture { aspect-ratio: 4 / 4.5; }
  .practice-item { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 .title-line > :is(span, em),
  .hero .hero-visual,
  .hero .hero-copy .intro,
  .hero > .fold-art::before,
  .hero > .fold-art::after,
  .fold-art.has-entered::before,
  .fold-art.has-entered::after,
  .hero-actions > .button {
    animation: none;
  }
}

/* Quando o navegador suporta transições entre documentos da mesma origem. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 160ms;
    animation-timing-function: var(--ease-cinema);
  }
}

.course-official-link { margin-top: 12px; }
