/*
Theme Name: TOL Theme
Theme URI: https://theoddlayout.sg
Author: The Odd Layout Pte. Ltd.
Description: Lightweight block theme for The Odd Layout. No page builder required.
Version: 0.1.50
Requires at least: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: tol-theme
*/

html { scroll-behavior: smooth; }

.tol-header { position: sticky; top: 0; z-index: 20; background: var(--wp--preset--color--base); }
.tol-logo { margin: 0; line-height: 0; }
.tol-logo img { height: auto; display: block; }
.tol-header .wp-block-site-title a { text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; }
.tol-header .wp-block-navigation a { text-decoration: none; letter-spacing: 0.04em; }

/* Home: header floats over the hero and inverts over light or dark sections. */
.home .tol-header { position: fixed; top: 0; left: 0; right: 0; background: transparent; color: #fff; transition: background-color .25s ease; }
.home .tol-header a, .home .tol-header .wp-block-navigation-item__content, .home .tol-header .wp-block-navigation__responsive-container-open { color: #fff; }
.home .tol-header .tol-logo img { filter: brightness(0) invert(1); }
.home .tol-header.is-scrolled { background: var(--wp--preset--color--base); color: var(--wp--preset--color--ink); }
.home .tol-header.is-scrolled a, .home .tol-header.is-scrolled .wp-block-navigation-item__content, .home .tol-header.is-scrolled .wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--ink); }
.home .tol-header.is-scrolled .tol-logo img { filter: none; }
.home .tol-header:has(.is-menu-open) .wp-block-navigation__responsive-container-open { color: inherit; }
.admin-bar.home .tol-header { top: 32px; }
.home .wp-site-blocks > main, .home main > * { margin-block-start: 0 !important; }
.home main > .tol-marquee { margin-block-start: -4rem !important; }

/* Transparent tagline strip that sits over the bottom of the hero video. */
.tol-marquee { position: relative; z-index: 2; margin-top: -4rem; height: 4rem; box-sizing: border-box; overflow: hidden; background: transparent; color: var(--wp--preset--color--white); border-top: 1px solid rgba(255, 255, 255, .28); padding: 1.15rem 0; white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
.tol-marquee__track { display: inline-flex; gap: 3rem; animation: tol-marquee 36s linear infinite; font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--small); letter-spacing: 0.08em; text-transform: uppercase; }
.tol-marquee__track span { flex: none; }
@keyframes tol-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tol-marquee__track { animation: none; } }

/* Pinned heading beside scrolling principles (desktop only). */
.tol-values { gap: 3rem; }
.tol-values > .tol-values__sticky { position: sticky; top: 7rem; align-self: flex-start; }
.tol-item { border-top: 1px solid rgba(17, 17, 17, .35); padding: 2rem 0 5rem; }
.tol-item:first-child { margin-top: 0; }
.tol-item h3 { margin: 0 0 1rem; font-size: var(--wp--preset--font-size--small); text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.75; }
@media (max-width: 781px) {
	.tol-values__sticky { position: static; }
	.tol-item { padding-bottom: 2.5rem; }
}

/* Pages: text blocks keep side padding; full-width sections (patterns) run edge to edge. */
.wp-block-post-content > *:not(.alignfull) { padding-left: 1.5rem; padding-right: 1.5rem; box-sizing: border-box; }
.wp-block-post-content > .alignfull { max-width: none; }

/* "How we work" explainer: vertical video in a phone-shaped frame. */
.tol-explainer .wp-block-columns { gap: 4rem; }
.tol-explainer__wrap { max-width: 320px; margin: 0 auto; }
.tol-explainer__video { margin: 0; width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 24px 60px rgba(17, 17, 17, .25); }
.tol-explainer__video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tol-summary { margin: 1.25rem 0 1.75rem; max-width: 46ch; }
.tol-summary summary { cursor: pointer; font-size: var(--wp--preset--font-size--small); text-transform: uppercase; letter-spacing: 0.08em; }
.tol-summary p { margin-top: 0.75rem; }
@media (max-width: 781px) { .tol-explainer .wp-block-columns { gap: 2.5rem; } .tol-explainer__wrap { max-width: 300px; } }

