/* Studio B — site styles, v3
   Layout: editorial 12-column grid on natural paper. Large Young Serif headlines, Inter text,
   1px ink rules, full-bleed film stills, red used for actions and figures. No shadows, no cards.
   Fonts: Young Serif and Inter, both SIL Open Font License 1.1 (Google Fonts). */

:root {
  --paper: #ece5d5;
  --paper-2: #e3dbc8;
  --cream: #f8f3e9;     /* light cream, client logo tiles */
  --ink: #1b1813;
  --ink-2: #4a443a;
  --ink-3: #6b6355;
  --rule: #1b1813;
  --rule-soft: #cbbfa6;
  --red: #b53a14;
  --red-hover: #962e0f;
  --on-red: #f6efe1;
  --on-ink: #ece5d5;
  --on-ink-2: #a89f8e;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --col-gap: clamp(16px, 2vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; font-synthesis: none; }
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: var(--on-red); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--on-ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(46px, 7.6vw, 124px); line-height: .96; letter-spacing: -0.03em; }
h2 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.0; letter-spacing: -0.025em; }
h3 { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1; letter-spacing: -0.015em; }
h4 { font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
.eyebrow { font: 500 14px/1.3 var(--sans); color: var(--red-hover); margin: 0 0 20px; } /* darker red: passes WCAG AA on paper and alt backgrounds */
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.figure-num { font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand svg { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink); }
.nav a:not(.btn):hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); }
.nav .btn { padding: 10px 16px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 1px solid var(--ink); padding: 8px 12px; font: 500 14px var(--sans); cursor: pointer; color: var(--ink); }
@media (max-width: 920px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 68px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--rule); padding: 0 var(--gutter) 20px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--rule-soft); font: 400 26px var(--serif); }
  .nav .btn { margin-top: 18px; font: 600 15px var(--sans); text-align: center; border-bottom: 0; justify-content: center; }
}

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--red); color: var(--on-red); text-decoration: none; font: 600 15px var(--sans); padding: 15px 24px; border: 1px solid var(--red); border-radius: 0; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--red-hover); border-color: var(--red-hover); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.on-dark .btn.ghost { color: var(--on-ink); border-color: var(--on-ink); }
.on-dark .btn.ghost:hover { background: var(--on-ink); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.textlink { color: var(--ink); text-decoration: none; background: linear-gradient(var(--red), var(--red)) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: color .15s; }
.textlink:hover { color: var(--red); }
.on-dark .textlink { color: var(--on-ink); }

/* ---------- Sections ---------- */
section { padding-block: clamp(72px, 10vw, 144px); }
.section-tight { padding-block: clamp(40px, 6vw, 80px); }
.alt { background: var(--paper-2); }
.on-dark { background: var(--ink); color: var(--on-ink); }
.on-dark .lede, .on-dark .muted { color: var(--on-ink-2); }
.on-dark .eyebrow { color: var(--on-ink-2); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Section head: label left, headline and text right */
.section-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 20px; margin-bottom: clamp(40px, 5vw, 72px); border-top: 1px solid var(--rule); padding-top: 22px; }
.section-head > div { grid-column: 1 / 9; }
.section-head > p { grid-column: 9 / 13; align-self: end; color: var(--ink-2); margin: 0; font-size: 16px; }
.section-head h2 { margin: 0; }
.on-dark .section-head { border-color: var(--on-ink-2); }
.on-dark .section-head > p { color: var(--on-ink-2); }
@media (max-width: 860px) { .section-head > div, .section-head > p { grid-column: 1 / -1; } }

/* ---------- Home hero ---------- */
.hero-x { padding-block: clamp(48px, 7vw, 104px) 0; }
.hero-x h1 { max-width: 12.5em; margin-bottom: clamp(28px, 4vw, 56px); }
.hero-x .hero-sub { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); align-items: end; padding-bottom: clamp(32px, 4vw, 56px); }
.hero-x .hero-sub .lede { grid-column: 1 / 7; margin: 0; }
.hero-x .hero-sub .btn-row { grid-column: 8 / 13; justify-content: flex-end; }
@media (max-width: 860px) { .hero-x .hero-sub .lede, .hero-x .hero-sub .btn-row { grid-column: 1 / -1; justify-content: flex-start; } .hero-x .hero-sub .btn-row { margin-top: 24px; } }
.hero-film { position: relative; margin: 0; aspect-ratio: 21 / 9; overflow: hidden; background: var(--ink); }
.hero-film img { width: 100%; height: 100%; object-fit: cover; }
.hero-film iframe { position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none; width: 100%; height: 100%; min-width: 177.78vh; transform: translate(-50%, -50%) scale(1.32); }
@media (max-width: 700px) { .hero-film { aspect-ratio: 4 / 3; } .hero-film iframe { transform: translate(-50%, -50%) scale(1.9); } }
.film-cap { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px 0; font-size: 13px; color: var(--ink-3); }
.film-cap a { color: var(--ink); }

