:root {
  --navy: #0a2138;
  --navy-hover: #143753;
  --ivory: #f4f0e7;
  --paper: #fbfaf7;
  --copper: #b87850;
  --ink: #14283a;
  --muted: #5f6d78;
  --line: rgba(10, 33, 56, .15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 16px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border: 2px solid var(--copper);
  background: #fff;
  color: var(--navy);
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid #d99a6e;
  outline-offset: 4px;
}

.profile-wrap {
  width: min(760px, calc(100% - 32px));
  margin: auto;
  padding: 28px 0 60px;
}

.profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 54px;
}

.home-link { display: inline-block; }
.mini-logo { width: 58px; height: auto; }

.languages {
  display: flex;
  align-items: center;
  gap: 10px;
}

.languages button {
  min-width: 30px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 7px 2px 5px;
  background: transparent;
  color: #7b858e;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}

.languages button:hover { color: var(--navy); }

.languages button.active {
  border-bottom-color: var(--copper);
  color: var(--navy);
}

.profile-card {
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 25px 70px rgba(10, 33, 56, .12);
}

.profile-hero {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 36px;
  align-items: center;
  padding: 52px;
  background: var(--navy);
  color: #fff;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--copper);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.profile-hero h1 {
  margin: 0 0 8px;
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: -.04em;
}

.profile-hero .role {
  margin: 0 0 24px;
  color: var(--ivory);
}

.profile-hero .strap {
  margin: 0;
  color: #cad3da;
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.profile-photo {
  width: 190px;
  height: 220px;
  border-radius: 2px 2px 34px 2px;
  object-fit: cover;
  object-position: 50% 38%;
}

.profile-body { padding: 48px 52px; }

.profile-body > .intro {
  margin: 0 0 38px;
  color: #52616d;
  font-size: 1.08rem;
}

.focus-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 38px;
}

.focus {
  border: 1px solid var(--line);
  padding: 16px;
  color: var(--navy);
  font-weight: 750;
}

.profile-actions {
  display: grid;
  gap: 12px;
}

.action-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 1px solid var(--navy);
  padding: 10px 20px;
  background: var(--navy);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 750;
  transition: transform .2s ease, background .2s ease,
    border-color .2s ease, color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--navy-hover);
}

.action-call {
  border-color: var(--navy);
  background: transparent;
  color: var(--navy);
}

.action-call:hover {
  background: rgba(10, 33, 56, .06);
  color: var(--navy);
}

.action-revolut {
  border-color: var(--copper);
  background: transparent;
  color: var(--navy);
}

.action-revolut:hover {
  border-color: #95603f;
  background: var(--ivory);
  color: var(--navy);
}

.profile-note {
  margin: 34px 0 0;
  color: #52616d;
  font-size: .9rem;
}

.profile-footer {
  margin-top: 28px;
  color: #71808b;
  text-align: center;
  font-size: .85rem;
}

.profile-footer a { text-decoration: none; }
.profile-footer a:hover { color: var(--navy); }

@media (max-width: 850px) {
  .profile-hero {
    grid-template-columns: 1fr;
    padding: 38px 30px;
  }

  .profile-heading { grid-row: 2; }

  .profile-photo {
    grid-row: 1;
    width: 100%;
    height: 300px;
  }

  .profile-body { padding: 36px 30px; }
}

@media (max-width: 600px) {
  .profile-wrap {
    width: min(100% - 20px, 760px);
    padding-top: 18px;
  }

  .profile-top { margin-bottom: 28px; }
  .profile-hero { padding: 30px 24px; }

  .profile-hero h1 {
    font-size: clamp(2.05rem, 10vw, 2.3rem);
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: .7rem;
    letter-spacing: .14em;
  }

  .profile-photo { height: 270px; }
  .profile-body { padding: 30px 24px; }
  .profile-body > .intro { margin-bottom: 28px; }
  .focus-list { grid-template-columns: 1fr; margin-bottom: 30px; }
  .action-pair { grid-template-columns: 1fr; }
  .button { width: 100%; }
}

@media (orientation: landscape) and (max-height: 560px) and (max-width: 950px) {
  .profile-wrap {
    width: min(920px, calc(100% - 28px));
    padding: 12px 0 28px;
  }

  .profile-top { margin: 0 6px 12px; min-height: 42px; }
  .mini-logo { width: 46px; }
  .profile-card { box-shadow: 0 16px 45px rgba(10, 33, 56, .12); }

  .profile-hero {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
    gap: 24px;
    padding: 26px 28px;
  }

  .profile-heading { grid-column: 1; grid-row: 1; }

  .profile-photo {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: 220px;
  }

  .profile-hero h1 { font-size: clamp(2rem, 5vw, 2.55rem); }
  .profile-hero .role { margin-bottom: 14px; font-size: .95rem; }
  .profile-hero .strap { font-size: .72rem; }
  .profile-body { padding: 26px 28px; }
  .profile-body > .intro { margin-bottom: 22px; font-size: .98rem; }
  .focus-list { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
  .focus { padding: 12px 14px; font-size: .9rem; }
  .button { min-height: 44px; padding: 8px 10px; font-size: .78rem; }
  .profile-note { margin-top: 20px; font-size: .82rem; }
  .profile-footer { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
