/* =========================================================
   HKX COMPANY PAGES
   Shared components for About, Careers, and Why HKX
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: #171a1f;
  font-family: 'Manrope', sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

.page-container {
  min-height: 100vh;
}

.cp-page {
  --cp-red: #b5121b;
  --cp-red-dark: #8c0d14;
  --cp-ink: #171a1f;
  --cp-ink-soft: #242830;
  --cp-muted: #5a626d;
  --cp-light: #f2f4f5;
  --cp-line: #dfe2e6;
  --cp-radius-lg: 24px;
  --cp-radius-md: 16px;
  overflow: hidden;
  background: #fff;
  color: var(--cp-ink);
}

.cp-wrap {
  width: 80%;
  max-width: 1600px;
  margin-inline: auto;
}

.cp-eyebrow {
  margin: 0 0 11px;
  color: var(--cp-red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1.25;
  text-transform: uppercase;
}

.cp-section-heading {
  position: relative;
  z-index: 1;
}

.cp-section-heading h2 {
  max-width: 800px;
  margin: 0;
  color: var(--cp-ink);
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.01;
}

.cp-lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--cp-muted);
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.72;
}

.cp-section {
  position: relative;
  padding: clamp(68px, 7vw, 112px) 0;
  scroll-margin-top: 20px;
}

.cp-section--white {
  background: #fff;
}

.cp-section--light {
  background:
    linear-gradient(90deg, rgba(23, 26, 31, 0.025) 1px, transparent 1px) 0 0 / 120px 100%,
    var(--cp-light);
}

.cp-section--dark {
  background:
    radial-gradient(circle at 88% 16%, rgba(181, 18, 27, 0.2), transparent 30%),
    var(--cp-ink);
  color: #fff;
}

.cp-section--red {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 38%),
    var(--cp-red);
  color: #fff;
}

.cp-section--dark .cp-eyebrow,
.cp-section--red .cp-eyebrow {
  color: #ff8c92;
}

.cp-section--dark .cp-section-heading h2,
.cp-section--red .cp-section-heading h2 {
  color: #fff;
}

.cp-section--dark .cp-lead,
.cp-section--red .cp-lead {
  color: rgba(255, 255, 255, 0.72);
}

/* Hero */

.cp-hero {
  padding: 0;
  background: #f4f5f6;
}

.cp-hero__shell {
  display: grid;
  grid-template-columns: 31% 34% 35%;
  overflow: hidden;
  min-height: 365px;
  background: var(--cp-ink);
  box-shadow: 0 24px 64px rgba(14, 18, 24, 0.16);
}

.cp-hero__shell--badged {
  grid-template-columns: 25% 50% 25%;
}

.cp-hero__visual {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 365px;
  margin: 0;
  background: #dce0e2;
}

.cp-hero__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 26, 31, 0.2), transparent 16%, transparent 84%, rgba(23, 26, 31, 0.2));
  content: '';
}

.cp-hero__visual img {
  width: 100%;
  height: 100%;
  object-position: center;
}

.cp-hero__visual--cover img {
  object-fit: cover;
}

.cp-hero__visual--contain {
  background: #101318;
}

.cp-hero__visual--contain img {
  object-fit: contain;
}

.cp-hero__visual--badged {
  display: grid;
  grid-template-columns: 16% 68% 16%;
  background: #07090c;
}

.cp-hero__visual--badged::after {
  display: none;
}

.cp-hero__visual--badged > img {
  min-width: 0;
  object-fit: cover;
  object-position: center;
}

.cp-hero__visual--badged-row {
  height: auto;
  aspect-ratio: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) 84px;
  gap: 4px;
}

.cp-hero__visual--badged-row > img {
  width: 100%;
  height: 100%;
  grid-column: 1 / -1;
  grid-row: 1;
}

.cp-hero__visual--badged-row .cp-hero__badge-rail {
  display: contents;
}

.cp-hero__visual--badged-row .cp-hero__badge {
  min-height: 0;
  padding: 5px 5px 4px;
  aspect-ratio: auto;
  grid-row: 2;
  border-radius: 6px;
}

