:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f5f5f5;
  --color-dark: #222222;
  --color-accent: #cddc39;
  --color-text-main: #222222;
  --color-text-muted: #555555;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--color-text-main);
  background: var(--color-bg);
}

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

main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.site-header {
  position: relative;
  padding: 1.75rem 1.5rem 1rem;
  background: linear-gradient(
    180deg,
    var(--color-bg) 0,
    var(--color-bg-soft) 100%
  );
  background-image:
    linear-gradient(180deg, var(--color-bg) 0, var(--color-bg-soft) 100%),
    repeating-linear-gradient(
      -45deg,
      rgba(230, 230, 230, 0.5),
      rgba(230, 230, 230, 0.5) 1px,
      transparent 1px,
      transparent 8px
    );
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
}

.header-logo {
  display: flex;
  justify-content: center;
}

.header-logo img {
  height: 70px;
  width: auto;
}

.header-lang-switch {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
}

.lang-btn {
  border: none;
  padding: 2px;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.lang-btn svg {
  display: block;
}

.lang-btn.active,
.lang-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.18);
  background-color: rgba(255, 255, 255, 0.8);
}

.lang-btn:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 1.5rem 5rem;
  background: var(--color-bg-soft);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(230, 230, 230, 0.5),
    rgba(230, 230, 230, 0.5) 1px,
    transparent 1px,
    transparent 8px
  );
  background-size: 280px 280px;
  animation: heroBackgroundDrift 32s linear infinite alternate;
}

.hero-bg-layer {
  display: none;
}

.hero::before {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -20%;
  height: 28%;
  background: var(--color-accent);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 0;
  transform-origin: 50% 100%;
  animation: accentWave 5s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -48%;
  height: 52%;
  background: var(--color-dark);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  animation: heroContentIn 700ms ease-out forwards;
  opacity: 0;
  transform: translateY(12px);
}

.hero-tagline {
  font-family: "Noto Serif", "Times New Roman", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  margin: 0 0 0.75rem;
}

.hero-subtitle {
  font-weight: 400;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  margin: 0;
  color: var(--color-text-muted);
}

.profile {
  position: relative;
  z-index: 1;
  padding: 1rem 1.5rem 2rem;
  background: var(--color-bg-soft);
}

.profile-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.profile-title {
  font-family: "Noto Serif", "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 2vw, 1.9rem);
  margin: 0 0 1.5rem;
}

.profile-body {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.profile-emphasis {
  margin-top: 1.25rem;
  font-family: "Noto Serif", "Times New Roman", serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.contact {
  position: relative;
  padding: 4.5rem 1.5rem 4rem;
  margin-top: -2.5rem;
  background: var(--color-dark);
}

.contact-curved-bg {
  position: absolute;
  left: 50%;
  top: -4.5rem;
  width: 140%;
  height: 9rem;
  background: var(--color-dark);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: translateX(-50%);
  z-index: 0;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 1.8rem 1.5rem 3rem;
  color: #f0f0f0;
}

.contact-heading {
  margin: 0 0 2.8rem;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: #ffffff;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.2rem;
  row-gap: 0.5rem;
  justify-items: start;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
}

.contact-item--company {
  grid-column: 1 / -1;
}

.contact-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  display: block;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.95rem;
  min-width: 0;
  overflow-wrap: break-word;
}

.contact-line--primary {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.contact-line a,
a.contact-line {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 1px;
}

.contact-line a:hover,
a.contact-line:hover {
  border-bottom-color: rgba(255, 255, 255, 0.8);
}

@keyframes accentWave {
  0%, 100% {
    transform: translateX(-4%) scaleX(1.08);
  }
  50% {
    transform: translateX(4%) scaleX(0.95);
  }
}

@keyframes heroBackgroundDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: -60px -40px, -120px -80px;
  }
}

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .header-logo {
    order: 1;
  }

  .header-lang-switch {
    align-self: flex-end;
    order: 0;
  }

  .hero {
    padding-top: 2.4rem;
    padding-bottom: 4rem;
  }

  .hero::after {
    bottom: -42%;
    height: 48%;
  }

  .hero::before {
    bottom: -16%;
    height: 26%;
  }

  .contact {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2.5rem;
  }

  .contact-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding-inline: 1.1rem;
  }

  .hero {
    padding-inline: 1.1rem;
  }

  .profile {
    padding-inline: 1.1rem;
  }

  .contact {
    padding-inline: 1.1rem;
  }
}