/* Inner page hero */
.page-hero { padding-block: clamp(56px, 8vw, 120px) clamp(40px, 5vw, 72px); }
.page-hero h1 { max-width: 13em; font-size: clamp(42px, 6.4vw, 104px); }
.page-hero .lede { margin-top: clamp(16px, 2vw, 28px); }
.page-hero .lede + .lede { margin-top: 12px; }
.tagline { font-weight: 600; color: var(--ink); max-width: 40em; margin-top: 20px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.5; }

/* ---------- Figures row ---------- */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--col-gap); border-top: 1px solid var(--rule); }
.proof > div { padding: 22px 0 8px; }
.stat { font-family: var(--serif); font-size: clamp(44px, 5vw, 76px); line-height: 1; letter-spacing: -0.03em; color: var(--red); margin-bottom: 12px; font-variant-numeric: lining-nums; }
.stat-label { font-size: 15px; color: var(--ink-2); line-height: 1.45; max-width: 22em; }
.on-dark .proof { border-color: var(--on-ink-2); }
.on-dark .stat-label { color: var(--on-ink-2); }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr 1fr; row-gap: 12px; } }

/* ---------- Services index (home) ---------- */
.svc-list { border-bottom: 1px solid var(--rule); }
.svc { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); padding-block: clamp(28px, 3vw, 44px); border-top: 1px solid var(--rule); align-items: start; }
.svc h3 { grid-column: 1 / 6; margin: 0; font-size: clamp(28px, 3vw, 44px); line-height: 1.02; }
.svc .svc-body { grid-column: 6 / 11; }
.svc .svc-body p { color: var(--ink-2); margin: 0 0 14px; }
.svc .svc-body ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; font-size: 14px; color: var(--ink-3); }
.svc .svc-link { grid-column: 11 / 13; justify-self: end; font-size: 15px; }
@media (max-width: 900px) { .svc h3, .svc .svc-body, .svc .svc-link { grid-column: 1 / -1; justify-self: start; } .svc .svc-body { margin-top: 14px; } .svc .svc-link { margin-top: 14px; } }

/* Generic grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 64px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--col-gap); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

/* Service detail blocks (services page) */
.service-card { border-top: 1px solid var(--rule); padding-top: 18px; display: flex; flex-direction: column; }
.service-card .num { font-family: var(--serif); color: var(--red); font-size: 18px; margin-bottom: 10px; }
.service-card h4 { margin-bottom: 12px; }
.service-card ul { margin: 0 0 20px; padding: 0; list-style: none; }
.service-card li { padding: 9px 0; border-bottom: 1px solid var(--rule-soft); font-size: 15px; color: var(--ink-2); }
.service-card .textlink { margin-top: auto; align-self: flex-start; }

