/* v2.1 – hero alignment, CTA + footer (classic layout), pop-in on scroll. */

/* Hero: label, title and text all start on one left line */
.lf-hero .wp-block-cover__inner-container > * { margin-left: 0 !important; margin-right: auto !important; }
.lf-hero .wp-block-cover__inner-container > .lf-hero__sub { max-width: 36rem; }
.lf-hero h1 { margin-left: -0.04em !important; }

/* CTA (light, centered) */
.lf-cta .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--contrast); }
.lf-cta .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--contrast); color: #fff; }
.lf-cta h2 { line-height: .95; }

/* Footer (classic layout, black) */
.lf-footer__big { font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--xx-large); line-height: 1; margin: 0; overflow-wrap: anywhere; }
.lf-footer__big a:hover { color: var(--wp--preset--color--accent); }
.lf-footer__logo { margin: 0 0 .75rem; }
.lf-footer__claim { color: rgba(255,255,255,.6); max-width: 22rem; }
.lf-footer__cols .has-small-font-size { line-height: 1.8; }
.lf-footer .wp-block-social-links .wp-social-link { background: transparent !important; color: #fff !important; }
.lf-footer .wp-block-social-links .wp-social-link:hover { color: var(--wp--preset--color--accent) !important; }
.lf-footer__legal, .lf-footer__legal a { color: rgba(255,255,255,.45); font-size: var(--wp--preset--font-size--x-small); }

/* Pop-in on scroll (Motion films, Stills images) */
@media (prefers-reduced-motion: no-preference) {
	.lf-js .lf-pop { opacity: 0; transform: translateY(48px) scale(.97); transition: opacity .75s ease, transform .9s cubic-bezier(.16,.84,.3,1); transition-delay: var(--lf-delay, 0s); will-change: opacity, transform; }
	.lf-js .lf-pop.is-in { opacity: 1; transform: none; }
}

@media (max-width: 781px) {
	.lf-footer__big { font-size: clamp(1.6rem, 8.5vw, 2.4rem); }
	.lf-footer__cols { gap: 2rem !important; }
	.lf-cta .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.lf-cta .wp-block-button__link { width: 100%; text-align: center; }
}

/* Self-hosted video files on /motion (e.g. 9:16 reels) */
.lf-video--file video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: cover; }
.lf-video--file.is-vertical video { aspect-ratio: 9 / 16; }
.lf-reel__media.is-multi { grid-template-columns: repeat(auto-fit, minmax(220px, 340px)); justify-content: center; }

/* Hero still (phones + until the video plays) */
.lf-hero.wp-block-cover { background-image: url("/wp-content/uploads/2026/11/hero-poster.jpg"); }

/* Moodboard v2: tighter, masonry-style patchwork (no big gaps between rows) */
.wp-block-gallery.is-style-moodboard { display: block !important; column-count: 3; column-gap: clamp(.75rem, 1.6vw, 1.5rem); }
.wp-block-gallery.is-style-moodboard > .wp-block-image,
.wp-block-gallery.is-style-moodboard > .wp-block-image:nth-child(n) {
	display: inline-block !important; width: 100% !important; margin: 0 0 clamp(.75rem, 1.6vw, 1.5rem) !important;
	break-inside: avoid; grid-column: auto !important; vertical-align: top;
}
/* a little irregularity so it still feels hand-placed */
.wp-block-gallery.is-style-moodboard > .wp-block-image:nth-child(5n+2) { width: 86% !important; margin-left: 14% !important; }
.wp-block-gallery.is-style-moodboard > .wp-block-image:nth-child(5n+4) { width: 90% !important; }
.wp-block-gallery.is-style-moodboard > .wp-block-image:nth-child(3) { margin-top: 2.5rem !important; }
@media (max-width: 781px) {
	.wp-block-gallery.is-style-moodboard { column-count: 2; }
	.wp-block-gallery.is-style-moodboard > .wp-block-image:nth-child(3) { margin-top: 0 !important; }
}

