:root {
  --brand-700: #1e293b;
  --brand-600: #2563eb;
  --brand-500: #3b82f6;
  --brand-100: #e0e7ff;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --ink: #0f172a;
  --surface: #f8fafc;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--surface);
}

.font-serif {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
}

.hero-surface {
  background:
    radial-gradient(1100px 460px at 50% -12%, rgba(37, 99, 235, 0.12), transparent 62%),
    linear-gradient(180deg, #eef2ff 0%, var(--surface) 58%);
}

.cta-band {
  background:
    radial-gradient(700px 300px at 85% 20%, rgba(59, 130, 246, 0.35), transparent 60%),
    linear-gradient(135deg, #1e293b 0%, #2563eb 100%);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--brand-600);
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link[aria-current='page']::after {
  width: 100%;
}

.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal {
  transform: translateY(14px);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.is-visible {
  transform: none;
}

.hero-photo {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.card-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.group:hover .card-cover img {
  transform: scale(1.04);
}

.service-card-hint {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.group:hover .service-card-hint,
.service-card:focus-visible .service-card-hint {
  opacity: 1;
}

.stack-pill {
  display: inline-flex;
  border-radius: 9999px;
  background-color: var(--brand-100);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-600);
}

.service-detail.hidden {
  display: none;
}

.service-detail {
  margin-top: 2.5rem;
  animation: service-detail-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-detail-panel {
  animation: service-detail-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-detail-layout {
  min-height: 20rem;
}

.service-detail-cover {
  min-height: 16rem;
}
.service-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card-active {
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.15);
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

@keyframes service-detail-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal[data-delay='1'] { transition-delay: 0.07s; }
.reveal[data-delay='2'] { transition-delay: 0.14s; }
.reveal[data-delay='3'] { transition-delay: 0.21s; }
.reveal[data-delay='4'] { transition-delay: 0.28s; }
.reveal[data-delay='5'] { transition-delay: 0.35s; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--brand-600);
  border-radius: 8px;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .service-detail,
  .service-detail-panel {
    animation: none !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
