/* ==========================================================================
   CAIRUI CONSULT — home page
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  height: calc(var(--hero-h) + var(--hero-bottom));
  background: var(--soft);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--hero-h);
  background: url("../assets/images/hero-bg@2x.jpg") center top / cover no-repeat;
  filter: blur(26px) brightness(0.5) saturate(0.7);
  opacity: 0.9;
}

.hero {
  --hero-h: min(950px, 49.479167vw);
  --hero-bottom: min(350px, 18.229167vw);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100vw, 1920px);
  height: var(--hero-h);
  overflow: hidden;
  background: #0d121a;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform-origin: 52% 48%;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 16, 0.04) 0%, transparent 38%, rgba(7, 10, 16, 0.12) 100%);
  pointer-events: none;
}

@keyframes hero-kenburns {
  from {
    transform: scale(1.07);
  }
  to {
    transform: scale(1);
  }
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1920px;
  height: 100%;
  margin-inline: auto;
}

.welcome-card {
  position: absolute;
  z-index: 4;
  top: calc(var(--hero-h) - min(10.416667vw, 200px));
  left: 0;
  width: min(34.270833vw, 658px);
  height: min(17.96875vw, 345px);
  background: url("../assets/images/welcome-card@2x.jpg") center / 100% 100% no-repeat;
  animation: rise-in 1000ms var(--ease-out) 220ms both;
}

/* Metric cards */

.metric-row {
  position: absolute;
  z-index: 5;
  top: var(--hero-h);
  left: 40%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: min(0.9375vw, 18px);
  width: 60%;
  margin: 0;
}

.metric-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: min(269px, 14.010417vw);
  padding: min(72px, 3.75vw) min(66px, 3.4375vw) min(60px, 3.125vw) min(40px, 2.083333vw);
  border-radius: min(8px, 0.416667vw);
  background: #fff;
  box-shadow: 0 16px 38px rgba(30, 30, 36, 0.08);
  transition: transform 320ms var(--ease-ui), box-shadow 320ms var(--ease-ui);
  animation: rise-in 950ms var(--ease-out) both;
}

.metric-card:nth-child(1) { animation-delay: 360ms; }
.metric-card:nth-child(2) { animation-delay: 450ms; }
.metric-card:nth-child(3) { animation-delay: 540ms; }

.metric-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(30, 30, 36, 0.14);
}

.metric-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: min(36px, 1.875vw);
  padding: 0 min(20px, 1.041667vw);
  border: 1px solid var(--red);
  border-radius: min(8px, 0.416667vw);
  color: var(--red);
  font-size: min(14px, 0.729167vw);
  white-space: nowrap;
  transition: color var(--dur-ui) var(--ease-ui), background-color var(--dur-ui) var(--ease-ui);
}

.metric-card--feature .metric-pill,
.metric-card:hover .metric-pill {
  color: #fff;
  background: var(--red);
}

.metric-num {
  color: var(--ink);
  font-family: var(--font-num);
  font-size: min(48px, 2.5vw);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.metric-num sup {
  font-size: 0.48em;
  vertical-align: top;
  top: 0.22em;
  position: relative;
}

.metric-label {
  margin-top: auto;
  color: var(--ink);
  font-size: min(28px, 1.458333vw);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* Value note under the red welcome card */

.hero-value-note {
  position: absolute;
  z-index: 4;
  top: calc(var(--hero-h) + min(10.416667vw, 200px));
  left: 16.3%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
}

.hero-value-note__line {
  width: 26px;
  height: 2px;
  margin-bottom: 2px;
  background: var(--red);
}

.hero-value-note__tag {
  color: var(--red);
  font-size: clamp(11px, 0.78vw, 15px);
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.hero-value-note__title {
  color: var(--ink);
  font-size: clamp(18px, 1.35vw, 26px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

/* Floor anchor */

.floor-nav {
  position: absolute;
  z-index: 70;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(50px, 4.17vw, 80px);
  height: var(--hero-h);
  padding: min(150px, 7.8125vw) 0 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: -6px 10px 30px rgba(20, 20, 26, 0.08);
  backdrop-filter: blur(10px);
}

.floor-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--red) 25%, var(--red) 75%, transparent);
  opacity: 0.5;
}

.floor-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 22px 0;
  color: #8a8a90;
  font-size: clamp(11px, 0.74vw, 14px);
  letter-spacing: 0.24em;
  writing-mode: vertical-rl;
  transition: color var(--dur-ui) var(--ease-ui);
}

.floor-nav__link + .floor-nav__link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 18px;
  height: 1px;
  background: var(--line);
  transform: translateX(-50%);
}

