/**
 * Strona główna — „cichy luksus”. Korzysta z tokenów w identity.css.
 */

.lx-home { background: var(--lx-ivory); color: var(--lx-ink); font-family: var(--lx-serif); }
.lx-home em { font-style: italic; font-weight: 400; }
.lx-container { width: min(100% - 2 * var(--lx-gutter), var(--lx-wide)); margin: 0 auto; }
.lx-container--narrow { width: min(100% - 2 * var(--lx-gutter), var(--lx-narrow)); }
.lx-on-dark { color: var(--lx-linen); }

.lx-head { margin: 0 0 var(--lx-s5); }
.lx-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--lx-s3); flex-wrap: wrap; }
.lx-h2 { margin: var(--lx-s3) 0 0; font-family: var(--lx-serif); font-size: var(--lx-fs-h2); font-weight: 400; line-height: 1.12; letter-spacing: -.005em; color: inherit; }
.lx-h3 { margin: 0; font-family: var(--lx-serif); font-size: var(--lx-fs-h3); font-weight: 400; line-height: 1.2; color: inherit; }

/* =========================================================
   1. HERO
   ========================================================= */
.lx-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: calc(100svh - var(--larix-header-h));
	min-height: max(620px, calc(100svh - var(--larix-header-h)));
	overflow: hidden;
	isolation: isolate;
	background: var(--lx-umber);
}
.lx-hero__media { position: absolute; inset: 0; z-index: -2; }
.lx-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 2.2s var(--lx-ease); }
.lx-hero__slide.is-active { opacity: 1; }
.lx-hero__slide img {
	display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center;
	transform: scale(1.07);
	transition: transform 12s linear;
}
.lx-hero__slide.is-active img { transform: scale(1); }
/* Wygaszenie: ciepły, ciemny gradient od dołu i od lewej – tekst zawsze czytelny */
.lx-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(to top, rgba(24, 20, 16, .78) 0%, rgba(24, 20, 16, .28) 48%, rgba(24, 20, 16, .12) 100%),
		linear-gradient(to right, rgba(24, 20, 16, .35) 0%, rgba(24, 20, 16, 0) 60%);
}

.lx-hero__content {
	width: min(100% - 2 * var(--lx-gutter), var(--lx-wide));
	margin: 0 auto;
	padding: 0 0 clamp(72px, 9vw, 128px);
}
.lx-hero__title {
	max-width: 20ch;
	margin: var(--lx-s3) 0 var(--lx-s3);
	font-family: var(--lx-serif);
	font-size: var(--lx-fs-hero);
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: -.012em;
	color: var(--lx-linen);
}
.lx-hero__lead { max-width: 46ch; margin: 0 0 var(--lx-s4); font-size: var(--lx-fs-lead); line-height: 1.65; color: rgba(250, 248, 244, .88); }
.lx-hero__links { display: flex; flex-wrap: wrap; gap: var(--lx-s2) var(--lx-s5); }
.lx-hero__links .lx-link { color: var(--lx-linen); }