/* Hero video (optional hero.mp4). */
.tol-hero { position: relative; overflow: hidden; }
.tol-hero__video, .tol-hero > .tol-hero__video { position: absolute; top: 0; left: 0; width: 100% !important; max-width: none !important; height: 100% !important; margin: 0 !important; object-fit: cover; z-index: 0; }
.tol-hero.has-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 17, 17, .30), rgba(17, 17, 17, .62)); z-index: 0; pointer-events: none; }
.tol-hero > *:not(.tol-hero__video) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .tol-hero__video { display: none; } }

.tol-row { border-top: 1px solid rgba(17, 17, 17, .35); padding-top: 2rem; margin-top: 2rem; gap: 2rem; }
.tol-row h3 { margin: 0; font-size: var(--wp--preset--font-size--small); text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.75; }
.tol-subhead { margin-top: 0; font-family: var(--wp--preset--font-family--display); }

.tol-hero { background-image: linear-gradient(160deg, #1d1b18 0%, #111 65%); background-size: cover; background-position: center; }
.tol-hero { min-height: 88vh; display: flex; flex-direction: column; justify-content: flex-end; }
.tol-hero { padding-left: max(1.5rem, calc((100% - 1240px) / 2)) !important; padding-right: 1.5rem !important; }
.tol-hero > * { margin-left: 0 !important; margin-right: auto !important; }
.tol-hero h1 { max-width: 14ch; }
.tol-hero p { max-width: 46ch; }

.tol-card { height: 100%; border-top: 1px solid currentColor; padding-top: 1.25rem; }
.tol-step-number { font-family: var(--wp--preset--font-family--display); opacity: 0.55; }

.wp-block-button__link { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8125rem; }
.is-style-outline > .wp-block-button__link { border-width: 1px; }

.tol-form-embed { display: block; width: 100%; max-width: 100%; height: 2300px; border: 0; background: #fff; }
@media (max-width: 600px) { .tol-form-embed { height: 2600px; } }

.tol-footer a { color: var(--wp--preset--color--white); text-decoration: none; }
.tol-footer a:hover { text-decoration: underline; }

@media (max-width: 781px) {
	.tol-hero { min-height: 70vh; }
}

/* ===== Magazine layer (HID structure, editorial typography) ===== */
:root { --tol-rule: rgba(17, 17, 17, .45); --tol-rule-soft: rgba(17, 17, 17, .22); }

/* Micro-labels: small mono caps, like a magazine section tag. */
.tol-label { font-family: var(--wp--preset--font-family--label); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 1.25rem; opacity: .75; }
.tol-label--center { text-align: center; }
.tol-marquee__track, .tol-step-number { font-family: var(--wp--preset--font-family--label); }
.tol-textlink { font-family: var(--wp--preset--font-family--label); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none !important; border-bottom: 1px solid currentColor; padding-bottom: 0.2rem; color: inherit !important; }
.tol-textlink:hover { opacity: .7; }

/* Headlines: large serif, tight. */
.wp-site-blocks h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.wp-block-post-title { font-size: clamp(2.6rem, 6vw, 5rem) !important; border-bottom: 1px solid var(--tol-rule); padding-bottom: 2rem; margin-bottom: 3rem; }
.tol-hero h1 { font-size: clamp(2.8rem, 7vw, 6.5rem); line-height: .98; max-width: 14ch; }
.tol-hero__kicker { font-style: italic; opacity: .92; margin-bottom: 1rem; }
.tol-hero__sub { max-width: 46ch; margin-top: 1.5rem; }

/* Menu: mono caps, hairline under the bar, boxed call to action. */
.tol-header .wp-block-navigation a, .tol-header .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--label); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.tol-header { border-bottom: 1px solid var(--tol-rule-soft); }
.home .tol-header { border-bottom-color: rgba(255, 255, 255, .25); }
.home .tol-header.is-scrolled { border-bottom-color: var(--tol-rule-soft); }
.tol-nav-cta > a { border: 1px solid currentColor; padding: 0.55rem 1rem; border-radius: 16px 0 16px 0; }

/* Principles: giant numerals, italic subheads, hairlines. */
.tol-num { display: block; font-family: var(--wp--preset--font-family--display); font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; text-transform: none; margin-bottom: 0.75rem; opacity: .9; }
.tol-subhead { font-style: italic; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.25; margin-bottom: 1rem; }
.tol-values__sub { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 1.25rem; opacity: .8; }
.tol-item { border-top-color: var(--tol-rule); }

/* Homes index: a magazine contents list. */
.tol-toc { list-style: none; margin: 3rem 0 0; padding: 0; border-top: 1px solid var(--tol-rule); }
.tol-toc li { position: relative; display: grid; grid-template-columns: 4rem 1fr 1.4fr 2rem; gap: 1.5rem; align-items: baseline; padding: 1.75rem 0; border-bottom: 1px solid var(--tol-rule-soft); }
.tol-toc__num { font-family: var(--wp--preset--font-family--label); font-size: 0.75rem; letter-spacing: 0.14em; opacity: .6; }
.tol-toc__title { font-family: var(--wp--preset--font-family--display); font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; text-decoration: none; }
.tol-toc__title::after { content: ""; position: absolute; inset: 0; }
.tol-toc li:hover .tol-toc__title { font-style: italic; }
.tol-toc__desc { opacity: .85; }
.tol-toc__go { text-align: right; font-size: 1.4rem; }
@media (max-width: 781px) { .tol-toc li { grid-template-columns: 2.5rem 1fr; gap: 0.75rem 1rem; } .tol-toc__desc { grid-column: 2; } .tol-toc__go { display: none; } }

/* Pull quote close. */
.tol-closing { border-top: 1px solid var(--tol-rule); }
.tol-closing h2 { font-style: italic; font-size: clamp(2.6rem, 7vw, 6rem) !important; line-height: 1; max-width: 16ch; margin-left: auto; margin-right: auto; }
.tol-closing .wp-block-buttons { margin-top: 3rem; }

/* Footer wordmark, like a magazine masthead. */
.tol-wordmark { font-family: var(--wp--preset--font-family--display); font-size: clamp(2.2rem, 9.5vw, 8.5rem); line-height: .9; letter-spacing: -0.03em; margin: 3rem 0 1.5rem; white-space: nowrap; overflow: hidden; }

/* About: lead paragraph with a drop cap. */
.slug-about .wp-block-post-content > p:first-of-type { font-family: var(--wp--preset--font-family--display); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.45; }
.slug-about .wp-block-post-content > p:first-of-type::first-letter { float: left; font-size: 4.6em; line-height: .8; padding: 0.08em 0.12em 0 0; }

/* Method: solid principles strip. */
.tol-marquee.tol-marquee--band { margin-top: 0; height: auto; background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); border-top: 0; text-shadow: none; padding: 1rem 0; }
.home main > .tol-marquee.tol-marquee--band { margin-block-start: 0 !important; }
.wp-block-post-content > .tol-marquee--band { padding-left: 0; padding-right: 0; }

/* ===== Projects (HID-style cards and project pages) ===== */
.tol-projects .wp-block-post-template { gap: 3rem 2.5rem; }
.tol-projects .wp-block-post-featured-image { margin-bottom: 1rem; overflow: hidden; }
.tol-projects .wp-block-post-featured-image img { transition: transform .6s ease; }
.tol-projects li:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.tol-projects .wp-block-post-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 0.4rem; border: 0; padding: 0; }
.tol-projects .wp-block-post-title a { text-decoration: none; }
.tol-projects .wp-block-post-title a:hover { font-style: italic; }
.tol-project-meta { margin: 0; }
.tol-project-meta p { margin: 0; }
.single-project .wp-block-post-title { font-size: clamp(2.6rem, 6vw, 5rem) !important; }
.single-project .wp-block-post-featured-image { margin: 2rem 0 4rem; }
.single-project .wp-block-post-content h3 { font-family: var(--wp--preset--font-family--label); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: .75; border-top: 1px solid var(--tol-rule); padding-top: 1.25rem; margin-top: 3rem; }
.single-project .wp-block-gallery { margin: 3rem 0; gap: 1rem; }
.single-project .wp-block-gallery img { height: 100%; object-fit: cover; }
.tol-backlink { margin: 4rem auto 5rem; }

