/* KAF World Digital v17 premium continuity pass */

html {
  scroll-padding-top: 92px;
}

.v16-commercial {
  text-rendering: optimizeLegibility;
}

.v16-commercial ::selection {
  color: var(--v16-navy);
  background: var(--v16-pale);
}

.v16-site-header {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.46);
}

.v16-nav > a:not(.v16-button) {
  position: relative;
  padding: 8px 0;
}

.v16-nav > a:not(.v16-button)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.v16-nav > a:not(.v16-button):hover::after,
.v16-nav > a:not(.v16-button)[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.v16-button {
  box-shadow: 0 0 0 rgba(7, 30, 44, 0);
}

.v16-button:hover {
  box-shadow: 0 12px 26px rgba(7, 30, 44, 0.13);
}

.v16-button:active {
  transform: translateY(0);
}

.v16-hero {
  isolation: isolate;
}

.v16-hero::before {
  inset: auto -12% -58% 28%;
  height: 112%;
  opacity: 0.5;
}

.v16-hero::after {
  right: 0;
  bottom: 0;
  width: 68%;
  height: 100%;
  opacity: 0.36;
  background: url("assets/kaf-world-london-linework-v15.png") right bottom / cover no-repeat;
  clip-path: none;
  animation: v17-linework 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes v17-linework {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(1.2%, -0.6%, 0) scale(1.012); }
}

.v16-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.v16-page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 38%;
  opacity: 0.28;
  background: url("assets/kaf-world-london-linework-v15.png") right center / cover no-repeat;
  pointer-events: none;
}

.v16-page-hero-grid {
  position: relative;
  z-index: 1;
}

.v16-section-head,
.v16-method,
.v16-trust-grid,
.v16-report-grid {
  row-gap: 34px;
}

.v16-offer,
.v16-division,
.v16-app-feature,
.v16-contact-card,
.v16-form,
.v16-proof-card {
  border-radius: 22px;
}

.v16-form input,
.v16-form select,
.v16-form textarea {
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.v16-form input:hover,
.v16-form select:hover,
.v16-form textarea:hover {
  border-color: rgba(120, 205, 195, 0.54);
}

.v16-text-link {
  text-decoration-color: rgba(8, 117, 111, 0.45);
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.v16-text-link:hover {
  color: var(--v16-teal);
  text-decoration-color: currentColor;
}

.v16-footer a {
  transition: color 160ms ease;
}

.v16-footer a:hover {
  color: var(--v16-pale);
}

/*
 * Important content remains visible at all times. The v16 observer still marks
 * reached sections, but presentation no longer depends on scrolling or timing.
 */
.v16-reveal,
.v16-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

.v16-chat-trigger {
  min-height: 48px;
  padding: 0 18px;
  box-shadow: 0 18px 42px rgba(7, 30, 44, 0.24);
}

.v16-chat-panel {
  max-height: calc(100vh - 116px);
  overflow-y: auto;
}

@media (max-width: 900px) {
  .v16-nav > a:not(.v16-button) {
    padding: 10px 4px;
  }

  .v16-nav > a:not(.v16-button)::after {
    display: none;
  }

  .v16-hero::after {
    width: 112%;
    opacity: 0.2;
    background-position: 63% bottom;
  }

  .v16-page-hero::after {
    inset: 0 0 0 12%;
    opacity: 0.18;
  }
}

@media (max-width: 620px) {
  .v16-hero::before {
    opacity: 0.28;
  }

  .v16-proof-card {
    padding: 24px;
  }

  .v16-proof-list li {
    align-items: baseline;
    gap: 14px;
  }

  .v16-chat-trigger {
    width: 48px;
    min-height: 48px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .v16-chat-trigger::after {
    content: "↗";
    font-size: 1.16rem;
    line-height: 1;
  }

  .v16-chat-panel {
    bottom: 58px;
    max-height: calc(100vh - 92px);
  }

  .v16-contact-band .v16-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v16-hero::after {
    animation: none;
  }
}
