/*
  KAF World Digital — private v15 route system
  Shared by product, consulting, thinking and support/legal routes.
*/

.v15-route {
  --route-navy: #071e2c;
  --route-navy-soft: #0d2a3b;
  --route-paper: #f7f4ed;
  --route-paper-bright: #fcfaf6;
  --route-ink: #0a2030;
  --route-teal: #08756f;
  --route-teal-pale: #72d0c5;
  --route-lilac: #6553d8;
  --route-muted: #52636c;
  --route-line: rgba(7, 30, 44, 0.17);
  --route-serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --route-sans: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --route-page: min(1320px, calc(100vw - 96px));
  background: var(--route-paper);
  color: var(--route-ink);
  font-family: var(--route-sans);
  font-size: 17px;
  line-height: 1.58;
}

.v15-route .site-header {
  position: relative;
  min-height: 88px;
  padding: 18px max(48px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid rgba(114, 208, 197, 0.3);
  background: rgba(7, 30, 44, 0.98);
}

.v15-route .site-header::after {
  position: absolute;
  left: max(48px, calc((100vw - 1320px) / 2));
  bottom: -6px;
  width: 22px;
  height: 10px;
  border-bottom: 1px solid var(--route-teal-pale);
  border-left: 1px solid var(--route-teal-pale);
  content: "";
  transform: skewX(42deg);
}

.v15-route .brand {
  width: 210px;
}

.v15-route .primary-navigation {
  gap: 34px;
}

.v15-route .primary-navigation a {
  position: relative;
  font-size: 14px;
  font-weight: 620;
}

.v15-route .primary-navigation a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--route-teal-pale);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms ease;
}

.v15-route .primary-navigation a:hover::after,
.v15-route .primary-navigation a:focus-visible::after,
.v15-route .primary-navigation a[aria-current="page"]::after {
  transform: scaleX(1);
}

.v15-route .primary-navigation .nav-contact {
  border-color: rgba(114, 208, 197, 0.72);
  border-radius: 999px;
  padding: 10px 22px;
}

.v15-route a:focus-visible,
.v15-route button:focus-visible,
.v15-route input:focus-visible,
.v15-route textarea:focus-visible,
.v15-route select:focus-visible {
  outline: 3px solid var(--route-teal-pale);
  outline-offset: 4px;
}

.v15-route .portfolio-hero,
.v15-route .page-hero,
.v15-route .product-detail-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 540px;
  margin: 0;
  padding: 112px max(48px, calc((100vw - 1320px) / 2)) 104px;
  overflow: hidden;
  background-color: var(--route-navy);
  background-image:
    linear-gradient(
      90deg,
      rgba(7, 30, 44, 1) 0%,
      rgba(7, 30, 44, 0.95) 47%,
      rgba(7, 30, 44, 0.45) 77%,
      rgba(7, 30, 44, 0.12) 100%
    ),
    url("assets/kaf-world-london-linework-v15.png");
  background-position: center, center right;
  background-repeat: no-repeat;
  background-size: cover, min(92vw, 1380px) auto;
  color: white;
}

.v15-route .portfolio-hero::before,
.v15-route .page-hero::before,
.v15-route .product-detail-hero::before {
  position: absolute;
  z-index: -1;
  inset: 34px max(48px, calc((100vw - 1320px) / 2)) auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.27);
  content: "";
}

.v15-route .portfolio-hero .eyebrow,
.v15-route .page-hero .eyebrow,
.v15-route .product-detail-hero .eyebrow {
  color: var(--route-teal-pale);
}

.v15-route .portfolio-hero h1,
.v15-route .page-hero h1,
.v15-route .product-detail-hero h1 {
  max-width: 930px;
  margin: 0;
  font-family: var(--route-serif);
  font-size: clamp(64px, 7vw, 104px);
  font-weight: 400;
  letter-spacing: -0.048em;
  line-height: 0.92;
  text-wrap: balance;
}

.v15-route .portfolio-hero > p:last-child,
.v15-route .page-hero > p:last-child,
.v15-route .product-detail-intro {
  max-width: 720px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.52;
}