.lx-hero__controls {
	position: absolute;
	right: var(--lx-gutter);
	bottom: clamp(28px, 4vw, 52px);
	display: flex;
	align-items: center;
	gap: var(--lx-s3);
}
.lx-hero__dots { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lx-hero__dot { position: relative; display: block; width: 44px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.lx-hero__dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(250, 248, 244, .45); transition: background var(--lx-t-fast), height var(--lx-t-fast); }
.lx-hero__dot:hover::before { background: var(--lx-linen); }
.lx-hero__dot.is-active::before { height: 2px; margin-top: -.5px; background: var(--lx-linen); }
.lx-hero__dot:focus-visible, .lx-hero__pause:focus-visible { outline: 2px solid var(--lx-linen); outline-offset: 2px; }

.lx-hero__pause { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(250, 248, 244, .45); border-radius: 50%; background: transparent; cursor: pointer; transition: border-color var(--lx-t-fast); }
.lx-hero__pause:hover { border-color: var(--lx-linen); }
.lx-hero__pause-icon { position: relative; width: 8px; height: 10px; border-left: 2px solid var(--lx-linen); border-right: 2px solid var(--lx-linen); }
.lx-hero__pause.is-paused .lx-hero__pause-icon { width: 0; height: 0; border: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid var(--lx-linen); margin-left: 2px; }

/* =========================================================
   2. MANIFEST
   ========================================================= */
.lx-manifest { padding: var(--lx-section) 0; text-align: center; background: var(--lx-ivory); }
.lx-manifest__statement { margin: var(--lx-s4) 0; font-family: var(--lx-serif); font-size: clamp(2rem, 4.2vw, 3.8rem); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; }
.lx-manifest__text { max-width: 60ch; margin: 0 auto var(--lx-s5); font-size: var(--lx-fs-lead); line-height: 1.85; color: var(--lx-stone); }
.lx-manifest .lx-link { color: var(--lx-ink); }

/* =========================================================
   3. KOLEKCJE
   ========================================================= */
.lx-collections { padding: 0 0 var(--lx-section); background: var(--lx-ivory); }
.lx-collections__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.lx-collection { position: relative; }
.lx-collection:nth-child(2) { margin-top: clamp(0px, 8vw, 128px); }
.lx-collection__frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--lx-bone); }
.lx-collection__frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--lx-t-slow) var(--lx-ease); }
.lx-collection:hover .lx-collection__frame img { transform: scale(1.04); }
.lx-collection__num { margin: var(--lx-s3) 0 var(--lx-s1); font-family: var(--lx-serif); font-style: italic; font-size: 1.1rem; color: var(--lx-bronze); }
.lx-collection__link { color: inherit; text-decoration: none; }
.lx-collection__link::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* cała karta klikalna jednym linkiem */
.lx-collection__link:focus-visible { outline: none; }
.lx-collection:has(.lx-collection__link:focus-visible) { outline: 2px solid var(--lx-ink); outline-offset: 8px; }
.lx-collection__text { max-width: 44ch; margin: var(--lx-s2) 0 var(--lx-s3); font-size: var(--lx-fs-body); line-height: 1.8; color: var(--lx-stone); }
.lx-collection .lx-link { color: var(--lx-ink); }
.lx-collection:hover .lx-link::after { width: 100%; }
.lx-collection:hover .lx-link span[aria-hidden],
.lx-collection:hover .lx-link > span { transform: translateX(6px); }
.lx-collection .lx-link > span { display: inline-block; transition: transform var(--lx-t-base) var(--lx-ease); }

/* =========================================================
   4. RZEMIOSŁO
   ========================================================= */
.lx-craft { padding: var(--lx-section) 0; background: var(--lx-umber); }
.lx-craft__top { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: end; margin-bottom: var(--lx-s6); }
.lx-craft__top .lx-head { margin: 0; }
.lx-craft__intro { margin: 0; font-size: var(--lx-fs-lead); line-height: 1.8; color: rgba(250, 248, 244, .78); }

.lx-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 0 var(--lx-s6); padding: 0; list-style: none; border-top: 1px solid var(--lx-line-inv); }
.lx-principle { padding: var(--lx-s4) var(--lx-s4) 0 0; }
.lx-principle + .lx-principle { padding-left: var(--lx-s4); border-left: 1px solid var(--lx-line-inv); }
.lx-principle__num { display: block; margin-bottom: var(--lx-s3); font-family: var(--lx-serif); font-style: italic; font-size: 1.1rem; color: var(--lx-bronze-light); }
.lx-principle__title { margin: 0 0 var(--lx-s2); font-family: var(--lx-serif); font-size: var(--lx-fs-h3); font-weight: 400; line-height: 1.2; color: var(--lx-linen); }
.lx-principle p { margin: 0; max-width: 34ch; font-size: var(--lx-fs-body); line-height: 1.8; color: rgba(250, 248, 244, .74); }

.lx-video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.lx-video__play { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.lx-video__play img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: opacity var(--lx-t-slow) var(--lx-ease), transform var(--lx-t-slow) var(--lx-ease); }
.lx-video__play:hover img { opacity: .6; transform: scale(1.02); }
.lx-video__icon { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border: 1px solid rgba(250, 248, 244, .7); border-radius: 50%; }
.lx-video__icon::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -8px 0 0 -4px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid var(--lx-linen); }
.lx-video__caption { position: absolute; left: var(--lx-s4); bottom: var(--lx-s4); font-family: var(--lx-sans); font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--lx-linen); }
.lx-video__play:focus-visible { outline: 2px solid var(--lx-linen); outline-offset: -6px; }
.lx-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =========================================================
   5. WYBRANE PRZEDMIOTY
   ========================================================= */
