:root {
  color-scheme: light;
  --black: #1d1d1b;
  --text: #242421;
  --muted: #6b6b64;
  --paper: #ffffff;
  --soft: #f4f4ef;
  --line: #deded6;
  --line-dark: #242421;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(29, 29, 27, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(29, 29, 27, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f8f8f4 100%);
  background-size: 96px 96px, 96px 96px, auto;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 10;
  padding: 12px 16px;
  color: #ffffff;
  background: var(--black);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

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

.site {
  display: grid;
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 54px);
  grid-template-rows: auto 1fr auto;
  gap: clamp(44px, 7vw, 88px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  max-width: min(42vw, 340px);
}

.logo {
  display: block;
  width: 100%;
  height: auto;
}

.mail-link,
.primary-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 0 18px;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.mail-link {
  background: rgba(255, 255, 255, 0.72);
}

.hero {
  align-self: center;
  max-width: 1120px;
  padding: clamp(26px, 5vw, 66px) 0;
}

.kicker {
  display: inline-flex;
  margin: 0 0 28px;
  border-bottom: 2px solid var(--black);
  padding-bottom: 8px;
  color: var(--black);
  font-size: clamp(0.84rem, 1.1vw, 1rem);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 1080px;
  margin: 0;
  color: var(--black);
  font-size: clamp(2.9rem, 7.4vw, 7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.intro {
  max-width: 720px;
  margin: clamp(28px, 4vw, 42px) 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.55;
}

.primary-link {
  margin-top: 34px;
  color: #ffffff;
  background: var(--black);
  transition: transform 180ms ease, background-color 180ms ease;
}

.primary-link:hover {
  background: #000000;
  transform: translateY(-2px);
}

.expertise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line);
}

.expertise article {
  min-height: 210px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.54);
}

.expertise article + article {
  border-left: 1px solid var(--line);
}

.expertise span {
  display: block;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.expertise h2 {
  margin: 0 0 12px;
  color: var(--black);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
}

.expertise p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .site {
    gap: 42px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .logo-link {
    max-width: min(72vw, 300px);
  }

  .mail-link,
  .primary-link {
    width: 100%;
  }

  .hero {
    padding: 12px 0 24px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5.8rem);
  }

  .expertise {
    grid-template-columns: 1fr;
  }

  .expertise article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

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