/*
Theme Name: Aeno Studio
Theme URI: https://aeno.studio
Author: Aeno Studio
Description: Editorial portfolio theme for Aeno Studio — full-screen video hero, mosaic project grids per category, auto-scrolling showcase, floating "Let's talk" button and a dark footer. Works with Elementor and the block editor.
Version: 1.41.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aeno
Tags: portfolio, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   Fonts (free alternatives, SIL Open Font License — see assets/fonts)
   ========================================================================== */
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/fraunces-latin-ext-full-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/fraunces-latin-full-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Fraunces";
	font-style: italic;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/fraunces-latin-ext-full-italic.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Fraunces";
	font-style: italic;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/fraunces-latin-full-italic.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-display: swap;
	font-weight: 100 1000;
	src: url("assets/fonts/dm-sans-latin-ext-standard-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-display: swap;
	font-weight: 100 1000;
	src: url("assets/fonts/dm-sans-latin-standard-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Geist";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Geist";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--ink: #221f1f;
	--black: #000;
	--sand: #ece8e2;
	--paper: #fff;
	--muted: #6f6a66;
	--line: rgba(34, 31, 31, .14);

	--serif: "Fraunces", "Times New Roman", serif;
	--sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
	--serif-axes: "SOFT" 40, "WONK" 0;
	--serif-weight: 360;

	/* Headline face. Default: Geist, a free match for Saans (mobbin.com).
	   Customize → Aeno Studio → Logo, colours & fonts switches it to the Fraunces serif or your own licensed font. */
	--display: "Geist", "Helvetica Neue", Arial, sans-serif;
	--display-weight: 600;
	--display-axes: normal;
	--display-tracking: -0.04em;
	--display-leading: 1.02;

	--gutter: clamp(20px, 9.375vw, 120px);
	--gap: 10px;
	--max: 1600px;
	--header-h: 76px;
	--ease: cubic-bezier(.22, .61, .36, 1);
	--ease-out: cubic-bezier(.16, 1, .3, 1);

	/* Copper heading gradient: dark brown at the top of the letters, warm orange at the bottom,
	   a touch brighter on the left. Used per line of text (background-size: … 1lh). */
	--aeno-ember:
		linear-gradient(90deg, rgba(236, 112, 60, .22) 0%, rgba(236, 112, 60, 0) 42%, rgba(38, 20, 18, .16) 100%),
		linear-gradient(180deg, #4a2a25 0%, #5a3029 22%, #883d2b 48%, #bd502f 72%, #d9623a 86%, #e66d3d 100%);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--black);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p, figure, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto;
	padding: 10px 16px; background: var(--paper); color: var(--ink);
}

.container {
	width: 100%;
	max-width: calc(var(--max) + var(--gutter) * 2);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

/* Type primitives */
.serif, .display {
	font-family: var(--display);
	font-weight: var(--display-weight);
	font-variation-settings: var(--display-axes);
	font-optical-sizing: auto;
	letter-spacing: var(--display-tracking);
}
.eyebrow {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--ink);
}
.text-link {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 14px; color: var(--ink);
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size .4s var(--ease);
}
.text-link:hover { background-size: 100% 1px; }
.text-link svg { width: 10px; height: 10px; transition: transform .3s var(--ease); }
.text-link:hover svg { transform: translate(2px, -2px); }

/* Round arrow button (used by CTA, hero scroll, sliders) */
.round-btn {
	display: inline-grid; place-items: center; flex: none;
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--paper); color: var(--black);
	transition: transform .4s var(--ease), background-color .3s;
}
.round-btn svg { width: 12px; height: 12px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	color: var(--ink);
	background: rgba(255, 255, 255, 0);
	transition: background-color .4s var(--ease), color .4s var(--ease), transform .5s var(--ease);
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 32px;
	height: var(--header-h);
	padding-top: 6px;
}
.site-header.is-solid,
body:not(.has-hero) .site-header { background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header.is-light { color: var(--paper); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-brand { display: flex; align-items: center; flex: none; }
.site-brand img, .site-brand .custom-logo { width: auto; height: 30px; max-width: 180px; object-fit: contain; transition: filter .4s, opacity .3s; }
.site-brand .logo-light { display: none; }
.site-header.is-light .site-brand.has-light-logo .logo-dark { display: none; }
.site-header.is-light .site-brand.has-light-logo .logo-light { display: block; }
.site-header.is-light .site-brand:not(.has-light-logo) img { filter: brightness(0) invert(1); }
.site-brand__text { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; text-transform: lowercase; }
.site-brand__text sup { font-size: 10px; font-weight: 400; margin-left: 2px; top: -1.2em; }
.site-brand:hover img { opacity: .7; }

/* Primary navigation */
.primary-nav .menu { display: flex; align-items: center; gap: 22px; }
.primary-nav .menu > li { position: relative; }
.primary-nav a, .primary-nav .submenu-toggle {
	display: inline-flex; align-items: center; gap: 4px;
	font-size: 14px; line-height: 1; padding: 10px 0;
	transition: opacity .25s;
}
.primary-nav .menu > li > a { background: linear-gradient(currentColor, currentColor) 0 calc(100% - 4px) / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.primary-nav .menu > li > a:hover,
.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-ancestor > a { background-size: 100% 1px; }
.primary-nav .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; margin: -3px 0 0 3px;
	border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
	transform: rotate(45deg) scale(.8); transition: transform .3s;
}
.primary-nav .menu-item-has-children:hover > a::after,
.primary-nav .menu-item-has-children.is-open > a::after { transform: translateY(3px) rotate(225deg) scale(.8); }
.primary-nav .sub-menu {
	position: absolute; top: 100%; right: -18px; min-width: 200px;
	list-style: none; margin: 0; padding: 14px 18px;
	background: var(--paper); color: var(--ink);
	box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .25);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.primary-nav .sub-menu a { display: block; padding: 7px 0; white-space: nowrap; }
.primary-nav .sub-menu a:hover { opacity: .55; }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.menu-toggle { display: none; align-items: center; gap: 10px; font-size: 14px; }
.menu-toggle__bars { position: relative; width: 22px; height: 10px; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
	content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 9px; }

/* Mobile overlay menu */
.mobile-menu {
	position: fixed; inset: 0; z-index: 99;
	display: flex; flex-direction: column; justify-content: space-between;
	padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
	background: var(--sand); color: var(--ink);
	clip-path: inset(0 0 100% 0);
	transition: clip-path .7s var(--ease-out);
	overflow-y: auto;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); }
.mobile-menu .menu { list-style: none; margin: 0; padding: 0; }
.mobile-menu .menu > li > a {
	display: block; padding: 6px 0;
	font-family: var(--display); font-weight: var(--display-weight); font-variation-settings: var(--display-axes);
	font-size: clamp(34px, 9vw, 52px); line-height: 1.1; letter-spacing: var(--display-tracking);
}
.mobile-menu .sub-menu { list-style: none; margin: 0 0 12px; padding: 0; }
.mobile-menu .sub-menu a { display: block; padding: 5px 0; font-size: 15px; color: var(--muted); }
.mobile-menu__meta { display: grid; gap: 6px; margin-top: 40px; font-size: 14px; }
.menu-open .site-header { color: var(--ink); background: transparent; backdrop-filter: none; }
.menu-open .site-header .site-brand img { filter: none; }
.menu-open .site-header .site-brand.has-light-logo .logo-dark { display: block; }
.menu-open .site-header .site-brand.has-light-logo .logo-light { display: none; }
.menu-open .menu-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle__bars::after { top: 5px; transform: rotate(-45deg); }

/* ==========================================================================
   Language switcher
   ========================================================================== */
.primary-nav { margin-left: auto; }
.site-header__tools { display: flex; align-items: center; gap: 18px; flex: none; }
.lang-switch { position: relative; }
.lang-switch__btn {
	display: inline-flex; align-items: center; gap: 6px;
	height: 30px; padding: 0 0 0 18px;
	border-left: 1px solid color-mix(in srgb, currentColor 25%, transparent);
	font-size: 13px; letter-spacing: .4px; line-height: 1;
}
.lang-switch__btn svg { width: 9px; height: 6px; transition: transform .3s var(--ease); }
.lang-switch.is-open .lang-switch__btn svg { transform: rotate(180deg); }
.lang-switch__list {
	position: absolute; top: calc(100% + 10px); right: -14px; z-index: 5;
	min-width: 176px; margin: 0; padding: 8px; list-style: none;
	background: var(--paper); color: var(--ink);
	box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .05);
	opacity: 0; visibility: hidden; transform: translateY(-4px);
	transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.lang-switch.is-open .lang-switch__list { opacity: 1; visibility: visible; transform: none; }
.lang-switch__list a {
	display: grid; grid-template-columns: 28px 1fr; align-items: center;
	padding: 9px 10px; font-size: 14px; border-radius: 2px;
	transition: background-color .2s;
}
.lang-switch__list a:hover, .lang-switch__list a:focus-visible { background: var(--sand); }
.lang-switch__code { font-size: 11px; font-weight: 500; letter-spacing: 1px; color: var(--muted); }
.lang-switch__list .is-current { font-weight: 500; }
.lang-switch__list .is-current .lang-switch__code { color: var(--ink); }
.lang-inline { display: flex; gap: 6px; margin-bottom: 18px; }
.lang-inline a { display: inline-grid; place-items: center; min-width: 40px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; letter-spacing: .6px; }
.lang-inline a.is-current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (max-width: 1024px) {
	.site-header__tools { gap: 16px; }
	.lang-switch__btn { border-left: 0; padding-left: 0; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	height: 104vh; height: 104svh; min-height: 560px;
	overflow: hidden;
	background: #7f9c9b;
	color: var(--paper);
}
.hero__media, .hero__media img, .hero__media video {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__media { transform: scale(1.06); animation: heroZoom 2.4s var(--ease-out) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,.32) 100%);
}
.hero__content {
	position: absolute; left: 0; right: 0; bottom: calc(4vh + 60px); z-index: 2;
	display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.hero__title {
	position: relative;
	padding-left: .42em;
	font-size: clamp(48px, 7.05vw, 112px);
	line-height: var(--display-leading);
	max-width: 9.5em;
	opacity: 0; transform: translateY(30px);
	animation: heroIn 1.4s .3s var(--ease-out) forwards;
}
.hero__title::before { content: "–"; position: absolute; left: -.05em; top: 0; }
/* The leading dash belongs to the serif headline style; sans headlines start flush, like mobbin.com. */
.headline-sans .hero__title { padding-left: 0; }
.headline-sans .hero__title::before { content: none; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.hero__scroll { width: 40px; height: 40px; }
.hero__scroll:hover { transform: translateY(4px); }

/* ==========================================================================
   Intro
   ========================================================================== */
.intro { padding: clamp(80px, 9vw, 130px) 0 clamp(70px, 8vw, 120px); }
.intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.intro__title { margin-top: 14px; font-size: clamp(36px, 3.9vw, 56px); line-height: var(--display-leading); max-width: 8.6em; color: var(--ink); }
.intro__lead { margin-top: 26px; max-width: 360px; font-size: 17px; line-height: 24px; color: var(--ink); }
.intro__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.intro__nav a { font-size: 14px; color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); padding-bottom: 2px; }
.intro__nav a:hover { background-size: 100% 1px; }

/* ==========================================================================
   Mosaic grid (featured categories + project archive)
   ========================================================================== */
.featured { padding-bottom: clamp(60px, 6vw, 90px); scroll-margin-top: var(--header-h); }
.mosaic {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--gap);
}
.mosaic > * { min-width: 0; }
.span-1 { grid-column: span 1; aspect-ratio: 340 / 433; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; aspect-ratio: 1040 / 524; }
.span-2.is-alone { aspect-ratio: 690 / 433; }

.mosaic__card {
	display: flex; flex-direction: column; justify-content: flex-start;
	padding: clamp(28px, 4.6vw, 60px) clamp(24px, 4.6vw, 60px);
	background: var(--card-bg, var(--sand)); color: var(--card-fg, var(--ink));
}
/* Every text element in the tile follows the tile's text colour (set per category). */
.mosaic__card .eyebrow, .mosaic__card .text-link, .mosaic__card h2, .mosaic__card p { color: inherit; }
.mosaic__card h2 { margin-top: 18px; font-size: clamp(32px, 3.15vw, 46px); line-height: var(--display-leading); max-width: 6em; }
.mosaic__card p { margin-top: 22px; font-size: 14px; line-height: 20px; max-width: 220px; }
.mosaic__card .text-link { margin-top: 18px; font-size: 13px; }

/* Project card */
.pcard { position: relative; overflow: hidden; background: #d9d4cc; color: var(--paper); isolation: isolate; }
.pcard__media { position: absolute; inset: 0; }
.pcard__media img, .pcard__media video {
	width: 100%; height: 100%; object-fit: cover;
	transform: scale(1.001); transition: transform 1.6s var(--ease-out), opacity .6s;
}
/* Cover videos sit on top of the cover image; they stay transparent until their first frame loads. */
.cover-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard:hover .pcard__media img, .pcard:hover .pcard__media video { transform: scale(1.045); }
.pcard::before {
	content: ""; position: absolute; inset: 0 0 auto; height: 38%; z-index: 1; pointer-events: none;
	background: linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,0));
}
.pcard__cover { position: absolute; inset: 0; z-index: 3; }
/* Photo-only tiles: no title, no dark band at the top; a click opens the photo full screen */
.pcard--zoom::before { display: none; }
.pcard--zoom .pcard__cover { width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pcard--zoom .pcard__cover:focus-visible { outline: 2px solid var(--paper); outline-offset: -6px; }

/* Full-screen photo viewer (assets/js/lightbox.js) */
html.lb-open { overflow: hidden; }
html.lb-open body { padding-right: var(--lb-gap, 0px); }
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	background: rgba(12, 12, 13, .94);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #f4f3f1;
	opacity: 0;
	transition: opacity .32s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__stage { --lb-py: clamp(56px, 8vh, 84px); --lb-px: clamp(16px, 7vw, 110px); position: absolute; inset: 0; display: grid; place-items: center; padding: var(--lb-py) var(--lb-px); }
.lightbox__media {
	grid-area: 1 / 1;
	max-width: calc(100vw - 2 * var(--lb-px));
	max-height: calc(100vh - 2 * var(--lb-py));
	max-height: calc(100svh - 2 * var(--lb-py));
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8);
	user-select: none;
	-webkit-user-drag: none;
}
video.lightbox__media { width: min(calc(100vw - 2 * var(--lb-px)), 1600px); background: #000; }
.lightbox__count {
	position: absolute;
	top: clamp(16px, 2.6vh, 28px);
	left: clamp(16px, 2.4vw, 32px);
	margin: 0;
	font-family: var(--sans);
	font-size: 13px;
	letter-spacing: .06em;
	font-variant-numeric: tabular-nums;
	opacity: .75;
}
.lightbox__btn {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: inherit;
	cursor: pointer;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.lightbox__btn[hidden] { display: none; }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .35); }
.lightbox__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lightbox__close { top: clamp(10px, 2vh, 20px); right: clamp(12px, 2vw, 26px); }
.lightbox__nav { top: 50%; margin-top: -24px; }
.lightbox__prev { left: clamp(10px, 2vw, 30px); }
.lightbox__next { right: clamp(10px, 2vw, 30px); }
.lightbox__prev:hover { transform: translateX(-2px); }
.lightbox__next:hover { transform: translateX(2px); }
@media (max-width: 768px) {
	.lightbox__stage { --lb-py: 72px; --lb-px: 0px; }
	.lightbox__nav { top: auto; bottom: 18px; margin-top: 0; width: 44px; height: 44px; }
	.lightbox__prev { left: calc(50% - 56px); }
	.lightbox__next { right: calc(50% - 56px); }
}
@media (prefers-reduced-motion: reduce) {
	.lightbox { transition: none; }
}
.pcard__caption {
	position: absolute; top: 22px; left: 26px; right: 26px; z-index: 2;
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	font-size: 12px; line-height: 17px; letter-spacing: .2px; text-shadow: 0 1px 12px rgba(0,0,0,.25);
}
.pcard__caption h3 { font-size: inherit; font-weight: 400; }
.pcard__sep { opacity: .7; }
.pcard__loc { display: inline-flex; align-items: center; gap: 6px; opacity: .92; }
.pcard__loc svg { width: 10px; height: 12px; }
.pcard__more {
	position: absolute; right: 18px; bottom: 18px; z-index: 2;
	display: inline-flex; align-items: center; gap: 0;
	height: 30px; padding: 0 9px; border-radius: 999px;
	background: rgba(20, 18, 18, .38); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	font-size: 12px; white-space: nowrap;
	transition: background-color .3s, padding .5s var(--ease);
}
.pcard__more-label { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .6s var(--ease), opacity .4s, margin .6s var(--ease); }
.pcard__more svg { width: 10px; height: 10px; flex: none; }
.pcard.span-2 .pcard__more, .pcard.span-3 .pcard__more, .pcard:hover .pcard__more { padding: 0 14px; }
.pcard.span-2 .pcard__more-label, .pcard.span-3 .pcard__more-label,
.pcard:hover .pcard__more-label { max-width: 160px; opacity: 1; margin-right: 8px; }
.pcard:hover .pcard__more { background: rgba(20, 18, 18, .6); }

.mosaic__more { margin-top: 26px; display: flex; justify-content: flex-end; }

/* ==========================================================================
   Showcase (auto-scrolling strip)
   ========================================================================== */
.showcase { background: var(--sand); padding: clamp(70px, 7vw, 110px) 0 clamp(70px, 7vw, 100px); overflow: hidden; }
.showcase__head { text-align: center; margin-bottom: clamp(36px, 4vw, 56px); }
.showcase__head h2 { margin-top: 14px; font-size: clamp(34px, 3.4vw, 50px); line-height: var(--display-leading); color: var(--ink); }
.showcase__viewport { overflow: hidden; }
.showcase__track { display: flex; gap: var(--gap); width: max-content; animation: marquee var(--marquee-duration, 60s) linear infinite; }
.showcase__viewport:hover .showcase__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.showcase__item { position: relative; flex: none; width: clamp(220px, 24vw, 340px); color: var(--ink); }
.showcase__item.is-wide { width: clamp(300px, 36vw, 520px); }
.showcase__media { position: relative; aspect-ratio: 340 / 433; overflow: hidden; background: #d9d4cc; }
.showcase__item.is-wide .showcase__media { aspect-ratio: 520 / 433; }
.showcase__media img, .showcase__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.showcase__item:hover .showcase__media img, .showcase__item:hover .showcase__media video { transform: scale(1.04); }
.showcase__caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 12px; letter-spacing: .2px; }
.showcase__caption span:last-child { color: var(--muted); }

/* ==========================================================================
   Floating CTA
   ========================================================================== */
.float-cta {
	position: fixed; right: var(--gutter); bottom: 40px; z-index: 90;
	display: inline-flex; align-items: center; gap: 14px;
	padding: 5px 5px 5px 18px; border-radius: 999px;
	background: rgba(236, 232, 226, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	color: var(--ink);
	font-family: var(--display); font-weight: 500; font-variation-settings: var(--display-axes);
	font-size: 17px; letter-spacing: -0.01em;
	opacity: 0; transform: translateY(20px); pointer-events: none;
	transition: opacity .5s var(--ease), transform .6s var(--ease), background-color .3s;
}
.float-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
/* Not needed on a page that already has the contact form. */
.has-contact-form .float-cta { display: none; }
.float-cta:hover { background: rgba(236, 232, 226, .95); }
.float-cta:hover .round-btn { transform: rotate(45deg); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(60px, 6vw, 90px) 0 36px; }
.site-footer a { transition: opacity .25s; }
.site-footer a:hover { opacity: .6; }
.site-footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer__logo img { height: 30px; width: auto; max-width: 200px; object-fit: contain; }
.site-footer__logo:not(.has-light-logo) img { filter: brightness(0) invert(1); }
.footer-cta { display: inline-flex; align-items: center; gap: 26px; }
.footer-cta__label { font-size: clamp(48px, 6.25vw, 92px); line-height: var(--display-leading); }
.footer-cta .round-btn { width: 60px; height: 60px; }
.footer-cta .round-btn svg { width: 14px; height: 14px; }
.footer-cta:hover { opacity: 1 !important; }
.footer-cta:hover .round-btn { transform: rotate(45deg); }
.site-footer__cols {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px;
	margin-top: clamp(56px, 6vw, 90px);
}
.footer-col h2 { font-family: var(--sans); font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col li, .footer-col a { font-size: 14px; color: rgba(255, 255, 255, .78); }
.footer-col .ext::after { content: " ↗"; font-size: 12px; }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	margin-top: clamp(56px, 6vw, 90px); padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 12px; color: rgba(255, 255, 255, .55);
}
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0; padding: 0; }

/* ==========================================================================
   Scroll module (Dashboard → Moduły)
   Colours come from each module: --smod-bg, --smod-color, --smod-hi.
   --smod-p (0–1) is the scroll progress, set by assets/js/scroll-module.js.
   ========================================================================== */
.smod {
	--smod-p: 0;
	--smod-max: 1040px;
	position: relative;
	background: var(--smod-bg, #000);
	color: var(--smod-color, #86868b);
	padding-top: clamp(70px, 9vw, 150px);
	padding-bottom: clamp(70px, 9vw, 150px);
}
.smod + .smod { padding-top: 0; }
.smod--below.smod--has-media { padding-top: 0; }
.smod--above.smod--has-media { padding-bottom: 0; }

/* Text */
.smod__copy { position: relative; z-index: 2; }
.smod--center .smod__copy { text-align: center; }
.smod--below .smod__copy { margin-top: calc(var(--smod-gap, clamp(28px, 4vw, 60px)) - var(--smod-pull, 0px)); }
.smod--above .smod__copy { margin-bottom: calc(var(--smod-gap, clamp(28px, 4vw, 60px)) - var(--smod-pull, 0px)); }
/* Closer text: --smod-pull (set by scroll-module.js) removes the empty space the pinned
   image leaves on screen; --smod-gap is what remains between image and text. */
.smod--gap-small { --smod-gap: clamp(14px, 1.8vw, 26px); }
.smod--gap-none { --smod-gap: 0px; }
.smod--gap-overlap { --smod-gap: calc(var(--smod-overlap, 60px) * -1); }
.smod .smod__title {
	margin: 0;
	font-family: var(--display);
	font-weight: var(--display-weight);
	font-variation-settings: var(--display-axes);
	letter-spacing: calc(var(--display-tracking) * .6);
	font-size: clamp(40px, 5.6vw, 84px);
	line-height: 1.06;
	color: var(--smod-hi, #f5f5f7);
	text-wrap: balance;
}
.smod .smod__text {
	font-family: var(--display);
	font-weight: 500;
	font-size: clamp(19px, 1.65vw, 24px);
	line-height: 1.42;
	letter-spacing: -0.012em;
	max-width: 40em;
	text-wrap: pretty;
}
.smod__title + .smod__text { margin-top: clamp(20px, 2.4vw, 34px); }

/* Headline filled with a gradient (or image) instead of a flat colour */
.smod.smod--fill .smod__title {
	width: fit-content;
	max-width: 100%;
	padding-bottom: .1em;
	margin-bottom: -.1em;
	background-color: var(--smod-hi);
	background-image: var(--smod-fill);
	background-size: 100% 100%;
	background-position: center;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.smod--fill.smod--center .smod__title { margin-left: auto; margin-right: auto; }
.smod.smod--fill-flow .smod__title { background-size: 170% 170%; animation: aenoFillFlow 16s ease-in-out infinite alternate; }
@keyframes aenoFillFlow {
	0%   { background-position: 0% 30%; }
	50%  { background-position: 60% 100%; }
	100% { background-position: 100% 0%; }
}
@media (prefers-reduced-motion: reduce) {
	.smod.smod--fill-flow .smod__title { animation: none; background-size: 100% 100%; }
}
.smod--center .smod__text { margin-left: auto; margin-right: auto; }
.smod__text strong { font-weight: 600; color: var(--smod-mark, var(--smod-hi, #f5f5f7)); }

/* Media stage: tall when pinned, so the media stays on screen while the page scrolls */
.smod__stage { position: relative; }
.smod[data-scroll="pinned"] .smod__stage { height: calc(100vh + 110vh); height: calc(100svh + 110svh); }
.smod[data-scroll="long"] .smod__stage { height: calc(100vh + 220vh); height: calc(100svh + 220svh); }
.smod__sticky {
	display: flex; align-items: center; justify-content: center;
	padding: 0 var(--gutter);
}
.smod[data-scroll="pinned"] .smod__sticky,
.smod[data-scroll="long"] .smod__sticky {
	position: sticky; top: 0;
	height: 100vh; height: 100svh;
	padding-top: calc(var(--header-h) + 16px);
	padding-bottom: 24px;
}

.smod__media {
	position: relative;
	overflow: hidden;
	width: min(var(--smod-max), 100%);
	aspect-ratio: var(--smod-ratio, 16 / 9);
	max-width: 100%;
}
.smod--contained[data-scroll="pinned"] .smod__media,
.smod--contained[data-scroll="long"] .smod__media {
	width: min(var(--smod-max), 100%, calc((100svh - var(--header-h) - 40px) * var(--smod-ratio, 1.7778)));
}
.smod__video, .smod__img {
	display: block; width: 100%; height: 100%;
	object-fit: cover;
	background: transparent;
}
.smod--zoom .smod__img {
	transform: scale(calc(1.14 - .14 * var(--smod-p)));
	transform-origin: 50% 40%;
	will-change: transform;
}
.smod--video .smod__video { opacity: 0; transition: opacity .6s var(--ease); }
.smod--video.is-ready .smod__video,
.smod--video .smod__video[poster],
.no-js .smod__video { opacity: 1; }

/* Full-screen media */
.smod--full .smod__sticky { padding-left: 0; padding-right: 0; }
.smod--full .smod__media { width: 100%; }
.smod--full[data-scroll="pinned"] .smod__sticky,
.smod--full[data-scroll="long"] .smod__sticky { padding: 0; }
.smod--full[data-scroll="pinned"] .smod__media,
.smod--full[data-scroll="long"] .smod__media { height: 100%; aspect-ratio: auto; }

/* Soft fade of the media into the background colour */
.smod__media--fade::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(to bottom, transparent 62%, var(--smod-bg, #000) 99%),
		linear-gradient(to right, var(--smod-bg, #000) 0%, transparent 7%, transparent 93%, var(--smod-bg, #000) 100%);
}
.smod--above .smod__media--fade::after {
	background:
		linear-gradient(to top, transparent 70%, var(--smod-bg, #000) 99%),
		linear-gradient(to bottom, transparent 62%, var(--smod-bg, #000) 99%);
}

/* Text-only module */
.smod--text-only .smod__copy { margin: 0 auto; }

/* Inside page content (block editor / Elementor): break out to full width */
.entry-content .smod, .entry-content .wp-block-aeno-scroll-module { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .smod .smod__copy { max-width: none; }
.elementor-widget-aeno-scroll-module .smod .container { padding-left: var(--gutter); padding-right: var(--gutter); }

/* Header over a module takes the module's colours */
.site-header.on-smod { background: var(--hdr-bg) !important; color: var(--hdr-fg) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; transition: background-color .35s var(--ease), color .35s var(--ease); }
.site-header.on-smod.on-dark .site-brand:not(.has-light-logo) img { filter: brightness(0) invert(1); }
.site-header.on-smod.on-dark .site-brand.has-light-logo .logo-dark { display: none; }
.site-header.on-smod.on-dark .site-brand.has-light-logo .logo-light { display: block; }
.site-header.on-smod.on-dark .sub-menu { background: var(--hdr-bg); color: var(--hdr-fg); }
/* Mobile menu open: the menu panel is light, so the bar on top of it (logo, language,
   "Close") goes back to dark – whatever module is under it. */
.menu-open .site-header.on-smod { background: transparent !important; color: var(--ink) !important; }
.menu-open .site-header.on-smod.on-dark .site-brand:not(.has-light-logo) img,
.menu-open .site-header.is-light .site-brand:not(.has-light-logo) img { filter: none; }
.menu-open .site-header.on-smod.on-dark .site-brand.has-light-logo .logo-dark { display: block; }
.menu-open .site-header.on-smod.on-dark .site-brand.has-light-logo .logo-light { display: none; }

/* Module preview page */
.single-aeno_section .site-main { padding-top: var(--header-h); }

/* ==========================================================================
   Photo collage banner (Moduły → Photo collage banner)
   --col-h is the banner height; the photo heights and offsets in each column
   are fractions of it (set by inc/collage.php). --px / --py come from collage.js.
   ========================================================================== */
.collage {
	--col-h: max(100svh, 560px);
	--cw: clamp(210px, 25.5vw, 560px);
	--cg: 8px;
	position: relative;
	height: var(--col-h);
	overflow: hidden;
	background: var(--col-bg, #fff);
	color: var(--col-color, #000);
	isolation: isolate;
}
/* clip (not hidden) so the number tiles can stay put with position: sticky */
@supports (overflow: clip) {
	.collage { overflow: clip; }
}
.collage--h-large { --col-h: max(85svh, 520px); }
.collage--h-medium { --col-h: max(70svh, 480px); }

/* At the top of the page the photos start below the menu (+ the module's gap) and are
   clipped there, so they never slide under the navigation, even while panning. */
.collage { --col-gap: 24px; --col-top: 0px; --stage-h: calc(var(--col-h) - var(--col-top)); }
.collage--under-nav { --col-top: calc(var(--header-h) + var(--col-gap)); }
.collage__viewport { position: absolute; inset: var(--col-top) 0 0 0; z-index: 1; overflow: hidden; }
.collage__stage {
	--px: 0px; --py: 0px;
	position: absolute; top: 0; left: 50%;
	display: flex; align-items: flex-start; gap: var(--cg);
	transform: translate3d(calc(-50% + var(--px)), var(--py), 0);
	will-change: transform;
}
.collage__col {
	flex: none;
	width: var(--cw);
	display: flex; flex-direction: column; gap: var(--cg);
	margin-top: calc(var(--off) * var(--stage-h));
	/* Columns move up/down slightly more or less than the whole collage: a hint of depth
	   (only vertically, so the gaps between columns always stay even). */
	transform: translate3d(0, calc(var(--py) * (var(--d, 1) - 1) * 4), 0);
}
.collage__item { position: relative; margin: 0; overflow: hidden; border-radius: var(--col-radius, 0px); background: color-mix(in srgb, var(--col-color, #000) 6%, var(--col-bg, #fff)); }

/* "Scattered" layout: small photos with wide gaps around a heading in the middle.
   Photo positions (--x, --y, --tw, --th) are set by assets/js/collage.js. */
.collage--layout-airy .collage__stage { display: block; width: var(--field-w, 150vw); height: var(--stage-h); }
.collage__field { position: absolute; inset: 0; }
.collage--layout-airy .collage__item {
	position: absolute;
	left: var(--x, 0px);
	top: var(--y, 0px);
	width: var(--tw, 140px);
	height: var(--th, 180px);
	/* each photo drifts a little more or less than the rest, for depth */
	translate: calc(var(--px) * var(--pd, 0)) calc(var(--py) * var(--pd, 0) * 2);
}
.collage--layout-airy .collage__item[hidden] { display: none; }
.js .collage--layout-airy:not(.is-laid) .collage__field { visibility: hidden; }
.collage__center {
	position: absolute;
	inset: 0;
	margin: auto;
	width: fit-content;
	height: fit-content;
	max-width: min(86vw, 1100px);
	z-index: 1;
}
.collage--layout-airy .collage__copy { flex-direction: column; flex-wrap: nowrap; align-items: center; text-align: center; background: none; padding: 0; gap: clamp(10px, 1.6vh, 20px); }
.collage.collage--layout-airy .collage__title { margin: 0; font-size: calc(clamp(44px, 8.2vw, 168px) * var(--col-title-scale, 1)); }
.collage--layout-airy .collage__text { max-width: 30em; padding-top: 0; }
/* Stand-up opening in the scattered layout: the perspective sits on the photo field itself,
   so the moving stage and the heading never switch into 3D. */
.collage--layout-airy.collage--intro-standup .collage__viewport { perspective: none; }
.collage--layout-airy.collage--intro-standup .collage__stage { transform-style: flat; }
.collage--layout-airy.collage--intro-standup .collage__field { perspective: 1700px; perspective-origin: 50% -40%; }
.collage--layout-airy.collage--intro-standup.is-done .collage__field { perspective: none; }

/* "Carousel" layout: heading on top, photos travelling around a ring below it, number tiles
   underneath. The ring is turned by assets/js/collage.js (sizes in --rw / --rh); without
   JavaScript the photos simply sit in a row. */
/* The banner grows when the heading, ring and number tiles don't fit in its height
   (small phones, long texts), so nothing is ever cut off at the bottom. */
.collage.collage--layout-carousel { height: auto; min-height: var(--col-h); display: flex; flex-direction: column; }
.collage--layout-carousel .collage__viewport {
	position: relative;
	inset: auto;
	flex: 1 0 auto;
	display: flex;
	margin-top: var(--col-top);
	min-height: calc(var(--col-h) - var(--col-top));
}
.collage__carousel {
	position: relative;
	flex: 1 0 auto;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(12px, 2.4vh, 30px);
	padding: clamp(10px, 2.4vh, 32px) 0 clamp(18px, 3.2vh, 40px);
}
.collage--layout-carousel .collage__copy {
	position: relative; z-index: 2;
	flex: none;
	flex-direction: column; flex-wrap: nowrap; align-items: center; text-align: center;
	max-width: min(calc(100% - 32px), 1100px);
	background: none; padding: 0;
	gap: clamp(8px, 1.4vh, 18px);
}
/* Heading and text on the left or right, lined up with the logo / the menu */
.collage__carousel--left .collage__copy,
.collage__carousel--right .collage__copy {
	align-self: stretch;
	width: 100%;
	max-width: calc(var(--max) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.collage .collage__carousel--left .collage__copy { align-items: flex-start; text-align: left; }
.collage .collage__carousel--right .collage__copy { align-items: flex-end; text-align: right; }
.collage.collage--layout-carousel .collage__title { margin: 0; font-size: calc(clamp(40px, 6.4vw, 128px) * var(--col-title-scale, 1)); }
.collage--layout-carousel .collage__text { max-width: 34em; padding-top: 0; }
.collage__ring {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	align-self: stretch;
	min-height: 180px;
	display: flex; align-items: center; justify-content: center; gap: 12px;
	overflow: hidden;
}
.collage__ring .collage__item--ring { flex: none; width: clamp(150px, 20vw, 320px); aspect-ratio: 4 / 5; }
.collage.is-ring .collage__ring { display: block; overflow: visible; }
.collage.is-ring .collage__ring .collage__item--ring {
	position: absolute;
	left: 50%; top: 50%;
	width: var(--rw, 200px);
	height: var(--rh, 240px);
	aspect-ratio: auto;
	margin: calc(var(--rh, 240px) / -2) 0 0 calc(var(--rw, 200px) / -2);
	backface-visibility: hidden;
	will-change: transform, opacity;
	visibility: hidden;
}
.js .collage--layout-carousel:not(.is-ring) .collage__ring { visibility: hidden; }
/* the ring runs its own opening animation: switch off the photo animations of the other layouts */
.js .collage.collage--layout-carousel .collage__item.collage__item--ring { opacity: 1; animation: none; transition: none; }
.collage--layout-carousel.collage--intro-standup .collage__viewport { perspective: none; }
.collage--layout-carousel .collage__deal { z-index: 3; }
.collage--layout-carousel .collage__stats-wrap {
	position: relative; z-index: 2;
	top: auto; right: auto; bottom: auto;
	flex: none;
	flex-direction: row; justify-content: center;
	padding: 0;
}
.collage--layout-carousel .collage__stats { position: static; }
.collage__item--top { height: calc(var(--h1) * var(--stage-h)); }
.collage__item--bottom { height: calc(var(--h2) * var(--stage-h)); }
.collage__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Photo cycling: set-2 photo sits on top and is revealed when the slot is "swapped". */
.collage__alt { opacity: 0; transition: opacity .9s var(--ease), transform 1.4s var(--ease-out); transform: scale(1.04); }
.collage__item.is-swapped .collage__alt { opacity: 1; transform: none; }
.collage--fx-wipe .collage__alt { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path .85s cubic-bezier(.65, 0, .35, 1); }
.collage--fx-wipe .collage__item.is-swapped .collage__alt { clip-path: inset(0 0 0 0); }
.collage--fx-cut .collage__alt { transition: none; transform: none; }

/* Optional black & white photos (the files themselves stay in colour) */
.collage--bw .collage__item img,
.collage--bw .collage__deal-card img { filter: grayscale(1); }
.collage--bw-hover .collage__main { transition: filter .6s var(--ease-out); }
.collage--bw-hover .collage__alt { transition: filter .6s var(--ease-out), opacity .9s var(--ease), transform 1.4s var(--ease-out); }
.collage--bw-hover.collage--fx-wipe .collage__alt { transition: filter .6s var(--ease-out), clip-path .85s cubic-bezier(.65, 0, .35, 1); }
.collage--bw-hover.collage--fx-cut .collage__alt { transition: filter .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
	.collage--bw-hover .collage__item:hover img { filter: none; }
}

/* Opening animation: "fade" (photos float up gently) */
.js .collage--intro-fade .collage__item { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity 1s var(--ease-out), transform 1.3s var(--ease-out); transition-delay: calc(var(--i) * 70ms + .1s); }
.js .collage--intro-fade .collage__item--bottom { transition-delay: calc(var(--i) * 70ms + .22s); }
.js .collage--intro-fade.is-in .collage__item { opacity: 1; transform: none; }

/* Opening animation: "standup". The photos lie flat on a floor seen slightly from above,
   then stand up towards the camera one after another, hinged at their bottom edge,
   spreading outwards from the middle of the screen (--w = distance from the middle). */
.collage--intro-standup .collage__viewport { perspective: 1700px; perspective-origin: 50% -40%; }
.collage--intro-standup .collage__stage,
.collage--intro-standup .collage__col,
.collage--intro-standup .collage__group,
.collage--intro-standup .collage__group-cols { transform-style: preserve-3d; }
.js .collage--intro-standup .collage__item {
	transform-origin: 50% 100%;
	transform: translate3d(0, 6%, 0) rotateX(84deg);
	opacity: 0;
	backface-visibility: hidden;
}
.js .collage--intro-standup.is-in .collage__item {
	animation: aenoStandUp 1.9s both;
	animation-delay: calc(var(--w, 0) * 95ms + .1s);
}
.js .collage--intro-standup.is-in .collage__item--bottom { animation-delay: calc(var(--w, 0) * 95ms + .26s); }
.js .collage--intro-standup.is-done .collage__item { animation: none; opacity: 1; transform: none; }
.collage--intro-standup.is-done .collage__viewport { perspective: none; }
.collage--intro-standup.is-done .collage__stage,
.collage--intro-standup.is-done .collage__col,
.collage--intro-standup.is-done .collage__group,
.collage--intro-standup.is-done .collage__group-cols { transform-style: flat; }
@keyframes aenoStandUp {
	0%   { opacity: 0; transform: translate3d(0, 6%, 0) rotateX(84deg); animation-timing-function: ease-out; }
	22%  { opacity: 1; transform: translate3d(0, 4%, 0) rotateX(80deg); animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
	84%  { opacity: 1; transform: translate3d(0, 0, 0) rotateX(-3deg); animation-timing-function: cubic-bezier(.4, 0, .4, 1); }
	100% { opacity: 1; transform: none; }
}
.js .collage--intro-standup .collage__copy { transition-delay: 1.05s; }
.js .collage--intro-none .collage__item { opacity: 1; transform: none; }

/* Opening animation: "gather". Copies of the photos are dealt one by one onto a pile in the
   middle of the screen, then each flies to its place (assets/js/collage.js). The real photos
   stay hidden until every copy has landed, so the swap is invisible. */
.collage__deal { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.collage__deal-card {
	position: absolute;
	margin: 0;
	overflow: hidden;
	border-radius: var(--col-radius, 0px);
	opacity: 0;
	will-change: transform, opacity;
	background: color-mix(in srgb, var(--col-color, #000) 6%, var(--col-bg, #fff));
	box-shadow: 0 18px 50px -24px rgba(0, 0, 0, .45);
}
.collage__sphere { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.collage--layout-airy .collage__deal-card { box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .14); }
.collage__deal-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.js .collage--intro-gather .collage__item { opacity: 0; }
.js .collage--intro-gather.is-done .collage__item { opacity: 1; }
.js .collage--intro-gather.is-in:not(.is-text) .collage__copy { opacity: 0; transform: translateY(18px); }

/* Text group: the heading and text sit in white space at the top of three columns,
   inside the moving stage, so they pan with the photos and never cover one. */
.collage__group {
	flex: none;
	display: flex; flex-direction: column;
	width: calc(var(--cw) * 3 + var(--cg) * 2);
	/* Moves down and sideways with the collage, but never higher than its resting place,
	   so the heading is never cut off under the menu line. */
	transform: translate3d(0, max(0px, calc(var(--py) * -1)), 0);
}
.collage__group-cols { display: flex; align-items: flex-start; gap: var(--cg); }
.collage__copy {
	display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
	gap: 14px 32px;
	padding: clamp(14px, 2.6vh, 34px) 2px clamp(22px, 4vh, 52px);
	background: var(--col-bg, #fff);
	color: var(--col-color, #000);
}
.collage--text-center .collage__copy { flex-direction: column; align-items: center; text-align: center; }
.collage .collage__title {
	font-family: var(--display);
	font-weight: 700;
	font-variation-settings: var(--display-axes);
	font-size: calc(min(calc(var(--cw) * .62), 220px) * var(--col-title-scale, 1));
	line-height: .84;
	letter-spacing: -0.055em;
	margin: 0 0 0 -0.04em;
	overflow-wrap: anywhere;
	text-wrap: balance;
}
.collage .collage__text {
	color: var(--col-text, var(--col-color, #000));
	font-size: calc(clamp(15px, 1.15vw, 18px) * var(--col-text-scale, 1));
	line-height: 1.38;
	max-width: 17em;
	margin: 0;
	padding-top: .3em;
}
.collage--text-center .collage__text { max-width: 28em; }

/* Optional background image (instead of the plain colour), with a veil of the background colour */
.collage__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.collage__bg-img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: var(--col-bg-pos, center);
	transform: translate3d(var(--bg-x, 0px), var(--bg-y, 0px), 0) scale(var(--bg-scale, 1));
}
.collage--bg-pan .collage__bg-img { --bg-scale: 1.06; will-change: transform; }
.collage__bg-video { display: block; background: var(--col-bg, #fff); }

/* Loading counter while the background video downloads (the photos wait for it) */
.collage__loader {
	position: absolute;
	left: 50%;
	top: calc(50% + var(--col-top, 0px) / 2);
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	transform: translate(-50%, -50%);
	color: var(--col-color, #000);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .45s var(--ease-out), visibility 0s linear .45s;
}
.js .collage--bg-wait .collage__loader { opacity: 1; visibility: visible; transition: opacity .6s var(--ease-out) .25s, visibility 0s; }
.collage__loader-num {
	font-family: var(--display);
	font-weight: 300;
	font-size: clamp(28px, 3.2vw, 52px);
	line-height: 1;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}
.collage__loader-bar {
	position: relative;
	width: clamp(120px, 12vw, 200px);
	height: 2px;
	overflow: hidden;
	border-radius: 2px;
	background: color-mix(in srgb, currentColor 18%, transparent);
}
.collage__loader-bar i { position: absolute; inset: 0; background: currentColor; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.collage__loader.is-indeterminate .collage__loader-num { display: none; }
.collage__loader.is-indeterminate .collage__loader-bar i { right: auto; width: 40%; transform: none; animation: aenoLoaderSlide 1.2s ease-in-out infinite; }
@keyframes aenoLoaderSlide {
	from { transform: translateX(-100%); }
	to   { transform: translateX(250%); }
}
.collage__bg::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--col-bg, #fff); opacity: var(--col-overlay, 0); }
/* Video darkens slowly once it has played (set by assets/js/collage.js) */
.collage__bg-dim { position: absolute; inset: 0; z-index: 2; background: #000; opacity: 0; transition: opacity 2.2s cubic-bezier(.4, 0, .2, 1); }
.collage.is-bg-ended .collage__bg-dim { opacity: var(--col-dim-end, 0); }
/* Interlace lines over the background (old-screen look); they don't move with the image */
.collage__bg-lines {
	position: absolute;
	inset: 0;
	z-index: 3;
	background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, var(--col-lines-o, .3)) 0 var(--col-lw, 1px), transparent var(--col-lw, 1px) var(--col-lp, 3px));
}
.collage--lines-fine { --col-lw: 1px; --col-lp: 2px; }
.collage--lines-medium { --col-lw: 1px; --col-lp: 3px; }
.collage--lines-coarse { --col-lw: 2px; --col-lp: 4px; }
.collage--has-image .collage__copy { background: none; }

/* Number tiles in the bottom-right corner of the visible part of the banner */
.collage__stats-wrap {
	position: absolute;
	top: var(--col-top);
	bottom: 0;
	right: calc((100% - min(100%, var(--max) + var(--gutter) * 2)) / 2 + var(--gutter));
	z-index: 4;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-bottom: clamp(18px, 2.6vw, 40px);
	pointer-events: none;
}
.collage__stats { position: sticky; bottom: clamp(18px, 2.6vw, 40px); display: flex; gap: clamp(8px, .9vw, 14px); }
.collage__stat {
	pointer-events: auto;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 18px;
	width: calc(clamp(132px, 11.5vw, 196px) * var(--cs-scale, 1));
	min-height: calc(clamp(116px, 10vw, 170px) * var(--cs-scale, 1));
	padding: calc(clamp(16px, 1.5vw, 24px) * var(--cs-scale, 1));
	border-radius: var(--cs-radius, 28px);
	background: color-mix(in srgb, var(--cs-bg, #6b6b6b) calc(var(--cs-op, .7) * 100%), transparent);
	-webkit-backdrop-filter: blur(var(--cs-blur, 16px)) saturate(1.25);
	backdrop-filter: blur(var(--cs-blur, 16px)) saturate(1.25);
	color: var(--cs-fg, #fff);
}
.collage__stat-value {
	font-family: var(--cs-font);
	font-weight: var(--cs-weight, 300);
	font-size: calc(clamp(34px, 3.5vw, 58px) * var(--cs-scale, 1));
	line-height: .95;
	letter-spacing: -0.045em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.collage__stat-caption { font-family: var(--sans); font-size: calc(clamp(12.5px, .95vw, 15px) * var(--cs-scale, 1)); line-height: 1.25; }
.js .collage__stat { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.js .collage.is-in .collage__stat { opacity: 1; transform: none; transition-delay: calc(var(--stat-i, 0) * 140ms + var(--stat-delay, .3s)); }
.collage--intro-standup { --stat-delay: 1.7s; }
.collage--intro-fade { --stat-delay: .9s; }
.collage--intro-gather { --stat-delay: .5s; }
.js .collage--intro-gather.is-in:not(.is-text) .collage__stat { opacity: 0; transform: translateY(18px); }
.js .collage--intro-none .collage__stat { opacity: 1; transform: none; transition: none; }
@media (max-width: 768px) {
	.collage__stats-wrap { right: 16px; padding-bottom: 16px; }
	.collage__stats { bottom: 16px; }
	.collage__stat { width: calc(112px * var(--cs-scale, 1)); min-height: calc(100px * var(--cs-scale, 1)); padding: 14px; gap: 12px; border-radius: min(var(--cs-radius, 28px), 22px); }
	.collage__stat-value { font-size: calc(30px * var(--cs-scale, 1)); }
	.collage__stat-caption { font-size: calc(12px * var(--cs-scale, 1)); }
}
@media (prefers-reduced-motion: reduce) {
	.js .collage__stat { opacity: 1; transform: none; transition: none; }
}

/* Optional second line of the heading, in its own font */
.collage__title-1, .collage__title-2 { display: block; }
.collage__title-2 {
	margin-top: .02em;
	font-family: var(--col-t2-font, inherit);
	font-weight: var(--col-t2-weight, inherit);
	font-style: var(--col-t2-style, normal);
	font-size: calc(1em * var(--col-t2-scale, 1));
	color: var(--col-t2-color, inherit);
}
.collage--t2-fraunces .collage__title-2 { letter-spacing: -0.03em; line-height: .92; font-variation-settings: "SOFT" 30, "WONK" 0; }

/* Entrance for the text */
.js .collage__copy { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out) .15s, transform 1.2s var(--ease-out) .15s; }
.js .collage.is-in .collage__copy { opacity: 1; transform: none; }
.js .collage--intro-none .collage__copy { opacity: 1; transform: none; transition: none; }

/* Inside page content / Elementor: full width */
.entry-content .collage { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }

@media (max-width: 768px) {
	.collage { --cw: 47vw; --cg: 6px; --col-h: max(88svh, 520px); }
	.collage--h-large { --col-h: max(78svh, 480px); }
	.collage--h-medium { --col-h: max(64svh, 440px); }
	.collage__group { width: calc(var(--cw) * 2 + var(--cg)); }
	.collage__group-cols .collage__col:nth-child(3) { display: none; }
	.collage .collage__title { font-size: calc(min(calc(var(--cw) * .62), 220px) * var(--col-title-scale-m, 1)); }
	.collage.collage--layout-airy .collage__title { font-size: calc(clamp(40px, 13vw, 96px) * var(--col-title-scale-m, 1)); }
	.collage.collage--layout-carousel .collage__title { font-size: calc(clamp(38px, 12vw, 88px) * var(--col-title-scale-m, 1)); }
	.collage--layout-carousel .collage__stats-wrap { right: auto; padding-bottom: 0; }
	.collage__ring { min-height: 210px; }
	.collage__copy { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.js .collage__item, .js .collage__copy { opacity: 1; transform: none; transition: none; animation: none !important; }
	.js .collage--intro-gather .collage__item, .js .collage--intro-gather.is-in:not(.is-text) .collage__copy { opacity: 1; transform: none; }
	.collage__deal { display: none; }
}

/* ==========================================================================
   Feature section (Moduły → Feature section), apple.com style:
   caption + heading, image/video, then text column + key points column.
   ========================================================================== */
.feat {
	--feat-hweight: 600;
	background: var(--feat-bg, #fff);
	color: var(--feat-color, #6e6e73);
	padding-top: clamp(70px, 9vw, 140px);
	padding-bottom: clamp(70px, 9vw, 140px);
}
.feat__head { text-align: center; }
.feat--left .feat__head { text-align: left; }
.feat .feat__eyebrow {
	font-family: var(--feat-tfont);
	font-size: clamp(16px, 1.45vw, 21px);
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--feat-head, #1d1d1f);
	margin: 0 0 clamp(8px, 1vw, 14px);
}
.feat .feat__title {
	font-family: var(--feat-hfont);
	font-weight: var(--feat-hweight);
	font-size: clamp(44px, 6.6vw, 96px);
	line-height: 1.03;
	letter-spacing: -0.035em;
	color: var(--feat-head, #1d1d1f);
	margin: 0;
	text-wrap: balance;
}
/* Heading (and optionally values) filled with the Aeno gradient or an image.
   The bright lower band of the gradient is used, so no line of a two-line heading comes out dark. */
.feat.feat--fill .feat__title,
.feat.feat--fill-values .feat__value {
	background-color: var(--feat-head);
	background-image: var(--feat-fill);
	background-size: 100% 230%;
	background-position: 50% 80%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	padding-bottom: .08em;
	margin-bottom: -.08em;
}
.feat.feat--fill .feat__title { width: fit-content; max-width: 100%; }
.feat--fill.feat--center .feat__title { margin-left: auto; margin-right: auto; }
.feat.feat--fill-values .feat__value { display: inline-block; }
.feat.feat--fill-flow .feat__title,
.feat.feat--fill-flow.feat--fill-values .feat__value { background-size: 170% 260%; animation: aenoFillFlow 16s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) {
	.feat.feat--fill-flow .feat__title, .feat.feat--fill-flow .feat__value { animation: none; background-size: 100% 230%; }
}
.feat--font-fraunces .feat__title, .feat--font-fraunces .feat__value { letter-spacing: -0.02em; font-variation-settings: "SOFT" 40, "WONK" 0; }
.feat--font-theme .feat__title, .feat--font-theme .feat__value { font-weight: var(--display-weight); font-variation-settings: var(--display-axes); }

/* Media */
.feat .feat__media-wrap {
	margin-top: clamp(40px, 5.5vw, 84px);
	padding-left: var(--gutter); padding-right: var(--gutter);
}
.feat .feat__media {
	position: relative; margin: 0 auto; overflow: hidden;
	width: 100%; max-width: 1040px;
	aspect-ratio: var(--feat-ratio, 1.6);
	background: color-mix(in srgb, var(--feat-head, #1d1d1f) 6%, var(--feat-bg, #fff));
}
.feat--w-wide .feat__media { max-width: 1280px; }
.feat--w-full .feat__media-wrap { padding-left: 0; padding-right: 0; }
.feat--w-full .feat__media { max-width: none; }
.feat .feat__media img, .feat .feat__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.feat--frame-rounded .feat__media { border-radius: clamp(14px, 2vw, 28px); }
.feat--w-full.feat--frame-rounded .feat__media { border-radius: 0; }
/* Device frame: dark bezel with a thin metallic edge. */
.feat--frame-device .feat__media {
	border-radius: clamp(26px, 3.6vw, 52px);
	border: clamp(7px, 0.95vw, 14px) solid #111113;
	box-shadow: 0 0 0 clamp(2px, .2vw, 3px) #3b3d4a, 0 30px 60px -30px rgba(0, 0, 0, .35);
	background: #111113;
}
.feat--frame-device .feat__media img, .feat--frame-device .feat__media video { border-radius: clamp(18px, 2.7vw, 40px); }

/* Text + key points */
.feat .feat__body {
	display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
	gap: clamp(32px, 7vw, 120px);
	max-width: calc(980px + var(--gutter) * 2);
	margin-top: clamp(48px, 6vw, 96px);
	align-items: start;
}
.feat .feat__text {
	font-family: var(--feat-tfont);
	font-size: clamp(17px, 1.45vw, 21px);
	line-height: 1.48;
	letter-spacing: -0.005em;
	margin: 0;
	max-width: 32em;
}
.feat .feat__text strong { font-weight: 500; color: var(--feat-mark, var(--feat-head, #1d1d1f)); }
.feat .feat__points { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(26px, 3vw, 42px); }
.feat .feat__points li { display: grid; gap: 4px; }
.feat .feat__value {
	font-family: var(--feat-hfont);
	font-weight: var(--feat-hweight);
	font-size: clamp(32px, 3.4vw, 48px);
	line-height: 1.05;
	letter-spacing: -0.025em;
	color: var(--feat-head, #1d1d1f);
}
.feat .feat__caption {
	font-family: var(--feat-tfont);
	font-size: clamp(13px, 1vw, 15px);
	line-height: 1.35;
	color: var(--feat-head, #1d1d1f);
	opacity: .86;
	padding-left: 2px;
}
.feat .feat__body:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: calc(760px + var(--gutter) * 2); }

.entry-content .smod h2, .entry-content .feat h2, .entry-content .collage h2,
.entry-content .smod p, .entry-content .feat p, .entry-content .collage p { margin-top: 0; }
.entry-content .feat { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }

@media (max-width: 768px) {
	.feat .feat__body { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.feat .feat__points { gap: 24px; }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-head { padding-top: calc(var(--header-h) + clamp(60px, 7vw, 110px)); padding-bottom: clamp(40px, 4vw, 64px); }
.page-head h1 { margin-top: 14px; font-size: clamp(42px, 5vw, 76px); line-height: var(--display-leading); color: var(--ink); max-width: 12em; }
.page-head__lead { margin-top: 22px; max-width: 480px; font-size: 17px; line-height: 24px; color: var(--ink); }
.projects-page__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; }
.projects-page__nav ul { justify-content: flex-end; }
.projects-page__content { margin-bottom: clamp(40px, 5vw, 80px); }
.projects-page .featured:first-of-type { padding-top: 0; }
@media (max-width: 768px) {
	.projects-page__head { grid-template-columns: 1fr; }
	.projects-page__nav ul { justify-content: flex-start; }
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.filter-bar a {
	display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px;
	border: 1px solid var(--line); font-size: 13px; color: var(--ink);
	transition: background-color .3s, color .3s, border-color .3s;
}
.filter-bar a:hover { border-color: var(--ink); }
.filter-bar a.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.entry { padding-bottom: clamp(70px, 8vw, 130px); }
.entry-content { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.65; color: var(--ink); }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2, .entry-content h3, .entry-content h4 {
	font-family: var(--display); font-weight: var(--display-weight); font-variation-settings: var(--display-axes);
	letter-spacing: var(--display-tracking); line-height: 1.1; margin-top: 1.8em;
}
.entry-content h2 { font-size: clamp(30px, 3vw, 44px); }
.entry-content h3 { font-size: clamp(24px, 2.2vw, 32px); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content blockquote { margin-left: 0; padding-left: 24px; border-left: 1px solid var(--ink); font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: 26px; line-height: 1.25; }
.entry-content .alignwide { width: min(1040px, calc(100vw - var(--gutter) * 2)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content img { display: block; }
.entry-content .wp-block-gallery { gap: var(--gap); }
.entry-content figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
.entry-content .wp-block-button__link { display: inline-flex; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-size: 14px; }

/* Elementor / full-width pages: let the builder own the layout */
.is-builder-page .site-main { padding-top: var(--header-h); }
.is-builder-page.has-hero .site-main { padding-top: 0; }

/* Single project */
.project-hero { position: relative; height: 92vh; height: 92svh; min-height: 520px; overflow: hidden; color: var(--paper); background: #b9b2a8; }
.project-hero__media { position: absolute; inset: 0; }
.project-hero__media img, .project-hero__media video { width: 100%; height: 100%; object-fit: cover; }
.project-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.35)); }
.project-hero__content { position: absolute; left: 0; right: 0; bottom: 60px; z-index: 2; }
.project-hero__content .eyebrow { color: inherit; }
.project-hero__content h1 { margin-top: 14px; font-size: clamp(44px, 6.4vw, 100px); line-height: var(--display-leading); max-width: 11em; }

.project-meta { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 60px; padding: clamp(60px, 7vw, 110px) 0; }
.project-meta__intro { font-family: var(--display); font-weight: 500; font-variation-settings: var(--display-axes); font-size: clamp(24px, 2.3vw, 34px); line-height: 1.2; letter-spacing: var(--display-tracking); color: var(--ink); }
.project-meta dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; margin: 0; align-content: start; }
.project-meta dt { font-size: 12px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.project-meta dd { margin: 6px 0 0; font-size: 15px; color: var(--ink); }

.project-next { display: block; position: relative; margin-top: clamp(40px, 5vw, 80px); height: 70vh; min-height: 420px; overflow: hidden; color: var(--paper); background: var(--ink); }
.project-next img, .project-next video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: transform 1.6s var(--ease-out), opacity .6s; }
.project-next:hover img, .project-next:hover video { transform: scale(1.04); opacity: .85; }
.project-next__content { position: absolute; left: 0; right: 0; bottom: 60px; z-index: 2; }
.project-next__content .eyebrow { color: inherit; }
.project-next__title { margin-top: 12px; display: flex; align-items: center; gap: 24px; font-size: clamp(38px, 5vw, 76px); line-height: var(--display-leading); }
.project-next .round-btn { width: 56px; height: 56px; }

/* Posts / generic list */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--gap); }
.post-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card h2 { margin-top: 16px; font-size: 26px; line-height: 1.1; }
.post-card p { margin-top: 10px; font-size: 14px; color: var(--muted); }
.pagination { margin-top: 56px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.notfound { min-height: 80vh; display: grid; align-content: center; padding-top: var(--header-h); }
.notfound h1 { font-size: clamp(60px, 10vw, 160px); line-height: .9; color: var(--ink); }
.notfound p { margin-top: 20px; font-size: 17px; }

/* ==========================================================================
   Statement (Moduły → Statement): large text with fragments in other fonts,
   then a photo with a short text beside it.
   ========================================================================== */
.stmt {
	--st-fs: calc(clamp(30px, 4.1vw, 68px) * var(--st-scale, 1));
	position: relative;
	background: var(--st-bg, #fff);
	color: var(--st-color, #3a3a3a);
	padding: clamp(64px, 8vw, 140px) 0;
}
.entry-content .stmt { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.stmt__head { position: relative; }
.stmt .stmt__label {
	margin: 0 0 18px;
	font-family: var(--sans);
	font-size: 13px;
	line-height: 1.2;
	letter-spacing: .01em;
	display: flex; align-items: center; gap: 8px;
}
.stmt__label::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; flex: none; }
.stmt--indent .stmt__label { position: absolute; top: calc(var(--st-fs) * .34); left: 0; margin: 0; max-width: 24%; }
.stmt .stmt__text {
	margin: 0;
	font-family: var(--st-font);
	font-weight: var(--st-weight, 400);
	font-size: var(--st-fs);
	line-height: 1.07;
	letter-spacing: -0.025em;
	color: inherit;
	text-wrap: pretty;
}
.stmt--indent .stmt__text { text-indent: 26%; }
.stmt__a1, .stmt__a2 { letter-spacing: -0.01em; }
.stmt__a1 { font-family: var(--st-a1-font); font-style: var(--st-a1-style, italic); font-weight: var(--st-a1-weight, 300); color: var(--st-a1-color, inherit); }
.stmt__a2 { font-family: var(--st-a2-font); font-style: var(--st-a2-style, normal); font-weight: var(--st-a2-weight, 600); color: var(--st-a2-color, inherit); }

/* Aeno gradient: on the fragments, or on the whole large text */
.stmt--grad-fragments .stmt__a1,
.stmt--grad-fragments .stmt__a2,
.stmt--grad-all .stmt__text {
	background-image: var(--st-gradient);
	background-size: 100% 100%;
	background-position: center;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
/* Several lines: use the bright lower band of the gradient, so no line comes out dark. */
.stmt--grad-all .stmt__text { -webkit-box-decoration-break: slice; box-decoration-break: slice; background-size: 100% 230%; background-position: 50% 80%; }
.stmt--grad-all .stmt__text .stmt__a1,
.stmt--grad-all .stmt__text .stmt__a2 { color: inherit; }
.stmt--gc-ember.stmt--grad-fragments .stmt__a1,
.stmt--gc-ember.stmt--grad-fragments .stmt__a2 { background-image: var(--aeno-ember); background-size: 100% 100%; background-repeat: no-repeat; }

.stmt__bottom {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
	margin-top: clamp(48px, 6.5vw, 110px);
	align-items: stretch;
}
.stmt__media { margin: 0; width: clamp(160px, 21vw, 340px); }
.stmt__img { display: block; width: 100%; height: auto; border-radius: var(--st-radius, 8px); }
.stmt__side { grid-column: 2; display: flex; flex-direction: column; align-items: flex-start; min-height: 100%; }
.stmt--img-right .stmt__media { grid-column: 2; grid-row: 1; justify-self: end; }
.stmt--img-right .stmt__side { grid-column: 1; grid-row: 1; }
.stmt__circle {
	position: relative;
	width: 32px; height: 32px;
	margin: auto 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	opacity: .85;
}
.stmt__circle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: currentColor; }
.stmt .stmt__small {
	margin: auto 0 0;
	padding-top: 24px;
	max-width: 23em;
	font-family: var(--st-font);
	font-size: 15px;
	line-height: 1.45;
	color: inherit;
}
.stmt__small .stmt__a1, .stmt__small .stmt__a2 { font-size: 1.08em; }
.stmt--no-image .stmt__side { min-height: 0; }
.stmt--no-image .stmt__circle { margin: 0 0 8px; }

/* Words light up one by one while scrolling (assets/js/statement.js) */
.stmt__w { transition: opacity .35s linear; }
.js .stmt--reveal-words.is-ready .stmt__w { opacity: .16; }
.js .stmt--reveal-words.is-ready .stmt__w.is-lit { opacity: 1; }

@media (max-width: 768px) {
	.stmt { --st-fs: calc(clamp(26px, 7.2vw, 40px) * var(--st-scale, 1)); }
	.stmt--indent .stmt__text { text-indent: 22%; }
	.stmt--indent .stmt__label { max-width: 21%; font-size: 11px; }
	.stmt__bottom { grid-template-columns: 1fr; }
	.stmt__media { width: min(62vw, 300px); }
	.stmt--img-right .stmt__media, .stmt--img-right .stmt__side, .stmt__side { grid-column: 1; grid-row: auto; justify-self: start; }
	.stmt__circle { margin: 0 0 4px; }
	.stmt .stmt__small { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.js .stmt--reveal-words.is-ready .stmt__w { opacity: 1; }
}

/* ==========================================================================
   Contact (Moduły → Contact): the Statement greeting + a contact form.
   Colours: --st-bg / --st-color (greeting settings), --ct-accent, --ct-btn-text.
   ========================================================================== */
/* First on a full-width page: reach up under the menu, so its background fills the top of the page. */
.is-builder-page .site-main > .stmt:first-child { margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(48px, 6vw, 110px)); }
.contact {
	--ct-line: color-mix(in srgb, currentColor 26%, transparent);
	--ct-soft: color-mix(in srgb, currentColor 6%, transparent);
	margin-top: clamp(56px, 7vw, 120px);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px;
	scroll-margin-top: calc(var(--header-h) + 20px);
}
.contact:not(.contact--details) .cform { max-width: 920px; }
.contact--details { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(36px, 6vw, 120px); }

/* Contact details */
.contact__photo { margin: 0 0 clamp(22px, 2.4vw, 34px); width: var(--ct-photo-w, 100%); max-width: 420px; overflow: hidden; border-radius: var(--ct-photo-r, 12px); }
.contact__photo-img { display: block; width: 100%; height: auto; }
.contact__photo--square { border-radius: 0; }
.contact__photo--circle { border-radius: 50%; aspect-ratio: 1; }
.contact__photo--arch { border-radius: 999px 999px var(--ct-photo-r, 12px) var(--ct-photo-r, 12px); aspect-ratio: 4 / 5; }
.contact__photo--circle .contact__photo-img,
.contact__photo--arch .contact__photo-img { height: 100%; object-fit: cover; }
@media (max-width: 900px) {
	.contact__photo { width: min(var(--ct-photo-w, 100%), 320px); }
}
.contact__info { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-family: var(--st-font); }
.stmt .contact__info-title { margin: 0 0 14px; font-size: 13px; letter-spacing: .01em; display: flex; align-items: center; gap: 8px; opacity: .8; }
.contact__info-title::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.contact__big {
	font-size: clamp(20px, 1.9vw, 30px);
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: inherit;
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size .4s var(--ease);
}
.contact__big:hover { background-size: 100% 1px; }
.stmt .contact__place { margin: 12px 0 0; font-size: 15px; opacity: .7; }
.contact__links { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
.contact__links a { color: inherit; text-decoration: none; opacity: .8; }
.contact__links a:hover { opacity: 1; }

/* The form */
.cform { position: relative; font-family: var(--st-font); }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__group { border: 0; margin: 0 0 clamp(28px, 3vw, 40px); padding: 0; min-width: 0; }
.cform__legend { padding: 0; margin: 0 0 14px; font-size: 15px; opacity: .75; }
.cform__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cform__chip { position: relative; cursor: pointer; }
.cform__chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cform__chip span {
	display: inline-flex; align-items: center;
	padding: 11px 18px;
	border: 1px solid var(--ct-line);
	border-radius: 999px;
	font-size: 15px;
	line-height: 1.1;
	transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.cform__chip:hover span { border-color: currentColor; }
.cform__chip input:checked + span { background: var(--ct-accent, #1d1d1f); border-color: var(--ct-accent, #1d1d1f); color: var(--ct-btn-text, #fff); }
.cform__chip input:focus-visible + span { outline: 2px solid var(--ct-accent); outline-offset: 3px; }

.cform__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px) clamp(24px, 3vw, 40px); margin-bottom: clamp(28px, 3vw, 40px); }
.cform__field { position: relative; margin: 0; }
.cform__field--wide { grid-column: 1 / -1; }
.cform__field input,
.cform__field textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 26px 0 10px;
	border: 0;
	border-bottom: 1px solid var(--ct-line);
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 18px;
	line-height: 1.35;
	outline: none;
	transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
	-webkit-appearance: none;
	appearance: none;
}
.cform__field textarea { min-height: 140px; resize: vertical; }
.cform__field label {
	position: absolute;
	left: 0; top: 26px;
	font-size: 18px;
	line-height: 1.35;
	opacity: .55;
	pointer-events: none;
	transform-origin: 0 0;
	transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.cform__field input:focus + label,
.cform__field input:not(:placeholder-shown) + label,
.cform__field textarea:focus + label,
.cform__field textarea:not(:placeholder-shown) + label { transform: translateY(-22px) scale(.72); opacity: .8; }
.cform__field input:focus,
.cform__field textarea:focus { border-bottom-color: var(--ct-accent, currentColor); box-shadow: inset 0 -1px 0 var(--ct-accent, currentColor); }
.cform__field.is-invalid input,
.cform__field.is-invalid textarea { border-bottom-color: #d9363e; box-shadow: inset 0 -1px 0 #d9363e; }

/* "Soft boxes" field style */
.cform--boxes .cform__field input,
.cform--boxes .cform__field textarea { padding: 28px 18px 12px; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); border-radius: 14px; background: var(--ct-soft); }
.cform--boxes .cform__field label { left: 18px; top: 22px; }
.cform--boxes .cform__field input:focus + label,
.cform--boxes .cform__field input:not(:placeholder-shown) + label,
.cform--boxes .cform__field textarea:focus + label,
.cform--boxes .cform__field textarea:not(:placeholder-shown) + label { transform: translateY(-12px) scale(.72); }
.cform--boxes .cform__field input:focus,
.cform--boxes .cform__field textarea:focus { border-color: var(--ct-accent); box-shadow: 0 0 0 1px var(--ct-accent); }
.cform--boxes .cform__field.is-invalid input,
.cform--boxes .cform__field.is-invalid textarea { border-color: #d9363e; box-shadow: 0 0 0 1px #d9363e; }

.cform__error { display: block; min-height: 0; margin-top: 6px; font-size: 13px; color: #d9363e; }
.cform__error:empty { display: none; }

.cform__consent { display: flex; align-items: flex-start; gap: 12px; position: relative; font-size: 14px; line-height: 1.45; cursor: pointer; max-width: 46em; }
.cform__consent input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.cform__box { flex: none; width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--ct-line); border-radius: 6px; display: grid; place-items: center; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.cform__box::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--ct-btn-text, #fff); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .2s var(--ease-out); }
.cform__consent input:checked + .cform__box { background: var(--ct-accent); border-color: var(--ct-accent); }
.cform__consent input:checked + .cform__box::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.cform__consent input:focus-visible + .cform__box { outline: 2px solid var(--ct-accent); outline-offset: 3px; }
.cform__consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cform__consent.is-invalid .cform__box { border-color: #d9363e; }

.cform__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: clamp(28px, 3vw, 40px); }
.cform__button {
	display: inline-flex; align-items: center; gap: 14px;
	padding: 10px 10px 10px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--ct-accent, #1d1d1f);
	color: var(--ct-btn-text, #fff);
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-position .8s var(--ease-out), opacity .2s;
}
.cform__button-icon {
	width: 40px; height: 40px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: color-mix(in srgb, var(--ct-btn-text, #fff) 18%, transparent);
	transition: transform .35s var(--ease-out);
}
.cform__button-icon svg { width: 16px; height: 16px; }
.cform__button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px var(--ct-accent); }
.cform__button:hover .cform__button-icon { transform: rotate(45deg); }
.cform__button:focus-visible { outline: 2px solid var(--ct-accent); outline-offset: 4px; }
.cform__button--gradient { background-image: url("assets/img/heading-gradient.jpg"); background-size: 220% 320%; background-position: 0% 78%; }
.cform__button--gradient:hover { background-position: 100% 78%; box-shadow: 0 14px 30px -16px rgba(214, 84, 44, .55); }
.cform.is-sending .cform__button { opacity: .6; pointer-events: none; }
.stmt .cform__note { margin: 0; font-size: 14px; opacity: .6; }
.stmt .cform__status { margin: 16px 0 0; font-size: 14px; }
.cform__status:empty { display: none; }
.cform__status.is-error { color: #d9363e; }

/* Sent */
.cform__done { display: none; align-items: center; gap: 22px; padding: clamp(20px, 3vw, 40px) 0; outline: none; }
.cform.is-done > :not(.cform__done),
.contact-mod--sent .cform > :not(.cform__done) { display: none; }
.cform.is-done .cform__done,
.contact-mod--sent .cform__done { display: flex; }
.stmt .cform__done p { margin: 0; font-size: clamp(20px, 2vw, 28px); line-height: 1.3; letter-spacing: -0.015em; max-width: 26em; }
.cform__done-icon { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--ct-accent); position: relative; animation: aenoPop .6s var(--ease-out) both; }
.cform__done-icon::after { content: ""; position: absolute; left: 22px; top: 22px; width: 20px; height: 11px; border: 3px solid var(--ct-btn-text, #fff); border-top: 0; border-right: 0; transform: rotate(-45deg); }
@keyframes aenoPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 900px) {
	.contact--details { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.cform__grid { grid-template-columns: minmax(0, 1fr); }
	.cform__chip span { padding: 10px 15px; font-size: 14px; }
	.cform__button { width: 100%; justify-content: space-between; }
}

/* ==========================================================================
   Partner logos (Moduły → Partner logos): endless sliding text + logo grid.
   ========================================================================== */
.logos {
	position: relative;
	overflow: hidden;
	background: var(--logo-bg, #000);
	color: var(--logo-color, #f2efe6);
	padding: clamp(64px, 8vw, 132px) 0 clamp(72px, 9vw, 150px);
}
.entry-content .logos { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.logos .logos__marquee {
	margin: 0 0 clamp(48px, 7vw, 116px);
	padding: .04em 0 .12em;
	font-family: var(--logo-font);
	font-weight: var(--logo-weight, 300);
	font-size: calc(clamp(44px, 7.4vw, 150px) * var(--logo-text-scale, 1));
	line-height: 1.08;
	letter-spacing: -0.045em;
	color: inherit;
	white-space: nowrap;
	overflow: hidden;
	/* the text fades out towards both edges of the screen */
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%);
}
.logos__track { display: inline-flex; will-change: transform; }
.logos__unit { display: inline-flex; align-items: baseline; flex: none; padding-right: .5em; }
.logos__sep { margin-left: .5em; opacity: .55; font-weight: 300; font-size: .5em; align-self: center; }
.logos.is-running .logos__track { animation: aenoMarquee var(--mq-dur, 30s) linear infinite; }
.logos--dir-right.is-running .logos__track { animation-direction: reverse; }
.logos.is-running:not(.is-visible) .logos__track { animation-play-state: paused; }
@keyframes aenoMarquee {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(calc(var(--mq-shift, 50%) * -1), 0, 0); }
}
.logos--static .logos__marquee { white-space: normal; text-align: center; -webkit-mask-image: none; mask-image: none; }
.logos--static .logos__track { display: block; }
.logos--static .logos__sep { display: none; }

.logos .logos__grid {
	list-style: none;
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
	/* even columns; an unfinished last row is centred */
	--lg-cols: var(--logo-cols, 8);
	--lg-gap: clamp(14px, 2.4vw, 40px);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: clamp(30px, 4.4vw, 72px) var(--lg-gap);
}
.logos__grid > .logos__item { flex: 0 0 calc((100% - (var(--lg-cols) - 1) * var(--lg-gap)) / var(--lg-cols)); min-width: 0; }
.logos__item {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	height: calc(clamp(46px, 5.6vw, 96px) * var(--logo-scale, 1));
}
.logos__mask,
.logos__img {
	display: block;
	width: min(82%, calc(190px * var(--logo-scale, 1)));
	height: 100%;
}
.logos__img { object-fit: contain; }
.logos__mask {
	background: var(--logo-tint, currentColor);
	-webkit-mask: var(--logo-src) center / contain no-repeat;
	mask: var(--logo-src) center / contain no-repeat;
}
.logos--hover-dim .logos__item { --logo-rest: .55; }
.logos__item { transition: opacity .45s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
	.js .logos.logos--hover-dim.is-settled .logos__item:hover { opacity: 1; }
}

/* Entrance: text fades in, logos appear one after another */
.js .logos__marquee { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.js .logos.is-in .logos__marquee { opacity: 1; }
.js .logos__item { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms + .2s); }
.js .logos.is-in .logos__item { opacity: var(--logo-rest, 1); transform: none; }
.js .logos.is-settled .logos__item { transition: opacity .45s var(--ease-out); transition-delay: 0s; }
@media (hover: none), (pointer: coarse) {
	.js .logos.is-in .logos__item { opacity: 1; }
}

@media (max-width: 1024px) {
	.logos .logos__grid { --lg-cols: 4; }
}
@media (max-width: 600px) {
	.logos .logos__grid { --lg-cols: 3; --lg-gap: 10px; row-gap: 30px; }
	.logos__item { height: calc(44px * var(--logo-scale, 1)); }
	.logos .logos__marquee { font-size: calc(clamp(40px, 12vw, 64px) * var(--logo-text-scale, 1)); }
}
@media (prefers-reduced-motion: reduce) {
	.js .logos__marquee, .js .logos__item { opacity: 1; transform: none; transition: none; }
}

/* WordPress core helpers */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: 12px; color: var(--muted); }
.sticky, .bypostauthor {}

/* ==========================================================================
   Project timeline (Moduły → Project timeline): heading, phases side by side with a
   gradient line under their names, purpose + numbered points below. The lit phase
   is set by assets/js/timeline.js (.is-active); the others are dimmed (--tl-dim).
   ========================================================================== */
.timeline {
	--tl-gap: clamp(22px, 2.4vw, 48px);
	--tl-col-min: 180px;
	--tl-rule: color-mix(in srgb, var(--tl-color, #fff) 16%, transparent);
	position: relative;
	background: var(--tl-bg, #000);
	color: var(--tl-color, #f3f3f5);
	font-size: calc(16px * var(--tl-text-scale, 1));
}
.timeline__pin {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(80px, 12vh, 150px) 0 clamp(72px, 11vh, 140px);
}
.timeline.is-pinned .timeline__pin {
	position: sticky;
	top: 0;
	min-height: 100vh;
	padding: calc(var(--header-h) + clamp(12px, 3vh, 40px)) 0 clamp(24px, 5vh, 64px);
	overflow: hidden;
}

/* Background glow: a soft circle of light at the top, gliding above the lit phase
   (--tl-glow-x is set by assets/js/timeline.js). Always behind the texts. */
.timeline__pin { position: relative; }
.timeline__glow-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.timeline__glow {
	--tl-glow-d: calc(clamp(420px, 56vw, 1150px) * var(--tl-glow-scale, 1));
	position: absolute;
	top: clamp(24px, 5vh, 70px);
	left: 0;
	width: var(--tl-glow-d);
	height: var(--tl-glow-d);
	margin: calc(var(--tl-glow-d) * -0.5) 0 0 calc(var(--tl-glow-d) * -0.5);
	border-radius: 50%;
	background: radial-gradient(circle closest-side,
		color-mix(in srgb, var(--tl-glow, #ff4a12) 100%, #fff 8%) 0%,
		color-mix(in srgb, var(--tl-glow, #ff4a12) 82%, transparent) 16%,
		color-mix(in srgb, var(--tl-glow, #ff4a12) 46%, transparent) 38%,
		color-mix(in srgb, var(--tl-glow, #ff4a12) 18%, transparent) 62%,
		color-mix(in srgb, var(--tl-glow, #ff4a12) 5%, transparent) 82%,
		transparent 100%);
	opacity: var(--tl-glow-o, .9);
	transform: translate3d(var(--tl-glow-x, 25vw), 0, 0);
	will-change: transform;
}
.timeline__glow.is-placed { transition: transform 1.6s cubic-bezier(.22, .61, .36, 1); }
/* held on screen: the brightest part sits just under the menu bar */
.timeline.is-pinned .timeline__glow { top: var(--header-h); }
.timeline__top, .timeline__wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
	.timeline__glow.is-placed { transition: none; }
}

/* Heading */
.timeline__top { width: 100%; }
.timeline .timeline__title {
	margin: 0 0 clamp(32px, 8vh, 130px);
	font-family: var(--tl-font);
	font-weight: var(--tl-weight, 400);
	font-size: calc(clamp(46px, min(5.6vw, 10.5vh), 116px) * var(--tl-title-scale, 1));
	line-height: .98;
	letter-spacing: -0.045em;
	font-variation-settings: normal;
	text-wrap: balance;
}
/* starts in the middle of the screen; a longer heading grows to the left instead of wrapping */
.timeline--title-right .timeline__top { display: flex; justify-content: flex-end; }
.timeline--title-right .timeline__title { min-width: 50%; }
.timeline--title-center .timeline__title { text-align: center; }
.timeline--fill-aeno .timeline__title {
	background-image: var(--tl-gradient);
	background-size: 100% 230%;
	background-position: 50% 80%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	padding-bottom: .06em; /* room for descenders inside the clipped gradient */
}

/* Row of phases: names on top, the line, then the details. Each phase spans the three
   rows of the track (subgrid), so the line runs straight under every name. */
.timeline__wrap { padding: 0 clamp(16px, 1.3vw, 26px); overflow-x: auto; scrollbar-width: none; }
.timeline__wrap::-webkit-scrollbar { display: none; }
.timeline.is-pinned .timeline__wrap { overflow: hidden; }
.timeline__track {
	display: grid;
	grid-template-columns: repeat(var(--tl-n, 6), minmax(var(--tl-col-min), 1fr));
	grid-template-rows: auto auto auto;
	column-gap: var(--tl-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	will-change: transform;
}
.timeline__line {
	grid-column: 1 / -1;
	grid-row: 2;
	height: 3px;
	margin: 0 calc(var(--tl-gap) * -0.25);
	border-radius: 3px;
	background: linear-gradient(90deg, rgba(40, 52, 140, .35) 0%, #2531ff 26%, #3a46ff 40%, #9aa1ff 54%, #d9d9e1 68%, #a9a9b0 82%, rgba(120, 120, 125, .25) 100%);
}
.timeline--line-aeno .timeline__line { background: var(--tl-gradient) 50% 78% / 100% 900% no-repeat; }
.timeline--line-ember .timeline__line { background: linear-gradient(90deg, rgba(85, 48, 42, .5) 0%, #6f3628 18%, #9a432c 42%, #c9552f 66%, #e2693b 84%, rgba(226, 105, 59, .35) 100%); }
.timeline--line-solid .timeline__line { height: 1px; background: color-mix(in srgb, var(--tl-color, #fff) 45%, transparent); }
.timeline__phase {
	grid-column: var(--c);
	grid-row: 1 / 4;
	display: grid;
	grid-template-rows: subgrid;
	min-width: 0;
	transition: opacity .55s var(--ease-out, ease);
}
@supports not (grid-template-rows: subgrid) {
	.timeline__phase { grid-template-rows: auto 3px auto; }
}
.timeline:not(.timeline--hl-none) .timeline__phase:not(.is-active) { opacity: var(--tl-dim, .35); }
.timeline__head { grid-row: 1; padding-bottom: clamp(18px, 3vh, 38px); }
.timeline.is-pinned.timeline--hl-scroll .timeline__head { cursor: pointer; }
.timeline__meta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 clamp(10px, 1.6vh, 18px);
	font-family: var(--sans);
	font-size: .7em;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1.2;
}
.timeline__tag { opacity: .7; text-align: right; }
.timeline .timeline__name {
	margin: 0;
	font-family: var(--tl-font);
	font-weight: var(--tl-weight, 400);
	font-size: calc(clamp(20px, 1.55vw, 30px) * var(--tl-text-scale, 1));
	line-height: 1.15;
	letter-spacing: -0.015em;
	font-variation-settings: normal;
}
.timeline__body { grid-row: 3; padding: clamp(26px, 5vh, 64px) 0 0 clamp(0px, 1vw, 16px); font-family: var(--sans); }
.timeline__label {
	margin: 0 0 12px;
	font-size: .66em;
	letter-spacing: .04em;
	text-transform: uppercase;
	opacity: .6;
}
.timeline__purpose {
	margin: 0 0 clamp(12px, 2.2vh, 26px);
	padding-bottom: clamp(12px, 2.2vh, 26px);
	border-bottom: 1px solid var(--tl-rule);
	font-size: calc(clamp(15px, 1.05vw, 18px) * var(--tl-text-scale, 1));
	line-height: 1.4;
}
.timeline__points { margin: 0; padding: 0; list-style: none; }
.timeline__points li {
	display: grid;
	grid-template-columns: clamp(32px, 2.6vw, 44px) 1fr;
	padding: clamp(8px, 1.3vh, 15px) 0 clamp(10px, 1.7vh, 20px);
	border-bottom: 1px solid var(--tl-rule);
	font-size: calc(clamp(13.5px, .92vw, 16px) * var(--tl-text-scale, 1));
	line-height: 1.38;
}
.timeline__pnum { font-size: .72em; padding-top: .2em; opacity: .85; }

/* Entrance */
.timeline.is-waiting .timeline__title,
.timeline.is-waiting .timeline__wrap { transform: translateY(28px); opacity: 0; }
.timeline.is-visible .timeline__title,
.timeline.is-visible .timeline__wrap { transition: transform 1.2s var(--ease-out, ease), opacity 1s var(--ease-out, ease); }
.timeline.is-visible .timeline__wrap { transition-delay: .15s; }

/* Inside page content / Elementor: full width, and none of the content styles */
.entry-content .timeline { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .timeline h2, .entry-content .timeline h3, .entry-content .timeline p { margin-top: 0; }
.entry-content .timeline ol, .entry-content .timeline li { margin-top: 0; margin-bottom: 0; list-style: none; }
.entry-content .timeline .timeline__points, .entry-content .timeline .timeline__points li { padding-left: 0; }
.entry-content .timeline .timeline__purpose { margin-bottom: clamp(12px, 2.2vh, 26px); }
.entry-content .timeline .timeline__meta { margin-bottom: clamp(10px, 1.6vh, 18px); }
.entry-content .timeline .timeline__label { margin-bottom: 12px; }

/* Phones: the phases are stacked, with the line running down on the left. */
@media (max-width: 767px) {
	.timeline__pin { padding: clamp(64px, 10vh, 96px) 0 clamp(56px, 9vh, 88px); }
	.timeline--title-right .timeline__top { display: block; }
	.timeline .timeline__title { margin-bottom: 44px; font-size: calc(clamp(40px, 11vw, 64px) * var(--tl-title-scale, 1)); }
	.timeline__wrap { padding: 0 var(--gutter); overflow: visible; }
	.timeline .timeline__track { position: relative; display: block; padding-left: 26px; }
	.timeline__line { position: absolute; left: 0; top: 4px; bottom: 0; width: 3px; height: auto; margin: 0; }
	.timeline--line-blue .timeline__line { background: linear-gradient(180deg, #2531ff 0%, #6f78ff 30%, #d9d9e1 62%, #a9a9b0 84%, rgba(120, 120, 125, .2) 100%); }
	.timeline--line-aeno .timeline__line { background-size: 900% 100%; background-position: 50% 50%; }
	.timeline--line-ember .timeline__line { background: linear-gradient(180deg, #e2693b 0%, #c9552f 30%, #9a432c 60%, #6f3628 85%, rgba(85, 48, 42, .4) 100%); }
	.timeline--line-solid .timeline__line { width: 1px; }
	.timeline__phase { display: block; padding-bottom: 44px; }
	.timeline__phase:last-of-type { padding-bottom: 0; }
	.timeline__head { padding-bottom: 0; }
	.timeline .timeline__name { font-size: calc(24px * var(--tl-text-scale, 1)); }
	.timeline__body { padding: 22px 0 0; }
	.timeline__points li { grid-template-columns: 38px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.timeline__phase { transition: none; }
}

/* ==========================================================================
   Project presentation (Moduły → Project presentation): a text panel beside a large
   photo panel. Text panel: logo + tagline, heading, text blocks at the bottom.
   Photo panel: title + subtitle over the photo, number tiles in the bottom-right corner.
   ========================================================================== */
.split {
	--sp-pad: clamp(18px, 1.6vw, 34px);
	display: grid;
	grid-template-columns: var(--sp-ratio, 50%) 1fr;
	min-height: max(100svh, 620px);
	background: var(--sp-bg, #000);
	color: var(--sp-color, #fff);
	font-size: calc(16px * var(--sp-text-scale, 1));
}
.split--h-large { min-height: max(80svh, 560px); }
.split--h-auto { min-height: 0; }
.split--photo-left { grid-template-columns: 1fr var(--sp-ratio, 50%); }
.split--photo-left .split__media { order: -1; }
/* Full / large height: the panels run under the fixed menu, the content starts below it */
.split--h-full, .split--h-large { --sp-top: var(--header-h); }

/* Text panel */
.split__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: calc(var(--sp-pad) + var(--sp-top, 0px)) var(--sp-pad) var(--sp-pad);
	background: var(--sp-bg, #000);
}
.split__brand { display: flex; align-items: center; gap: 16px; min-height: 40px; }
.split__logo { width: auto; height: clamp(30px, 2.6vw, 44px); max-width: 160px; object-fit: contain; }
.split__tagline { font-family: var(--sp-tfont); font-size: .9em; color: color-mix(in srgb, var(--sp-color, #fff) calc(var(--sp-muted, .65) * 100% + 25%), transparent); }
.split .split__title {
	margin: clamp(28px, 4.5vh, 64px) 0 0;
	max-width: 13em;
	font-family: var(--sp-font);
	font-weight: var(--sp-weight, 500);
	font-variation-settings: normal;
	font-size: calc(clamp(40px, 4.3vw, 92px) * var(--sp-title-scale, 1));
	line-height: .98;
	letter-spacing: -0.045em;
	color: inherit;
	text-wrap: balance;
}
.split__brand + .split__title { margin-top: clamp(36px, 6vh, 80px); }
.split__blocks {
	display: flex;
	flex-direction: column;
	gap: clamp(40px, 11vh, 150px);
	margin-top: auto;
	padding-top: clamp(48px, 8vh, 120px);
}
.split__block { max-width: 24em; transition-delay: calc(var(--i, 0) * 120ms); }
.split .split__block-title {
	margin: 0 0 10px;
	font-family: var(--sp-font);
	font-weight: 600;
	font-size: calc(clamp(19px, 1.35vw, 26px) * var(--sp-text-scale, 1));
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: inherit;
}
.split .split__block-text {
	margin: 0;
	font-family: var(--sp-tfont);
	font-size: calc(clamp(14.5px, .92vw, 17px) * var(--sp-text-scale, 1));
	line-height: 1.32;
	letter-spacing: -0.01em;
	color: color-mix(in srgb, var(--sp-color, #fff) calc(var(--sp-muted, .65) * 100%), transparent);
}

/* Heading gradients */
.split--fill-aeno .split__title {
	background-image: var(--sp-gradient);
	background-size: 100% 230%;
	background-position: 50% 80%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	padding-bottom: .06em;
}
.split--fill-ember .split__title { -webkit-text-fill-color: transparent; color: transparent; }
.split--fill-ember .split__title .fill-line {
	background-image: var(--aeno-ember);
	background-size: 100% 100%;
	background-repeat: no-repeat;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* Photo panel */
.split__media {
	position: relative;
	min-width: 0;
	min-height: 360px;
	overflow: hidden;
	background: var(--sp-r-bg, #b4b6be);
	color: var(--sp-r-color, #fff);
}
.split__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--sp-pos, center);
	display: block;
	transform: scale(1.06);
	transition: transform 1.8s var(--ease-out);
}
.split--fit-contain .split__img { object-fit: contain; }
/* the panel itself doesn't fade in (it only tells the photo to settle) */
.split__media.reveal { opacity: 1; transform: none; }
.split__media.is-visible .split__img,
.no-js .split__img { transform: none; }
.split__caption { position: relative; z-index: 2; padding: calc(var(--sp-pad) + var(--sp-top, 0px)) var(--sp-pad) var(--sp-pad); }
.split .split__caption-title {
	margin: 0;
	font-family: var(--sp-font);
	font-weight: 600;
	font-size: calc(clamp(18px, 1.25vw, 24px) * var(--sp-text-scale, 1));
	line-height: 1.2;
	letter-spacing: -0.015em;
}
.split .split__caption-sub { margin: 2px 0 0; font-family: var(--sp-tfont); font-size: calc(clamp(14px, .85vw, 16px) * var(--sp-text-scale, 1)); opacity: .85; }
.split__stats { position: absolute; right: var(--sp-pad); bottom: var(--sp-pad); z-index: 2; }
.split .collage__stats-wrap { position: static; display: block; padding: 0; pointer-events: auto; }
.split .collage__stats { position: static; }
.js .split__stats.is-visible .collage__stat { opacity: 1; transform: none; transition-delay: calc(var(--stat-i, 0) * 140ms + .25s); }

/* Inside page content / Elementor: full width */
.entry-content .split { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .split h2, .entry-content .split h3, .entry-content .split p { margin-top: 0; }

@media (max-width: 900px) {
	.split, .split--photo-left { grid-template-columns: 1fr; min-height: 0; }
	.split--photo-left .split__media { order: 0; }
	.split__text { padding: calc(28px + var(--sp-top, 0px)) 20px 40px; }
	.split__media { --sp-top: 0px; }
	.split__blocks { gap: 32px; margin-top: 0; padding-top: 44px; }
	.split .split__title { font-size: calc(clamp(38px, 10.5vw, 64px) * var(--sp-title-scale, 1)); }
	.split__media { min-height: max(118vw, 440px); }
	.split__caption { padding: 20px; }
	.split__stats { right: 16px; bottom: 16px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	:root { --gutter: 40px; --header-h: 68px; }
	.primary-nav { display: none; }
	.menu-toggle { display: inline-flex; }
	.intro__grid { grid-template-columns: 1fr; }
	.intro__nav ul { justify-content: flex-start; }
	.project-meta { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
	:root { --gutter: 20px; --gap: 8px; }
	.mosaic { grid-template-columns: minmax(0, 1fr); }
	.span-1, .span-2, .span-3, .span-2.is-alone { grid-column: auto; aspect-ratio: 4 / 5; }
	.span-3 { aspect-ratio: 4 / 3; }
	.mosaic__card { aspect-ratio: auto !important; padding: 40px 28px; }
	.mosaic__card p { max-width: none; }
	.pcard .pcard__more { padding: 0 14px; }
	.pcard .pcard__more-label { max-width: 160px; opacity: 1; margin-right: 8px; }
	.hero__content { bottom: 48px; }
	.site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
	.footer-cta { gap: 14px; max-width: 100%; }
	.footer-cta__label { font-size: clamp(34px, 10.5vw, 64px); }
	.footer-cta .round-btn { width: 48px; height: 48px; }
	.float-cta { bottom: 20px; font-size: 16px; }
	.post-grid { grid-template-columns: 1fr; }
	.project-meta dl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
	.site-footer__cols { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	.smod[data-scroll="pinned"] .smod__stage { height: calc(100svh + 80svh); }
	.smod[data-scroll="long"] .smod__stage { height: calc(100svh + 150svh); }
	.smod--left .smod__copy { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	.smod--zoom .smod__img { transform: none; }
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.reveal { opacity: 1; transform: none; }
	.showcase__viewport { overflow-x: auto; }
	.showcase__track { animation: none; }
}

/* ==========================================================================
   Copper heading gradient (scroll module, feature section, statement, timeline,
   contact greeting): dark brown at the top of the letters, warm orange at the bottom,
   on every line. The text sits in an inline <span class="fill-line">, so each line
   gets its own copy of the gradient over the letters (descenders included).
   Kept at the end so it wins over the image-gradient sizing of each module.
   ========================================================================== */
.smod.smod--fill-ember .smod__title,
.feat.feat--fill-ember .feat__title,
.stmt--gc-ember.stmt--grad-all .stmt__text,
.timeline--fill-ember .timeline__title {
	background: none;
	animation: none;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.smod--fill-ember .smod__title .fill-line,
.feat--fill-ember .feat__title .fill-line,
.stmt--gc-ember.stmt--grad-all .fill-line,
.timeline--fill-ember .timeline__title .fill-line,
.feat.feat--fill-ember.feat--fill-values .feat__value {
	background-image: var(--aeno-ember);
	background-size: 100% 100%;
	background-repeat: no-repeat;
	background-position: 0 0;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
/* "Let the gradient flow": the warm glow drifts slowly across the letters */
.smod--fill-ember.smod--fill-flow .smod__title .fill-line,
.feat--fill-ember.feat--fill-flow .feat__title .fill-line,
.feat.feat--fill-ember.feat--fill-flow.feat--fill-values .feat__value {
	background-size: 260% 100%, 100% 100%;
	animation: aenoEmberFlow 9s ease-in-out infinite alternate;
}
@keyframes aenoEmberFlow {
	from { background-position: 0% 0, 0 0; }
	to   { background-position: 100% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
	.smod--fill-ember.smod--fill-flow .smod__title .fill-line,
	.feat--fill-ember.feat--fill-flow .feat__title .fill-line,
	.feat.feat--fill-ember.feat--fill-flow .feat__value { animation: none; background-size: 100% 100%; }
}