.lx-selected { padding: var(--lx-section) 0; background: var(--lx-linen); }
.lx-selected .lx-head { margin-bottom: var(--lx-s5); }
.lx-selected .lx-link { color: var(--lx-ink); }
.lx-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 36px); margin: 0; padding: 0; list-style: none; }
.lx-product__link { display: block; color: inherit; text-decoration: none; }
.lx-product__link:focus-visible { outline: 2px solid var(--lx-ink); outline-offset: 6px; }
.lx-product__frame { display: block; aspect-ratio: 1; overflow: hidden; background: var(--lx-bone); }
.lx-product__frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--lx-t-slow) var(--lx-ease); }
.lx-product__link:hover .lx-product__frame img { transform: scale(1.05); }
.lx-product__name { display: block; margin: var(--lx-s3) 0 6px; font-family: var(--lx-serif); font-size: 1.2rem; line-height: 1.25; color: var(--lx-ink); }
.lx-product__price { display: block; font-family: var(--lx-sans); font-size: .9375rem; font-weight: 300; letter-spacing: .06em; color: var(--lx-stone); }
.lx-product__price del { opacity: .6; }
.lx-product__price ins { text-decoration: none; color: var(--lx-bronze); }

/* =========================================================
   6. ZAKOŃCZENIE
   ========================================================= */
.lx-closing { position: relative; display: flex; align-items: center; min-height: 70vh; padding: var(--lx-section) 0; overflow: hidden; isolation: isolate; text-align: center; background: var(--lx-umber); }
.lx-closing__media { position: absolute; inset: 0; z-index: -2; }
.lx-closing__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lx-closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(24, 20, 16, .66); }
.lx-closing__inner { position: relative; }
.lx-closing__quote { margin: 0 0 var(--lx-s5); font-family: var(--lx-serif); font-size: clamp(2rem, 4.4vw, 4rem); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; color: var(--lx-linen); }

/* =========================================================
   Tablet i telefon
   ========================================================= */
@media (max-width: 1024px) {
	.lx-craft__top { grid-template-columns: 1fr; align-items: start; gap: var(--lx-s4); }
	.lx-products { grid-template-columns: repeat(2, 1fr); row-gap: var(--lx-s5); }
}
@media (max-width: 767px) {
	.lx-hero { min-height: max(560px, calc(100svh - var(--larix-header-h))); }
	.lx-hero__links { flex-direction: column; align-items: flex-start; gap: var(--lx-s3); }
	.lx-hero__controls { left: var(--lx-gutter); right: auto; bottom: 24px; }
	.lx-hero__content { padding-bottom: 96px; }
	.lx-collections__grid { grid-template-columns: 1fr; gap: var(--lx-s6); }
	.lx-collection:nth-child(2) { margin-top: 0; }
	.lx-principles { grid-template-columns: 1fr; }
	.lx-principle, .lx-principle + .lx-principle { padding: var(--lx-s4) 0; border-left: 0; }
	.lx-principle + .lx-principle { border-top: 1px solid var(--lx-line-inv); }
	.lx-video__icon { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
	.lx-video__caption { left: var(--lx-s2); bottom: var(--lx-s2); font-size: .6875rem; }
	.lx-closing { min-height: 60vh; }
}
@media (prefers-reduced-motion: reduce) {
	.lx-hero__slide, .lx-hero__slide img { transition: none; transform: none; }
}

@media (max-width: 767px) {
	.lx-hero .lx-label { letter-spacing: .16em; font-size: .6875rem; }
	.lx-hero .lx-label::before { width: 24px; }
}

/* Białe tła zdjęć produktów wtapiają się w kolor ramki */
.lx-collection__frame img,
.lx-product__frame img { mix-blend-mode: multiply; }
.lx-product__frame { background: var(--lx-bone); }

/* Zdjęcia w całości (bez przycinania) */
.lx-product__frame img { object-fit: contain; }
.lx-collection__frame { aspect-ratio: auto; }
.lx-collection__frame img { height: auto; object-fit: initial; }
.lx-product__frame { background: transparent; }
