.avatar {
  overflow: hidden;
}

.avatar.has-photo {
  width: 148px;
  height: 148px;
  border: 2px solid rgba(176, 141, 87, 0.55);
  box-shadow: 0 14px 32px rgba(11, 31, 58, 0.16);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
}

.avatar.photo-faith img {
  object-position: 50% 50%;
  transform: scale(1.04);
}

.avatar.photo-irma img {
  object-position: 50% 50%;
  transform: scale(1.04);
}

.avatar.photo-sr img {
  object-position: 50% 20%;
}

.team-grid {
  grid-template-columns: repeat(4, 1fr);
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(176, 141, 87, 0.55);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.profile-link:hover,
.profile-link:focus-visible {
  color: var(--gold);
}

/* Eleven sectors: retain the grid rules for the final two-card row. */
.sector-grid article:nth-last-child(-n + 3) {
  border-bottom: 1px solid var(--line);
}

.sector-grid article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

@media (max-width: 980px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sector-grid article:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .sector-grid article:last-child {
    border-bottom: 0;
  }
}

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

/* Brand and finish refinements */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 5px;
}

.site-header {
  transition: padding 0.25s, background-color 0.25s, box-shadow 0.25s;
}

.site-header.scrolled {
  background: rgba(7, 22, 39, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.hero {
  background:
    radial-gradient(circle at 80% 40%, rgba(212, 184, 130, 0.15), transparent 29%),
    linear-gradient(120deg, #071627, #0b1f3a 52%, #061321);
}

.section > *,
.contact-inner {
  width: min(100%, 1440px);
  margin-inline: auto;
}

.contact,
.contact-grid > * {
  background-color: #071627;
}

footer {
  background: #050f1c;
}

.sector-grid article,
.portfolio-grid article,
.team-grid article {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .sector-grid article:hover,
  .portfolio-grid article:hover,
  .team-grid article:hover {
    position: relative;
    z-index: 1;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(11, 31, 58, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
