/* The poster renders in HTML. The player gates the course after initialization. */
html[data-vsl-gated] body > :is(main, .header, footer, .skip, .sticky-access) {
  display: none !important;
}
#vsl-intro[hidden],
#vsl-intro [hidden] {
  display: none !important;
}

#vsl-intro {
  --vsl-ink: #eff3eb;
  --vsl-muted: #aab4ad;
  --vsl-lime: #c1fa68;
  --vsl-max: 1216px;
  --vsl-hud-height: 26px;
  --vsl-gutter: clamp(22px, 6vw, 86px);
  min-height: 100vh;
  min-height: 100svh;
  color: var(--vsl-ink);
  background:
    radial-gradient(ellipse at 74% 48%, #29403160, transparent 43%),
    linear-gradient(108deg, #090b0b 27%, #101713 100%);
  font: 500 1rem/1.5 "Manrope Variable", Manrope, system-ui, sans-serif;
  box-sizing: border-box;
}
#vsl-intro *,
#vsl-intro *::before,
#vsl-intro *::after {
  box-sizing: border-box;
}
#vsl-intro :is(a, button) {
  touch-action: manipulation;
}
#vsl-intro :is(a, button):focus-visible {
  outline: 2px solid var(--vsl-lime);
  outline-offset: 4px;
}
#vsl-intro .vsl-mast,
#vsl-intro .vsl-layout {
  width: min(calc(100% - 2 * var(--vsl-gutter)), var(--vsl-max));
  margin-inline: auto;
}
#vsl-intro .vsl-mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(64px, 10svh, 92px);
  border-bottom: 1px solid #d8efda24;
}
html:not([data-vsl-gated]) #vsl-intro .vsl-mast {
  visibility: hidden;
}
#vsl-intro .vsl-brand {
  display: block;
  width: 142px;
  height: auto;
  margin-left: -11px;
}
#vsl-intro .vsl-student {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: #d1dbd2;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 650;
}
#vsl-intro .vsl-student span {
  color: var(--vsl-lime);
  font-size: 1.05em;
}
#vsl-intro .vsl-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  min-height: calc(100svh - clamp(64px, 10svh, 92px));
  padding: clamp(28px, 4.3svh, 58px) clamp(0px, 3vw, 40px) clamp(30px, 5.5svh, 60px) 0;
}
#vsl-intro .vsl-story {
  min-width: 0;
}
#vsl-intro .vsl-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8em;
  margin: 0 0 clamp(16px, 2.8svh, 30px);
  color: #c8d6c9;
  font: 650 .69rem/1.4 "Manrope Variable", Manrope, system-ui, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}
#vsl-title {
  margin: 0;
  font: 650 clamp(2.9rem, 5.25vw, 5.25rem)/.99 "Syne Variable", Syne, "Manrope Variable", system-ui, sans-serif;
  letter-spacing: -.065em;
  color: var(--vsl-ink);
}
#vsl-title span,
#vsl-title em {
  display: block;
}
#vsl-title em {
  color: var(--vsl-lime);
  font-style: normal;
}
#vsl-intro .vsl-description {
  max-width: 43ch;
  margin: clamp(16px, 3svh, 28px) 0 0;
  color: var(--vsl-muted);
  font-size: clamp(.93rem, 1.16vw, 1.08rem);
  line-height: 1.65;
}
#vsl-intro .vsl-access {
  max-width: 480px;
  margin-top: clamp(20px, 4.5svh, 50px);
}
#vsl-intro .vsl-meter {
  display: grid;
  gap: 9px;
  width: min(100%, 345px);
}
#vsl-intro .vsl-meter-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: #dae4d7;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.25;
}
#vsl-count {
  color: var(--vsl-lime);
  font: 700 1.45rem/1 "Manrope Variable", Manrope, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
}
#vsl-progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  color: var(--vsl-lime);
  background: #465447;
  /* Each chapter of the track represents five seconds of the introduction. */
  mask-image: repeating-linear-gradient(90deg, #000 0 calc(100% / 6 - 2px), transparent 0 calc(100% / 6));
}
#vsl-progress::-webkit-progress-bar { background: #465447; }
#vsl-progress::-webkit-progress-value { background: var(--vsl-lime); }
#vsl-progress::-moz-progress-bar { background: var(--vsl-lime); }

