:root{
  --accent: #59886b;
  --muted: #6c757d;
  --card-bg: #ffffff;
  --radius: 12px;
  --transition: 180ms;
}

/* subtle card hover / focus */
.feature {
  transition: transform var(--transition) ease, box-shadow var(--transition) ease;
  border-radius: 0.75rem;
  cursor: pointer; /* made clickable by JS */
}
.feature:focus,
.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
  outline: none;
}

/* modal base */
.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

/* hidden state (initial) */
.profile-modal.hidden {
  display: none;
}

/* backdrop */
.profile-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

/* dialog container */
.profile-modal__dialog {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius);
  width: min(920px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  animation: modal-in var(--transition) cubic-bezier(.2,.9,.2,1);
  z-index: 1;
  outline: none;
}

/* dialog animation */
@keyframes modal-in {
  from { transform: translateY(8px) scale(.995); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* content layout */
.profile-modal__body {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  align-items: flex-start;
}

/* picture column */
.profile-modal__pic {
  flex: 0 0 180px;
  height: 180px;
  border-radius: .5rem;
  overflow: hidden;
  background: #efefef;
}
.profile-modal__pic img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* text column */
.profile-modal__text {
  flex: 1 1 auto;
  min-width: 0;
}
.profile-modal__text h3 {
  margin: 0 0 .25rem 0;
  font-size: 1.4rem;
  line-height: 1.15;
}
.profile-modal__role {
  margin: 0 0 .5rem 0;
  color: var(--muted);
  font-weight: 600;
  text-transform: none;
}
.profile-modal__bio p {
  margin: .3rem 0;
  color: #333;
  line-height: 1.45;
}
.profile-modal__nationality {
  margin-top: .75rem;
  color: var(--muted);
  font-weight: 600;
}

/* close button */
.profile-modal__close {
  position: absolute;
  right: 8px;
  top: 8px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}
.profile-modal__close:focus {
  outline: 2px solid rgba(89,136,107,0.35);
  border-radius: 6px;
}

/* mobile */
@media (max-width: 768px){
  .profile-modal__body { flex-direction: column; gap: .75rem; padding: .9rem; }
  .profile-modal__pic { width: 100%; height: 220px; flex: 0 0 auto; }
  .profile-modal__dialog { width: calc(100% - 20px); margin: 8px; }
}
