/* ADCITIES · Brands & Agencies (R34). Loaded only on /services/brand-agencies, after adc-solutions.css (shared adc-sol* system). */

/* Photo slot waiting for Andrea's photo: an honest placeholder, never a stock image */
.adc-ph { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border: 1px dashed var(--line, #DCCABD); border-radius: 4px; background: rgba(242, 231, 223, .55); }
.adc-ph span { max-width: 26em; padding: 16px; text-align: center; font-size: 13px; line-height: 1.5; color: #8A8079; }

/* ---------- 1 · Opening ---------- */
.adc-ba-open__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); }
.adc-ba-open__grid > * { min-width: 0; }   /* the title keeps its two lines: full width above, photo below */
.adc-ba-open .adc-sol-open__head { margin: 0; }
.adc-ba-open .adc-actions { margin-top: 8px; }
.adc-ba-open__fig { aspect-ratio: 16 / 9; }
@media (max-width: 767px) { .adc-ba-open__fig { aspect-ratio: 4 / 3; } }

/* ---------- 2 · How it works ---------- */
.adc-ba-how__grid { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.adc-ba-how__steps { list-style: none; margin: 0; padding: 0; display: grid; }
.adc-ba-how__steps button {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: grid; gap: 6px; width: 100%; padding: 20px 0 22px 20px;
  border-top: 1px solid var(--line); color: var(--ink); font-family: inherit;
}
.adc-ba-how__steps li:last-child button { border-bottom: 1px solid var(--line); }
.adc-ba-how__steps b { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; color: var(--stone); transition: color .25s var(--ease); }
.adc-ba-how__steps span { font-size: 15px; line-height: 1.5; max-width: 30em; }
.adc-ba-how__steps button:hover b, .adc-ba-how__steps [aria-selected="true"] b { color: var(--ink); }
.adc-ba-how__steps button::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 22px; width: 3px; background: var(--line); }
/* the orange bar fills while the step plays, so the visitor sees the sequence move on by itself */
.adc-ba-how__steps i { position: absolute; left: 0; top: 20px; bottom: 22px; width: 3px; background: var(--or); transform: scaleY(0); transform-origin: top; }
.adc-ba-how__steps [aria-selected="true"] i { transform: scaleY(var(--p, 1)); }
.adc-ba-how__steps button:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }

