:root {
  --bg: #100c35;
  --panel: #2d294f;
  --panel-strong: #34305a;
  --text: #ffffff;
  --muted: #dde2ff;
  --muted-2: #bcc3e2;
  --green: #1d7438;
  --green-hover: #26884a;
  --red: #720813;
  --red-border: #a9222c;
  --border: rgba(226, 229, 255, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  width: 100%;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
}

.section {
  width: 100%;
  padding-inline: 16px;
}

.section-inner {
  width: min(1180px, 100%);
  margin-inline: auto;
}

/* =========================================================
   CABEÇALHOS / BADGES
   ========================================================= */

.section-head {
  width: 100%;
}

.section-title {
  margin: 13px 0 0;
  color: var(--text);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.035em;
}

/* Etiquetas vermelhas usadas na Gamma */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  min-height: 28px;
  margin: 0;
  padding: 6px 11px;
  background: var(--red);
  border: 1px solid var(--red-border);
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: none;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  width: min(1240px, calc(100% - 16px));
  margin: 70px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.63fr) minmax(330px, 0.87fr);
  gap: clamp(42px, 6vw, 72px);
  align-items: center;
}

.hero-media {
  width: 100%;
  aspect-ratio: 1.69 / 1;
  overflow: hidden;
  background: #19172d;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 24px 12px 0;
}

