/* Case Study 02 — Construction Safety (predictive-page pattern, sky-blue accent) */

.cs02-page {
  background: #fff;
  color: #0f172a;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cs02-page .page-main {
  background: #fff;
}

.cs02-kicker {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00b8f1;
}

/* ── 1. Banner — blend art like case-studies listing ── */
.cs02-hero {
  position: relative;
  overflow: hidden;
  padding: 3.75rem 0 2.75rem;
  background:
    radial-gradient(ellipse 48% 62% at 92% 30%, rgba(244, 245, 250, 0.9), transparent 68%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 78%, #ffffff 100%);
}

.cs02-hero__dots {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(34%, 22rem);
  height: 42%;
  background-image: radial-gradient(#94a3b8 1.15px, transparent 1.35px);
  background-size: 13px 13px;
  opacity: 0.35;
  pointer-events: none;
}

.cs02-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .cs02-hero__inner {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 1.25rem;
    min-height: 28rem;
  }
}

.cs02-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 36rem;
}

.cs02-hero__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  color: #64748b;
}

.cs02-hero__crumb a {
  color: #0284c7;
  text-decoration: none;
}

.cs02-hero__crumb a:hover {
  text-decoration: underline;
}

.cs02-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}

.cs02-hero__meta li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9375rem;
  color: #334155;
}

.cs02-hero__meta strong {
  color: #0f172a;
  font-weight: 700;
}

.cs02-hero__meta-icon {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  color: #00b8f1;
  flex-shrink: 0;
}

.cs02-hero__meta-icon .icon-lucide {
  width: 1.15rem;
  height: 1.15rem;
}

.cs02-hero__title {
  margin: 0;
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.cs02-hero__title strong {
  font-weight: 800;
}

.cs02-hero__title span {
  color: #00b8f1;
  font-weight: 600;
}

.cs02-hero__rule {
  width: 4.25rem;
  height: 0.38rem;
  margin: 1.15rem 0 1.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #00b8f1, #d9f1fb);
}

.cs02-hero__lead {
  margin: 0;
  max-width: 30rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #64748b;
}

.cs02-hero__art {
  position: relative;
  min-height: 16rem;
}

.cs02-hero__art img {
  display: block;
  width: 100%;
  max-width: 48rem;
  height: auto;
  margin: 0 auto;
  pointer-events: none;
  user-select: none;
  background: transparent;
  -webkit-mask-image: radial-gradient(ellipse 92% 88% at 54% 48%, #000 38%, rgba(0, 0, 0, 0.55) 68%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 88% at 54% 48%, #000 38%, rgba(0, 0, 0, 0.55) 68%, transparent 100%);
}

@media (max-width: 991.98px) {
  .cs02-hero__art {
    min-height: 12rem;
  }
}

/* ── 2. Incident intelligence (HTML layout) ── */
.cs02-incident {
  position: relative;
  padding: 3rem 0 3.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.cs02-incident__head {
  margin-bottom: 1.75rem;
}

.cs02-incident__head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cs02-incident__badge {
  flex-shrink: 0;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00b8f1;
}

.cs02-incident__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #0f172a;
}

.cs02-incident__title span {
  color: #00b8f1;
}

.cs02-incident__lead {
  margin: 0;
  font-size: 0.98rem;
  color: #64748b;
}

.cs02-incident__layout {
  display: grid;
  gap: 1.15rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

@media (min-width: 1100px) {
  .cs02-incident__layout {
    grid-template-columns: minmax(15rem, 0.95fr) minmax(0, 1.15fr) minmax(14rem, 0.9fr);
    gap: 1.1rem;
    align-items: center;
  }
}

.cs02-incident__left {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.cs02-card {
  padding: 1.15rem 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.15rem;
  box-shadow: 0 10px 28px -18px rgba(15, 23, 42, 0.16);
}

.cs02-card h3 {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
}

.cs02-card--problem h3 {
  color: #ef4444;
}

.cs02-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
}

.cs02-incident__devices {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 14rem;
}

.cs02-incident__devices img {
  display: block;
  width: 100%;
  max-width: 32rem;
  height: auto;
  margin: 0 auto;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 92% 90% at 50% 50%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 90% at 50% 50%, #000 58%, transparent 100%);
}

.cs02-caps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cs02-caps li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.cs02-caps__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.15rem;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  color: #2563eb;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  line-height: 0;
}

.cs02-caps__icon > span,
.cs02-caps__icon .icon-lucide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
  color: inherit;
}

.cs02-caps__icon .icon-lucide,
.cs02-caps__icon svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.cs02-caps strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.1rem;
}

.cs02-caps li > div > span {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
}

.cs02-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.35rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  box-shadow: 0 10px 28px -18px rgba(15, 23, 42, 0.16);
}

