/* Progbiz Digital Marketing portfolio.
   Same language as progbiz.io: DM Sans, white page, grey and black panels set in from the edge with big rounded corners,
   oversized light headings, grey pill buttons and tags, hairline dividers. One accent (#0070f3), used sparingly. */

:root {
  --ink: #111; --black: #0b0b0b; --paper: #fff; --grey: #f5f5f5; --pill: #ebebeb; --line: #e4e4e4; --muted: #6b6f73; --accent: #0070f3;
  --radius: 36px; --gap: 12px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 24px; }

.sheet { max-width: 1320px; margin: 0 auto; padding: 0 var(--gap) var(--gap); }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 30px; width: auto; }
.top { display: flex; align-items: center; gap: 20px; padding: 20px clamp(8px, 2vw, 24px); }
.top-meta { margin-left: auto; color: var(--muted); font-weight: 500; }
.loading { padding: 80px 24px; color: var(--muted); text-align: center; }

.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border-radius: 50px; font-weight: 600; transition: transform .2s ease, background-color .2s ease; }
.pill:hover { transform: translateY(-2px); }
.pill-grey { background: var(--pill); color: #222; }
.pill-grey:hover { background: #dedede; }
.pill-white { background: #fff; color: var(--ink); }
.pill-line { color: #fff; border: 1px solid rgb(255 255 255 / .4); }
.pill-line:hover { background: rgb(255 255 255 / .12); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.mark { width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c2.6 2.2 3 5.2 0 8.4-3-3.2-2.6-6.2 0-8.4Zm10 10c-2.2 2.6-5.2 3-8.4 0 3.2-3 6.2-2.6 8.4 0ZM12 22c-2.6-2.2-3-5.2 0-8.4 3 3.2 2.6 6.2 0 8.4ZM2 12c2.2-2.6 5.2-3 8.4 0-3.2 3-6.2 2.6-8.4 0Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c2.6 2.2 3 5.2 0 8.4-3-3.2-2.6-6.2 0-8.4Zm10 10c-2.2 2.6-5.2 3-8.4 0 3.2-3 6.2-2.6 8.4 0ZM12 22c-2.6-2.2-3-5.2 0-8.4 3 3.2 2.6 6.2 0 8.4ZM2 12c2.2-2.6 5.2-3 8.4 0-3.2 3-6.2 2.6-8.4 0Z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- cover ---------- */
.cover { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; background: var(--grey); border-radius: var(--radius); padding: clamp(28px, 5vw, 72px); }
.cover h1 { margin-top: 22px; max-width: 14ch; font-weight: 300; font-size: clamp(38px, 5.6vw, 78px); line-height: 1.02; letter-spacing: -.04em; }
.cover-side p { max-width: 46ch; color: var(--muted); font-size: 17px; line-height: 1.5; }
.numbers { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 8px; padding-top: 20px; border-top: 1px solid #d6d6d6; }
.numbers dt { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.numbers dd { margin-top: 4px; font-weight: 300; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

/* ---------- tabs ---------- */
.tabs { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px; padding: 14px clamp(8px, 2vw, 24px); margin-top: 6px; background: rgb(255 255 255 / .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.chip { min-height: 44px; padding: 0 20px; border: 0; border-radius: 50px; background: var(--pill); font-weight: 500; font-size: 15px; transition: background-color .2s, color .2s; }
.chip:hover { background: #dedede; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- sections ---------- */
.block { padding: clamp(20px, 3vw, 40px) clamp(8px, 2vw, 24px) 0; }
.block + .block { border-top: 1px solid var(--line); margin-top: 28px; }
.block-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: end; padding-bottom: 8px; }
.block-head h2 { font-weight: 400; font-size: clamp(44px, 8vw, 104px); line-height: .96; letter-spacing: -.04em; }
.block-head p { color: var(--muted); font-size: 17px; line-height: 1.5; max-width: 52ch; }
.sec-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 28px 0 0; }
.sec-stats div { border-top: 1px solid var(--line); padding-top: 14px; }
.sec-stats dt { font-weight: 300; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -.04em; }
.sec-stats dd { margin-top: 4px; color: var(--muted); font-size: 14px; }

/* ---------- case studies ---------- */
.case { border-top: 1px solid var(--line); padding: 28px 0 clamp(30px, 4vw, 52px); margin-top: 24px; }
.case:first-of-type { margin-top: 28px; }
.case-cat { font-weight: 600; margin-bottom: 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.case-cat .idx { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 500; }
.case-cat .sector { color: var(--muted); font-weight: 400; }
.case-body { display: grid; grid-template-columns: minmax(240px, 380px) minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(22px, 3.2vw, 52px); align-items: start; }
.shot { aspect-ratio: 4 / 3.1; border-radius: 22px; overflow: hidden; background: var(--grey); border: 1px solid var(--line); display: grid; place-items: center; padding: 0; width: 100%; cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: contain; }
.shot.empty { cursor: default; background: linear-gradient(135deg, #eef0f3, #f7f8fa); }
.shot.empty span { color: var(--muted); font-size: 14px; }
.case-main h3 { font-weight: 500; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.16; letter-spacing: -.025em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { background: var(--pill); border-radius: 50px; padding: 6px 15px; font-size: 14px; font-weight: 500; }
.summary { margin-top: 18px; color: var(--muted); }
.stat-col { display: grid; gap: 18px; }
.stat-col div { border-top: 1px solid var(--line); padding-top: 12px; }
.stat-col strong { display: block; font-weight: 300; font-size: clamp(34px, 4vw, 56px); line-height: 1.02; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-col span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.more { margin-top: 24px; min-height: 44px; padding: 0 22px; border: 1px solid #cfcfcf; border-radius: 50px; background: #fff; font-weight: 600; font-size: 15px; transition: background-color .2s; }
.more:hover { background: var(--pill); }
.more::after { content: " +"; }
.more[aria-expanded="true"]::after { content: " −"; }

.detail { margin-top: 28px; padding: clamp(18px, 3vw, 36px); background: var(--grey); border-radius: 26px; display: grid; gap: 28px; }
.detail-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); }
.detail h4 { margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.detail ul.did li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.detail ul.did li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.facts div { background: #fff; border-radius: 16px; padding: 14px 16px; }
.facts dt { color: var(--muted); font-size: 13px; font-weight: 500; }
.facts dd { margin-top: 2px; font-weight: 600; line-height: 1.35; }
.kw { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; font-size: 15px; }
.kw th, .kw td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.kw th { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: #fafafa; }
.kw td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.kw td.now { font-weight: 700; }
.kw tr:last-child td { border-bottom: 0; }
.note { color: var(--muted); font-size: 14px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.shots figure button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; cursor: zoom-in; }
.shots img { width: 100%; height: auto; }
.shots figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; }
.site-link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- method, ai visibility ---------- */
.method { margin: 40px 0 8px; padding: clamp(22px, 3.4vw, 44px); background: var(--grey); border-radius: 26px; }
.method h3, .ai h3 { font-weight: 400; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.03em; }
.method > p, .ai > p { margin-top: 8px; color: var(--muted); max-width: 64ch; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-top: 26px; counter-reset: s; }
.steps li { border-top: 1px solid #d3d3d3; padding-top: 14px; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); color: var(--muted); font-size: 13px; font-weight: 500; }
.steps h4 { margin: 6px 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.steps p { color: var(--muted); font-size: 15px; }
.method .note { margin-top: 20px; color: var(--ink); font-weight: 500; }
.ai { margin: 40px 0 8px; padding: clamp(22px, 3.4vw, 44px); background: var(--black); color: #fff; border-radius: 26px; }
.ai > p { color: rgb(255 255 255 / .7); }
.seen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.seen li { border: 1px solid rgb(255 255 255 / .3); border-radius: 50px; padding: 5px 14px; font-size: 14px; }
.ai .shots { margin-top: 26px; }
.ai .shots figure button { background: #fff; }
.ai .shots figcaption { color: rgb(255 255 255 / .7); }
.ai .steps li { border-color: rgb(255 255 255 / .22); }
.ai .steps li::before, .ai .steps p { color: rgb(255 255 255 / .62); }

/* ---------- social, galleries, videos, reviews ---------- */
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.chips-row a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; background: var(--pill); border-radius: 50px; font-weight: 500; font-size: 15px; transition: background-color .2s; }
.chips-row a:hover { background: #dcdcdc; }
.sub-title { margin: 36px 0 12px; font-weight: 600; font-size: 18px; }
.gal { margin-top: 34px; }
.gal h3 { font-weight: 500; font-size: 24px; letter-spacing: -.02em; margin-bottom: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--grey); aspect-ratio: 1; cursor: zoom-in; transition: transform .2s; }
.tile:hover { transform: translateY(-3px); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.vid { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #1a1a1c; }
.vid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.vid:hover img { transform: scale(1.04); }
.vid .play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: rgb(255 255 255 / .9); }
.vid .play::after { content: ""; position: absolute; left: 18px; top: 13px; border-left: 14px solid #111; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.vid .vt { position: absolute; left: 10px; right: 10px; bottom: 8px; color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 6px rgb(0 0 0 / .7); }
/* client testimonials slider */
.t-slider { margin-top: 28px; }
.t-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.t-track::-webkit-scrollbar { display: none; }
.t-card { flex: none; display: flex; gap: 18px; scroll-snap-align: start; outline-offset: 4px; }
.t-media { position: relative; width: clamp(240px, 24vw, 332px); aspect-ratio: 332 / 420; border-radius: 24px; overflow: hidden; background: #1a1a1a; cursor: pointer; }
.t-media.none { background: var(--grey); }
.t-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-media::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / .65)); pointer-events: none; }
.t-who { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 18px; display: grid; color: #fff; line-height: 1.3; }
.t-who b { font-size: 17px; font-weight: 600; }
.t-who span { font-size: 13px; opacity: .9; }
.t-sound { position: absolute; z-index: 1; top: 16px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4Z'/%3E%3Cpath d='m16 9 5 6M21 9l-5 6'/%3E%3C/svg%3E") center / 20px no-repeat; display: none; }
.t-sound.on { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4Z'/%3E%3Cpath d='M16.5 8.5a5 5 0 0 1 0 7M19 6a8.5 8.5 0 0 1 0 12'/%3E%3C/svg%3E"); }
.t-card.on .t-sound { display: block; }
.t-text { display: none; width: clamp(260px, 25vw, 360px); flex-direction: column; gap: 14px; padding: 18px 0; }
.t-card.on .t-text { display: flex; }
.t-ind { margin: 0; font-size: 14px; font-weight: 500; }
.t-text h3 { margin: 0; font-size: clamp(20px, 1.8vw, 24px); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; text-transform: capitalize; }
.t-body { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.t-text .pill { align-self: flex-start; min-height: 40px; padding: 8px 18px; font-size: 14px; }
.t-nav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.t-count { font-size: clamp(24px, 2.4vw, 30px); font-weight: 300; letter-spacing: -.02em; margin-right: 8px; }
.t-sep { margin: 0 4px; color: var(--muted); }
.t-count > span:last-child { color: var(--muted); }
.t-arrow { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h17M14 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat; }
.t-arrow:hover { background-color: var(--grey); }
.t-arrow.prev { transform: scaleX(-1); }
@media (max-width: 720px) {
  .t-card.on { flex-direction: column; width: min(86vw, 360px); }
  .t-card.on .t-media { width: 100%; }
  .t-text { width: auto; padding: 0 4px; }
  .t-media { width: min(70vw, 280px); }
}

/* ---------- closing ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 18px; }
.logos img { width: 100%; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.close { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; margin-top: 40px; padding: clamp(28px, 5vw, 64px); background: var(--black); color: #fff; border-radius: var(--radius); }
.close h2 { max-width: 18ch; font-weight: 300; font-size: clamp(30px, 4vw, 54px); line-height: 1.06; letter-spacing: -.035em; }
.close p { margin-top: 12px; max-width: 54ch; color: rgb(255 255 255 / .7); }
.close .note { margin-top: 14px; color: rgb(255 255 255 / .85); font-weight: 500; }
.close-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.legal { padding: 22px 0 8px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- image viewer ---------- */
dialog#viewer { width: min(96vw, 1200px); max-height: 94vh; padding: 14px; border: 0; border-radius: 22px; background: #fff; overflow: auto; }
dialog#viewer::backdrop { background: rgb(0 0 0 / .72); }
dialog#viewer figure { display: grid; gap: 10px; }
dialog#viewer img { width: 100%; max-height: 78vh; object-fit: contain; }
dialog#viewer figcaption { color: var(--muted); font-size: 14px; text-align: center; min-height: 1.4em; }
.vclose, .vnav { position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 22px; }
.vclose { right: 12px; top: 12px; }
.vnav { top: 50%; transform: translateY(-50%); }
.vprev { left: 12px; } .vnext { right: 12px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .case-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .shot { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
  .cover, .block-head { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  :root { --radius: 26px; --gap: 8px; }
  .top { justify-content: space-between; }
  .top-meta { display: none; }
  .case-body, .detail-cols { grid-template-columns: 1fr; }
  .shot { aspect-ratio: 4 / 3.1; }
  .close { flex-direction: column; align-items: flex-start; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* inline video player */
dialog#player { width: min(94vw, 460px); max-height: 96vh; padding: 14px; border: 0; border-radius: 22px; background: #fff; overflow: auto; }
dialog#player::backdrop { background: rgb(0 0 0 / .72); }
.pbox { margin-top: 40px; aspect-ratio: 9 / 16; max-height: 78vh; width: 100%; background: #000; border-radius: 14px; overflow: hidden; }
.pbox iframe { width: 100%; height: 100%; border: 0; display: block; }
.plink { display: block; text-align: center; padding: 12px 0 2px; font-size: 14px; color: #555; }
dialog#player .vclose { top: 10px; right: 12px; }

/* footer */
.foot { margin-top: 28px; padding: clamp(24px, 4vw, 48px); background: var(--grey); border-radius: var(--radius); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: clamp(20px, 3vw, 40px); }
.foot-logo img { display: block; height: 34px; width: auto; }
.foot-about p { margin-top: 16px; max-width: 36ch; color: var(--muted); font-size: 14px; }
.foot-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.foot-social a { display: inline-block; padding: 6px 14px; border-radius: 50px; background: #fff; font-size: 13px; font-weight: 500; }
.foot-col h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.foot-col ul { display: grid; gap: 10px; font-size: 15px; }
.foot-col a, .foot-social a, .foot-links a { text-decoration: none; }
.foot-col a:hover, .foot-links a:hover { text-decoration: underline; }
.foot-col span { color: var(--muted); font-size: 14px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot-base p { max-width: 70ch; }
.foot-links { display: flex; gap: 18px; }
@media (max-width: 1100px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-col:last-child { grid-column: 1 / -1; } }

/* scrolling client logos: shown in greys so the strip stays one colour and the logo detail stays visible */
.marquee { margin: 16px 0; padding: 20px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row { display: flex; align-items: center; flex: none; gap: clamp(36px, 5vw, 72px); padding-right: clamp(36px, 5vw, 72px); }
.marquee-row li { flex: none; }
.marquee-row img { display: block; height: clamp(30px, 4vw, 46px); width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .85; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee { overflow-x: auto; } }

/* logo and branding */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.brand { margin: 0; display: grid; gap: 10px; }
.brand button { display: block; padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: var(--grey); cursor: zoom-in; aspect-ratio: 7 / 5; }
.brand img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.brand button:hover img { transform: scale(1.03); }
.brand figcaption { display: grid; gap: 2px; padding: 0 6px; }
.brand figcaption span { color: var(--muted); font-size: 14px; }

/* "Our Clients" heading above the scrolling logos */
.clients { margin: 16px 0 0; }
.clients > .eyebrow { margin: 0; padding: 0 clamp(8px, 2vw, 24px); }
.clients > .marquee { margin-top: 4px; }
.mark.fan { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg id='b'%3E%3Cpath d='M12 12C13.6 7.5 12.6 3.6 8.6 1.8 5.6 4.4 6.2 9.2 12 12Z'/%3E%3C/g%3E%3Cuse href='%23b' transform='rotate(90 12 12)'/%3E%3Cuse href='%23b' transform='rotate(180 12 12)'/%3E%3Cuse href='%23b' transform='rotate(270 12 12)'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg id='b'%3E%3Cpath d='M12 12C13.6 7.5 12.6 3.6 8.6 1.8 5.6 4.4 6.2 9.2 12 12Z'/%3E%3C/g%3E%3Cuse href='%23b' transform='rotate(90 12 12)'/%3E%3Cuse href='%23b' transform='rotate(180 12 12)'/%3E%3Cuse href='%23b' transform='rotate(270 12 12)'/%3E%3C/svg%3E"); }
