:root { --case-paper: #dededc; --case-wide: min(74vw, 1440px); --case-media: min(57.5vw, 1120px); --case-copy: min(43vw, 640px); }
.case-study-page { color: #252525; background: var(--case-paper); }
.case-study-page .skip-link { background: var(--case-paper); }
.case-header { position: fixed; z-index: 60; inset: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px 28px 28px; min-height: 88px; isolation: isolate; overflow-x: clip; }
.case-header::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(var(--case-paper) 0%, #dededcee 55%, #dededc00 100%); pointer-events: none; }
.case-header-left, .case-header-right { display: flex; align-items: center; gap: 26px; font-size: 14px; line-height: 20px; }
.case-header-right { justify-content: flex-end; }
.case-header a, .case-header button { -webkit-tap-highlight-color: transparent; }
.case-header button { padding: 5px 9px; margin: -5px -9px; background: transparent; border: 1px solid transparent; border-radius: 8px; font: inherit; }
.case-header-left > a, .case-header-left > button, .case-header-right > a, .case-header-right > button { display: inline-flex; align-items: center; padding: 5px 9px; margin: -5px -9px; border: 1px solid transparent; border-radius: 8px; font: inherit; }
.case-header-right button[aria-expanded='true'] { border-color: #c5c5c2; }
.case-header-left a:hover, .case-header-right a:hover { opacity: .55; }
.case-brand.wordmark { font-size: 34px; letter-spacing: -2.8px; margin-top: 2px; transition: opacity .24s .12s, transform .38s .12s, filter .24s .12s, visibility 0s; }
.case-header.dock-is-open .case-brand { opacity: 0; transform: translateX(-10px) scale(.92); filter: blur(6px); visibility: hidden; transition-delay: 0s, 0s, 0s, .24s; }
.case-project-dock { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); visibility: hidden; pointer-events: none; }
.case-header.dock-is-open .case-project-dock, .case-header.dock-is-animating .case-project-dock { visibility: visible; }
.case-header.dock-is-open .case-project-dock { pointer-events: auto; }
.case-header.dock-is-animating .case-project-dock { pointer-events: none; }
.project-dock-links { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid #ffffff26; border-radius: 15px; background: #ffffff5c; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 2px 15px #00000003; transform-origin: 50% 50%; will-change: transform, opacity, filter; }
.project-dock-item { position: relative; display: grid; place-items: center; width: 45px; height: 38px; border-radius: 6px; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.project-dock-item img { display: block; width: 34px; height: 30px; object-fit: cover; border-radius: 4px; box-shadow: 0 1px 3px #00000024; }
.project-dock-item:hover, .project-dock-item:focus-visible { transform: translateY(3px) scale(1.2); }
.project-dock-item[aria-current='page']::after { content: ''; position: absolute; width: 3px; height: 3px; background: currentColor; bottom: -3px; left: calc(50% - 1.5px); border-radius: 50%; }
.dock-label { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); padding: 6px 9px; border-radius: 5px; background: #ffffffdf; font-size: 10px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; }
.project-dock-item:hover .dock-label, .project-dock-item:focus-visible .dock-label { opacity: 1; }
.case-header .dock-close { position: absolute; top: 17px; right: calc(100% + 13px); width: 22px; height: 22px; display: grid; place-items: center; padding: 0; margin: 0; border: 0; background: #ffffff64; font-size: 20px; line-height: 1; border-radius: 50%; color: #7a7a78; opacity: 0; transform: scale(.5); transition: opacity .12s, transform .18s; }
.case-header.dock-is-open .dock-close { opacity: 1; transform: scale(1); transition-delay: .4s; }
#case-content { min-height: 75svh; padding-top: 160px; outline: none; }
.case-sr-title { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.case-hero { width: var(--case-wide); margin: 0 auto; border-radius: 22px; overflow: hidden; background: #d3d3cf; }
.case-hero img { display: block; width: 100%; height: auto; }
.case-intro, .stage-copy { width: var(--case-copy); margin-left: auto; margin-right: auto; }
.case-intro { margin-top: 128px; margin-bottom: 164px; }
.case-intro p, .stage-copy p { margin: 0 0 24px; font-size: 15px; line-height: 1.48; letter-spacing: .005em; }
.case-intro .case-lead { margin-bottom: 25px; }
.case-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 40px 0 0; font-size: 10px; line-height: 1.6; }
.case-meta dt { color: #80807c; margin-bottom: 7px; }
.case-meta dd { margin: 0; }
.case-meta a { display: inline-block; border-bottom: 1px solid #b6b6b1; }
.case-stage { margin: 0 0 150px; scroll-margin-top: 115px; }
.stage-label { display: block; color: #84847e; font: 9px/1.5 var(--mono); margin-bottom: 20px; text-transform: uppercase; letter-spacing: .03em; }
.stage-copy h2 { margin: 0 0 26px; font-size: 25px; line-height: 1.15; font-weight: 400; letter-spacing: -.7px; }
.stage-copy p { margin-bottom: 0; }
.case-media { position: relative; width: var(--case-media); margin: 68px auto 0; }
.case-media img, .case-media video { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 4px 18px #0000000b; }
.case-media video { object-fit: contain; background: #171715; }
.case-media video:focus-visible { outline: 2px solid #45453f; outline-offset: 5px; }
.case-media.is-mobile { width: min(290px, 50vw); }
.case-media figcaption { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; font: 9px/1.5 var(--mono); color: #85857f; }
.case-media figcaption span:first-child { max-width: 85%; }
.case-stage.is-final .stage-label { color: #45453f; }
.case-stage.is-final .stage-label::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #747765; margin-right: 8px; }
.case-stage.is-final .case-media:first-of-type { width: var(--case-wide); }
.case-stage.is-final .case-media.is-mobile:first-of-type { width: min(290px, 50vw); }
.case-stage-nav { width: var(--case-copy); margin: -100px auto 150px; display: flex; flex-wrap: wrap; gap: 10px 20px; font: 9px var(--mono); color: #84847e; }
.case-stage-nav a:hover { color: #252525; }
.case-stage-nav a { padding-bottom: 4px; border-bottom: 1px solid #bdbdb6; }
.other-projects { width: min(1440px, calc(100% - 56px)); margin: 180px auto 90px; scroll-margin-top: 112px; }
.other-projects-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-bottom: 76px; }
.other-projects h2 { margin: 0; font-size: clamp(68px, 8.6vw, 124px); line-height: .88; letter-spacing: -.065em; font-weight: 500; }
.other-projects-intro { max-width: 370px; padding-top: 3px; }
.other-projects-intro p { margin: 0 0 23px; font-size: clamp(17px, 1.65vw, 23px); line-height: 1.2; letter-spacing: -.025em; }
.other-projects-all { display: inline-flex; align-items: center; min-height: 39px; padding: 10px 16px; border-radius: 5px; background: #eeeee9; font-size: 13px; line-height: 1.2; transition: background-color .2s; }
.other-projects-all:hover { background: #f8f8f4; }
.other-projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.other-project-card { display: block; min-width: 0; border-radius: 12px; }
.other-project-image { width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 12px; background: #d5d5d1; }
.other-project-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s cubic-bezier(.2,.65,.3,1); }
.other-project-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 2px 0; }
.other-project-caption h3 { margin: 0; font-size: 17px; line-height: 1.25; letter-spacing: -.035em; font-weight: 400; }
.other-project-caption span { color: #787873; font-size: 10px; line-height: 1.4; white-space: nowrap; }
.other-project-card:hover .other-project-image img, .other-project-card:focus-visible .other-project-image img { transform: scale(1.015); }
.other-project-card:focus-visible { outline: 1px solid #45453f; outline-offset: 6px; }
.case-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 35px 28px 28px; font-size: 11px; color: #6c6c67; }
.case-pending { width: var(--case-copy); margin: 10svh auto 26svh; }
.case-pending h1 { font-size: 64px; letter-spacing: -.06em; font-weight: 400; }
.case-pending p { font-size: 15px; line-height: 1.5; }
.case-pending a { display: inline-block; margin-top: 25px; border-bottom: 1px solid #aaa; padding-bottom: 8px; font-size: 12px; }
@media (max-width: 900px) {
  :root { --case-wide: calc(100vw - 80px); --case-media: calc(100vw - 160px); --case-copy: min(64vw,640px); }
  .case-header-left, .case-header-right { font-size: 12px; gap: 18px; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .case-project-dock.has-seven-projects .project-dock-links { gap: 5px; }
  .case-project-dock.has-seven-projects .project-dock-item { width: 35px; }
  .case-project-dock.has-seven-projects .dock-close { display: none; }
}
@media (max-width: 600px) {
  :root { --case-wide: calc(100vw - 32px); --case-media: calc(100vw - 48px); --case-copy: calc(100vw - 48px); }
  .case-header { padding: 19px 18px 28px; min-height: 78px; }
  .case-header-left, .case-header-right { font-size: 11px; gap: 14px; }
  .case-header-left a + a { display: none; }
  .case-header-right a { display: none; }
  .case-brand.wordmark { font-size: 30px; }
  .case-project-dock { top: 9px; }
  .project-dock-links { padding: 7px 9px; gap: 3px; border-radius: 13px; }
  .project-dock-item { width: 35px; height: 32px; }
  .project-dock-item img { width: 28px; height: 26px; }
  .case-header .dock-close { top: 15px; right: calc(100% + 7px); width: 19px; height: 19px; font-size: 17px; }
  .case-project-dock.has-many-projects .dock-close { display: none; }
  .case-project-dock.has-six-projects .project-dock-item { width: 30px; }
  .case-project-dock.has-seven-projects .project-dock-links { gap: 2px; }
  .case-project-dock.has-seven-projects .project-dock-item { width: 26px; }
  .case-project-dock.has-seven-projects .project-dock-item img { width: 24px; }
  .dock-label { font-size: 8px; }
  #case-content { padding-top: 116px; }
  .case-hero { border-radius: 12px; }
  .case-intro { margin-top: 72px; margin-bottom: 112px; }
  .case-intro p, .stage-copy p { font-size: 14px; line-height: 1.55; }
  .case-meta { gap: 24px; margin-top: 32px; font-size: 9px; }
  .stage-copy h2 { font-size: 24px; }
  .case-stage { margin-bottom: 100px; }
  .case-media { margin-top: 40px; }
  .case-media figcaption { font-size: 8px; }
  .case-media.is-mobile { width: min(260px,65vw); }
  .case-stage.is-final .case-media.is-mobile:first-of-type { width: min(260px,65vw); }
  .case-stage-nav { margin-top: -60px; margin-bottom: 90px; font-size: 8px; gap: 10px 16px; }
  .other-projects { width: calc(100% - 48px); margin-top: 112px; margin-bottom: 56px; scroll-margin-top: 100px; }
  .other-projects-heading { grid-template-columns: 1fr; gap: 32px; margin-bottom: 38px; }
  .other-projects h2 { font-size: clamp(62px, 15vw, 84px); }
  .other-projects-intro { max-width: 310px; padding: 0; }
  .other-projects-intro p { font-size: 17px; margin-bottom: 18px; }
  .other-projects-grid { grid-template-columns: 1fr; gap: 30px; }
  .other-project-image { border-radius: 9px; }
  .other-project-caption { padding-top: 12px; }
  .other-project-caption h3 { font-size: 16px; }
  .case-footer { flex-wrap: wrap; padding: 24px 24px 28px; gap: 30px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .case-project-dock, .case-brand, .project-dock-item, .dock-label, .case-header .dock-close { transition: none !important; }
  .project-dock-links { will-change: auto; }
  .case-header.dock-is-open .case-brand { filter: none; transform: none; }
  .other-project-image img, .other-projects-all { transition: none; }
  .other-project-card:hover .other-project-image img, .other-project-card:focus-visible .other-project-image img { transform: none; }
}

.case-header-left .mobile-all-work { display: none; }
.case-header-right .case-contact-link { display: inline-flex; }
.case-contact-mobile { display: none; }
@media (max-width: 600px) {
  .case-header-left a { display: none; }
  .case-header-left .mobile-all-work { display: block; }
  .case-header-right .case-contact-link { display: none; }
  .case-contact-mobile { position: fixed; z-index: 66; right: 104px; bottom: max(24px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; min-width: 76px; height: 36px; padding: 0 16px; border: 1px solid #d1d1cb; border-radius: 20px; background: #eeeee9; color: #282825; font-size: 12px; box-shadow: 0 4px 14px #22222208; }
}

.case-study-page[data-project="03"] .case-stage.is-final .case-media img { background: #f7f6f3; }
.case-study-page[data-project="04"] .case-media img { background: #000; }

@media (max-width: 360px) {
  .project-dock-links { padding-inline: 7px; }
  .project-dock-item { width: 30px; }
  .case-project-dock.has-many-projects .project-dock-item { width: 28px; }
  .case-project-dock.has-six-projects .project-dock-item { width: 24px; }
  .case-project-dock.has-six-projects .project-dock-item img { width: 22px; height: 24px; }
  .case-project-dock.has-seven-projects .project-dock-links { gap: 1px; padding-inline: 5px; }
  .case-project-dock.has-seven-projects .project-dock-item { width: 22px; }
  .case-project-dock.has-seven-projects .project-dock-item img { width: 20px; }
}