.cp-hero__visual--badged-row .cp-hero__badge-rail--left .cp-hero__badge:nth-child(1) {
  grid-column: 1;
}

.cp-hero__visual--badged-row .cp-hero__badge-rail--left .cp-hero__badge:nth-child(2) {
  grid-column: 2;
}

.cp-hero__visual--badged-row .cp-hero__badge-rail--right .cp-hero__badge:nth-child(1) {
  grid-column: 3;
}

.cp-hero__visual--badged-row .cp-hero__badge-rail--right .cp-hero__badge:nth-child(2) {
  grid-column: 4;
}

.cp-hero__visual--badged-row .cp-hero__badge-code {
  font-size: clamp(1.65rem, 2.15vw, 2.55rem);
}

.cp-hero__visual--badged-row .cp-hero__badge-label {
  padding-block: 4px;
  font-size: clamp(0.48rem, 0.58vw, 0.62rem);
}

.cp-hero__badge-rail {
  position: relative;
  z-index: 1;
  display: grid;
  padding: 10px 6px;
  align-content: center;
  gap: 12px;
  min-width: 0;
  background: #050608;
}

.cp-hero__badge {
  --cp-badge-color: var(--cp-red);
  display: grid;
  min-width: 0;
  padding: 6px 5px 5px;
  aspect-ratio: 1 / 1;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 3px solid var(--cp-badge-color);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--cp-badge-color) 34%, transparent), transparent 52%),
    #050608;
  box-shadow:
    inset 0 0 0 2px #050608,
    inset 0 0 0 3px rgba(255, 255, 255, 0.13);
}

.cp-hero__badge + .cp-hero__badge {
  border-top-width: 3px;
}

.cp-hero__badge--green {
  --cp-badge-color: #087148;
}

.cp-hero__badge--red {
  --cp-badge-color: #cf1d27;
}

.cp-hero__badge--blue {
  --cp-badge-color: #07638c;
}

.cp-hero__badge--yellow {
  --cp-badge-color: #f5ca0a;
}

.cp-hero__badge-code {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: clamp(1.65rem, 2.65vw, 3.25rem);
  font-style: normal;
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.86;
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, 0.55),
    1px 1px 0 #000;
}

