/* Case studies: a large photographic canvas with a compact editorial story. */
body.case-study { --container-max: 1440px; }
body.case-study::before { opacity: .018; }
.case-page.container { padding: 48px clamp(20px, 4vw, 64px) 40px; }
.case-crumb { display: inline-flex; align-items: center; min-height: 32px; margin-bottom: 28px; color: var(--text-secondary); font-size: .82rem; }
.case-crumb:hover { color: var(--text-white); }
.case-hero { padding-bottom: 0; }
.case-hero > div { display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 8%; align-items: start; margin-bottom: 40px; }
.case-kicker { margin: 0 0 18px; color: var(--text-secondary); font-size: .8rem; font-weight: 500; line-height: 1.5; }
.case-hero .case-kicker { grid-column: 1; grid-row: 1; }
.case-title { grid-column: 1; grid-row: 2 / 4; margin: 0; color: var(--text-white); font-size: clamp(3.6rem, 7.6vw, 7.3rem); font-weight: 500; line-height: .98; letter-spacing: -.065em; text-transform: none; }
.case-intro { grid-column: 2; grid-row: 1 / 3; max-width: 32ch; margin: 0; color: var(--text-primary); font-size: clamp(1.1rem, 1.65vw, 1.45rem); line-height: 1.5; text-wrap: pretty; }
.case-links { grid-column: 2; grid-row: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.case-live-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 19px; border: 1px solid transparent; border-radius: 6px; background: var(--signal-vermilion); color: #fff; font-size: .86rem; font-weight: 600; text-decoration: none; transition: background-color .2s ease; }
.case-live-link:hover { background: var(--signal-vermilion-hover); }
.case-live-link--quiet { border-color: var(--line-medium); background: transparent; color: var(--text-primary); }
.case-live-link--quiet:hover { background: var(--bg-card-hover); }
.case-hero__asset { margin: 0; }
.case-hero__asset picture { display: block; overflow: hidden; border-radius: 10px; background: var(--bg-surface); }
.case-hero__asset img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.case-hero__caption { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 16px 0; color: var(--text-secondary); font-size: .74rem; }
.case-story { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(230px, .7fr); gap: 12%; padding: clamp(52px, 6vw, 88px) 0; }
.case-story__body h2, .case-section__header h2 { margin: 0 0 24px; max-width: 23ch; color: var(--text-white); font-size: clamp(1.9rem, 3.2vw, 2.85rem); font-weight: 500; line-height: 1.14; letter-spacing: -.045em; text-wrap: pretty; }
.case-story__body p:not(.case-kicker) { max-width: 63ch; margin: 0 0 18px; color: var(--text-secondary); font-size: 1rem; line-height: 1.8; }
.case-story__body p:last-child { margin-bottom: 0; }
.case-panel { align-self: start; margin-top: 38px; border-top: 1px solid var(--line-medium); }
.case-panel__row { padding: 18px 0; border-bottom: 1px solid var(--line-subtle); }
.case-panel__label { display: block; margin-bottom: 7px; color: var(--text-secondary); font-size: .75rem; }
.case-panel__value { color: var(--text-primary); font-size: .9rem; line-height: 1.55; }
.case-detail { margin: 0; }
.case-detail__heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.case-detail__heading h2 { margin: 0; font-weight: 500; font-size: 1.15rem; letter-spacing: -.02em; }
.case-detail__heading a { padding: 8px 0; font-size: .8rem; color: var(--text-secondary); text-decoration: underline; text-underline-offset: 4px; }
.case-detail__canvas { padding: clamp(16px, 4vw, 56px); border-radius: 10px; background: var(--case-ground, #dcd9d0); }
.case-browser { display: block; overflow: hidden; border-radius: 7px; box-shadow: 0 20px 50px rgb(0 0 0 / .18); background: #fff; }
.case-browser__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #eeedeb; }
.case-browser__bar i { width: 6px; height: 6px; border-radius: 50%; background: #b6b5b2; }
.case-browser__bar span { margin-left: 10px; color: #585957; font-size: 10px; line-height: 1; }
.case-browser img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; }
.case-detail figcaption { max-width: 76ch; padding-top: 16px; color: var(--text-secondary); font-size: .82rem; line-height: 1.65; }
.case-section { padding: clamp(56px, 6vw, 88px) 0; }
.case-section__header { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; align-items: start; margin-bottom: 35px; }
.case-section__header .case-kicker { padding-top: 7px; }
.case-section__header h2 { max-width: 25ch; margin: 0; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.case-grid article { padding: 22px 0 0; border-top: 1px solid var(--line-medium); }
.case-grid__index { color: var(--text-secondary); font-size: .75rem; }
.case-grid h3 { margin: 22px 0 12px; color: var(--text-white); font-size: 1.12rem; line-height: 1.3; font-weight: 500; letter-spacing: -.025em; }
.case-grid p { margin: 0; color: var(--text-secondary); font-size: .94rem; line-height: 1.75; }
.case-outro { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 34px 0; border-top: 1px solid var(--line-medium); border-bottom: 1px solid var(--line-medium); }
.case-outro h2 { max-width: 30ch; margin: 0; color: var(--text-white); font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 500; line-height: 1.2; letter-spacing: -.04em; }
.case-next { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 44px 0 12px; }
.case-next span { color: var(--text-secondary); font-size: .8rem; }
.case-next a { font-size: clamp(1.4rem, 3vw, 2.5rem); letter-spacing: -.04em; }
.case-next a:hover { color: var(--signal-vermilion); }
.case-study [id] { scroll-margin-top: 110px; }
@media (max-width: 900px) {
  .case-page.container { padding-top: 36px; }
  .case-hero > div { grid-template-columns: 1fr 1fr; gap: 0 30px; }
  .case-title { font-size: clamp(3.3rem, 8vw, 5rem); }
  .case-story { gap: 7%; }
  .case-grid { gap: 24px; }
}
@media (max-width: 640px) {
  .case-page.container { padding-top: 26px; }
  .case-crumb { margin-bottom: 22px; }
  .case-hero > div { display: block; margin-bottom: 28px; }
  .case-hero .case-kicker { margin-bottom: 12px; }
  .case-title { font-size: clamp(3.4rem, 14vw, 5.5rem); }
  .case-intro { max-width: 38ch; margin-top: 22px; font-size: 1.05rem; }
  .case-links { margin-top: 20px; gap: 9px; }
  .case-live-link { min-height: 46px; padding: 11px 14px; font-size: .8rem; }
  .case-hero__caption { font-size: .65rem; }
  .case-story { grid-template-columns: 1fr; gap: 26px; padding: 44px 0; }
  .case-panel { margin-top: 0; }
  .case-panel__row { display: grid; grid-template-columns: 1fr 1.65fr; gap: 16px; padding: 14px 0; }
  .case-panel__label { margin: 0; }
  .case-panel__value { font-size: .84rem; }
  .case-detail__canvas { padding: 12px; }
  .case-browser__bar { height: 24px; }
  .case-section { padding: 48px 0; }
  .case-section__header, .case-grid { grid-template-columns: 1fr; gap: 24px; }
  .case-section__header { gap: 0; }
  .case-grid article { padding-top: 16px; }
  .case-grid h3 { margin-top: 13px; }
  .case-outro { align-items: flex-start; flex-direction: column; gap: 20px; }
  .case-next { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .case-study *, .case-study *::before, .case-study *::after { scroll-behavior: auto !important; transition: none !important; }
}