/* ---------- Work ---------- */
.work-feature { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 48px; }
.work-feature > * { grid-column: span 6; }
.work-feature > :nth-child(1) { grid-column: 1 / -1; }
.work-feature > :nth-child(1) .thumb { aspect-ratio: 16 / 9; }
.work-feature > :nth-child(1) .client { font-size: clamp(24px, 2.4vw, 32px); }
@media (max-width: 760px) { .work-feature > * { grid-column: 1 / -1; } .work-feature > :nth-child(1) .thumb { aspect-ratio: 16 / 9; } }

.filters { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 36px; border-top: 1px solid var(--rule); padding-top: 18px; }
.filters button { font: 400 15px var(--sans); padding: 2px 0; background: none; border: 0; color: var(--ink-3); cursor: pointer; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); background: linear-gradient(var(--red), var(--red)) 0 100% / 100% 1px no-repeat; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px var(--col-gap); }
@media (max-width: 960px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; display: flex; flex-direction: column; width: 100%; }
.work-card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); width: 100%; }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.work-card .thumb.vertical img { object-fit: contain; }
.work-card:hover .thumb img { transform: scale(1.025); }
.work-card .play { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 8px; background: var(--paper); color: var(--ink); font: 500 12px var(--sans); padding: 7px 12px 7px 10px; font-variant-numeric: tabular-nums; }
.work-card:hover .play { background: var(--red); color: var(--on-red); }
.work-card .play svg { width: 10px; height: 10px; }
.work-card .meta { padding-top: 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline; }
.work-card .client { font-family: var(--serif); font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; }
.work-card .desc { font-size: 14px; color: var(--ink-3); grid-column: 1 / -1; }
.on-dark .work-card .desc { color: var(--on-ink-2); }
.work-card[hidden] { display: none; }

/* ---------- Video modal ---------- */
dialog.video { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; }
dialog.video::backdrop { background: rgba(27, 24, 19, .94); }
dialog.video .frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; margin: 0 auto; }
dialog.video.portrait { max-width: min(420px, 94vw); }
dialog.video.portrait .frame { aspect-ratio: 9 / 16; max-height: 82vh; width: auto; }
dialog.video.square .frame { aspect-ratio: 4 / 5; max-height: 82vh; width: auto; }
dialog.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
dialog.video .cap { color: var(--on-ink); font-size: 14px; padding: 12px 0; display: flex; justify-content: space-between; gap: 12px; }
dialog.video .close { background: none; border: 1px solid var(--on-ink-2); color: var(--on-ink); font: 500 13px var(--sans); padding: 6px 12px; cursor: pointer; }

/* ---------- Industries ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 32px; border-top: 1px solid var(--rule); padding-top: 22px; }
.split > .split-head { grid-column: 1 / 6; align-self: start; position: sticky; top: 100px; }
.split > .split-body { grid-column: 7 / 13; }
@media (max-width: 860px) { .split > .split-head, .split > .split-body { grid-column: 1 / -1; position: static; } }
.industry-list { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.industry-list li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
.industry-list b { font: 400 24px/1.15 var(--serif); letter-spacing: -0.01em; }
.industry-list span { font-size: 14px; color: var(--ink-3); grid-column: 1; }
.industry-list a { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 14px; color: var(--red); text-decoration: none; }
.industry-list a:hover { text-decoration: underline; }

/* ---------- Steps (a real sequence) ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); }
.steps > div { counter-increment: step; border-top: 1px solid var(--rule); padding-top: 18px; }
.steps > div::before { content: counter(step); display: block; font-family: var(--serif); font-size: 20px; color: var(--red); margin-bottom: 36px; }
.steps h3 { margin-bottom: 12px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps > div::before { margin-bottom: 14px; } }

/* ---------- Logos ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 64px; }
.logo-slot { height: 48px; min-width: 150px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--rule-soft); color: var(--ink-3); font-size: 13px; padding: 0 16px; text-align: center; line-height: 1.2; }

/* ---------- Case studies ---------- */
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 0; border-top: 1px solid var(--rule); margin: 0; }
.kv dt, .kv dd { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); margin: 0; }
.kv dt { font: 500 14px var(--sans); color: var(--ink-3); padding-top: 16px; }
.kv dd { color: var(--ink-2); font-size: 16px; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dt { border-bottom: 0; padding-bottom: 0; } }

