:root {
  /* Design Mirror: McKinsey palette */
  --mmk-dark: #051c2c;
  --mmk-dark-2: #051c2c;
  --mmk-green: #051c2c;
  --mmk-green-soft: #005eb8;
  --mmk-gold: #2251ff;
  --mmk-cream: #f5f5f5;
  --mmk-paper: #ffffff;
  --mmk-white: #ffffff;
  --mmk-muted-light: rgba(255, 255, 255, 0.72);
  --mmk-muted-dark: #5e6e76;
  --mmk-line-light: rgba(255, 255, 255, 0.14);
  --mmk-line-gold: rgba(34, 81, 255, 0.32);
  --radius-xl: 0;
  --radius-lg: 0;
  --shadow-dark: 0 28px 90px rgba(5, 28, 44, 0.34);
  --shadow-gold: 0 18px 50px rgba(34, 81, 255, 0.12);
}

.work-page {
  background:
    radial-gradient(circle at top right, rgba(34, 81, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 10% 20%, rgba(18, 109, 72, 0.2), transparent 28rem),
    linear-gradient(180deg, #051c2c 0%, #051c2c 48%, #051c2c 100%);
  color: var(--mmk-white);
  overflow-x: hidden;
}

.work-page .container {
  width: min(1320px, calc(100% - 2rem));
  margin-inline: auto;
}

.work-page .brand-text strong {
  color: #101f1a !important;
}

.work-page .brand-text span {
  color: var(--mmk-green) !important;
}

.work-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.work-hero {
  min-height: min(760px, calc(100svh - 74px));
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  padding: clamp(4rem, 7vw, 6rem) 0 clamp(3.5rem, 6vw, 5rem);
}

.work-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 15, 0.94), rgba(7, 17, 15, 0.58)),
    radial-gradient(circle at 75% 20%, rgba(34, 81, 255, 0.16), transparent 24rem);
  z-index: -1;
}

.work-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(380px, 1.04fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.work-hero-copyblock {
  position: relative;
  z-index: 2;
}

.work-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  color: #5a82ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.work-eyebrow::before {
  content: "";
  width: 48px;
  height: 1px;
  flex: 0 0 48px;
  background: var(--mmk-gold);
}

.work-hero-title {
  max-width: 760px;
  margin: 1.1rem 0 1.5rem;
  color: #eef1f5;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: clamp(3.4rem, 7.4vw, 6.9rem);
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.work-hero-copy {
  max-width: 650px;
  color: var(--mmk-muted-light);
  font-size: clamp(1.08rem, 1.55vw, 1.35rem);
  line-height: 1.7;
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.work-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.work-btn:hover,
.work-btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.work-btn-primary {
  background: var(--mmk-gold);
  color: #10120f;
  box-shadow: 0 14px 34px rgba(34, 81, 255, 0.22);
}

.work-btn-primary:hover,
.work-btn-primary:focus-visible {
  background: #2251ff;
  box-shadow: 0 18px 44px rgba(34, 81, 255, 0.28);
}

.work-btn-secondary {
  color: #eef1f5;
  border: 1px solid var(--mmk-line-light);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.work-btn-secondary:hover,
.work-btn-secondary:focus-visible {
  border-color: var(--mmk-line-gold);
  background: rgba(255, 255, 255, 0.11);
}

.work-media-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(280px, 320px) minmax(160px, 190px);
  gap: 1rem;
  max-height: 520px;
}

.work-media-main {
  grid-column: 1 / -1;
}

.work-image-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-dark);
}

.work-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(7, 17, 15, 0.34));
  pointer-events: none;
}

.work-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 750ms ease, filter 750ms ease;
}

.work-image-frame:hover img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.03);
}

.work-section-head {
  max-width: 820px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.work-section-head h2 {
  margin: 0.8rem 0 0;
  color: #eef1f5;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.work-section-head p {
  max-width: 720px;
  margin: 1rem 0 0;
  color: var(--mmk-muted-light);
  font-size: 1.08rem;
  line-height: 1.7;
}

.work-domain-grid,
.work-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
  gap: 1rem;
}

