/* Solutions pages (Media agencies, Brands): the parts they add to the home page system (redesign.css). Each rule has
   its dark version under :root[data-theme="dark"]. Square corners throughout. */

/* Hero: the partner logos sit on the always-dark texture, white on frosted gloss glass (Connectors' hero strip). */
.sl-logos{margin-top:clamp(36px,4vw,52px)}
.sl-logos p{margin:0 0 14px;font-size:13px;font-weight:var(--w-ui);letter-spacing:.02em;color:rgba(255,255,255,.72)}
.sl-strip{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.sl-strip li{display:grid;place-items:center;flex:0 0 132px;height:56px;padding:0 16px;
  background:linear-gradient(180deg,rgba(255,255,255,.26) 0%,rgba(255,255,255,.12) 55%,rgba(255,255,255,.08) 100%);-webkit-backdrop-filter:blur(18px) saturate(180%);backdrop-filter:blur(18px) saturate(180%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.42),inset 0 0 0 1px rgba(255,255,255,.18),0 12px 26px -16px rgba(0,0,0,.55)}
.sl-strip img{display:block;width:auto;height:22px;filter:brightness(0) invert(1);opacity:.94}
.sl-strip img[data-alt="Horizon Media"]{height:29px}
.sl-strip img[data-alt="Mediaplus"]{height:11px}
.sl-strip img[data-alt="Locality"]{height:24px}
.sl-strip img{max-width:100%;object-fit:contain}
html.rv .hero-copy > :nth-child(5){animation-delay:.8s}
@media(max-width:620px){
  .sl-strip li{flex:0 0 calc(33.333% - 6px);height:48px;padding:0 10px}
  .sl-strip img{height:18px}
  .sl-strip img[data-alt="Horizon Media"]{height:24px}
  .sl-strip img[data-alt="Mediaplus"]{height:9px}
  .sl-strip img[data-alt="Locality"]{height:20px}
}

/* Engineers: How it works' #team (the banner with its title frame, then the three .pt cards from redesign.css). */
#team .hp-team{margin-top:0}
#team .hpt-copy{font-weight:400}

/* The five parts (.sp): segment-style link cards, three then two. Each: the part's icon tile in its colour, a mono
   counter, the part, what it does for this audience, and an arrow. Hover (the closing banner's .hc and the home page's
   segment cards): a sheen in the hero's live hue, a soft glow in that hue, a small lift, the icon tile and the arrow
   circle fill with the same gradient, and the arrow slides through. */
.sp{margin-top:var(--hd-gap);display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.sp-c{grid-column:span 2;position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;gap:10px;min-height:300px;padding:28px 28px 26px;background:var(--paper);box-shadow:0 0 0 1px var(--rule);color:inherit;text-decoration:none;transition:box-shadow .2s,transform .2s}
.sp-c:nth-child(n+4){grid-column:span 3;min-height:260px}
.sp-c::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(105deg,transparent 18%,var(--sheen-1) 44%,var(--sheen-2) 56%,transparent 82%);background-size:260% 100%;background-position:115% 0;opacity:0;transition:opacity .45s ease,background-position 1.1s cubic-bezier(.2,.7,.2,1)}
.sp-c:hover{color:inherit;transform:translateY(-2px);box-shadow:0 0 0 1px rgba(16,23,38,.16),0 16px 36px -20px rgba(16,23,38,.28),0 18px 44px -26px var(--sheen-1)}
.sp-c:hover::before{opacity:.18;background-position:-15% 0}
.sp-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:18px}
.sp-ic{position:relative;isolation:isolate;overflow:hidden;width:40px;height:40px;display:grid;place-items:center}
.sp-ic::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(120deg,var(--sheen-1),var(--sheen-2));opacity:0;transition:opacity .3s}
.sp-ic svg{width:20px;height:20px;color:#fff}
.sp-c:hover .sp-ic::before{opacity:.55}
.sp-n{font-size:12px;color:var(--ink-3)}
.sp-n b{font-weight:500;color:var(--blue)}
.sp-k{font-size:13px;font-weight:var(--w-ui);letter-spacing:.02em;color:var(--ink-3)}
.sp-c .h3{color:var(--ink);text-wrap:balance}
.sp-c p{margin:0;font-size:15px;line-height:1.5;color:var(--ink-3);max-width:40ch;text-wrap:pretty}
.sp-go{margin-top:auto;padding-top:14px;display:inline-flex;align-items:center;gap:12px;font-size:14.5px;font-weight:var(--w-ui);color:var(--ink)}
.sp-arw{position:relative;isolation:isolate;overflow:hidden;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:var(--ink-2);box-shadow:inset 0 0 0 1px var(--rule-cool);transition:box-shadow .3s,color .3s}
.sp-arw::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(120deg,var(--sheen-1),var(--sheen-2));opacity:0;transform:scale(.6);transition:opacity .35s ease,transform .45s cubic-bezier(.2,.7,.2,1)}
.sp-c:hover .sp-arw{color:var(--ink);box-shadow:inset 0 0 0 1px transparent}
.sp-c:hover .sp-arw::before{opacity:.55;transform:none}
.sp-c:hover .sp-arw svg{animation:sp-through .55s cubic-bezier(.4,0,.2,1)}
@keyframes sp-through{0%{transform:translateX(0);opacity:1}45%{transform:translateX(16px);opacity:0}46%{transform:translateX(-16px);opacity:0}100%{transform:translateX(0);opacity:1}}
.sp-c:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
:root[data-theme="dark"] .sp-c{background:#111725;box-shadow:0 0 0 1px rgba(255,255,255,.09)}
:root[data-theme="dark"] .field-grey .sp-c{background:#111725}
:root[data-theme="dark"] .sp-c:hover{box-shadow:0 0 0 1px rgba(255,255,255,.2),0 16px 36px -20px rgba(0,0,0,.7),0 18px 44px -26px var(--sheen-1)}
:root[data-theme="dark"] .sp-c::before{mix-blend-mode:screen}
:root[data-theme="dark"] .sp-n b{color:var(--blue-lift)}
:root[data-theme="dark"] .sp-arw{box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}
:root[data-theme="dark"] .sp-c:hover .sp-arw{color:#fff}
:root[data-theme="dark"] .sp-c:focus-visible{outline-color:var(--blue-lift)}
@media(max-width:1060px){.sp{grid-template-columns:repeat(2,minmax(0,1fr))}.sp-c,.sp-c:nth-child(n+4){grid-column:auto;min-height:280px}.sp-c:last-child{grid-column:1/-1;min-height:0}}
@media(max-width:620px){.sp{grid-template-columns:1fr}.sp-c,.sp-c:nth-child(n+4){min-height:0}.sp-c:last-child{grid-column:auto}}
@media(prefers-reduced-motion:reduce){.sp-c:hover{transform:none}.sp-c::before,.sp-arw::before{transition:opacity .2s}.sp-c:hover .sp-arw svg{animation:none}}

/* Proof cards (.pc3): the segment card with the partner's logo on a square tile. Light: the logo in its own colours on a
   plain tile. Dark: white on the hero's gloss glass (Connectors' library tiles). Same hover as the parts, no lift. */
.pc3{list-style:none;margin:var(--hd-gap) 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.pc-c{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;gap:12px;min-height:280px;padding:28px 28px 26px;background:var(--paper);box-shadow:0 0 0 1px var(--rule);transition:box-shadow .2s}
.pc-c::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(105deg,transparent 18%,var(--sheen-1) 44%,var(--sheen-2) 56%,transparent 82%);background-size:260% 100%;background-position:115% 0;opacity:0;transition:opacity .45s ease,background-position 1.1s cubic-bezier(.2,.7,.2,1)}
.pc-c:hover{box-shadow:0 0 0 1px rgba(16,23,38,.16),0 16px 36px -20px rgba(16,23,38,.28),0 18px 44px -26px var(--sheen-1)}
.pc-c:hover::before{opacity:.14;background-position:-15% 0}
.pc-lg{display:grid;place-items:center;align-self:flex-start;width:168px;height:64px;padding:0 22px;margin-bottom:16px;background:var(--grey);box-shadow:inset 0 0 0 1px var(--rule)}
.pc-lg img{display:block;width:auto;height:27px}
.pc-lg img[data-alt="Horizon Media"]{height:36px}
.pc-lg img[data-alt="Mediaplus"]{height:16px}
.pc-c .h3{color:var(--ink)}
.pc-c p{margin:0;font-size:15px;line-height:1.5;color:var(--ink-3);max-width:36ch;text-wrap:pretty}
.pc-a{margin-top:auto;padding-top:10px;align-self:flex-start;font-size:14.5px;font-weight:var(--w-ui);color:var(--ink);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;text-decoration-color:var(--ink-4)}
.pc-a:hover{color:var(--ink);text-decoration-color:currentColor}
:root[data-theme="dark"] .pc-c{background:#111725;box-shadow:0 0 0 1px rgba(255,255,255,.09)}
:root[data-theme="dark"] .pc-c:hover{box-shadow:0 0 0 1px rgba(255,255,255,.2),0 16px 36px -20px rgba(0,0,0,.7),0 18px 44px -26px var(--sheen-1)}
:root[data-theme="dark"] .pc-c::before{mix-blend-mode:screen}
:root[data-theme="dark"] .pc-lg{background:linear-gradient(180deg,rgba(255,255,255,.16) 0%,rgba(255,255,255,.07) 55%,rgba(255,255,255,.05) 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 0 0 1px rgba(255,255,255,.12),0 8px 18px -12px rgba(0,0,0,.6)}
:root[data-theme="dark"] .pc-lg img{filter:brightness(0) invert(1);opacity:.92}
@media(max-width:900px){.pc3{grid-template-columns:1fr}.pc-c{min-height:0}}
@media(prefers-reduced-motion:reduce){.pc-c::before{transition:opacity .2s}}

/* Stats band (the home page's .lst): two figures on the dark field, framed, over faint ticker lines that drift.
   site.js counts the figures up once in view; the markup holds the final figures. */
.lst{padding:clamp(56px,6.4vw,96px) 0;overflow:hidden}
.lst-frame{position:relative;display:grid;grid-template-columns:1fr 1fr}
.lst-stat{position:relative;overflow:hidden;padding:clamp(44px,5.6vw,76px) clamp(24px,4.4vw,60px) clamp(40px,5vw,68px)}
.lst-stat + .lst-stat{border-left:1px solid var(--rule-dark)}
.lst-tick{position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(90deg,rgba(255,255,255,.13) 0 1px,transparent 1px 96px),repeating-linear-gradient(90deg,rgba(255,255,255,.07) 0 1px,transparent 1px 12px);
  background-size:96px 100%,12px 22px;background-repeat:repeat,repeat-x;background-position:0 0,0 100%;
  -webkit-mask:linear-gradient(to bottom,transparent,#000 30%,#000 70%,transparent),linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);-webkit-mask-composite:source-in;mask:linear-gradient(to bottom,transparent,#000 30%,#000 70%,transparent),linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);mask-composite:intersect;
  animation:lst-tick 60s linear infinite}
@keyframes lst-tick{to{background-position:96px 0,96px 100%}}
.lst.lst-paused .lst-tick{animation-play-state:paused}
.lst-eb{position:relative;display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:var(--w-ui);letter-spacing:.02em;color:var(--ink-2)}
.lst-eb i{width:7px;height:7px;background:var(--blue-lift);transform:rotate(45deg)}
.lst-num{position:relative;margin-top:26px;font-family:var(--serif);font-weight:400;font-size:clamp(64px,10vw,148px);line-height:.92;letter-spacing:-.045em;font-variant-numeric:tabular-nums lining-nums;white-space:nowrap;color:#fff}
.lst-num b{font-weight:inherit}
.lst-num span{color:var(--blue-lift);transition:opacity .5s cubic-bezier(.2,.7,.2,1)}
.lst-stat p{position:relative;margin:18px 0 0;max-width:none;font-size:18px;line-height:1.45;color:var(--ink-2)}
.lst.lst-armed .lst-num span{opacity:0}
@media(max-width:720px){.lst-frame{grid-template-columns:1fr}.lst-stat + .lst-stat{border-left:0;border-top:1px solid var(--rule-dark)}.lst-stat p{font-size:16.5px}}
@media(prefers-reduced-motion:reduce){.lst-tick{animation:none}}

/* Brands #agencies: the segment card beside the partner-share picture (PartnerShare.astro). */
.pa{margin-top:var(--hd-gap);display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:16px;align-items:stretch}
.pa-c{display:flex;flex-direction:column;gap:12px;padding:28px 28px 26px;background:var(--paper);box-shadow:0 0 0 1px var(--rule)}
.pa-c .h3{color:var(--ink)}
.pa-c p{margin:0;font-size:15px;line-height:1.5;color:var(--ink-3);max-width:36ch;text-wrap:pretty}
.pa-a{margin-top:auto;padding-top:18px;align-self:flex-start;font-size:14.5px;font-weight:var(--w-ui);color:var(--ink);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;text-decoration-color:var(--ink-4)}
.pa-a:hover{color:var(--ink);text-decoration-color:currentColor}
:root[data-theme="dark"] .pa-c{background:#111725;box-shadow:0 0 0 1px rgba(255,255,255,.09)}
@media(max-width:900px){.pa{grid-template-columns:1fr}.pa-a{margin-top:0}}
