.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact-actions a,
.contact-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 210px;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 12px;
  background: rgba(255,255,255,.10);
  color: white;
  font-weight: 800;
  gap: 28px;
  transition: transform .2s, background .2s;
  font: inherit;
  cursor: pointer;
}

.contact-actions a:hover,
.contact-actions button:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.17);
}

.contact-actions a.contact-primary {
  border-color: white;
  background: white;
  color: var(--ink);
}

.contact > small {
  display: block;
  margin-top: 18px;
  opacity: .72;
}

footer a:hover { color: var(--violet); }
.privacy-link { display: inline-block; margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; }

.brand-logo img {
  display: block;
  width: 156px;
  height: auto;
}

footer .brand-logo img { width: 138px; }

/* Dark SafeHR theme */
body {
  background: #080b18;
  color: #f6f7ff;
}

.nav {
  max-width: none;
  width: 100%;
  padding-left: max(28px,calc((100vw - 1184px)/2));
  padding-right: max(28px,calc((100vw - 1184px)/2));
  border-color: #e5e8f4;
  background: rgba(255,255,255,.97);
  box-shadow: 0 8px 30px rgba(18,24,57,.08);
}

.brand-logo {
  padding: 7px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.96);
}

.nav nav { color: #4e5670; }
.nav-cta { border-color: #29304d; color: #171c35; }
.lead, .section-head p { color: #adb5ce; }
.secondary { border-color: rgba(255,255,255,.20); color: #eef0ff; }
.metrics span { color: #929bb7; }

.hero {
  grid-template-columns: .86fr 1.14fr;
  min-height: 760px;
}

.portrait-wrap {
  width: 65%;
  min-height: 500px;
  justify-self: center;
}
.portrait-card {
  inset: 0 0 0 18px;
  border: 1px solid rgba(139,111,255,.28);
  border-radius: 220px 36px 220px 36px;
  box-shadow: 0 35px 90px rgba(0,0,0,.42);
}
.portrait-card img { object-position: 50% 23%; }
.portrait-label { background: #11162b; color: white; }

.section, .education { background: #0e1223; }
.education { padding-left: 0; padding-right: 0; overflow: hidden; }
.education .section-head {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}
.service { background: #14192e; border-color: rgba(255,255,255,.10); color: #f6f7ff; }
.service p { color: #aeb5cd; }
.service.featured { background: linear-gradient(150deg,#244bd3,#7035d2); }
.approach { background: #080b18; }

.carousel-shell {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) 48px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 0 18px;
}

.credential-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 7px 3px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #6543dc #171c31;
}

.credential {
  flex: 0 0 clamp(290px, 25vw, 390px);
  min-width: 0;
  background: #14192e;
  border-color: rgba(255,255,255,.11);
  color: #f7f8ff;
  scroll-snap-align: start;
}
.credential small { color: #9da5c0; }
.credential img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  object-position: center;
  background: white;
  border-color: rgba(255,255,255,.10);
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%;
  background: #171c32;
  color: white;
  font-size: 21px;
  cursor: pointer;
  transition: .2s;
}
.carousel-arrow:hover { background: #6543dc; transform: scale(1.05); }

footer {
  max-width: none;
  padding-left: max(28px,calc((100vw - 1184px)/2));
  padding-right: max(28px,calc((100vw - 1184px)/2));
  color: #616980;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg,#2850d8,#7a35dc) 1;
  background: #fff;
}
dialog { background: #11162b; }

@media (max-width: 520px) {
  .nav { padding-left: 18px; padding-right: 18px; }
  .nav .brand-logo img { width: 126px; }
  .contact-actions { flex-direction: column; }
  .contact-actions a { width: 100%; }
  .contact-actions button { width: 100%; }
  .hero { grid-template-columns: 1fr; }
  .portrait-wrap { width: 65%; min-height: 390px; }
  .portrait-card { inset: 0; }
  .carousel-shell { grid-template-columns: 1fr; }
  .carousel-shell { padding: 0 18px; }
  .carousel-arrow { display: none; }
  .credential { flex-basis: 86%; display: block; }
  .credential img { height: 180px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.10); }
}
