/* Case study controls are additive; the approved portfolio design stays intact. */
.project-case-action { margin-top: 15px; }
.case-study-link { position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 36px; padding: 6px 15px; border: 1px solid #b7d1df; border-radius: 8px; background: #f0f7fb; color: #173e54; font-size: 14px; font-weight: 750; line-height: 1.5; transition: background .2s, border-color .2s; }
/* Keep a generous pointer target around the slimmer visible button. */
.case-study-link::before { content: ''; position: absolute; inset: -5px 0; }
.case-study-link:hover { background: #deedf5; border-color: #1d4963; }
.case-study-link:focus-visible, .case-page a:focus-visible { outline: 3px solid #1d4963; outline-offset: 5px; }
.case-study { padding-top: 35px; padding-bottom: calc(192px * var(--chapter-spacing-scale)); }
.case-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 42px; padding: 0; list-style: none; font-size: 14px; line-height: 1.6; color: #354852; }
.case-breadcrumb li + li::before { content: '/'; margin-right: 10px; color: #678391; }
.case-breadcrumb a { text-decoration: underline; text-underline-offset: 4px; }
.case-heading { max-width: 1100px; margin-bottom: 34px; }
.case-heading .eyebrow { color: #1d4963; font-size: 14px; letter-spacing: .12em; margin-bottom: 23px; }
.case-client { color: #000; font-size: clamp(20px,1.8vw,26px); font-weight: 800; line-height: 1.5; margin-bottom: 13px; word-break: keep-all; overflow-wrap: anywhere; }
.case-heading h1 { font-size: clamp(34px,3.4vw,58px); line-height: 1.35; font-weight: 800; color: #000; letter-spacing: -.045em; word-break: keep-all; overflow-wrap: anywhere; }
.case-summary { margin-top: 20px; max-width: 800px; font-size: 18px; line-height: 1.85; color: #202b31; word-break: keep-all; overflow-wrap: anywhere; }
.case-summary:empty { min-height: 1.85em; }
.case-project-layout { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(270px,1fr); gap: 35px; align-items: start; }
.case-film { margin: 0; min-width: 0; }
.case-film-link { display: block; position: relative; border-radius: 15px; overflow: hidden; background: #e4f0f6; }
.case-film img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.case-film-play { position: absolute; right: 22px; bottom: 22px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #173e54; background: #fff; box-shadow: 0 3px 18px #0002; }
.case-film-play svg { width: 21px; height: 21px; fill: currentColor; margin-left: 3px; }
.case-film-link:hover .case-film-play { color: #fff; background: #1d4963; }
.case-film figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; font-size: 14px; line-height: 1.7; color: #354852; }
.case-film figcaption a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #000; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.case-facts { padding: 28px; border: 1px solid #c3d9e6; border-radius: 15px; background: linear-gradient(145deg,#f4f9fc,#e7f2f8); }
.case-facts .eyebrow { font-size: 14px; letter-spacing: .1em; color: #1d4963; }
.case-facts-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.case-runtime { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: #173e54; font-size: 14px; font-weight: 600; line-height: 1.6; white-space: nowrap; font-variant-numeric: tabular-nums; }
.case-runtime svg { flex: 0 0 auto; width: 17px; height: 17px; }
.case-facts dl { margin: 21px 0 8px; }
.case-facts dl > div { padding: 15px 0; border-top: 1px solid #bdd3df; }
.case-facts dt { margin-bottom: 7px; font-size: 14px; color: #354852; line-height: 1.6; }
.case-facts dd { margin: 0; font-size: 18px; font-weight: 750; color: #000; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
.case-inquiry { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 48px; margin-top: 15px; border-top: 2px solid #1d4963; padding-top: 15px; font-size: 15px; font-weight: 750; color: #173e54; }
.case-reading { width: 100%; margin-top: calc(176px * var(--chapter-spacing-scale)); }
.case-text-section { position: relative; padding: calc(120px * var(--chapter-spacing-scale)) 0 0; }
.case-text-section + .case-text-section { margin-top: calc(152px * var(--chapter-spacing-scale)); }
.case-text-section::before, .case-neighbours::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: var(--chapter-rule-height); background: var(--chapter-rule); }
.case-text-section h2 { margin-bottom: 24px; font-size: clamp(25px,2.1vw,32px); line-height: 1.5; font-weight: 800; color: #000; letter-spacing: -.035em; }
.case-text-section p { max-width: 850px; font-size: 18px; line-height: 1.95; color: #111; word-break: keep-all; overflow-wrap: anywhere; }
.case-text-section p > strong { font-weight: 800; }
.case-text-section p + p { margin-top: 20px; }
.case-text-section p.case-empty-paragraph { min-height: 1.95em; }
.case-text-section .case-overview-subheading { max-width: 850px; margin: 0 0 18px; font-size: clamp(21px,1.7vw,26px); font-weight: 800; line-height: 1.6; color: #000; word-break: keep-all; overflow-wrap: anywhere; }
.case-text-section--overview #case-overview { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; max-width: 850px; margin-bottom: 72px; padding-bottom: 24px; font-size: clamp(30px,2.5vw,38px); font-weight: 700; letter-spacing: -.045em; }
.case-text-section--overview .case-overview-kicker { color: #52616a; font-size: 14px; font-weight: 500; line-height: 1.6; letter-spacing: .15em; white-space: nowrap; }
.case-text-section--overview .case-overview-subheading { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding: 12px 0; font-size: clamp(21px,1.7vw,26px); font-weight: 600; letter-spacing: -.035em; }
.case-text-section--overview .case-overview-label { flex: 0 1 auto; min-width: 0; }
.case-text-section--overview .case-overview-subheading::before { content: ''; flex: 0 0 16px; height: 1px; background: #708591; }
.case-text-section--overview .case-overview-subheading::after { content: ''; flex: 1 1 0; height: 1px; background: #708591; }
.case-text-section--overview p + .case-overview-subheading, .case-text-section--overview figure + .case-overview-subheading { margin-top: 64px; }
.case-overview-image { max-width: 850px; margin: 32px 0 0; }
.case-overview-image > a { display: block; border-radius: 12px; }
.case-overview-image img { display: block; width: 100%; height: auto; border: 1px solid #d3dfe6; border-radius: 12px; }
.case-overview-image-empty { width: 100%; aspect-ratio: 3 / 2; border: 1px solid #d3dfe6; border-radius: 12px; background: #fff; }
.case-return { margin-top: 52px; }
.case-return .text-link { display: inline-flex; flex-wrap: wrap; gap: 15px; min-height: 44px; font-size: 15px; }
.case-neighbours { position: relative; min-width: 0; margin-top: calc(160px * var(--chapter-spacing-scale)); padding-top: calc(112px * var(--chapter-spacing-scale)); }
.case-related-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.case-related-heading .eyebrow { margin-bottom: 12px; color: #1d4963; font-size: 14px; letter-spacing: .12em; }
.case-related-heading h2 { font-size: clamp(27px,2.4vw,38px); line-height: 1.45; font-weight: 800; }
.case-related-hint { margin-top: 12px; color: #354852; font-size: 15px; line-height: 1.7; }
.case-related-controls:not([hidden]) { display: flex; flex-shrink: 0; gap: 10px; }
.case-related-controls button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #9db8c8; border-radius: 50%; background: #fff; color: #173e54; font: inherit; font-size: 23px; cursor: pointer; }
.case-related-controls button:hover:not(:disabled) { background: #eaf4fa; border-color: #1d4963; }
.case-related-controls button:disabled { opacity: .35; cursor: default; }
.case-related-controls button:focus-visible, .case-related-track:focus-visible { outline: 3px solid #1d4963; outline-offset: 4px; }
.case-related-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px,30%,440px); align-items: start; gap: 24px; min-width: 0; margin: 28px -8px 0; padding: 8px 8px 22px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 8px; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #819eaf #e8f1f6; }
.case-related-track > li { min-width: 0; scroll-snap-align: start; }
.case-related-card { display: block; border-radius: 14px; }
.case-related-image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #e4f0f6; }
.case-related-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.case-related-arrow { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #173e54; font-size: 22px; }
.case-related-client { display: block; margin-top: 17px; color: #000; font-size: 18px; font-weight: 800; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.case-related-title { display: block; margin-top: 6px; color: #202b31; font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.case-related-card:hover .case-related-client { text-decoration: underline; text-underline-offset: 4px; }
.case-related-card:hover .case-related-arrow { background: #173e54; color: #fff; }
@media (max-width: 900px) and (min-width: 651px) {
  .case-project-layout { grid-template-columns: minmax(0,1.5fr) minmax(230px,1fr); gap: 24px; }
  .case-facts { padding: 22px; }
}
@media (max-width: 650px) {
  .project-case-action { margin-top: 13px; }
  .case-study-link { padding: 6px 14px; min-height: 36px; }
  .case-study { padding-top: 25px; padding-bottom: calc(128px * var(--chapter-spacing-scale)); }
  .case-breadcrumb ol { margin-bottom: 29px; }
  .case-heading { margin-bottom: 24px; }
  .case-heading .eyebrow { margin-bottom: 18px; }
  .case-client { font-size: 21px; margin-bottom: 12px; }
  .case-heading h1 { font-size: clamp(29px,7.4vw,40px); line-height: 1.42; }
  .case-summary { margin-top: 16px; font-size: 16px; line-height: 1.85; }
  .case-project-layout { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .case-film-link { border-radius: 11px; }
  .case-film-play { width: 46px; height: 46px; right: 15px; bottom: 15px; }
  .case-facts { padding: 23px; border-radius: 12px; }
  .case-facts dl > div { padding: 12px 0; }
  .case-facts dd { font-size: 17px; }
  .case-reading { margin-top: calc(120px * var(--chapter-spacing-scale)); }
  .case-text-section { padding-top: calc(84px * var(--chapter-spacing-scale)); }
  .case-text-section + .case-text-section { margin-top: calc(112px * var(--chapter-spacing-scale)); }
  .case-text-section h2 { font-size: 25px; margin-bottom: 20px; }
  .case-text-section p { font-size: 16px; line-height: 1.95; }
  .case-text-section .case-overview-subheading { font-size: 21px; margin-bottom: 16px; }
  .case-text-section--overview #case-overview { font-size: 29px; margin-bottom: 54px; padding-bottom: 20px; column-gap: 16px; }
  .case-text-section--overview .case-overview-kicker { letter-spacing: .08em; }
  .case-text-section--overview .case-overview-subheading { margin-bottom: 20px; padding: 10px 0; gap: 12px; }
  .case-text-section--overview .case-overview-subheading::before { flex-basis: 10px; }
  .case-text-section--overview p + .case-overview-subheading, .case-text-section--overview figure + .case-overview-subheading { margin-top: 48px; }
  .case-overview-image { margin-top: 26px; }
  .case-overview-image img, .case-overview-image > a, .case-overview-image-empty { border-radius: 9px; }
  .case-return { margin-top: 40px; }
  .case-neighbours { margin-top: calc(112px * var(--chapter-spacing-scale)); padding-top: calc(80px * var(--chapter-spacing-scale)); }
  .case-related-heading { align-items: flex-start; gap: 16px; }
  .case-related-heading h2 { font-size: 27px; }
  .case-related-hint { font-size: 14px; }
  .case-related-controls:not([hidden]) { gap: 8px; margin-top: 32px; }
  .case-related-controls button { width: 44px; height: 44px; font-size: 21px; }
  .case-related-track { grid-auto-columns: 86%; gap: 18px; margin-top: 22px; }
  .case-related-client { font-size: 17px; }
  .case-related-title { font-size: 15px; }
}
/* All case pages share the approved compact label/value layout.
   Keep all five template rows, leaving unknown values visibly blank.
   With 1.8:1 columns and a 16:9 thumbnail, the panel ratio is 80:81.
   Intrinsic content can grow the panel when more space is needed. */
.case-project-layout--detailed .case-facts {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px,1.45vw,28px);
}
.case-project-layout--detailed .case-facts dl {
  flex: 1;
  display: grid;
  grid-template-rows: repeat(5,minmax(min-content,1fr));
  margin: 12px 0 0;
}
.case-project-layout--detailed .case-facts dl > div {
  display: grid;
  grid-template-columns: minmax(100px,.8fr) minmax(0,1.2fr);
  align-items: center;
  column-gap: 12px;
  padding: 0;
}
.case-project-layout--detailed .case-facts dt { margin: 0; font-size: clamp(12px,.75vw,14px); line-height: 1.6; font-weight: 700; color: #36596e; }
.case-project-layout--detailed .case-facts dd { font-size: clamp(15px,1.05vw,18px); line-height: 1.6; }
.case-project-layout--detailed .case-facts dd:empty { min-height: 1.6em; }
.case-project-layout--detailed .case-facts dl > div:first-child dd { font-size: clamp(16px,1.15vw,20px); font-weight: 800; }
.case-project-layout--detailed .case-inquiry { flex-shrink: 0; min-height: 44px; margin-top: 10px; padding-top: 12px; }
@media (min-width: 1200px) {
  .case-project-layout--detailed .case-facts { aspect-ratio: 80 / 81; }
}
@media (max-width: 1199px) {
  .case-project-layout--detailed { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .case-project-layout--detailed .case-facts { aspect-ratio: auto; }
  .case-project-layout--detailed .case-facts dl { grid-template-rows: none; }
  .case-project-layout--detailed .case-facts dl > div { grid-template-columns: minmax(140px,.55fr) minmax(0,1.45fr); padding: 16px 0; }
  .case-project-layout--detailed .case-facts dt { font-size: 13px; }
  .case-project-layout--detailed .case-facts dd { font-size: 17px; }
}
@media (max-width: 650px) {
  .case-project-layout--detailed .case-facts dl > div { display: block; padding: 15px 0; }
  .case-project-layout--detailed .case-facts dt { margin-bottom: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .case-study-link { transition: none; }
}
