*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #07080b;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.stage {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
}

/* Full-Page Image Layer */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #07080b;
}

.backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  display: block;
  transform: scale(1.025);
  transition: transform 9s cubic-bezier(0.16, 1, 0.3, 1);
}

.backdrop.is-loaded img {
  transform: scale(1);
}

/* Balanced Vignette: Keeps Portrait Crisp & Text High-Contrast */
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 26%, rgba(7, 8, 11, 0.04) 0%, rgba(7, 8, 11, 0.45) 74%),
    linear-gradient(180deg, rgba(7, 8, 11, 0.56) 0%, rgba(7, 8, 11, 0.06) 30%, rgba(7, 8, 11, 0.52) 64%, rgba(7, 8, 11, 0.94) 100%);
}

/* Top Bar */
.top-bar {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 3.5vw, 40px) clamp(20px, 5vw, 64px) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeSlide 0.7s ease forwards 0.1s;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.monogram {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 175, 104, 0.55);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.loc-text {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

/* Bottom Foreground Content */
.overlay-content {
  width: min(1320px, 100%);
  margin: auto auto 0;
  padding: clamp(40px, 9vw, 120px) clamp(20px, 5vw, 64px) clamp(28px, 4.5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeSlide 0.8s ease forwards 0.2s;
}

.identity-block {
  max-width: 720px;
}

h1 {
  margin: 0;
  text-wrap: balance;
  font-size: clamp(46px, 7.2vw, 88px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
}

.identity-block h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 22px;
  border-radius: 3px;
  background: linear-gradient(90deg, #d4af68, rgba(212, 175, 104, 0));
}

/* Clean, Balanced Role Cards (No Tall Side Bar) */
.roles-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.role-card {
  padding: 13px 18px;
  border-radius: 14px;
  background: rgba(13, 16, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.role-card:hover {
  transform: translateY(-2px);
  background: rgba(18, 22, 32, 0.82);
  border-color: rgba(255, 255, 255, 0.28);
}

.role-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.role-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4af68;
  flex-shrink: 0;
}

.role-card strong {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.role-meta {
  padding-left: 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

/* Social & Contact Links Grid */
.social-bar {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 14px;
  background: rgba(15, 18, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.social-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.social-link:hover {
  transform: translateY(-3px);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.38);
}

.social-link.brand-linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
}

.social-link.brand-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.social-link.brand-instagram:hover {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  border-color: transparent;
}

.social-link.brand-whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: #07140c;
}

.social-link.brand-email:hover,
.social-link.brand-phone:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #07080b;
}

.social-link:focus-visible {
  outline: 2px solid #d4af68;
  outline-offset: 3px;
}

@keyframes fadeSlide {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 920px) {
  .overlay-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .social-bar {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .top-bar {
    padding-top: 18px;
  }
  .loc-text {
    display: none;
  }
  .overlay-content {
    padding: 20px 18px 28px;
    gap: 22px;
  }
  .roles-list {
    flex-direction: column;
    width: 100%;
  }
  .social-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .backdrop img,
  .top-bar,
  .overlay-content,
  .role-card,
  .social-link {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
