.site-shell--agencies:not(.site-shell--service-detail) {
  --agency-global-header-height: 48px;
}
.agency-page-title-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}
.site-shell--agencies:not(.site-shell--service-detail) .agency-campaign-wall__video {
  object-fit: cover !important;
  object-position: 50% 100% !important;
}
.agency-offer {
  box-sizing: border-box;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(96px, 10vw, 160px) var(--mp-layout-gutter, 4vw);
  background: #fff;
  color: var(--agency-ink);
}
.agency-offer__inner { max-width: 1280px; margin-inline: auto; text-align: center; }
.agency-offer__inner { width: 100%; }
.agency-offer + .agency-portfolio { padding-top: 0; }
.agency-offer .agency-offer__benefits { margin-bottom: 0; }
.agency-process-icon { width: 40px; height: 40px; color: var(--agency-accent); }
.agency-process-list li:has(.agency-process-icon) { align-content: start; }
@media (prefers-reduced-motion: no-preference) {
  .agency-process-list li.is-visible .agency-process-icon,
  .agency-process-list li:hover .agency-process-icon {
    animation: agency-icon-draw 1200ms ease-out both;
  }
  .agency-process-list li.is-visible .agency-process-icon__detail {
    animation: agency-icon-layers 1400ms ease-in-out 2;
  }
}
.site-shell--agencies .agency-offer .agency-offer__header { margin-bottom: 24px; padding-block: 0; border: 0; text-align: center; justify-items: center; }
.agency-offer .agency-offer__header h2 {
  margin: 12px auto 0;
  font-family: var(--mp-font-display, var(--agency-display));
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.025em;
}
.agency-offer__intro { max-width: 54ch; margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--agency-muted); }
.agency-offer__partnership { max-width: 64ch; margin: 0 auto 44px; }
.agency-offer__partnership h3 { margin: 0 0 16px; font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.2; }
.agency-offer__partnership p { margin: 0; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.6; color: var(--agency-muted); }
.agency-offer__benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-block: 36px; }
.agency-offer__benefit { padding-block: 12px; }
.agency-use-icon { display: block; width: 48px; height: 48px; margin: 0 auto 24px; color: var(--agency-accent); }
@media (min-width: 701px) and (max-width: 1000px) {
  .agency-offer__benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .agency-offer__benefit.is-visible .agency-use-icon,
  .agency-offer__benefit:hover .agency-use-icon {
    animation: agency-icon-draw 1100ms ease-out both;
  }
  .agency-offer__benefit.is-visible .agency-use-icon--sound path { animation: agency-icon-pulse 1600ms ease-in-out 2; transform-origin: center; }
  .agency-offer__benefit.is-visible .agency-use-icon--motion path:last-child { animation: agency-icon-layers 1600ms ease-in-out 2; }
  .agency-offer__benefit.is-visible .agency-use-icon--impact path { animation: agency-icon-pulse 900ms ease-in-out 2; transform-origin: center; }
}
@keyframes agency-icon-draw { from { stroke-dasharray: 180; stroke-dashoffset: 180; } to { stroke-dasharray: 180; stroke-dashoffset: 0; } }
@keyframes agency-icon-pulse { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.72); } }
@keyframes agency-icon-layers { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.agency-offer__benefit h3 { margin: 0 0 10px; font-size: 1.1rem; line-height: 1.25; }
.agency-offer__benefit p { max-width: 30ch; margin: 0 auto; font-size: 1rem; line-height: 1.55; color: var(--agency-muted); }
.agency-offer__actions { gap: 12px 28px; }
.agency-offer__work-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; }
.agency-offer__work-link:focus-visible { outline: 2px solid var(--agency-accent); outline-offset: 4px; }
.agency-offer__note { margin: 12px 0 0; color: var(--agency-muted); font-size: .8rem; }
@media (min-width: 1001px) and (min-height: 800px) and (prefers-reduced-motion: no-preference) {
  html.agency-motion-ready .agency-offer .agency-reveal { --agency-reveal-y: 16px; --agency-reveal-duration: 650ms; }
}
@media (max-width: 700px) {
  .agency-offer { padding-inline: 20px; }
  .agency-offer__benefits { grid-template-columns: 1fr; gap: 22px; }
  .agency-offer__actions .agency-button { white-space: normal; line-height: 1.3; padding-block: 12px; }
}
.agency-portfolio {
  padding: clamp(64px, 8vw, 128px) var(--mp-layout-gutter, 4vw) clamp(64px, 8vw, 128px);
  background: #fff;
  color: var(--agency-ink);
  scroll-margin-top: 90px;
}
.agency-portfolio__heading, .agency-portfolio__films {
  max-width: 1680px;
  margin-inline: auto;
}
.agency-portfolio__heading { margin-bottom: clamp(32px, 4vw, 64px); }
.agency-portfolio__heading h2 {
  margin: 12px 0 24px;
  font-family: var(--mp-font-display, var(--agency-display));
  font-size: clamp(2rem, 3.6vw, 4rem);
  line-height: .98;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -.025em;
}
.agency-portfolio__intro { font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--agency-muted); }
.agency-portfolio__films { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) clamp(20px, 3vw, 48px); }
.agency-film { min-width: 0; }
.agency-portfolio__films > .agency-transition-arrow,
.agency-portfolio__films > .agency-section--process { grid-column: 1 / -1; width: 100%; box-sizing: border-box; }
.agency-tv { grid-column: 1 / -1; width: min(100%, 1200px); margin-inline: auto; min-width: 0; }
.agency-tv .agency-film[hidden] { display: none !important; }
.agency-tv .agency-film__media {
  box-sizing: border-box;
  border: 7px solid #181818;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  background: #000;
}
.agency-tv .agency-film__media > * { transition: opacity 150ms ease; }
.agency-tv.is-switching .agency-film__media > * { opacity: 0; }
.agency-tv__steps { position: absolute; inset: 50% 16px auto; z-index: 4; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.agency-tv__step { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; background: rgba(0,0,0,.22); color: #fff; cursor: pointer; font: 400 1.5rem/1 sans-serif; pointer-events: auto; transition: background-color 160ms ease, transform 160ms ease; }
.agency-tv__step:hover { background: rgba(0,0,0,.55); transform: scale(1.05); }
.agency-tv__step:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.agency-tv__channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.agency-tv__channel { min-width: 0; padding: 0 0 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--agency-ink); cursor: pointer; font: inherit; text-align: left; }
.agency-tv__channel img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.agency-tv__channel span { display: block; font-size: .8rem; font-weight: 600; }
.agency-tv__channel[aria-pressed="true"] { border-bottom-color: var(--agency-accent); color: var(--agency-accent); }
.agency-tv__channel:hover img { opacity: .8; }
.agency-tv__channel:focus-visible { outline: 2px solid var(--agency-accent); outline-offset: 4px; }
.agency-tv__indicators {
  position: absolute;
  z-index: 4;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0;
}
.agency-tv__indicator {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  flex: 0 0 24px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.agency-tv__indicator::before,
.agency-tv__indicator::after {
  content: '';
  position: absolute;
  left: 1px;
  right: 1px;
  top: calc(50% - .75px);
  height: 1.5px;
  background: rgba(255,255,255,.28);
  box-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.agency-tv__indicator::after {
  background: #fff;
  transform: scaleX(var(--film-progress, 0));
  transform-origin: left center;
}
.agency-tv__indicator[aria-pressed="true"]::before,
.agency-tv__indicator:hover::before { background: rgba(255,255,255,.5); }
.agency-tv__indicator:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
@media (min-width: 781px) {
  .agency-tv .agency-tv__channels--mobile { display: none; }
}
@media (max-width: 780px) {
  .agency-tv__indicators { display: none; }
  .agency-tv .agency-tv__channels--mobile {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 5px;
    margin-top: 24px;
    scroll-snap-type: x proximity;
  }
  .agency-tv__channels--mobile .agency-tv__channel {
    flex: 0 0 42%;
    scroll-snap-align: start;
  }
}
@media (min-width: 981px) {
  .agency-tv {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 20px 32px;
    width: min(100%, 1280px);
  }
  .agency-tv > .agency-film {
    display: contents;
  }
  .agency-tv > .agency-film > .agency-film__media {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .agency-tv .agency-tv__channels {
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
  }
  .agency-tv .agency-tv__channel {
    display: block;
    padding: 0 0 8px;
    border-bottom: 1px solid #e5e5e5;
    transition: color 160ms ease, border-color 160ms ease;
  }
  .agency-tv .agency-tv__channel img { margin-bottom: 6px; }
  .agency-tv .agency-tv__channel span { font-size: .7rem; line-height: 1.4; }
  .agency-tv .agency-tv__channel[aria-pressed="true"] {
    border-bottom-color: var(--agency-accent);
  }
  .agency-tv .agency-film__meta { grid-column: 1; grid-row: 2; padding-top: 0; }
  .agency-tv .agency-film h3 {
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
    white-space: normal;
    text-wrap: balance;
  }
}
@media (max-width: 700px) {
  .agency-tv .agency-film__media { border: 0; border-radius: 12px; box-shadow: none; }
  .agency-tv__steps { inset-inline: 10px; }
  .agency-tv__step { width: 38px; height: 38px; font-size: 1.25rem; }
  .agency-tv__channels { display: flex; overflow-x: auto; scroll-snap-type: x proximity; gap: 12px; padding: 5px; }
  .agency-tv__channel { flex: 0 0 42%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .agency-tv .agency-film__media > * { transition: none; }
}
.agency-film[data-project-key="everything-love"] { container-type: inline-size; }
.agency-film[data-project-key="everything-love"] h3 {
  white-space: nowrap;
  font-size: clamp(.75rem, 3.7cqw, 2.2rem);
}
.agency-film:first-child { grid-column: 1 / -1; width: 100%; justify-self: center; }
.agency-film__open {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  text-shadow: 0 1px 6px #000;
  pointer-events: none;
}
.agency-film__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #111; }
.agency-film__link { display: block; width: 100%; height: 100%; }
.agency-film__media video, .agency-film__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.agency-tv .agency-film__media :is(video, img),
.agency-film[data-project-key="spectrum"] .agency-film__media :is(video, img) {
  object-fit: cover;
  transform: scale(1.035);
}
.agency-film__media img { transition: opacity 250ms ease; pointer-events: none; }
.agency-film.is-playing .agency-film__media img { opacity: 0; }
.agency-film__controls { position: absolute; top: 16px; right: 16px; display: flex; gap: 8px; }
.agency-film__controls .mp-media-control.mp-media-control.mp-media-control.mp-media-control--transparent { width: 44px; height: 44px; color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; }
.agency-film__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-top: 20px; }
.agency-film__client { margin: 0 0 8px; color: var(--agency-accent); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-shell--agencies .agency-portfolio .agency-film__client {
  color: var(--agency-accent, #e50914) !important;
  -webkit-text-fill-color: var(--agency-accent, #e50914) !important;
}
.agency-film h3 { margin: 0; font-family: var(--mp-font-display, var(--agency-display)); font-size: clamp(1.5rem, 2.4vw, 2.5rem); font-weight: 400; text-transform: uppercase; line-height: 1.08; letter-spacing: 0; }
.agency-film:first-child h3 { font-size: clamp(1.6rem, 3vw, 3rem); }
.agency-film__credit-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0 16px; margin-top: 4px; }
.agency-film__credit { margin: 0; font-size: .8rem; color: var(--agency-muted); }
.agency-film__watch { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; font-size: .8rem; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.agency-film a:focus-visible, .agency-film button:focus-visible { outline: 3px solid var(--agency-accent); outline-offset: 4px; }
.agency-film__watch:hover { color: var(--agency-accent); }
.agency-campaign-wall [data-agency-campaign-index], .agency-campaign-wall__support { display: none !important; }
.site-shell--agencies:not(.site-shell--service-detail) .agency-campaign-wall__playback {
  top: 24px;
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: auto !important;
}
.site-shell--agencies .agency-section--uses { background: #fff; }
@media (min-width: 781px) {
  .agency-film[data-project-key="rewe-region"] {
    width: 100vw;
    justify-self: center;
  }
  .agency-film[data-project-key="rewe-region"] .agency-film__media {
    height: 100svh;
    aspect-ratio: auto;
    border-radius: 0;
  }
  .agency-film[data-project-key="rewe-region"] .agency-film__media :is(video, img) {
    object-fit: cover;
    object-position: 50% 100%;
  }
  .agency-film[data-project-key="rewe-region"] .agency-film__meta {
    padding-inline: var(--mp-layout-gutter, 4vw);
  }
  .agency-film[data-project-key="rewe-region"] .agency-film__controls {
    top: 24px;
    right: 40px;
    bottom: auto;
  }
  .site-shell--agencies:not(.site-shell--service-detail) .agency-campaign-wall__playback {
    top: auto;
    right: 40px;
    bottom: 30px !important;
  }
}
@media (min-width: 781px) and (prefers-reduced-motion: no-preference) {
  .agency-film[data-project-key="rewe-region"] .agency-film__stage {
    height: 165svh;
  }
  .agency-film[data-project-key="rewe-region"] .agency-film__media {
    position: sticky;
    top: 0;
  }
}
.agency-film__mobile-title { display: none; }
@media (max-width: 780px) {
  .agency-film__mobile-title { display: block; padding: 20px 0; text-align: left; }
  .agency-tv .agency-film .agency-film__media {
    width: 100%;
    margin-inline: 0;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: 13px;
    box-shadow: none;
  }
  .agency-tv .agency-film[data-project-key="raymour"] .agency-film__media :is(video, img) {
    object-fit: cover;
    object-position: center;
  }
  .agency-tv .agency-film[data-project-key="everything-love"] h3 {
    font-size: clamp(1.7rem, 7vw, 2.1rem);
    white-space: normal;
  }
  .agency-film[data-project-key="rewe-region"] {
    width: 100vw;
    justify-self: center;
  }
  .agency-film[data-project-key="rewe-region"] .agency-film__media {
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 13px;
  }
  .agency-film[data-project-key="rewe-region"] .agency-film__media :is(video, img) {
    object-fit: cover;
    object-position: center !important;
    transform: scale(1.03);
  }
  .site-shell--agencies:not(.site-shell--service-detail) .agency-campaign-hero {
    position: relative;
    margin-top: var(--agency-global-header-height) !important;
    height: calc(100svh - var(--agency-global-header-height)) !important;
    min-height: calc(100svh - var(--agency-global-header-height)) !important;
    padding: 0 !important;
    overflow: hidden;
    background: #050505 !important;
  }
  .site-shell--agencies:not(.site-shell--service-detail) .agency-campaign-wall,
  .site-shell--agencies:not(.site-shell--service-detail) .agency-campaign-wall__primary,
  .site-shell--agencies.agency-depth-v1:not(.site-shell--service-detail) .agency-campaign-wall:hover .agency-campaign-wall__primary {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }
}
@media (max-width: 700px) {
  .agency-film__open { display: none; }
  .agency-portfolio { padding-inline: 20px; }
  .agency-portfolio__films { grid-template-columns: minmax(0, 1fr); }
  .agency-film:first-child { width: 100%; }
  .agency-film__meta { gap: 12px; }
  .agency-film__controls { top: 10px; right: 10px; }
  .agency-film__watch { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .agency-film__media img { transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html.agency-motion-ready .site-shell--agencies .agency-reveal {
    --agency-reveal-duration: 850ms;
    --agency-reveal-y: 36px;
    transition-timing-function: cubic-bezier(0.25, 0.65, 0.3, 1);
  }
  html.agency-motion-ready .site-shell--agencies .agency-reveal:focus-within {
    opacity: 1;
    transform: none;
    transition-delay: 0ms;
  }
}
