/*
WordPress-only additions to the 2.0 design system (site.css). Everything here is built from
the design tokens and approved components: forms and modals, legacy block markup that has not
been rebuilt yet, editor content inside blocks, pagination, and small block variants.
No new visual language: if it is not derived from site.css, it does not belong here.
*/

/* ---------- base fixes for WordPress output ---------- */
body { margin: 0; }
body.nav-open { overflow: hidden; }
img { height: auto; }
.visually-hidden:focus { position: fixed !important; left: 16px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reveal, .reveal.is-visible { opacity: 1 !important; transform: none !important; }
[hidden] { display: none !important; }
.site-header .wrap { min-height: 68px; }
main { display: block; }

/* ---------- small variants of approved components ---------- */
.band--join { padding-top: 0; }
.band--join > .wrap { padding-top: clamp(56px, 7vw, 96px); background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.band:has(+ .band--join) { padding-bottom: clamp(56px, 7vw, 96px); }
.band:not(.band--tint) + .band--join:not(.band--tint) > .wrap { padding-top: clamp(56px, 7vw, 96px); }
.glance--flush { margin-top: 0; }
.glance.glance--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.band-head--center { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
.band-head--center .lede { margin-inline: auto; }
.band-head--center > div > .eyebrow:first-child { justify-content: center; }
.rules.lp-seg--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-next-list.lp-next-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checks--inline { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; }
.pdx--image { aspect-ratio: auto; }
.pdx--image img { width: 100%; height: auto; }
.person-bio-sm { margin-top: 6px; }
.band-head + .lp-gallery-all, .lp-gallery-all { display: flex; justify-content: flex-end; margin-top: 32px; }
.contact-audits .contact-audit > .textlink { margin-top: auto; }
.lp-plans .contact-audit .lp-foot .btn { align-self: flex-start; }
@media (max-width: 900px) {
  .rules.lp-seg--2, .lp-next-list.lp-next-list--2 { grid-template-columns: minmax(0, 1fr); }
  .band:has(+ .band--join) { padding-bottom: clamp(48px, 7vw, 96px); }
}

/* ---------- prose: rich text inside blocks (legacy text sections, project bodies) ---------- */
.prose { font-size: 17px; }
.prose--solo { max-width: 46rem; }
.prose > :last-child { margin-bottom: 0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r); }
.post-body .alignleft { float: left; margin: .4em 1.6em 1em 0; max-width: 50%; }
.post-body .alignright { float: right; margin: .4em 0 1em 1.6em; max-width: 50%; }
.post-body .aligncenter { display: block; margin-inline: auto; }
.post-body .wp-block-image img, .post-body .wp-caption img { border-radius: var(--r); }
.post-body .wp-caption-text, .post-body .wp-element-caption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--faint); }
.post-body iframe, .post-body video { max-width: 100%; border: 0; border-radius: var(--r); }
.post-body .wp-block-embed__wrapper, .post-body .video-embed { position: relative; aspect-ratio: 16 / 9; }
.post-body .wp-block-embed__wrapper iframe, .post-body .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin: 1.8em 0 2em; display: block; overflow-x: auto; }
.post-body th, .post-body td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-body thead th { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.post-body .key-takeaways { margin: 0 0 2em; padding: 18px 22px; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; background: var(--card); font-size: 16px; }
.post-body .key-takeaways > .eyebrow { display: block; margin-bottom: 8px; }
.post-body .key-takeaways ul { margin-bottom: 0; }

/* ---------- legacy section markup (1.x partials not rebuilt yet) ---------- */
.section { padding-block: var(--band); }
.section--secondary, .section--dark { background: var(--bg-2); color: var(--fg); }
.section--short { padding-top: calc(var(--band) / 2); }
.section--tight { padding-block: 24px; }
.content { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.875rem, 3.6vw, 3rem); line-height: 1.12; letter-spacing: -.01em; margin: 14px 0 0; }
.section .lead { color: var(--muted); max-width: 60ch; margin: 20px 0 0; font-size: 1.125rem; line-height: 1.625; }
.eyebrow--light { color: var(--faint); }
.btn--dark, .btn--light, .btn--outline, .btn--blue { background: var(--fg); color: var(--bg); }
.btn--dark:hover, .btn--light:hover, .btn--outline:hover, .btn--blue:hover { background: var(--accent); color: var(--accent-ink); }
.rich-text > * + * { margin-top: 1em; }

