/* VideoSmart brand refresh: official identity, workshop slider and interactive team. */

body {
  font-family: "Archivo", Arial, sans-serif;
}

.brand {
  min-width: 132px;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: 132px;
  height: auto;
}

h1,
h2,
.advisor-card h3,
.team-member h3 {
  font-family: "Archivo", Arial, sans-serif;
}

h1 {
  font-weight: 790;
  letter-spacing: -.062em;
}

h2 {
  font-weight: 760;
  letter-spacing: -.052em;
}

.hero {
  grid-template-columns: minmax(0, .96fr) minmax(430px, .84fr);
  gap: clamp(2.2rem, 4vw, 4.75rem);
}

.hero-visual {
  min-height: 0;
  aspect-ratio: .82;
  align-self: center;
  perspective: 1200px;
}

.slider-shell {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 2rem;
  background: #111;
  box-shadow: 0 42px 100px rgba(0, 0, 0, .5), 0 0 70px rgba(211, 17, 23, .12);
  transform: rotateY(-2deg);
  transform-origin: center left;
  transition: transform .5s var(--ease), border-color .3s;
}

.slider-shell:hover,
.slider-shell:focus-within {
  border-color: rgba(240, 39, 39, .36);
  transform: rotateY(0deg) translateY(-3px);
}

.slider-stage {
  position: absolute;
  inset: 12px 12px 86px;
  overflow: hidden;
  border-radius: 1.42rem;
  background: #0a0a0a;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(.96) translateX(28px);
  transition: opacity .6s var(--ease), transform .75s var(--ease);
  pointer-events: none;
}

.slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background: none;
  pointer-events: none;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b0b0b;
}

.slide-contact {
  position: absolute;
  z-index: 2;
  right: .85rem;
  bottom: .85rem;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: .5rem;
  padding: .65rem .82rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: white;
  background: var(--red-dark);
  text-decoration: none;
  font-size: .76rem;
  font-weight: 720;
  transition: transform .2s, background .2s;
}

.slide-contact:hover {
  background: var(--red);
  transform: translateY(-2px);
}

.slider-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 74px;
  padding: .7rem 1rem 1rem 1.1rem;
}

.slider-copy {
  min-width: 0;
}

.slider-count {
  display: block;
  margin-bottom: .16rem;
  color: #ff5656;
  font-size: .66rem;
  font-weight: 820;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.slider-title {
  display: block;
  overflow: hidden;
  color: #f4f4f1;
  font-size: .92rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slider-actions {
  display: flex;
  align-items: center;
  gap: .42rem;
}

.slider-arrow {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  color: #efefed;
  background: rgba(255, 255, 255, .045);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}

.slider-arrow:hover {
  border-color: rgba(240, 39, 39, .48);
  background: rgba(240, 39, 39, .1);
  transform: translateY(-2px);
}

.slider-arrow svg {
  width: 18px;
  height: 18px;
}

.slider-dots {
  position: absolute;
  z-index: 3;
  top: 1.45rem;
  left: 1.45rem;
  display: flex;
  gap: .42rem;
}

.slider-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: width .25s var(--ease), border-radius .25s, background .25s;
}

.slider-dot[aria-current="true"] {
  width: 24px;
  border-radius: 999px;
  background: var(--red);
}

.slider-progress {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 82px;
  left: 12px;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
}

.slider-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
}

.slider-progress-bar.run {
  animation: sliderProgress 6s linear forwards;
}

.slider-shell.is-paused .slider-progress-bar {
  animation-play-state: paused;
}

.advisors-section {
  padding: clamp(5.5rem, 9vw, 8.5rem) 0;
}

.section-top {
  position: relative;
  z-index: 4;
}

.team-stage {
  --stage-x: 50%;
  --stage-y: 50%;
  position: relative;
  min-height: 820px;
  margin-top: 2.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 2.25rem;
  background: #101010;
  box-shadow: 0 35px 100px rgba(0, 0, 0, .35);
  isolation: isolate;
}

.team-stage::before,
.team-stage::after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.team-stage::before {
  width: min(63vw, 690px);
  aspect-ratio: 1;
  border: 1px solid rgba(240, 39, 39, .18);
  box-shadow: inset 0 0 90px rgba(240, 39, 39, .035), 0 0 80px rgba(240, 39, 39, .04);
  transform: translate(-50%, -50%);
}

.team-stage::after {
  width: min(43vw, 470px);
  aspect-ratio: 1;
  border: 1px dashed rgba(255, 255, 255, .09);
  transform: translate(-50%, -50%);
  animation: orbitSpin 44s linear infinite;
}

.team-orbit-dot {
  position: absolute;
  z-index: -1;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(240, 39, 39, .9);
  animation: driftDot 7s ease-in-out infinite alternate;
}

.team-orbit-dot.one { top: 13%; left: 48%; }
.team-orbit-dot.two { right: 14%; bottom: 26%; animation-delay: -2.5s; }
.team-orbit-dot.three { bottom: 14%; left: 35%; animation-delay: -4.2s; }

.team-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 282px;
  aspect-ratio: 1;
  place-items: center;
  padding: 2.3rem;
  border: 1px solid rgba(240, 39, 39, .35);
  border-radius: 50%;
  background: #0a0a0a;
  box-shadow: 0 0 0 16px rgba(240, 39, 39, .025), 0 0 80px rgba(240, 39, 39, .14), inset 0 0 55px rgba(255, 255, 255, .035);
  text-align: center;
  transform: translate(-50%, -50%);
}