.v15-route .product-detail-status {
  display: inline-flex;
  margin-top: 26px;
  border-top: 1px solid rgba(114, 208, 197, 0.58);
  padding-top: 14px;
  color: var(--route-teal-pale);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.v15-route .eyebrow {
  margin-bottom: 18px;
  color: var(--route-teal);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.v15-route .portfolio-lead,
.v15-route .portfolio-index,
.v15-route .product-detail-grid,
.v15-route .content-shell {
  width: var(--route-page);
  margin-inline: auto;
}

.v15-route .portfolio-lead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
  gap: clamp(64px, 8vw, 132px);
  padding: 132px 0 144px;
  border-bottom: 1px solid var(--route-line);
}

.v15-route .portfolio-lead h2,
.v15-route .portfolio-index h2,
.v15-route .product-detail-copy h2,
.v15-route .content-main h2,
.v15-route .content-aside h2,
.v15-route .portfolio-principle h2 {
  font-family: var(--route-serif);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.v15-route .portfolio-lead h2 {
  font-size: clamp(58px, 6vw, 88px);
}

.v15-route .portfolio-lead > div > p:not(.eyebrow):not(.release-note) {
  max-width: 580px;
  color: var(--route-muted);
  font-size: 19px;
}

.v15-route .release-note,
.v15-route .status-note {
  margin-top: 28px;
  border-left: 2px solid var(--route-teal);
  padding: 12px 0 12px 18px;
  background: transparent;
  color: var(--route-muted);
  font-size: 14px;
}

.v15-route .lead-screen {
  align-self: center;
}

.v15-route .mac-frame.static {
  border-radius: 15px;
  box-shadow: 0 32px 90px rgba(7, 30, 44, 0.18);
  transform: rotate(-1.2deg);
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 520ms ease;
}

.v15-route .portfolio-lead:hover .mac-frame.static {
  box-shadow: 0 38px 100px rgba(7, 30, 44, 0.22);
  transform: rotate(0deg) translateY(-6px);
}

.v15-route .threadleaf-lead {
  grid-template-columns: minmax(480px, 1.1fr) minmax(0, 0.9fr);
}

.v15-route .threadleaf-icon-stage {
  min-height: 500px;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(114, 208, 197, 0.16), transparent 34%),
    var(--route-navy);
  box-shadow: inset 0 0 0 1px rgba(114, 208, 197, 0.22);
}

.v15-route .threadleaf-icon-stage img {
  width: min(250px, 54%);
  filter: drop-shadow(0 30px 48px rgba(0, 0, 0, 0.3));
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.v15-route .threadleaf-icon-stage:hover img {
  transform: translateY(-8px) rotate(1.5deg);
}

.v15-route .threadleaf-icon-stage p {
  color: rgba(255, 255, 255, 0.76);
}

.v15-route .post-call-brief-icon-stage {
  background:
    radial-gradient(circle at 50% 42%, rgba(164, 130, 255, 0.2), transparent 36%),
    radial-gradient(circle at 76% 74%, rgba(245, 133, 116, 0.12), transparent 26%),
    #151526;
  box-shadow: inset 0 0 0 1px rgba(176, 147, 255, 0.25);
}

.v15-route .post-call-brief-icon-stage img {
  width: min(320px, 66%);
}

.v15-route .post-call-brief-icon-stage p {
  color: rgba(255, 255, 255, 0.84);
}

.v15-route .portfolio-index {
  display: grid;
  grid-template-columns: minmax(250px, 0.48fr) minmax(0, 1.52fr);
  gap: clamp(64px, 9vw, 150px);
  padding: 126px 0 148px;
}

.v15-route .portfolio-index-head {
  position: sticky;
  top: 40px;
  align-self: start;
}

.v15-route .portfolio-index h2 {
  font-size: clamp(48px, 5vw, 72px);
}

.v15-route .portfolio-index-head > p:last-child {
  color: var(--route-muted);
}

.v15-route .portfolio-table {
  border-top: 1px solid var(--route-line);
}

.v15-route .portfolio-row {
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--route-line);
  transition:
    background 240ms ease,
    padding 240ms ease;
}

.v15-route .portfolio-row:hover {
  margin-inline: -18px;
  padding-inline: 18px;
  background: rgba(114, 208, 197, 0.1);
}

.v15-route .portfolio-number {
  color: var(--route-teal);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.14em;
}

.v15-route .portfolio-row h3 {
  font-family: var(--route-serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.v15-route .portfolio-row p {
  color: var(--route-muted);
}

.v15-route .portfolio-row > a,
.v15-route .text-link {
  color: var(--route-teal);
  font-weight: 680;
  text-underline-offset: 6px;
}

.v15-route .portfolio-principle {
  padding: 118px max(48px, calc((100vw - 1320px) / 2)) 126px;
  background: var(--route-navy);
  color: white;
}

.v15-route .portfolio-principle h2 {
  max-width: 980px;
  font-size: clamp(58px, 6.2vw, 92px);
}

.v15-route .portfolio-principle > p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
}

.v15-route .product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: clamp(70px, 9vw, 150px);
  padding: 128px 0 146px;
}

.v15-route .product-detail-copy h2 {
  max-width: 760px;
  font-size: clamp(54px, 5vw, 76px);
}

.v15-route .product-detail-copy > p:not(.eyebrow) {
  max-width: 700px;
  color: var(--route-muted);
  font-size: 19px;
}

.v15-route .product-capabilities {
  margin-top: 56px;
  border-top: 1px solid var(--route-line);
}

.v15-route .product-capability {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--route-line);
}

