/* Each numbered series occupies one desktop row or two mobile rows. */
.rebrand-ordered-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 18px; }
.rebrand-image { min-width: 0; }
.rebrand-image .zoom-image { border: 1px solid #aed43435; border-radius: 12px; background: #131710; transition: border-color .25s, box-shadow .25s; }
.rebrand-ordered-grid .zoom-image { aspect-ratio: 1; }
.rebrand-ordered-grid .zoom-image img { width: 100%; height: 100%; object-fit: contain; }
.rebrand-image .zoom-image:hover img { transform: none; }
.rebrand-image .zoom-image:hover, .rebrand-image .zoom-image:focus-visible { border-color: #aed43490; box-shadow: 0 0 24px #aed43418; }
.rebrand-image .zoom-image > span { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; font-size: 18px; opacity: 0; background: #11170eeb; transition: opacity .2s; }
.rebrand-image .zoom-image:hover > span, .rebrand-image .zoom-image:focus-visible > span { opacity: 1; }
.rebrand-ordered-grid figcaption { margin-top: 10px; color: #aab99b; font-size: 11px; letter-spacing: 1px; }
.rebrand-applications { grid-column: 1 / -1; min-width: 0; padding-top: 28px; border-top: 1px solid #aed43430; }
.rebrand-applications > h3 { margin-bottom: 24px; font-size: clamp(25px, 3vw, 36px); line-height: 1.2; letter-spacing: -.8px; }
.rebrand-application-grid .zoom-image { aspect-ratio: 4 / 5; }
.rebrand-application-grid figcaption { letter-spacing: 0; }
.rebrand-archive { grid-column: 1 / -1; min-width: 0; margin-top: 20px; border-block: 1px solid #aed43430; }
.rebrand-archive > h3 { margin: 0; padding: 22px 0; font-size: 14px; font-weight: 600; color: #b9c3ae; }
.rebrand-archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; padding: 10px 0 30px; }
.rebrand-archive-grid img { height: auto; object-fit: contain; }
.rebrand-videos { grid-column: 1 / -1; min-width: 0; padding-top: 28px; border-top: 1px solid #aed43430; scroll-margin-top: 110px; }
.rebrand-videos-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.rebrand-videos-heading h3 { margin-top: 12px; font-size: clamp(25px, 3vw, 36px); line-height: 1.2; letter-spacing: -.8px; }
.rebrand-videos-heading > p { color: #aab99b; font-size: 11px; line-height: 1.7; }
.rebrand-video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.rebrand-video-card { display: block; min-width: 0; overflow: hidden; border: 1px solid #aed43440; border-radius: 12px; background: #1b1e16; color: inherit; transition: border-color .25s, box-shadow .25s; }
.rebrand-video-thumbnail { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #090b08; }
.rebrand-video-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.rebrand-video-trigger { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; cursor: pointer; }
.rebrand-video-trigger[hidden], .rebrand-video-close[hidden] { display: none; }
.rebrand-video-thumbnail iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.rebrand-video-trigger:focus-visible { outline: 2px solid #aed434; outline-offset: -4px; }
.rebrand-video-close { display: block; margin-top: 9px; padding: 5px 0; border: 0; background: transparent; color: #c3dd98; font: inherit; font-size: 11px; cursor: pointer; }
.rebrand-video-close:focus-visible { outline: 2px solid #aed434; outline-offset: 3px; }
.rebrand-video-card.is-playing .rebrand-video-hint { display: none; }
.rebrand-video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 48px; height: 36px; border-radius: 10px; background: #ee1717ed; color: #fff; box-shadow: 0 3px 12px #0006; }
.rebrand-video-play svg { width: 25px; height: 25px; }
.rebrand-video-badge { position: absolute; bottom: 9px; left: 9px; padding: 4px 7px; border-radius: 4px; font-size: 8px; line-height: 1.3; background: #080b08dc; color: #fff; }
.rebrand-video-caption { padding: 15px; border-top: 1px solid #aed43425; }
.rebrand-video-caption h4 { font-size: 13px; line-height: 1.5; font-weight: 600; }
.rebrand-video-caption > span { display: flex; justify-content: space-between; margin-top: 9px; color: #b9ce93; font-size: 10px; }
.rebrand-video-card:focus-within { border-color: #aed434; }
@media (hover: hover) and (pointer: fine) {
  .rebrand-video-card:hover { border-color: #aed434; box-shadow: 0 0 22px #aed43420; }
}
.case-page[data-project="cmg-rebrand"] .case-gallery > .section-top { gap: 20px; align-items: start; }
.case-page[data-project="cmg-rebrand"] .case-gallery > .section-top .small { text-align: right; }
@media (max-width: 1000px) {
  .rebrand-video-card.is-playing { grid-column: 1 / -1; }
  .rebrand-video-card.is-playing .rebrand-video-thumbnail { aspect-ratio: auto; height: min(70svh, 620px); min-height: 260px; }
}
@media (max-width: 800px) {
  .rebrand-ordered-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .rebrand-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
}
@media (max-width: 600px) {
  .rebrand-ordered-grid { gap: 20px 10px; }
  .rebrand-image .zoom-image { border-radius: 9px; }
  .rebrand-ordered-grid figcaption { margin-top: 8px; font-size: 10px; }
  .rebrand-archive-grid { grid-template-columns: 1fr; }
  .rebrand-videos-heading { display: block; }
  .rebrand-videos-heading > p { margin-top: 12px; font-size: 10px; }
  .rebrand-video-caption { padding: 12px 10px; }
  .rebrand-video-caption h4 { font-size: 12px; }
  .rebrand-video-play { width: 40px; height: 30px; border-radius: 8px; }
  .rebrand-video-badge { font-size: 7px; bottom: 6px; left: 6px; }
  .case-page[data-project="cmg-rebrand"] .case-gallery > .section-top { display: block; }
  .case-page[data-project="cmg-rebrand"] .case-gallery > .section-top .small { display: block; text-align: left; margin-top: 12px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .rebrand-video-card { transition: none; }
}
