/* UNCOVr media. Shared styles. */
:root { color-scheme: light; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Layout: template structure (nav, hero, pillars, FAQ, closing CTA, footer) with a six-channel stripe as the one signature detail. */
:root {
  --ink: #061934;
  --paper: #ffffff;
  --panel: #f2f4f8;
  --muted: #4a5873;
  --line: #d8deea;
  --hi: #e9983d;
  --on-hi: #061934;
  --btn-bg: #061934;
  --btn-fg: #ffffff;
  --c1: #f25c54;
  --c2: #ffd23f;
  --c3: #6fb7c9;
  --c4: #2e5aac;
  --c5: #7a8aa6;
  --c6: #3fa796;
  --font-display: "Helvetica Now Display", "Inter Tight", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Now Display", "Inter Tight", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0;
  margin: 0;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--hi); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0; }
.eyebrow { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 22px; letter-spacing: -0.03em; text-decoration: none; }
.brand span { background: var(--hi); color: var(--on-hi); padding: 0 4px; margin-left: 2px; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav ul a { text-decoration: none; font-size: 15px; font-weight: 500; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav ul a:hover { border-color: var(--hi); }
.btn { display: inline-block; background: var(--btn-bg); color: var(--btn-fg); font-weight: 500; font-size: 16px; padding: 12px 22px; text-decoration: none; border: 1px solid var(--btn-bg); }
.btn:hover { box-shadow: 4px 4px 0 var(--hi); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }

/* hero */
.hero { padding-block: 14px 32px; }
.hero h1 { font-size: clamp(44px, 9vw, 104px); line-height: 0.96; letter-spacing: -0.04em; max-width: 19ch; }
.hero h1 mark { background: linear-gradient(transparent 58%, var(--hi) 58% 92%, transparent 92%); color: inherit; padding: 0; }
.hero .intro { margin-top: 20px; font-size: clamp(20px, 2.8vw, 30px); line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; max-width: 54ch; }
.hero .lines { margin-top: 16px; font-size: clamp(18px, 2.4vw, 24px); line-height: 1.35; max-width: 56ch; color: var(--ink); }
.hero .cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.channels { margin-top: 32px; }
.stripe { display: grid; grid-template-columns: repeat(6, 1fr); height: 10px; }
.stripe i:nth-child(1) { background: var(--c1); } .stripe i:nth-child(2) { background: var(--c2); }
.stripe i:nth-child(3) { background: var(--c3); } .stripe i:nth-child(4) { background: var(--c4); }
.stripe i:nth-child(5) { background: var(--c5); } .stripe i:nth-child(6) { background: var(--c6); }
.stripe-labels { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 10px; font-size: 13px; color: var(--muted); font-weight: 500; gap: 4px; }
@media (max-width: 640px) { .stripe-labels { grid-template-columns: repeat(3, 1fr); row-gap: 6px; } }

/* sections */
section { padding-block: clamp(48px, 7vw, 96px); }
.sec-head { display: grid; gap: 12px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(30px, 5vw, 52px); line-height: 1.02; letter-spacing: -0.03em; max-width: 18ch; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pillar { border-top: 3px solid var(--ink); padding-top: 20px; }
.pillar h3 { font-size: 28px; letter-spacing: -0.03em; margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 17px; max-width: 34ch; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; gap: 28px; } }

.band { background: var(--panel); margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); }

/* work */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 56px; }
.case { border-top: 1px solid var(--line); padding-top: 20px; min-width: 0; }
.case .tag { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.case h3 { font-size: 32px; letter-spacing: -0.03em; margin: 6px 0 4px; }
.case .sub { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.case p.body { font-size: 17px; max-width: 52ch; }
.case .stat { margin-top: 18px; display: inline-block; background: var(--hi); color: var(--on-hi); font-weight: 700; padding: 4px 10px; font-size: 15px; }
@media (max-width: 800px) { .work { grid-template-columns: 1fr; } }

/* leadership */
.founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.person { display: grid; gap: 20px; justify-items: start; min-width: 0; }
.portrait { width: 168px; height: 168px; max-width: 100%; border-radius: 50%; object-fit: cover; display: block; }
.mono { width: 120px; height: 120px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: 40px; letter-spacing: -0.03em; }
.person h3 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.02; }
.person .role { font-size: 15px; color: var(--muted); margin: 8px 0 14px; }
.person a { font-weight: 500; text-decoration: none; border-bottom: 2px solid var(--hi); padding-bottom: 2px; }
.bio { display: grid; gap: 18px; min-width: 0; }
.bio p { font-size: 18px; color: var(--muted); max-width: 58ch; }
.bio p.lead { font-size: clamp(22px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); font-weight: 700; }
.does { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.does li { border-top: 3px solid var(--ink); padding-top: 12px; display: grid; gap: 4px; min-width: 0; }
.does strong { font-size: 18px; letter-spacing: -0.02em; }
.does span { font-size: 14px; color: var(--muted); }
@media (max-width: 800px) {
  .founder { grid-template-columns: 1fr; gap: 28px; }
  .does { grid-template-columns: 1fr; }
}

/* faq */
.faq { max-width: 820px; }
details { border-top: 1px solid var(--line); padding-block: 4px; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; padding-block: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 28px; font-weight: 400; line-height: 1; flex: none; }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 40px 20px 0; color: var(--muted); font-size: 17px; max-width: 62ch; }

/* contact */
.closing { text-align: left; }
.closing h2 { font-size: clamp(36px, 7vw, 80px); line-height: 0.98; letter-spacing: -0.04em; max-width: 14ch; }
.closing .sub { margin-top: 16px; font-size: 20px; color: var(--muted); max-width: 40ch; }
.closing .cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.contact-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--line); padding-top: 28px; }
.contact-grid h3 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.contact-grid p, .contact-grid address { font-style: normal; font-size: 18px; overflow-wrap: anywhere; }
.copy { margin-top: 10px; font: inherit; font-size: 14px; background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 6px 12px; cursor: pointer; }
.copy:hover { border-color: var(--ink); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 24px; } }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 32px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: 14px; color: var(--muted); }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }
footer p { max-width: 52ch; }

