/* About Us — 06 Why Corewave */

.cw-about-why {
  background: #f3efe7;
  color: #141210;
  font-family: 'Inter', system-ui, sans-serif;
  padding: clamp(64px, 8vw, 110px) clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}

.cw-about-why__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.cw-about-why__intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 24px;
  align-items: end;
}

.cw-about-why__eyebrow {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #e0431c;
}

.cw-about-why__title {
  margin: 12px 0 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.cw-about-why__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  color: #e0431c;
}

.cw-about-why__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #3a3530;
  max-width: 480px;
}

.cw-about-why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}

.cw-about-why__pillar {
  position: relative;
  overflow: hidden;
  border: 1px solid #d8d0c2;
  border-radius: 24px;
  padding: 26px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
  color: #141210;
  transform: perspective(800px) rotateX(var(--cw-about-why-rx, 0deg)) rotateY(var(--cw-about-why-ry, 0deg))
    translateY(var(--cw-about-why-y, 0px));
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.15s ease;
}

.cw-about-why__pillar:focus-visible {
  outline: 2px solid #e0431c;
  outline-offset: 3px;
}

.cw-about-why__pillar.is-hover {
  background: #141210;
  color: #f3efe7;
  border-color: #141210;
  --cw-about-why-y: -4px;
}

.cw-about-why__pillar-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    260px circle at var(--cw-about-why-gx, 50%) var(--cw-about-why-gy, 50%),
    rgba(212, 245, 60, var(--cw-about-why-ga, 0)),
    transparent 60%
  );
  pointer-events: none;
}

.cw-about-why__pillar-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cw-about-why__pillar-no {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #e0431c;
  transition: color 0.3s ease;
}

.cw-about-why__pillar.is-hover .cw-about-why__pillar-no {
  color: #d4f53c;
}

.cw-about-why__pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e4ddd0;
  color: #141210;
  display: grid;
  place-items: center;
  font-size: 17px;
  transform: rotate(var(--cw-about-why-rot, 0deg));
  transition: transform 0.3s ease, background 0.3s ease;
}

.cw-about-why__pillar.is-hover .cw-about-why__pillar-icon {
  background: #d4f53c;
  --cw-about-why-rot: 45deg;
}

.cw-about-why__pillar-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cw-about-why__pillar-title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.cw-about-why__pillar-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  opacity: 0.78;
}

@media (prefers-reduced-motion: reduce) {
  .cw-about-why__pillar,
  .cw-about-why__pillar-icon {
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    transform: none;
  }
}
