:root {
  --case-blue: #1267ff;
  --case-blue-dark: #0646be;
  --case-navy: #101f4f;
  --case-ink: #07111f;
  --case-muted: #607086;
  --case-line: #dbe4ee;
  --case-soft: #f4f7fb;
  --case-pale-blue: #edf4ff;
  --case-white: #ffffff;
  --case-green: #13875d;
  --case-shadow: 0 22px 55px rgba(20, 44, 82, 0.12);
  color: var(--case-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--case-white);
  color: var(--case-ink);
  margin: 0;
  min-width: 320px;
}

body:has(.lightbox[open]) {
  overflow: hidden;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link {
  background: var(--case-navy);
  color: var(--case-white);
  font-weight: 800;
  left: 18px;
  padding: 12px 18px;
  position: fixed;
  top: -80px;
  transition: top 0.18s ease;
  z-index: 1000;
}

.skip-link:focus {
  top: 18px;
}

.shell {
  margin: 0 auto;
  max-width: 1440px;
  padding-left: clamp(20px, 4.5vw, 72px);
  padding-right: clamp(20px, 4.5vw, 72px);
  width: 100%;
}

.announcement {
  align-items: center;
  background: var(--case-blue);
  color: var(--case-white);
  display: flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
  padding: 8px 20px;
  text-align: center;
}

.announcement a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--case-line);
  display: grid;
  gap: clamp(14px, 1.7vw, 28px);
  grid-template-columns: auto 1fr auto;
  min-height: 88px;
  padding: 0 clamp(18px, 3vw, 54px);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
}

.brand {
  align-items: center;
  display: flex;
  flex: none;
  gap: 14px;
  min-width: 0;
}

.brand img {
  height: 52px;
  object-fit: contain;
  width: auto;
}

.brand span {
  border-left: 2px solid rgba(47, 49, 146, 0.34);
  color: #2f3192;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.18;
  padding-left: 14px;
  white-space: nowrap;
}

.site-nav {
  align-items: stretch;
  display: flex;
  gap: clamp(8px, 1.05vw, 20px);
  height: 88px;
  justify-content: center;
}

.site-nav a {
  align-items: center;
  color: #39475b;
  display: flex;
  font-size: 14px;
  font-weight: 780;
  height: 88px;
  position: relative;
  white-space: nowrap;
}

.site-nav a::after {
  background: var(--case-blue);
  bottom: 0;
  content: "";
  height: 3px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.18s ease;
  width: 68%;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--case-blue);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.header-quote,
.button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-size: 14px;
  font-weight: 850;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.header-quote,
.button-primary {
  background: var(--case-blue);
  color: var(--case-white);
}