#vsl-intro .vsl-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}
#vsl-intro :is(#vsl-explore, #vsl-offer, #vsl-recover) {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 12px 0 0;
  border-radius: 7px;
  padding: 9px 16px;
  background: var(--vsl-lime);
  border: 1px solid transparent;
  color: #13200d;
  text-decoration: none;
  font: 750 .9rem/1.25 "Manrope Variable", Manrope, system-ui, sans-serif;
  cursor: pointer;
}
#vsl-intro #vsl-offer,
#vsl-intro #vsl-recover {
  color: #dce6d8;
  background: transparent;
  border-color: #657363;
}
#vsl-status {
  margin: 13px 0 0;
  font-size: .85rem;
  line-height: 1.5;
  color: #d9e4d7;
}
#vsl-status:empty { display: none; }
#vsl-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: clamp(215px, min(34vw, 40.5svh), 410px);
  justify-self: center;
}
/* Reserve the full film and footer even when the player moves into the corner. */
#vsl-slot::before {
  content: "";
  grid-area: 1 / 1;
  width: 100%;
  aspect-ratio: 9 / 16;
  box-sizing: content-box;
  padding-bottom: var(--vsl-hud-height);
}
#vsl-frame {
  --vsl-frame-radius: clamp(12px, 1.35vw, 20px);
  position: relative;
  grid-area: 1 / 1;
  width: 100%;
  border-radius: var(--vsl-frame-radius);
  background: #070908;
  box-shadow: 0 12px 70px #0009, 0 0 0 1px #cce0c329;
}
#vsl-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: var(--vsl-frame-radius) var(--vsl-frame-radius) 0 0;
  object-fit: contain;
  background: #070908;
}
#vsl-play {
  position: absolute;
  inset: 0 0 var(--vsl-hud-height);
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 10px 16%;
  border: 0;
  border-radius: inherit;
  cursor: pointer;
  background: transparent;
}
#vsl-intro #vsl-play:focus-visible { outline-offset: 2px; }
#vsl-play .vsl-play-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid #dafaab;
  border-radius: 50px;
  box-shadow: 0 5px 27px #000b;
  background: var(--vsl-lime);
  color: #12200b;
  font: 780 .94rem/1.15 "Manrope Variable", Manrope, system-ui, sans-serif;
}
/* Only the unopened poster carries the Magnific-style play invitation. */
.vsl-poster-veil,
.vsl-play-orb { display: none; }