.cs02-flow__step {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.cs02-flow__step strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.cs02-flow__step > div > span {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
}

.cs02-flow__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
  line-height: 0;
}

.cs02-flow__icon > span,
.cs02-flow__icon .icon-lucide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
  color: inherit;
}

.cs02-flow__icon .icon-lucide,
.cs02-flow__icon svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.cs02-flow__icon--blue { background: #2563eb; }
.cs02-flow__icon--purple { background: #7c3aed; }
.cs02-flow__icon--cyan { background: #0ea5e9; }
.cs02-flow__icon--red { background: #ef4444; }
.cs02-flow__icon--green { background: #16a34a; }

.cs02-flow__arrow {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: auto;
  height: auto;
  border: none;
  position: relative;
}

.cs02-flow__arrow::before {
  content: "";
  width: 1.65rem;
  border-top: 2px dotted #94a3b8;
}

.cs02-flow__arrow::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: -1px;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent #64748b;
}

@media (max-width: 767.98px) {
  .cs02-flow {
    border-radius: 1.25rem;
    justify-content: flex-start;
  }
}

.cs02-footbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.75rem;
  padding: 1rem 1.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
}

.cs02-footbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 16.5rem;
}

.cs02-footbar__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.7rem;
  color: #fff;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  flex-shrink: 0;
  line-height: 0;
}

.cs02-footbar__chip > span,
.cs02-footbar__chip .icon-lucide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
  color: inherit;
}

.cs02-footbar__chip svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.cs02-footbar__brand strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.cs02-footbar__brand div > span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: #64748b;
}

.cs02-footbar__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs02-footbar__stats li {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.cs02-footbar__stats strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
}

.cs02-footbar__stats li > div > span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: #64748b;
}

.cs02-footbar__stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.55rem;
  flex-shrink: 0;
  line-height: 0;
}

.cs02-footbar__stat-icon > span,
.cs02-footbar__stat-icon .icon-lucide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
  color: inherit;
}

.cs02-footbar__stat-icon svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.cs02-footbar__stat-icon--blue {
  color: #2563eb;
  background: #eff6ff;
}

.cs02-footbar__stat-icon--green {
  color: #16a34a;
  background: #ecfdf3;
}

.cs02-footbar__stat-icon--purple {
  color: #7c3aed;
  background: #f5f3ff;
}

.cs02-footbar__tag {
  margin: 0;
  max-width: none;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  text-align: right;
}

.cs02-footbar__tag span {
  display: block;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .cs02-footbar__tag {
    text-align: left;
    max-width: none;
  }
}

/* ── 3. Impact ── */
.cs02-impact {
  padding: 2.75rem 0 3.5rem;
  background: #fff;
}

.cs02-impact__head {
  margin-bottom: 1.75rem;
}

.cs02-impact__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #0f172a;
}

.cs02-impact__title span {
  color: #00b8f1;
}

.cs02-impact__lead {
  margin: 0;
  font-size: 0.98rem;
  color: #64748b;
}

.cs02-impact__badge {
  flex-shrink: 0;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00b8f1;
}

.cs02-impact__layout {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 1100px) {
  .cs02-impact__layout {
    grid-template-columns: minmax(15rem, 0.9fr) minmax(18rem, 1.2fr) minmax(15rem, 0.9fr);
    gap: 1.25rem 1.35rem;
  }
}

.cs02-board {
  padding: 1.15rem 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.15rem;
  box-shadow: 0 10px 28px -18px rgba(15, 23, 42, 0.16);
}

.cs02-board__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
}

.cs02-board__head-icon,
.cs02-board__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  color: #2563eb;
  background: #eff6ff;
  line-height: 0;
}

.cs02-board__head-icon {
  width: 2.15rem;
  height: 2.15rem;
}

.cs02-board__icon {
  width: 2rem;
  height: 2rem;
  margin-top: 0.1rem;
}

.cs02-board__head-icon > span,
.cs02-board__icon > span,
.cs02-board__head-icon .icon-lucide,
.cs02-board__icon .icon-lucide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
  color: inherit;
}