/* service groups / rows / tabs / chooser (1.x services page) */
.service-group__grid, .split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; margin-top: 32px; }
.service-group__heading { font: 600 clamp(1.75rem, 3vw, 2.5rem)/1.15 var(--display); margin: 12px 0 0; }
.service-group__intro, .service-group__desc { color: var(--muted); }
.service-group__tags { font: 500 12px/1.6 var(--mono); color: var(--muted); }
.service-group__proof { margin-top: 24px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.service-rows { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 1.5rem; gap: 12px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.service-row__icon img, .service-row__icon svg { width: 22px; height: 22px; }
.service-row__title { font: 600 1.15rem/1.3 var(--display); }
.service-row__text { color: var(--muted); font-size: 14.5px; }
.service-row:hover .service-row__title { color: var(--accent); }
.service-tabs__bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.service-tabs__tab { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 15px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); background: var(--card); color: var(--muted); font: 500 13.5px/1.2 var(--body); cursor: pointer; }
.service-tabs__tab[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.service-chooser__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.service-tile { display: block; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.service-tile__title { font: 600 1.25rem/1.25 var(--display); }
.service-tile__text { color: var(--muted); font-size: 14.5px; }
.intro__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px 48px; align-items: center; }
.intro__text { color: var(--muted); font-size: 1.125rem; max-width: 62ch; }
.reel-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.full-width-image__frame { margin: 0; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.full-width-image__frame img { width: 100%; border-radius: var(--r-lg); }
.full-width-image__caption { margin-top: 12px; font: 500 12px/1.5 var(--mono); color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: 32px; }
.gallery-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-grid__item, .gallery-grid a { display: block; border-radius: var(--r); overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-showcase__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(16px, 2vw, 24px); margin-top: 32px; }
.gallery-showcase__media { border-radius: var(--r); overflow: hidden; background: var(--bg-2); aspect-ratio: 16 / 10; }
.gallery-showcase__media img { width: 100%; height: 100%; object-fit: cover; }
.gallery-showcase__title { font: 600 1.15rem/1.3 var(--display); margin-top: 12px; }
.partners__logos { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; margin-top: 20px; }
.partners__logos img { max-height: 48px; width: auto; filter: grayscale(1); opacity: .7; }
.feature-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feature-steps__item { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.feature-steps__num { font: 500 12px/1.6 var(--mono); color: var(--faint); }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.results-item__num { font: 600 clamp(2rem, 3vw, 2.75rem)/1 var(--display); color: var(--fg); }
@media (max-width: 900px) {
  .service-group__grid, .split-grid, .intro__inner { grid-template-columns: minmax(0, 1fr); }
  .service-chooser__grid, .gallery-showcase__grid, .gallery-grid, .gallery-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .service-chooser__grid, .gallery-showcase__grid, .gallery-grid, .gallery-grid--2, .gallery-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- free report banner / pair / CTA: the approved .contact-audit surface ---------- */
.report-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin: 2em 0; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); color: var(--fg); }
.report-banner--centered { flex-direction: column; text-align: center; }
.report-banner__body { flex: 1 1 320px; min-width: 0; }
.report-banner__label { display: block; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.report-banner__heading { margin: 8px 0 0; font: 600 clamp(1.2rem, 1.8vw, 1.45rem)/1.3 var(--display); color: var(--fg); }
.report-banner__text { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.report-banner__link a { font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.report-banner .btn { background: var(--fg); color: var(--bg); }
.report-pair { margin: 0; }
.report-pair__heading { font: 600 clamp(1.5rem, 2.6vw, 2.25rem)/1.15 var(--display); margin: 0 0 24px; }
.report-pair__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.report-pair__card { margin: 0; flex-direction: column; align-items: flex-start; }
.report-cta__inner { max-width: 46rem; margin-inline: auto; text-align: center; }
.report-cta__points { list-style: none; margin: 24px auto 0; padding: 0; display: grid; gap: 10px; width: fit-content; text-align: left; }
.report-cta__points li { display: flex; gap: 10px; color: var(--muted); }
.report-cta__check svg, .plan-card__check svg { width: 18px; height: 18px; color: var(--accent); }
.report-cta__action { margin-top: 28px; }
@media (max-width: 720px) { .report-pair__cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- sitewide modals (contact, free report) ---------- */
.modal { display: none; position: fixed; inset: 0; z-index: 1000; }
.modal.is-open { display: flex; align-items: center; justify-content: center; padding: 24px 16px; overflow-y: auto; }
body.modal-open { overflow: hidden; }
.modal__overlay { position: fixed; inset: 0; background: color-mix(in srgb, var(--fg) 45%, transparent); backdrop-filter: blur(2px); }
.modal__dialog { position: relative; z-index: 1; width: min(100%, 40rem); max-height: calc(100dvh - 48px); overflow-y: auto; margin: auto; padding: clamp(24px, 4vw, 44px); background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 1px 2px rgba(16, 41, 61, .06), 0 28px 56px -16px rgba(16, 41, 61, .3); }
.modal__close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; border-radius: 999px; cursor: pointer; font-size: 26px; line-height: 1; color: var(--muted); }
.modal__close:hover { background: var(--bg-2); color: var(--fg); }
.modal__dialog > .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.modal__dialog > .eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); }
.modal__dialog h2 { margin: 14px 0 0; font: 600 clamp(1.6rem, 3vw, 2.1rem)/1.15 var(--display); letter-spacing: -.01em; padding-right: 32px; }
.modal__lead { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }
.modal__dialog .form-block, .modal__dialog .wpforms-container { margin-top: 24px; }

/* built-in theme forms (.form-block) */
.form-block { display: grid; gap: 14px; }
.form-block .block-field { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-block .text-field, .form-block .textarea, .form-block select { width: 100%; min-width: 0; margin: 0; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--card); color: var(--fg); font: 400 16px/1.4 var(--body); }
.form-block .textarea { min-height: 120px; resize: vertical; }
.form-block .text-field:focus, .form-block .textarea:focus, .form-block select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.form-block .submit-button { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border: 0; border-radius: 12px; background: var(--fg); color: var(--bg); font: 500 15px var(--body); cursor: pointer; }
.form-block .submit-button:hover { background: var(--accent); color: var(--accent-ink); }
.form-note--error { color: var(--danger); }
.consent-field { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent-field input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--fg); }
.sf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: 22px; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; background: var(--card); }
.form-success__title { margin: 0; font: 600 1.25rem/1.3 var(--display); }
.form-success__icon { display: none; }
.form-success__action { margin: 14px 0 0; }
@media (max-width: 560px) { .form-block .block-field { grid-template-columns: minmax(0, 1fr); } }

/* WPForms (plugin styling off): match the approved .field look */
.wpforms-container { width: 100%; }
.wpforms-form .wpforms-field-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
.wpforms-form .wpforms-field { min-width: 0; padding: 0 0 18px; }
.wpforms-form .wpforms-field-textarea, .wpforms-form .wpforms-field-select, .wpforms-form .wpforms-field.sf-span2, .wpforms-form .wpforms-field-checkbox, .wpforms-form .wpforms-field-html { grid-column: 1 / -1; }
.wpforms-form .wpforms-field-label { display: block; margin: 0 0 8px; font: 500 14px/1.4 var(--body); color: var(--fg); }
.wpforms-form .wpforms-required-label { color: var(--faint); }
.wpforms-form .wpforms-field-label.wpforms-label-hide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wpforms-form .wpforms-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.wpforms-form .wpforms-field-sublabel { font-size: 12px; color: var(--faint); margin-top: 4px; }
.wpforms-form input[type="text"], .wpforms-form input[type="email"], .wpforms-form input[type="tel"], .wpforms-form input[type="url"], .wpforms-form input[type="number"], .wpforms-form select, .wpforms-form textarea { width: 100%; min-width: 0; margin: 0; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--card); color: var(--fg); font: 400 16px/1.4 var(--body); transition: border-color .15s, box-shadow .15s; }
.wpforms-form textarea { min-height: 140px; resize: vertical; }
.wpforms-form input:hover, .wpforms-form select:hover, .wpforms-form textarea:hover { border-color: var(--fg); }
.wpforms-form input:focus, .wpforms-form select:focus, .wpforms-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.wpforms-form input::placeholder, .wpforms-form textarea::placeholder { color: var(--faint); opacity: 1; }
.wpforms-form .wpforms-submit-container { padding-top: 6px; }
.wpforms-form button[type="submit"], .wpforms-form .wpforms-submit { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border: 0; border-radius: 12px; background: var(--fg); color: var(--bg); font: 500 15px var(--body); cursor: pointer; transition: background .2s, color .2s; }
.wpforms-form button[type="submit"]:hover, .wpforms-form .wpforms-submit:hover { background: var(--accent); color: var(--accent-ink); }
.wpforms-form em.wpforms-error, .wpforms-form label.wpforms-error, .wpforms-form .wpforms-error-container { display: block; margin: 6px 0 0; font-size: 13px; font-style: normal; font-weight: 500; color: var(--danger); }
.wpforms-confirmation-container-full, div[id^="wpforms-confirmation-"] { padding: 18px 22px; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; background: var(--card); color: var(--fg); }
.wpforms-confirmation-container-full p { margin: 0; }
@media (max-width: 560px) { .wpforms-form .wpforms-field-container, .wpforms-form .wpforms-field-row { grid-template-columns: minmax(0, 1fr); } }

/* contact page form card */
.form-card .wpforms-container, .form-card .form-block { margin-top: 0; }
/* 10-22 UX pass: the contact page shows its labels (placeholders vanish on typing),
   so the placeholders go quiet; Budget sits beside Company instead of leaving a gap. */
.form-card .wpforms-field-label.wpforms-label-hide { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
.form-card .wpforms-field-label { margin-bottom: 6px; font-size: 13px; }
.form-card .wpforms-form input::placeholder, .form-card .wpforms-form textarea::placeholder { color: transparent; }
.form-card .wpforms-form .wpforms-field-select { grid-column: auto; }
.form-card-note { margin: 16px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 560px) { .form-card .wpforms-form .wpforms-field-select { grid-column: 1 / -1; } }

/* contact page social profiles */
.social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social-list a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font: 500 14px/1 var(--body); color: var(--fg); transition: border-color .15s, color .15s; }
.social-list a:hover, .social-list a:focus-visible { border-color: var(--accent); color: var(--accent); }
.social-list svg { width: 15px; height: 15px; fill: currentColor; flex: none; }

/* ---------- lightbox + video modal ---------- */
[data-lightbox] a { cursor: zoom-in; }
.lightbox, .video-modal { display: none; position: fixed; inset: 0; z-index: 1100; }
.lightbox.is-open { display: block; }
.video-modal.is-open { display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox__overlay, .video-modal__overlay { position: absolute; inset: 0; background: rgba(10, 24, 36, .92); }
.lightbox__dialog { position: relative; height: 100%; display: grid; align-items: center; grid-template-columns: 4rem minmax(0, 1fr) 4rem; padding: 4rem 1.5rem 2rem; }
.lightbox__figure { grid-column: 2; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 0; height: 100%; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 10rem); width: auto; height: auto; object-fit: contain; border-radius: 8px; transition: opacity .2s; }
.lightbox.is-loading .lightbox__img { opacity: 0; }
.lightbox__meta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; color: rgba(255, 255, 255, .75); font: 400 13px/1.5 var(--mono); }
.lightbox__meta:empty { display: none; }
.lightbox__close, .lightbox__nav, .video-modal__close { background: none; border: 0; cursor: pointer; color: #fff; opacity: .7; line-height: 1; }
.lightbox__close { position: absolute; top: 16px; right: 20px; font-size: 34px; }
.lightbox__nav svg { width: 32px; height: 32px; display: block; }
.lightbox__nav--prev { grid-column: 1; justify-self: center; }
.lightbox__nav--next { grid-column: 3; justify-self: center; }
.lightbox__close:hover, .lightbox__nav:hover, .video-modal__close:hover { opacity: 1; }
.lightbox.is-single .lightbox__nav { visibility: hidden; }
.video-modal__dialog { position: relative; z-index: 1; width: 100%; max-width: min(68rem, calc((100vh - 8rem) * 16 / 9)); }
.video-modal__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-lg); overflow: hidden; }
.video-modal__frame iframe, .video-modal__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal__close { position: absolute; top: -40px; right: 0; font-size: 32px; }

