.highlight pre,
.code pre {
  padding: 12px 16px;
}

/* ── Homepage ── */
.hp { width: 100%; }

.hp-hero {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin: 1.5rem 0 2.5rem;
}

.hp-hero-content { flex: 1; min-width: 0; }

.hp-hero-content h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.35rem;
}

.hp-subtitle {
  font-size: 1.05rem;
  opacity: 0.65;
  margin: 0 0 0.9rem;
}

.hp-description {
  margin: 0 0 0.75rem;
  line-height: 1.75;
}

.hp-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
  font-size: 0.88rem;
  opacity: 0.85;
}

.hp-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hp-status-available .hp-status-dot {
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: hp-pulse 2.5s ease-in-out infinite;
}

.hp-status-busy .hp-status-dot {
  background: #f97316;
}

@keyframes hp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hp-hero-photo img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Buttons */
.hp-ctas { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.hp-btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.15s;
  line-height: 1;
}

.hp-btn:hover { opacity: 0.8; text-decoration: none; }

.hp-btn-primary { background: #1a69b5; color: #fff !important; }

.hp-btn-secondary {
  border: 2px solid #1a69b5;
  color: #1a69b5 !important;
}

/* Sections */
.hp-section {
  margin: 0 0 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.hp-section h2 { margin-top: 0; margin-bottom: 1rem; }

.hp-muted { font-size: 0.88rem; opacity: 0.6; }

/* Skills */
.hp-skills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.hp-skills li {
  background: rgba(128, 128, 128, 0.07);
  padding: 0.45rem 0.7rem;
  border-radius: 4px;
  font-size: 0.88rem;
  text-align: center;
}

/* Companies */
.hp-clients-label { margin: 0 0 0.6rem; }

.hp-clients {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1rem;
}

.hp-client { display: flex; align-items: center; }

.hp-client picture { display: contents; }

/* Logos are centred on their lettering: --text-center is where the
   lettering's vertical centre sits (fraction of the logo height). */
.hp-client img {
  height: var(--h, 22px);
  width: auto;
  max-width: 96px;
  object-fit: contain;
  position: relative;
  top: calc((0.5 - var(--text-center, 0.5)) * var(--h, 22px));
}

.hp-client-wordmark { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; white-space: nowrap; }

/* Work */
.hp-work { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 0.75rem; }

.hp-work-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

.hp-work-desc {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.82;
  line-height: 1.55;
}

/* Recommendations */
.hp-recs { display: flex; flex-direction: column; gap: 1.1rem; }

.hp-rec {
  background: rgba(128, 128, 128, 0.07);
  border-radius: 20px;
  padding: 1.25rem 1.5rem 1.25rem;
}

.hp-rec-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.hp-rec-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.hp-rec-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}

.hp-recs .hp-rec:nth-child(1) .hp-rec-initials { background: #1a69b5; }
.hp-recs .hp-rec:nth-child(2) .hp-rec-initials { background: #2a7a5e; }
.hp-recs .hp-rec:nth-child(3) .hp-rec-initials { background: #7a3a7a; }

.hp-rec blockquote {
  margin: 0;
  font-style: italic;
  line-height: 1.7;
  font-size: 0.95rem;
}

.hp-rec blockquote p { margin: 0 0 0.5em; }
.hp-rec blockquote p:last-child { margin-bottom: 0; }

/* Projects */
.hp-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.hp-project {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 6px;
}

.hp-project a { font-weight: 600; }

.hp-project p {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  opacity: 0.75;
  line-height: 1.4;
}

/* Certifications */
.hp-certs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hp-certs li { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }

/* Talks */
.hp-talks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hp-talks li { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }

/* Contact */
.hp-contact { text-align: center; }
.hp-contact h2 { margin-bottom: 0.4rem; }
.hp-contact > p { margin-bottom: 1.25rem; }
.hp-contact .hp-ctas { justify-content: center; margin-bottom: 1rem; }
.hp-contact-sub { margin: 0; opacity: 0.65; }

/* Responsive */
@media (max-width: 580px) {
  .hp-hero {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }
  .hp-status, .hp-ctas { justify-content: center; }
  .hp-hero-photo img { width: 110px; height: 110px; }
  .hp-skills { grid-template-columns: repeat(2, 1fr); }
  .hp-work-header { flex-direction: column; gap: 0.05rem; }
  .hp-certs li, .hp-talks li { flex-direction: column; gap: 0.1rem; }
}

/* Language switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  margin-left: auto;
}

.lang-switcher .lang-current {
  opacity: 0.35;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lang-switcher .lang-link {
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.65;
}

.lang-switcher .lang-link:hover {
  opacity: 1;
  text-decoration: none;
}

@media (min-width: 581px) {
  header {
    display: flex;
    align-items: center;
  }
}

/* ── Services ── */
.srv-eu-callout {
  border-left: 3px solid #1a69b5;
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── Contact page ── */
.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(128,128,128,0.3);
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.15s;
}
.social-link:hover { opacity: 0.75; text-decoration: none; }