.floor-nav__link:hover {
  color: var(--ink);
}

.floor-nav__link.is-active {
  color: var(--red);
  font-weight: 600;
}

.floor-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  width: 2px;
  height: 64%;
  background: var(--red);
}

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */

.intro {
  position: relative;
  padding: min(92px, 4.791667vw) 0 min(122px, 6.354167vw);
  background: #fff;
}

.intro > .shell-wide {
  width: min(1792px, 93.333333vw);
}

.intro-head {
  text-align: center;
}

.intro-head .eyebrow {
  color: var(--ink);
}

.intro-head .section-title {
  margin-top: 8px;
  font-size: min(46px, 2.395833vw);
}

.intro-head .section-title span {
  color: inherit;
}

.intro-head .section-title em {
  color: var(--red);
  font-style: normal;
}

.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: min(59px, 3.072917vw);
  align-items: stretch;
  min-height: min(535px, 27.864583vw);
  margin-top: min(58px, 3.020833vw);
}

.intro-panel {
  display: flex;
  flex-direction: column;
  padding: min(40px, 2.083333vw) min(64px, 3.333333vw) min(38px, 1.979167vw);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(28, 28, 34, 0.09);
}

.intro-panel__logo {
  position: relative;
  width: min(100%, 354px);
}

.intro-panel__wordmark {
  width: 100%;
  height: auto;
  filter: url("#intro-logo-sharpen");
  /* The raster has a transparent gap between its symbol and wordmark. */
  clip-path: inset(0 0 0 30%);
}

.intro-panel__logo-symbol {
  position: absolute;
  inset: 0 auto auto 0;
  width: auto;
  height: 100%;
}

.intro-panel__tagline {
  margin-top: min(28px, 1.458333vw);
  color: var(--red);
  font-size: min(24px, 1.25vw);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.intro-panel__copy {
  margin-top: min(20px, 1.041667vw);
}

.intro-panel__copy p {
  color: var(--text-2);
  font-size: min(14px, 0.729167vw);
  line-height: 2.05;
  text-align: justify;
  text-indent: 2em;
}

.intro-panel__copy p + p {
  margin-top: 14px;
}

.intro-panel__btn {
  align-self: flex-start;
  margin-top: min(30px, 1.5625vw);
  border-radius: 10px;
}

.intro-panel__btn .icon {
  filter: brightness(0) invert(1);
}

.intro-video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.73 / 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  background: #14171d;
  box-shadow: 0 24px 70px rgba(28, 28, 34, 0.1);
}

.intro-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out), opacity 500ms var(--ease-ui);
}

.intro-video:hover img {
  transform: scale(1.03);
  opacity: 0.92;
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.services {
  position: relative;
  overflow: hidden;
  padding-top: min(84px, 4.375vw);
  padding-bottom: min(40px, 2.083333vw);
  color: #fff;
  background: var(--ink-soft);
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/about-persist@2x.jpg") center 55% / cover no-repeat;
  opacity: 0.28;
  filter: saturate(0.35) brightness(0.45);
  pointer-events: none;
}

.services::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 100% at 50% 0%, rgba(255, 255, 255, 0.03), transparent 58%);
  pointer-events: none;
}