.header-quote:hover,
.button-primary:hover {
  background: var(--case-blue-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  height: 44px;
  justify-content: center;
  padding: 8px;
  width: 44px;
}

.nav-toggle > span:not(.sr-only) {
  background: var(--case-navy);
  display: block;
  height: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
  width: 24px;
}

.breadcrumbs {
  align-items: center;
  color: #68788f;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  gap: 9px;
  margin-bottom: clamp(42px, 7vw, 88px);
}

.breadcrumbs a:hover {
  color: var(--case-blue);
}

.eyebrow {
  color: var(--case-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin: 0 0 18px;
}

.cases-hero {
  background: var(--case-pale-blue);
  border-bottom: 1px solid #d9e7fa;
  overflow: hidden;
  position: relative;
}

.cases-hero::after {
  border: 1px solid #c8dcfa;
  content: "";
  height: 410px;
  position: absolute;
  right: -120px;
  top: 80px;
  transform: rotate(-10deg);
  width: 410px;
}

.cases-hero-grid {
  align-items: end;
  display: grid;
  gap: clamp(48px, 8vw, 140px);
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  min-height: 620px;
  padding-bottom: clamp(78px, 8vw, 112px);
  padding-top: 32px;
  position: relative;
  z-index: 1;
}

.cases-hero h1,
.detail-heading h1,
.not-found h1 {
  font-size: clamp(48px, 6.2vw, 92px);
  letter-spacing: -0.058em;
  line-height: 0.98;
  margin: 0;
  max-width: 930px;
}

.hero-lead,
.detail-lead {
  color: #43546b;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.65;
  margin: 30px 0 0;
  max-width: 800px;
}

.hero-actions,
.detail-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 38px;
}

.text-link,
.card-link {
  color: var(--case-blue-dark);
  font-size: 14px;
  font-weight: 850;
}

.text-link span,
.card-link span {
  display: inline-block;
  transition: transform 0.18s ease;
}

.text-link:hover span,
.card-link:hover span {
  transform: translateX(4px);
}

.hero-metrics {
  border-left: 1px solid #c8d9ef;
  margin: 0;
  padding: 0 0 0 clamp(28px, 4vw, 58px);
}

.hero-metrics div {
  border-bottom: 1px solid #c8d9ef;
  padding: 25px 0;
}

.hero-metrics div:last-child {
  border-bottom: 0;
}

.hero-metrics dt {
  color: var(--case-navy);
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-metrics dd {
  color: var(--case-muted);
  font-size: 14px;
  font-weight: 700;
  margin: 9px 0 0;
}

.case-library {
  padding-bottom: clamp(90px, 10vw, 150px);
  padding-top: clamp(90px, 10vw, 150px);
}

.section-heading {
  margin-bottom: clamp(42px, 5vw, 72px);
}

.split-heading {
  align-items: end;
  display: grid;
  gap: clamp(36px, 8vw, 140px);
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.section-heading h2,
.detail-copy h2,
.case-cta h2 {
  font-size: clamp(36px, 4.4vw, 64px);
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0;
}

.split-heading > p {
  color: var(--case-muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
}

.case-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
  background: var(--case-white);
  border: 1px solid var(--case-line);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.case-card:hover {
  border-color: #aebfda;
  box-shadow: var(--case-shadow);
  transform: translateY(-4px);
}

.case-card-featured {
  display: grid;
  grid-column: span 2;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.case-card-image {
  align-items: center;
  background: var(--case-soft);
  border-bottom: 1px solid var(--case-line);
  display: flex;
  justify-content: center;
  min-height: 280px;
  overflow: hidden;
  padding: 26px;
}

.case-card-featured .case-card-image {
  border-bottom: 0;
  border-right: 1px solid var(--case-line);
  min-height: 500px;
}

.case-card-image img {
  height: 260px;
  object-fit: contain;
  transition: transform 0.28s ease;
  width: 100%;
}

.case-card-featured .case-card-image img {
  height: 430px;
}

.case-card:hover .case-card-image img {
  transform: scale(1.025);
}

.case-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 30px;
}

.case-card-featured .case-card-body {
  justify-content: center;
  padding: clamp(34px, 4vw, 60px);
}

.case-card-meta {
  color: var(--case-blue-dark);
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 900;
  gap: 8px 18px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.case-card-meta span + span {
  position: relative;
}

.case-card-meta span + span::before {
  background: #9db2cf;
  content: "";
  height: 3px;
  left: -10px;
  position: absolute;
  top: 6px;
  width: 3px;
}

.case-card h3 {
  font-size: clamp(26px, 2.2vw, 36px);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 17px 0 15px;
}

.case-card h3 a:hover {
  color: var(--case-blue-dark);
}

.case-card-body > p {
  color: var(--case-muted);
  display: -webkit-box;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.case-card dl {
  border-bottom: 1px solid var(--case-line);
  border-top: 1px solid var(--case-line);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 26px 0 22px;
  padding: 18px 0;
}

.case-card dl div {
  min-width: 0;
}

.case-card dt {
  color: #7d8ca0;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.case-card dd {
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}

.card-link {
  margin-top: auto;
}

.empty-state {
  background: var(--case-soft);
  border: 1px solid var(--case-line);
  padding: clamp(44px, 7vw, 90px);
  text-align: center;
}

.empty-state h3 {
  font-size: 32px;
  margin: 0 0 12px;
}

.empty-state p {
  color: var(--case-muted);
  margin: 0 auto 28px;
}

.detail-hero {
  background: var(--case-pale-blue);
  border-bottom: 1px solid #d9e7fa;
}

.detail-hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(50px, 8vw, 120px);
  grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
  min-height: 690px;
  padding-bottom: clamp(70px, 8vw, 110px);
  padding-top: 32px;
}

.detail-heading h1 {
  font-size: clamp(50px, 5.3vw, 80px);
}

.detail-cover {
  min-width: 0;
}

.cover-button,
.gallery-stage {
  background: var(--case-white);
  border: 1px solid #cbd9ec;
  cursor: zoom-in;
  display: block;
  padding: 0;
  position: relative;
  width: 100%;
}

.cover-button {
  box-shadow: 30px 34px 0 #dce9fb;
}

.cover-button img {
  aspect-ratio: 7 / 5;
  object-fit: contain;
  padding: clamp(24px, 4vw, 60px);
  width: 100%;
}

.cover-button span,
.gallery-stage > span {
  background: var(--case-navy);
  bottom: 0;
  color: var(--case-white);
  font-size: 12px;
  font-weight: 850;
  left: 0;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  position: absolute;
  text-transform: uppercase;
}

.detail-overview {
  display: grid;
  gap: clamp(60px, 9vw, 140px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  padding-bottom: clamp(90px, 10vw, 150px);
  padding-top: clamp(90px, 10vw, 150px);
}

.detail-copy > p:not(.eyebrow) {
  color: #4c5d73;
  font-size: 18px;
  line-height: 1.82;
  margin: 30px 0 0;
}

.spec-panel {
  align-self: start;
  background: var(--case-navy);
  color: var(--case-white);
  padding: 34px;
  position: sticky;
  top: 118px;
}

.spec-kicker {
  color: #99b9ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 24px;
}

.spec-panel dl {
  margin: 0;
}

.spec-panel dl div {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 16px;
  grid-template-columns: 0.8fr 1.2fr;
  padding: 18px 0;
}

.spec-panel dt {
  color: #a9b8d4;
  font-size: 12px;
  font-weight: 700;
}

.spec-panel dd {
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.spec-panel > a {
  align-items: center;
  background: var(--case-blue);
  display: flex;
  font-size: 14px;
  font-weight: 850;
  justify-content: space-between;
  margin-top: 26px;
  min-height: 52px;
  padding: 14px 18px;
}

.spec-panel > a:hover {
  background: #2a78ff;
}

.project-story {
  border-top: 1px solid var(--case-line);
  margin-top: 50px;
}

.project-story section {
  border-bottom: 1px solid var(--case-line);
  display: grid;
  gap: 26px;
  grid-template-columns: 48px 1fr;
  padding: 28px 0;
}

.project-story section > span {
  color: var(--case-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.project-story h3 {
  font-size: 23px;
  margin: 0 0 8px;
}

.project-story p {
  color: var(--case-muted);
  line-height: 1.72;
  margin: 0;
}

.gallery-section {
  background: var(--case-soft);
  border-bottom: 1px solid var(--case-line);
  border-top: 1px solid var(--case-line);
  padding-bottom: clamp(90px, 9vw, 140px);
  padding-top: clamp(90px, 9vw, 140px);
}

.gallery-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 210px;
}

.gallery-stage {
  min-height: 610px;
}

.gallery-stage img {
  height: 610px;
  object-fit: contain;
  padding: clamp(24px, 4vw, 60px);
  width: 100%;
}

.gallery-thumbnails {
  display: grid;
  gap: 10px;
  max-height: 610px;
  overflow-y: auto;
  padding-right: 5px;
}

.gallery-thumbnail {
  align-items: center;
  background: var(--case-white);
  border: 1px solid var(--case-line);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 76px 1fr;
  min-height: 76px;
  padding: 8px;
  text-align: left;
}

.gallery-thumbnail.active {
  border-color: var(--case-blue);
  box-shadow: inset 3px 0 0 var(--case-blue);
}

.gallery-thumbnail img {
  background: var(--case-soft);
  height: 60px;
  object-fit: contain;
  padding: 4px;
  width: 76px;
}

.gallery-thumbnail span {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.case-cta {
  background: var(--case-blue);
  color: var(--case-white);
}

.case-cta-inner {
  align-items: center;
  display: grid;
  gap: clamp(48px, 9vw, 150px);
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  min-height: 420px;
  padding-bottom: 70px;
  padding-top: 70px;
}

.case-cta .eyebrow {
  color: #cfe0ff;
}

.case-cta-inner > div:last-child > p {
  color: #e1eaff;
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 26px;
}

.button-light {
  background: var(--case-white);
  color: var(--case-blue-dark);
}

.button-light:hover {
  background: #eaf1ff;
  transform: translateY(-1px);
}

.not-found {
  min-height: 650px;
  padding-bottom: 100px;
  padding-top: 120px;
}

.not-found h1 {
  font-size: clamp(46px, 6vw, 80px);
}

.not-found > p:not(.eyebrow) {
  color: var(--case-muted);
  font-size: 19px;
  margin: 24px 0 32px;
}

.image-placeholder {
  align-items: center;
  color: var(--case-muted);
  display: flex;
  font-size: 14px;
  justify-content: center;
  min-height: 260px;
  padding: 30px;
  text-align: center;
  width: 100%;
}

.site-footer {
  background: #091536;
  color: var(--case-white);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  gap: clamp(36px, 6vw, 90px);
  grid-template-columns: 1.4fr repeat(3, 0.8fr);
  padding-bottom: 64px;
}

.footer-brand img {
  background: var(--case-white);
  height: 58px;
  object-fit: contain;
  object-position: left center;
  padding: 8px 10px;
  width: auto;
}

.footer-brand p,
.footer-grid > div > p {
  color: #9fafd0;
  font-size: 14px;
  line-height: 1.7;
  margin: 18px 0 0;
  max-width: 310px;
}

.footer-grid h2 {
  color: #8fadf7;
  font-size: 11px;
  letter-spacing: 0.12em;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.footer-grid > div:not(.footer-brand) > a:not(.footer-quote) {
  color: #dbe5ff;
  display: block;
  font-size: 14px;
  margin: 12px 0;
}

.footer-grid a:hover {
  color: var(--case-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-quote {
  color: var(--case-white);
  display: inline-block;
  font-size: 14px;
  font-weight: 850;
  margin-top: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8292b4;
  display: flex;
  font-size: 12px;
  gap: 22px;
  padding-bottom: 26px;
  padding-top: 26px;
}

.footer-bottom span {
  margin-right: auto;
}

.lightbox {
  background: transparent;
  border: 0;
  height: 100vh;
  margin: 0;
  max-height: none;
  max-width: none;
  padding: 0;
  width: 100vw;
}

.lightbox::backdrop {
  background: rgba(3, 9, 21, 0.94);
}

.lightbox-frame {
  align-items: center;
  color: var(--case-white);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  height: 100%;
  padding: 58px 24px 28px;
  position: relative;
  width: 100%;
}

.lightbox figure {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  margin: 0;
  min-height: 0;
}

.lightbox figure img {
  background: var(--case-white);
  max-height: calc(100vh - 135px);
  max-width: min(1100px, 100%);
  object-fit: contain;
  padding: clamp(18px, 4vw, 50px);
}

.lightbox figcaption {
  font-size: 13px;
  font-weight: 750;
  margin-top: 16px;
}

.lightbox-close,
.lightbox-nav {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: var(--case-white);
  cursor: pointer;
}

.lightbox-close {
  font-size: 30px;
  height: 48px;
  line-height: 1;
  position: absolute;
  right: 24px;
  top: 18px;
  width: 48px;
}

.lightbox-nav {
  font-size: 54px;
  height: 68px;
  line-height: 0.8;
  width: 56px;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1270px) {
  .brand span {
    display: none;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 13px;
  }
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    min-height: 76px;
  }

  .brand img {
    height: 46px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    align-items: stretch;
    background: var(--case-white);
    border-bottom: 1px solid var(--case-line);
    box-shadow: 0 20px 40px rgba(17, 31, 63, 0.12);
    display: none;
    height: auto;
    left: 0;
    padding: 12px 24px 24px;
    position: absolute;
    right: 0;
    top: 76px;
  }

  .site-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    border-bottom: 1px solid var(--case-line);
    font-size: 14px;
    height: auto;
    min-height: 48px;
  }

  .site-nav a::after {
    display: none;
  }

  .cases-hero-grid,
  .detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .cases-hero-grid {
    min-height: 0;
    padding-bottom: 78px;
    padding-top: 30px;
  }

  .hero-metrics {
    border-left: 0;
    border-top: 1px solid #c8d9ef;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
  }

  .hero-metrics div {
    border-bottom: 0;
    border-right: 1px solid #c8d9ef;
    padding: 25px 20px;
  }

  .hero-metrics div:first-child {
    padding-left: 0;
  }

  .hero-metrics div:last-child {
    border-right: 0;
  }

  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-card-featured {
    grid-template-columns: 1fr;
  }

  .case-card-featured .case-card-image {
    border-bottom: 1px solid var(--case-line);
    border-right: 0;
    min-height: 400px;
  }

  .case-card-featured .case-card-image img {
    height: 350px;
  }

  .detail-hero-grid {
    padding-bottom: 90px;
  }

  .detail-cover {
    margin-right: 28px;
  }

  .detail-overview {
    gap: 60px;
    grid-template-columns: 1fr 330px;
  }

  .gallery-layout {
    grid-template-columns: 1fr;
  }

  .gallery-thumbnails {
    display: flex;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 6px;
  }

  .gallery-thumbnail {
    flex: 0 0 170px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .announcement {
    font-size: 12px;
  }

  .site-header {
    gap: 8px;
    padding: 0 14px;
  }

  .brand img {
    height: 40px;
    max-width: 140px;
  }

  .header-quote {
    font-size: 12px;
    min-height: 42px;
    padding: 10px 13px;
  }

  .site-nav.open {
    grid-template-columns: 1fr;
  }

  .breadcrumbs {
    margin-bottom: 46px;
  }

  .cases-hero h1,
  .detail-heading h1 {
    font-size: clamp(44px, 13vw, 64px);
  }

  .hero-lead,
  .detail-lead {
    font-size: 17px;
  }

  .hero-actions,
  .detail-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metrics div,
  .hero-metrics div:first-child {
    border-bottom: 1px solid #c8d9ef;
    border-right: 0;
    padding: 20px 0;
  }

  .hero-metrics div:last-child {
    border-bottom: 0;
  }

  .split-heading,
  .case-cta-inner,
  .detail-overview {
    grid-template-columns: 1fr;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-card-featured {
    grid-column: auto;
  }

  .case-card-featured .case-card-image {
    min-height: 300px;
  }

  .case-card-featured .case-card-image img,
  .case-card-image img {
    height: 270px;
  }

  .case-card-featured .case-card-body,
  .case-card-body {
    padding: 26px;
  }

  .detail-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .detail-cover {
    margin-right: 15px;
  }

  .cover-button {
    box-shadow: 15px 18px 0 #dce9fb;
  }

  .detail-overview {
    gap: 45px;
  }

  .spec-panel {
    position: static;
  }

  .gallery-stage,
  .gallery-stage img {
    height: 420px;
    min-height: 420px;
  }

  .case-cta-inner {
    min-height: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-wrap: wrap;
  }

  .footer-bottom span {
    flex-basis: 100%;
  }

  .lightbox-frame {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .lightbox-nav {
    font-size: 42px;
    height: 56px;
    width: 42px;
  }
}

@media (max-width: 460px) {
  .brand img {
    max-width: 112px;
  }

  .header-quote {
    padding-left: 10px;
    padding-right: 10px;
  }

  .gallery-stage,
  .gallery-stage img {
    height: 340px;
    min-height: 340px;
  }

  .spec-panel {
    padding: 26px 22px;
  }

  .lightbox-frame {
    display: block;
    padding: 76px 12px 20px;
  }

  .lightbox figure {
    height: calc(100vh - 96px);
  }

  .lightbox-nav {
    bottom: 24px;
    position: absolute;
    z-index: 1;
  }

  .lightbox-prev {
    left: 18px;
  }

  .lightbox-next {
    right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* CASE STUDIES engineering table */
.cases-list-intro {
  padding-bottom: 58px;
  padding-top: 28px;
}

.cases-list-intro .breadcrumbs {
  margin-bottom: 32px;
}

.cases-list-intro h1 {
  font-size: clamp(42px, 4.8vw, 68px);
}

.cases-list-intro .hero-lead {
  font-size: 18px;
  margin-top: 22px;
  max-width: 740px;
}

.case-library-table {
  background: #f6f9fb;
  padding-bottom: 80px;
  padding-top: 48px;
}

.case-library-table .section-heading {
  margin-bottom: 30px;
}

.case-library-table .section-heading h2 {
  font-size: clamp(28px, 2.5vw, 38px);
}

.case-library-table .section-heading > p {
  font-size: 14px;
}

.case-library-table .eyebrow {
  margin-bottom: 12px;
}

body:has(.case-preview-dialog[open]) {
  overflow: hidden;
}

.case-preview-dialog {
  background: #f6f9fb;
  border: 1px solid #d7e5ec;
  border-radius: 14px;
  color: #15384a;
  height: min(92vh, 960px);
  max-height: 94vh;
  max-width: 96vw;
  padding: 0;
  width: min(1480px, 96vw);
}

.case-preview-dialog::backdrop {
  background: rgba(6, 22, 38, 0.72);
}

.case-preview-toolbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #d7e5ec;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-height: 88px;
  padding: 18px 24px;
}

.case-preview-toolbar h2 {
  font-size: 20px;
  margin: 0 0 5px;
}

.case-preview-toolbar p {
  color: #607f91;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.case-preview-toolbar button {
  background: #eef7fb;
  border: 1px solid #c9e0ea;
  border-radius: 8px;
  cursor: pointer;
  flex: none;
  font-size: 14px;
  font-weight: 750;
  min-height: 44px;
  padding: 10px 18px;
}

.case-preview-content {
  align-items: center;
  display: flex;
  height: calc(100% - 88px);
  justify-content: center;
  min-height: 0;
}

.case-preview-content iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.case-preview-content > img {
  height: 100%;
  object-fit: contain;
  padding: 24px;
  width: 100%;
}

.case-preview-action .case-open-icon {
  height: 16px;
  width: 16px;
}

.case-library-table.shell {
  max-width: 2400px;
  padding-left: clamp(18px, 2.2vw, 42px);
  padding-right: clamp(18px, 2.2vw, 42px);
}

.case-table {
  background: #ffffff;
  border: 1px solid #d7e5ec;
  border-radius: 14px;
  box-shadow: 0 14px 42px rgba(28, 75, 98, 0.06);
  overflow: hidden;
}

.case-table-head,
.case-table-row {
  display: grid;
  grid-template-columns:
    70px
    minmax(220px, 1.25fr)
    minmax(190px, 0.92fr)
    minmax(190px, 0.92fr)
    minmax(220px, 1fr)
    minmax(108px, 0.48fr)
    minmax(100px, 0.44fr)
    minmax(118px, 0.52fr)
    minmax(126px, 0.58fr);
}

.case-table-head {
  align-items: center;
  background: #eaf2f6;
  color: #66889b;
  font-size: 16px;
  font-weight: 800;
  min-height: 92px;
  padding: 0 22px;
}

.case-table-head > span {
  padding: 0 10px;
}

.case-table-row {
  align-items: center;
  border-bottom: 1px solid #d7e5ec;
  min-height: 288px;
  padding: 28px 22px;
  transition: background-color 180ms ease;
}

.case-table-row:last-child {
  border-bottom: 0;
}

.case-table-row:hover {
  background: #fbfdfe;
}

.case-cell {
  min-width: 0;
  padding: 0 10px;
}

.case-number {
  color: #66889b;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

.case-product h3 {
  color: #15384a;
  font-size: clamp(18px, 1.25vw, 22px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 11px;
}

.case-product h3 a:hover {
  color: #197d9f;
}

.case-product p {
  color: #7895a5;
  display: -webkit-box;
  font-size: 16px;
  line-height: 1.58;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.case-detail-link {
  color: #197d9f;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 5px;
  margin-top: 14px;
}

.case-detail-link:hover {
  color: #0f6685;
}

.case-preview-card {
  background: #eef7fb;
  border: 1px solid #d2e6ee;
  border-radius: 11px;
  color: #197d9f;
  display: grid;
  grid-template-rows: minmax(155px, 1fr) 52px;
  min-height: 224px;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  width: 100%;
}

.case-preview-card:hover {
  border-color: #75b8cf;
  box-shadow: 0 14px 28px rgba(31, 100, 125, 0.12);
  transform: translateY(-2px);
}

.case-preview-media {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding: 13px;
}

.case-preview-media img {
  height: 100%;
  max-height: 170px;
  object-fit: contain;
  width: 100%;
}

.case-preview-action {
  align-items: center;
  border-top: 1px solid #d2e6ee;
  display: flex;
  font-size: 15px;
  font-weight: 750;
  gap: 7px;
  justify-content: center;
  padding: 10px;
  text-align: center;
}

.case-preview-placeholder {
  color: #7895a5;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.case-envelope {
  display: grid;
  gap: 8px;
}

.case-envelope strong {
  color: #15384a;
  font-size: clamp(17px, 1.25vw, 21px);
  font-variant-numeric: tabular-nums;
  font-weight: 550;
  line-height: 1.45;
}

.case-envelope span {
  color: #7895a5;
  font-size: 13px;
  line-height: 1.4;
}

.case-spec,
.case-publisher {
  color: #15384a;
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.42;
}

.case-contact {
  display: grid;
  gap: 10px;
}

.case-contact a {
  align-items: center;
  background: #f4fafc;
  border: 1px solid #c9e0ea;
  border-radius: 9px;
  color: #197d9f;
  display: inline-flex;
  font-size: 14px;
  font-weight: 750;
  justify-content: center;
  min-height: 44px;
  padding: 9px 12px;
  text-align: center;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.case-contact a:hover {
  background: #e9f5f9;
  border-color: #75b8cf;
  color: #0f6685;
}

@media (max-width: 1460px) {
  .case-table-head {
    clip-path: inset(50%);
    height: 1px;
    min-height: 1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .case-table {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    gap: 22px;
    overflow: visible;
  }

  .case-table-row {
    background: #ffffff;
    border: 1px solid #d7e5ec;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(28, 75, 98, 0.07);
    gap: 20px;
    grid-template-areas:
      "number product product product product product"
      "product-preview product-preview product-preview mold-preview mold-preview mold-preview"
      "envelope envelope envelope material cavities publisher"
      "contact contact contact contact contact contact";
    grid-template-columns: repeat(6, minmax(0, 1fr));
    min-height: 0;
    padding: 26px;
  }

  .case-number { grid-area: number; }
  .case-product { grid-area: product; }
  .case-preview-cell:nth-of-type(3) { grid-area: product-preview; }
  .case-preview-cell:nth-of-type(4) { grid-area: mold-preview; }
  .case-envelope { grid-area: envelope; }
  .case-spec:nth-of-type(6) { grid-area: material; }
  .case-spec:nth-of-type(7) { grid-area: cavities; }
  .case-publisher { grid-area: publisher; }
  .case-contact { grid-area: contact; }

  .case-number,
  .case-product {
    align-self: start;
  }

  .case-product p {
    -webkit-line-clamp: 3;
  }

  .case-preview-card {
    grid-template-rows: 220px 54px;
  }

  .case-preview-media img {
    max-height: 205px;
  }

  .case-envelope,
  .case-spec,
  .case-publisher {
    border-top: 1px solid #d7e5ec;
    padding-top: 18px;
  }

  .case-envelope::before,
  .case-spec::before,
  .case-publisher::before {
    color: #66889b;
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
  }

  .case-contact {
    border-top: 1px solid #d7e5ec;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 20px;
  }
}

@media (max-width: 700px) {
  .case-library-table.shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .case-table-row {
    gap: 18px;
    grid-template-areas:
      "number"
      "product"
      "product-preview"
      "mold-preview"
      "envelope"
      "material"
      "cavities"
      "publisher"
      "contact";
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }

  .case-cell {
    padding-left: 0;
    padding-right: 0;
  }

  .case-number::before {
    color: #7895a5;
    content: "CASE ";
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
  }

  .case-product h3 {
    font-size: 23px;
  }

  .case-preview-card {
    grid-template-rows: 205px 54px;
  }

  .case-envelope,
  .case-spec,
  .case-publisher {
    padding-top: 16px;
  }

  .case-contact {
    gap: 10px;
  }
}

.case-table-head,
.case-number {
  color: #527184;
}

.case-product p,
.case-envelope span,
.case-preview-placeholder {
  color: #607f91;
}

/* Viewer upgrade: no nested scrolling or fixed-header crop. */
.case-preview-dialog[open]{display:flex;flex-direction:column}.case-preview-toolbar{flex:none}.case-preview-content{flex:1;height:auto;min-height:0;overflow:hidden}.case-preview-content iframe{display:block}@media(max-width:600px){.case-preview-toolbar{padding:12px 14px;gap:12px;min-height:72px}.case-preview-toolbar h2{font-size:17px;line-height:1.2;margin:0}.case-preview-toolbar p{display:none}}
