/* du · Até a meia-noite (noite) */
.du { --du-p: 1; --du-linha: 50%; overflow: clip; }
.du::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 30% at 50% 58% in oklab, rgba(17, 71, 179, .38), transparent),
    radial-gradient(35% 25% at 12% 20% in oklab, rgba(47, 90, 107, .35), transparent);
}

/* topo */
.du-topo {
  max-width: 1320px; margin: 0 auto clamp(56px, 7vw, 100px);
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px 48px; align-items: end;
}
.du-topo .wf-rotulo { grid-column: 1 / -1; margin-bottom: 0; }
.du-h2 { font-size: clamp(3rem, 7.6vw, 8.2rem); line-height: .9; }
.du-l { display: block; }
.du-intro { margin: 0 0 .6rem; }
.du-intro .wf-apoio { margin: 0; font-size: clamp(1rem, 1.2vw, 1.12rem); }
.du-roteiro {
  display: flex; flex-wrap: nowrap; gap: .6rem; margin: 1.3rem 0 0; white-space: nowrap;
  font-size: clamp(.58rem, .62vw, .68rem); letter-spacing: .12em; text-transform: uppercase; color: var(--noite-suave);
}
.du-roteiro span { display: inline-flex; align-items: center; gap: .6rem; }
.du-roteiro span + span::before { content: ""; width: 12px; height: 1px; background: #aaa3e8; }
.du-roteiro span:nth-child(3) { color: #fff; }

/* trilha com o traço que se pinta */
.du-trilha { position: relative; max-width: 1180px; margin: 0 auto; }
.du-traco {
  position: absolute; top: 0; bottom: 0; left: var(--du-linha); width: 22px; margin-left: -11px;
  background: var(--malha-clara);
  -webkit-mask: url(../img/du-traco.png) center / 100% 100% no-repeat;
          mask: url(../img/du-traco.png) center / 100% 100% no-repeat;
  clip-path: inset(0 0 calc((1 - var(--du-p)) * 100%) 0);
}
.du-percurso { list-style: none; margin: 0; padding: 0; }
.du-hora {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 clamp(64px, 9vw, 130px); align-items: center;
  padding: clamp(28px, 3.4vw, 48px) 0;
}
.du-no {
  position: absolute; left: var(--du-linha); top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: #0e0c35; border: 2px solid #aaa3e8;
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
}
.du-hora.du-aceso .du-no, html:not(.js) .du-no { background: #fff; box-shadow: 0 0 0 6px rgba(170, 163, 232, .22), 0 0 24px 4px rgba(186, 183, 238, .55); }

.du-foto { margin: 0; position: relative; width: min(100%, 420px); justify-self: end; }
.du-noite .du-foto { width: min(100%, 330px); margin-top: 60px; }
.du-seguinte .du-foto { width: min(100%, 370px); }
.du-noite .du-foto { order: 2; justify-self: start; }
.du-foto::before {
  content: ""; position: absolute; left: -12%; right: -18%; bottom: -6%; height: 26%; z-index: 0;
  background: var(--malha-clara);
  -webkit-mask: url(../img/pincel-1.png) center / 100% 100% no-repeat;
          mask: url(../img/pincel-1.png) center / 100% 100% no-repeat;
  transform: rotate(-5deg); opacity: .85;
}
.du-foto img {
  position: relative; z-index: 1;
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  -webkit-mask: url(../img/du-mascara.png) center / 100% 100% no-repeat;
          mask: url(../img/du-mascara.png) center / 100% 100% no-repeat;
}
.du-noite .du-falas { text-align: right; }
.du-noite .du-falas blockquote { margin-left: auto; }
.du-quando {
  margin: 0 0 1rem;
  font-family: var(--f-display); font-variation-settings: "opsz" 100; font-weight: 380;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1; color: #fff;
}
.du-falas blockquote { margin: 0 0 1.4rem; max-width: 28rem; }
.du-falas blockquote p {
  margin: 0; font-family: var(--f-display); font-variation-settings: "opsz" 18;
  font-size: clamp(1.12rem, 1.5vw, 1.36rem); line-height: 1.38; color: var(--noite-texto);
}
.du-hora footer { margin-top: .5rem; font-size: .8rem; letter-spacing: .08em; color: var(--noite-suave); }

/* 00h: o ponto alto */
.du-zero { padding: clamp(64px, 8vw, 130px) 0; }
.du-zero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 0; right: 0; top: 0; bottom: 0;
  background: radial-gradient(closest-side at 32% 50% in oklab, rgba(170, 163, 232, .26), rgba(17, 71, 179, .12) 55%, transparent);
}
.du-00 {
  justify-self: end; margin: 0;
  font-size: clamp(7rem, 21vw, 21rem); line-height: .78; letter-spacing: -.02em;
  font-weight: 340;
  background: linear-gradient(180deg in oklab, #fff 30%, #bab7ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.du-destaque { margin: 0; max-width: 34rem; }
.du-destaque .wf-grifo { white-space: normal; }
.du-destaque p {
  margin: 0; font-family: var(--f-display); font-variation-settings: "opsz" 40;
  font-size: clamp(1.55rem, 2.6vw, 2.5rem); line-height: 1.2; color: #fff;
}
.du-destaque footer { margin-top: 1rem; font-size: .82rem; letter-spacing: .1em; color: var(--noite-suave); }

/* por que fica */
.du-porque {
  max-width: 1180px; margin: clamp(56px, 7vw, 100px) auto 0;
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid rgba(186, 183, 238, .25);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(48px, 7vw, 110px); align-items: center;
}
.du-horas {
  margin: 0; justify-self: end; display: flex; align-items: baseline; gap: .18em;
  font-family: var(--f-display); font-variation-settings: "opsz" 100; font-weight: 380;
  font-size: clamp(4.4rem, 9vw, 8.6rem); line-height: .9; color: #fff;
}
.du-horas { position: relative; isolation: isolate; gap: .14em; padding: 0 .2em; }
.du-horas small { font-size: .24em; letter-spacing: .12em; text-transform: uppercase; color: var(--noite-suave); margin: 0 .25em; }
.du-horas::before {
  content: ""; position: absolute; z-index: -1; left: -4%; right: -8%; top: 86%; height: 22%;
  background: var(--malha-clara); opacity: .5;
  -webkit-mask: url(../img/pincel-2.png) center / 100% 100% no-repeat;
          mask: url(../img/pincel-2.png) center / 100% 100% no-repeat;
}
.du-porque h3 {
  margin: 0 0 .7rem; font-family: var(--f-display); font-variation-settings: "opsz" 40; font-weight: 450;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}
.du-porque-texto p { margin: 0 0 1.6rem; line-height: 1.6; color: var(--noite-suave); max-width: 32rem; }

@media (max-width: 899px) {
  .du { --du-linha: 9px; }
  .du-topo { grid-template-columns: minmax(0, 1fr); }
  .du-h2 { font-size: clamp(2.9rem, 13vw, 4.4rem); }
  .du-traco { width: 16px; margin-left: -8px; }
  .du-percurso { padding-left: 34px; }
  .du-hora { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .du-no { left: calc(var(--du-linha) - 34px); top: 46px; }
  .du-noite .du-foto { order: 0; }
  .du-foto, .du-noite .du-foto, .du-seguinte .du-foto { justify-self: start; width: 84%; margin-top: 0; }
  .du-noite .du-foto { width: 68%; }
  .du-zero::before { background: radial-gradient(closest-side at 30% 30% in oklab, rgba(170, 163, 232, .24), transparent); }
  .du-noite .du-falas { text-align: left; }
  .du-noite .du-falas blockquote { margin-left: 0; }
  .du-00 { justify-self: start; font-size: clamp(6rem, 34vw, 9.5rem); }
  .du-porque { grid-template-columns: minmax(0, 1fr); padding-bottom: 48px; }
  .du-horas { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .du { --du-p: 1 !important; }
  .du-no { background: #fff; }
}