.services .section-head {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(28px, 3vw, 52px);
}

.services .eyebrow {
  color: var(--red-soft);
}

.services .section-title {
  color: #fff;
}

.services .eyebrow,
.csr .eyebrow,
.home-cases .eyebrow,
.certs .eyebrow,
.clients .eyebrow {
  font-size: min(14px, 0.729167vw);
}

.services .section-title,
.csr .section-title,
.home-cases .section-title,
.certs .section-title,
.clients .section-title {
  font-size: min(56px, 2.916667vw);
}

.service-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1080px, 100%);
  margin-inline: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-item {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.2vw, 20px);
  min-height: min(94px, 4.895833vw);
  padding: 16px clamp(12px, 1.6vw, 26px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(15px, 1.05vw, 20px);
  letter-spacing: 0.04em;
  transition: color var(--dur-ui) var(--ease-ui), background-color var(--dur-ui) var(--ease-ui);
}

.service-item:nth-child(3n + 1) {
  border-left: 0;
}

.service-item__mark {
  width: clamp(20px, 1.35vw, 26px);
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  transition: transform 360ms var(--ease-out);
}

.service-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
}

.service-item:hover .service-item__mark {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Companies
   -------------------------------------------------------------------------- */

.companies {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to right, rgb(184 30 34 / 90%) 0 8%, rgb(255 255 255 / 80%) 8% 100%),
    #f7f8fa url("../assets/images/companies-map.jpg") center / cover no-repeat;
}

.companies-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, 25.6vw) minmax(0, 1fr);
  max-width: 1920px;
  margin-inline: auto;
}

.company-tabs {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: min(28px, 1.458333vw);
  padding: min(86px, 4.479167vw) min(22px, 1.145833vw) min(84px, 4.375vw)
    min(80px, 4.166667vw);
  overflow: hidden;
  background: transparent;
}

.company-tab {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: min(90px, 4.6875vw);
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 6px 18px rgba(30, 30, 36, 0.06);
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.55;
  text-align: left;
  transition: transform 320ms var(--ease-ui), box-shadow 320ms var(--ease-ui),
    color var(--dur-ui) var(--ease-ui), border-color var(--dur-ui) var(--ease-ui);
}

.company-tab__mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
}

.company-tab__mark img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.company-tab:hover {
  transform: translateX(2px);
  border-color: rgba(185, 30, 34, 0.24);
  color: var(--ink);
}

.company-tab.is-active {
  transform: none;
  border: 2px solid var(--red);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(30, 30, 36, 0.08);
}

.company-main {
  padding: min(80px, 4.166667vw) min(52px, 2.708333vw) min(50px, 2.604167vw)
    min(66px, 3.4375vw);
}

.company-main__head {
  margin-bottom: clamp(24px, 2.4vw, 40px);
}

.company-main__title {
  margin-top: 10px;
  color: var(--ink);
  font-size: min(36px, 1.875vw);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.company-copy {
  color: var(--text-2);
  font-size: clamp(13px, 0.84vw, 15px);
  line-height: 2.05;
}

.company-copy p {
  text-align: justify;
}

.company-copy p + p {
  margin-top: clamp(12px, 1.2vw, 18px);
}

.company-detail {
  display: flex;
  align-items: stretch;
  gap: clamp(22px, 2.4vw, 44px);
  margin-top: clamp(28px, 3vw, 50px);
}

.company-photo {
  position: relative;
  flex: 1.1 1 0;
  min-width: 0;
  aspect-ratio: 1.82 / 1;
  overflow: hidden;
  border-radius: 2px;
  background: #cad0d8;
}

.company-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

.company-photo:hover img {
  transform: scale(1.04);
}

.company-services {
  display: flex;
  flex: 0.9 1 0;
  min-width: 320px;
  min-height: 0;
  max-height: min(400px, 20.833333vw);
  flex-direction: column;
  padding: clamp(20px, 2vw, 32px);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px rgba(25, 25, 30, 0.07);
}

.company-services__title {
  margin: 0 0 16px;
  color: var(--red);
  font-size: clamp(17px, 1.15vw, 21px);
  font-weight: 600;
  line-height: 1.4;
}

.company-services__scroll {
  flex: 1;
  min-height: 0;
  max-height: clamp(300px, 23vw, 450px);
  padding-right: 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 100, 108, 0.3) transparent;
}

