/* ==========================================================================
   Homepage
   ========================================================================== */

/* ------------------------------------------------------------- HERO */
.hero {
  position: relative;
  min-height: clamp(640px, calc(100svh / var(--page-zoom, 1)), 982px);
  display: flex;
  color: var(--white);
  background: var(--ink-hero);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to right, #020011 0%, rgba(2, 0, 17, .92) 28%, rgba(2, 0, 30, .72) 46%, rgba(2, 0, 45, .28) 62%, rgba(2, 0, 45, 0) 76%);
}
.hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-top: clamp(120px, 6rem + 6vw, 230px);
  padding-bottom: 20px;
}
.hero__content { display: flex; flex-direction: column; gap: clamp(28px, 1.2rem + 1.6vw, 43px); max-width: 838px; }
.hero__content .eyebrow { margin-bottom: -20px; }
.hero__title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--fs-61);
  line-height: 1.1;
  letter-spacing: -0.005em;
  max-width: 838px;
}
@media (max-width: 767px) { .br-md { display: none; } }
.hero__lead { font-size: var(--fs-18); line-height: 1.5; max-width: 760px; margin-top: -19px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: clamp(12px, .5rem + 1vw, 24px); }
.hero__stats {
  align-self: center;
  width: min(1090px, 100%);
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  align-items: center;
  padding: 12px clamp(20px, 1rem + 3vw, 72px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(172, 204, 255, 0.2);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero__stats > div { display: flex; flex-direction: column-reverse; gap: 4px; position: relative; }
.hero__stats > div + div::before {
  content: ""; position: absolute; left: calc(-1 * clamp(10px, 1.5vw, 21px)); top: 50%; height: 20px; width: 1.5px;
  background: rgba(255, 255, 255, .6); transform: translateY(-50%);
}
.hero__stats dd { margin: 0; font-family: var(--font-nav); font-weight: 700; font-size: var(--fs-42); line-height: 1.37; font-variant-numeric: tabular-nums; }
.hero__stats dt { font-size: var(--fs-16); }
.hero__stats > div:first-child dt { font-weight: 500; }

@media (max-width: 900px) {
  .hero__shade { background: linear-gradient(to top, rgba(2, 0, 17, .92) 10%, rgba(2, 0, 17, .55) 55%, rgba(2, 0, 17, .35)), linear-gradient(to left, rgba(2, 0, 45, 0) 30%, #020011 100%); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 16px 24px; padding: 18px 22px; }
  .hero__stats > div + div::before { display: none; }
}
@media (max-width: 520px) {
  .hero__stats { margin-top: 12px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__lead { margin-top: -8px; }
  .hero__content .eyebrow { margin-bottom: -12px; }
}

/* ------------------------------------------------------------- ABOUT */
.about { background: var(--mint); padding-top: clamp(48px, 2rem + 2.7vw, 73px); padding-bottom: clamp(56px, 3rem + 3vw, 96px); overflow: hidden; }
.about__title { max-width: 702px; }
.about__visual { position: relative; margin-top: clamp(28px, 1.2rem + 3vw, 77px); }
.about__img { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1312 / 467; }
.about__img img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; }
.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 7px;
  width: 256px; min-height: 79px;
  padding: 10px 11px;
  background: var(--white);
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
}
.float-card { z-index: 3; will-change: transform; transition: box-shadow .5s var(--ease-out); }
.float-card:hover { box-shadow: 0 30px 70px -20px rgba(16, 46, 156, .35); }
.float-card img { width: 52px; height: 50px; object-fit: contain; padding: 0 3px; }
.float-card strong { display: block; font-family: var(--font-nav); font-weight: 800; font-size: 14px; line-height: 1.2; color: var(--slate-900); }
.float-card span { display: block; font-size: 12px; line-height: 1.5; color: var(--gray-500); margin-top: 4px; }
.float-card--right { right: -50px; top: 33.2%; }
.float-card--left { left: -57px; top: 62.5%; }
.about__foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  margin-top: clamp(24px, 1rem + 1vw, 31px);
}
.about__foot p { max-width: 856px; font-size: var(--fs-16); }
.about__foot .btn { margin-right: 20px; }
@media (max-width: 1500px) {
  .float-card--right { right: -20px; }
  .float-card--left { left: -20px; }
}
@media (max-width: 860px) {
  .about__img { aspect-ratio: 4 / 3; }
  .float-card { position: relative; inset: auto; width: auto; max-width: 300px; margin-top: 12px; }
  .about__visual { display: grid; }
  .float-card--right { justify-self: end; margin-top: -40px; margin-right: 12px; }
  .float-card--left { justify-self: start; margin-left: 0; }
  .about__foot { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------- CHALLENGE */
.challenge { padding-top: clamp(40px, 2rem + 1.5vw, 59px); padding-bottom: clamp(56px, 3rem + 3vw, 96px); }
.challenge .section-head { margin-bottom: 32px; }
.challenge__aside { font-size: var(--fs-16); line-height: 1.2; }
.challenge__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.problem {
  position: relative;
  min-height: clamp(260px, 14rem + 5vw, 332px);
  padding: clamp(32px, 1.6rem + 1.4vw, 55px) clamp(24px, 1rem + 1.2vw, 33px) 40px;
  background: var(--white);
  border: 1px solid rgba(243, 244, 246, 0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.problem__icon {
  width: 46px; height: 46px; border-radius: 6.8px;
  display: grid; place-items: center;
  background: var(--tb-100); color: var(--tb-500);
  margin-bottom: 12px;
  transition: background .45s var(--ease-out), color .45s var(--ease-out);
}
.problem__icon .i { width: 24px; height: 24px; }
.problem h3 {
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-22); line-height: 1;
  color: var(--slate-900);
}
.problem p { font-weight: 300; font-size: var(--fs-16); line-height: 1.5; color: var(--slate-500); max-width: 352px; position: relative; z-index: 1; }
.problem__num {
  position: absolute; right: 8px; bottom: -22px;
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-150); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(203, 213, 225, .55);
  opacity: .5;
  transition: -webkit-text-stroke-color .5s, opacity .5s, transform .8s var(--ease-out);
  pointer-events: none;
}
.problem:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(16, 46, 156, .25); }
.problem:hover .problem__icon { background: var(--tb-500); color: var(--tb-50); transform: rotate(-6deg); }
.problem:hover .problem__num { -webkit-text-stroke-color: var(--slate-900); opacity: .55; transform: translateX(-6px); }
.converge {
  min-height: clamp(260px, 14rem + 5vw, 332px);
  border-radius: var(--radius);
  background: var(--tb-800);
  color: #fff;
  padding: 24px clamp(20px, 1rem + 1vw, 34px);
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  box-shadow: var(--shadow-card);
}
.converge__art { width: 100%; max-width: 353px; height: auto; }
.converge__text {
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-20); line-height: 1;
}
.converge__text em { font-style: normal; color: var(--tb-300); }
.converge__text span { font-weight: 500; color: var(--slate-300); }
.converge .btn { align-self: flex-start; }
@media (max-width: 1100px) { .challenge__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .challenge__grid { grid-template-columns: 1fr; gap: 16px; } }

/* ------------------------------------------------------------- SERVICES */
.services { background: rgba(235, 245, 255, 0.2); padding-top: clamp(48px, 2rem + 2.7vw, 73px); }
.services .section-head { margin-bottom: 32px; }
.services__body { display: grid; grid-template-columns: minmax(0, 621px) minmax(0, 595px); justify-content: space-between; align-items: center; gap: var(--space-lg); }
.services__list { display: flex; flex-direction: column; gap: 16px; }
.svc {
  display: flex; align-items: flex-start; gap: 21px;
  padding: 14px 0;
  border-bottom: 1px solid var(--tb-100);
  text-align: left;
  width: 100%;
}
.svc__num {
  flex: none;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 500; font-size: var(--fs-20);
  color: var(--slate-500);
  border: 1.5px dashed var(--tb-400);
  transition: background .5s var(--ease-out), color .4s, border-color .4s, transform .6s var(--ease-out);
}
.svc__text { display: flex; flex-direction: column; gap: 8px; max-width: 485px; padding-top: 10px; }
.svc__title { font-weight: 500; font-size: var(--fs-24); line-height: 1.2; color: var(--slate-500); text-transform: capitalize; transition: color .4s; }
.svc__body {
  max-height: 0; overflow: hidden; opacity: 0;
  color: var(--slate-500); font-size: var(--fs-16); line-height: 1.5;
  transition: max-height .6s var(--ease-out), opacity .5s;
}
.svc.is-active .svc__num { background: var(--tb-400); border-color: var(--tb-400); color: #fff; transform: rotate(360deg); }
.svc.is-active .svc__title { color: var(--slate-900); font-weight: 600; }
.svc.is-active .svc__body { max-height: 12em; opacity: 1; }
.svc:not(.is-active):hover .svc__title { color: var(--tb-500); }
.svc:not(.is-active):hover .svc__num { border-color: var(--tb-500); color: var(--tb-500); }
.services__panel { display: flex; flex-direction: column; gap: 25px; }
.services__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 595 / 346; }
.services__img img { width: 100%; height: 100%; object-fit: cover; }
.services__copy { display: flex; flex-direction: column; gap: 14px; max-width: 547px; }
.services__copy h3 { font-weight: 600; font-size: var(--fs-20); line-height: 1.5; color: var(--slate-900); }
.services__copy p { color: var(--slate-500); }
.services__copy .btn { align-self: flex-start; }
@media (max-width: 960px) {
  .services__body { grid-template-columns: 1fr; }
  .services__panel { order: -1; }
}

/* ------------------------------------------------------------- PLATFORM */
.platform {
  background: var(--tb-800);
  color: #fff;
  padding-top: clamp(56px, 3rem + 2.5vw, 95px);
  padding-bottom: clamp(220px, 10rem + 10vw, 330px); /* room for the overlapping success photo */
  overflow: hidden;
}
.platform__rays {
  position: absolute; right: 0; top: 14.5%;
  width: clamp(200px, 27.5vw, 416px); height: auto;
  pointer-events: none;
}
.platform__head { gap: 13px; }
.platform__lead { color: var(--slate-100); max-width: 662px; margin-top: 11px; }
.platform__body {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 793px);
  justify-content: space-between;
  gap: var(--space-lg);
  margin-top: clamp(32px, 1.5rem + 2vw, 59px);
}
.platform__tabs {
  position: relative;
  background: var(--tb-700);
  border-radius: var(--radius);
  padding: 19px 26px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
}
.platform__indicator {
  position: absolute; left: 26px; right: 26px; top: 0; height: 72px;
  background: var(--tb-800); border-radius: var(--radius);
  transition: transform .6s var(--ease-out), height .6s var(--ease-out);
  pointer-events: none;
}
.ptab {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 30px;
  padding: 12px 8px;
  border-radius: var(--radius);
  font-weight: 600; font-size: var(--fs-18); line-height: 1.5;
  color: #fff; text-align: left;
  transition: color .3s, transform .4s var(--ease-out);
}
.ptab img { width: 48px; height: 48px; border-radius: var(--radius); flex: none; transition: transform .5s var(--ease-out); }
.ptab:hover img { transform: scale(1.08) rotate(-4deg); }
.ptab:not(.is-active):hover { transform: translateX(4px); }
.platform__view {
  background: var(--tb-700);
  border-radius: var(--radius);
  padding: clamp(16px, .6rem + 1.2vw, 32px);
  display: flex; flex-direction: column; gap: 26px;
}
.platform__screen { border-radius: var(--radius); overflow: hidden; background: #f6f6f6; aspect-ratio: 729 / 395; }
.platform__screen img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.platform__caption { display: flex; flex-direction: column; gap: 8px; max-width: 516px; }
.platform__kicker { font-size: var(--fs-14); }
.platform__caption h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-22); line-height: 1.5; margin-top: -8px; }
@media (max-width: 1100px) {
  .platform__body { grid-template-columns: 1fr; }
  .platform__tabs { flex-direction: row; overflow-x: auto; padding: 10px; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .platform__tabs::-webkit-scrollbar { display: none; }
  .ptab { flex: none; gap: 12px; padding: 8px 14px 8px 8px; scroll-snap-align: start; }
  .ptab img { width: 40px; height: 40px; }
  .platform__indicator { display: none; }
  .ptab.is-active { background: var(--tb-800); }
}

/* ------------------------------------------------------------- STORIES */
.stories { background: var(--slate-50); padding-bottom: 65px; }
.stories__panel {
  display: flow-root;
  position: relative;
  width: min(1410px, 100% - 2 * clamp(0px, 2.6vw, 51px));
  margin-inline: auto;
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 0 clamp(16px, 0.3rem + 2.4vw, 79px) clamp(40px, 2rem + 2vw, 62px) clamp(16px, 0.3rem + 2.4vw, 42px);
}
.stories__photo {
  position: relative;
  width: min(964px, 100%);
  margin: calc(-1 * clamp(120px, 6rem + 6vw, 182px)) auto 0;
  aspect-ratio: 964 / 482;
  border: clamp(6px, .3rem + .3vw, 10px) solid var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(2, 0, 76, .35);
  z-index: 2;
}
.stories__photo img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; }
.stories__inner { max-width: 1289px; }
.stories__head { margin-top: clamp(32px, 1.6rem + 2vw, 52px); }
.stories__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--neutral-900); padding: 10px 26px; border-radius: 8px; transition: background .3s, color .3s; }
.stories__link:hover { background: var(--tb-50); color: var(--tb-500); }
.stories__link .i { width: 16px; height: 16px; }
.stories__body { display: flex; justify-content: space-between; gap: var(--space-lg); margin-top: clamp(32px, 1.6rem + 2vw, 72px); }
.stories__kicker { max-width: 336px; font-weight: 500; font-size: var(--fs-28); line-height: 1.5; color: var(--tb-700); text-transform: uppercase; }
.quote { position: relative; width: min(561px, 100%); display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.quote__mark { position: absolute; left: -40px; top: -25px; width: 40px; height: 40px; }
.quote__viewport { display: grid; width: 100%; }
.quote__slide { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 16px; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease-out), visibility .6s; }
.quote__slide.is-active { opacity: 1; visibility: visible; }
.quote blockquote { font-size: var(--fs-20); color: var(--black); line-height: 1.5; }
.quote figcaption { display: flex; align-items: center; gap: 19px; }
.quote__avatar { width: 60px; height: 60px; border-radius: 50%; background: #d9d9d9; display: grid; place-items: center; font-weight: 600; color: var(--slate-500); flex: none; font-size: 14px; }
.quote figcaption strong { display: block; font-weight: 600; font-size: var(--fs-18); }
.quote figcaption small { display: block; font-size: var(--fs-14); }
.quote figcaption b { display: block; font-size: var(--fs-14); font-weight: 700; }
.quote__nav { display: flex; gap: 14px; }
.arrow-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--slate-500); color: var(--slate-500);
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease-out);
}
.arrow-btn .i { width: 25px; height: 25px; }
.arrow-btn:hover { transform: scale(1.08); border-color: var(--tb-500); color: var(--tb-500); }
.arrow-btn--solid { background: var(--tb-500); border-color: var(--tb-500); color: #fff; }
.arrow-btn--solid:hover { background: var(--tb-400); border-color: var(--tb-400); color: #fff; }
.logos { margin-top: clamp(40px, 2rem + 2vw, 72px); overflow: hidden; margin-inline: -8px; padding: 8px; }
.logos__track { display: flex; gap: 35px; width: max-content; }
.logo-card {
  flex: none; width: 188px; height: 100px;
  display: grid; place-items: center;
  background: #fff; border-radius: 8px;
  box-shadow: 4px 4px 4px -2px rgba(0, 0, 0, 0.1);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.logo-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -16px rgba(16, 46, 156, .35); }
.logo-card img { max-width: 86%; max-height: 82px; object-fit: contain; }
.logo-card--w241 { width: 241px; }
.logo-card--w121 { width: 121px; }
@media (max-width: 960px) {
  .stories__body { flex-direction: column; }
  .quote { align-items: flex-start; }
  .quote__mark { position: static; }
  .quote__nav { align-self: flex-end; }
}
@media (max-width: 640px) {
  .logos__track { gap: 16px; }
  .logo-card { width: 150px; height: 84px; }
  .logo-card--w241 { width: 190px; }
  .logo-card--w121 { width: 100px; }
}

/* ------------------------------------------------------------- CLOSING */
.closing { padding-top: 0; padding-bottom: clamp(40px, 2rem + 1.5vw, 67px); }
.closing__stack { display: flex; flex-direction: column; align-items: center; gap: clamp(32px, 1.5rem + 2.4vw, 64px); }
.industries {
  width: 100%;
  background: var(--slate-50);
  border-radius: var(--radius);
  padding: clamp(28px, 1.2rem + 2vw, 55px) clamp(20px, 1rem + 1vw, 34px);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
}
.industries__head { display: flex; flex-direction: column; gap: 13px; max-width: 503px; }
.industries__pills { display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-end; max-width: 679px; }
.cta {
  position: relative;
  width: min(1294px, 100%);
  min-height: clamp(340px, 18rem + 4vw, 377px);
  background: var(--tb-600);
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  display: flex; align-items: center;
}
.cta__deco { position: absolute; right: 0; bottom: 0; width: clamp(280px, 44vw, 572px); height: auto; pointer-events: none; }
.cta__content { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(32px, 1.5rem + 2vw, 52px) clamp(20px, 1rem + 2.6vw, 60px); max-width: 787px; }
.cta__title { max-width: 627px; }
.cta__text { font-size: var(--fs-18); line-height: 1.5; }
@media (max-width: 900px) {
  .industries { flex-direction: column; align-items: flex-start; }
  .industries__pills { justify-content: flex-start; }
  .cta { align-items: flex-start; padding-bottom: clamp(140px, 30vw, 220px); }
  .cta__deco { width: clamp(260px, 70vw, 480px); }
}
