/* Partnership page — builds on hire-developers.css (hd-* classes) */

/* ===================== SHARED ===================== */
.pt-wrap {
  max-width: 1290px;
  margin: 0 auto;
}

.pt-process .hd-badge {
  margin-bottom: 18px;
}

.pt-answer {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--hd-muted);
}

/* Real h3/p tags on this page: clear the Webflow defaults */
.pt-ptile-name,
.pt-who-title,
.pt-model-title,
.pt-step-title {
  margin-top: 0;
  line-height: 1.35;
}

/* ===================== HERO WRAP ===================== */
/* Match .svc-hero-wrap on other pages: 1290px with w-col's 10px gutter, flush at >=1310px */
.pt-hero .hd-hero-wrap {
  padding: 0 10px;
}

@media (min-width: 1310px) {
  .pt-hero .hd-hero-wrap {
    padding: 0;
  }
}

@media (max-width: 767px) {
  .pt-hero {
    padding: 52px 0 44px;
  }
}

/* ===================== HERO ILLUSTRATION ===================== */
.pt-illus {
  position: relative;
  width: 100%;
  max-width: 560px;
}

.pt-illus-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: inherit;
}

/* rings */
.pt-hs-ring {
  fill: none;
  stroke: rgba(20, 80, 222, 0.14);
  stroke-width: 1.2;
  stroke-dasharray: 3 7;
}

.pt-hs-ring-inner {
  stroke: rgba(20, 80, 222, 0.08);
  stroke-dasharray: none;
}

