:root {
  --ch-navy: #052d68;
  --ch-navy-deep: #031d46;
  --ch-blue: #0877c9;
  --ch-cyan: #38a7ee;
  --ch-ice: #edf7fd;
  --ch-ink: #11243a;
  --ch-muted: #607185;
  --ch-line: #d9e6ef;
  --ch-white: #fff;
  --ch-shadow: 0 18px 55px rgba(5, 45, 104, 0.12);
}

.ch-home-desktop {
  overflow: hidden;
  color: var(--ch-ink);
  background: var(--ch-white);
}

.ch-home-desktop .ch-container {
  width: min(calc(100% - 80px), 1500px);
  margin: 0 auto;
}

.ch-section {
  padding: 112px 0;
}

.ch-eyebrow,
.ch-kicker {
  letter-spacing: 0;
  text-transform: uppercase;
}

.ch-eyebrow {
  margin: 0 0 12px;
  color: var(--ch-blue);
  font-size: 13px;
  font-weight: 800;
}

.ch-eyebrow--light {
  color: #72c8ff;
}

.ch-hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ch-navy-deep);
}

.ch-hero__media,
.ch-custom__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ch-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 19, 47, 0.98) 0%, rgba(3, 29, 70, 0.9) 33%, rgba(3, 29, 70, 0.22) 66%, rgba(3, 29, 70, 0.06) 100%),
    linear-gradient(0deg, rgba(3, 19, 43, 0.38), transparent 48%);
}

.ch-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 118px;
}

.ch-hero__copy {
  width: min(720px, 52vw);
  color: var(--ch-white);
}

.ch-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: #c6ebff;
  font-size: 13px;
  font-weight: 700;
}

.ch-kicker__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(114, 200, 255, 0.45);
  background: rgba(56, 167, 238, 0.12);
}

.ch-kicker__mark i {
  font-size: 20px;
}

.ch-hero h1 {
  max-width: 700px;
  margin: 0;
  color: var(--ch-white);
  font-size: 72px;
  line-height: 1.02;
  font-weight: 750;
  letter-spacing: 0;
}

.ch-hero__lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.78;
}

.ch-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.ch-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.ch-button:hover {
  transform: translateY(-2px);
}

.ch-button--primary {
  color: var(--ch-white);
  background: var(--ch-blue);
  box-shadow: 0 12px 28px rgba(8, 119, 201, 0.26);
}

.ch-button--primary:hover {
  color: var(--ch-white);
  background: #0a88df;
}

.ch-button--ghost {
  color: var(--ch-white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.ch-button--ghost:hover {
  color: var(--ch-white);
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.12);
}

.ch-button--light {
  color: var(--ch-navy-deep);
  background: var(--ch-white);
}

.ch-button--light:hover {
  color: var(--ch-navy-deep);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.ch-hero__proof {
  display: flex;
  gap: 0;
  margin: 50px 0 0;
  padding: 0;
  list-style: none;
}

.ch-hero__proof li {
  min-width: 150px;
  padding: 0 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.ch-hero__proof li:first-child {
  padding-left: 0;
  border-left: 0;
}

.ch-hero__proof strong,
.ch-hero__proof span {
  display: block;
}

.ch-hero__proof strong {
  color: var(--ch-white);
  font-size: 25px;
  line-height: 1.1;
}

.ch-hero__proof span {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.ch-hero__scroll {
  position: absolute;
  right: 34px;
  bottom: 38px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.ch-hero__scroll i {
  font-size: 19px;
  animation: ch-scroll 1.8s ease-in-out infinite;
}

@keyframes ch-scroll {
  50% { transform: translateY(6px); }
}

.ch-heading {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 54px;
}

.ch-heading__icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid #b9d9ec;
  border-radius: 6px;
  color: var(--ch-blue);
  background: var(--ch-ice);
}

.ch-heading__icon i {
  font-size: 30px;
}

.ch-heading h2,
.ch-factory__intro h2,
.ch-custom h2,
.ch-process__header h2 {
  margin: 0;
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: 0;
}

.ch-heading__copy > p:last-child,
.ch-process__header > p:last-child {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--ch-muted);
  font-size: 16px;
  line-height: 1.75;
}

.ch-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ch-blue);
  color: var(--ch-navy);
  font-size: 14px;
  font-weight: 750;
}

.ch-text-link:hover {
  color: var(--ch-blue);
}

.ch-categories {
  background: linear-gradient(180deg, #fff 0%, #f4f9fc 100%);
}

.ch-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.ch-category-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ch-line);
  border-radius: 7px;
  background: var(--ch-white);
  box-shadow: 0 8px 22px rgba(16, 56, 88, 0.05);
  transition: transform 0.34s ease, border-color 0.34s ease, box-shadow 0.34s ease;
}

.ch-category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(8, 119, 201, 0.35);
  box-shadow: var(--ch-shadow);
}

.ch-category-card__image {
  position: relative;
  aspect-ratio: 1.38 / 1;
  overflow: hidden;
  background: #edf3f7;
}

.ch-category-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 29, 70, 0.28), transparent 48%);
  pointer-events: none;
}

