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

:root {
  --red:    #fd0000;
  --red2:   #c50000;
  --white:  #ffffff;
  --cream:  #f0ede8;
  --ink:    #1a1410;
  --muted:  #7a6f65;
  --border: rgba(0,0,0,0.08);
  --font:   'Mona Sans', sans-serif;
  --ease:   cubic-bezier(0.76, 0, 0.24, 1);
  --ease2:  cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}


#cew-lab-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ink);
}

.cew-lab-hero-bg {
  position: absolute; inset: 0;
  background-image: url('../assets/lab-services-3a7160650792.png');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: cew-hero-zoom 8s ease-out forwards;
}
@keyframes cew-hero-zoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}
.cew-lab-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,8,6,0.75) 0%, rgba(10,8,6,0.55) 100%);
}


.cew-lab-hero-overlay::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--red) 0%, transparent 100%);
}

.cew-lab-hero-content {
  position: relative; z-index: 1;
  text-align: center;
  padding: 80px 32px;
  max-width: 680px;
}

.cew-lab-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  opacity: 0;
  animation: cew-fade-up 0.7s 0.2s var(--ease2) forwards;
}
.cew-lab-hero-eyebrow::before {
  content: '';
  width: 24px; height: 1.5px;
  background: var(--red);
}
.cew-lab-hero-eyebrow::after {
  content: '';
  width: 24px; height: 1.5px;
  background: var(--red);
}

.cew-lab-hero-title {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 18px;
  opacity: 0;
  animation: cew-fade-up 0.7s 0.32s var(--ease2) forwards;
}
.cew-lab-hero-title span { color: var(--red); }

.cew-lab-hero-desc {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 0;
  opacity: 0;
  animation: cew-fade-up 0.7s 0.44s var(--ease2) forwards;
  max-width: 620px;
}

@keyframes cew-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}


#cew-lab-intro {
  background: var(--white);
  padding: 88px 0 92px;
  position: relative;
  overflow: hidden;
}

#cew-lab-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.cew-lab-intro-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cew-lab-intro-left {}

.cew-lab-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.cew-lab-eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.cew-lab-intro-title {
  font-size: 52px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.cew-lab-intro-title span { color: var(--red); }

.cew-lab-intro-text {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.cew-lab-intro-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border-radius: 7px;
  overflow: hidden;
  margin-top: 12px;
  transition: transform 0.2s;
}
.cew-lab-intro-btn:hover { transform: scale(1.02); }
.cew-lab-intro-btn span { padding: 12px 20px; background: var(--ink); color: var(--white); }
.cew-lab-intro-btn i { padding: 12px 14px; background: var(--red); color: var(--white); display: flex; align-items: center; justify-content: center; }
.cew-lab-intro-btn i svg { width: 13px; height: 13px; }

.cew-lab-intro-right {
  position: relative;
}

.cew-lab-intro-img {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}
.cew-lab-intro-img img {
  width: 100%; height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}
.cew-lab-intro-img:hover img { transform: scale(1.04); }


.cew-lab-intro-img::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  border-top: 52px solid var(--red);
  border-right: 52px solid transparent;
  z-index: 1;
  opacity: 0.7;
}


.cew-lab-intro-badge {
  position: absolute;
  bottom: -20px; left: -20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.cew-lab-intro-badge-icon {
  width: 38px; height: 38px;
  background: rgba(253,0,0,0.07);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cew-lab-intro-badge-icon svg { width: 18px; height: 18px; color: var(--red); }
.cew-lab-intro-badge-text {}
.cew-lab-intro-badge-num {
  font-size: 20px; font-weight: 900; color: var(--ink);
  letter-spacing: -0.05em; line-height: 1; display: block;
}
.cew-lab-intro-badge-lbl {
  font-size: 11px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.04em; display: block; margin-top: 2px;
}


#cew-lab-equipment {
  background: var(--cream);
  padding: 88px 0 100px;
  position: relative;
}

.cew-lab-eq-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 56px;
}


.cew-lab-eq-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 32px;
}
.cew-lab-eq-hd-right {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  max-width: 320px;
  text-align: right;
  line-height: 1.6;
}


.cew-lab-eq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}