/* v2.2 – mobile fixes */
/* No dark band over the hero: header sits transparent on the video */
.lf-header.is-overlay:not(.is-scrolled) { background: transparent !important; border-bottom: 0 !important; }
.lf-header.is-overlay:not(.is-scrolled) .wp-block-navigation, .lf-header.is-overlay:not(.is-scrolled) .wp-block-navigation__responsive-container-open { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
/* No blur on the header: blur traps the mobile menu inside the header bar */
.lf-header, .lf-header.is-overlay.is-scrolled { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.lf-header:not(.is-overlay), .lf-header.is-overlay.is-scrolled { background: rgba(255,255,255,.98) !important; }
/* Mobile menu: always full screen, wherever you are on the page */
.wp-block-navigation__responsive-container.is-menu-open { position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100dvh !important; z-index: 100000 !important; overflow-y: auto; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; gap: 1rem !important; }
/* No white strip below the black footer when you over-scroll on a phone */
html { background: linear-gradient(to bottom, #fff 0, #fff 50%, #0b0c0d 50%, #0b0c0d 100%); }
body { background: #fff; }
/* Phone: hero video fills the whole screen (9:16, centre of the film) */
@media (max-width: 781px) {
	.lf-hero.wp-block-cover { min-height: 100svh !important; }
	.lf-hero video.wp-block-cover__video-background { object-fit: cover; }
}
/* Hero video in its natural colours: no grey/dark layer over the film, only a soft shade behind the text */
.lf-hero .wp-block-cover__background { opacity: 0 !important; }
.lf-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.5) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,0) 60%); }
.lf-hero .wp-block-cover__inner-container { z-index: 3 !important; position: relative; }
@media (max-width: 600px) { .admin-bar .lf-header.is-overlay:not(.is-scrolled) { top: 46px !important; } }
.lf-hero video.wp-block-cover__video-background { opacity: 1; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { position: fixed !important; top: 18px !important; right: 20px !important; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 0 20px !important; box-sizing: border-box; }

/* v2.3 – full-screen hero on phones, sticky header everywhere, one font */
.lf-hero.wp-block-cover { min-height: 100vh !important; min-height: 100lvh !important; }
@media (max-width: 781px) { .lf-hero.wp-block-cover { min-height: 100vh !important; min-height: 100lvh !important; } }
/* Header stays at the top on every page (the template-part wrapper is the sticky element) */
.wp-site-blocks > .wp-block-template-part:has(> .lf-header:not(.is-overlay)) { position: sticky; top: 0; z-index: 60; }
.admin-bar .wp-site-blocks > .wp-block-template-part:has(> .lf-header:not(.is-overlay)) { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > .wp-block-template-part:has(> .lf-header:not(.is-overlay)) { top: 0; } }
.lf-header:not(.is-overlay) { position: relative; }
/* Page background colour follows the scroll position (white at the top, black at the footer) */
html { background: #fff; transition: background-color .2s; }
html.lf-at-bottom { background: #0b0c0d; }
body { background: #fff; }
/* One typeface everywhere: Pathway Gothic One */
body, .lf-form input, .lf-form textarea, .lf-form select { font-family: var(--wp--preset--font-family--heading); letter-spacing: .01em; }
p, li { line-height: 1.45; }
.lf-chip { font-weight: 400; font-size: 1.75rem; }
.lf-hero__sub { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.25; }

/* Brand marquee: all logos black (pre-processed PNGs), optically equal size via --lf-s */
.lf-marquee .wp-block-image img { height: calc(var(--lf-logo-base, 44px) * var(--lf-s, 1)) !important; width: auto !important; max-width: none !important; filter: none !important; opacity: 1 !important; }
@media (max-width: 781px) { .lf-marquee { --lf-logo-base: 30px; } }

/* Home collage: puzzle grid, fixed height, no white gaps */
.wp-block-gallery.is-style-moodboard.lf-collage { display: grid !important; column-count: auto; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, clamp(200px, 30vw, 460px)); gap: clamp(.6rem, 1.4vw, 1.25rem) !important; }
.wp-block-gallery.is-style-moodboard.lf-collage > .wp-block-image,
.wp-block-gallery.is-style-moodboard.lf-collage > .wp-block-image:nth-child(n) { width: auto !important; height: 100% !important; margin: 0 !important; display: block !important; }
.wp-block-gallery.is-style-moodboard.lf-collage > .wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.lf-collage > .wp-block-image:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.lf-collage > .wp-block-image:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
.lf-collage > .wp-block-image:nth-child(3) { grid-column: 3 / span 2; grid-row: 1; }
.lf-collage > .wp-block-image:nth-child(4) { grid-column: 3; grid-row: 2; }
.lf-collage > .wp-block-image:nth-child(5) { grid-column: 4; grid-row: 2; }
.lf-collage > .wp-block-image:nth-child(n+6) { display: none !important; }
@media (max-width: 781px) {
	.wp-block-gallery.is-style-moodboard.lf-collage { grid-template-columns: 1fr 1fr; grid-template-rows: 62vw 40vw 52vw; }
	.lf-collage > .wp-block-image:nth-child(1) { grid-column: 1; grid-row: 1; }
	.lf-collage > .wp-block-image:nth-child(2) { grid-column: 2; grid-row: 1; }
	.lf-collage > .wp-block-image:nth-child(3) { grid-column: 1 / span 2; grid-row: 2; }
	.lf-collage > .wp-block-image:nth-child(4) { grid-column: 1; grid-row: 3; }
	.lf-collage > .wp-block-image:nth-child(5) { grid-column: 2; grid-row: 3; }
}

/* collage placement (wins over the moodboard defaults) */
.wp-block-gallery.is-style-moodboard.lf-collage > .wp-block-image:nth-child(1) { grid-column: 1 !important; grid-row: 1 / span 2 !important; }
.wp-block-gallery.is-style-moodboard.lf-collage > .wp-block-image:nth-child(2) { grid-column: 2 !important; grid-row: 1 / span 2 !important; }
.wp-block-gallery.is-style-moodboard.lf-collage > .wp-block-image:nth-child(3) { grid-column: 3 / span 2 !important; grid-row: 1 !important; }
.wp-block-gallery.is-style-moodboard.lf-collage > .wp-block-image:nth-child(4) { grid-column: 3 !important; grid-row: 2 !important; }
.wp-block-gallery.is-style-moodboard.lf-collage > .wp-block-image:nth-child(5) { grid-column: 4 !important; grid-row: 2 !important; }
@media (max-width: 781px) {
	.wp-block-gallery.is-style-moodboard.lf-collage > .wp-block-image:nth-child(1) { grid-column: 1 !important; grid-row: 1 !important; }
	.wp-block-gallery.is-style-moodboard.lf-collage > .wp-block-image:nth-child(2) { grid-column: 2 !important; grid-row: 1 !important; }
	.wp-block-gallery.is-style-moodboard.lf-collage > .wp-block-image:nth-child(3) { grid-column: 1 / span 2 !important; grid-row: 2 !important; }
	.wp-block-gallery.is-style-moodboard.lf-collage > .wp-block-image:nth-child(4) { grid-column: 1 !important; grid-row: 3 !important; }
	.wp-block-gallery.is-style-moodboard.lf-collage > .wp-block-image:nth-child(5) { grid-column: 2 !important; grid-row: 3 !important; }
}

/* Motion: films 25 % smaller, centred */
.lf-reels .lf-reel { max-width: min(960px, 75vw); margin-inline: auto; }
.lf-reels .lf-reel__media.is-multi { grid-template-columns: repeat(auto-fit, minmax(200px, 280px)); }
@media (max-width: 781px) { .lf-reels .lf-reel { max-width: none; } }

/* Motion: tighter spacing between films */
.lf-reels .wp-block-post { min-height: 0 !important; padding-block: clamp(1rem, 2.2vw, 2rem) !important; }
.lf-reels .wp-block-post:first-child { padding-top: clamp(.5rem, 2vw, 1.5rem) !important; }

/* Mobile: vertical reels side by side and smaller */
@media (max-width: 781px) {
	.lf-reels .lf-reel__media.is-multi { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .6rem; max-width: 340px; margin-inline: auto; }
	.lf-reels .lf-reel__media.is-multi .lf-video.is-vertical { max-width: none; }
}
