:root {
  --bg: #f5f8fa;
  --surface: #ffffff;
  --text: #102a43;
  --muted: #486581;
  --brand: #1f7a8c;
  --brand-strong: #155e75;
  --line: #d9e2ec;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--brand-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--text);
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
}

.skip-link:focus-visible {
  top: 1rem;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  color: var(--text);
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
}

.brand .wordmark {
  width: 220px;
  height: auto;
  border-radius: 0;
}

.brand img,
.image-frame img,
.card img {
  max-width: 100%;
}

.ki-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.ki-list li {
  margin-bottom: 0.35rem;
}

.ki-list cite {
  display: block;
  font-style: normal;
  font-size: 0.9em;
  color: var(--muted);
  margin-top: 0.15rem;
}

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-toggle,
.nav-toggle-label {
  display: none;
}

nav a {
  color: var(--text);
  font-weight: 500;
}

nav a[aria-current="page"] {
  color: var(--brand-strong);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.linkedin-link {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
}

.lang-switch:hover {
  text-decoration: none;
  border-color: var(--brand);
}

.hero {
  padding: 3.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  max-width: 60ch;
}

.button {
  display: inline-block;
  margin-top: 1rem;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 600;
}

.button:hover {
  background: var(--brand-strong);
  text-decoration: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.section {
  padding: 2rem 0;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.section p.lead {
  color: var(--muted);
  margin-bottom: 1rem;
}

.pull-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--brand);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
}

.pull-quote p {
  margin: 0;
  font-style: italic;
}

.pull-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.9em;
  color: var(--muted);
}

.image-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: 2rem;
}

.footer-wrap {
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-wrap div {
  display: flex;
  gap: 1rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .card-grid,
  .card-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
  }

  .nav-toggle-label {
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
  }

  .nav-toggle-label span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
  }

  nav {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 0 0.6rem;
  }

  .nav-toggle:checked ~ nav {
    display: flex;
  }

  nav a {
    padding: 0.55rem 0;
    border-top: 1px solid var(--line);
  }

  .brand .wordmark {
    width: 180px;
  }

  .brand img {
    width: 64px;
    height: 64px;
  }
}