/* Project meta line sits flush with the title. */
.single-project .tol-project-meta { max-width: 1240px; width: 100%; margin-left: auto; margin-right: auto; }
.tol-featured .tol-project-meta, .tol-projects .tol-project-meta { max-width: none; }

/* ===== Edge-to-edge pictures: no borders, frames, gaps, radii or shadows ===== */
.tol-projects--bleed { margin: 0; }
.tol-projects--bleed .wp-block-post-template { gap: 0; margin: 0; padding: 0; }
.tol-projects--bleed li { position: relative; overflow: hidden; margin: 0; }
.tol-projects--bleed .wp-block-post-featured-image { margin: 0; border: 0; }
.tol-projects--bleed .wp-block-post-featured-image img { display: block; width: 100%; border-radius: 0; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.tol-projects--bleed li:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.tol-projects--bleed li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 17, 17, 0) 40%, rgba(17, 17, 17, .72)); pointer-events: none; z-index: 1; }
.tol-projects--bleed .wp-block-post-title { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 3.2rem; margin: 0; z-index: 2; color: #fff; border: 0; padding: 0; }
.tol-projects--bleed .wp-block-post-title a { color: #fff; }
.tol-projects--bleed .tol-project-meta { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.4rem; z-index: 2; color: #fff; opacity: .9; margin: 0; }
@media (max-width: 781px) { .tol-projects--bleed .wp-block-post-template { grid-template-columns: 1fr !important; } }
.single-project .wp-block-gallery { --wp--style--unstable-gallery-gap: 0px; gap: 0; }
.single-project .wp-block-gallery .wp-block-image { margin: 0; }
.single-project .wp-block-gallery img, .single-project .wp-block-post-featured-image img { border-radius: 0; }
.tol-explainer__video { border-radius: 0; box-shadow: none; }

/* ===== Feature photo: one static picture, filters change live as you scroll (home.js sets --p from 0 to 1) ===== */
.tol-feature { --p: 1; position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: flex-end; background: #111; color: #fff; }
.tol-feature__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
	filter: grayscale(calc(1 - var(--p))) brightness(calc(.5 + .5 * var(--p))) saturate(calc(.75 + .25 * var(--p))) blur(calc((1 - var(--p)) * 6px));
	transform: scale(calc(1.16 - .16 * var(--p))); will-change: filter, transform; }
.tol-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 17, 17, 0) 45%, rgba(17, 17, 17, .65)); z-index: 1; pointer-events: none; }
.tol-feature__text { position: relative; z-index: 2; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1.5rem 6rem; box-sizing: border-box; }
.tol-feature__text h2 { color: #fff; font-size: clamp(2.4rem, 6vw, 5.2rem) !important; max-width: 17ch; margin: 0; }
.tol-feature__text .tol-label { color: #fff; }
@media (max-width: 781px) {
	.tol-feature { min-height: 80vh; }
	.tol-feature__img { filter: grayscale(calc(1 - var(--p))) brightness(calc(.5 + .5 * var(--p))); }
}
@media (prefers-reduced-motion: reduce) { .tol-feature__img { filter: none; transform: none; } }

/* ===== Scroll reveals (only when home.js is running) ===== */
.tol-js .tol-reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.tol-js .tol-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .tol-js .tol-reveal { opacity: 1; transform: none; transition: none; } }

/* ===== Travertine section: stone texture behind wording ===== */
.tol-travertine { background-color: #e2d9c7; background-image: linear-gradient(90deg, rgba(255, 253, 248, .55), rgba(255, 253, 248, .12) 68%), url("assets/travertine.webp"); background-size: cover; background-position: center; color: var(--wp--preset--color--ink); }
.tol-travertine h2 { font-size: clamp(2.2rem, 5vw, 4.2rem) !important; max-width: 15ch; }
@media (max-width: 781px) { .tol-travertine { background-image: linear-gradient(rgba(255, 253, 248, .45), rgba(255, 253, 248, .45)), url("assets/travertine.webp"); } }




/* ===== Two pictures under the hero: edge to edge, no borders ===== */
.tol-pair { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.tol-pair figure { margin: 0; overflow: hidden; height: min(88vh, 860px); background: #d8cfbc; }
.tol-pair img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.tol-pair figure:hover img { transform: scale(1.04); }
.home main > .tol-pair, .home main > section.tol-pair { margin-block-start: 0 !important; }
@media (max-width: 781px) { .tol-pair { grid-template-columns: 1fr; } .tol-pair figure { height: 62vh; } }

/* ===== Our Projects scroll stack: full-screen panels that slide over one another ===== */
.tol-stack .wp-block-post-template { display: block; list-style: none; margin: 0; padding: 0; counter-reset: proj; }
.tol-stack li { --cover: 0; position: sticky; top: 0; height: 100vh; height: 100svh; margin: 0; padding: 0; overflow: hidden; counter-increment: proj; background: #111; }
.tol-stack li .wp-block-post-featured-image { position: absolute; inset: 0; margin: 0; height: 100%; }
.tol-stack li .wp-block-post-featured-image a { display: block; height: 100%; }
.tol-stack li .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto !important; border-radius: 0;
	transform: scale(calc(1 - .07 * var(--cover))); filter: brightness(calc(1 - .6 * var(--cover))); transition: none; will-change: transform, filter; }
.tol-stack li:hover .wp-block-post-featured-image img { transform: scale(calc(1 - .07 * var(--cover))); }
.tol-stack li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 17, 17, .25) 0%, rgba(17, 17, 17, 0) 30%, rgba(17, 17, 17, 0) 55%, rgba(17, 17, 17, .75) 100%); pointer-events: none; z-index: 1; }
.tol-stack li::before { content: counter(proj, decimal-leading-zero); position: absolute; top: 6.5rem; left: 1.5rem; z-index: 2; color: #fff; font-family: var(--wp--preset--font-family--label); font-size: 0.75rem; letter-spacing: 0.14em; }
.tol-stack .wp-block-post-title { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 4.2rem; margin: 0; z-index: 2; color: #fff; border: 0; padding: 0; font-size: clamp(2.4rem, 6vw, 5.2rem) !important; max-width: 14ch; }
.tol-stack .wp-block-post-title a { color: #fff; text-decoration: none; }
.tol-stack .tol-project-meta { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 2rem; z-index: 2; color: #fff; opacity: .92; margin: 0; }
@media (prefers-reduced-motion: reduce) { .tol-stack li .wp-block-post-featured-image img { transform: none; filter: none; } }

/* ===== Principles over two pinned pictures (home): edge to edge, live filters ===== */
.tol-values-bg { --pl: 1; --pr: 1; overflow: clip; position: relative; background: #111; color: #fff; margin: 0; }
.tol-values-bg__media { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; z-index: 0; }
.tol-values-bg__media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(17, 17, 17, .50), rgba(17, 17, 17, .42) 50%, rgba(17, 17, 17, .55)); }
.tol-values-bg__img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; will-change: filter, transform; }
.tol-values-bg__img--l { filter: grayscale(calc(1 - var(--pl))) brightness(calc(.55 + .45 * var(--pl))) saturate(calc(.8 + .2 * var(--pl))) blur(calc((1 - var(--pl)) * 6px)); transform: scale(calc(1.12 - .12 * var(--pl))); }
.tol-values-bg__img--r { filter: grayscale(calc(1 - var(--pr))) brightness(calc(.55 + .45 * var(--pr))) saturate(calc(.8 + .2 * var(--pr))) blur(calc((1 - var(--pr)) * 6px)); transform: scale(calc(1.12 - .12 * var(--pr))); }
.tol-values-bg__content { position: relative; z-index: 2; }
.tol-values-bg h2, .tol-values-bg h3, .tol-values-bg p, .tol-values-bg .tol-label { color: #fff; }
.tol-values-bg .tol-item { border-top-color: rgba(255, 255, 255, .45); }
.tol-values-bg .tol-values__sub { opacity: .9; }
.tol-values-bg .tol-values__sticky, .tol-values-bg .tol-item { text-shadow: 0 1px 14px rgba(17, 17, 17, .35); }
@media (max-width: 781px) {
	.tol-values-bg__media { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
	.tol-values-bg__img--l, .tol-values-bg__img--r { filter: grayscale(calc(1 - var(--pl))) brightness(calc(.55 + .45 * var(--pl))); }
}
@media (prefers-reduced-motion: reduce) { .tol-values-bg__img--l, .tol-values-bg__img--r { filter: none; transform: none; } }

/* Fix: on phones the principles heading must not stay pinned (the desktop rule is more specific, so match it). */
@media (max-width: 781px) { .tol-values > .tol-values__sticky { position: static; } }


/* ===== Where to find us: photoshoot picture behind the wording ===== */
.tol-findus--photo { background-image: linear-gradient(90deg, rgba(17, 17, 17, .84), rgba(17, 17, 17, .5)), url("assets/findus-bg.jpg"); background-size: cover; background-position: center 46%; }


/* Live film grain over the project photos: drifts continuously and thickens as the next panel covers it */
.tol-stack li .wp-block-post-featured-image::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: url("assets/grain-1.png"); background-size: 160px 160px; opacity: .4; animation: tol-grain .7s steps(1) infinite; }
@keyframes tol-grain { 0% { background-image: url("assets/grain-1.png"); } 16.6% { background-image: url("assets/grain-2.png"); } 33.3% { background-image: url("assets/grain-3.png"); } 50% { background-image: url("assets/grain-4.png"); } 66.6% { background-image: url("assets/grain-5.png"); } 83.3% { background-image: url("assets/grain-6.png"); } }
@media (prefers-reduced-motion: reduce) { .tol-stack li .wp-block-post-featured-image::after { animation: none; } }
/* Wavy ripple on the principles pictures: ripples at first, settles flat as they come into colour */
.tol-values-bg__img--l, .tol-values-bg__img--r { filter: url(#tol-wave) grayscale(calc(1 - var(--pl))) brightness(calc(.55 + .45 * var(--pl))) saturate(calc(.8 + .2 * var(--pl))) blur(calc((1 - var(--pl)) * 6px)); transform: scale(1.22); }
.tol-values-bg__img--r { filter: url(#tol-wave) grayscale(calc(1 - var(--pr))) brightness(calc(.55 + .45 * var(--pr))) saturate(calc(.8 + .2 * var(--pr))) blur(calc((1 - var(--pr)) * 6px)); transform: scale(1.22); }
@media (max-width: 781px) { .tol-values-bg__img--l, .tol-values-bg__img--r { filter: grayscale(calc(1 - var(--pl))) brightness(calc(.55 + .45 * var(--pl))); transform: none; } }
@media (prefers-reduced-motion: reduce) { .tol-values-bg__img--l, .tol-values-bg__img--r { filter: none; transform: none; } .tol-wave-defs animate { display: none; } }