.company-services__scroll::-webkit-scrollbar {
  width: 4px;
}

.company-services__scroll::-webkit-scrollbar-track {
  background: transparent;
}

.company-services__scroll::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(100, 100, 108, 0.3);
}

.company-service-group + .company-service-group {
  margin-top: clamp(18px, 1.5vw, 24px);
}

.company-service-group__title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(14px, 0.95vw, 16px);
  font-weight: 600;
  line-height: 1.5;
}

.company-service-group__list {
  display: grid;
  gap: 3px;
  margin-top: 8px;
}

.company-service-group__list li {
  position: relative;
  padding-left: 14px;
  color: var(--text-2);
  font-size: clamp(12px, 0.78vw, 13px);
  line-height: 1.75;
}

.company-service-group__list li::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 7px;
  height: 1px;
  background: var(--red);
}

/* --------------------------------------------------------------------------
   Social responsibility
   -------------------------------------------------------------------------- */

.csr {
  position: relative;
  overflow: hidden;
  padding-top: min(88px, 4.583333vw);
  padding-bottom: min(23px, 1.197917vw);
  color: #fff;
  background: #212124;
}

.csr::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/about-persist@2x.jpg") center 55% / cover no-repeat;
  opacity: 0.17;
  filter: saturate(0.35) brightness(0.55);
  pointer-events: none;
}

.csr::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 22, 0.18), rgba(20, 20, 22, 0.55));
  pointer-events: none;
}

.csr > .shell {
  position: relative;
  z-index: 1;
  width: min(1664px, 86.666667vw);
}

.csr .section-head {
  margin-bottom: clamp(18px, 2vw, 28px);
}

.csr .eyebrow {
  color: var(--red-soft);
}

.csr-intro {
  max-width: none;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: min(18px, 0.9375vw);
  line-height: 2.05;
  text-align: justify;
}

.csr-intro .text-link {
  margin-left: 8px;
  color: var(--red-soft);
  border: 0;
}

.csr-honors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: min(17px, 0.885417vw);
  margin-top: min(35px, 1.822917vw);
}

.honor-card {
  position: relative;
  display: block;
  padding: clamp(6px, 0.55vw, 10px);
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
  transition: transform 320ms var(--ease-ui), box-shadow 320ms var(--ease-ui);
}

.honor-card img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: contain;
  background: #fdfdfd;
}

.honor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 68px rgba(0, 0, 0, 0.32);
}

/* --------------------------------------------------------------------------
   Cases
   -------------------------------------------------------------------------- */

.home-cases {
  padding-bottom: min(142px, 7.395833vw);
  background: #fff;
}

.home-cases > .shell {
  width: min(1664px, 86.666667vw);
}

.home-cases .section-head {
  display: block;
  text-align: center;
}

.home-cases .section-head {
  margin-bottom: 0;
}

.case-filter {
  margin-top: min(20px, 1.041667vw);
}

.case-tabs {
  display: flex;
  width: min(914px, 100%);
  margin-inline: auto;
  padding: 4px;
  border-radius: 4px;
  background: #f1f1f2;
}

.case-tab {
  flex: 1 1 0;
  padding: min(16px, 0.833333vw) 12px;
  border-radius: 4px;
  color: var(--text-2);
  font-size: min(18px, 0.9375vw);
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
  transition: color var(--dur-ui) var(--ease-ui), background-color var(--dur-ui) var(--ease-ui);
}

.case-tab:hover {
  color: var(--red);
}