.case { padding-block: 44px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 24px; }
.case > :first-child { grid-column: 1 / 6; }
.case > :last-child { grid-column: 7 / 13; }
.case .tag { font: 500 14px var(--sans); color: var(--red); margin-bottom: 12px; }
.case h3 { margin-bottom: 4px; }
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: var(--col-gap); margin-top: 24px; }
.mini-stats div { border-top: 1px solid var(--rule-soft); padding: 14px 0 10px; }
.mini-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: lining-nums; }
.mini-stats span { font-size: 13px; color: var(--ink-3); line-height: 1.35; display: block; margin-top: 4px; }
@media (max-width: 860px) { .case > :first-child, .case > :last-child { grid-column: 1 / -1; } }

table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
table.data thead th { font: 500 14px var(--sans); color: var(--ink-3); border-bottom: 1px solid var(--rule); }
table.data td.num { font-variant-numeric: lining-nums tabular-nums; }
table.data td.win { color: var(--red); font-weight: 600; }
.table-scroll { overflow-x: auto; min-width: 0; }

/* ---------- Charts ---------- */
.chart { margin: 0; min-width: 0; }
.chart figcaption { font-family: var(--serif); font-size: 24px; letter-spacing: -0.01em; margin-bottom: 4px; }
.chart .sub { font-size: 14px; color: var(--ink-3); margin-bottom: 20px; }
.legend { display: flex; gap: 20px; font-size: 13px; color: var(--ink-2); margin-bottom: 16px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.pairs { display: grid; gap: 22px; }
.pair-row .lbl { font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.bar { position: relative; height: 22px; display: flex; align-items: center; margin-bottom: 2px; }
.bar .fill { height: 100%; border-radius: 0 3px 3px 0; min-width: 2px; }
.bar .val { font-size: 13px; color: var(--ink); margin-left: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fill.us { background: var(--red); }
.fill.bench { background: #a99d86; }
.bar[data-tip]:hover .fill { filter: brightness(1.1); }
.vbars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; align-items: end; height: 220px; border-bottom: 1px solid var(--ink); padding-top: 22px; }
.vbars .col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.vbars .fill { background: var(--red); border-radius: 3px 3px 0 0; width: 100%; }
.vbars .col:hover .fill { filter: brightness(1.1); }
.vbars .v { position: absolute; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.vlabels { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; font-size: 12px; color: var(--ink-3); text-align: center; padding-top: 8px; }
.tip { position: fixed; z-index: 80; pointer-events: none; background: var(--ink); color: var(--on-ink); font-size: 13px; padding: 8px 10px; max-width: 240px; line-height: 1.4; opacity: 0; transition: opacity .1s; }
.tip.show { opacity: 1; }
details.table-view { margin-top: 16px; font-size: 14px; }
details.table-view summary { cursor: pointer; color: var(--ink-3); }

/* ---------- Team ---------- */
.person { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 24px; padding-block: 40px; border-top: 1px solid var(--rule); }
.person > .photo { grid-column: 1 / 4; }
.person > div:not(.photo) { grid-column: 5 / 12; }
.person .photo { aspect-ratio: 4 / 5; background: var(--paper-2); display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 13px; text-align: center; overflow: hidden; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }

.person .role { font: 500 14px var(--sans); color: var(--red); margin-bottom: 8px; }
@media (max-width: 760px) { .person > .photo { grid-column: 1 / 8; } .person > div:not(.photo) { grid-column: 1 / -1; } }

/* ---------- FAQ ---------- */
.faq-group { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); margin-bottom: 64px; }
.faq-group > h2 { grid-column: 1 / 5; font-size: clamp(26px, 2.6vw, 36px); border-top: 1px solid var(--rule); padding-top: 18px; margin: 0 0 20px; }
.faq-group > details { grid-column: 5 / 13; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 48px 20px 0; position: relative; font-family: var(--serif); font-size: clamp(20px, 1.9vw, 24px); line-height: 1.25; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 300 30px var(--sans); color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--red); }
.faq .answer { padding: 0 0 24px; color: var(--ink-2); max-width: 44em; }
.faq .answer ul { padding-left: 20px; margin: 0 0 1em; }
@media (max-width: 860px) { .faq-group > h2, .faq-group > details { grid-column: 1 / -1; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 40px; }
.contact-grid > :first-child { grid-column: 1 / 5; }
.contact-grid > form { grid-column: 6 / 13; }
@media (max-width: 880px) { .contact-grid > :first-child, .contact-grid > form { grid-column: 1 / -1; } }
.contact-card { border-top: 1px solid var(--rule); padding-top: 16px; margin-bottom: 32px; }
.contact-card .eyebrow { margin-bottom: 8px; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { color: var(--red); }
.contact-card .big { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 36px); display: block; line-height: 1.15; letter-spacing: -0.01em; }
form.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 26px var(--col-gap); border-top: 1px solid var(--rule); padding-top: 22px; }
form.lead .full { grid-column: 1 / -1; }
form.lead label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; color: var(--ink-2); }
form.lead input, form.lead select, form.lead textarea { width: 100%; font: 17px var(--sans); padding: 10px 0; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; color: var(--ink); -webkit-appearance: none; appearance: none; }
form.lead select { background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%231b1813' stroke-width='1.5'/></svg>") no-repeat right 4px center; padding-right: 24px; }
form.lead textarea { min-height: 120px; resize: vertical; }
form.lead input:focus, form.lead select:focus, form.lead textarea:focus { outline: none; border-bottom: 2px solid var(--red); }
fieldset { border: 0; padding: 0; margin: 0; }
fieldset legend { font-size: 14px; font-weight: 500; margin-bottom: 12px; color: var(--ink-2); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.checks label { font-weight: 400 !important; display: flex !important; gap: 10px; align-items: center; font-size: 16px !important; margin: 0 !important; color: var(--ink) !important; }
.checks input { width: 18px !important; height: 18px; accent-color: var(--red); -webkit-appearance: auto !important; appearance: auto !important; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 600px) { form.lead, .checks { grid-template-columns: 1fr; } }

/* ---------- Call-to-action band (red) ---------- */
.cta-band, .on-dark.cta-band { background: var(--red); color: var(--on-red); }
.cta-band .eyebrow { color: var(--on-red); opacity: .8; }
.cta-band h2 { max-width: 13em; font-size: clamp(38px, 5.6vw, 84px); line-height: .98; }
.cta-band .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.cta-band .btn { background: var(--on-red); color: var(--red); border-color: var(--on-red); }
.cta-band .btn:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.cta-phone { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); text-decoration: none; display: block; margin-top: 14px; }
.cta-phone:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- Partner callout ---------- */
.partner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 16px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding-block: 32px; }
.partner > :first-child { grid-column: 1 / 5; }
.partner > :last-child { grid-column: 6 / 13; }
.partner h3 { margin: 0; }
@media (max-width: 760px) { .partner > :first-child, .partner > :last-child { grid-column: 1 / -1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-2); padding-block: 80px 36px; font-size: 15px; }
.site-footer .top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 40px; padding-bottom: 56px; }
.site-footer .top > :nth-child(1) { grid-column: 1 / 5; }
.site-footer .top > :nth-child(2) { grid-column: 6 / 8; }
.site-footer .top > :nth-child(3) { grid-column: 8 / 10; }
.site-footer .top > :nth-child(4) { grid-column: 10 / 13; }
.site-footer .brand { color: var(--on-ink); }
.site-footer .footer-logo svg { height: 120px; }
.site-footer h4 { font: 500 14px var(--sans); color: var(--on-ink-2); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; color: var(--on-ink); }
.site-footer a:hover { color: #f0713f; }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid #3c362d; font-size: 13px; }
@media (max-width: 900px) { .site-footer .top > * { grid-column: span 6 !important; } .site-footer .top > :nth-child(1) { grid-column: 1 / -1 !important; } }

.note-box { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 16px 0; font-size: 15px; color: var(--ink-2); }
.note-box strong { color: var(--red); font-weight: 600; }
.disclaimer { font-size: 13px; color: var(--ink-3); max-width: 62em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work-card .thumb img, .person .photo img { transition: none; }
  .hero-film iframe { display: none; }
}

.partner-photo { max-width: 240px; aspect-ratio: 4 / 5; overflow: hidden; }
.partner-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.nav a.btn, .nav a.btn:hover { color: var(--on-red); }
.ps-logo { display: inline-block; margin-top: 18px; }
.ps-logo img { width: 200px; height: auto; }

/* ---------- Results page: case study index and dividers ---------- */
.case-index { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); border-top: 1px solid var(--rule); }
.case-index a { display: block; padding: 22px 0 8px; color: inherit; text-decoration: none; }
.case-index .n { display: block; font-size: 14px; color: var(--ink-3); margin-bottom: 8px; }
.case-index b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; color: var(--ink); }
.case-index b + span { display: block; font-size: 15px; color: var(--ink-2); margin-top: 8px; }
.case-index a:hover b { color: var(--red); }
@media (max-width: 700px) { .case-index { grid-template-columns: 1fr; } }
.case-study-intro { border-top: 1px solid var(--ink); }
.case-study-intro .section-head { border-top: 0; padding-top: 0; }
.case-work { border-top: 1px solid var(--rule); padding-top: 44px; }
.case-work .work-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .case-work .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .case-work .work-grid { grid-template-columns: 1fr; } }
.points-head { font-size: clamp(24px, 2.4vw, 32px); margin: clamp(48px, 6vw, 80px) 0 8px; }
.points { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); }
.points > div { border-top: 1px solid var(--rule); padding: 22px 0 28px; }
.points h4 { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 10px; }
.points p { color: var(--ink-2); font-size: 16px; margin: 0; max-width: 36em; }
.points p.period { font-size: 13px; color: var(--ink-3); margin-top: 10px; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; } }
table.data caption.tcap { caption-side: top; text-align: left; font-family: var(--serif); font-size: 21px; letter-spacing: -0.01em; padding-bottom: 14px; }