.cew-lab-eq-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.35s var(--ease2), transform 0.35s var(--ease2), border-color 0.35s;
  
  opacity: 0;
  transform: translateY(28px);
}
.cew-lab-eq-card.cew-in {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.6s var(--ease2),
    transform 0.6s var(--ease2),
    box-shadow 0.35s var(--ease2),
    border-color 0.35s;
}
.cew-lab-eq-card:nth-child(1)  { transition-delay: 0.04s; }
.cew-lab-eq-card:nth-child(2)  { transition-delay: 0.10s; }
.cew-lab-eq-card:nth-child(3)  { transition-delay: 0.16s; }
.cew-lab-eq-card:nth-child(4)  { transition-delay: 0.04s; }
.cew-lab-eq-card:nth-child(5)  { transition-delay: 0.10s; }
.cew-lab-eq-card:nth-child(6)  { transition-delay: 0.16s; }
.cew-lab-eq-card:nth-child(7)  { transition-delay: 0.04s; }
.cew-lab-eq-card:nth-child(8)  { transition-delay: 0.10s; }
.cew-lab-eq-card:nth-child(9)  { transition-delay: 0.16s; }
.cew-lab-eq-card:nth-child(10) { transition-delay: 0.04s; }
.cew-lab-eq-card:nth-child(11) { transition-delay: 0.10s; }
.cew-lab-eq-card:nth-child(12) { transition-delay: 0.16s; }

.cew-lab-eq-card:hover {
  box-shadow: 0 20px 56px rgba(0,0,0,0.10);
  transform: translateY(-5px);
  border-color: rgba(253,0,0,0.18);
}


.cew-lab-eq-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0ede8;
}
.cew-lab-eq-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s var(--ease);
}
.cew-lab-eq-card:hover .cew-lab-eq-img img { transform: scale(1.06); }


.cew-lab-eq-img::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; right: 50%;
  height: 2.5px;
  background: var(--red);
  transition: left 0.4s var(--ease2), right 0.4s var(--ease2);
  z-index: 2;
}
.cew-lab-eq-card:hover .cew-lab-eq-img::before { left: 0; right: 0; }


.cew-lab-eq-namebar {
  background: var(--ink);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cew-lab-eq-num {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.cew-lab-eq-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.25;
  flex: 1;
}
.cew-lab-eq-namebar-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: cew-blink 2.5s ease-in-out infinite;
}
@keyframes cew-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.3; }
}


.cew-lab-eq-body {
  padding: 16px 18px 20px;
}

.cew-lab-eq-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cew-lab-eq-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
}
.cew-lab-eq-features li::before {
  content: '';
  display: block;
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("../assets/icon-1bf3865d3ea6.svg");
  background-size: contain;
  background-repeat: no-repeat;
}


#cew-lab-cta {
  background: var(--ink);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
#cew-lab-cta::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253,0,0,0.12), transparent 70%);
  bottom: -200px; right: -100px;
  pointer-events: none;
}
#cew-lab-cta::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red) 0%, rgba(253,0,0,0.3) 60%, transparent 100%);
}

.cew-lab-cta-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.cew-lab-cta-left {}
.cew-lab-cta-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
  display: block;
}
.cew-lab-cta-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.cew-lab-cta-title span { color: var(--red); }

.cew-lab-cta-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.cew-lab-cta-note {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}

.cew-lab-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
  box-shadow: 0 8px 32px rgba(253,0,0,0.3);
}
.cew-lab-cta-btn:hover { transform: translateY(-2px); }
.cew-lab-cta-btn span { padding: 14px 24px; background: var(--red); color: var(--white); }
.cew-lab-cta-btn i { padding: 14px 16px; background: var(--red2); color: var(--white); display: flex; align-items: center; justify-content: center; }
.cew-lab-cta-btn i svg { width: 13px; height: 13px; }


@media (max-width: 1024px) {
  .cew-lab-eq-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .cew-lab-intro-inner { grid-template-columns: 1fr; gap: 40px; }
  .cew-lab-intro-badge { left: 12px; bottom: 12px; }
  .cew-lab-eq-inner, .cew-lab-intro-inner, .cew-lab-cta-inner { padding: 0 22px; }
  .cew-lab-eq-hd { flex-direction: column; align-items: flex-start; }
  .cew-lab-eq-hd-right { text-align: left; }
  .cew-lab-cta-inner { flex-direction: column; align-items: flex-start; }
  .cew-lab-cta-right { align-items: flex-start; }
  .cew-lab-intro-title { font-size: 38px; }
  #cew-lab-intro, #cew-lab-equipment { padding: 60px 0 68px; }
}
@media (max-width: 540px) {
  .cew-lab-eq-grid { grid-template-columns: 1fr; }
}