#vsl-frame[data-invite] #vsl-play {
  container-type: inline-size;
  padding: 0;
  border-radius: var(--vsl-frame-radius) var(--vsl-frame-radius) 0 0;
  overflow: hidden;
}
#vsl-frame[data-invite] .vsl-poster-veil {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
/* WebKit composites the video separately. Blur the cached still itself. */
.vsl-poster-veil::after {
  content: "";
  position: absolute;
  inset: 0;
}
.vsl-poster-veil img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.07);
  filter: blur(7px);
}
.vsl-poster-veil::after {
  background: radial-gradient(ellipse at center, #071b1680, #05120f30 60%, #07100d52);
}
#vsl-frame[data-invite] :is(.vsl-play-orb, .vsl-play-pill) {
  --orb-size: clamp(68px, 38cqw, 154px);
  position: absolute;
  left: 50%;
  margin: 0;
  pointer-events: none;
}
#vsl-frame[data-invite] .vsl-play-orb {
  display: block;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--orb-size);
  height: var(--orb-size);
  border-radius: 50%;
  color: white;
}
.vsl-orb-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #98ffe0dc;
  border-radius: inherit;
  background: linear-gradient(135deg, #064e3b, #059669 35%, #10b981 50%, #059669 65%, #064e3b);
  box-shadow: inset 0 1px 2px #d8fffaa6, inset 0 -5px 14px #00483670, 0 0 25px #10b9819e, 0 5px 24px #00181180;
}
.vsl-orb-face::before {
  content: "";
  position: absolute;
  inset: -25% -50%;
  background: linear-gradient(110deg, transparent 32%, #fff3 45%, #ffffff60 50%, #fff3 55%, transparent 68%);
}
.vsl-orb-icon {
  position: relative;
  width: 46%;
  height: 46%;
  filter: drop-shadow(0 2px 3px #004b378c) drop-shadow(0 0 7px #ffffff70);
}
.vsl-play-orb::before {
  content: "";
  position: absolute;
  inset: -6%;
  border: 1px solid #8fffdcaa;
  border-radius: inherit;
  box-shadow: 0 0 18px #34d39980;
}
.vsl-cue-arrow {
  position: absolute;
  top: 50%;
  width: 24%;
  height: auto;
  transform: translateY(-50%);
  color: #c7ffea;
  filter: drop-shadow(0 0 5px #42f3aa99);
}
.vsl-cue-left { right: 117%; --point-offset: 6px; }
.vsl-cue-right { left: 117%; --point-offset: -6px; }
#vsl-frame[data-invite] .vsl-play-pill {
  top: calc(50% + var(--orb-size) / 2 + clamp(18px, 7cqw, 26px));
  transform: translateX(-50%);
  min-height: 0;
  padding: .48em .9em;
  border: 1px solid #ddfff13b;
  border-radius: 30px;
  background: #071d18e6;
  box-shadow: 0 3px 12px #00110a4d;
  color: #f2fff9;
  font: 750 clamp(.84rem, 4.7cqw, 1.1rem)/1.2 "Manrope Variable", Manrope, system-ui, sans-serif;
  white-space: nowrap;
}
#vsl-frame[data-invite] .vsl-play-icon { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .vsl-orb-face { animation: vsl-beat 2.4s ease-in-out infinite; }
  .vsl-orb-face::before { animation: vsl-shine 3.5s ease-in-out infinite; }
  .vsl-play-orb::before { animation: vsl-halo 2.4s ease-out infinite; }
  .vsl-cue-arrow { animation: vsl-point-in 2.4s ease-in-out infinite; }
  @keyframes vsl-beat {
    0%, 65%, 100% { transform: scale(1); }
    32% { transform: scale(1.055); }
  }
  @keyframes vsl-shine {
    0%, 10% { transform: translateX(-52%); }
    64%, 100% { transform: translateX(52%); }
  }
  @keyframes vsl-halo {
    0%, 100% { transform: scale(.99); opacity: .35; }
    28% { transform: scale(1.03); opacity: 1; }
    74%, 99% { transform: scale(1.2); opacity: 0; }
  }
  @keyframes vsl-point-in {
    0%, 65%, 100% { transform: translate(0, -50%); opacity: .65; }
    32% { transform: translate(var(--point-offset), -50%); opacity: 1; }
  }
}
#vsl-frame[data-playing] .vsl-play-pill { opacity: 0; }
#vsl-play:hover .vsl-play-pill { background: #d8ff98; }
#vsl-play .vsl-play-icon {
  width: 0;
  height: 0;
  border-block: 6px solid transparent;
  border-left: 10px solid currentColor;
}
#vsl-frame .vsl-film-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--vsl-hud-height);
  padding: 0 10px;
  border-top: 1px solid #d9edda21;
  border-radius: 0 0 var(--vsl-frame-radius) var(--vsl-frame-radius);
  background: #101713;
  pointer-events: none;
  user-select: none;
}
#vsl-frame .vsl-duration {
  flex: none;
  padding: 2px 5px;
  border: 1px solid #9bbe862e;
  border-radius: 4px;
  color: #e1efd9;
  background: #b9d5a610;
  font: 650 .65rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .03em;
  white-space: nowrap;
}
#vsl-frame .vsl-film-track {
  display: block;
  flex: 1;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  background: #4b584e;
}
#vsl-film-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #d4edba;
  transform: scaleX(0);
  transform-origin: left center;
}
#vsl-frame .vsl-dock-tools { display: none; }
#vsl-frame.is-docked {
  position: fixed;
  z-index: 55;
  top: max(var(--header-clearance, 100px), 74px);
  right: max(14px, env(safe-area-inset-right));
  width: clamp(132px, min(16vw, 26svh), 205px);
  --vsl-frame-radius: 12px;
  --vsl-hud-height: 3px;
  transform-origin: top right;
  box-shadow: 0 8px 30px #000a, 0 0 0 1px #cce0c37a;
}
#vsl-frame.is-docked .vsl-film-meter {
  padding: 0;
  border: 0;
  overflow: hidden;
}
#vsl-frame.is-docked .vsl-duration { display: none; }
#vsl-frame.is-docked .vsl-film-track { height: 100%; border-radius: 0; }
#apresentacao .presentation-steps { min-width: 0; }
#apresentacao .process { margin: 0 0 1.5rem; }