/* Fun facts (home page). Icons are original line drawings, inline SVG, no third-party license. */
.facts-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; }
.facts-head h2 { font-size: clamp(26px, 2.6vw, 36px); margin: 0; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--col-gap); }
.facts li { border-top: 1px solid var(--rule); padding: 22px 0 26px; display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; align-items: start; }
.facts svg { width: 28px; height: 28px; margin-top: 1px; color: var(--red); stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.facts p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 26em; }
.facts p b { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 6px; }
@media (max-width: 960px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

/* Case study: plain-language lists */
.plain-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.plain-list li { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.plain-list li b { color: var(--ink); font-weight: 600; }
.case-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); row-gap: 40px; margin-top: clamp(32px, 4vw, 56px); }
.case-cols h3 { font-size: clamp(22px, 2.2vw, 28px); margin: 0 0 16px; }
@media (max-width: 760px) { .case-cols { grid-template-columns: 1fr; } }
.note-box.honest { margin-top: clamp(32px, 4vw, 48px); }
.note-box.honest p { margin: 0; }
.note-box.honest p + p { margin-top: 8px; }

/* Home hero: text over the background video */
.hero-v { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); padding: 0; min-height: min(calc(100vh - 68px), 820px); display: flex; align-items: flex-end; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-media iframe { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; border: 0; pointer-events: none; transform: translate(-50%, -50%); opacity: 0; transition: opacity .8s; }
.hero-media iframe.on { opacity: 1; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(27,24,19,.88) 0%, rgba(27,24,19,.62) 45%, rgba(27,24,19,.30) 100%); }
.hero-content { position: relative; width: 100%; padding-block: clamp(96px, 9vw, 140px) clamp(40px, 4.5vw, 64px); }
.hero-v h1 { color: var(--on-ink); max-width: 12.5em; font-size: clamp(44px, 6.4vw, 104px); margin-bottom: clamp(24px, 3vw, 40px); }
.hero-v .hero-sub { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); align-items: end; }
.hero-v .hero-sub .lede { grid-column: 1 / 8; margin: 0; color: var(--on-ink); }
.hero-v .hero-sub .btn-row { grid-column: 9 / 13; justify-content: flex-end; }
.hero-v .textlink { color: var(--on-ink); }
.hero-v .textlink:hover { color: #fff; }
@media (max-width: 860px) { .hero-v .hero-sub .lede, .hero-v .hero-sub .btn-row { grid-column: 1 / -1; justify-content: flex-start; } .hero-v .hero-sub .btn-row { margin-top: 24px; } }
@media (prefers-reduced-motion: reduce) { .hero-media iframe { display: none; } }

/* Client logos, shown in their supplied colors */
.client-logo { display: inline-flex; align-items: center; justify-content: center; height: 96px; padding: 20px 28px; }
.client-logo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; }
.client-logo { background: var(--cream); }
/* Logos supplied on a white background: multiply makes the white match the cream tile */
.client-logo img.on-white { mix-blend-mode: multiply; }
@media (max-width: 600px) { .client-logo { height: 80px; padding: 18px 22px; } }

