/* What We Do — The Tarmak Framework (T·I·I·C) */

@media (prefers-reduced-motion: reduce) {
  .wwd-item .wwd-icon::before,
  .wwd-stagger-item,
  .wwd-fade {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .wwd-label__dot {
    animation: none !important;
  }
}

.wwd-section {
  background-color: #014d33;
  background-image: url('assets/hero/slide-1-lab.jpg');
  background-repeat: no-repeat;
  background-position: right -20px bottom -10px;
  background-size: 320px auto;
  padding: 120px 0;
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}

.wwd-section > .wwd-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.wwd-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(1, 45, 30, 0.98) 0%,
    rgba(1, 77, 51, 0.95) 48%,
    rgba(1, 102, 68, 0.88) 100%
  );
  pointer-events: none;
}

.wwd-section::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, black 0%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 70%, transparent 100%);
  pointer-events: none;
}

.wwd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  width: 100%;
  min-width: 0;
}

@media (min-width: 992px) {
  .wwd-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 4rem;
  }
}

.wwd-content {
  width: 100%;
  max-width: 100%;
  padding-right: 0;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (min-width: 992px) {
  .wwd-content {
    padding-right: 1rem;
  }
}

.wwd-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  max-width: 100%;
  white-space: normal;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  border: 1px solid rgba(247, 175, 40, 0.4);
  background: rgba(1, 102, 68, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wwd-label__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f7af28;
  box-shadow: 0 0 10px rgba(247, 175, 40, 0.75);
  animation: wwd-pulse 2.4s ease-in-out infinite;
}

@keyframes wwd-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.88); }
}

.wwd-title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  line-height: 1.15;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  overflow-wrap: break-word;
}

.wwd-lead {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
  max-width: min(34rem, 100%);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.wwd-standards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
  width: 100%;
  max-width: 100%;
}

.wwd-standards span {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.wwd-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #251a00;
  background: #f7af28;
  padding: 1rem 2rem;
  box-shadow: 0 8px 28px rgba(247, 175, 40, 0.28);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, gap 0.3s ease;
}

.wwd-cta .material-symbols-outlined {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.wwd-cta:hover {
  background: #ffdf94;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(247, 175, 40, 0.38);
  gap: 0.75rem;
}

.wwd-cta:hover .material-symbols-outlined {
  transform: translateX(3px);
}

.wwd-counter {
  width: 100%;
  max-width: 100%;
  margin-top: 2.5rem;
  box-sizing: border-box;
}

.wwd-counter-panel {
  position: relative;
  padding: 1.5rem 1.5rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid #f7af28;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.wwd-counter__num {
  display: block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(3.25rem, 7vw, 4.5rem);
  line-height: 1;
  font-weight: 700;
  color: #f7af28;
  letter-spacing: -0.03em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.wwd-counter__title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.wwd-counter__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.wwd-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.wwd-item {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0;
  padding: 1.75rem 1.5rem;
  transition: background 0.35s ease, border-color 0.35s ease;
  border-left: 3px solid transparent;
  min-width: 0;
}

.wwd-item:last-child {
  border-bottom: none;
}

.wwd-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: #f7af28;
}

.wwd-icon {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f7af28;
  border-radius: 50%;
  margin-right: 0;
  box-shadow: 0 6px 20px rgba(247, 175, 40, 0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.wwd-item:hover .wwd-icon {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(247, 175, 40, 0.35);
}

.wwd-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #ffffff;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s ease-in-out;
  z-index: 0;
}

.wwd-item:hover .wwd-icon::before {
  transform: scale(1);
}

.wwd-icon .material-symbols-outlined {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  color: #251a00;
  transition: color 0.35s ease;
}

.wwd-item:hover .wwd-icon .material-symbols-outlined {
  color: #016644;
}

.wwd-item__content {
  flex: 1;
  min-width: 0;
}

.wwd-item__content h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.625rem;
}

.wwd-item__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding: 0 0.25rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #014d33;
  background: #f7af28;
  flex-shrink: 0;
}

.wwd-item__content p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

@media (max-width: 991px) {
  .wwd-section {
    background-size: 160px auto;
    background-position: right -30px bottom 0;
    padding: 72px 0;
    overflow-x: clip;
  }

  .wwd-grid {
    gap: 2rem;
  }

  .wwd-counter {
    margin-top: 2rem;
  }

  .wwd-item {
    padding: 1.25rem 1rem;
  }

  .wwd-icon {
    width: 44px;
    height: 44px;
  }

  .wwd-icon .material-symbols-outlined {
    font-size: 1.35rem;
  }

  .wwd-item__content h3 {
    font-size: 1.125rem;
  }

  .wwd-counter-panel {
    padding: 1.25rem 1.15rem 1.1rem;
  }

  .wwd-counter__num {
    font-size: clamp(2.75rem, 12vw, 3.5rem);
  }
}

@media (max-width: 639px) {
  .wwd-section {
    padding: 56px 0;
    background-size: 100px auto;
    background-position: right -40px bottom 0;
  }

  .wwd-grid {
    gap: 1.5rem;
  }

  .wwd-title {
    font-size: clamp(1.375rem, 6.5vw, 1.75rem);
    line-height: 1.2;
  }

  .wwd-standards {
    gap: 0.35rem;
    margin-bottom: 1.5rem;
  }

  .wwd-standards span {
    font-size: 0.5rem;
    padding: 0.3rem 0.5rem;
    letter-spacing: 0.06em;
  }

  .wwd-cta {
    width: 100%;
    max-width: 100%;
    padding: 0.9rem 1.25rem;
    box-sizing: border-box;
  }

  .wwd-label {
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.75rem 0.4rem 0.6rem;
    line-height: 1.35;
  }

  .wwd-counter-panel {
    padding: 1.15rem 1rem 1rem;
  }

  .wwd-counter__title {
    font-size: 1rem;
    overflow-wrap: break-word;
  }

  .wwd-item {
    gap: 0.75rem;
    padding: 1.15rem 0.9rem;
  }

  .wwd-icon {
    width: 40px;
    height: 40px;
  }

  .wwd-icon .material-symbols-outlined {
    font-size: 1.2rem;
  }
}
