.case-study { padding: 33px 0 85px; background: radial-gradient(ellipse at 100% 0, #17428a26, transparent 45%), #07162c; }
.case-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 10px; color: #a8c2e4; }
.case-breadcrumb a:hover { color: #8ddbff; }
.case-breadcrumb [aria-current] { color: #e3f0ff; }
.case-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 52px 0 40px; }
.case-domain { display: inline-flex; align-items: center; gap: 10px; padding: 7px 13px; border: 1px solid #456c9c; border-radius: 30px; background: #12335b80; color: #cce7ff; font-size: 10px; }
.case-domain .status-dot { width: 5px; height: 5px; }
.case-heading h1 { font-size: clamp(40px, 5.5vw, 74px); letter-spacing: -.065em; margin: 20px 0 18px; line-height: 1.08; color: #fff; overflow-wrap: anywhere; }
.case-intro { max-width: 720px; font-size: 15px; line-height: 1.85; color: #c0d5ef; }
.case-heading-action { flex-shrink: 0; padding-bottom: 7px; }
.case-heading-action .button { white-space: nowrap; }
.case-access { display: flex; align-items: center; gap: 9px; padding: 12px 17px; border: 1px solid #6287b7; border-radius: 8px; background: #15365e; color: #d5e9ff; font-size: 12px; }
.case-access svg { width: 16px; height: 16px; }
.case-media { border: 1px solid #456a9a; background: #102b50; border-radius: 15px; overflow: hidden; box-shadow: 0 24px 70px #000a202b; }
.media-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; padding: 12px 22px; background: #16365e; border-bottom: 1px solid #3e638f; }
.media-toolbar-label { display: flex; align-items: center; gap: 19px; font-size: 9px; letter-spacing: .11em; color: #c2ddff; }
.media-toolbar-label { min-width: 0; }
.media-toolbar-label > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.window-dots { display: flex; gap: 4px; }
.window-dots i { width: 5px; height: 5px; background: #82b5ed; border-radius: 50%; }
.window-dots i:nth-child(2) { opacity: .6; }
.window-dots i:nth-child(3) { opacity: .3; }
.media-expand { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; color: #e4f3ff; padding: 3px 0; }
.media-expand span { font-size: 19px; }
.media-preview { position: relative; display: grid; place-items: center; height: clamp(320px, 45vw, 570px); padding: 28px; background-image: linear-gradient(#79b7ff09 1px, transparent 1px), linear-gradient(90deg, #79b7ff09 1px, transparent 1px), radial-gradient(ellipse at 50% 60%, #24528a, #0d2344 78%); background-size: 32px 32px, 32px 32px, auto; }
.media-preview > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; border-radius: 5px; filter: drop-shadow(0 15px 25px #000b2840); }
.case-media[data-visual="logo"] .media-preview > img { max-width: 300px; max-height: 300px; border-radius: 15px; }
.preview-hint { position: absolute; right: 18px; bottom: 16px; padding: 8px 13px; background: #071a36e8; border: 1px solid #6187ba; border-radius: 6px; font-size: 10px; color: #dceeff; opacity: 0; transform: translateY(5px); transition: opacity .25s, transform .25s; }
.media-preview:hover .preview-hint, .media-preview:focus-visible .preview-hint { opacity: 1; transform: none; }
.media-caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 21px; background: #0e274a; border-top: 1px solid #34547c; }
.media-caption > p { font-size: 11px; color: #c3d8f4; }
.media-controls { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.media-controls button, .lightbox-stage > button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #6b94c5; border-radius: 50%; background: #1b4171; color: #fff; font-size: 18px; transition: background .2s; }
.media-controls button:hover, .lightbox-stage > button:hover { background: #2165d1; }
.media-controls [data-gallery-count] { min-width: 33px; text-align: center; color: #d4e8ff; font-size: 10px; }
.media-thumbnails { display: flex; gap: 10px; overflow-x: auto; padding: 15px 21px 18px; background: #0e274a; scrollbar-width: thin; scrollbar-color: #547daf #0e274a; }
.media-thumbnail { flex: 0 0 108px; height: 74px; padding: 5px; border: 2px solid #315782; border-radius: 7px; background: #193960; transition: border-color .2s, background .2s; }
.media-thumbnail img { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; }
.media-thumbnail.is-active { border-color: #8adaff; background: #28558e; }
.media-thumbnail:hover { border-color: #7fafe9; }
.case-body { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 42px; padding-top: 48px; align-items: start; }
.case-sidebar { position: sticky; top: 122px; }
.case-sidepanel { border: 1px solid #345981; border-radius: 12px; background: #102b4e; padding: 23px; }
.case-sidepanel .eyebrow { font-size: 9px; }
.case-sidepanel dl { margin: 25px 0; }
.case-sidepanel dl > div + div { margin-top: 22px; }
.case-sidepanel dt { color: #9dbde5; text-transform: uppercase; font-size: 8px; letter-spacing: .1em; margin-bottom: 7px; }
.case-sidepanel dd { margin: 0; font-size: 12px; line-height: 1.8; color: #e5f0ff; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 20px; border-top: 1px solid #3b5b83; }
.case-tags a { font-size: 9px; border: 1px solid #5e80ab; border-radius: 20px; padding: 4px 9px; color: #d5e8ff; }
.case-tags a:hover { background: #225390; }
.case-back { display: flex; gap: 13px; align-items: center; margin-top: 19px; color: #b5d5ff; font-size: 11px; }
.case-back span { font-size: 18px; }
.case-story { border-radius: 14px; padding: 42px 44px; color: #15335d; background: #ebf3ff; border: 1px solid #acc9ee; }
.case-story-section { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid #b7cce8; }
.case-story-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.case-story .eyebrow { color: #285ca9; font-size: 9px; }
.case-story h2 { font-size: clamp(30px, 3.1vw, 43px); color: #102b51; margin: 16px 0 21px; line-height: 1.15; }
.case-story .serif-word { color: #2462c2; }
.case-story p { font-size: 14px; line-height: 1.95; color: #2a4b75; }
.case-story p + p { margin-top: 18px; }
.case-story h3 { font-size: 22px; color: #183c6e; margin: 15px 0 20px; letter-spacing: -.035em; line-height: 1.3; }
.source-description p { color: #1f416e; }
.case-story .case-source { font-size: 10px; line-height: 1.8; margin-top: 24px; }
.case-source a { color: #225bb0; border-bottom: 1px solid #8aa8d1; }
.case-credits { padding: 19px; margin-top: 26px; background: #dce9fc; border-radius: 9px; }
.case-credits h3 { font-size: 15px; margin: 0 0 12px; }
.case-credits p { font-size: 11px; }
.case-highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.case-highlights li { display: flex; gap: 12px; color: #2e517f; font-size: 13px; line-height: 1.85; }
.case-highlights li > span:first-child { color: #225fbf; }
.case-story .case-benefit { padding: 25px; border: 0; border-radius: 10px; background: #133b70; }
.case-benefit .eyebrow { color: #a7d9ff; }
.case-story .case-benefit p { color: #edf5ff; margin-top: 12px; }
.case-private-note { display: flex; gap: 10px; align-items: flex-start; padding-top: 24px; }
.case-private-note svg { width: 15px; height: 15px; flex-shrink: 0; color: #456d9d; margin-top: 3px; }
.case-private-note p { font-size: 11px; color: #45668f; }
.lightbox-open { overflow: hidden; }
.project-lightbox { position: fixed; inset: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; background: #031020f5; color: #fff; }
.project-lightbox::backdrop { background: #000a1de6; backdrop-filter: blur(10px); }
.lightbox-shell { height: 100%; width: 100%; display: flex; flex-direction: column; padding: 20px 30px 15px; }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 15px; }
.lightbox-toolbar h2 { font-size: 18px; letter-spacing: -.035em; line-height: 1.4; }
.lightbox-toolbar > div { display: flex; align-items: center; gap: 22px; }
.lightbox-toolbar [data-gallery-count] { font-size: 12px; color: #b9d4f5; white-space: nowrap; }
.lightbox-toolbar button { width: 42px; height: 42px; border: 1px solid #708eaf; border-radius: 50%; display: grid; place-items: center; font-size: 29px; line-height: 1; color: #fff; }
.lightbox-stage { flex: 1; min-height: 0; display: flex; gap: 25px; align-items: center; justify-content: center; }
.lightbox-stage img { min-width: 0; min-height: 0; width: 100%; height: 100%; object-fit: contain; }
.lightbox-canvas { flex: 1; min-width: 0; min-height: 0; height: 100%; overflow: auto; display: grid; place-items: center; scrollbar-color: #597fab #07192f; scrollbar-width: thin; }
.lightbox-canvas img { cursor: zoom-in; }
.lightbox-canvas.is-zoomed { display: block; }
.lightbox-canvas.is-zoomed img { width: 200%; height: auto; max-width: none; object-fit: initial; cursor: zoom-out; }
.lightbox-stage > button { flex-shrink: 0; width: 43px; height: 43px; }
.lightbox-caption { color: #b4cdec; text-align: center; font-size: 11px; padding-top: 15px; }
@media(max-width: 1000px) {
  .case-heading { align-items: flex-start; flex-direction: column; gap: 25px; }
  .case-heading h1 { font-size: 55px; }
  .case-body { grid-template-columns: 200px minmax(0, 1fr); gap: 27px; }
  .case-sidepanel { padding: 20px; }
  .case-story { padding: 32px; }
}
@media(max-width: 700px) {
  .case-body { grid-template-columns: 1fr; gap: 25px; padding-top: 30px; }
  .case-sidebar { position: static; }
  .case-sidepanel dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
  .case-sidepanel dl > div + div { margin: 0; }
  .case-sidepanel .case-tags { padding-top: 15px; }
}
@media(max-width: 600px) {
  .case-study { padding-top: 23px; padding-bottom: 55px; }
  .case-breadcrumb { font-size: 8px; gap: 7px; }
  .case-heading { padding-top: 31px; padding-bottom: 28px; gap: 23px; }
  .case-heading h1 { font-size: 42px; margin: 18px 0; }
  .case-intro { font-size: 13px; }
  .case-domain { font-size: 9px; padding: 6px 11px; }
  .case-heading-action .button { min-height: 46px; font-size: 11px; }
  .case-access { font-size: 11px; }
  .case-media { border-radius: 10px; margin: 0 -7px; }
  .media-toolbar { padding: 11px 14px; min-height: 45px; gap: 10px; }
  .media-toolbar-label { font-size: 7px; gap: 9px; }
  .window-dots { gap: 3px; }
  .window-dots i { width: 4px; height: 4px; }
  .media-expand { font-size: 9px; gap: 7px; }
  .media-preview { height: 340px; padding: 14px; }
  .case-media[data-visual="logo"] .media-preview > img { max-width: 210px; max-height: 210px; }
  .preview-hint { font-size: 8px; opacity: 1; transform: none; padding: 6px 9px; right: 10px; bottom: 10px; }
  .media-caption { padding: 12px 13px; gap: 10px; }
  .media-caption > p { font-size: 9px; }
  .media-controls { gap: 9px; }
  .media-controls button { width: 32px; height: 32px; }
  .media-controls [data-gallery-count] { font-size: 9px; min-width: 27px; }
  .media-thumbnails { padding: 10px 13px 13px; gap: 7px; }
  .media-thumbnail { flex-basis: 84px; height: 60px; padding: 4px; }
  .case-story { padding: 25px 22px; border-radius: 11px; }
  .case-story h2 { font-size: 34px; margin: 14px 0 20px; }
  .case-story p { font-size: 13px; }
  .case-story h3 { font-size: 21px; }
  .case-highlights li { font-size: 12px; }
  .case-story-section { margin-bottom: 27px; padding-bottom: 27px; }
  .case-story .case-benefit { padding: 20px; }
  .case-private-note p { font-size: 11px; }
  .case-sidepanel dd { font-size: 11px; }
  .case-source { overflow-wrap: anywhere; }
  .lightbox-shell { padding: 13px 12px; }
  .lightbox-toolbar { gap: 10px; }
  .lightbox-toolbar h2 { font-size: 14px; }
  .lightbox-toolbar > div { gap: 13px; }
  .lightbox-toolbar button { width: 35px; height: 35px; font-size: 24px; }
  .lightbox-stage { position: relative; gap: 0; padding-bottom: 53px; }
  .lightbox-stage > button { position: absolute; bottom: 0; width: 39px; height: 39px; }
  .lightbox-stage > button:first-child { left: calc(50% - 50px); }
  .lightbox-stage > button:last-child { right: calc(50% - 50px); }
  .lightbox-caption { font-size: 10px; }
}