.ch-category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.ch-category-card:hover .ch-category-card__image img {
  transform: scale(1.055);
}

.ch-category-card__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  color: var(--ch-white);
  background: rgba(3, 29, 70, 0.62);
  backdrop-filter: blur(5px);
  font-size: 11px;
  font-weight: 700;
}

.ch-category-card__body {
  min-height: 82px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  padding: 15px;
}

.ch-category-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--ch-blue);
  background: var(--ch-ice);
}

.ch-category-card__icon i {
  font-size: 21px;
}

.ch-category-card h3 {
  overflow: hidden;
  margin: 0;
  color: var(--ch-ink);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 720;
  letter-spacing: 0;
}

.ch-category-card__arrow {
  color: #7c91a3;
  font-size: 19px;
  transition: color 0.28s ease, transform 0.28s ease;
}

.ch-category-card:hover .ch-category-card__arrow {
  color: var(--ch-blue);
  transform: translate(2px, -2px);
}

.ch-factory {
  color: var(--ch-white);
  background: var(--ch-navy-deep);
}

.ch-factory__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.65fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 52px;
}

.ch-factory__intro h2 {
  color: var(--ch-white);
  font-size: 52px;
}

.ch-factory__intro > p {
  margin: 0;
  padding-left: 28px;
  border-left: 1px solid rgba(114, 200, 255, 0.38);
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.8;
}

.ch-factory-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 300px 300px;
  gap: 14px;
}

.ch-factory-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border-radius: 6px;
  background: #0a376a;
}

.ch-factory-card--campus {
  grid-column: span 6;
  grid-row: span 2;
}

@media (min-width: 981px) {
  .ch-factory-card:nth-child(2),
  .ch-factory-card:nth-child(3) {
    grid-column: span 3;
  }

  .ch-factory-card:nth-child(4),
  .ch-factory-card:nth-child(5),
  .ch-factory-card:nth-child(6) {
    grid-column: span 2;
  }
}

.ch-factory-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.4s ease;
}

.ch-factory-card:hover img {
  transform: scale(1.035);
  filter: brightness(0.92);
}

.ch-factory-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 19, 47, 0.78), transparent 55%);
  pointer-events: none;
}

.ch-factory-card figcaption {
  position: absolute;
  right: 18px;
  bottom: 17px;
  left: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ch-white);
  font-size: 14px;
  font-weight: 700;
}

.ch-factory-card figcaption span {
  color: #72c8ff;
  font-size: 11px;
}

.ch-capabilities {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 30px;
  border: 1px solid rgba(114, 200, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
}

.ch-capabilities div {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 22px;
  border-left: 1px solid rgba(114, 200, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 650;
}

.ch-capabilities div:first-child {
  border-left: 0;
}

.ch-capabilities i {
  color: #72c8ff;
  font-size: 25px;
}

.ch-products {
  background: #fff;
}

.ch-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.ch-product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ch-line);
  border-radius: 7px;
  background: var(--ch-white);
  transition: transform 0.34s ease, border-color 0.34s ease, box-shadow 0.34s ease;
}

.ch-product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(8, 119, 201, 0.34);
  box-shadow: var(--ch-shadow);
}

.ch-product-card__image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2f6f8;
}

.ch-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ch-product-card:hover .ch-product-card__image img {
  transform: scale(1.055);
}

.ch-product-card__image > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 5px;
  color: var(--ch-white);
  background: rgba(3, 29, 70, 0.9);
  font-size: 13px;
  font-weight: 720;
  transform: translateY(65px);
  transition: transform 0.34s ease;
}

.ch-product-card:hover .ch-product-card__image > span {
  transform: translateY(0);
}

.ch-product-card__body {
  padding: 20px;
}

.ch-product-card__type {
  margin: 0 0 8px;
  color: var(--ch-blue);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.ch-product-card h3 {
  min-height: 48px;
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ch-ink);
  font-size: 17px;
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ch-product-card h3 a:hover {
  color: var(--ch-blue);
}

.ch-product-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #e9f0f4;
  color: var(--ch-muted);
  font-size: 11px;
}

.ch-product-card__meta span:first-child {
  color: var(--ch-navy);
  font-weight: 760;
}

.ch-custom {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ch-navy);
}

.ch-custom__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 29, 70, 0.05) 0%, rgba(3, 29, 70, 0.18) 48%, rgba(3, 29, 70, 0.96) 75%, rgba(3, 29, 70, 0.99) 100%);
}

.ch-custom__inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}

.ch-custom__copy {
  width: min(610px, 43vw);
  padding: 70px 0;
  color: var(--ch-white);
}

.ch-custom h2 {
  color: var(--ch-white);
  font-size: 50px;
}

.ch-custom__copy > p:not(.ch-eyebrow) {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.8;
}

.ch-custom ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 22px;
  margin: 30px 0 34px;
  padding: 0;
  list-style: none;
}

.ch-custom li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 650;
}

.ch-custom li i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  border-radius: 50%;
  color: var(--ch-navy);
  background: #72c8ff;
  font-size: 14px;
}

