:root {
  --cor1: #3f276d;
  --cor1l: #7038ca;
  --cor1d: #2d1b4b;
  --cor2: #ee771b;
  --cor2l: #f29845;
  --cor2d: #e06016;
  --cor3d: #943a18;
  --cor3: #000;
  --dark1: rgba(0, 0, 0, 0.82);
  --dark2: rgba(0, 0, 0, 0.67);
  --dark3: rgba(0, 0, 0, 0.5);
  --cor-destaque: #ffc107;
  --branco: #fff;
  --cinza1: #1e1e1e;
  color-scheme: dark;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  color: var(--branco);
  background: var(--cor1d);
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  background: var(--cor3);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: min(1040px, 100vh);
  background-image: url("../media/pcb-overlay-bg.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.72) 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.72) 72%, transparent 100%);
  pointer-events: none;
}

body::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  min-height: 100%;
  background:
    radial-gradient(ellipse at 26% 8%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.04) 22%, rgba(0, 0, 0, 0.32) 48%, rgba(0, 0, 0, 0.76) 72%, var(--cor3) 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.08) 34%, rgba(0, 0, 0, 0.54) 68%, var(--cor3) 96%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.16) 48%, rgba(0, 0, 0, 0.44) 100%);
  pointer-events: none;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 84px;
  padding: 22px clamp(20px, 5vw, 64px);
  border-bottom: 0px solid transparent;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent);
  transition: min-height 220ms ease, padding 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  min-height: 68px;
  padding-block: 12px;
  border-bottom-color: rgba(0, 0, 0, 0.42);
  background: rgba(4, 3, 8, 0.78);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  width: clamp(150px, 18vw, 240px);
  height: auto;
  transition: width 220ms ease;
}

.site-header.is-scrolled .logo img {
  width: clamp(112px, 12vw, 168px);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding: 250px clamp(20px, 5vw, 64px) 72px;
}

.showcase {
  width: 100%;
}

.showcase-heading {
  max-width: 880px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cor2);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 1;
  font-weight: 800;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.showcase-secondary {
  margin-top: 10px;
}

.showcase-secondary .showcase-heading {
  margin-bottom: 12px;
}

.project-title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 3.2rem);
  line-height: 1;
  font-weight: 700;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.48);
}

.carousel-shell {
  position: relative;
  width: 100%;
}

.video-carousel {
  display: flex;
  gap: clamp(16px, 2.75vw, 32px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 4px;
  scrollbar-width: none;
  margin: -18px 0 -26px;
  padding: 28px 4px 58px;
}

.video-carousel::-webkit-scrollbar {
  display: none;
}

.video-card {
  position: relative;
  flex: 0 0 clamp(300px, 28vw, 460px);
  min-height: 180px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--cinza1);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
  cursor: pointer;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.video-card:hover {
  transform: scale(1.04);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.54);
}

.video-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.86));
  pointer-events: none;
}

.video-info {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 16px;
}

.video-info span {
  color: var(--cor2l);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.video-info h2 {
  margin: 4px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.15;
}

.carousel-control {
  position: absolute;
  z-index: 3;
  top: 10px;
  bottom: 32px;
  display: grid;
  place-items: center;
  width: 52px;
  border: 0;
  border-radius: 0;
  color: var(--branco);
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  opacity: 0;
  transition: opacity 160ms ease, background 160ms ease;
}

.carousel-control svg {
  width: 34px;
  height: 34px;
}

.carousel-shell:hover .carousel-control,
.carousel-control:focus-visible {
  opacity: 1;
}

.carousel-control:hover {
  background: rgba(0, 0, 0, 0.72);
}

.carousel-control-left {
  left: 0;
}

.carousel-control-right {
  right: 0;
}

.video-modal {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(0, 0, 0, 0.86);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(4px);
  transition: all 160ms ease;
}

.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-frame {
  width: min(1180px, 100%);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.video-modal-close {
  position: absolute;
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: transparent;
  opacity: 0.78;
  cursor: pointer;
  transition: opacity 160ms ease, transform 160ms ease;
}

.video-modal-close svg {
  width: 30px;
  height: 30px;
}

.video-modal-close:hover,
.video-modal-close:focus-visible {
  opacity: 1;
  transform: scale(1.08);
}

.video-modal iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

@media (max-width: 760px) {
  .site-header {
    min-height: 72px;
  }

  .site-header.is-scrolled {
    min-height: 58px;
    padding-block: 10px;
  }

  .site-header.is-scrolled .logo img {
    width: clamp(104px, 36vw, 136px);
  }

  .page {
    padding-top: 118px;
    padding-bottom: 40px;
  }

  .video-carousel {
    gap: 20px;
  }

  .video-card {
    flex-basis: 78vw;
  }

  .carousel-control {
    display: none;
  }
}