.v15-route .product-capability span {
  color: var(--route-teal);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.14em;
}

.v15-route .product-capability p {
  max-width: 620px;
  font-size: 18px;
}

.v15-route .product-detail-aside {
  position: sticky;
  top: 36px;
  align-self: start;
  min-height: 500px;
  border: 0;
  border-radius: 0;
  padding: 44px;
  background:
    linear-gradient(rgba(7, 30, 44, 0.68), rgba(7, 30, 44, 0.96)),
    url("assets/kaf-world-london-linework-v15.png") center / cover no-repeat;
  color: white;
  box-shadow: 0 30px 80px rgba(7, 30, 44, 0.16);
}

.v15-route .product-detail-aside h2 {
  font-size: 48px;
}

.v15-route .product-detail-aside p {
  color: rgba(255, 255, 255, 0.72);
}

.v15-route .product-detail-actions {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.v15-route .product-detail-actions .button {
  width: 100%;
  min-height: 48px;
  border-radius: 3px;
}

.v15-route .product-detail-actions .button-primary {
  background: var(--route-teal-pale);
  color: var(--route-ink);
}

.v15-route .product-detail-actions .button-outline-dark {
  border-color: rgba(114, 208, 197, 0.5);
  color: white;
}

.v15-route .product-detail-meta {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.v15-route .content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(76px, 10vw, 160px);
  padding: 122px 0 146px;
}

.v15-route .content-main {
  min-width: 0;
}

.v15-route .content-main > section {
  padding: 0 0 68px;
  border-bottom: 1px solid var(--route-line);
}

.v15-route .content-main > section + section {
  padding-top: 68px;
}

.v15-route .content-main h2 {
  max-width: 760px;
  font-size: clamp(42px, 4.5vw, 62px);
}

.v15-route .content-main p,
.v15-route .content-main li {
  max-width: 760px;
  color: var(--route-muted);
  font-size: 18px;
}

.v15-route .content-main ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.v15-route .route-list {
  margin-top: 40px;
  border-top: 1px solid var(--route-line);
}

.v15-route .route-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--route-line);
}

.v15-route .route-row strong {
  color: var(--route-teal);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.v15-route .content-aside {
  position: sticky;
  top: 36px;
  align-self: start;
  border: 0;
  border-top: 3px solid var(--route-teal);
  border-radius: 0;
  padding: 38px 0 0;
  background: transparent;
}

.v15-route .content-aside h2 {
  font-size: 36px;
}

.v15-route .content-aside p {
  color: var(--route-muted);
}

.v15-route .content-aside nav {
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--route-line);
}

.v15-route .content-aside nav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--route-line);
  color: var(--route-ink);
  font-weight: 650;
}

.v15-route label {
  color: var(--route-ink);
  font-weight: 650;
}

.v15-route input,
.v15-route textarea,
.v15-route select {
  border: 1px solid rgba(7, 30, 44, 0.24);
  border-radius: 2px;
  background: var(--route-paper-bright);
  color: var(--route-ink);
  font: inherit;
}

.v15-route .button {
  border-radius: 3px;
  font-weight: 680;
}

.v15-route .button-primary {
  background: var(--route-teal-pale);
  color: var(--route-ink);
}

.v15-route .error-shell {
  min-height: 100vh;
  padding: clamp(50px, 8vw, 120px);
  background:
    linear-gradient(90deg, rgba(7, 30, 44, 0.98), rgba(7, 30, 44, 0.56)),
    url("assets/kaf-world-london-linework-v15.png") center right / cover no-repeat;
  color: white;
}

.v15-route .error-shell > div {
  max-width: 840px;
  border-left: 1px solid var(--route-teal-pale);
  padding-left: clamp(28px, 5vw, 76px);
}