.case-tab.is-active {
  color: #fff;
  background: var(--red);
}

.case-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: min(32px, 1.666667vw);
  margin-top: min(26px, 1.354167vw);
}

.case-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 0;
  background: #fff;
  box-shadow: 0 10px 24px rgba(22, 22, 28, 0.07);
}

.case-card__media {
  position: relative;
  aspect-ratio: 392 / 373;
  overflow: hidden;
  background: #d7d9dd;
}

.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: min(22px, 1.145833vw) min(20px, 1.041667vw) min(24px, 1.25vw);
}

.case-card__title {
  color: var(--red);
  font-size: min(18px, 0.9375vw);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.case-card__meta {
  margin-top: 12px;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.case-card__text {
  margin-top: 8px;
  color: var(--text-2);
  font-size: min(15px, 0.78125vw);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Certificates carousel
   -------------------------------------------------------------------------- */

.certs {
  padding-top: min(96px, 5vw);
  padding-bottom: min(67px, 3.489583vw);
  background: #efeff1;
}

.certs > .shell {
  width: min(1792px, 93.333333vw);
}

.certs-top {
  position: relative;
}

.certs .section-head {
  display: block;
  margin-bottom: clamp(18px, 1.8vw, 28px);
  text-align: center;
}

.certs-more {
  position: absolute;
  right: 0;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  transform: translateY(-50%);
  transition: background-color var(--dur-ui) var(--ease-ui), transform var(--dur-ui) var(--ease-ui);
}

.certs-more .icon {
  width: 15px;
  height: 15px;
}

.certs-more:hover {
  background: var(--red-bright);
  transform: translateY(-50%) translateX(3px);
}

.cert-carousel {
  position: relative;
  margin-top: min(63px, 3.28125vw);
}

.cert-viewport {
  overflow: hidden;
}

.cert-track {
  --per: 4;
  display: flex;
  gap: min(33px, 1.71875vw);
  transition: transform 680ms var(--ease-out);
  will-change: transform;
}

.cert-slide {
  display: flex;
  flex: 0 0 calc((100% - (var(--per) - 1) * min(33px, 1.71875vw)) / var(--per));
  flex-direction: column;
  padding: min(10px, 0.520833vw);
  border: 0;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 20, 24, 0.06);
  cursor: zoom-in;
}

.cert-slide__media {
  display: grid;
  aspect-ratio: 1.38 / 1;
  place-items: center;
  overflow: hidden;
  background: #fff;
}

.cert-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cert-slide__title {
  margin-top: min(12px, 0.625vw);
  color: var(--ink);
  font-size: min(18px, 0.9375vw);
  line-height: 1.45;
  text-align: center;
}

.cert-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: clamp(30px, 2.35vw, 44px);
  height: clamp(30px, 2.35vw, 44px);
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  box-shadow: 0 10px 24px rgba(100, 12, 16, 0.24);
  transform: translateY(-50%);
  transition: color var(--dur-ui), background-color var(--dur-ui), opacity var(--dur-ui);
}

.cert-arrow:hover:not([disabled]) {
  background: var(--red-bright);
}

.cert-arrow[disabled] {
  opacity: 1;
  cursor: default;
}

.cert-arrow--prev {
  left: calc((100% - 100vw) / 2 + min(8px, 0.416667vw));
}

.cert-arrow--next {
  right: calc((100% - 100vw) / 2 + min(8px, 0.416667vw));
}

.cert-arrow .icon {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Clients
   -------------------------------------------------------------------------- */

.clients {
  padding-top: min(76px, 3.958333vw);
  padding-bottom: 12px;
  background: #fff;
}

.clients .section-head {
  display: block;
  text-align: center;
  margin-bottom: clamp(20px, 2vw, 28px);
}

.client-wall__link {
  display: block;
  overflow: hidden;
}

.client-wall__link:focus-visible {
  outline-offset: -3px;
}

.client-wall__track {
  --client-wall-gap: 1.35%;
  display: flex;
  gap: var(--client-wall-gap);
}

.client-wall__image {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: auto;
}

.client-wall__image + .client-wall__image {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .client-wall__track {
    animation: scroll-client-wall 36s linear infinite;
  }

  .client-wall__image + .client-wall__image {
    display: block;
  }

  .client-wall__link:hover .client-wall__track,
  .client-wall__link:focus-visible .client-wall__track {
    animation-play-state: paused;
  }
}

@keyframes scroll-client-wall {
  to {
    transform: translateX(calc(-100% - var(--client-wall-gap)));
  }
}


/* --------------------------------------------------------------------------
   CTA banners
   -------------------------------------------------------------------------- */

.cta-stack {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: min(512px, 26.666667vw);
  height: min(129px, 6.71875vw);
  overflow: hidden;
  color: #fff;
  background: #1e1e20;
}

.cta-stack__art {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(54.166667%, 1040px);
  pointer-events: none;
}

.cta-stack__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-stack__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 22px);
  font-size: clamp(20px, 1.9vw, 36px);
  font-weight: 500;
  letter-spacing: 0.16em;
  transition: color var(--dur-ui) var(--ease-ui);
}

