.bw-site {
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 12% 4%, rgba(72, 134, 192, 0.08), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(107, 174, 127, 0.10), transparent 26rem),
    var(--surface-page);
}

@keyframes bwRiseIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bwPhotoFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.35deg);
  }
}

@keyframes bwCardFloat {
  0%, 100% {
    transform: translateY(0) rotate(-0.4deg);
  }
  50% {
    transform: translateY(-11px) rotate(0.6deg);
  }
}

@keyframes bwSoftPulse {
  0%, 100% {
    box-shadow: var(--shadow-brand);
  }
  50% {
    box-shadow: 0 18px 38px rgba(72, 134, 192, 0.34);
  }
}

@keyframes bwAvatarBob {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-7px) scale(1.04);
  }
}

@keyframes bwArrowNudge {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

@keyframes bwProofShine {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.bw-header__inner a,
.bw-header__inner button,
.bw-photo,
.bw-card,
.bw-service-detail,
.bw-hero__families {
  transition:
    transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out),
    border-color 260ms var(--ease-out),
    background 260ms var(--ease-out);
}

.bw-header__inner button:hover,
.bw-header__inner a:hover,
.bw-hero__families:hover {
  transform: translateY(-1px);
}

.bw-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 13px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.bw-header__nav,
.bw-header__actions {
  display: flex;
  align-items: center;
}

.bw-header__nav {
  gap: 2px;
  margin-left: 10px;
}

.bw-header__nav a,
.bw-footer__grid a,
.bw-footer__legal a {
  display: inline-flex;
  align-items: center;
}

.bw-header__actions {
  margin-left: auto;
  gap: 12px;
}

.bw-header__cta-short {
  display: none;
}

.bw-hero__grid,
.bw-approach__grid,
.bw-contact__grid {
  display: grid;
  align-items: center;
}

.bw-hero__grid {
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
}

.bw-hero__title {
  animation: bwRiseIn 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bw-hero__lead {
  animation: bwRiseIn 760ms cubic-bezier(0.16, 1, 0.3, 1) 90ms both;
}

.bw-hero__actions {
  animation: bwRiseIn 760ms cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
}

.bw-hero__actions .bw-btn--primary {
  animation: bwSoftPulse 2.8s ease-in-out 1.1s infinite;
}

.bw-hero__families {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  animation: bwRiseIn 760ms cubic-bezier(0.16, 1, 0.3, 1) 270ms both;
}

.bw-hero__families:hover {
  transform: translateY(-2px);
}

.bw-hero__families .bw-avatar {
  animation: bwAvatarBob 2.9s ease-in-out infinite;
  box-shadow: 0 0 0 3px var(--surface-page), 0 10px 20px rgba(31, 40, 50, 0.12);
}

.bw-hero__families > div:first-child > div:nth-child(2) .bw-avatar {
  animation-delay: 120ms;
}

.bw-hero__families > div:first-child > div:nth-child(3) .bw-avatar {
  animation-delay: 240ms;
}

.bw-hero__families > div:first-child > div:nth-child(4) .bw-avatar {
  animation-delay: 360ms;
}

.bw-hero__families strong {
  background: linear-gradient(90deg, var(--text-body), var(--sky-600), var(--text-body));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: bwProofShine 4.8s ease-in-out infinite;
}

.bw-hero__media {
  animation: bwRiseIn 900ms cubic-bezier(0.16, 1, 0.3, 1) 140ms both;
}

.bw-hero__media .bw-photo {
  animation: bwPhotoFloat 5.4s ease-in-out 1.2s infinite;
}

.bw-hero__floating-card {
  animation: bwCardFloat 3.6s ease-in-out 1.4s infinite;
}

.bw-btn--primary svg:last-child {
  animation: bwArrowNudge 1.7s ease-in-out infinite;
}

.bw-approach__grid {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.bw-contact__grid {
  grid-template-columns: 1fr 1.25fr;
  align-items: start;
  gap: 40px;
}

.bw-testimonial__section {
  background:
    radial-gradient(circle at 18% 16%, rgba(138, 184, 223, 0.22), transparent 24rem),
    var(--sky-800);
  color: #fff;
}

.bw-testimonial__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 78px 28px;
}

.bw-testimonial__intro {
  max-width: 650px;
  margin-bottom: 34px;
  animation: bwRiseIn 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bw-testimonial__intro h2 {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.bw-testimonial__intro p {
  max-width: 52ch;
  margin: 14px 0 0;
  color: var(--sky-100);
  font-size: 18px;
  line-height: 1.6;
}

.bw-testimonial__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(310px, 0.82fr);
  gap: 18px;
  align-items: stretch;
}

.bw-testimonial__featured,
.bw-testimonial__card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  box-shadow: 0 24px 60px rgba(12, 24, 38, 0.16);
}

.bw-testimonial__featured {
  display: grid;
  align-content: space-between;
  min-height: 360px;
  padding: 34px;
  animation: bwRiseIn 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bw-testimonial__featured blockquote {
  max-width: 16ch;
  margin: 18px 0 32px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.bw-testimonial__supporting {
  display: grid;
  gap: 18px;
}

.bw-testimonial__card {
  display: grid;
  align-content: space-between;
  min-height: 171px;
  padding: 22px;
  animation: bwRiseIn 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
  transition:
    transform 260ms var(--ease-out),
    background 260ms var(--ease-out),
    border-color 260ms var(--ease-out);
}

.bw-testimonial__card:nth-child(2) {
  animation-delay: 110ms;
}

.bw-testimonial__card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
}

.bw-testimonial__card p {
  margin: 8px 0 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.5;
}

.bw-testimonial__person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bw-testimonial__person--small {
  gap: 10px;
  margin-top: 18px;
}

.bw-testimonial__name {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 16px;
}

.bw-testimonial__person--small .bw-testimonial__name {
  font-size: 14px;
}

.bw-testimonial__detail {
  margin-top: 2px;
  color: var(--sky-200);
  font-size: 14px;
}

.bw-testimonial__person--small .bw-testimonial__detail {
  font-size: 12px;
}

.bw-testimonial__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.bw-about__values-grid,
.bw-about__stats-grid,
.bw-about__mission-grid {
  min-width: 0;
}

.bw-footer__grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 28px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.bw-footer__legal {
  border-top: 1px solid var(--border-subtle);
  padding: 18px 28px;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
  color: var(--text-subtle);
}

.bw-services__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.bw-services__grid > .bw-card {
  animation: bwRiseIn 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bw-services__grid > .bw-card:nth-child(1) { animation-delay: 120ms; }
.bw-services__grid > .bw-card:nth-child(2) { animation-delay: 220ms; }
.bw-services__grid > .bw-card:nth-child(3) { animation-delay: 320ms; }
.bw-services__grid > .bw-card:nth-child(4) { animation-delay: 420ms; }
.bw-services__grid > .bw-card:nth-child(5) { animation-delay: 520ms; }

.bw-services__grid > .bw-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-lg);
}

.bw-service-detail {
  display: flex;
  gap: 44px;
  align-items: center;
}

.bw-service-detail--flip {
  flex-direction: row-reverse;
}

.bw-service-detail__media {
  flex: 0 0 38%;
}

.bw-points-grid,
.bw-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bw-photo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-sunken);
  transform: translateZ(0);
}