/* handshake (drawn in a 12x scaled group, so widths are in 1/12 px) */
.pt-hs-line {
  fill: none;
  stroke: url(#ptHsStroke);
  stroke-width: 0.375;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: pt-hs-draw 0.9s cubic-bezier(.65, 0, .35, 1) both;
}

.pt-hs-sleeve-b {
  fill: url(#ptHsSleeveB);
  stroke: url(#ptHsSleeveBStroke);
  stroke-width: 0.17;
  stroke-dasharray: 0.5 0.42;
}

.pt-hs-body {
  fill: #fff;
  filter: drop-shadow(0 14px 22px rgba(16, 44, 109, 0.16));
  animation: pt-hs-fade 0.4s ease both;
}

/* pump pivots on the clasp (12,10 in the 12x group -> 280,230 in the viewBox) */
.pt-hs-shake {
  transform-box: view-box;
  transform-origin: 280px 230px;
  animation: pt-hs-shake 7s ease-in-out 1s infinite;
}

.pt-hs-sparks {
  transform-box: view-box;
  transform-origin: 300px 170px;
  animation: pt-hs-pop 0.5s cubic-bezier(.3, 1.6, .5, 1) 0.6s both,
    pt-hs-twinkle 7s ease-in-out 1s infinite;
}

.pt-hs-spark {
  stroke: var(--hd-primary);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.pt-hs-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  fill: var(--hd-navy);
  animation: pt-hs-in-l-far 0.9s cubic-bezier(.2, .8, .2, 1) 0.1s both;
}

.pt-hs-label-r {
  animation-name: pt-hs-in-r-far;
}

/* opacity 0 at the start hides the round caps, which otherwise show as dots before the draw begins */
@keyframes pt-hs-draw {
  0% { stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; }
  2% { opacity: 1; }
  99.9% { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
  100% { stroke-dasharray: none; stroke-dashoffset: 0; }
}
/* labels sit in plain viewBox units */
@keyframes pt-hs-in-l-far { from { transform: translateX(-120px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes pt-hs-in-r-far { from { transform: translateX(120px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes pt-hs-shake {
  0%, 86%, 100% { transform: translateY(0) rotate(0deg); }
  88.5% { transform: translateY(7px) rotate(3deg); }
  91% { transform: translateY(-5px) rotate(-2.2deg); }
  93.5% { transform: translateY(3px) rotate(1deg); }
  96% { transform: translateY(0) rotate(0deg); }
}
@keyframes pt-hs-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pt-hs-twinkle {
  0%, 86%, 100% { transform: scale(1); opacity: 1; }
  91% { transform: scale(1.18); opacity: 0.6; }
}
@keyframes pt-hs-fade { from { opacity: 0; } to { opacity: 1; } }

/* ===================== OUR PARTNERS: logo cards that expand on hover ===================== */
/* Touch first: every card shows logo, name, partnership type, description and link.
   With a mouse (>=768px), cards have a fixed height and the description + link slide open
   on hover or keyboard focus. Mobile (<768px) is a swipeable row with position dots. */
/* White at the top (breaks from the lavender hero), fading to the default --hd-bg at the bottom */
.pt-partners {
  background: linear-gradient(to bottom, #fff 0%, var(--hd-bg) 100%);
  padding: 90px 20px;
}

.pt-partners-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.pt-partners-head {
  max-width: 600px;
}

.pt-partners-head .hd-badge {
  margin-bottom: 18px;
}

.pt-partners-head .hd-section-title {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
}

.pt-partners-sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--hd-muted);
}

.pt-partners-sub {
  max-width: 480px;
}

.pt-ptiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pt-ptile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(20, 80, 222, 0.1);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(16, 44, 109, 0.04), 0 8px 24px -16px rgba(16, 44, 109, 0.18);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.2, .8, .2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

/* accent bar that draws across the top on hover */
.pt-ptile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  z-index: 1;
  background: linear-gradient(90deg, var(--hd-primary), #5b8cff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
}

/* Logo area: centred with equal padding. Bloxbitz has no --color class and stays a dark silhouette;
   --color logos keep their own colours (greyscale until hover on mouse devices). */
.pt-ptile-logo {
  flex: 1 1 auto;
  min-height: 150px;
  padding: 32px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 90% at 50% 0%, #f4f7ff 0%, #fff 70%);
}

.pt-ptile-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 170px;
  max-height: 54px;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.85;
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), opacity 0.35s ease, filter 0.4s ease;
}

.pt-ptile-logo--color img {
  filter: none;
  opacity: 1;
}

/* Size matching, so every logo reads at about the same height as Bloxbitz (~48px):
   --wide: very wide logos (e.g. ClaimCow, 4.4:1) get extra width instead of shrinking in height;
   --padded: logo files with empty space around the mark (e.g. KareFusion AI) are scaled up to compensate. */
.pt-ptile-logo--wide img {
  max-width: 200px;
}

.pt-ptile-logo--padded img {
  transform: scale(1.35);
}

.pt-ptile-logo--boxed img {
  width: 64px;
  height: 64px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 16px;
  filter: none;
  opacity: 1;
  box-shadow: 0 6px 14px rgba(16, 44, 109, 0.12);
}

/* corner arrow: signals the card links out to the partner's site */
.pt-ptile-hint {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(20, 80, 222, 0.2);
  color: var(--hd-primary);
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.2, .8, .2, 1), color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.pt-ptile-body {
  padding: 18px 22px 22px;
  border-top: 1px solid rgba(20, 80, 222, 0.08);
}

.pt-ptile-name {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--hd-navy);
}

/* one-line "how we partner" label */
.pt-ptile-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--hd-primary);
}

.pt-ptile-tag::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(20, 80, 222, 0.15);
}

/* expandable region: open by default (touch), collapsed on mouse devices below */
.pt-ptile-more {
  display: grid;
  grid-template-rows: 1fr;
}

.pt-ptile-more-inner {
  min-height: 0;
  overflow: hidden;
}

.pt-ptile-desc {
  margin: 12px 0 14px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--hd-muted);
}

.pt-ptile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hd-primary);
  text-decoration: none;
}

.pt-ptile-link svg {
  transition: transform 0.3s cubic-bezier(.2, .8, .2, 1);
}

/* stretch the link so the whole card is clickable */
.pt-ptile-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 20px;
}

.pt-ptile-link:focus-visible {
  outline: none;
}

.pt-ptile-link:focus-visible::after {
  outline: 2px solid var(--hd-primary);
  outline-offset: -2px;
}

/* mobile position dots (hidden from 768px up) */
.pt-ptiles-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.pt-ptiles-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 80, 222, 0.22);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.pt-ptiles-dots button.is-active {
  width: 24px;
  background: var(--hd-primary);
}

.pt-ptiles-dots button:focus-visible {
  outline: 2px solid var(--hd-primary);
  outline-offset: 3px;
}