.cta-stack__link span {
  padding-bottom: 0;
}

.cta-stack__link .icon {
  width: clamp(24px, 2vw, 36px);
  height: clamp(24px, 2vw, 36px);
  transition: transform 360ms var(--ease-out);
}

.cta-stack__link:hover {
  color: #fff;
}

.cta-stack__link:hover .icon {
  transform: translateX(8px);
}

.cta-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(414px, 21.5625vw);
  overflow: hidden;
  color: #fff;
  background: var(--red);
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, #a9151a 0%, #b91e22 40%, #a41920 56%, #1c3b8b 56%, #2c51b8 100%);
}

.cta-banner::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: min(203px, 10.572917vw);
  height: min(86px, 4.479167vw);
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}

.cta-banner__copy {
  position: relative;
  z-index: 3;
  width: min(52%, 1000px);
  padding: min(32px, 1.666667vw) 0 min(32px, 1.666667vw) min(400px, 20.833333vw);
}

.cta-banner__title {
  margin-top: 10px;
  font-size: min(52px, 2.708333vw);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.35;
}

.cta-banner__sub {
  margin-top: min(20px, 1.041667vw);
  color: rgba(255, 255, 255, 0.9);
  font-size: min(18px, 0.9375vw);
  letter-spacing: 0.04em;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: min(32px, 1.666667vw);
}

.cta-banner__enter {
  border-radius: 10px;
  color: var(--ink);
}

.cta-banner__enter .icon {
  width: 22px;
  height: 22px;
}

.cta-banner__media {
  position: absolute;
  z-index: 2;
  right: 4.5%;
  bottom: -16%;
  width: min(37%, 720px);
  filter: drop-shadow(0 26px 50px rgba(0, 0, 0, 0.24));
}

.cta-banner__media img {
  width: 100%;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1500px) {
  .floor-nav {
    width: 56px;
  }
}

@media (max-width: 1440px) {
  .intro-layout {
    gap: clamp(28px, 3vw, 48px);
  }

  .case-card-grid {
    gap: 18px;
  }
}