.bw-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 42%),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.32), transparent 30%);
  mix-blend-mode: screen;
}

.bw-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.012);
  transition: transform 700ms var(--ease-out), filter 700ms var(--ease-out);
}

.bw-photo:hover img {
  transform: scale(1.045);
}

.bw-page-hero {
  position: relative;
  overflow: hidden;
}

.bw-page-hero::before {
  content: "";
  position: absolute;
  inset: auto -8% -42px auto;
  width: min(42vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  filter: blur(8px);
  pointer-events: none;
}

.bw-motion-ready .bw-reveal {
  opacity: 0;
  transform: translateY(28px);
}

.bw-motion-ready .bw-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bw-services__grid .bw-reveal:nth-child(2),
.bw-testimonial__stats .bw-reveal:nth-child(2) {
  transition-delay: 70ms;
}

.bw-services__grid .bw-reveal:nth-child(3),
.bw-testimonial__stats .bw-reveal:nth-child(3) {
  transition-delay: 140ms;
}

.bw-services__grid .bw-reveal:nth-child(4),
.bw-testimonial__stats .bw-reveal:nth-child(4) {
  transition-delay: 210ms;
}

.bw-services__grid .bw-reveal:nth-child(5) {
  transition-delay: 280ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .bw-motion-ready .bw-reveal,
  .bw-reveal {
    opacity: 1;
    transform: none;
  }

  .bw-photo img,
  .bw-photo:hover img {
    transform: none;
  }
}

@media (max-width: 980px) {
  .bw-header__inner {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .bw-header__nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .bw-header__actions {
    margin-left: auto;
  }

  .bw-hero__grid,
  .bw-approach__grid,
  .bw-contact__grid,
  .bw-testimonial__layout,
  .bw-about__mission-grid,
  .bw-about__values-grid {
    grid-template-columns: 1fr !important;
  }

  .bw-services__grid,
  .bw-testimonial__stats,
  .bw-about__stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bw-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bw-service-detail,
  .bw-service-detail--flip {
    flex-direction: column;
    align-items: stretch;
  }

  .bw-service-detail__media {
    flex: none;
  }
}

@media (max-width: 640px) {
  .bw-header__inner {
    padding: 10px 18px;
    overflow: hidden;
    gap: 8px 12px;
  }

  .bw-hero__section {
    padding-top: 46px !important;
  }

  .bw-header__nav {
    max-width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .bw-header__nav a {
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
    font-size: 12px !important;
    padding: 10px 10px !important;
  }

  .bw-header__actions a {
    display: none !important;
  }

  .bw-header__actions .bw-btn {
    min-height: 44px;
    padding-inline: 14px;
  }

  .bw-header__inner > a:first-child {
    min-height: 44px;
  }

  .bw-header__cta-full {
    display: none;
  }

  .bw-header__cta-short {
    display: inline;
  }

  .bw-hero__section,
  .bw-approach__section,
  .bw-services__section,
  .bw-page-section {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .bw-hero__grid,
  .bw-approach__grid,
  .bw-contact__grid {
    gap: 28px;
  }

  .bw-services__grid,
  .bw-points-grid,
  .bw-form-grid,
  .bw-testimonial__stats {
    grid-template-columns: 1fr;
  }

  .bw-about__values-grid,
  .bw-about__stats-grid {
    grid-template-columns: 1fr !important;
  }

  .bw-about__values-grid .bw-card {
    gap: 14px !important;
  }

  .bw-about__stats-grid {
    text-align: left !important;
    gap: 14px !important;
  }

  .bw-about__stats-grid > div {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--surface-card);
    padding: 18px;
  }

  .bw-testimonial__inner {
    padding: 56px 18px;
  }

  .bw-testimonial__intro {
    margin-bottom: 24px;
  }

  .bw-testimonial__layout {
    gap: 16px;
  }

  .bw-testimonial__featured {
    min-height: auto;
    padding: 24px;
  }

  .bw-testimonial__featured blockquote {
    max-width: none;
    font-size: 34px;
  }

  .bw-testimonial__card {
    min-height: auto;
  }

  .bw-footer__grid {
    grid-template-columns: 1fr;
    padding: 44px 18px 26px;
    gap: 26px;
  }

  .bw-footer__grid a {
    min-height: 44px;
    min-width: 44px;
  }

  .bw-footer__grid .bw-iconbtn {
    width: 44px;
    height: 44px;
  }

  .bw-footer__legal {
    padding: 16px 18px;
    flex-direction: column;
  }

  .bw-footer__legal a {
    min-height: 44px;
    min-width: 44px;
  }

  .bw-service-detail {
    gap: 24px;
  }

  .bw-hero__families {
    align-items: flex-start;
    gap: 14px;
  }
}