/* Tighter section spacing on Services, Work, About and FAQ */
.tight :where(section:not(.page-hero):not(.cta-band)) { padding-block: clamp(48px, 6.5vw, 96px); }
.tight .page-hero { padding-block: clamp(40px, 6vw, 88px) clamp(24px, 3vw, 40px); }
.tight .page-hero + section { padding-top: clamp(24px, 3vw, 44px); }
.tight .section-tight { padding-block: clamp(32px, 4.5vw, 64px); }

/* Campaign Insights page */
.page-hero .hero-h2 { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.15; margin: clamp(16px, 2vw, 24px) 0 0; max-width: 20em; }
.case-sub { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; margin: 12px 0 0; color: var(--ink-2); }
.case-approach { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 32px; margin-top: clamp(32px, 4vw, 56px); align-items: start; }
.case-approach > div:first-child { grid-column: 1 / 6; }
.case-approach > .case-video { grid-column: 7 / 13; }
.case-approach h3 { font-size: clamp(22px, 2vw, 28px); margin: 0 0 14px; }
.case-approach p { color: var(--ink-2); max-width: 36em; }
.case-video .work-card { margin-bottom: 18px; }
@media (max-width: 860px) { .case-approach > div:first-child, .case-approach > .case-video { grid-column: 1 / -1; } }
.points.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .points.three { grid-template-columns: 1fr; } }
.lessons > div { border-top: 1px solid var(--rule-soft); padding: 22px 0 18px; }
.lessons > div:first-child { border-top: 0; padding-top: 0; }
.lessons h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 10px; }
.lessons p { color: var(--ink-2); }
.cta-band .cta-copy { max-width: 34em; margin: 20px 0 0; font-size: 17px; line-height: 1.5; }
/* Home insights cards: semantic h3 titles */
.facts h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 6px; }

/* Section heads whose note lines up with the content column below (home: What we do, Clients) */
.section-head.mid > div { grid-column: 1 / 6; }
.section-head.mid > p { grid-column: 6 / 11; }
.section-head.top > p { align-self: start; padding-top: 6px; }
@media (max-width: 860px) { .section-head.mid > div, .section-head.mid > p { grid-column: 1 / -1; } }
/* Services: right-hand column starts level with the headline, not the eyebrow */
@media (min-width: 641px) { .aside-drop { margin-top: 38px; } }
