@font-face {
  font-family: "flaticon";
  src: url("flaticon.ttf") format("truetype");
  font-display: block;
}

.mc-page {
  min-height: 100vh;
  color: #14133b;
  background: #ffffff;
  font-family: "Barlow", "Roboto", Arial, sans-serif;
}

.mc-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.mc-hero {
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(1, 67, 41, 0.86) 0%, rgba(4, 121, 73, 0.42) 56%, rgba(0, 81, 50, 0.28) 100%),
    url("../images/manuscriptcloud-hero/green-book-banner.png") 22% 260% / auto 105% no-repeat,
    linear-gradient(135deg, #064d31, #0b8f58);
}

.mc-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: #ffffff;
  inset: 0;
  clip-path: polygon(
    0% 99%, 2.5% 99%, 5% 98.9%, 7.5% 98.7%, 10% 98.5%,
    12.5% 98.3%, 15% 98.1%, 17.5% 97.9%, 20% 97.7%,
    22.5% 97.5%, 25% 97.3%, 27.5% 97.1%, 30% 96.9%,
    32.5% 96.6%, 35% 96.3%, 37.5% 96%, 40% 95.6%,
    42.5% 95.1%, 45% 94.5%, 47.5% 93.8%, 50% 92.9%,
    52.5% 91.7%, 55% 90.2%, 57.5% 88.5%, 60% 86.7%,
    62.5% 84.8%, 65% 83%, 67.5% 81.4%, 70% 80%,
    72.5% 79%, 75% 78.4%, 77.5% 78.2%, 80% 78.5%,
    82.5% 79.2%, 85% 80.5%, 87.5% 82.2%, 90% 84.2%,
    92.5% 86.6%, 95% 89.2%, 97.5% 91.8%, 100% 94%,
    100% 100%, 0% 100%
  );
}

.mc-hero-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding-top: 112px;
}

.mc-hero-content {
  max-width: 780px;
}

.mc-hero h1 {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: clamp(34px, 4.15vw, 51px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: 0;
}

.mc-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  line-height: 1.75;
  font-weight: 500;
}

.mc-intro {
  padding: 94px 0 38px;
}

.mc-section-title {
  margin-bottom: 40px;
  text-align: center;
}

.mc-section-title span,
.mc-contact-copy span {
  display: inline-block;
  margin-bottom: 12px;
  color: #0554f2;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mc-section-title .mc-title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: max-content;
  margin: 12px auto 0;
  color: inherit;
  font-size: inherit;
  letter-spacing: 0;
}

.mc-title-divider i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #00a86b;
}

.mc-title-divider i:nth-child(1),
.mc-title-divider i:nth-child(3) {
  width: 22px;
}

.mc-title-divider i:nth-child(2) {
  width: 48px;
}

.mc-section-title h2,
.mc-contact-copy h2 {
  margin: 0;
  color: #14133b;
  font-size: 2.0275rem;
  line-height: 1.33;
  font-weight: 600;
  letter-spacing: 0;
}

.mc-lead {
  margin: 0 0 20px;
  color: #5d6678;
  font-size: 16px;
  line-height: 1.9;
}

.mc-lead:last-child {
  margin-bottom: 0;
}

.mc-features {
  padding: 0px 0 40px;
}

.mc-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  column-gap: 24px;
  row-gap: 50px;
  align-items: stretch;
}

.mc-feature-card {
  height: 100%;
  position: relative;
  padding: 30px 20px 20px 33px;
  overflow: hidden;
  border-left: 2px solid #dee9fe;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: all 0.4s ease;
}

.mc-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, #4d9f7a 0%, #66c39b 100%);
  transition: width 0.35s ease;
  z-index: 0;
}

.mc-feature-card > * {
  position: relative;
  z-index: 1;
}

.mc-feature-card > .mc-feature-icon {
  position: absolute;
  left: 33px;
  top: 30px;
  display: inline-flex;
  color: #4d9f7a;
  font-size: 32px;
  line-height: 1;
  font-style: normal;
  transition: color 0.4s ease;
}