.hero-name {
  margin: 0 0 18px;
  font-size: clamp(32px, 3.05vw, 47px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero-role {
  margin: 0;
  max-width: 430px;
  color: var(--muted);
  font-size: clamp(20px, 1.75vw, 29px);
  line-height: 1.35;
  font-weight: 450;
}

.hero-headline {
  margin: 28px 0 0;
  max-width: 430px;
  font-size: clamp(20px, 1.72vw, 28px);
  line-height: 1.34;
  font-weight: 700;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 28px;
  min-height: 48px;
  padding: 0 20px;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 0;
  text-decoration: none;
  font-size: 17px;
  font-weight: 650;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
}

/* =========================================================
   EXPERIÊNCIA
   Fundo fotográfico em tela cheia + painel central,
   reproduzindo a composição da Gamma.
   ========================================================= */

.experience-section {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin-top: 116px;
  padding: 86px 0 86px;
  min-height: 538px;
  overflow: hidden;
}

.experience-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: var(--experience-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.experience-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(16, 12, 53, 0.26);
}

/* O painel central é o elemento que estava faltando.
   A foto fica atrás, ocupando toda a seção. */
.experience-section .experience-inner {
  position: relative;
  width: min(970px, calc(100% - 48px));
  max-width: 970px;
  min-height: 366px;
  margin: 0 auto;
  padding: 43px 55px 48px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.experience-section .section-head {
  width: 100%;
  padding-top: 0;
  text-align: left;
}

.experience-section .badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 6px 11px;
}

.experience-section .section-title {
  margin: 13px 0 0;
  text-align: left;
  font-size: clamp(28px, 2.1vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-shadow: none;
}

.experience-section .stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding: 38px 0 0;
}

.stat {
  text-align: center;
}

.stat-value {
  margin: 0;
  font-size: clamp(50px, 4vw, 58px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.055em;
  color: var(--muted);
}

.stat-label {
  margin: 20px 0 0;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.25;
  font-weight: 650;
}

.stat-text {
  max-width: 285px;
  margin: 12px auto 0;
  color: var(--muted-2);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.5;
}

/* =========================================================
   SERVIÇOS
   ========================================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
  margin-top: 40px;
}

.service-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.002);
}

.service-icon {
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border-bottom: 1px solid rgba(255, 255, 255, 0.015);
  color: var(--muted);
}

.service-icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.45;
}

.service-body {
  padding: 22px 23px 25px;
}

.service-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 650;
}

.service-text {
  margin: 9px 0 0;
  color: var(--muted-2);
  font-size: 16px;
  line-height: 1.5;
}

/* =========================================================
   INFRAESTRUTURA
   ========================================================= */

.infrastructure {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 3.3vw, 48px);
  align-items: center;
  padding: 29px 0 112px;
}

.infrastructure-media {
  width: 100%;
  aspect-ratio: 0.80 / 1;
  overflow: hidden;
}

.infrastructure-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.infrastructure-copy {
  padding-right: 15px;
}

.infrastructure-title {
  margin: 0;
  font-size: clamp(25px, 2.35vw, 34px);
  line-height: 1.15;
}

.infrastructure-list {
  margin: 22px 0 0;
  padding-left: 22px;
  color: var(--muted-2);
  font-size: 16px;
  line-height: 1.58;
}

.infrastructure-list li + li {
  margin-top: 10px;
}

.infrastructure-closing {
  margin: 26px 0 0;
  color: var(--muted-2);
  font-size: 16px;
  line-height: 1.58;
}

/* =========================================================
   PORTFÓLIO
   ========================================================= */

.portfolio {
  padding-bottom: 0;
}

.portfolio-section {
  margin-top: 0;
  padding-top: 22px;
}

.portfolio-section + .portfolio-section {
  margin-top: 28px;
}

.portfolio-section-title {
  margin: 0 0 19px;
  font-size: clamp(27px, 2.7vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.video-card {
  display: block;
  min-width: 0;
  text-decoration: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.003);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.video-card:hover {
  transform: translateY(-2px);
  border-color: rgba(226, 229, 255, 0.42);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #11111b;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.video-card:hover .thumb img {
  transform: scale(1.02);
}

.play {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 36px;
  height: 25px;
  border-radius: 8px;
  background: #ff001f;
  display: grid;
  place-items: center;
}

.play::before {
  content: "";
  display: block;
  margin-left: 2px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid white;
}

.video-meta {
  padding: 11px 12px 14px;
}

.video-kind {
  font-size: 10px;
  color: #f0f0ff;
  opacity: 0.92;
}

.video-title {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.27;
}

.video-desc {
  margin: 5px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.34;
}

.video-duration {
  margin: 6px 0 0;
  color: var(--muted-2);
  font-size: 11px;
}

/* =========================================================
   RODAPÉ
   ========================================================= */

.footer {
  padding: 76px 0 42px;
  display: flex;
  justify-content: center;
}

.socials {
  display: flex;
  align-items: center;
  gap: 46px;
}

.social-link {
  width: 61px;
  height: 61px;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px) scale(1.02);
}

.social-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-note {
  display: none;
}

.reveal {
  opacity: 1;
  transform: none;
}

/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
    gap: 40px;
  }

  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =========================================================
   CELULAR / TABLET PEQUENO
   ========================================================= */

@media (max-width: 780px) {
  .hero {
    width: min(100%, calc(100% - 24px));
    margin-top: 34px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-media {
    aspect-ratio: 1.55 / 1;
  }

  .hero-content {
    padding: 0 8px 30px;
  }

  .hero-name {
    font-size: 35px;
  }

  .hero-role,
  .hero-headline {
    font-size: 22px;
  }

  .section {
    padding-inline: 16px;
  }

  .experience-section {
    margin-top: 68px;
    min-height: auto;
    padding: 48px 0;
  }

  .experience-section .experience-inner {
    width: min(100%, calc(100% - 24px));
    max-width: none;
    min-height: auto;
    padding: 34px 24px 40px;
  }

  .experience-section .section-title {
    font-size: 29px;
  }

  .experience-bg {
    background-position: 52% center;
  }

  .experience-section .stats {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 36px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .infrastructure {
    grid-template-columns: 1fr;
  }

  .infrastructure-media {
    max-width: 560px;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .badge {
    font-size: 10px;
    min-height: 27px;
    padding: 6px 10px;
  }
}

/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 520px) {
  .hero-media {
    aspect-ratio: 1.45 / 1;
  }

  .hero-name {
    font-size: 32px;
  }

  .hero-role,
  .hero-headline {
    font-size: 21px;
  }

  .section-title {
    font-size: 30px;
  }

  .stat-value {
    font-size: 56px;
  }

  .portfolio-section-title {
    font-size: 29px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .socials {
    gap: 30px;
  }

  .experience-section {
    padding: 34px 0;
  }

  .experience-section .experience-inner {
    width: calc(100% - 18px);
    padding: 30px 18px 36px;
  }

  .experience-section .section-title {
    font-size: 27px;
  }
}
