/* work.css — Work/portfolio page styles */

.work-hero {
  padding: clamp(96px, 12vh, 144px) 0 clamp(44px, 6vh, 72px);
  border-bottom: 1px solid var(--border);
}

.work-hero .lead {
  max-width: 720px;
  font-size: clamp(18px, 1.6vw, 20px);
}

.work-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Transformation cards */
.transformations-grid {
  display: grid;
  gap: 18px;
}

.transformation-card {
  position: relative;
  display: grid;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 18px 18px 32px;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.transformation-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.18);
  background: var(--soft);
  box-shadow: 0 28px 80px rgba(0,0,0,0.3);
}

.client-identity {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0d0e12;
}

.client-identity::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 48%, black 26%, transparent 68%);
  opacity: 0;
  transition: opacity 320ms ease;
}

.transformation-card:hover .client-identity::before { opacity: 1; }

.client-identity::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, transparent 20%, rgba(0,0,0,0.36) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 34%);
  pointer-events: none;
}

.client-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 320ms ease, transform 320ms ease, filter 320ms ease;
  filter: saturate(0.7);
}

.transformation-card:hover .client-backdrop {
  opacity: 0.65;
  transform: scale(1.035);
  filter: saturate(0.85);
}

.client-logo {
  position: relative;
  z-index: 1;
  max-width: 180px;
  max-height: 52px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 220ms ease, transform 220ms ease;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}

.client-logo.is-square { max-width: 62px; max-height: 62px; }
.transformation-card:hover .client-logo { opacity: 1; transform: scale(1.035); }

.work-content { padding: 0 8px; }

.work-content .eyebrow,
.work-content .industry {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  display: block;
}

.work-content h3 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.06;
  margin-bottom: 14px;
}

.work-content p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.capabilities span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 200ms ease;
}

.work-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform 220ms ease;
}

.transformation-card:hover .work-link svg { transform: translateX(5px); }

/* Principles */
.principles {
  display: grid;
  gap: 18px;
}

.principle-card {
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  padding: 28px;
}

.principle-card strong {
  display: block;
  margin-bottom: 14px;
  font-size: 20px;
}

.principle-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* CTA section */
.work-cta-section {
  border-top: 1px solid var(--border);
}

.work-cta-section .lead {
  max-width: 560px;
}

/* Responsive */
@media (max-width: 719px) {
  .work-hero { min-height: auto; padding: 48px 0 44px; }
  .section { padding: 48px 0; }
  .transformation-card { gap: 18px; padding: 16px 16px 30px; }
  .client-identity { min-height: clamp(120px, 34vw, 160px); padding: 10px 14px; }
  .client-identity::before { background-size: 26px 26px; mask-image: radial-gradient(ellipse at 50% 48%, black 28%, transparent 72%); }
  .client-logo { max-width: 140px; max-height: 44px; }
  .client-logo.is-square { max-width: 50px; max-height: 50px; }
  .container { width: min(100% - 32px, 1320px); }
}

@media (min-width: 720px) {
  .transformations-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .transformation-card { grid-column: span 3; }
  .transformation-card.is-wide { grid-column: span 4; }
  .transformation-card.is-compact { grid-column: span 2; }
  .transformation-card { min-height: 480px; align-content: space-between; }
  .client-identity { min-height: 200px; }
  .principles { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 980px) {
  .section { padding: 84px 0; }
  .section-head { grid-template-columns: 0.9fr 0.66fr; align-items: end; }
  .transformation-card { min-height: 540px; }
  .client-identity { min-height: 225px; }
}