/* ---------- pagination (blog, archives, search) ---------- */
.blog-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; font: 500 14px/1 var(--body); color: var(--muted); border: 1px solid transparent; }
.blog-pager a.page-numbers:hover { border-color: var(--line-strong); color: var(--fg); }
.blog-pager .page-numbers.current { background: var(--fg); color: var(--bg); }
.blog-pager .page-numbers.dots { min-width: 24px; padding: 0; color: var(--faint); }
.blog-pager .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }

/* ---------- search / 404 ---------- */
.search-form { display: flex; gap: 10px; max-width: 34rem; margin-top: 28px; }
.search-form input[type="search"] { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--card); color: var(--fg); font: 400 16px/1.4 var(--body); }
.search-form input[type="search"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.search-form button { padding: 12px 20px; border: 0; border-radius: 12px; background: var(--fg); color: var(--bg); font: 500 15px var(--body); cursor: pointer; }
.search-form button:hover { background: var(--accent); color: var(--accent-ink); }
.result-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.result-list > li { border-bottom: 1px solid var(--line); }
.result-list a { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 6px 24px; padding: 24px 0; }
.result-list .eyebrow { padding-top: 4px; }
.result-list h3 { margin: 0; font: 600 1.25rem/1.3 var(--display); transition: color .2s; }
.result-list p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.result-list a:hover h3 { color: var(--accent); }
@media (max-width: 720px) { .result-list a { grid-template-columns: minmax(0, 1fr); } }

/* ---------- editor (block previews) ---------- */
.editor-styles-wrapper .band { padding-block: 64px; }
.editor-styles-wrapper .split > :first-child, .editor-styles-wrapper .faq-grid > :first-child { position: static; }

/* Blog index: featured post excerpt stops at four lines (owner 10-15). */
.blog-feature-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }

