/* Home portfolio index (inc/home-redesign.php, owner 2026-11-19).
   Desktop (1025px+): names on the left, the pointed-at project's mockup on the right, filling the list's height
   (all mockups share one grid area and cross-fade). Tablets: a row per project, mockup beside the name.
   Phones: mockup above the name. Numbers, slash and arrow are CSS decoration only, not page text.
   The side padding follows the "/ Portfolio" heading above, which sits at about 10% + 20px. */
.cat-pf { --pf-red: #ee2a24; --pf-dim: rgba(255, 255, 255, .34); --pf-line: rgba(255, 255, 255, .12); width: 100%; margin: 0; padding: 0 calc(10% + 20px); container-type: inline-size; color: #fff; box-sizing: border-box; }
.cat-pf__list { list-style: none; margin: 0; padding: 0; counter-reset: pf; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: 64px; }
.cat-pf__item { display: contents; }

.cat-pf__link { counter-increment: pf; grid-column: 1; position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); padding: 18px 0; border-top: 1px solid var(--pf-line); color: inherit; text-decoration: none; }
.cat-pf__item:last-child .cat-pf__link { border-bottom: 1px solid var(--pf-line); }
.cat-pf__link::before { content: counter(pf, decimal-leading-zero); grid-row: 1 / span 3; padding-top: 8px; font: 600 13px/1 'Open Sans', sans-serif; letter-spacing: .14em; color: var(--pf-dim); transition: color .3s; }

.cat-pf__name { position: relative; display: block; font-family: 'Bison', sans-serif; font-size: clamp(26px, 2.3vw, 36px); line-height: 1; letter-spacing: .5px; text-transform: uppercase; color: var(--pf-dim); transition: color .35s, padding .45s cubic-bezier(.2, .7, .2, 1); }
.cat-pf__name::before { content: '/'; position: absolute; left: 0; top: 0; color: var(--pf-red); opacity: 0; transform: translateX(-.35em); transition: opacity .35s, transform .45s cubic-bezier(.2, .7, .2, 1); }
.cat-pf__services { display: block; margin-top: 10px; font: 300 15px/1.5 'Open Sans', sans-serif; color: rgba(255, 255, 255, .62); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s, opacity .35s; }
.cat-pf__cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; font: 600 12px/1 'Open Sans', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #fff; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s, opacity .35s; }
.cat-pf__cta::after { content: ''; width: 26px; height: 2px; background: var(--pf-red); transition: width .3s; }