.mc-feature-icon::before {
  content: "\f122";
  font-family: "flaticon" !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  line-height: 1;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.mc-feature-card h3 {
  margin: 0 0 13px 49px;
  color: #14133b;
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
  transition: color 0.4s ease;
}

.mc-feature-card p {
  font-family: "Roboto", sans-serif;
  margin: 0;
  color: #5b6674;
  font-size: 16px;
  line-height: 1.75;
  transition: color 0.4s ease;
}

.mc-feature-card:hover {
  border-color: transparent;
  border-radius: 5px;
  box-shadow: none;
  transform: none;
}

.mc-feature-card:hover::after {
  width: 100%;
}

.mc-feature-card:hover .mc-feature-icon,
.mc-feature-card:hover h3,
.mc-feature-card:hover p {
  color: #ffffff;
}

/* Feature cards reveal progressively when this section enters the viewport. */
html.mc-reveal-ready .mc-feature-card {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 0.62s ease var(--mc-reveal-delay, 80ms),
    transform 0.62s cubic-bezier(0.22, 0.61, 0.36, 1) var(--mc-reveal-delay, 80ms),
    border-color 0.4s ease,
    border-radius 0.4s ease;
  will-change: opacity, transform;
}

html.mc-reveal-ready .mc-feature-card:nth-child(odd) {
  transform: translate3d(-28px, 14px, 0);
}

html.mc-reveal-ready .mc-feature-card:nth-child(even) {
  transform: translate3d(28px, 14px, 0);
}

html.mc-reveal-ready .mc-feature-card.is-revealed,
html.mc-reveal-ready .mc-feature-card.is-revealed:hover {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.mc-cases {
  padding: 86px 0 98px;
  background: #f8faff;
}

.mc-cases .mc-shell {
  width: min(900px, calc(100% - 48px));
}

.mc-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 285px));
  justify-content: center;
  gap: 22px;
}

.mc-case-card {
  --case-motion-duration: 0.42s;
  --case-motion-easing: cubic-bezier(0.22, 0.61, 0.36, 1);
  --case-from-x: -101%;
  --case-from-y: 0%;
  --case-to-x: 101%;
  --case-to-y: 0%;
  position: relative;
  display: block;
  aspect-ratio: 400 / 550;
  border-radius: 10px;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
  background: #ffffff;
}

/* Case studies open from the center out when the gallery enters the viewport. */
html.mc-case-reveal-ready .mc-case-card {
  opacity: 0;
  transform: translate3d(0, 20px, 0) scale(0.94);
  transition:
    opacity 0.6s ease var(--mc-case-reveal-delay, 0ms),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) var(--mc-case-reveal-delay, 0ms);
  will-change: opacity, transform;
}

html.mc-case-reveal-ready .mc-case-card.is-case-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.mc-case-card::before {
  position: absolute;
  content: "";
  inset: 0;
  z-index: 1;
  visibility: hidden;
  background: rgba(20, 19, 59, 0.56);
  transform: translate(var(--case-from-x), var(--case-from-y));
  transition: transform var(--case-motion-duration) var(--case-motion-easing);
  will-change: transform;
}

.mc-case-card > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1);
  transition: transform var(--case-motion-duration) var(--case-motion-easing);
  will-change: transform;
}

.mc-case-zoom {
  position: absolute;
  z-index: 2;
  top: 40%;
  left: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  opacity: 0;
  visibility: visible;
  background: #ffffff;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity var(--case-motion-duration) var(--case-motion-easing), transform var(--case-motion-duration) var(--case-motion-easing), background 0.25s ease;
}

.mc-case-zoom::before {
  position: absolute;
  content: "";
  top: 19px;
  left: 19px;
  width: 12px;
  height: 12px;
  border: 3px solid #00a86b;
  border-radius: 50%;
  transition: border-color 0.25s ease;
}

.mc-case-zoom::after {
  position: absolute;
  content: "";
  top: 33px;
  left: 33px;
  width: 13px;
  height: 3px;
  border-radius: 4px;
  background: #00a86b;
  transform: rotate(45deg);
  transform-origin: left center;
  transition: background 0.25s ease;
}

.mc-case-zoom:hover {
  background: #00a86b;
}

.mc-case-zoom:hover::before {
  border-color: #ffffff;
}

.mc-case-zoom:hover::after {
  background: #ffffff;
}