/* Blog post: the summary under the H1 spans the full content width (owner 10-15). */
.single-post .post-hero .sub { max-width: none; }

/* Image + text rows: text sits vertically centred against the image (owner 10-15). */
.row > .row-text { align-self: center; }
.row--top > .row-text { align-self: start; }

/* Five process steps sit in one row on desktop instead of leaving one alone (10-15 review). */
@media (min-width: 901px) { .steps.steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; } }

/* Hero image set to contain (website screenshots, owner 10-15): never cropped, no box behind it.
   The image keeps its own proportions and sits centred against the text column. */
.lp-hero-media--contain { justify-content: center; align-self: center; }
.lp-hero-media--contain .lp-hero-img { flex: none; min-height: 0; background: none; aspect-ratio: auto; }
.lp-hero-media--contain .lp-hero-img img { position: static; display: block; height: auto; }

/* Live Google map (sf_google_map). The embed cannot take custom map styles, so the frame is
   desaturated and tinted toward the site palette; the map stays fully interactive. */
.gmap { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-2); }
.gmap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(1) sepia(.18) hue-rotate(172deg) saturate(1.3) brightness(1.03) contrast(.9); }
/* Keyless embed: a picture of the map that opens Google Maps; our pin at the centre (the studio). */
.gmap--embed { display: block; }
.gmap--embed iframe { pointer-events: none; }
.gmap-pin { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px #fff, 0 0 0 10px rgba(5, 131, 242, .18); }
.gmap--embed:hover .gmap-pin { box-shadow: 0 0 0 3px #fff, 0 0 0 14px rgba(5, 131, 242, .22); }

/* "Knock out the white background" toggle (hero + image-text): white in the image blends into the
   band colour behind it, so a screenshot on white sits on the page with no white box. */
/* Chained + band-scoped so it beats .row-media--contain and .band--tint .row-media (card fills). */
.media--knockout, .media--knockout .lp-hero-img, .row-media.media--knockout, .band .row-media.media--knockout { background: none; }
.media--knockout img { mix-blend-mode: multiply; }
.gallery-grid__item.media--knockout, .more-sites-grid figure.media--knockout, .person.media--knockout .person-img { background: none; }
/* Project gallery "more websites" strip: Contain shows the whole screenshot (no crop). */
.more-sites-grid figure.fit-contain img { object-fit: contain; }

/* Closing note (text section joined to the block above, no heading): part of that section, not a
   band of its own. No divider, tight gap, body-size muted text at reading width. */
.band:has(+ .band--note) { padding-bottom: 40px; }
.band--join.band--note { padding-top: 0; }
/* Thin divider above the note, spaced like the card rules: 40px below the block, 20px above the text (owner 10-16). */
.band--join.band--note > .wrap, .band:not(.band--tint) + .band--join.band--note:not(.band--tint) > .wrap { padding-top: 20px;
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.band--note .band-head .lede:first-child { margin-top: 0; }
.band--note .band-head { margin-bottom: 0; }
/* Same type as the homepage's line under a section (.local): 14px muted, links underlined in --fg. */
.band--note .band-head .lede, .band--note .band-head p { max-width: 75ch; font-size: 14px; line-height: 1.6; color: var(--muted); }
.band--note .band-head .lede a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.band--note .band-head .lede a:hover { text-decoration-color: var(--accent); }
.band--note .actions { margin-top: 0; }

/* Link grid under a card grid: a section's 3+ related links in one small ruled grid. */
.link-grid { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 24px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 48px; }
.link-grid .textlink { display: inline; }
.link-grid .textlink .arr { display: inline-block; margin-left: 6px; }

.band-head--solo { grid-template-columns: minmax(0, 1fr); }

/* "Related:" line inside a text block keeps the .local look (beats .post-body p / a). */
.post-body p.local { margin: 28px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.post-body p.local a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.post-body p.local a:hover { text-decoration-color: var(--accent); }

/* Small closing line inside a section intro (text block toggle / "Related:"). */
.band-head .lede.local { margin-top: 20px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.band-head .lede.local a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }

/* Pager (Blog, category archives, /work) - UX pass 10-16. Replaces .blog-pager. */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--line); }
.pager[hidden] { display: none; }
.pager-status { margin: 0; font: 500 12px/1.4 var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; }
.pager ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.pager-num, .pager-step { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; text-decoration: none; transition: border-color .15s, color .15s, background .15s; }
.pager-num { font: 500 13px/1 var(--mono); font-variant-numeric: tabular-nums; }
.pager-step { font: 500 14px/1 var(--body); }
.pager-step .arr { transition: transform .2s ease; }
.pager-num:hover, .pager-step:not([aria-disabled="true"]):not(:disabled):hover { border-color: var(--accent); color: var(--accent); }
.pager-step[data-dir="next"]:not([aria-disabled="true"]):not(:disabled):hover .arr { transform: translateX(3px); }
.pager-step[data-dir="prev"]:not([aria-disabled="true"]):not(:disabled):hover .arr { transform: translateX(-3px); }
.pager-num[aria-current="page"] { background: var(--fg); border-color: var(--fg); color: var(--bg); cursor: default; }
.pager-step[aria-disabled="true"], .pager-step:disabled { color: var(--faint); opacity: .6; cursor: default; }
.pager-gap { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 40px; font: 500 13px/1 var(--mono); color: var(--faint); }
.pager-num:focus-visible, .pager-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 999px; }
@media (max-width: 560px) {
  .pager { display: grid; grid-template-columns: auto 1fr auto; gap: 0 8px; }
  .pager ol { display: contents; }
  .pager li:has(.pager-num), .pager li:has(.pager-gap) { display: none; }
  .pager li:first-child { grid-column: 1; grid-row: 1; }
  .pager-status { grid-column: 2; grid-row: 1; text-align: center; }
  .pager li:last-child { grid-column: 3; grid-row: 1; }
  .pager-step { padding: 0 14px; }
}

/* ONE shared width for descriptions with nothing beside them (owner 10-16). Change --desc-w here and
   every template follows: page hero descriptions (no hero image), case study intros, section intros
   with no top-right link or button, and the older section/intro blocks. Descriptions sharing a row
   with an image or a head link keep their own narrower widths. Blog posts keep a full-width intro. */
:root { --desc-w: 80%; }
.page-hero .sub, .post-hero .sub, .band-head--solo .lede, .section .lead, .intro__text { max-width: var(--desc-w); }
.page-hero-grid .sub { max-width: 58ch; }
.single-post .post-hero .sub { max-width: none; }
@media (max-width: 760px) { .page-hero .sub, .post-hero .sub, .band-head--solo .lede, .section .lead, .intro__text { max-width: none; } }

/* Single offer card (no list): text left, button right (prototype sf-pages.css, D24). */
.contact-audit.lp-offer.lp-offer--single { grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin-bottom: clamp(32px, 4vw, 48px); }
.lp-offer--single .lp-offer-main p { max-width: 62ch; }
@media (max-width: 900px) { .contact-audit.lp-offer.lp-offer--single { grid-template-columns: minmax(0, 1fr); } }

/* Ported from the approved prototype CSS (sf.css / sf-pages.css) on 10-16: rules the prototype gained after the
   theme port (side note, project types, link rows, four-across grid, problem list, route line). */
.rules.lp-seg--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .rules.lp-seg--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rules.lp-seg--4 { grid-template-columns: minmax(0, 1fr); } }
.lp-spec-note--single { grid-template-columns: minmax(0, 1fr); }
.lp-spec-note--single h3 { margin: 0; font: 600 1.25rem/1.3 var(--display); }
.lp-spec-note--single p { max-width: 70ch; }
.lp-types > li { padding-top: 20px; border-top: 1px solid var(--line); }
.lp-type-tag { margin: 6px 0 0; font-weight: 600; font-size: 15px; color: var(--fg); }
.lp-types-actions { margin-top: clamp(28px, 3vw, 40px); }
.lp-strip--audit p strong { color: var(--fg); }
.lp-problems { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 3vw, 48px); }
.lp-problems h3 { margin: 0; font: 600 1.25rem/1.3 var(--display); letter-spacing: -.01em; }
.lp-problems p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.lp-problems .textlink { display: inline-flex; margin-top: 14px; font-size: 14px; }
.lp-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; }
.about-tl--links .textlink { display: inline-flex; margin-top: 12px; font-size: 14px; }
.lp-side-note { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.lp-side-note h3 { margin: 0; font: 600 1.125rem/1.3 var(--display); }
.lp-side-note p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 48ch; }
.lp-side-note .textlink { display: inline-flex; margin-top: 12px; font-size: 14px; }
@media (max-width: 900px) { .lp-problems { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .clients--cap .logos li:nth-child(n+5) { display: none; } }
.contact-audit.lp-offer.lp-offer--alt { margin-top: clamp(16px, 2vw, 24px); border-color: var(--line); }
.lp-route { margin: clamp(20px, 2.5vw, 28px) 0 0; max-width: 72ch; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* Video grid (acf/video-grid, template-parts/blocks/video-grid.php): Work cards (.pgrid / .proj--sm) whose
   16:9 poster carries the .reel play button; the button opens the video modal. Three across by default. */
.vcard figure.reel { aspect-ratio: 16 / 9; }
.vcard figure.reel img { width: 100%; height: 100%; object-fit: cover; }
.vcard .reel-play { height: 44px; padding: 0 18px 0 14px; font-size: 13px; gap: 8px; }
.vcard .reel-play svg { width: 15px; height: 15px; }
.vcard .meta .more { margin-top: auto; padding-top: 14px; color: var(--fg); text-decoration: none; }
.vcard .meta .more:hover { color: var(--accent); }
.vcard:hover .more { color: var(--fg); }
.vcard:hover .more .arr { transform: none; }
.vcard .meta .more:hover .arr { transform: translateX(4px); }
.vgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .vgrid--2 { grid-template-columns: minmax(0, 1fr); } }
.vgrid-inline { margin: clamp(28px, 3vw, 40px) 0; }
.vgrid-inline .pgrid { gap: 32px clamp(16px, 2vw, 24px); }
.vgrid-inline .reel-play span { display: none; }
.vgrid-inline .reel-play { width: 44px; padding: 0; justify-content: center; }
/* The article's prose rules (.post-body figure / h3 / p / ul / li) must not reach into the cards. */
.post-body .vgrid-inline ul.pgrid { margin: 0; padding: 0; }
.post-body .vgrid-inline .pgrid > li { margin: 0; padding: 0; }
.post-body .vgrid-inline figure { margin: 0; }
.post-body .vgrid-inline .proj h3 { margin: 8px 0 0; font-size: 1.125rem; }
.post-body .vgrid-inline .proj p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; }