.cat-pf__item.is-active .cat-pf__name { color: #fff; padding-left: .55em; }
.cat-pf__item.is-active .cat-pf__name::before { opacity: 1; transform: none; }
.cat-pf__item.is-active .cat-pf__link::before { color: var(--pf-red); }
.cat-pf__item.is-active .cat-pf__services { max-height: 4.5em; opacity: 1; }
.cat-pf__item.is-active .cat-pf__cta { max-height: 2em; padding-bottom: 2px; opacity: 1; }
.cat-pf__link:hover .cat-pf__cta::after, .cat-pf__link:focus-visible .cat-pf__cta::after { width: 42px; }
.cat-pf__link:focus-visible { outline: 2px solid var(--pf-red); outline-offset: 6px; }

/* The mockups: one grid area spanning the whole list, stacked; the active one shows. The frame fills the list's
   height but never gets taller than it is wide, so the centred logos in the project graphics stay whole. */
.cat-pf__img { grid-column: 2; grid-row: 1 / span 12; align-self: center; height: 100%; max-height: calc((100cqw - 64px) * .575); min-height: 340px; margin: 0; position: relative; overflow: hidden; background: #0f0e18; opacity: 0; transform: scale(1.035); transition: opacity .55s, transform .9s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.cat-pf__img .cat-pf__pic { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.cat-pf__item.is-active .cat-pf__img { opacity: 1; transform: none; }
.cat-pf__img::after { content: ''; position: absolute; left: 0; bottom: 0; width: 72px; height: 4px; background: var(--pf-red); }

@media (max-width: 1280px) and (min-width: 1025px) {
	.cat-pf__list { column-gap: 44px; }
}

/* Below 1025px there is no pointing, so every project shows in full. */
@media (max-width: 1024px) {
	.cat-pf { padding: 0 40px; }
	.cat-pf__list { display: block; }
	.cat-pf__item { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); column-gap: 32px; align-items: center; padding: 26px 0; border-top: 1px solid var(--pf-line); }
	.cat-pf__item:last-child { border-bottom: 1px solid var(--pf-line); }
	.cat-pf__img { grid-column: 1; grid-row: 1; opacity: 1; transform: none; min-height: 0; align-self: auto; aspect-ratio: 3 / 2; }
	.cat-pf__link, .cat-pf__item:last-child .cat-pf__link { grid-column: 2; grid-row: 1; padding: 0; border: 0; grid-template-columns: 44px minmax(0, 1fr); }
	.cat-pf__link::before { padding-top: 6px; color: var(--pf-red); }
	.cat-pf__name, .cat-pf__item.is-active .cat-pf__name { color: #fff; padding-left: 0; font-size: 30px; }
	.cat-pf__name::before { display: none; }
	.cat-pf__services, .cat-pf__cta { max-height: none; opacity: 1; }
}

@media (max-width: 600px) {
	.cat-pf { padding: 0 20px; }
	.cat-pf__item { display: flex; flex-direction: column; align-items: stretch; padding: 0 0 36px; margin-bottom: 36px; border-top: 0; }
	.cat-pf__item:last-child { border-bottom: 0; margin-bottom: 0; }
	.cat-pf__img { order: -1; width: 100%; aspect-ratio: 3 / 2; margin-bottom: 18px; }
	.cat-pf__link, .cat-pf__item:last-child .cat-pf__link { grid-template-columns: 38px minmax(0, 1fr); }
	.cat-pf__name, .cat-pf__item.is-active .cat-pf__name { font-size: 26px; }
	.cat-pf__item:not(:last-child) { border-bottom: 1px solid var(--pf-line); }
}

@media (prefers-reduced-motion: reduce) {
	.cat-pf *, .cat-pf *::before, .cat-pf *::after { transition: none !important; }
}

/* The section labels and testimonial quotes that used to hide on phones (their builder CSS still carries the old
   hide rule until the page is next saved in the editor). */
@media (max-width: 767px) {
	.home .tpgb-block-d839d4_688, .home .tpgb-block-b6296f_688,
	.home .tpgb-block-94722d_688, .home .tpgb-block-18ae65_688, .home .tpgb-block-2b8f74_688 { display: block !important; }
}

/* Section labels: "/ Portfolio" and "/ Resources" were set as large white headings while "/ What We Do" and
   "/ Services" are small grey labels; all four now share the small label style. */
/* Sized up from the builder's 16px so they read as section headings. */
.home .tpgb-block-b6296f_688.heading_style .heading-title,
.home .tpgb-block-9a75c9_688.heading_style .heading-title,
.home .tpgb-block-d839d4_688.heading_style .heading-sub-title,
.home .tpgb-block-818cab_688.heading_style .heading-sub-title { font-family: 'Open Sans', sans-serif; font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: .01em; color: #a5a5af; }
@media (max-width: 1024px) {
	.home .tpgb-block-b6296f_688.heading_style .heading-title,
	.home .tpgb-block-9a75c9_688.heading_style .heading-title,
	.home .tpgb-block-d839d4_688.heading_style .heading-sub-title,
	.home .tpgb-block-818cab_688.heading_style .heading-sub-title { font-size: 21px; }
}
@media (max-width: 600px) {
	.home .tpgb-block-b6296f_688.heading_style .heading-title,
	.home .tpgb-block-9a75c9_688.heading_style .heading-title,
	.home .tpgb-block-d839d4_688.heading_style .heading-sub-title,
	.home .tpgb-block-818cab_688.heading_style .heading-sub-title { font-size: 19px; }
}
/* The slash in each label is the site red. */
.home .tpgb-block-b6296f_688 .heading-title mark, .home .tpgb-block-9a75c9_688 .heading-title mark,
.home .tpgb-block-d839d4_688 .heading-sub-title mark, .home .tpgb-block-818cab_688 .heading-sub-title mark { color: #ee2a24 !important; background: none; }

/* White testimonials section: it was held at full screen height with its contents spread apart, which left a
   large gap above the badge strip; it now sizes to its contents. */
.home .wp-block-uagb-container.uagb-block-35d1cd40 { min-height: 0; justify-content: flex-start; padding-top: 50px; padding-bottom: 50px; }

/* Hero: phones and tablets get the video too, in place of the cropped "LAUNCH" still. */
@media (max-width: 1024px) {
	.home .custom-tablet-breakpoint.home-vid-head { display: block !important; }
	.home figure:has(> img.wp-image-36361) { display: none !important; }
}

/* Below desktop the "/ Portfolio" label lines up with the list's own side padding. */
@media (max-width: 1024px) {
	.home .tpgb-block-d839d4_688 { padding-left: 40px !important; }
	.home .tpgb-block-d839d4_688 .heading-sub-title { margin-left: 0 !important; }
}
@media (max-width: 600px) {
	.home .tpgb-block-d839d4_688 { padding-left: 20px !important; }
}

/* Hero video poster: the video's opening frame sits over the player until Vimeo reports playback (home.js adds
   .is-playing), so a slow or blocked video shows the frame instead of an empty box. The image URL is added inline
   from the Media Library (inc/home-redesign.php). */
.home .home-vid-head::after { content: ''; position: absolute; inset: 0; z-index: 1; background: #000 center / cover no-repeat; pointer-events: none; transition: opacity .6s ease; }
.home .home-vid-head.is-playing::after { opacity: 0; }

/* Hero top row: the tagline column was held at 150px tall (builder setting), leaving empty space above the
   video; it now takes only the height of its row. */
.home .wp-block-uagb-container.uagb-block-17f206c5 { min-height: 0; }

/* Hero video on laptops and desktops: 90% of the page width, centred, the same proportion on every screen. */
@media (min-width: 1025px) {
	.home .home-vid-head--local { width: 90%; margin: 0 auto; padding-top: 50.625% !important; }
}
