* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Proxima Nova', ProximaNova, Arial, sans-serif; }
a { color: inherit; }
.qcd-case { --case-pad: 10.5vw; --ink: #171818; --paper: #f5f3ed; --line: rgba(23,24,24,.2); color: var(--ink); background: #fff; }
.case-nav { height: 82px; padding: 0 5.6vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fff; }
.wordmark { color: inherit; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.nav-link { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; text-decoration: none; }
.nav-link span { font-size: 17px; transition: transform .2s; }
.nav-link:hover span { transform: translate(2px,-2px); }
.qcd-hero { padding: 60px var(--case-pad) 0; background: #fff; }
.qcd-heading { display: grid; grid-template-columns: 1fr 1.4fr; align-items: end; gap: 35px; padding-bottom: 44px; }
.back-link { grid-column: 1 / -1; width: fit-content; padding-bottom: 7px; border-bottom: 1px solid var(--ink); font-size: 11px; text-decoration: none; }
.qcd-heading h1 { margin: 0; font-size: clamp(48px, 7vw, 92px); line-height: .98; letter-spacing: -.04em; }
.qcd-heading > p { max-width: 540px; margin: 0 0 10px; font-size: 16px; line-height: 1.55; }
.qcd-cover { width: 100%; margin: 0; background: var(--paper); }
.qcd-cover img, .qcd-cover-video { display: block; width: 100%; max-height: 76vh; object-fit: cover; object-position: center 45%; background: var(--paper); }
.qcd-gallery { padding: 22px var(--case-pad) 110px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; background: #fff; }
.qcd-gallery figure { grid-column: span 2; height: clamp(220px, 24vw, 420px); margin: 0; padding: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.qcd-gallery .gallery-feature { grid-column: 1 / -1; height: auto; padding: 0 10px 10px; }
.qcd-gallery figure:nth-child(2), .qcd-gallery figure:nth-child(3) { grid-column: span 3; height: clamp(440px, 48vw, 840px); }
.qcd-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qcd-gallery .gallery-feature img { height: auto; object-fit: contain; }
.qcd-story { padding: 0 var(--case-pad) 120px; background: #fff; }
.story-heading { display: grid; grid-template-columns: .7fr 1.3fr; gap: 7vw; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.story-heading > span { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.story-heading h2 { max-width: 720px; margin: 0; font-size: clamp(32px, 4vw, 54px); line-height: 1.04; letter-spacing: -.035em; }
.qcd-story article { display: grid; grid-template-columns: .7fr 1.3fr; gap: 7vw; padding: 30px 0 36px; border-bottom: 1px solid var(--line); }
.story-label { display: flex; align-items: baseline; gap: 16px; }
.story-label > span { color: #777; font-size: 10px; }
.story-label h3 { margin: 0; font-size: clamp(22px, 2.5vw, 32px); line-height: 1.12; }
.qcd-story article > div:last-child { max-width: 670px; }
.qcd-story article p { max-width: 670px; margin: 0 0 14px; font-size: 15px; line-height: 1.8; }
.qcd-story article p:last-child { margin-bottom: 0; }
.case-footer { min-height: 135px; padding: 34px 5.6vw; display: flex; align-items: center; justify-content: space-between; gap: 25px; background: var(--ink); color: var(--paper); }
.case-footer > a:last-child { font-size: 13px; text-decoration: none; }
.case-footer > a:last-child:hover { color: #b5f542; }
@media (max-width: 850px) {
  .case-nav { height: 72px; padding: 0 6vw; }
  .qcd-case { --case-pad: 7vw; }
  .qcd-heading { grid-template-columns: 1fr 1fr; gap: 24px; }
  .qcd-gallery figure:nth-child(n) { grid-column: span 3; }
  .qcd-gallery .gallery-feature { grid-column: 1 / -1; }
  .qcd-gallery figure:nth-child(2), .qcd-gallery figure:nth-child(3) { height: clamp(300px, 58vw, 520px); }
  .qcd-gallery figure:nth-child(n+4) { height: clamp(180px, 30vw, 280px); }
}
@media (max-width: 540px) {
  .case-nav { padding: 0 7vw; }
  .wordmark { max-width: 150px; font-size: 10px; }
  .nav-link { gap: 6px; font-size: 10px; }
  .qcd-hero { padding: 38px 7vw 0; }
  .qcd-heading { grid-template-columns: 1fr; gap: 18px; padding-bottom: 28px; }
  .back-link { grid-column: 1; }
  .qcd-heading h1 { font-size: clamp(46px, 13vw, 68px); }
  .qcd-heading > p { margin: 0; font-size: 14px; }
  .qcd-cover img, .qcd-cover-video { max-height: 58vh; }
  .qcd-gallery { grid-template-columns: 1fr; padding: 12px 7vw 70px; gap: 8px; }
  .qcd-gallery figure:nth-child(n) { grid-column: 1; height: auto; padding: 0; }
  .qcd-gallery figure img { height: auto; }
  .qcd-gallery .gallery-feature img { width: 100%; }
  .qcd-story { padding: 0 7vw 80px; }
  .story-heading, .qcd-story article { grid-template-columns: 1fr; gap: 16px; }
  .story-heading { padding-bottom: 22px; }
  .qcd-story article { padding: 24px 0 30px; }
  .case-footer { min-height: 110px; align-items: flex-start; flex-direction: column; padding: 28px 7vw; }
}