/* case studies */
a.case { display: block; text-decoration: none; color: inherit; }
a.case .thumb { overflow: hidden; margin-bottom: 20px; border: 1px solid var(--line); }
a.case .thumb svg { transition: transform .4s ease; }
a.case:hover .thumb svg { transform: scale(1.03); }
a.case:hover h3 { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--hi); text-underline-offset: 5px; }
a.case .more { display: block; margin-top: 18px; font-weight: 500; }
.art { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; }

.case-page { padding-bottom: 24px; }
.crumb { margin: 12px 0 40px; font-size: 15px; font-weight: 500; }
.crumb a { text-decoration: none; border-bottom: 2px solid var(--hi); padding-bottom: 2px; }
.case-page h1 { font-size: clamp(44px, 9vw, 96px); line-height: .98; letter-spacing: -0.04em; margin-top: 12px; }
.case-page .lede { font-size: clamp(20px, 3vw, 28px); line-height: 1.25; margin-top: 20px; max-width: 28ch; letter-spacing: -0.015em; }
.case-page figure { margin: 40px 0; border: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 3px solid var(--ink); padding-top: 18px; margin: 0 0 56px; }
.facts dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.facts dd { margin: 6px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.facts dd mark { background: var(--hi); color: var(--on-hi); padding: 0 6px; }
.story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.story h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 10px; }
.story p { font-size: 18px; color: var(--muted); }
.next { margin-top: 72px; border-top: 1px solid var(--line); padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.next a.big { font-size: clamp(26px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; text-decoration: none; }
.next a.big:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--hi); text-underline-offset: 6px; }
@media (max-width: 800px) {
  .facts { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .story { grid-template-columns: 1fr; gap: 28px; }
}

/* motion graphics: photos from the current uncovrmedia.com, animated in CSS */
.ph-kabbage { background-image: url(/assets/img/ph-kabbage.jpg); }
.ph-grasshopper { background-image: url(/assets/img/ph-grasshopper.jpg); }
.ph-society { background-image: url(/assets/img/ph-society.jpg); }

.mg { --mi: #061934; --mh: #e9983d; position: relative; display: block; width: 100%; max-width: 100%; aspect-ratio: 8 / 5; overflow: hidden; background: var(--mi); container-type: inline-size; font-family: var(--font-display); }
.mg > * { position: absolute; }
.mg .ph { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; }
.mg .scrim { inset: 0; background: linear-gradient(180deg, rgba(6,25,52,.62) 0%, rgba(6,25,52,0) 36%, rgba(6,25,52,0) 62%, rgba(6,25,52,.62) 100%); }
.mg .lab { left: 4cqw; top: 4cqw; color: #ffffff; font-weight: 700; font-size: clamp(10px, 2.1cqw, 20px); letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: 1.2cqw; text-shadow: 0 1px 8px rgba(6,25,52,.55); }
.mg .chip { left: 4cqw; bottom: 4cqw; background: var(--mh); color: var(--mi); font-weight: 700; font-size: clamp(12px, 3.4cqw, 34px); letter-spacing: -.02em; line-height: 1; padding: 1.4cqw 2cqw; animation: mg-chip 10s cubic-bezier(.7,0,.2,1) infinite; }
@keyframes mg-chip { 0%, 84% { clip-path: inset(0 0 0 0); } 90% { clip-path: inset(0 0 0 100%); } 90.01% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes mg-kb { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-2%, 1%); } }

/* Kabbage: studio photo plus radio */
.ph-kabbage-studio { background-image: url(/assets/img/ph-kabbage-studio.jpg); }
.mg-kabbage { background: #f25c54; }
.mg-kabbage .ring { left: 79.3cqw; top: 20.6cqw; width: 70cqw; height: 70cqw; margin: -35cqw 0 0 -35cqw; border: .7cqw solid #ffffff; border-radius: 50%; animation: mg-ring 5s linear infinite; }
.mg-kabbage .r2 { animation-delay: -1.25s; } .mg-kabbage .r3 { animation-delay: -2.5s; } .mg-kabbage .r4 { animation-delay: -3.75s; }
@keyframes mg-ring { from { transform: scale(.25); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.mg-kabbage .dash { left: 62.3cqw; top: 14cqw; width: 34cqw; aspect-ratio: 752 / 293; background-size: cover; background-position: center; border: .8cqw solid #0b1530; border-radius: 1.4cqw; box-shadow: 0 2.5cqw 5cqw rgba(6,25,52,.45); animation: mg-float 6s ease-in-out infinite alternate; }
@keyframes mg-float { from { transform: translateY(-.8cqw) rotate(-.7deg); } to { transform: translateY(.8cqw) rotate(.7deg); } }
.mg-kabbage .frame { inset: 0 auto 0 0; width: 58.6cqw; overflow: hidden; border-right: .6cqw solid var(--mi); }
.mg-kabbage .ph { background-position: 50% 50%; transform-origin: 50% 45%; animation: mg-kb-soft 14s ease-in-out infinite alternate; }
@keyframes mg-kb-soft { from { transform: scale(1); } to { transform: scale(1.035); } }
.mg-kabbage .lab { left: 62cqw; } .mg-kabbage .chip { left: 62cqw; font-size: clamp(11px, 2.9cqw, 30px); }
.mg-kabbage .eq { left: 73.7cqw; bottom: 15cqw; height: 8cqw; display: flex; align-items: flex-end; gap: .9cqw; }
.mg-kabbage .eq i { display: block; width: 1.5cqw; height: 100%; background: #ffffff; transform-origin: 50% 100%; animation: mg-eq 1.1s ease-in-out infinite alternate; }
.mg-kabbage .eq i:nth-child(2) { animation-duration: .8s; animation-delay: -.3s; }
.mg-kabbage .eq i:nth-child(3) { animation-duration: 1.3s; animation-delay: -.7s; background: var(--mi); }
.mg-kabbage .eq i:nth-child(4) { animation-duration: .7s; animation-delay: -.2s; }
.mg-kabbage .eq i:nth-child(5) { animation-duration: 1s; animation-delay: -.5s; }
@keyframes mg-eq { from { transform: scaleY(.18); } to { transform: scaleY(1); } }
.mg .live { width: 1.5cqw; height: 1.5cqw; min-width: 6px; min-height: 6px; border-radius: 50%; background: #ffffff; animation: mg-blink 1.4s ease-in-out infinite alternate; }
@keyframes mg-blink { from { opacity: 1; } to { opacity: .25; } }

/* Grasshopper: 4 markets to national */
.mg-grasshopper .ph { background-position: 50% 58%; animation: mg-kb 14s ease-in-out infinite alternate; }
.mg-grasshopper .mk { left: 4cqw; top: 4.5cqw; display: flex; align-items: center; gap: 2cqw; }
.mg-grasshopper .mk-test, .mg-grasshopper .mk-nat { display: grid; gap: 1cqw; }
.mg-grasshopper .mk-test { grid-template-columns: repeat(2, 2.4cqw); }
.mg-grasshopper .mk-nat { grid-template-columns: repeat(10, 2.4cqw); animation: mg-reveal 9s linear infinite; }
.mg-grasshopper .mk i { display: block; width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: #ffffff; }
.mg-grasshopper .mk-test i { background: var(--mh); }
.mg-grasshopper .mk-arrow { position: relative; width: 5cqw; height: .6cqw; background: #ffffff; }
.mg-grasshopper .mk-arrow::after { content: ""; position: absolute; right: -.1cqw; top: 50%; width: 1.9cqw; height: 1.9cqw; box-sizing: border-box; border-top: .6cqw solid #ffffff; border-right: .6cqw solid #ffffff; transform: translateY(-50%) rotate(45deg); }
@keyframes mg-reveal { 0%, 10% { clip-path: inset(0 0 0 0); } 10.01% { clip-path: inset(0 100% 0 0); animation-timing-function: steps(10, end); } 45%, 100% { clip-path: inset(0 0 0 0); } }
.mg-grasshopper .lab { top: 12.6cqw; }

/* Society of Grownups: storefront hero plus a reel of media placements */
.ph-sog-greenline { background-image: url(/assets/img/ph-sog-greenline.jpg); }
.ph-sog-bus { background-image: url(/assets/img/ph-sog-bus.jpg); }
.ph-sog-platform { background-image: url(/assets/img/ph-sog-platform.jpg); }
.ph-sog-porter { background-image: url(/assets/img/ph-sog-porter.jpg); }
.ph-sog-trolley { background-image: url(/assets/img/ph-sog-trolley.jpg); }
.mg-society .frame { inset: 0 auto 0 0; width: 32cqw; overflow: hidden; }
.mg-society .ph { background-position: 12% 0%; transform-origin: 5% 25%; animation: mg-kb 14s ease-in-out infinite alternate; }
.mg-society .reel { inset: 0 0 0 32.6cqw; overflow: hidden; background: var(--mi); }
.mg-society .sl { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; background-position: var(--p0, 0%) 50%; opacity: 0; animation: mg-slide 20s linear infinite, mg-pan 20s linear infinite; }
.mg-society .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,25,52,0) 55%, rgba(6,25,52,.55) 100%); }
.mg-society .cap { left: 36.6cqw; top: 4cqw; background: var(--mi); color: #ffffff; font-weight: 700; font-size: clamp(10px, 2.1cqw, 20px); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; padding: 1cqw 1.6cqw; opacity: 0; animation: mg-slide 20s linear infinite; }
.mg-society .s1 { opacity: 1; }
.mg-society .s2 { animation-delay: -16s; }
.mg-society .s3 { animation-delay: -12s; }
.mg-society .s4 { animation-delay: -8s; }
.mg-society .s5 { animation-delay: -4s; }
.mg-society .sl.s1 { --p0: 0%; --p1: 100%; }
.mg-society .sl.s2 { --p0: 0%; --p1: 100%; }
.mg-society .sl.s3 { --p0: 45%; --p1: 100%; }
.mg-society .sl.s4 { --p0: 0%; --p1: 100%; }
.mg-society .sl.s5 { --p0: 30%; --p1: 100%; }
@keyframes mg-slide { 0%, 16.20% { opacity: 1; } 20.00%, 96.20% { opacity: 0; } 100% { opacity: 1; } }
@keyframes mg-pan { 0% { background-position: var(--p0, 0%) 50%; } 20.50%, 96.00% { background-position: var(--p1, 100%) 50%; } 96.10%, 100% { background-position: var(--p0, 0%) 50%; } }
.mg-society .chip { left: 36.6cqw; }

/* Visit Boston: banner hero plus a reel of placements and results */
.ph-vb-hero { background-image: url(/assets/img/ph-vb-hero.jpg); }
.ph-vb-print { background-image: url(/assets/img/ph-vb-print.jpg); }
.ph-vb-kiosk { background-image: url(/assets/img/ph-vb-kiosk.jpg); }
.ph-vb-bus { background-image: url(/assets/img/ph-vb-bus.jpg); }
.ph-vb-video { background-image: url(/assets/img/ph-vb-video.jpg); }
.mg-boston .frame { inset: 0 auto 0 0; width: 44cqw; overflow: hidden; }
.mg-boston .ph { background-position: 50% 50%; transform-origin: 50% 35%; animation: mg-kb-mid 14s ease-in-out infinite alternate; }
@keyframes mg-kb-mid { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.mg-boston .reel { inset: 0 0 0 44.6cqw; overflow: hidden; background: #0d3b40; }
.mg-boston .sl { position: absolute; inset: 0; opacity: 0; background-repeat: no-repeat; animation: mg-slide4 16s linear infinite; }
.mg-boston .sl i { position: absolute; left: 0; right: 0; display: block; background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; }
.mg-boston .sl.print { background-size: cover; background-position: 50% 0%; animation: mg-slide4 16s linear infinite, mg-pan-y 16s linear infinite; }
.mg-boston .sl.outdoor { background: var(--mi); }
.mg-boston .sl.outdoor .k { top: 0; height: 26.4cqw; }
.mg-boston .sl.outdoor .b { top: 27cqw; height: 29.8cqw; }
.mg-boston .sl.video { background: #0d3b40; }
.mg-boston .sl.video i { top: 15.6cqw; height: 30cqw; }
.mg-boston .sl.results { background: var(--mi); }
.mg-boston .st { position: absolute; left: 4cqw; right: 3cqw; top: 11.5cqw; display: grid; gap: 2.4cqw; }
.mg-boston .st span { display: grid; gap: .6cqw; }
.mg-boston .st b { color: var(--mh); font-weight: 700; font-size: clamp(18px, 6.4cqw, 64px); letter-spacing: -.03em; line-height: 1; }
.mg-boston .st em { color: #ffffff; font-style: normal; font-weight: 500; font-size: clamp(9px, 2.2cqw, 20px); line-height: 1.15; }
.mg-boston .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,25,52,0) 60%, rgba(6,25,52,.5) 100%); }
.mg-boston .cap { left: 48.6cqw; top: 4cqw; background: var(--mi); color: #ffffff; font-weight: 700; font-size: clamp(10px, 2.1cqw, 20px); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; padding: 1cqw 1.6cqw; opacity: 0; animation: mg-slide4 16s linear infinite; }
.mg-boston .s1 { opacity: 1; }
.mg-boston .s2 { animation-delay: -12s; }
.mg-boston .s3 { animation-delay: -8s; }
.mg-boston .s4 { animation-delay: -4s; }
@keyframes mg-slide4 { 0%, 20.25% { opacity: 1; } 25%, 95.25% { opacity: 0; } 100% { opacity: 1; } }
@keyframes mg-pan-y { 0% { background-position: 50% 0%; } 25.5%, 95% { background-position: 50% 100%; } 95.1%, 100% { background-position: 50% 0%; } }
.mg-boston .chip { left: 48.6cqw; max-width: 47.4cqw; font-size: clamp(10px, 2.6cqw, 28px); line-height: 1.1; }

/* results list on a case study page */
.results-block { margin-top: 56px; border-top: 3px solid var(--ink); padding-top: 18px; }
.results-block h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 22px; }
.results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.results li { display: grid; gap: 6px; align-content: start; min-width: 0; }
.results strong { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.results span { font-size: 15px; color: var(--muted); }
@media (max-width: 800px) { .results-block { margin-top: 40px; } .results { grid-template-columns: repeat(2, 1fr); } }

/* clients: one row of logos that scrolls to the left */
.clients-fig { margin: 0; display: grid; gap: 16px; }
.logo-marquee { overflow: hidden; padding-block: 6px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); }
.logo-wall { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; animation: logo-scroll 56s linear infinite; }
.logo-wall li { --tile: #ffffff; position: relative; flex: none; width: clamp(150px, 20vw, 230px); aspect-ratio: 16 / 9; margin-right: 16px; background: var(--tile); border: 1px solid var(--line); }
.logo-wall img { position: absolute; left: 13%; top: 15%; width: 74%; height: 70%; max-width: none; object-fit: contain; display: block; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-marquee:hover .logo-wall, .logo-wall.is-paused { animation-play-state: paused; }
.clients-fig figcaption { display: flex; justify-content: flex-end; }
.clients-fig .copy { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .logo-wall { animation: none; }
  .logo-wall .dup { display: none; }
}

/* play rules: case study pages play, cards play on hover or focus */
.thumb .mg *, .mg.is-paused * { animation-play-state: paused !important; }
a.case:hover .thumb .mg *, a.case:focus-visible .thumb .mg * { animation-play-state: running !important; }
/* touch screens cannot hover: cards play while on screen (always, if the script did not run) */
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .thumb .mg * { animation-play-state: running !important; }
  .mg-io .thumb:not(.in-view) .mg * { animation-play-state: paused !important; }
}
.case-page figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 10px 12px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.case-page figcaption .copy { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .mg *, a.case:hover .thumb .mg *, a.case:focus-visible .thumb .mg * { animation-play-state: paused !important; }
  .mg-toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  a.case .thumb svg { transition: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.sec-head h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.02; letter-spacing: -0.03em; max-width: 18ch; font-family: var(--font-display); font-weight: 700; margin: 0; text-wrap: balance; }
.legal-note { margin-top: 12px; }
.logo-wall { will-change: transform; backface-visibility: hidden; }
.logo-wall img { backface-visibility: hidden; }
@media (max-width: 800px) {
  .nav { row-gap: 10px; padding-block: 12px 4px; }
  .nav > .btn { display: none; }
  .nav nav { width: 100%; }
  .nav ul { flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
  .nav ul a { font-size: clamp(12.5px, 3.7vw, 15px); white-space: nowrap; }
}