.ch-process {
  background: linear-gradient(180deg, #f4f9fc 0%, #fff 100%);
}

.ch-process__header {
  max-width: 850px;
  margin: 0 auto 64px;
  text-align: center;
}

.ch-process__header .ch-heading__icon {
  margin: 0 auto 22px;
}

.ch-process__header > p:last-child {
  margin-right: auto;
  margin-left: auto;
}

.ch-process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ch-process-grid::before {
  content: '';
  position: absolute;
  top: 70px;
  right: 7%;
  left: 7%;
  height: 1px;
  background: #b9d9ec;
}

.ch-process-grid li {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 270px;
  padding: 28px 20px 24px;
  border: 1px solid var(--ch-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.ch-process-grid li:hover {
  transform: translateY(-7px);
  border-color: rgba(8, 119, 201, 0.36);
  box-shadow: var(--ch-shadow);
}

.ch-process__number {
  position: absolute;
  top: 15px;
  right: 16px;
  color: #bdd8e8;
  font-size: 13px;
  font-weight: 800;
}

.ch-process-grid li > i {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 31px;
  border: 7px solid #fff;
  border-radius: 50%;
  color: var(--ch-white);
  background: linear-gradient(145deg, var(--ch-blue), var(--ch-navy));
  box-shadow: 0 8px 20px rgba(8, 119, 201, 0.2);
  font-size: 25px;
}

.ch-process-grid h3 {
  margin: 0 0 11px;
  color: var(--ch-ink);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

.ch-process-grid p {
  margin: 0;
  color: var(--ch-muted);
  font-size: 13px;
  line-height: 1.68;
}

.ch-process__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 42px;
  padding: 27px 30px;
  border-left: 4px solid var(--ch-blue);
  border-radius: 6px;
  color: var(--ch-white);
  background: var(--ch-navy-deep);
}

.ch-process__cta strong,
.ch-process__cta span {
  display: block;
}

.ch-process__cta strong {
  font-size: 20px;
}

.ch-process__cta span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

[data-ch-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s ease var(--ch-delay, 0ms), transform 0.72s ease var(--ch-delay, 0ms);
}

[data-ch-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Home-only styling for the existing customer-service sidebar. */
#kf.cs-section {
  position: relative;
  padding: 112px 20px 126px;
  background: #fff;
}

#kf.cs-section::before {
  content: 'Direct B2B Support';
  display: block;
  margin-bottom: 12px;
  color: var(--ch-blue);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

#kf .cs-header {
  margin-bottom: 50px;
}

#kf .cs-eyebrow {
  display: none;
}

#kf .cs-title {
  color: var(--ch-ink);
  font-size: 46px;
  letter-spacing: 0;
}

#kf .cs-subtitle {
  color: var(--ch-muted);
}

#kf .cs-card {
  border-color: var(--ch-line);
  border-radius: 7px;
}

#kf .cs-card::before {
  background: var(--ch-blue);
}

#kf .cs-card:hover,
#kf .cs-card.is-active {
  border-color: rgba(8, 119, 201, 0.28);
  box-shadow: var(--ch-shadow);
}

@media (max-width: 1280px) {
  .ch-home-desktop .ch-container {
    width: min(calc(100% - 48px), 1500px);
  }

  .ch-hero h1 {
    font-size: 60px;
  }

  .ch-heading h2,
  .ch-process__header h2 {
    font-size: 40px;
  }

  .ch-factory__intro h2,
  .ch-custom h2 {
    font-size: 44px;
  }

  .ch-factory-grid {
    grid-template-rows: 260px 260px;
  }

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

  .ch-process-grid::before {
    display: none;
  }
}

@media (min-width: 981px) and (max-height: 800px) {
  .ch-hero__inner {
    padding-top: 86px;
  }

  .ch-hero h1 {
    font-size: 60px;
  }

  .ch-hero__lead {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.65;
  }

  .ch-hero__actions {
    margin-top: 26px;
  }

  .ch-hero__proof {
    margin-top: 30px;
  }
}

@media (max-width: 980px) and (min-width: 701px) {
  .ch-section {
    padding: 84px 0;
  }

  .ch-hero {
    min-height: 690px;
  }

  .ch-hero__copy {
    width: 64vw;
  }

  .ch-hero h1 {
    font-size: 48px;
  }

  .ch-hero__proof li {
    min-width: 125px;
    padding: 0 15px;
  }

  .ch-heading {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .ch-heading__icon {
    width: 58px;
    height: 58px;
  }

  .ch-heading .ch-text-link {
    grid-column: 2;
    justify-self: start;
  }

  .ch-category-grid,
  .ch-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ch-factory__intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ch-factory__intro > p {
    max-width: 720px;
  }

  .ch-factory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 380px repeat(2, 250px);
  }

  .ch-factory-card--campus {
    grid-column: span 2;
    grid-row: span 1;
  }

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

  .ch-capabilities div {
    border-bottom: 1px solid rgba(114, 200, 255, 0.18);
  }

  .ch-custom__copy {
    width: 53vw;
  }
}

@media (max-width: 700px) {
  .ch-home-desktop {
    display: none !important;
  }
}

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

  [data-ch-reveal] {
    opacity: 1;
    transform: none;
  }
}
