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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  background: linear-gradient(160deg, var(--color-background) 0%, var(--color-background-alt) 100%);
}

.site__backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 10%, rgba(204, 78, 36, 0.16) 0, transparent 26%),
    radial-gradient(circle at 82% 16%, rgba(15, 94, 112, 0.12) 0, transparent 30%),
    radial-gradient(circle at 50% 88%, rgba(204, 78, 36, 0.12) 0, transparent 24%);
  z-index: -1;
}

a {
  color: var(--color-link);
}

a:hover,
a:focus-visible {
  color: var(--color-link-hover);
}

p {
  max-width: var(--reading-max);
  margin: 0 0 var(--space-5);
}

h1,
h2,
h3 {
  margin: 0 0 var(--space-5);
  line-height: 1.15;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.container {
  width: min(var(--content-max), calc(100% - var(--space-8)));
  margin-inline: auto;
}

.section {
  padding: clamp(var(--space-16), 10vw, var(--space-24)) 0;
  animation: fade-up 0.7s ease both;
}

.section--compact {
  padding: clamp(var(--space-12), 8vw, var(--space-16)) 0;
}

.section--spacious {
  padding: clamp(var(--space-16), 12vw, calc(var(--space-24) + var(--space-10))) 0;
}

.section--soft {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid var(--color-border);
}

.section--wide p {
  max-width: min(98ch, 100%);
}

.section__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(9px);
  background: color-mix(in srgb, var(--color-surface) 75%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 75%, transparent);
}

.header__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header__brand {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.header__nav {
  margin-left: auto;
  display: none;
  gap: var(--space-6);
}

.header__nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-text-muted);
}

.lang-toggle {
  margin-left: var(--space-2);
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  padding: 3px;
}

.lang-toggle__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  min-width: 48px;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-display);
  text-decoration: none;
  cursor: pointer;
}

.lang-toggle__button.is-active {
  background: var(--color-accent);
  color: #fff;
}

.hero__grid {
  display: grid;
  gap: var(--space-10);
}

.hero__kicker {
  margin: 0 0 var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero__title {
  font-size: var(--text-hero);
  margin-bottom: var(--space-6);
  max-width: 14ch;
}

.hero__lede {
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-accent-hover);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

.hero-stats {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.hero-stats__portrait {
  margin: 0;
  border-radius: calc(var(--radius-md) + 2px);
  overflow: hidden;
}

.hero-stats__portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
}

.hero-stats__item + .hero-stats__item {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.hero-stats__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 var(--space-2);
}

.hero-stats__label {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 30ch;
}

.expertise-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.card__title {
  margin-bottom: var(--space-3);
  font-size: 1.2rem;
}

.card__body {
  margin: 0;
  color: var(--color-text-muted);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-6);
}

.timeline__item {
  background: color-mix(in srgb, var(--color-surface) 86%, transparent);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-sm);
}

.timeline__title {
  margin-bottom: var(--space-1);
  font-size: 1.22rem;
}

.timeline__meta {
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
  font-weight: 600;
}

.split {
  display: grid;
  gap: var(--space-10);
}

.list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: var(--space-3);
}

.tags {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.tags li {
  border: 1px solid var(--color-border);
  background: var(--color-surface-strong);
  border-radius: 999px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
}

.faq {
  margin: 0;
  display: grid;
  gap: var(--space-5);
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: var(--space-5);
}

.faq dt {
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: var(--space-2);
}

.faq dd {
  margin: 0;
  color: var(--color-text-muted);
}

.link-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: var(--space-2);
}

.link-list a {
  text-underline-offset: 0.18em;
  font-weight: 600;
}

.footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.footer__lead {
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}

.footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

[data-l10n] {
  animation: fade-up 0.45s ease both;
}

@media (min-width: 768px) {
  .header__nav {
    display: flex;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    align-items: start;
  }

  .hero-stats__portrait img {
    max-height: 360px;
  }

  .expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .expertise-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-stats__portrait img {
    max-height: 420px;
  }
}

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