.work-domain-card,
.work-evidence-card {
  height: 100%;
  border: 1px solid var(--mmk-line-light);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.work-domain-card {
  min-height: 230px;
  padding: clamp(1.15rem, 2vw, 1.55rem);
}

.work-evidence-card {
  min-height: 360px;
  padding: clamp(1.1rem, 1.8vw, 1.45rem);
}

.work-domain-card:hover,
.work-evidence-card:hover {
  transform: translateY(-5px);
  border-color: var(--mmk-line-gold);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
}

.work-pill {
  align-self: flex-start;
  border: 1px solid rgba(34, 81, 255, 0.36);
  border-radius: 999px;
  background: rgba(34, 81, 255, 0.12);
  color: #5a82ff;
  padding: 0.35rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-card-title {
  margin: 0;
  color: #eef1f5;
  font-size: 1.24rem;
  line-height: 1.25;
}

.work-evidence-card .work-card-title {
  min-height: 3.1rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.work-card-copy {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--mmk-muted-light);
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.work-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.58rem;
}

.work-meta-list li {
  display: -webkit-box;
  overflow: hidden;
  color: var(--mmk-muted-light);
  line-height: 1.48;
  font-size: 0.95rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.work-meta-list strong {
  color: #eef1f5;
}

.work-evidence-card .work-btn {
  align-self: flex-start;
  min-height: 42px;
  margin-top: auto;
  padding: 0.72rem 0.95rem;
  font-size: 0.92rem;
}

.work-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
  padding: 0.9rem;
  border: 1px solid var(--mmk-line-light);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.work-filter-bar input,
.work-filter-bar select {
  min-height: 42px;
  border: 1px solid var(--mmk-line-light);
  border-radius: 14px;
  padding: 0 1rem;
  color: #eef1f5;
  background: rgba(7, 17, 15, 0.74);
  outline: none;
  font-size: 0.95rem;
  color-scheme: dark;
}

.work-empty-state {
  margin: 1.25rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(34, 81, 255, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 253, 247, 0.82);
  font-weight: 750;
}

.work-filter-bar input {
  flex: 1 1 280px;
}

.work-filter-bar select {
  flex: 0 1 230px;
}

.work-filter-bar option {
  background: #051c2c;
  color: #eef1f5;
}

.work-filter-bar input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.work-filter-bar input:focus,
.work-filter-bar select:focus {
  border-color: var(--mmk-gold);
  box-shadow: 0 0 0 3px rgba(34, 81, 255, 0.2);
}

.work-result-count {
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.9rem;
  font-weight: 750;
}

.work-evidence-card[hidden] {
  display: none;
}

.work-process {
  background: var(--mmk-cream);
  color: var(--mmk-dark);
}

.work-process .work-eyebrow {
  color: #1a3fd9;
}

.work-process .work-section-head h2,
.work-process .work-process-card h3 {
  color: var(--mmk-dark);
}

.work-process .work-section-head p,
.work-process .work-process-card p {
  color: #4f5d57;
}

.work-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

.work-process-card {
  min-height: 230px;
  border: 1px solid rgba(5, 28, 44, 0.12);
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 1.3rem;
  box-shadow: 0 14px 38px rgba(5, 28, 44, 0.09);
}

.work-process-number {
  color: var(--mmk-gold);
  font-size: 2rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.work-process-card h3 {
  margin: 0.8rem 0 0.55rem;
  font-size: 1.12rem;
}

.work-process-card p {
  margin: 0;
  line-height: 1.6;
}

.work-capabilities {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.work-capabilities-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  border-block: 1px solid var(--mmk-line-gold);
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.work-capabilities-panel h2 {
  max-width: 520px;
  margin: 0.75rem 0 0;
  color: #eef1f5;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.work-capability-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.work-capability-list li {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 250, 240, 0.84);
  padding: 0.72rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.work-cta {
  border: 1px solid var(--mmk-line-gold);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(34, 81, 255, 0.2), transparent 22rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: var(--shadow-dark);
}

.work-cta h2 {
  max-width: 850px;
  margin: 0.8rem 0 1rem;
  color: #eef1f5;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.work-cta p {
  max-width: 720px;
  color: var(--mmk-muted-light);
  line-height: 1.7;
  font-size: 1.08rem;
}

.work-js [data-work-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.work-js [data-work-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .work-hero-title {
    font-size: clamp(3.2rem, 9vw, 5.7rem);
  }

  .work-media-collage {
    grid-template-rows: repeat(2, minmax(0, 220px));
  }
}

@media (max-width: 920px) {
  .work-hero {
    min-height: auto;
    padding: 4rem 0;
  }

  .work-hero-grid,
  .work-capabilities-panel {
    grid-template-columns: 1fr;
  }

  .work-media-collage {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-height: none;
  }

  .work-media-main {
    grid-row: auto;
  }

  .work-image-frame {
    aspect-ratio: 16 / 10;
  }

  .work-filter-bar {
    border-radius: 24px;
  }

  .work-filter-bar input,
  .work-filter-bar select,
  .work-result-count {
    width: 100%;
  }

  .work-evidence-card {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .work-page .site-nav {
    display: none !important;
  }

  .work-page .site-nav.is-open {
    display: grid !important;
  }
}

@media (max-width: 560px) {
  .work-page .container {
    width: min(100% - 1.25rem, 1320px);
  }

  .work-hero-title {
    font-size: clamp(2.2rem, 8.4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
  }

  .work-hero-copy {
    font-size: 1rem;
    line-height: 1.55;
  }

  .work-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .work-actions .work-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 12px 16px;
  }

  .work-card-grid,
  .work-domain-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .work-evidence-card,
  .work-domain-card {
    padding: 22px 20px;
  }
}

@media (max-width: 430px) {
  .work-hero-title {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-btn,
  .work-domain-card,
  .work-evidence-card,
  .work-image-frame img,
  [data-work-reveal] {
    transition: none !important;
  }

  .work-btn:hover,
  .work-btn:focus-visible,
  .work-domain-card:hover,
  .work-evidence-card:hover,
  .work-image-frame:hover img {
    transform: none !important;
  }

  [data-work-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Single hero image (work page) */
.work-media-single { width: 100%; aspect-ratio: 4 / 3; max-height: 560px; }
.work-media-single img { width: 100%; height: 100%; object-fit: cover; }
/* Hero video (work) — same fit as the framed image */
.work-image-frame video { display:block; width:100%; height:100%; object-fit:cover; }
.work-media-single { aspect-ratio: 16/10; }