@media (max-width: 1250px) {
  .brand {
    flex-basis: 46%;
  }

  .floor-nav {
    display: none;
  }

  .welcome-card {
    width: min(40vw, 520px);
  }

  .metric-row {
    left: 43%;
    width: 55.5%;
  }

  .intro-layout {
    gap: 26px;
  }

  .intro-panel__tagline {
    font-size: 18px;
  }

  .service-grid {
    width: 100%;
  }

  .companies-inner {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .company-tab {
    font-size: 14px;
  }

  .company-detail {
    display: grid;
    grid-template-columns: 1fr;
  }

  .company-photo {
    aspect-ratio: 2 / 1;
  }

  .company-services {
    min-width: 0;
    max-height: 430px;
  }

  .csr-honors {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 1024px) {
  .hero {
    --hero-h: 540px;
    --hero-bottom: 460px;
  }

  .welcome-card {
    width: 48vw;
    height: 245px;
  }

  .metric-row {
    top: calc(var(--hero-h) + 210px);
    left: 4%;
    width: 92%;
  }

  .metric-card {
    min-height: 210px;
  }

  .hero-value-note {
    display: none;
  }

  .intro-layout {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    padding: 32px 28px;
  }

  .intro-video {
    aspect-ratio: 1.8 / 1;
  }

  .companies-inner {
    display: block;
  }

  .company-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding: 24px;
    gap: 10px;
    scrollbar-width: none;
  }

  .company-tabs::-webkit-scrollbar {
    display: none;
  }

  .company-tab {
    flex: 0 0 240px;
    min-height: 64px;
    transform: none !important;
  }

  .company-tab.is-active {
    box-shadow: 0 10px 24px rgba(45, 6, 8, 0.22);
  }

  .company-main {
    padding: 46px 32px;
  }

  .certs > .shell {
    width: var(--shell);
  }

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

  .cta-banner__copy {
    width: 62%;
    padding-left: 8%;
  }

  .cta-banner__media {
    width: 42%;
    right: 3%;
    bottom: -10%;
  }
}

@media (max-width: 760px) {
  .hero {
    --hero-h: 360px;
    --hero-bottom: 660px;
  }

  .welcome-card {
    top: calc(var(--hero-h) - 120px);
    width: 74vw;
    height: 205px;
  }

  .metric-row {
    top: calc(var(--hero-h) + 130px);
    grid-template-columns: 1fr;
    gap: 12px;
    left: 20px;
    width: calc(100% - 40px);
  }

  .metric-card {
    min-height: 150px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .metric-card__top {
    flex: 1;
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .metric-label {
    margin-top: 0;
    font-size: 17px;
  }

  .metric-pill {
    margin-top: 10px;
  }

  .intro-layout {
    gap: 24px;
    margin-top: 28px;
  }

  .intro-panel {
    padding: 22px 20px;
  }

  .intro-panel__logo {
    width: 210px;
  }

  .intro-panel__tagline {
    margin-top: 16px;
    font-size: 16px;
  }

  .intro-panel__copy p {
    font-size: 13px;
    line-height: 1.95;
  }

  .intro-video {
    aspect-ratio: 1.6 / 1;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    border-left: 0 !important;
    min-height: 66px;
  }

  .company-copy {
    font-size: 13px;
  }

  .company-services {
    max-height: 390px;
    padding: 18px;
  }

  .csr-intro {
    font-size: 13px;
  }

  .case-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-tabs {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  .case-tab {
    flex: 1 0 calc(50% - 4px);
    padding: 11px 8px;
    font-size: 14px;
    white-space: normal;
  }

  .certs-more {
    position: static;
    display: flex;
    width: max-content;
    margin: 12px auto 0;
    transform: none;
  }

  .certs-more:hover {
    transform: translateX(3px);
  }

  .cert-viewport {
    margin-inline: 0;
  }

  .cert-arrow--prev {
    left: 4px;
  }

  .cert-arrow--next {
    right: 4px;
  }

  .cta-stack {
    height: 128px;
  }

  .cta-stack__art {
    width: 70%;
    opacity: 0.3;
    left: -12%;
  }

  .cta-stack__link {
    font-size: 20px;
  }

  .cta-banner {
    min-height: 360px;
    align-items: flex-start;
  }

  .cta-banner::after {
    display: none;
  }

  .cta-banner__copy {
    width: 100%;
    padding: 36px 24px;
  }

  .cta-banner__media {
    width: 70%;
    right: -8%;
    bottom: -8%;
    opacity: 0.3;
  }
}
