/* ==========================================================================
   Kleanland landing page
   Built from 源文件.psd (2403 × 10500). Design content column = 1400px.
   ========================================================================== */

:root {
  --blue:        #1565C0;
  --blue-btn:    #0E5CC0;
  --blue-dark:   #0D4F96;
  --ink:         #14263A;
  --ink-soft:    #5A6B7B;
  --dark:        #0B1F37;
  --band:        #F2F5FC;
  --line:        #D7E2EC;
  --teal:        #0F7A8E;
  --green:       #3BAD3E;
  --container:   1240px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.5px; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  padding: 16px 30px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn--primary {
  background: var(--blue-btn);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14,92,192,.28);
}
.btn--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(14,92,192,.36);
}
.btn:active { transform: translateY(0); }
.btn--block { width: 100%; text-align: center; }
.btn--whatsapp { background: var(--green); color: #fff; }
.btn--whatsapp:hover { background: #319334; }

/* ---------- shared section title ---------- */
.section-title {
  font-size: 40px;
  text-align: center;
  color: var(--ink);
}
.section-title--light { color: #fff; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  background: #234279 url('../img/hero-bg.jpg') center / cover no-repeat;
  color: #fff;
}
/* the PSD leans on a dark gradient over the left of the photo to hold the copy;
   reproduce it in CSS so it scales with the viewport instead of being baked in */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
              rgba(9,28,58,.82) 0%,
              rgba(9,28,58,.62) 34%,
              rgba(9,28,58,.18) 62%,
              rgba(9,28,58,0) 82%);
}
.hero__inner { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 40px; }
.hero__logo { width: 288px; margin-bottom: 64px; }
.hero__title { font-size: 58px; line-height: 1.16; max-width: 780px; }
.hero__sub { font-size: 17px; line-height: 1.65; margin: 26px 0 0; max-width: 52ch; }
.hero__points { margin: 34px 0 0; }
.hero__points li {
  position: relative;
  padding-left: 24px;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.hero__points li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--green);
}
.hero .btn { margin-top: 38px; }

/* ==========================================================================
   SOLUTION CAROUSELS
   ========================================================================== */