.v15-route .error-shell h1 {
  font-family: var(--route-serif);
  font-size: clamp(68px, 9vw, 128px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.v15-route .error-shell > div > p:not(.error-code) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 20px;
}

.v15-route .error-code {
  color: var(--route-teal-pale);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.v15-route .site-footer {
  padding: 62px max(48px, calc((100vw - 1320px) / 2)) 38px;
  background: #061721;
}

.v15-route .footer-brand img {
  width: 220px;
}

.v15-route .site-footer nav {
  gap: 18px 28px;
}

.v15-route .footer-note {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

@media (max-width: 1050px) {
  .v15-route {
    --route-page: min(100% - 64px, 900px);
  }

  .v15-route .portfolio-lead,
  .v15-route .portfolio-index,
  .v15-route .product-detail-grid,
  .v15-route .content-shell {
    grid-template-columns: 1fr;
  }

  .v15-route .portfolio-index-head,
  .v15-route .product-detail-aside,
  .v15-route .content-aside {
    position: static;
  }

  .v15-route .threadleaf-lead {
    grid-template-columns: 1fr;
  }

  .v15-route .product-detail-aside {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .v15-route {
    --route-page: min(100% - 40px, 680px);
    font-size: 16px;
  }

  .v15-route .site-header {
    min-height: 76px;
    padding: 15px 20px;
  }

  .v15-route .site-header::after {
    left: 22px;
  }

  .v15-route .brand {
    width: 176px;
  }

  .v15-route .menu-button {
    border-color: rgba(114, 208, 197, 0.75);
  }

  .v15-route .portfolio-hero,
  .v15-route .page-hero,
  .v15-route .product-detail-hero {
    min-height: auto;
    padding: 78px 24px 74px;
    background-image:
      linear-gradient(
        180deg,
        rgba(7, 30, 44, 0.66) 0%,
        rgba(7, 30, 44, 0.88) 52%,
        rgba(7, 30, 44, 1) 82%
      ),
      url("assets/kaf-world-london-linework-v15.png");
    background-position: center, 67% 12%;
    background-size: cover, auto 62%;
  }

  .v15-route .portfolio-hero::before,
  .v15-route .page-hero::before,
  .v15-route .product-detail-hero::before {
    inset: 22px 24px auto;
  }

  .v15-route .portfolio-hero h1,
  .v15-route .page-hero h1,
  .v15-route .product-detail-hero h1 {
    font-size: clamp(52px, 14vw, 70px);
  }

  .v15-route .portfolio-lead,
  .v15-route .portfolio-index,
  .v15-route .product-detail-grid,
  .v15-route .content-shell {
    gap: 54px;
    padding: 88px 0 100px;
  }

  .v15-route .portfolio-lead {
    grid-template-columns: 1fr;
  }

  .v15-route .portfolio-lead h2,
  .v15-route .portfolio-index h2,
  .v15-route .product-detail-copy h2 {
    font-size: clamp(48px, 13vw, 64px);
  }

  .v15-route .threadleaf-icon-stage {
    min-height: 390px;
  }

  .v15-route .portfolio-row {
    grid-template-columns: 38px 1fr;
  }

  .v15-route .portfolio-row > a {
    grid-column: 2;
  }

  .v15-route .portfolio-row:hover {
    margin-inline: 0;
    padding-inline: 0;
    background: transparent;
  }

  .v15-route .portfolio-principle {
    padding: 86px 24px 94px;
  }

  .v15-route .portfolio-principle h2 {
    font-size: clamp(50px, 14vw, 68px);
  }

  .v15-route .product-detail-grid,
  .v15-route .content-shell {
    grid-template-columns: 1fr;
  }

  .v15-route .product-detail-aside {
    padding: 34px 28px;
  }

  .v15-route .content-main h2 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .v15-route .route-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .v15-route .site-footer {
    padding: 48px 24px 32px;
  }
}

@keyframes route-measurement-breathe {
  0%,
  100% {
    opacity: 0.44;
    transform: scaleX(0.82);
  }
  50% {
    opacity: 0.9;
    transform: scaleX(1);
  }
}

@keyframes route-object-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .v15-route .portfolio-hero::before,
  .v15-route .page-hero::before,
  .v15-route .product-detail-hero::before {
    transform-origin: left;
    animation: route-measurement-breathe 9s ease-in-out infinite;
  }

  .v15-route .threadleaf-icon-stage img {
    animation: route-object-float 7s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v15-route *,
  .v15-route *::before,
  .v15-route *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