.team-core img {
  display: block;
  width: 170px;
  height: auto;
  margin-inline: auto;
}

.team-core strong {
  display: block;
  margin-top: .75rem;
  color: #f5f5f3;
  font-size: 1.05rem;
  font-weight: 760;
  letter-spacing: -.025em;
}

.team-core small {
  display: block;
  margin-top: 1rem;
  color: #a8a8a4;
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.team-member {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  --portrait-x: 0px;
  --portrait-y: 0px;
  position: absolute;
  z-index: 3;
  width: 248px;
  min-height: 330px;
  overflow: hidden;
  padding: .8rem .8rem 4.65rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1.55rem;
  background: #181818;
  box-shadow: 0 28px 65px rgba(0, 0, 0, .38);
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift));
  transform-style: preserve-3d;
  transition: transform .18s ease-out, border-color .25s, box-shadow .25s;
  will-change: transform;
}

.team-member:hover,
.team-member:focus-within {
  --lift: -8px;
  z-index: 5;
  border-color: rgba(240, 39, 39, .46);
  box-shadow: 0 34px 80px rgba(0, 0, 0, .48), 0 0 45px rgba(240, 39, 39, .1);
}

.team-member.francisco { top: 5.5%; left: 4.3%; }
.team-member.angelina { top: 5.5%; right: 4.3%; }
.team-member.fabrizio { bottom: 5.5%; left: 4.3%; }
.team-member.katherine { right: 4.3%; bottom: 5.5%; }

.member-portrait {
  position: relative;
  height: 210px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1.15rem;
  background: #1a1a1a;
  transform: translateZ(24px);
}

.member-portrait::after {
  position: absolute;
  inset: 0;
  content: "";
  background: none;
  pointer-events: none;
}

.member-portrait img {
  position: absolute;
  top: var(--crop-top);
  left: 50%;
  width: 920px;
  max-width: none;
  height: auto;
  transform: translateX(calc(-50% + var(--portrait-x))) translateY(var(--portrait-y));
  transition: transform .18s ease-out;
  will-change: transform;
}

.member-details {
  padding: .9rem .3rem 0;
  transform: translateZ(18px);
}

.team-member h3 {
  margin: 0;
  color: #f7f7f5;
  font-size: 1.05rem;
  font-weight: 760;
  letter-spacing: -.025em;
}

.team-member p {
  margin: .18rem 0 0;
  color: #8f8f8c;
  font-size: .78rem;
}

.team-member .online {
  position: absolute;
  z-index: 2;
  top: 1.4rem;
  right: 1.35rem;
  padding: .34rem .55rem;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  color: #e4e4e1;
  background: rgba(8, 8, 8, .72);
  backdrop-filter: blur(10px);
}

.team-member .whatsapp-link {
  right: .8rem;
  bottom: .8rem;
  left: .8rem;
  min-height: 48px;
  transform: translateZ(20px);
}

.advisor-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin: 1.15rem 0 0;
  color: #858582;
  font-size: .78rem;
  text-align: center;
}

.advisor-hint svg {
  width: 17px;
  height: 17px;
  color: #ff5757;
}

.closing .brand-logo {
  width: 170px;
}

@keyframes sliderProgress {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes orbitSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes driftDot {
  from { transform: translate3d(-10px, -12px, 0) scale(.8); opacity: .45; }
  to { transform: translate3d(20px, 16px, 0) scale(1.2); opacity: 1; }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    width: min(640px, 100%);
    min-height: 720px;
    aspect-ratio: auto;
    margin-inline: auto;
  }

  .team-stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    min-height: 0;
    padding: 2rem;
  }

  .team-stage::before {
    width: 570px;
  }

  .team-core {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 1 / -1;
    width: 240px;
    margin: .5rem auto 1rem;
    transform: none;
  }

  .team-member,
  .team-member.francisco,
  .team-member.angelina,
  .team-member.fabrizio,
  .team-member.katherine {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 350px;
  }
}

@media (max-width: 620px) {
  .brand-logo {
    width: 112px;
  }

  .hero-visual {
    width: 100%;
    min-height: max(490px, calc(100vw + 32px));
  }

  .slider-shell {
    border-radius: 1.45rem;
    transform: none;
  }

  .slider-stage {
    inset: 8px 8px 82px;
    border-radius: 1.08rem;
  }

  .slider-progress {
    right: 8px;
    bottom: 78px;
    left: 8px;
  }

  .slide-contact {
    right: .6rem;
    bottom: .6rem;
  }

  .slider-footer {
    min-height: 72px;
    padding-inline: .85rem;
  }

  .slider-title {
    font-size: .82rem;
  }

  .team-stage {
    grid-template-columns: 1fr;
    padding: 1rem;
    border-radius: 1.55rem;
  }

  .team-core {
    grid-column: 1;
    width: 210px;
  }

  .team-core img {
    width: 132px;
  }

  .team-member,
  .team-member.francisco,
  .team-member.angelina,
  .team-member.fabrizio,
  .team-member.katherine {
    min-height: 370px;
  }

  .member-portrait {
    height: 240px;
  }

  .closing .brand-logo {
    width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slider-progress-bar.run,
  .team-stage::after,
  .team-orbit-dot {
    animation: none !important;
  }

  .team-member,
  .member-portrait img {
    transform: none !important;
  }
}