.carousel { position: relative; background: #eef2f8; overflow: hidden; }

/* every slide occupies the same grid cell, so the track keeps the height of the
   tallest slide and nothing jumps as you move between them */
.carousel__track { display: grid; }
.slide {
  grid-area: 1 / 1;
  position: relative;
  min-height: 620px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
}
.slide.is-active { opacity: 1; visibility: visible; }

/* the background drifts very slightly as a slide comes in */
.slide__bg { transform: scale(1.04); transition: transform 1.1s cubic-bezier(.22,.61,.36,1); }
.slide.is-active .slide__bg { transform: scale(1); }

/* content lifts in, staggered */
.slide.is-active .slide__eyebrow,
.slide.is-active .slide__title,
.slide.is-active .slide__body,
.slide.is-active .slide__text .btn,
.slide.is-active .slide__device,
.slide.is-active .slide__cases {
  animation: slide-in .55s cubic-bezier(.22,.61,.36,1) both;
}
.slide.is-active .slide__eyebrow    { animation-delay: .04s; }
.slide.is-active .slide__title      { animation-delay: .09s; }
.slide.is-active .slide__body       { animation-delay: .14s; }
.slide.is-active .slide__text .btn  { animation-delay: .19s; }
.slide.is-active .slide__device     { animation-delay: .10s; }
.slide.is-active .slide__cases      { animation-delay: .22s; }

@keyframes slide-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.slide__bg {
  position: absolute; inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.slide__inner {
  position: relative;
  display: grid;
  grid-template-columns: 540px 1fr;
  grid-template-rows: auto auto;
  column-gap: 60px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 124px;
  min-height: 620px;
}
.slide__inner > * { min-width: 0; }
.slide__text { grid-column: 1; grid-row: 1; }
.slide__device { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.slide__device img { margin: 0 auto; }
.slide__cases {
  grid-column: 2; grid-row: 2;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.slide__cases img {
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(8,30,54,.22);
  transition: transform .28s ease, box-shadow .28s ease;
}
.slide__cases img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(8,30,54,.3);
}

.slide__eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--blue);
}
.slide__title { font-size: 34px; line-height: 1.2; }
.slide__body {
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 700;
  max-width: 520px;
}
.slide .btn { margin-top: 32px; }

/* industrial carousel puts the device on the left, text on the right */
.carousel--industrial .slide__text   { grid-column: 2; }
.carousel--industrial .slide__device { grid-column: 1; grid-row: 1 / span 2; }
.carousel--industrial .slide__cases  { grid-column: 1; grid-row: 2; }

/* carousel controls — sit under the text column, mirrored per carousel */
.carousel__ui {
  position: absolute;
  left: 0; right: 0;
  bottom: 40px;
  display: flex;
  justify-content: flex-start;
}
.carousel--industrial .carousel__ui { justify-content: flex-end; }
.carousel__bar {
  width: 540px;
  padding-top: 26px;
  border-top: 1px solid rgba(21,101,192,.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.carousel__dots {
  display: flex;
  gap: 12px;
}
.carousel__dot {
  width: 13px; height: 13px;
  border: none; border-radius: 999px;
  background: #C3CEDC;
  cursor: pointer;
  padding: 0;
  transition: background-color .25s ease, width .35s cubic-bezier(.22,.61,.36,1);
}
.carousel__dot:hover { background: #9DB0C6; }
.carousel__dot.is-on { background: var(--blue); width: 34px; }
.carousel__arrows { display: flex; gap: 12px; }
.carousel__arrow {
  width: 46px; height: 46px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  background: transparent;
  color: var(--blue);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease,
              transform .2s ease, box-shadow .2s ease;
}
.carousel__arrow:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(21,101,192,.32);
}
.carousel__arrow:active { transform: translateY(0); }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats { padding: 80px 0 88px; background: #fff; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 52px;
}
.stats__item {
  text-align: center;
  padding: 0 10px;
  border-right: 1px solid #DDE3EA;
}
.stats__item:last-child { border-right: none; }
.stats__value {
  display: block;
  font-size: 36px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1.1;
}
.stats__label {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.howitworks {
  background: #040406;
  color: #fff;
  padding: 72px 0 82px;
  text-align: center;
}
.howitworks__sub {
  margin: 18px 0 0;
  font-size: 17px;
  color: rgba(255,255,255,.72);
}
/* the diagram carries its own leader lines, so the captions are pinned to the
   x-positions those leaders point at (set per-item with --x) */
.howitworks__figure {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 30px;
}
.howitworks__diagram { width: 100%; }
.howitworks__captions {
  position: relative;
  height: 70px;
  /* the diagram is 2403px wide in the PSD where the captions are 20px; keep
     that ratio as the image scales so the labels never collide */
  font-size: clamp(12px, 0.9vw, 20px);
  font-weight: 700;
}
.howitworks__captions li {
  position: absolute;
  top: 0;
  left: var(--x);
  transform: translateX(-50%);
  white-space: nowrap;
  line-height: 1.3;
  text-align: center;
}

/* ==========================================================================
   TECHNOLOGY (power pack / chip)
   ========================================================================== */
.tech { background: #fff; padding: 60px 0 78px; }
.tech__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 28px 0;
}
.tech__row--reverse .tech__media { order: 2; }
.tech__row--reverse .tech__text  { order: 1; }
.tech__title { font-size: 29px; line-height: 1.25; }
.tech__body {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about {
  background: #DCE8F5 url('../img/about-bg.jpg') center top / cover no-repeat;
  padding: 70px 0 92px;
}
.about__sub {
  margin: 14px 0 0;
  text-align: center;
  font-size: 17px;
  color: #fff;
}
.about__panel {
  background: #fff;
  margin-top: 46px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(11,31,55,.12);
  max-width: 1393px;
}
.about__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.about__row--reverse .about__img  { order: 2; }
.about__row--reverse .about__text { order: 1; }
.about__img { width: 100%; height: 100%; object-fit: cover; }
.about__text { padding: 42px 52px; }
.about__title { font-size: 27px; line-height: 1.25; }
.about__body {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ==========================================================================
   CERTIFICATES
   ========================================================================== */
.certs { background: #fff; padding: 76px 0 68px; text-align: center; }
.certs__heading { font-size: 29px; line-height: 1.45; }
.certs__img { margin: 40px auto 0; }
.certs__captions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ==========================================================================
   PARTNERS
   ========================================================================== */
.partners { background: var(--band); padding: 76px 0 84px; }
.partners__sub {
  max-width: 860px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.partners__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  margin-top: 46px;
}
.partners__grid li {
  background: #fff;
  border-radius: 6px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(11,31,55,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.partners__grid li:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(11,31,55,.12);
}
.partners__grid img {
  max-height: 58px; width: auto; object-fit: contain;
  filter: grayscale(1);
  opacity: .78;
  transition: filter .3s ease, opacity .3s ease;
}
.partners__grid li:hover img { filter: none; opacity: 1; }

/* ==========================================================================
   GLOBAL PRESENCE
   ========================================================================== */
.global { background: #fff; padding: 72px 0 82px; }
.global__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.global__grid li { overflow: hidden; border-radius: 4px; }
.global__grid img {
  width: 100%;
  aspect-ratio: 349 / 216;
  object-fit: cover;
  border-radius: 4px;
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.global__grid li:hover img { transform: scale(1.06); }

/* ==========================================================================
   SERVING + QUOTE FUNNEL
   ========================================================================== */
.serving {
  background: linear-gradient(100deg, var(--teal) 0%, #1564C0 60%, #1564C0 100%);
  color: #fff;
  padding: 76px 0 0;
}
.serving__head { text-align: center; padding-bottom: 54px; }
.serving__title { font-size: 38px; }
.serving__title span { color: #A8E6A0; }
.serving__sub {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,.9);
}
.serving__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}
.serving__pills li {
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  padding: 8px 17px;
  font-size: 14px;
  font-weight: 700;
}
.serving__pills .serving__more {
  border: none;
  color: rgba(255,255,255,.8);
  font-weight: 400;
}

.quote {
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 56px;
  align-items: start;
  padding-top: 54px;
  padding-bottom: 78px;
  border-top: 1px solid rgba(255,255,255,.25);
}
.quote__title { font-size: 30px; }
.quote__sub {
  margin: 14px 0 0;
  max-width: 420px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
}
.quote__note {
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.25);
  max-width: 420px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,.75);
}

/* ---------- funnel card ---------- */
.funnel {
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 40px 42px 34px;
  box-shadow: 0 18px 50px rgba(8,30,54,.28);
}
.funnel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.funnel__title { font-size: 26px; font-weight: 900; letter-spacing: -0.3px; }
.funnel__step { font-size: 13px; font-weight: 700; color: #8A97A3; white-space: nowrap; }
.funnel__progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 14px;
}
.funnel__progress span {
  height: 4px;
  border-radius: 2px;
  background: #E3E9EF;
  transition: background-color .2s ease;
}
.funnel__progress span.is-on { background: var(--blue); }

.funnel__panel { display: none; }
.funnel__panel.is-active { display: block; }

.funnel__q { margin: 20px 0 0; font-size: 16px; font-weight: 700; }
.funnel__options { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

.usecase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background: #F7FAFD;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: 15px 16px;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  transition: border-color .16s ease, background-color .16s ease;
}
.usecase:hover { border-color: var(--blue); background: #EEF4FB; }
.usecase span { display: flex; flex-direction: column; gap: 3px; }
.usecase strong { font-size: 15.5px; font-weight: 700; }
.usecase em { font-style: normal; font-size: 13px; color: var(--ink-soft); }
.usecase__arrow { color: var(--blue); font-size: 18px; font-weight: 700; }

.funnel__foot {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}

.funnel__panel input,
.funnel__panel select,
.funnel__panel textarea {
  width: 100%;
  border: 1px solid #CCD6E0;
  border-radius: 4px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  color: #1B2733;
  background: #fff;
  margin-top: 12px;
}
.funnel__panel textarea { resize: vertical; }
.funnel__panel input:focus,
.funnel__panel select:focus,
.funnel__panel textarea:focus { border-color: var(--blue); outline: none; }
.funnel__panel input.has-error { border-color: #C0392B; }

.funnel__panel .btn { margin-top: 12px; font-size: 16px; padding: 15px; }

.funnel__back {
  display: block;
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #8A97A3;
  cursor: pointer;
  padding: 10px 2px 2px;
  text-align: center;
}
.funnel__back:hover { color: var(--blue); }

.funnel__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.contact-btn {
  background: #F7FAFD;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: 14px 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.contact-btn:hover { border-color: var(--blue); }
.contact-btn.is-on { border-color: var(--blue); background: #EEF4FB; }
.contact-btn--wa:hover,
.contact-btn--wa.is-on { border-color: var(--green); background: #F2FAF2; }

.funnel__email { margin-top: 4px; }
.funnel__wa {
  margin-top: 14px;
  background: #F2FAF2;
  border: 1px solid #CBE8CC;
  border-radius: 6px;
  padding: 18px;
  text-align: center;
}
.funnel__wa-label {
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
  letter-spacing: .5px; text-transform: uppercase;
}
.funnel__wa-number { margin-top: 6px; font-size: 21px; font-weight: 900; letter-spacing: .5px; }
.funnel__wa .btn { margin-top: 14px; font-size: 16px; padding: 14px 24px; }

.funnel__done { text-align: center; padding: 26px 0 10px; }
.funnel__done-tick {
  width: 56px; height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: #F2FAF2;
  border: 1.5px solid #CBE8CC;
  color: var(--green);
  font-size: 28px;
  line-height: 54px;
}
.funnel__done-title { margin: 18px 0 0; font-size: 18px; font-weight: 700; }
.funnel__done-sub { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.sitefooter { background: var(--dark); color: rgba(255,255,255,.75); padding: 34px 0; }
.sitefooter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.sitefooter img { width: 190px; }
.sitefooter p { margin: 0; font-size: 15px; }

/* ==========================================================================
   THANK-YOU PAGE (/thank-you/)
   ========================================================================== */
.ty-body {
  background: linear-gradient(140deg, var(--teal) 0%, #1564C0 55%, #1564C0 100%);
  min-height: 100vh;
}
.ty {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}
.ty__card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 22px 60px rgba(8,30,54,.3);
  padding: 48px 52px 40px;
  max-width: 560px;
  width: 100%;
  text-align: center;
}
.ty__logo { width: 72px; height: 72px; margin: 0 auto; border-radius: 8px; }
.ty__tick {
  width: 60px; height: 60px;
  margin: 26px auto 0;
  border-radius: 50%;
  background: #F2FAF2;
  border: 1.5px solid #CBE8CC;
  color: var(--green);
  font-size: 30px;
  line-height: 58px;
}
.ty__title {
  margin: 22px 0 0;
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink);
}
.ty__lead {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.ty__next {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.ty__next-label {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.ty__number {
  margin: 14px 0 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--ink);
}
.ty__back {
  display: inline-block;
  margin-top: 30px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
}
.ty__back:hover { color: var(--blue); }

@media (max-width: 640px) {
  .ty { padding: 28px 16px; }
  .ty__card { padding: 34px 24px 30px; }
  .ty__title { font-size: 22px; }
}

/* ==========================================================================
   MOTION + FOCUS POLISH
   ========================================================================== */

/* sections ease in as they come into view. The hiding rule is scoped to
   .js-reveal, which main.js sets — so with JS off everything stays visible. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1),
              transform .7s cubic-bezier(.22,.61,.36,1);
}
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* stagger children of a revealed grid */
.js-reveal [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1),
              transform .6s cubic-bezier(.22,.61,.36,1);
}
.js-reveal [data-reveal-stagger].is-in > * { opacity: 1; transform: none; }

/* visible keyboard focus everywhere, without a ring on mouse clicks */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #7FB0EB;
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js-reveal [data-reveal],
  .js-reveal [data-reveal-stagger] > * { opacity: 1; transform: none; }
  .slide__bg { transform: none; }
}

/* ==========================================================================
   RESPONSIVE
   The PSD is a fixed 2403px desktop comp. Everything below is our own work —
   the design fluidly scales down, then restacks for tablet and phone.
   ========================================================================== */
@media (max-width: 1300px) {
  .container { padding: 0 32px; }
  .hero__title { font-size: 50px; }
  .slide__inner { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .slide__title { font-size: 30px; }
  .carousel__bar { width: 460px; }
}

@media (max-width: 1100px) {
  .section-title { font-size: 32px; }

  /* the photo crops hard on narrow screens, so swap the left-to-right scrim
     for a vertical one that covers the full column of copy */
  .hero { min-height: 620px; }
  .hero::after {
    background: linear-gradient(180deg,
                rgba(9,28,58,.80) 0%,
                rgba(9,28,58,.58) 55%,
                rgba(9,28,58,.72) 100%);
  }
  .hero__logo { width: 230px; margin-bottom: 46px; }
  .hero__title { font-size: 42px; }
  .hero__sub br { display: none; }

  /* lead with the product shot, then the copy — a wall of text first reads badly
     on a phone */
  .slide__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 26px;
    padding-top: 34px;
    padding-bottom: 34px;
  }
  .slide__text,
  .slide__device,
  .slide__cases,
  .carousel--industrial .slide__text,
  .carousel--industrial .slide__device,
  .carousel--industrial .slide__cases { grid-column: 1; }
  /* the industrial rules are more specific than the plain .slide__ ones, so they
     must be reset by name — otherwise the device keeps its desktop
     `grid-row: 1 / span 2` and sits on top of the copy and the button */
  .slide__device,
  .carousel--industrial .slide__device { grid-row: 1; }
  .slide__text,
  .carousel--industrial .slide__text   { grid-row: 2; }
  .slide__cases,
  .carousel--industrial .slide__cases  { grid-row: 3; }
  .slide__title { font-size: 28px; }
  .slide__body { font-size: 16px; max-width: none; }
  .slide__device img { max-width: min(460px, 100%); }
  .slide { min-height: 0; }

  /* the slide photo is a full-bleed background; at phone widths it scales up and
     the machinery ends up sitting behind the body copy. Fade it right back. */
  .slide__bg { opacity: .28; }

  /* controls move into normal flow so they can't land on the thumbnails */
  .carousel__ui,
  .carousel--industrial .carousel__ui {
    position: static;
    justify-content: center;
    padding-bottom: 34px;
  }
  .carousel__bar {
    width: 100%;
    max-width: 420px;
    padding-top: 22px;
    margin-top: 4px;
  }

  .stats__grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .stats__item:nth-child(3) { border-right: none; }
  .stats__value { font-size: 32px; }

  .tech__row,
  .about__row {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-left: 0;
    padding-right: 0;
  }
  .tech__row--reverse .tech__media,
  .tech__row--reverse .tech__text,
  .about__row--reverse .about__img,
  .about__row--reverse .about__text { order: initial; }
  .tech__title, .about__title, .certs__heading, .quote__title { font-size: 26px; }
  .about__text { padding: 34px 30px 44px; }

  .partners__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .global__grid { grid-template-columns: repeat(3, 1fr); }
  .certs__captions { grid-template-columns: repeat(2, 1fr); }

  .quote { grid-template-columns: 1fr; gap: 34px; }
  .funnel { padding: 30px 26px 26px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }

  .hero { min-height: 560px; }
  .hero__logo { width: 180px; margin-bottom: 36px; }
  .hero__title { font-size: 30px; }
  .hero__title br { display: none; }
  .hero__points li { font-size: 16px; }
  .btn { font-size: 17px; padding: 16px 26px; }

  .slide__title { font-size: 24px; }
  .slide__body { font-size: 15.5px; line-height: 1.7; }
  .slide__cases { gap: 8px; }
  .slide__inner { row-gap: 22px; }
  .carousel__arrow { width: 44px; height: 44px; }
  .carousel__dots { gap: 8px; }
  .carousel__bar { max-width: 100%; }

  /* the desktop rhythm is far too airy once everything is stacked */
  .stats { padding: 52px 0 56px; }
  .stats__grid { margin-top: 34px; }
  .howitworks { padding: 48px 0 52px; }
  .tech { padding: 40px 0 48px; }
  .tech__row { padding: 18px 0; }
  .about { padding: 48px 0 56px; }
  .about__panel { margin-top: 32px; }
  .certs { padding: 48px 0 44px; }
  .certs__img { margin-top: 28px; }
  .partners { padding: 48px 0 52px; }
  .partners__grid { margin-top: 30px; }
  .global { padding: 48px 0 52px; }
  .global__grid { margin-top: 30px; }
  .serving { padding-top: 48px; }
  .serving__head { padding-bottom: 38px; }
  .quote { padding-top: 38px; padding-bottom: 52px; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item { border-right: none; }
  .stats__value { font-size: 28px; }
  .stats__label { font-size: 14px; }

  /* too tight to pin captions to the diagram on a phone — stack them instead */
  .howitworks__captions { height: auto; font-size: 15px; text-align: center; }
  .howitworks__captions li {
    position: static;
    transform: none;
    white-space: normal;
    margin-top: 10px;
  }
  .howitworks__captions li br { display: none; }

  .partners__grid { grid-template-columns: repeat(2, 1fr); }
  .partners__grid li { height: 96px; }
  .global__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .certs__captions { grid-template-columns: 1fr; }

  .serving__pills li { font-size: 14px; padding: 7px 14px; }
  .funnel__contact { grid-template-columns: 1fr; }

  .sitefooter__inner { flex-direction: column; text-align: center; }
  .sitefooter img { width: 180px; }
}