.cp-hero__badge-code > span {
  color: color-mix(in srgb, var(--cp-badge-color) 64%, #fff);
}

.cp-hero__badge-code strong {
  color: #fff;
  font: inherit;
}

.cp-hero__badge-label {
  display: block;
  overflow: hidden;
  padding: 5px 2px 4px;
  border-radius: 3px;
  background: var(--cp-badge-color);
  color: #fff;
  font-size: clamp(0.48rem, 0.68vw, 0.72rem);
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.cp-hero__badge--yellow .cp-hero__badge-label {
  color: #121419;
}

.cp-hero__copy {
  display: flex;
  max-width: 720px;
  min-width: 0;
  padding: clamp(30px, 3.2vw, 52px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.cp-hero .cp-eyebrow {
  color: #ff8c92;
}

.cp-hero h1 {
  margin: 0 0 17px;
  color: #fff;
  font-size: clamp(2.8rem, 3.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.cp-hero__lead {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.65vw, 1.3rem);
  font-weight: 600;
  line-height: 1.6;
}

.cp-hero__copy .cp-button {
  margin-top: 28px;
}

.cp-hero__shell--badged .cp-hero__copy,
.cp-hero__shell--badged .cp-hero__proof {
  padding-inline: clamp(24px, 2.35vw, 38px);
}

.cp-hero__shell--badged .cp-hero__proof {
  padding-block: 24px;
}

.cp-hero__shell--badged .cp-hero__proof h2 {
  margin-bottom: 16px;
}

.cp-hero__shell--badged h1 {
  font-size: clamp(2.6rem, 3.1vw, 3.5rem);
}

.cp-hero__proof {
  display: flex;
  min-width: 0;
  padding: clamp(28px, 3vw, 48px);
  flex-direction: column;
  justify-content: center;
}

.cp-hero__proof h2 {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(1.5rem, 1.9vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.cp-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--cp-radius-md);
  background: rgba(255, 255, 255, 0.14);
}

.cp-hero__stats div {
  min-width: 0;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.065);
}

.cp-hero__stats dt {
  color: #fff;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.cp-hero__stats dd {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.45;
}

.cp-hero__shell--badged .cp-hero__stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cp-hero__shell--badged .cp-hero__stats div:first-child {
  grid-column: 1 / -1;
}

.cp-hero__shell--badged .cp-hero__stats div {
  padding: 12px 13px;
}

.cp-hero__shell--badged .cp-hero__stats dt {
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
}

/* Section navigation */

.cp-section-nav {
  border-bottom: 1px solid var(--cp-line);
  background: #fff;
}

.cp-section-nav__inner {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.cp-section-nav a {
  display: flex;
  min-height: 66px;
  padding: 12px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-right: 1px solid var(--cp-line);
  color: #3b414a;
  font-size: 0.73rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.cp-section-nav a:first-child {
  border-left: 1px solid var(--cp-line);
}

.cp-section-nav a:hover,
.cp-section-nav a:focus-visible {
  background: #f9e9ea;
  color: var(--cp-red);
}

.cp-section-nav i {
  color: var(--cp-red);
}

/* Editorial intro */

.cp-intro {
  padding-block: clamp(68px, 6.5vw, 108px);
}

.cp-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: clamp(42px, 6vw, 104px);
  align-items: start;
}

.cp-intro .cp-section-heading h2 {
  max-width: 900px;
}

.cp-intro__body {
  padding-top: 24px;
  border-top: 3px solid var(--cp-red);
}

.cp-intro__body p {
  margin: 0;
  color: var(--cp-muted);
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.75;
}

.cp-intro__body p + p {
  margin-top: 18px;
}

/* Media split */

.cp-media {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(52px, 8vw, 140px);
  align-items: center;
  min-height: 520px;
}

.cp-media-section--cards .cp-media,
.cp-media-section--tiles .cp-media {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cp-media-section--reverse .cp-media__visual {
  grid-column: 2;
}

.cp-media-section--reverse .cp-media__copy {
  grid-column: 1;
  grid-row: 1;
}

.cp-media__visual {
  position: relative;
  display: grid;
  min-height: 480px;
  margin: 0;
  place-items: center;
}

.cp-media__visual::before {
  position: absolute;
  inset: 7% -5% -7% 8%;
  border: 1px solid rgba(181, 18, 27, 0.2);
  content: '';
  pointer-events: none;
}

.cp-section--dark .cp-media__visual::before,
.cp-section--red .cp-media__visual::before {
  border-color: rgba(255, 255, 255, 0.16);
}

.cp-media__visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: 600px;
}

.cp-media__visual--contain img {
  object-fit: contain;
}

.cp-media__visual--cover {
  overflow: hidden;
  border-radius: var(--cp-radius-md);
}

.cp-media__visual--cover::before {
  display: none;
}

.cp-media__visual--cover img {
  min-height: 480px;
  object-fit: cover;
}

.cp-media__copy {
  position: relative;
  max-width: 760px;
}

.cp-section-number {
  position: absolute;
  top: -0.25em;
  right: 0;
  color: rgba(23, 26, 31, 0.06);
  font-size: clamp(4.5rem, 7vw, 7.25rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.8;
  pointer-events: none;
}

.cp-section--dark .cp-section-number,
.cp-section--red .cp-section-number {
  color: rgba(255, 255, 255, 0.075);
}

.cp-media__copy .cp-section-heading {
  padding-right: clamp(54px, 8vw, 120px);
}

.cp-media__copy .cp-section-heading h2 {
  font-size: clamp(1.9rem, 2.8vw, 3rem);
}

.cp-media__copy h3 {
  margin: 34px 0 17px;
  color: #303640;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cp-section--dark .cp-media__copy h3,
.cp-section--red .cp-media__copy h3 {
  color: rgba(255, 255, 255, 0.8);
}

.cp-check-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cp-check-list li {
  position: relative;
  padding-left: 28px;
  color: #535b66;
  font-size: 0.89rem;
  font-weight: 550;
  line-height: 1.55;
}

.cp-check-list li::before {
  position: absolute;
  top: 0.39em;
  left: 0;
  width: 13px;
  height: 13px;
  border: 2px solid var(--cp-red);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff;
  background: var(--cp-red);
  content: '';
}

.cp-check-list strong {
  color: #282d34;
  font-weight: 850;
}

.cp-section--dark .cp-check-list li,
.cp-section--red .cp-check-list li {
  color: rgba(255, 255, 255, 0.68);
}

.cp-section--dark .cp-check-list strong,
.cp-section--red .cp-check-list strong {
  color: #fff;
}

.cp-section--dark .cp-check-list li::before,
.cp-section--red .cp-check-list li::before {
  border-color: #ff777e;
  box-shadow: inset 0 0 0 3px var(--cp-ink);
  background: #ff777e;
}

.cp-section--red .cp-check-list li::before {
  border-color: #fff;
  box-shadow: inset 0 0 0 3px var(--cp-red);
  background: #fff;
}

/* Alternate content treatments for media sections */

.cp-proof-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cp-proof-cards article {
  min-width: 0;
  padding: 14px 13px;
  border: 1px solid #343a44;
  border-top: 2px solid #cf1c27;
  border-radius: 10px;
  background: linear-gradient(180deg, #282d35 0%, #23272f 100%);
  box-shadow:
    0 10px 24px rgba(14, 18, 24, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.cp-proof-cards i {
  display: grid;
  width: 27px;
  height: 27px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ff777e;
  font-size: 0.7rem;
}

.cp-proof-cards h4,
.cp-capability-groups h4 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.3;
}

.cp-proof-cards p,
.cp-capability-groups p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.67rem;
  font-weight: 550;
  line-height: 1.55;
}

.cp-process-list {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cp-process-list::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 18px;
  width: 1px;
  background: #cfd4d9;
  content: '';
}

.cp-process-list li {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
  padding: 0 0 18px;
}

.cp-process-list li:last-child {
  padding-bottom: 0;
}

.cp-process-list li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #d9dde1;
  border-radius: 50%;
  background: #fff;
  color: var(--cp-red);
  font-size: 0.67rem;
  font-weight: 900;
}

.cp-process-list strong {
  display: block;
  margin: 1px 0 3px;
  color: var(--cp-ink);
  font-size: 0.86rem;
  font-weight: 850;
}

.cp-process-list p {
  margin: 0;
  color: var(--cp-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.cp-capability-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.cp-capability-groups article {
  padding: 23px 20px 23px 0;
}

.cp-capability-groups article + article {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.cp-inline-proof {
  display: flex;
  margin-top: 25px;
  padding-top: 22px;
  align-items: center;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.cp-inline-proof strong {
  color: #fff;
  font-size: clamp(2.6rem, 4vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.cp-inline-proof span {
  max-width: 250px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.45;
}

.cp-text-link {
  display: inline-flex;
  margin-top: 28px;
  align-items: center;
  gap: 10px;
  color: var(--cp-red);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.cp-section--dark .cp-text-link,
.cp-section--red .cp-text-link {
  color: #fff;
}

.cp-text-link:hover {
  text-decoration: underline;
}

/* Proof statistics */

.cp-stats-section .cp-section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.cp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid rgba(255, 255, 255, 0.16);
}

.cp-stats div {
  padding: 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.cp-stats div:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.cp-stats i {
  margin-bottom: 22px;
  color: #ff858b;
  font-size: 1.2rem;
}

.cp-stats dt {
  color: #fff;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.cp-stats dd {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.5;
}

.cp-section--light .cp-stats {
  border-color: var(--cp-line);
}

.cp-section--light .cp-stats div {
  border-color: var(--cp-line);
}

.cp-section--light .cp-stats dt {
  color: var(--cp-ink);
}

.cp-section--light .cp-stats dd {
  color: var(--cp-muted);
}

/* Features - cards are reserved for genuinely scannable content */

.cp-features-section .cp-section-heading {
  margin-bottom: 48px;
}

.cp-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--cp-line);
  border-left: 1px solid var(--cp-line);
}

.cp-feature-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cp-feature {
  display: flex;
  min-height: 250px;
  padding: clamp(26px, 3vw, 42px);
  flex-direction: column;
  border-right: 1px solid var(--cp-line);
  border-bottom: 1px solid var(--cp-line);
  background: rgba(255, 255, 255, 0.74);
}

.cp-feature > i {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 50%;
  background: #f9e9ea;
  color: var(--cp-red);
}

.cp-feature h3 {
  margin: 0 0 12px;
  color: var(--cp-ink);
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.2;
}

.cp-feature p {
  margin: 0;
  color: var(--cp-muted);
  font-size: 0.88rem;
  font-weight: 550;
  line-height: 1.65;
}

.cp-feature__link {
  display: inline-flex;
  margin-top: auto;
  padding-top: 24px;
  align-items: center;
  gap: 10px;
  color: var(--cp-red);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.35;
  text-decoration: none;
}

.cp-feature__link i {
  font-size: 0.72rem;
  transition: transform 150ms ease;
}

.cp-feature__link:hover,
.cp-feature__link:focus-visible {
  text-decoration: underline;
}

.cp-feature__link:hover i,
.cp-feature__link:focus-visible i {
  transform: translateX(3px);
}

/* Story timeline */

.cp-timeline-section .cp-section-heading {
  margin-bottom: 62px;
}

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

.cp-timeline::before {
  position: absolute;
  top: 20px;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cp-red), #ef5c64);
  content: '';
}

.cp-timeline li {
  position: relative;
  padding: 58px 30px 0 0;
}

.cp-timeline li::before {
  position: absolute;
  top: 12px;
  left: 0;
  width: 18px;
  height: 18px;
  border: 4px solid var(--cp-ink);
  border-radius: 50%;
  background: #ff777e;
  box-shadow: 0 0 0 2px #ff777e;
  content: '';
}

.cp-timeline span {
  display: block;
  margin-bottom: 12px;
  color: #ff858b;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cp-timeline h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.2;
}

.cp-timeline p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  font-weight: 550;
  line-height: 1.65;
}

/* Careers jobs */

.cp-jobs-section .cp-section-heading {
  margin-bottom: 48px;
}

.cp-jobs {
  border-top: 1px solid #cfd3d8;
}

.cp-job {
  padding: 34px 0;
  border-bottom: 1px solid #cfd3d8;
}

.cp-job__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cp-job__meta {
  display: flex;
  margin: 0 0 8px;
  gap: 12px;
  color: var(--cp-red);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cp-job__meta span::before {
  margin-right: 12px;
  color: #aeb4bb;
  content: '/';
}

.cp-job h3 {
  margin: 0;
  color: var(--cp-ink);
  font-size: clamp(1.45rem, 2.7vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.cp-job > p {
  max-width: 900px;
  margin: 18px 0 0;
  color: var(--cp-muted);
  line-height: 1.65;
}

.cp-job details {
  margin-top: 22px;
}

.cp-job summary {
  color: var(--cp-red);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.cp-job__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  max-width: 1050px;
  padding-top: 22px;
}

.cp-job__details h4 {
  margin: 0 0 12px;
}

.cp-job__description {
  grid-column: 1 / -1;
  max-width: 900px;
}

.cp-job__description p {
  margin: 0;
  color: var(--cp-muted);
  line-height: 1.65;
}

.cp-job__details ul {
  margin: 0;
  padding-left: 19px;
  color: var(--cp-muted);
  line-height: 1.65;
}

.cp-jobs-empty {
  max-width: 620px;
  padding: 40px 0;
  border-block: 1px solid #cfd3d8;
}

.cp-jobs-empty i {
  color: var(--cp-red);
  font-size: 1.4rem;
}

.cp-jobs-empty h3 {
  margin: 18px 0 8px;
  font-size: 1.6rem;
}

.cp-jobs-empty p {
  margin: 0;
  color: var(--cp-muted);
  line-height: 1.65;
}

/* Quote band */

.cp-quote {
  position: relative;
  overflow: hidden;
  padding: clamp(62px, 7vw, 106px) 0;
}

.cp-quote::before,
.cp-quote::after {
  position: absolute;
  width: 34vw;
  height: 2px;
  background: rgba(255, 255, 255, 0.24);
  content: '';
}

.cp-quote::before {
  top: 32%;
  left: -8vw;
  transform: rotate(-12deg);
}

.cp-quote::after {
  right: -7vw;
  bottom: 26%;
  transform: rotate(-12deg);
}

.cp-quote__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cp-quote blockquote {
  max-width: 1100px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(3rem, 7vw, 7.2rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.cp-quote__inner > p:last-child {
  max-width: 660px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.65;
}

/* CTA and buttons */

.cp-cta-section {
  padding-block: clamp(74px, 8vw, 118px);
  background:
    radial-gradient(circle at 18% 130%, rgba(181, 18, 27, 0.46), transparent 34%),
    linear-gradient(108deg, #a40f18 0%, #641018 35%, #2a171d 67%, #171a1f 100%);
  color: #fff;
}

.cp-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(36px, 7vw, 120px);
}

.cp-cta__content {
  max-width: 920px;
}

.cp-cta .cp-eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.cp-cta .cp-section-heading h2 {
  color: #fff;
  font-size: clamp(2.1rem, 3.3vw, 3.7rem);
}

.cp-cta .cp-lead {
  color: rgba(255, 255, 255, 0.66);
}

.cp-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cp-cta-section--center .cp-cta {
  display: flex;
  max-width: 1050px;
  align-items: center;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.cp-cta-section--center .cp-section-heading h2,
.cp-cta-section--center .cp-lead {
  margin-inline: auto;
}

.cp-button {
  display: inline-flex;
  min-height: 50px;
  padding: 13px 20px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease;
}

.cp-button--primary {
  border-color: #d8252f;
  background: var(--cp-red);
  color: #fff;
}

.cp-button--secondary {
  border-color: #cfd3d8;
  background: #fff;
  color: var(--cp-ink);
}

.cp-button:hover,
.cp-button:focus-visible {
  transform: translateY(-1px);
}

.cp-button--primary:hover,
.cp-button--primary:focus-visible {
  background: var(--cp-red-dark);
}

/* Responsive */

@media (max-width: 1200px) {
  .cp-wrap {
    width: 88%;
  }

  .cp-hero__shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
  }

  .cp-hero__shell--badged {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cp-hero__visual {
    min-height: 380px;
  }

  .cp-hero__proof {
    grid-column: 1 / -1;
  }

  .cp-hero__proof h2 {
    margin-bottom: 18px;
  }

  .cp-media {
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
    gap: 60px;
  }

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

@media (max-width: 900px) {
  .cp-wrap {
    width: min(calc(100% - 32px), 1600px);
  }

  .cp-hero__shell {
    grid-template-columns: 1fr;
  }

  .cp-hero__shell--badged {
    grid-template-columns: 1fr;
  }

  .cp-hero__visual {
    order: -1;
    aspect-ratio: 1.9 / 1;
    min-height: 0;
  }

  .cp-hero__proof {
    grid-column: auto;
  }

  .cp-section-nav__inner {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cp-section-nav a:nth-child(3) {
    border-right: 0;
  }

  .cp-intro__grid,
  .cp-media,
  .cp-media-section--cards .cp-media,
  .cp-media-section--tiles .cp-media,
  .cp-media-section--reverse .cp-media {
    grid-template-columns: 1fr;
  }

  .cp-intro__grid {
    gap: 36px;
  }

  .cp-intro__body {
    max-width: 760px;
  }

  .cp-media-section .cp-media__visual,
  .cp-media-section--reverse .cp-media__visual {
    grid-column: 1;
    grid-row: 1;
  }

  .cp-media-section .cp-media__copy,
  .cp-media-section--reverse .cp-media__copy {
    grid-column: 1;
    grid-row: 2;
  }

  .cp-media__visual {
    min-height: 0;
  }

  .cp-media__visual img {
    height: auto;
    max-height: 560px;
  }

  .cp-media__visual--cover img {
    width: 100%;
    min-height: 360px;
  }

  .cp-proof-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .cp-timeline {
    grid-template-columns: 1fr;
  }

  .cp-timeline::before {
    top: 0;
    right: auto;
    bottom: 0;
    left: 8px;
    width: 2px;
    height: auto;
  }

  .cp-timeline li {
    padding: 0 0 38px 46px;
  }

  .cp-timeline li::before {
    top: 3px;
  }

  .cp-cta {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .cp-wrap {
    width: min(calc(100% - 24px), 1600px);
  }

  .cp-hero__visual {
    aspect-ratio: 1.55 / 1;
  }

  .cp-hero__visual--badged {
    display: grid;
    height: auto;
    aspect-ratio: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto auto;
  }

  .cp-hero__visual--badged > img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.55 / 1;
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .cp-hero__visual--badged .cp-hero__badge-rail {
    display: contents;
  }

  .cp-hero__visual--badged .cp-hero__badge {
    min-height: 82px;
    padding: 5px 4px 4px;
    grid-row: 2;
    border-width: 3px;
  }

  .cp-hero__badge-rail--left .cp-hero__badge:nth-child(1) {
    grid-column: 1;
  }

  .cp-hero__badge-rail--left .cp-hero__badge:nth-child(2) {
    grid-column: 2;
  }

  .cp-hero__badge-rail--right .cp-hero__badge:nth-child(1) {
    grid-column: 3;
  }

  .cp-hero__badge-rail--right .cp-hero__badge:nth-child(2) {
    grid-column: 4;
  }

  .cp-hero__badge-code {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
  }

  .cp-hero__badge-label {
    padding-block: 5px;
    font-size: 0.54rem;
  }

  .cp-hero__copy,
  .cp-hero__proof {
    padding: 30px 22px;
  }

  .cp-hero h1 {
    font-size: clamp(3.15rem, 18vw, 4.8rem);
  }

  .cp-hero__stats {
    grid-template-columns: 1fr;
  }

  .cp-hero__stats div {
    display: grid;
    grid-template-columns: minmax(100px, auto) 1fr;
    align-items: center;
    gap: 14px;
  }

  .cp-hero__stats dd {
    margin: 0;
  }

  .cp-section-nav__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cp-section-nav a:nth-child(3) {
    border-right: 1px solid var(--cp-line);
  }

  .cp-section-nav a:nth-child(even) {
    border-right: 0;
  }

  .cp-section {
    padding-block: 62px;
  }

  .cp-media {
    gap: 42px;
  }

  .cp-media__visual::before {
    inset: 7% 0 -7% 7%;
  }

  .cp-media__visual--cover img {
    min-height: 280px;
  }

  .cp-section-number {
    right: 2px;
    font-size: 5.4rem;
  }

  .cp-media__copy .cp-section-heading {
    padding-right: 42px;
  }

  .cp-media__copy .cp-section-heading h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .cp-stats,
  .cp-feature-grid {
    grid-template-columns: 1fr;
  }

  .cp-proof-cards,
  .cp-capability-groups {
    grid-template-columns: 1fr;
  }

  .cp-capability-groups article {
    padding: 20px 0;
  }

  .cp-capability-groups article + article {
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .cp-feature {
    min-height: 0;
  }

  .cp-job__head,
  .cp-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .cp-job__details {
    grid-template-columns: 1fr;
  }

  .cp-button {
    width: 100%;
  }

  .cp-quote blockquote {
    font-size: clamp(2.75rem, 16vw, 4.5rem);
  }

  .cp-cta__actions {
    width: 100%;
  }
}

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

  .cp-button,
  .cp-section-nav a {
    transition: none;
  }
}
