:root {
  --ink: #071d3a;
  --ink-soft: #31435c;
  --muted: #697789;
  --line: #d9e2ec;
  --surface: #ffffff;
  --surface-cool: #f5f9fc;
  --navy: #082f5f;
  --navy-deep: #041f42;
  --teal: #087b92;
  --accent: #b46f3a;
  --shadow: 0 18px 42px rgba(7, 29, 58, 0.12);
  --radius: 8px;
  --shell: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.brand strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.15;
}

.brand small {
  display: block;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--teal);
}

.brand-mark svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  flex: 1;
}

.nav-menu a,
.footer-grid a {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: var(--teal);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 750;
  text-decoration: none;
}

.nav-cta,
.button.primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 22px rgba(8, 47, 95, 0.18);
}

.button.secondary {
  border: 1px solid var(--navy);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.86);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(64vw, 980px);
  height: 100%;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #fff 0%, #fff 35%, rgba(255, 255, 255, 0.82) 53%, rgba(255, 255, 255, 0.24) 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(8, 47, 95, 0.14) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 72px;
  background: var(--navy-deep);
  clip-path: polygon(0 34%, 56% 70%, 100% 18%, 100% 100%, 0 100%);
}

.hero-content {
  padding-top: clamp(96px, 13vw, 150px);
  padding-bottom: 92px;
  max-width: var(--shell);
}

.profession {
  width: fit-content;
  margin: 0 0 6px;
  color: var(--teal);
  font-size: clamp(1.55rem, 2.6vw, 2.45rem);
  font-weight: 500;
  line-height: 1;
}

.profession::after {
  content: "";
  display: block;
  width: 68px;
  height: 3px;
  margin-top: 18px;
  background: var(--teal);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 590px;
  margin-bottom: 18px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 7.1vw, 5.35rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 1.12;
}

h3 {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 520px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.hero-actions,
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-actions {
  margin-top: 30px;
}

.hero-facts {
  margin: 34px 0 0;
}

.hero-facts div {
  min-width: 190px;
  border-left: 3px solid var(--line);
  padding-left: 16px;
}

.hero-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 750;
}

.section {
  padding-block: clamp(54px, 7vw, 86px);
  scroll-margin-top: 92px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: clamp(32px, 4vw, 46px);
}

.summary-card {
  min-height: 250px;
  border-right: 1px solid var(--line);
  padding: 12px 28px 12px 0;
}

.summary-card + .summary-card {
  padding-left: 28px;
}

.summary-card:last-child {
  border-right: 0;
}

.section-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  place-items: center;
  color: var(--teal);
  font-size: 1.5rem;
}

.summary-card h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.summary-card p,
.summary-card li,
.prose p,
.section-heading p,
.timeline p,
.contact-card p,
.contact-card address {
  color: var(--ink-soft);
}

.summary-card ul {
  margin: 0;
  padding-left: 18px;
}

.band {
  background: var(--surface-cool);
  border-block: 1px solid var(--line);
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(34px, 6vw, 80px);
  align-items: start;
}

.section-label {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.prose {
  max-width: 680px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.competence-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-block: 1px solid var(--line);
}

.competence-grid article {
  min-height: 132px;
  border-right: 1px solid var(--line);
  padding: 24px 18px;
}

.competence-grid article:last-child {
  border-right: 0;
}

.competence-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 2rem;
  line-height: 1;
}

.competence-grid h3 {
  margin-bottom: 0;
  font-size: 0.96rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.timeline article,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 26px;
  box-shadow: 0 10px 28px rgba(7, 29, 58, 0.06);
}

.timeline time {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-section {
  background: linear-gradient(180deg, var(--surface-cool) 0%, #fff 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 24px;
}

.contact-card h3 {
  margin-bottom: 12px;
}

.contact-card address {
  margin-bottom: 18px;
  font-style: normal;
}

.contact-card a {
  color: var(--navy);
  font-weight: 750;
}

.contact-card-large {
  background: linear-gradient(135deg, #fff 0%, #eef6fb 100%);
}

.site-footer {
  background: var(--navy-deep);
  color: #d8e7f4;
  padding-block: 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  gap: 26px;
  align-items: center;
}

.footer-grid p {
  margin-bottom: 0;
  font-size: 0.86rem;
}

.footer-grid nav {
  display: flex;
  gap: 18px;
}

.footer-grid a {
  color: #fff;
}

.legal-page {
  background: var(--surface-cool);
}

.legal-shell {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(46px, 8vw, 84px) 0;
}

.legal-shell h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.legal-shell section {
  border-top: 1px solid var(--line);
  padding-block: 24px;
}

.legal-shell section h2 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.legal-warning {
  border-left: 4px solid var(--accent);
  background: #fff;
  padding: 16px 18px;
  color: var(--ink-soft);
  box-shadow: 0 10px 28px rgba(7, 29, 58, 0.06);
}

:focus-visible {
  outline: 3px solid rgba(8, 123, 146, 0.45);
  outline-offset: 3px;
}

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

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

@media (max-width: 980px) {
  .nav {
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    padding: 10px 20px 18px;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
    padding: 12px 0;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-bottom: 78px;
  }

  .hero-media {
    width: 100%;
    opacity: 0.26;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(255,255,255,0.94), rgba(255,255,255,0.82));
  }

  .intro-grid,
  .competence-grid,
  .timeline,
  .contact-grid,
  .two-column,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .summary-card,
  .summary-card + .summary-card,
  .competence-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 68px;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .nav-menu {
    top: 68px;
  }

  .hero-content {
    padding-top: 84px;
    padding-bottom: 80px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-facts {
    display: none;
  }

  .intro-grid,
  .competence-grid,
  .timeline,
  .contact-grid,
  .two-column,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .competence-grid article {
    min-height: 96px;
  }

  .footer-grid nav {
    flex-direction: column;
    gap: 8px;
  }
}
