html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
}

section {
  scroll-margin-top: 88px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.menu-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgb(68 64 60);
  transition: color 0.2s ease;
}

.menu-link:hover {
  color: rgb(28 25 23);
}

.mobile-menu-link {
  display: block;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  color: rgb(68 64 60);
}

.mobile-menu-link:hover {
  background: rgb(245 245 244);
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgb(120 113 108);
}

.section-title {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 600;
  color: rgb(28 25 23);
}

.service-card {
  border-radius: 1rem;
  border: 1px solid rgb(231 229 228);
  background: rgb(250 250 249);
  padding: 1.5rem;
}

.service-title,
.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgb(28 25 23);
}

.service-text,
.step-text {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgb(87 83 78);
}

.step-card {
  border-radius: 1rem;
  background: white;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  outline: 1px solid rgb(231 229 228);
}

.step-badge {
  margin-bottom: 1rem;
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgb(28 25 23);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
}

.gallery-shell {
  border-radius: 1.5rem;
  background: white;
  padding: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  outline: 1px solid rgb(231 229 228);
}

.gallery-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: rgb(245 245 244);
}

.gallery-image {
  display: block;
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  color: rgb(28 25 23);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.gallery-dot {
  height: 0.75rem;
  width: 0.75rem;
  border-radius: 9999px;
  border: 0;
  background: rgb(214 211 209);
  cursor: pointer;
}

.gallery-dot.active {
  background: rgb(87 83 78);
}

.audio-card,
.document-card {
  border-radius: 1rem;
  background: white;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  outline: 1px solid rgb(231 229 228);
}

.audio-title,
.document-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgb(28 25 23);
}

.document-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgb(28 25 23);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  transition: background 0.2s ease;
}

.document-link:hover {
  background: rgb(41 37 36);
}

code {
  border-radius: 0.375rem;
  background: rgb(245 245 244);
  padding: 0.15rem 0.35rem;
  font-size: 0.9em;
}

.fade-in-block {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
  will-change: opacity, transform;
}

.fade-in-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-in-item.visible {
  opacity: 1;
  transform: translateY(0);
}