.mc-case-title {
  position: absolute;
  z-index: 2;
  top: 64%;
  right: 24px;
  left: 24px;
  display: block;
  opacity: 0;
  visibility: visible;
  color: #ffffff;
  font-size: clamp(18px, 1.4vw, 24px);
  line-height: 1.35;
  font-weight: 600;
  text-align: center;
  transform: translateY(12px);
  transition: opacity var(--case-motion-duration) var(--case-motion-easing), transform var(--case-motion-duration) var(--case-motion-easing), color 0.25s ease;
}

.mc-case-title:hover {
  color: #00a86b;
}

.mc-case-card.is-active::before,
.mc-case-card:focus-visible::before {
  visibility: visible;
  transform: translate(0, 0);
}

.mc-case-card.is-active > img,
.mc-case-card:focus-visible > img {
  transform: scale(1.07);
}

.mc-case-card.is-leaving::before {
  visibility: visible;
  transform: translate(var(--case-to-x), var(--case-to-y));
}

.mc-case-card.is-active .mc-case-zoom,
.mc-case-card:focus-visible .mc-case-zoom {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.mc-case-card.is-active .mc-case-title,
.mc-case-card:focus-visible .mc-case-title {
  opacity: 1;
  transform: translateY(0);
}

.mc-contact {
  padding: 96px 0;
  background:
    linear-gradient(90deg, rgba(20, 19, 59, 0.92), rgba(20, 19, 59, 0.82)),
    url("https://www.magtech.com.cn/international/images/bg/contact-bg.jpg") center / cover no-repeat,
    #14133b;
}

.mc-contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: center;
}

.mc-contact-info {
  display: grid;
  gap: 20px;
}

.mc-contact-info article {
  padding: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mc-contact-info h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
}

.mc-contact-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.72;
}

.mc-contact-copy h2 {
  color: #ffffff;
}

.mc-contact-copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 54px;
  margin-top: 34px;
  padding: 0 30px;
  border-radius: 999px;
  color: #ffffff;
  background: #0554f2;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  transition: background 0.25s ease, transform 0.25s ease;
}

.mc-contact-copy a:hover {
  background: #0445c5;
  transform: translateY(-2px);
}

.site-footer {
  background: #f1f3f2;
  color: #6b746f;
}

@media (max-width: 1024px) {
  .mc-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mc-case-grid {
    grid-template-columns: repeat(2, minmax(0, 285px));
  }

  .mc-feature-grid {
    grid-auto-rows: auto;
  }

  .mc-feature-card {
    height: auto;
    padding: 25px 15px 20px;
  }

  .mc-feature-card > .mc-feature-icon {
    left: 15px;
    top: 25px;
  }

  .mc-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mc-shell,
  .mc-hero-inner {
    width: min(100% - 28px, 1180px);
  }

  .mc-hero {
    min-height: 620px;
    background-position: 0% 0%, 32% 240%, 0% 0%;
    background-size: auto, auto 105%, auto;
  }

  .mc-hero::after {
    clip-path: polygon(
      0% 99%, 10% 98.5%, 20% 98%, 30% 97%, 40% 96%,
      50% 94%, 55% 92%, 60% 89%, 65% 85%, 70% 82%,
      75% 80%, 80% 81%, 85% 83%, 90% 86%, 95% 90%,
      100% 93%, 100% 100%, 0% 100%
    );
  }

  .mc-hero-inner {
    padding-top: 116px;
  }

  .mc-hero h1 {
    font-size: 38px;
  }

  .mc-hero p,
  .mc-lead {
    font-size: 17px;
  }

  .mc-intro,
  .mc-cases,
  .mc-contact {
    padding: 66px 0;
  }

  .mc-features {
    padding: 34px 0 68px;
  }

  .mc-feature-grid {
    grid-template-columns: 1fr;
  }

  .mc-case-grid {
    grid-template-columns: minmax(0, 285px);
  }

  .mc-feature-card {
    height: auto;
    min-height: auto;
    padding: 25px 15px 20px;
  }

  .mc-feature-card > .mc-feature-icon {
    left: 15px;
    top: 25px;
    font-size: 32px;
  }

  .mc-feature-card h3 {
    font-size: 20px;
  }

  .mc-case-card {
    width: 100%;
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.mc-reveal-ready .mc-feature-card {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  html.mc-case-reveal-ready .mc-case-card {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}