.adc-ba-how__viz { position: relative; background: var(--panel); border-radius: 4px; aspect-ratio: 560 / 380; overflow: hidden; }
.adc-ba-how__viz .hv { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; font-family: inherit; }
.adc-ba-how__viz[data-s="0"] .hv--0, .adc-ba-how__viz[data-s="1"] .hv--1, .adc-ba-how__viz[data-s="2"] .hv--2, .adc-ba-how__viz[data-s="3"] .hv--3 { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.hv text { fill: var(--ink); }
.hv-card { fill: #fff; stroke: var(--line); }
.hv-h { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.hv-l { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hv-in { fill: var(--panel); stroke: var(--line); }
.hv-v { font-size: 15px; }
.hv-city line { stroke: var(--line2); }
.hv-city rect { fill: var(--warm); }
.hv-picks rect { fill: var(--or); }
.hv-picks circle { fill: none; stroke: var(--or); stroke-width: 1.2; stroke-dasharray: 3 3; }
.hv-ground { stroke: var(--ink); stroke-width: 1.4; }
.hv-post { fill: var(--ink); }
.hv-fr { fill: var(--ink); }
.hv-scr { fill: var(--warm); transition: fill .5s var(--ease); }
.hv-track { fill: var(--warm); }
.hv-bar { fill: var(--or); transform-box: fill-box; transform-origin: left; }
.hv-bar--pu { fill: var(--pu); }

/* step animations: they replay each time a step is shown (class toggled from JS) */
.adc-ba-how__viz.is-play .hv--0 .hv-v { animation: hvType .5s var(--ease-out) both; animation-delay: calc(.25s + var(--i) * .42s); }
.hv--0 .hv-fields g { --i: 0; }
.adc-ba-how__viz.is-play .hv--0 .hv-fields g .hv-v { animation-delay: calc(.25s + var(--i) * .42s); }
@keyframes hvType { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.adc-ba-how__viz.is-play .hv--1 .hv-picks > g { animation: hvPop .6s var(--ease-out) both; animation-delay: calc(.2s + var(--i) * .16s); }
.hv-picks > g { transform-box: fill-box; transform-origin: center; }
@keyframes hvPop { from { opacity: 0; transform: scale(.2); } 60% { opacity: 1; transform: scale(1.3); } to { opacity: 1; transform: scale(1); } }
.adc-ba-how__viz.is-play .hv--2 .hv-scr { animation: hvOn .5s var(--ease) both; animation-delay: calc(.3s + var(--i) * .35s); }
.hv-sup { --i: 0; }
.hv--2 .hv-sup .hv-scr { animation-delay: calc(.3s + var(--i) * .35s); }
@keyframes hvOn { from { fill: var(--warm); } 40% { fill: #fff; } to { fill: var(--or); } }
.adc-ba-how__viz.is-play .hv--3 .hv-bar { animation: hvBar .9s var(--ease-out) both; animation-delay: calc(.2s + var(--i) * .18s); }
.hv-met { --i: 0; }
@keyframes hvBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 899px) {
  .adc-ba-how__grid { grid-template-columns: 1fr; }
  .adc-ba-how__viz { order: -1; }
}
@media (max-width: 480px) { .hv-l { font-size: 15px; } .hv-v { font-size: 19px; } .hv-h { font-size: 24px; } }

/* ---------- 3 · Plan by audience ---------- */
.adc-ba-aud__ctrl { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.adc-ba-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.adc-ba-seg button {
  all: unset; box-sizing: border-box; cursor: pointer; font-family: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; background: var(--panel);
  padding: 9px 14px; font-size: 14px; line-height: 1.2; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.adc-ba-seg button:hover { border-color: var(--ink); }
.adc-ba-seg [aria-checked="true"] { background: var(--or); border-color: var(--or); color: #fff; }
.adc-ba-seg--time [aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.adc-ba-seg button:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.adc-ba-seg--time button { font-variant-numeric: tabular-nums; }

.adc-ba-aud__fig { margin: 0; }
.adc-ba-aud__frame { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 2; background: var(--warm); }
.adc-ba-aud__cam { transition: opacity .26s var(--ease); }
.adc-ba-aud__frame.is-swap .adc-ba-aud__cam, .adc-ba-aud__frame.is-swap .ba-lab { opacity: 0; }
.adc-ba-aud__cam { position: absolute; left: 0; top: 0; width: 1448px; height: 1086px; transform-origin: 0 0; }
.adc-ba-aud__cam img { position: absolute; inset: 0; width: 1448px; height: 1086px; max-width: none; }
.adc-ba-aud__dusk { position: absolute; inset: 0; background: #1E2530; opacity: 0; transition: opacity .7s var(--ease); pointer-events: none; z-index: 1; }
.ba-face { position: absolute; left: 0; top: 0; width: 100px; height: 100px; transform-origin: 0 0; z-index: 2; transition: filter .5s var(--ease), opacity .5s var(--ease); }
.ba-face svg { display: block; width: 100%; height: 100%; }
.ba-face.is-off { filter: grayscale(1) brightness(.62); opacity: .85; }
.ba-ov { position: absolute; left: 0; top: 0; width: 1448px; height: 1086px; z-index: 3; pointer-events: none; overflow: visible; }
.ba-ov polygon { fill: none; stroke: var(--or); stroke-width: var(--sw, 5); stroke-linejoin: round; opacity: 0; transition: opacity .4s var(--ease); }
.ba-ov polygon.is-on { opacity: 1; animation: baDraw .8s var(--ease-out) both; }
@keyframes baDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.ba-lab { position: absolute; z-index: 4; transform: translate(-50%, calc(-100% - 14px)); padding: 6px 9px; border-radius: 4px; background: var(--panel); color: var(--ink);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease); }
.ba-lab::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: var(--or); vertical-align: 1px; }
.ba-lab.is-on { opacity: 1; }
.adc-ba-city { position: relative; }
.adc-ba-city__b { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-width: 210px; justify-content: space-between; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--ink); transition: border-color .25s var(--ease); }
.adc-ba-city__b:hover { border-color: var(--ink); }
.adc-ba-city__b:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.adc-ba-city__b small, .adc-ba-city__l small { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--stone, #8A8079); }
.adc-ba-city__car { font-size: 12px; transition: transform .25s var(--ease); }
.adc-ba-city__b[aria-expanded="true"] .adc-ba-city__car { transform: rotate(180deg); }
.adc-ba-city__l { position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; min-width: 100%; margin: 0; padding: 6px; list-style: none; background: #FFFCFA; border: 1px solid #E9DBD0; border-radius: 4px; box-shadow: 0 14px 40px rgba(30, 37, 48, .12); }
.adc-ba-city__l li { padding: 9px 10px; border-radius: 4px; font-size: 14px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.adc-ba-city__l li:hover, .adc-ba-city__l li:focus-visible { background: #F2E7DF; outline: none; }
.adc-ba-city__l li[aria-selected="true"] { color: var(--or); }
.adc-ba-aud__read { margin-top: 14px; font-size: 15px; line-height: 1.5; }
.adc-ba-aud__read [data-when] { white-space: nowrap; }
.adc-ba-aud__read b { font-weight: 600; color: var(--or); font-variant-numeric: tabular-nums; }
@media (max-width: 599px) {
  .ba-lab { display: none; }
  .adc-ba-aud__ctrl { display: grid; gap: 8px; }
  .adc-ba-city__b { width: 100%; }
  .adc-ba-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .adc-ba-seg--time { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .adc-ba-seg button { text-align: center; padding: 9px 6px; font-size: 13px; }
}

/* ---------- 4 · Results ---------- */
.adc-ba-res__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.adc-ba-res__list li { display: grid; align-content: start; gap: 6px; padding-top: 18px; border-top: 2px solid var(--ink); }
.adc-ba-res__sec { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--or); }
.adc-ba-res__list b { font-size: clamp(44px, 4.6vw, 72px); line-height: 1; letter-spacing: -.045em; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 8px; }
.adc-ba-res__list span:not(.adc-ba-res__sec) { font-size: 16px; line-height: 1.4; }
.adc-ba-res__list small { font-size: 13px; line-height: 1.45; color: #8A8079; }
.adc-ba-res__more { margin: clamp(28px, 3vw, 40px) 0 0; }
@media (max-width: 1023px) { .adc-ba-res__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 479px) { .adc-ba-res__list { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .adc-ba-how *, .adc-ba-aud * { animation: none !important; transition-duration: .01ms !important; }
}
/* R41 · pictogram text reads at the page's size at every width */
.hv-l { font-size: 11.5px; } .hv-v { font-size: 12.5px; } .hv-h { font-size: 15px; }   /* R46: same visual size as the body text (the figure is drawn at about 1.3x) */
@media (max-width: 480px) { .hv-l { font-size: 19px; } .hv-v { font-size: 20px; } .hv-h { font-size: 26px; } }

/* R44 · opening: two editorial photos side by side, equal size (twins) */
.adc-ba-open__duo { margin: 0; aspect-ratio: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); border: 0; background: none; }
.adc-ba-open__duo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: #F2E7DF; }

/* R46: placements that are not picked stay in their colours, only quieter (grey looked broken) */
.ba-face.is-off { filter: saturate(.3) brightness(.97); opacity: .72; }
.adc-ba-seg button { display: flex; align-items: center; justify-content: center; }
@media (max-width: 599px) { .adc-ba-open__duo { grid-template-columns: 1fr; } .adc-ba-open__duo img:last-child { display: none; } }   /* R46: one photo at full width on phones */
/* R46: one wide photo in the opening, at its own proportion, never cut */
.adc-ba-open__wide { margin: 0; aspect-ratio: auto; border: 0; background: none; }
.adc-ba-open__wide img { display: block; width: 100%; height: auto; border-radius: 4px; }