@media (prefers-reduced-motion: no-preference) {
  #vsl-frame.is-docked {
    animation: vsl-dock-enter 280ms cubic-bezier(.19,.72,.28,1);
  }
  @keyframes vsl-dock-enter {
    from { opacity: .55; transform: translate(var(--vsl-enter-x, 0px), var(--vsl-enter-y, 12px)) scale(.94); }
    to { opacity: 1; transform: none; }
  }
}
#vsl-frame.is-docked .vsl-dock-tools {
  display: flex;
  justify-content: flex-end;
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  pointer-events: none;
}
#vsl-frame .vsl-dock-tools button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  pointer-events: auto;
  font: 500 20px/1 system-ui, sans-serif;
}
#vsl-frame .vsl-dock-tools button span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #101512ed;
  border: 1px solid #ffffff52;
}
@media (max-width: 760px) {
  #vsl-intro { --vsl-gutter: clamp(15px, 5vw, 32px); }
  #vsl-intro .vsl-mast { height: 51px; }
  #vsl-intro .vsl-brand { width: 106px; margin-left: -8px; }
  #vsl-intro .vsl-student { font-size: .78rem; }
  #vsl-intro .vsl-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "meter" "frame" "actions" "status";
    justify-items: center;
    align-content: center;
    gap: 0;
    min-height: calc(100svh - 51px);
    padding: 13px 0 10px;
  }
  #vsl-intro .vsl-story,
  #vsl-intro .vsl-access { display: contents; }
  #vsl-intro .vsl-heading { grid-area: heading; text-align: center; }
  #vsl-intro .vsl-kicker {
    justify-content: center;
    margin-bottom: 7px;
    font-size: .6rem;
    letter-spacing: .09em;
  }
  #vsl-title {
    font-size: clamp(1.55rem, min(6.3vw, 4svh), 2.3rem);
    line-height: 1.04;
    letter-spacing: -.055em;
  }
  #vsl-title span { display: inline; }
  #vsl-intro .vsl-description { display: none; }
  #vsl-intro .vsl-meter {
    grid-area: meter;
    width: min(87%, 32.5svh, 314px);
    gap: 6px;
    margin: 11px 0;
  }
  #vsl-intro .vsl-meter-label { font-size: .76rem; }
  #vsl-count { font-size: 1.15rem; }
  #vsl-slot {
    grid-area: frame;
    width: min(85vw, 32.5svh, 336px);
  }
  #vsl-intro .vsl-actions {
    grid-area: actions;
    justify-content: center;
    margin-top: 5px;
  }
  #vsl-status { grid-area: status; text-align: center; }
  #vsl-frame.is-docked { width: clamp(104px, min(28vw, 20svh), 135px); }
  #vsl-frame.is-docked .vsl-play-pill { padding: 8px; font-size: .67rem; gap: 5px; min-height: 34px; }
}
@media (max-width: 370px) {
  #vsl-intro .vsl-layout { column-gap: 6px; padding-block: 8px; }
  #vsl-intro .vsl-meter { margin-block: 8px; }
  #vsl-play .vsl-play-pill {
    gap: 8px;
    padding: 10px 13px;
    font-size: .83rem;
    white-space: nowrap;
  }
}
@media (min-width: 480px) and (max-height: 520px) {
  #vsl-intro .vsl-mast { height: 48px; }
  #vsl-intro .vsl-layout {
    display: grid;
    grid-template-areas: none;
    align-content: center;
    justify-items: stretch;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: calc(100svh - 48px);
    gap: 24px;
    padding-block: 12px;
  }
  #vsl-intro .vsl-story,
  #vsl-intro .vsl-access { display: block; }
  #vsl-intro .vsl-heading,
  #vsl-intro .vsl-access { text-align: left; }
  #vsl-intro .vsl-kicker,
  #vsl-intro .vsl-actions { justify-content: flex-start; }
  #vsl-title { font-size: clamp(1.75rem, 4.8vw, 3rem); }
  #vsl-intro .vsl-description { display: none; }
  #vsl-intro .vsl-access { margin: 12px 0 0; }
  #vsl-intro .vsl-meter { margin-inline: 0; width: min(100%, 250px); }
  #vsl-slot { grid-area: auto; width: min(30vw, calc(56.25svh - 56px)); }
}

/* On a return visit both destinations sit above the poster on a phone. */
@media (max-width: 760px) and (orientation: portrait) {
  #vsl-intro[data-returning] .vsl-mast {
    height: var(--header-clearance, 100px);
  }
  #vsl-intro[data-returning] .vsl-layout {
    min-height: calc(100svh - var(--header-clearance, 100px));
    grid-template-areas: "heading" "actions" "frame" "status";
  }
  #vsl-intro[data-returning] .vsl-actions {
    margin: 0 0 12px;
  }
}