.cs02-board__head-icon .icon-lucide,
.cs02-board__head-icon svg,
.cs02-board__icon .icon-lucide,
.cs02-board__icon svg {
  display: block;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.cs02-board__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cs02-board__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.cs02-board__list strong {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.cs02-board__list li > div > span {
  display: block;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
}

.cs02-impact__monitor {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs02-impact__monitor img {
  display: block;
  width: 100%;
  max-width: 36rem;
  height: auto;
  margin: 0 auto;
  background: transparent;
}

/* ── 4. CTA ── */
.cs02-cta {
  padding: 0 0 4rem;
  background: #fff;
}

.cs02-cta__card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: 2.15rem 1.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(56, 189, 248, 0.16), transparent 58%),
    linear-gradient(135deg, #f0f9ff 0%, #ffffff 48%, #eef6ff 100%);
  box-shadow: 0 10px 28px -18px rgba(15, 23, 42, 0.18);
}

@media (min-width: 768px) {
  .cs02-cta__card {
    padding: 2.5rem 2.65rem;
  }
}

.cs02-cta__glow {
  position: absolute;
  top: -5rem;
  right: -4rem;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  opacity: 0.16;
  filter: blur(48px);
  pointer-events: none;
}

.cs02-cta__copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.cs02-cta__copy h2 {
  margin: 0.45rem 0 0.55rem;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.cs02-cta__copy h2 span {
  color: #00b8f1;
}

.cs02-cta__copy p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #64748b;
}

.cs02-cta__card .btn-brand {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ── Responsive ── */
.cs02-page,
.cs02-page .page-main {
  overflow-x: clip;
}

.cs02-page .container-xl {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.cs02-hero__art img,
.cs02-incident__devices img,
.cs02-impact__monitor img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1099.98px) {
  .cs02-impact__layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cs02-impact__monitor {
    order: -1;
  }

  .cs02-impact__monitor img {
    max-width: min(100%, 34rem);
  }

  .cs02-incident__layout {
    grid-template-columns: 1fr;
  }

  .cs02-incident__devices {
    order: -1;
  }
}

@media (min-width: 768px) and (max-width: 1099.98px) {
  .cs02-impact__layout {
    grid-template-columns: 1fr 1fr;
  }

  .cs02-impact__monitor {
    grid-column: 1 / -1;
    order: 0;
  }

  .cs02-incident__layout {
    grid-template-columns: 1fr 1fr;
  }

  .cs02-incident__devices {
    grid-column: 1 / -1;
    order: 0;
  }
}

@media (max-width: 991.98px) {
  .cs02-hero {
    padding: 2.75rem 0 1.75rem;
  }

  .cs02-hero__inner {
    gap: 1.25rem;
  }

  .cs02-hero__copy {
    max-width: none;
  }

  .cs02-hero__title {
    font-size: clamp(1.75rem, 6.5vw, 2.4rem);
  }

  .cs02-hero__lead {
    max-width: none;
    font-size: 0.95rem;
  }

  .cs02-hero__art {
    min-height: 0;
    margin: 0 auto;
    width: 100%;
  }

  .cs02-hero__art img {
    max-width: min(100%, 28rem);
  }

  .cs02-hero__dots {
    width: min(55%, 16rem);
    height: 36%;
    opacity: 0.28;
  }

  .cs02-incident,
  .cs02-impact {
    padding: 2.25rem 0 2.5rem;
  }

  .cs02-incident__title,
  .cs02-impact__title {
    font-size: clamp(1.4rem, 5vw, 1.9rem);
  }
}

@media (max-width: 767.98px) {
  .cs02-page .container-xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cs02-hero {
    padding: 2.25rem 0 1.35rem;
  }

  .cs02-hero__meta {
    margin-bottom: 1.15rem;
  }

  .cs02-hero__meta li {
    font-size: 0.875rem;
    align-items: flex-start;
  }

  .cs02-hero__rule {
    margin: 0.9rem 0 1rem;
  }

  .cs02-flow {
    flex-direction: column;
    align-items: stretch;
    border-radius: 1.15rem;
    gap: 0.85rem;
    padding: 1rem;
  }

  .cs02-flow__arrow {
    display: none;
  }

  .cs02-flow__step {
    width: 100%;
  }

  .cs02-footbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
    padding: 1rem 1.1rem;
  }

  .cs02-footbar__brand {
    max-width: none;
    width: 100%;
  }

  .cs02-footbar__stats {
    width: 100%;
    gap: 0.85rem 1.25rem;
  }

  .cs02-footbar__tag {
    text-align: left;
    max-width: none;
  }

  .cs02-cta {
    padding: 0 0 2.75rem;
  }

  .cs02-cta__card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
    gap: 1.15rem;
  }

  .cs02-cta__card .btn-brand {
    width: 100%;
  }

  .cs02-board__list {
    gap: 0.75rem;
  }

  .cs02-caps li,
  .cs02-board__list li {
    gap: 0.6rem;
  }
}

@media (max-width: 575.98px) {
  .cs02-hero__title {
    font-size: clamp(1.55rem, 7.2vw, 1.9rem);
  }

  .cs02-hero__art img {
    max-width: 100%;
  }

  .cs02-footbar__stats {
    flex-direction: column;
    align-items: flex-start;
  }

  .cs02-card {
    padding: 1rem;
  }
}
