:root {
  --hw-bg-1: #f5f5f5;
  --hw-bg-2: #e9e9e9;
  --hw-ink: #111111;
  --hw-muted: #6b6b6b;
  --hw-accent: #e24b37;
  --hw-card: #ffffff;
  --hw-border: #dcdcdc;
  --hw-shadow: rgba(17, 17, 17, 0.15);
}

.header-work {
  position: relative;
  background: transparent;
  color: var(--hw-ink);
  padding: 180px 0 160px;
  overflow: hidden;
}

.header-work .container {
  position: relative;
  z-index: 2;
}

.header-work .hw-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: 0;
}

.header-work .hw-badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--hw-border);
  background: rgba(255, 255, 255, 0.8);
}

.header-work .hw-title {
  margin: 16px 0 12px;
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.header-work .hw-subtitle {
  margin: 0 0 48px;
  max-width: 700px;
  color: #000000;
  font-size: 20px;
  line-height: 1.6;
}

.header-work .hw-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.header-work .hw-card {
  position: relative;
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  background: var(--hw-card);
  border: 1px solid var(--hw-border);
  box-shadow: 0 20px 40px -30px var(--hw-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 200px;
}

.header-work .hw-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(226, 75, 55, 0.12) 35%,
    rgba(226, 75, 55, 0.06) 55%,
    transparent 80%
  );
  transform: translateX(-60%);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.header-work .hw-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -30px var(--hw-shadow);
}

.header-work .hw-card:hover::before {
  transform: translateX(60%);
}

.header-work .hw-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.header-work .hw-card:hover h3 {
  color: var(--hw-accent);
}
.header-work .hw-card p {
  margin: 0 0 18px;
  color: var(--hw-muted);
  font-size: 14px;
  line-height: 1.55;
}

.header-work .hw-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 16px;
  margin-top: auto;
  color: var(--hw-accent);
}

.header-work .hw-cta-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: currentColor;
  transform-origin: left center;
  transition: width 0.25s ease, opacity 0.25s ease;
  opacity: 0.65;
}

.header-work .hw-cta-arrow {
  display: inline-block;
  position: relative;
  font-size: 14px;
  font-weight: 700;
  -webkit-text-stroke: 0.6px currentColor;
  text-shadow: 0 0 0 currentColor;
  line-height: 1;
  transform: translateX(0);
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0.65;
}

.header-work .hw-card:hover .hw-cta-line {
  width: 80px;
  opacity: 1;
}

.header-work .hw-card:hover .hw-cta-arrow {
  transform: translateX(6px) rotate(90deg);
  opacity: 1;
  animation: hw-cta-pulse 0.9s ease-in-out infinite;
}

@keyframes hw-cta-pulse {
  0% {
    transform: translateX(6px) rotate(90deg) scaleX(1);
  }
  70% {
    transform: translateX(6px) rotate(90deg) scaleX(2.4);
  }
  100% {
    transform: translateX(6px) rotate(90deg) scaleX(1);
  }
}

.header-work .hw-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 30px;
}

.header-work .hw-copy {
  max-width: 620px;
  text-align: left;
}

.header-work .hw-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 14px 38px;
  border: 1px solid #000000;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 15.6px;
  color: #ffffff;
  background: #000000;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-top: 22px;
  overflow: hidden;
}

.header-work .hw-button::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 35%,
    rgba(255, 255, 255, 0.1) 55%,
    transparent 80%
  );
  transform: translateX(-60%);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.header-work .hw-button:hover {
  background: #111111;
  transform: translateY(-2px);
}

.header-work .hw-button:hover::before {
  transform: translateX(60%);
}

.header-work .hw-cta-row {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.header-work .hw-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--hw-muted);
}

.header-work .hw-tiles {
  margin-top: 40px;
}

.header-work .hw-reveal {
  opacity: 0;
  transform: translateY(12px);
}

.header-work .hw-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (max-width: 1100px) {
  .header-work .hw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-work .hw-title {
    font-size: 36px;
  }

  .header-work .hw-row {
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .header-work {
    padding: 120px 0 100px;
  }

  .header-work .hw-grid {
    grid-template-columns: 1fr;
  }

  .header-work .hw-title {
    font-size: 30px;
  }
}