/* mobile: smooth horizontal swipe with the next card peeking in */
@media (max-width: 767px) {
  .pt-partners-split {
    gap: 28px;
  }

  .pt-partners-head {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .pt-partners-head .hd-section-title {
    text-align: center;
  }

  .pt-partners-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .pt-ptiles {
    display: flex;
    gap: 14px;
    margin: 0 -20px;
    padding: 4px 20px 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pt-ptiles::-webkit-scrollbar {
    display: none;
  }

  .pt-ptile {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  .pt-ptile-logo {
    min-height: 130px;
  }

  .pt-ptiles-dots {
    display: flex;
  }
}

@media (min-width: 768px) {
  .pt-ptiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* desktop: heading column beside the cards, vertically centred against them */
@media (min-width: 992px) {
  .pt-partners-split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
    gap: 56px;
    align-items: center;
  }
}

/* mouse devices: lift, glow, greyscale-to-colour and expanding details */
@media (hover: hover) {
  .pt-ptile-logo--color img {
    filter: grayscale(1);
    opacity: 0.7;
  }

  .pt-ptile:hover,
  .pt-ptile:focus-within {
    transform: translateY(-6px);
    border-color: rgba(20, 80, 222, 0.35);
    box-shadow: 0 0 0 4px rgba(20, 80, 222, 0.06), 0 24px 48px -14px rgba(20, 80, 222, 0.28);
  }

  .pt-ptile:hover::before,
  .pt-ptile:focus-within::before {
    transform: scaleX(1);
  }

  .pt-ptile:hover .pt-ptile-logo img,
  .pt-ptile:focus-within .pt-ptile-logo img {
    opacity: 1;
  }

  .pt-ptile:hover .pt-ptile-logo--color img,
  .pt-ptile:focus-within .pt-ptile-logo--color img {
    filter: none;
  }

  .pt-ptile:hover .pt-ptile-hint,
  .pt-ptile:focus-within .pt-ptile-hint {
    background: var(--hd-primary);
    border-color: var(--hd-primary);
    color: #fff;
    box-shadow: 0 6px 14px rgba(20, 80, 222, 0.3);
    transform: translate(2px, -2px);
  }

  .pt-ptile-link:hover svg,
  .pt-ptile:hover .pt-ptile-link svg {
    transform: translateX(4px);
  }
}

/* mouse devices from tablet up: fixed-height cards, details slide open */
@media (hover: hover) and (min-width: 768px) {
  .pt-ptile {
    height: 360px;
  }

  .pt-ptile-logo {
    min-height: 0;
  }

  .pt-ptile-more {
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s cubic-bezier(.2, .8, .2, 1);
  }

  .pt-ptile-more-inner {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(.2, .8, .2, 1);
  }

  .pt-ptile:hover .pt-ptile-more,
  .pt-ptile:focus-within .pt-ptile-more {
    grid-template-rows: 1fr;
  }

  .pt-ptile:hover .pt-ptile-more-inner,
  .pt-ptile:focus-within .pt-ptile-more-inner {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pt-ptile,
  .pt-ptile::before,
  .pt-ptile-logo img,
  .pt-ptile-hint,
  .pt-ptile-more,
  .pt-ptile-more-inner,
  .pt-ptile-link svg {
    transition: none;
  }

  .pt-ptile:hover,
  .pt-ptile:focus-within {
    transform: none;
  }
}

/* Shared pill button with a sliding arrow: used by "Visit website" (partners)
   and the service chips. Markup: a.pt-pill-btn > span + span.pt-pill-btn-icon > svg + svg */

.pt-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(20, 80, 222, 0.25);
  color: var(--hd-primary);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(16, 44, 109, 0.06);
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.pt-pill-btn-icon {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--hd-primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(20, 80, 222, 0.25);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

/* two stacked arrows: the first slides out top-right, the second slides in */
.pt-pill-btn-icon svg {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -7.5px 0 0 -7.5px;
  transition: transform 0.35s cubic-bezier(.65, 0, .35, 1);
}

.pt-pill-btn-icon svg + svg {
  transform: translate(-22px, 22px);
}

.pt-pill-btn:hover,
.pt-pill-btn:focus-visible {
  background: #102C6D;
  border-color: var(--hd-primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(20, 80, 222, 0.25);
}

.pt-pill-btn:active {
  background: #0f3fb4;
  border-color: #0f3fb4;
}

.pt-pill-btn:hover .pt-pill-btn-icon,
.pt-pill-btn:focus-visible .pt-pill-btn-icon {
  background: #fff;
  color: var(--hd-primary);
  box-shadow: none;
}

.pt-pill-btn:hover .pt-pill-btn-icon svg,
.pt-pill-btn:focus-visible .pt-pill-btn-icon svg {
  transform: translate(22px, -22px);
}

.pt-pill-btn:hover .pt-pill-btn-icon svg + svg,
.pt-pill-btn:focus-visible .pt-pill-btn-icon svg + svg {
  transform: translate(0, 0);
}

.pt-pill-btn:focus-visible {
  outline: 2px solid var(--hd-primary);
  outline-offset: 3px;
}

/* ===================== WHO CAN PARTNER: hub + 2x2 cards + CTA strip ===================== */
.pt-who {
  background: #fff;
  padding: 90px 20px;
}

.pt-who-head .hd-badge {
  margin-bottom: 18px;
}

.pt-who-head .hd-section-sub {
  max-width: 720px;
}

/* --- 2x2 cards, each with its own accent --- */
.pt-who-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* faint dashed connectors that show in the gaps between cards, with a dot where they meet */
.pt-who-list::before {
  content: "";
  position: absolute;
  inset: 12% 12%;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(20, 80, 222, 0.18) calc(50% - 1px), rgba(20, 80, 222, 0.18) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(180deg, transparent calc(50% - 1px), rgba(20, 80, 222, 0.18) calc(50% - 1px), rgba(20, 80, 222, 0.18) calc(50% + 1px), transparent calc(50% + 1px));
}

.pt-who-list::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--hd-primary);
  box-shadow: 0 0 0 5px rgba(20, 80, 222, 0.15);
}

.pt-who-list li {
  --accent: #1450de;
  --soft: #e8efff;
  --line: rgba(20, 80, 222, 0.16);
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--soft) 0%, #fff 55%);
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s ease;
}

.pt-who-list li:nth-child(2) { --accent: #0e9f7e; --soft: #e2f6ef; --line: rgba(14, 159, 126, 0.2); }
.pt-who-list li:nth-child(3) { --accent: #6d4ae6; --soft: #eeeaff; --line: rgba(109, 74, 230, 0.2); }
.pt-who-list li:nth-child(4) { --accent: #ec7a2c; --soft: #fff0e4; --line: rgba(236, 122, 44, 0.22); }

/* corner art: tinted blob with a small app-window mockup on top */
.pt-who-list li::before {
  content: "";
  position: absolute;
  top: -18px;
  right: -22px;
  width: 150px;
  height: 130px;
  border-radius: 58% 42% 55% 45% / 50% 60% 40% 50%;
  background: var(--soft);
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
}

.pt-who-list li::after {
  content: "";
  position: absolute;
  top: 26px;
  right: 22px;
  width: 96px;
  height: 70px;
  border-radius: 9px;
  background:
    linear-gradient(var(--accent), var(--accent)) 10px 24px / 44px 5px no-repeat,
    linear-gradient(var(--line), var(--line)) 10px 35px / 62px 5px no-repeat,
    linear-gradient(var(--line), var(--line)) 10px 46px / 36px 5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 66px 48px / 6px 12px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 75px 40px / 6px 20px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 84px 34px / 6px 26px no-repeat,
    linear-gradient(var(--soft), var(--soft)) 0 0 / 100% 14px no-repeat,
    #fff;
  box-shadow: 0 12px 26px rgba(16, 44, 109, 0.14);
  transform: rotate(-6deg);
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
}

.pt-who-list li > * {
  position: relative;
  z-index: 1;
}

.pt-who-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(16, 44, 109, 0.1);
}

.pt-who-list li:hover::before {
  transform: scale(1.08) rotate(6deg);
}

.pt-who-list li:hover::after {
  transform: rotate(0deg) translateY(-3px);
}

.pt-who-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* duotone: soft fill under the outline */
.pt-who-icon .pt-duo {
  fill: currentColor;
  stroke: none;
  opacity: 0.16;
}

.pt-who-title {
  max-width: calc(100% - 120px);
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hd-navy);
}

.pt-who-desc {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--hd-muted);
}

.pt-who-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.pt-who-link svg {
  transition: transform 0.25s ease;
}

.pt-who-link:hover {
  color: var(--accent);
}

.pt-who-link:hover svg,
.pt-who-link:focus-visible svg {
  transform: translateX(4px);
}

.pt-who-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===================== PARTNERSHIP MODELS: dark band ===================== */
.pt-models {
  position: relative;
  overflow: hidden;
  padding: 96px 20px;
  color: #fff;
  background: linear-gradient(135deg, #0b1f4f 0%, var(--hd-navy) 45%, var(--hd-primary) 100%);
}

.pt-models::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, black 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, black 20%, transparent 100%);
  pointer-events: none;
}

.pt-models .pt-wrap {
  position: relative;
  z-index: 1;
}

.pt-models-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.pt-models-pill {
  display: inline-flex;
  padding: 6px 16px;
  margin-bottom: 18px;
  border-radius: 50px;
  border: 1px solid rgb(255 255 255 / .25);
  background: rgb(255 255 255 / .08);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #cfe0ff;
}

.pt-models-title {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.pt-models-sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #E2E8F0;
}

.pt-models-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* Glass cards. Subgrid: top / title / desc / points / button share row heights
   across all three cards, so the lists and buttons line up */
.pt-model {
  position: relative;
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: start;
  padding: 34px 30px 30px;
  border-radius: 22px;
  background: rgb(255 255 255 / .05);
  border: 1px solid rgb(255 255 255 / .12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgb(4 19 52 / .18);
  scroll-margin-top: 120px;
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.pt-model:hover {
  transform: translateY(-6px);
  background: rgb(255 255 255 / .08);
  border-color: rgb(255 255 255 / .24);
  box-shadow: 0 28px 56px rgb(4 19 52 / .32);
}

/* featured: brighter glass, blue glow border */
.pt-model--featured {
  background: linear-gradient(160deg, rgb(255 255 255 / .14) 0%, rgb(255 255 255 / .06) 100%);
  border-color: rgb(143 180 255 / .55);
  box-shadow: 0 0 0 1px rgb(143 180 255 / .15), 0 26px 60px rgb(20 80 222 / .35);
}

.pt-model--featured:hover {
  background: linear-gradient(160deg, rgb(255 255 255 / .18) 0%, rgb(255 255 255 / .08) 100%);
  border-color: rgb(143 180 255 / .8);
  box-shadow: 0 0 0 1px rgb(143 180 255 / .25), 0 32px 70px rgb(20 80 222 / .45);
}

.pt-model-badge {
  position: absolute;
  top: -13px;
  right: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, #fff 0%, #dbe6ff 100%);
  color: var(--hd-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgb(4 19 52 / .3);
}

.pt-model-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.pt-model-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgb(255 255 255 / .1);
  border: 1px solid rgb(255 255 255 / .16);
  color: #cfe0ff;
  transition: background 0.35s ease, color 0.35s ease;
}

.pt-model--featured .pt-model-icon,
.pt-model:hover .pt-model-icon {
  background: #fff;
  color: var(--hd-primary);
}

.pt-model-title {
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.pt-model-desc {
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgb(255 255 255 / .12);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #E2E8F0;
}

.pt-model-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.pt-model-points li {
  position: relative;
  padding-left: 28px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgb(255 255 255 / .88);
}

.pt-model-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #8fb4ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102c6d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* buttons: outline by default, solid white on the featured card */
.pt-model-btn {
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1.5px solid rgb(255 255 255 / .4);
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.pt-model-btn svg {
  transition: transform 0.25s ease;
}

.pt-model-btn:hover,
.pt-model-btn:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--hd-navy);
}

.pt-model-btn:hover svg,
.pt-model-btn:focus-visible svg {
  transform: translateX(4px);
}

.pt-model-btn:focus-visible {
  outline: 2px solid #cfe0ff;
  outline-offset: 3px;
}

.pt-model-btn--primary {
  background: #fff;
  border-color: #fff;
  color: var(--hd-primary);
  box-shadow: 0 10px 26px rgb(4 19 52 / .3);
}

.pt-model-btn--primary:hover,
.pt-model-btn--primary:focus-visible {
  color: var(--hd-navy);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgb(4 19 52 / .4);
}

/* ===================== SERVICES: link chips ===================== */
.pt-services {
  background: #fff;
  padding: 90px 20px;
}

.pt-services-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: end;
}

.pt-services-text .hd-badge {
  margin-bottom: 18px;
}

.pt-services-text .hd-section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

.pt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pt-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 50px;
  border: 1px solid rgba(20, 80, 222, 0.18);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hd-navy);
  text-decoration: none;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

/* hover matches the partners' "Visit website" button */
.pt-chip:hover,
.pt-chip:focus-visible {
  background: #102C6D;
  border-color: var(--hd-primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(20, 80, 222, 0.25);
}

/* arrow circle: same as .pt-pill-btn, sized so the chip keeps its original height */
.pt-chip .pt-pill-btn-icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  margin: -2px -14px -2px 0;
}

.pt-chip .pt-pill-btn-icon svg {
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
}

.pt-chip .pt-pill-btn-icon svg + svg {
  transform: translate(-18px, 18px);
}

.pt-chip:hover .pt-pill-btn-icon,
.pt-chip:focus-visible .pt-pill-btn-icon {
  background: #fff;
  color: var(--hd-primary);
  box-shadow: none;
}

.pt-chip:hover .pt-pill-btn-icon svg,
.pt-chip:focus-visible .pt-pill-btn-icon svg {
  transform: translate(18px, -18px);
}

.pt-chip:hover .pt-pill-btn-icon svg + svg,
.pt-chip:focus-visible .pt-pill-btn-icon svg + svg {
  transform: translate(0, 0);
}

.pt-chip:active {
  background: #0f3fb4;
  border-color: #0f3fb4;
}

.pt-chip:focus-visible {
  outline: 2px solid var(--hd-primary);
  outline-offset: 3px;
}

/* ===================== PROCESS: timeline ===================== */
.pt-process {
  background: var(--hd-bg);
  padding: 90px 20px;
}

.pt-process .hd-section-header {
  margin-bottom: 56px;
}

.pt-process-sub {
  max-width: 720px;
}

.pt-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* the line that joins the step dots */
.pt-timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, rgba(20, 80, 222, 0.15), rgba(20, 80, 222, 0.45), rgba(20, 80, 222, 0.15));
}

