:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body.menu-open {
  overflow: hidden;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.hero-gradient {
  background: linear-gradient(135deg, #00254b 0%, #003b71 100%);
}

.hero-ambient {
  pointer-events: none;
  opacity: 0.72;
}

.hero-ambient__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, rgba(198, 218, 247, 0.1) 5%, rgba(198, 218, 247, 0.03) 42%, rgba(198, 218, 247, 0.12) 100%),
    radial-gradient(circle at 18% 16%, rgba(218, 232, 252, 0.2), transparent 38%),
    radial-gradient(circle at 80% 80%, rgba(177, 203, 238, 0.16), transparent 46%);
}

.hero-ambient__ray {
  position: absolute;
  top: -18%;
  right: 14%;
  width: min(18vw, 230px);
  height: 145%;
  border-left: 1px solid rgba(218, 232, 252, 0.22);
  border-right: 1px solid rgba(218, 232, 252, 0.16);
  background: linear-gradient(
    180deg,
    rgba(218, 232, 252, 0.2) 0%,
    rgba(218, 232, 252, 0.05) 55%,
    rgba(218, 232, 252, 0) 100%
  );
  transform: rotate(8deg);
  animation: hero-ray-shift 34s ease-in-out infinite alternate;
}

.hero-ambient__glow {
  position: absolute;
  border-radius: 999px;
  mix-blend-mode: screen;
  will-change: transform;
}

.hero-ambient__glow--a {
  width: min(44vw, 580px);
  aspect-ratio: 1;
  right: -8%;
  top: -28%;
  background: radial-gradient(circle, rgba(224, 236, 252, 0.28) 0%, rgba(224, 236, 252, 0) 68%);
  animation: hero-glow-drift-a 30s ease-in-out infinite alternate;
}

.hero-ambient__glow--b {
  width: min(36vw, 480px);
  aspect-ratio: 1;
  left: -10%;
  bottom: -34%;
  background: radial-gradient(circle, rgba(176, 201, 236, 0.22) 0%, rgba(176, 201, 236, 0) 70%);
  animation: hero-glow-drift-b 38s ease-in-out infinite alternate;
}

.hero-ambient__grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0.4px, transparent 0.5px);
  background-size: 3px 3px;
}

.about-slider {
  position: relative;
}

.about-slider__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.about-slider__image.is-active {
  opacity: 1;
}

.about-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background-color: rgba(0, 37, 75, 0.7);
  border: 1px solid rgba(212, 227, 255, 0.5);
  backdrop-filter: blur(2px);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.about-slider__arrow:hover,
.about-slider__arrow:focus-visible {
  background-color: rgba(0, 37, 75, 0.9);
  transform: translateY(-50%) scale(1.04);
}

.about-slider__arrow--prev {
  left: 0.9rem;
}

.about-slider__arrow--next {
  right: 0.9rem;
}

@keyframes hero-ray-shift {
  0% {
    transform: translate3d(0, 0, 0) rotate(8deg);
  }

  100% {
    transform: translate3d(-14px, 8px, 0) rotate(10deg);
  }
}

@keyframes hero-glow-drift-a {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(-18px, 10px, 0) scale(1.06);
  }
}

@keyframes hero-glow-drift-b {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(20px, -12px, 0) scale(1.05);
  }
}

.practice-area-card {
  align-self: start;
  border: 1px solid #d7dbe4;
  transition: border-color 0.25s ease, background-color 0.25s ease,
    transform 0.25s ease;
}

.practice-area-card:hover {
  background-color: #f3f3f8;
  transform: translateY(-2px);
}

.practice-area-card[open] {
  border-color: #94a3b8;
  background-color: #f3f3f8;
}

.practice-area-card__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 112px;
  padding: 1.5rem;
}

.practice-area-card__summary::-webkit-details-marker {
  display: none;
}

.practice-area-card__title {
  color: #00254b;
  font-family: "Noto Serif", serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.practice-area-card__icon {
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid #c2c9d6;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #42536b;
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease,
    background-color 0.2s ease, color 0.2s ease;
}

.practice-area-card[open] .practice-area-card__icon {
  transform: rotate(45deg);
  border-color: #0c6ea1;
  background-color: #e0f2fe;
  color: #0c4a6e;
}

.practice-area-card__content {
  padding: 0 1.5rem 1.5rem;
  color: #42536b;
}

.practice-area-card__intro {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.practice-area-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0c4a6e;
  margin-bottom: 0.5rem;
}

.practice-area-card__list {
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
  line-height: 1.45;
}

.nav-link {
  color: #475569;
}

.site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #dbe3ec;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #1e293b;
}

.nav-link.is-active {
  color: #075985;
  border-bottom-color: #075985;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 60;
  transform: translateY(-140%);
  background-color: #00254b;
  color: #ffffff;
  padding: 0.65rem 1rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}

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

[data-mobile-menu][hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .hero-ambient {
    opacity: 0.6;
  }

  .hero-ambient__ray {
    right: -3%;
    width: min(22vw, 150px);
  }

  .hero-ambient__glow--a {
    width: min(74vw, 410px);
    right: -20%;
    top: -20%;
  }

  .hero-ambient__glow--b {
    width: min(68vw, 360px);
    left: -24%;
    bottom: -26%;
  }

  .about-slider__arrow {
    width: 2.3rem;
    height: 2.3rem;
  }

  [data-mobile-menu] {
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ambient__ray,
  .hero-ambient__glow {
    animation: none;
    transform: none !important;
  }
}