.pt-step {
  position: relative;
  text-align: center;
}

.pt-step-dot {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--hd-grad);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 0 0 6px var(--hd-bg), 0 6px 16px rgba(23, 92, 255, 0.28);
}

.pt-step-title {
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hd-navy);
}

.pt-step-desc {
  margin: 0 auto;
  max-width: 260px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--hd-muted);
}

/* ===================== FORM ===================== */
#partner-form {
  background: var(--hd-bg);
  scroll-margin-top: 90px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .pt-illus {
    margin: 0 auto;
    max-width: 520px;
  }
}

@media (max-width: 992px) {
  .pt-services-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  /* single column: cards stack, no subgrid; extra top gap for the featured badge */
  .pt-models-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    max-width: 560px;
    margin: 0 auto;
  }

  .pt-model {
    display: flex;
    flex-direction: column;
    grid-row: auto;
  }

  .pt-model-btn {
    margin-top: auto;
  }

  /* vertical timeline */
  .pt-timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    max-width: 560px;
    margin: 0 auto;
  }

  .pt-timeline::before {
    top: 0;
    bottom: 0;
    left: 22px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(20, 80, 222, 0.15), rgba(20, 80, 222, 0.45), rgba(20, 80, 222, 0.15));
  }

  .pt-step {
    text-align: left;
    padding-left: 72px;
  }

  .pt-step-dot {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }

  .pt-step-desc {
    margin: 0;
    max-width: none;
  }
}

@media (max-width: 767px) {
  .pt-who-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .pt-who-list::before,
  .pt-who-list::after {
    display: none;
  }

  .pt-who-list li {
    padding: 24px;
  }

  /* headers sit above left-aligned content on mobile, so align them left too */
  .pt-models-head,
  .pt-process .hd-section-header {
    text-align: left;
  }

  .pt-process .hd-section-sub {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .pt-partners,
  .pt-who,
  .pt-models,
  .pt-services,
  .pt-process {
    padding: 60px 16px;
  }

  .pt-chip {
    padding: 12px 18px;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pt-who-list li,
  .pt-who-list li::before,
  .pt-who-list li::after,
  .pt-who-link svg,
  .pt-pill-btn,
  .pt-pill-btn-icon,
  .pt-pill-btn-icon svg,
  .pt-model,
  .pt-model-icon,
  .pt-model-btn,
  .pt-model-btn svg,
  .pt-chip {
    transition: none;
  }

  .pt-hs-line,
  .pt-hs-body,
  .pt-hs-shake,
  .pt-hs-sparks,
  .pt-hs-label {
    animation: none;
  }
}
