/* Homepage sections. Tokens live in base.css. */

.home-section {
	content-visibility: auto;
	contain-intrinsic-size: auto 640px;
}

.hero-a {
	content-visibility: visible;
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: clamp(35px, 5vw, 74px);
	align-items: center;
	width: min(var(--wide), 100%);
	min-height: 0;
	margin: 34px auto 0;
	padding: 0 var(--gutter) 35px;
	background: var(--paper);
}

.hero-a-copy {
	align-self: center;
	padding: 22px 0;
}

.hero-a .eyebrow {
	max-width: none;
	margin-bottom: 24px;
	font-size: 12px;
	letter-spacing: 1.7px;
}

.hero-a h1 {
	max-width: 570px;
	font-size: clamp(42px, 4.15vw, 60px);
	line-height: 1.13;
	letter-spacing: -1.6px;
}

.hero-a .body-copy {
	max-width: 350px;
	margin: 25px 0 27px;
	font-size: 14px;
	line-height: 1.85;
}

.hero-a .btn {
	min-height: 46px;
	padding: 12px 23px;
	font-size: 13px;
	gap: 25px;
}

.hero-a .btn {
	box-shadow: none;
}

.hero-a .text-link {
	font-size: 13px;
	gap: 16px;
}

.hero-a .actions {
	gap: 21px;
}

.hero-a-photo {
	position: relative;
	align-self: center;
	min-height: 470px;
	max-height: none;
	aspect-ratio: 1.26;
}

.hero-a-photo > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 52%;
}

.photo-label {
	position: absolute;
	bottom: 20px;
	left: 21px;
	padding: 8px 12px;
	background: var(--paper);
	color: var(--forest);
	font-size: 12px;
	letter-spacing: 0.8px;
}

.space {
	padding-block: 86px;
}

.body-copy {
	max-width: 440px;
	margin: 24px 0 28px;
	color: var(--muted);
}

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 32px;
}

.section-head .eyebrow {
	margin-bottom: 12px;
}

.section-head p {
	max-width: 340px;
	font-size: 14px;
	color: var(--muted);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 22px;
}

.photo {
	position: relative;
	overflow: hidden;
}

.photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ornament {
	height: 32px;
	background-image: url("../images/forest-yarn-pattern.avif");
	background-repeat: repeat-x;
	background-position: 0 center;
	background-size: auto 22px;
	opacity: 0.7;
	animation: fy-drift 48s linear infinite;
}

@keyframes fy-drift {
	to {
		background-position: 220px center;
	}
}

.category-rail {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 26px;
	padding-block: 26px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.category {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-right: 4px;
	transition: transform var(--fy-motion-fast) var(--fy-ease);
}

.category img {
	flex: 0 0 auto;
	width: 55px;
	height: 61px;
	object-fit: cover;
	transition: transform var(--fy-motion) var(--fy-ease);
}

.category strong {
	display: block;
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 300;
}

.category small {
	display: block;
	margin-top: 3px;
	font-size: 12px;
	color: var(--muted);
}

.category .arrow {
	position: relative;
	display: grid;
	flex: 0 0 44px;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-left: auto;
	border-radius: 50%;
	color: var(--forest);
	background: color-mix(in srgb, var(--sage) 45%, transparent);
	transition: background var(--fy-motion) var(--fy-ease);
}

.category .arrow::before {
	content: "";
	position: absolute;
	inset: 3px;
	border: 1px dashed color-mix(in srgb, var(--olive) 32%, transparent);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--fy-motion-slow) var(--fy-ease);
}

.category .arrow svg {
	width: 26px;
	height: 26px;
	transition: transform var(--fy-motion) var(--fy-ease);
}

.category:hover {
	transform: translateX(4px);
}

.category:hover img {
	transform: scale(1.06);
}

.category:hover .arrow,
.category:focus-visible .arrow {
	background: var(--sage);
}

.category:hover .arrow::before,
.category:focus-visible .arrow::before {
	opacity: 1;
}

.category:hover .arrow svg,
.category:focus-visible .arrow svg {
	transform: translateX(3px);
}

.family-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

.family-grid[data-count="1"] {
	grid-template-columns: 1fr;
}

.family-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.family-media {
	container-type: inline-size;
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	isolation: isolate;
	min-width: 0;
	min-height: 0;
	padding: 4% 2% 8% 0;
}

/* Soft moss bloom behind the climate plane. */
.family-media::before {
	content: "";
	position: absolute;
	z-index: 0;
	inset: 8% -4% -2% 6%;
	border-radius: 42% 58% 48% 52% / 48% 42% 58% 52%;
	background:
		radial-gradient(ellipse 70% 60% at 40% 45%, color-mix(in srgb, var(--olive, #8a9a6a) 28%, transparent), transparent 70%),
		radial-gradient(ellipse 55% 50% at 70% 70%, color-mix(in srgb, var(--forest, #2c3d2c) 12%, transparent), transparent 75%);
	pointer-events: none;
}

.family-media__climate,
.family-media__variant {
	position: relative;
	grid-area: 1 / 1;
	margin: 0;
	overflow: hidden;
	background: #f1f2ed;
}

/* Lifestyle plane — organic cut, slight counter-tilt. */
.family-media__climate {
	z-index: 1;
	width: 92%;
	justify-self: start;
	align-self: start;
	overflow: hidden;
	border-radius: 28px 36px 72px 28px;
	box-shadow:
		0 1px 0 rgb(255 255 255 / 0.35) inset,
		0 22px 48px rgb(28 40 28 / 0.16),
		0 6px 16px rgb(28 40 28 / 0.08);
	transform: rotate(-1.75deg);
	transform-origin: 30% 60%;
	transition: transform var(--fy-motion) var(--fy-ease), box-shadow var(--fy-motion) var(--fy-ease);
}

.family-media__climate .family-media__link {
	display: block;
	height: 100%;
}

.family-media__climate img {
	aspect-ratio: 4 / 5;
	width: 100%;
	height: auto;
	object-fit: cover;
	object-position: 48% 18%;
	scale: 1.04;
}

/* Yarn skein as a floating round sample over the scene. */
.family-media__variant {
	z-index: 2;
	width: min(48%, 228px);
	justify-self: end;
	align-self: end;
	margin: 0 0 2% 0;
	overflow: visible;
	background: var(--paper, #faf8f4);
	padding: 10px;
	border-radius: 50%;
	box-shadow:
		0 1px 0 rgb(255 255 255 / 0.7) inset,
		0 20px 44px rgb(28 40 28 / 0.2),
		0 4px 14px rgb(28 40 28 / 0.12);
	transform: rotate(3.5deg);
	transform-origin: 60% 80%;
	transition: transform var(--fy-motion) var(--fy-ease), box-shadow var(--fy-motion) var(--fy-ease);
}

.family-media__variant .family-media__link {
	display: block;
	overflow: hidden;
	border-radius: 50%;
	background: #f1f2ed;
	aspect-ratio: 1 / 1;
}

.family-media__variant img {
	aspect-ratio: 1 / 1;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.family-media__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.family-media img {
	display: block;
	transition:
		transform var(--fy-motion) var(--fy-ease),
		opacity var(--fy-motion-fast) var(--fy-ease);
}

.family-media img.is-swapping {
	opacity: 0.35;
}

.family-card:hover .family-media__climate {
	transform: rotate(-0.4deg) scale(1.015);
	box-shadow:
		0 1px 0 rgb(255 255 255 / 0.35) inset,
		0 28px 56px rgb(28 40 28 / 0.2),
		0 8px 20px rgb(28 40 28 / 0.1);
}

.family-card:hover .family-media__variant {
	transform: rotate(1deg) translate3d(0, -8px, 0);
	box-shadow:
		0 1px 0 rgb(255 255 255 / 0.7) inset,
		0 28px 52px rgb(28 40 28 / 0.24),
		0 8px 18px rgb(28 40 28 / 0.14);
}

.family-media__caption {
	position: absolute;
	right: 0;
	bottom: -1.6em;
	left: 0;
	margin: 0;
	padding: 0;
	color: var(--ink, #1c281c);
	font-size: 11px;
	letter-spacing: 0.03em;
	line-height: 1.3;
	text-align: center;
	text-shadow: none;
	pointer-events: none;
}

@container (max-width: 280px) {
	.family-media {
		padding: 3% 1% 10% 0;
	}

	.family-media__climate {
		width: 94%;
		border-radius: 22px 28px 56px 22px;
	}

	.family-media__variant {
		width: min(54%, 168px);
		padding: 7px;
	}
}

.family-info {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 26px 0 0;
}

.family-info .eyebrow {
	margin-bottom: 12px;
	font-size: 12px;
	letter-spacing: 1.4px;
}

.family-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	width: 100%;
}

.family-title-row h3 {
	font-size: 35px;
	letter-spacing: -0.6px;
}

.family-title-row > span {
	font-size: 12px;
	color: var(--olive);
	white-space: nowrap;
}

.family-info > p {
	max-width: 370px;
	min-height: 48px;
	margin: 16px 0 12px;
	font-size: 13px;
	line-height: 1.85;
	color: var(--muted);
}

.family-preview-swatches {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	min-height: 26px;
	margin: 0;
}

.family-swatch-block {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	margin: 4px 0 9px;
}

.family-color-name {
	margin: 0;
	min-height: 1.2em;
	font-family: var(--wp--preset--font-family--gazpacho, Georgia, serif);
	font-size: 18px;
	font-weight: 300;
	letter-spacing: -0.02em;
	color: var(--forest);
}

.family-preview-swatches button {
	width: 19px;
	height: 19px;
	padding: 0;
	border: 1px solid #0001;
	border-radius: 50%;
	transition: transform var(--fy-motion-fast) var(--fy-ease), box-shadow var(--fy-motion-fast) var(--fy-ease);
}

.family-preview-swatches button:hover {
	transform: scale(1.18);
}

.family-preview-swatches button[aria-pressed="true"] {
	box-shadow: 0 0 0 1px var(--paper), 0 0 0 2px var(--forest);
}

.family-preview-swatches span {
	margin-left: 4px;
	font-size: 12px;
	color: var(--olive);
}

.family-info .btn {
	margin-top: 10px;
}

.family-note {
	min-height: 18px;
	margin-top: 13px;
	font-size: 12px;
	color: var(--muted);
}

/* Single yarn line — bridge layout (“Zdjęcie + detal”), ~380px card. */
.family-grid[data-count="1"] .family-card {
	display: grid;
	width: 100%;
	height: 380px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: stretch;
	gap: 0 65px;
	background: var(--cream);
	padding: 0 30px 0 0;
	overflow: visible;
}

.family-grid[data-count="1"] .family-media {
	align-self: stretch;
	position: relative;
	min-height: 0;
	max-width: none;
	height: 100%;
	padding: 0;
}

.family-grid[data-count="1"] .family-media::before {
	display: none;
}

.family-grid[data-count="1"] .family-media__climate {
	z-index: 1;
	width: 100%;
	height: 100%;
	justify-self: stretch;
	align-self: stretch;
	overflow: hidden;
	border-radius: 0;
	box-shadow: none;
	transform: none;
	background: #e8e6df;
}

.family-grid[data-count="1"] .family-media__climate .family-media__link {
	display: block;
	width: 100%;
	height: 100%;
}

.family-grid[data-count="1"] .family-media__climate img {
	aspect-ratio: auto;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 55%;
	scale: none;
}

.family-grid[data-count="1"] .family-media__variant {
	z-index: 2;
	position: absolute;
	right: 16px;
	bottom: 24px;
	width: 170px;
	margin: 0;
	justify-self: auto;
	align-self: auto;
	overflow: visible;
	background: var(--paper, #faf8f4);
	padding: 7px;
	border-radius: 0;
	box-shadow: 0 8px 25px rgb(0 0 0 / 0.06);
	transform: none;
}

.family-grid[data-count="1"] .family-media__variant .family-media__link {
	display: block;
	overflow: hidden;
	border-radius: 0;
	aspect-ratio: 10 / 11;
	background: #f1f2ed;
}

.family-grid[data-count="1"] .family-media__variant img {
	aspect-ratio: 10 / 11;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.family-grid[data-count="1"] .family-media__caption {
	/* Color name already lives in .family-color-name; keep node for JS. */
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.family-grid[data-count="1"] .family-card:hover .family-media__climate,
.family-grid[data-count="1"] .family-card:hover .family-media__variant {
	transform: none;
	box-shadow: 0 8px 25px rgb(0 0 0 / 0.06);
}

.family-grid[data-count="1"] .family-card:hover .family-media__climate {
	box-shadow: none;
}

.family-grid[data-count="1"] .family-info {
	display: flex;
	align-self: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	padding: 24px 0 24px 20px;
}

.family-grid[data-count="1"] .family-title-row h3 {
	font-size: 44px;
}

.family-grid[data-count="1"] .family-info > p {
	min-height: 0;
	max-width: 28em;
	margin: 0;
}

.family-grid[data-count="1"] .family-preview-swatches {
	margin: 0;
}

.family-grid[data-count="1"] .family-swatch-block {
	margin: 0;
}

.family-grid[data-count="1"] .family-info .btn {
	margin-top: 4px;
}

.family-grid[data-count="1"] .family-note {
	margin-top: 8px;
	padding-top: 0;
}

.family-grid[data-count="1"] .family-media img.is-swapping {
	opacity: 0.4;
	transition: opacity 200ms var(--fy-ease, ease);
}

.fyc.space {
	padding-block: clamp(40px, 5vw, 64px);
}

.fyc-inner {
	width: min(var(--wide), 100%);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.fyc :where(h2, h3, p, figure) {
	margin: 0;
}

.fyc :where(button, a):focus-visible {
	outline: 2px solid var(--forest);
	outline-offset: 5px;
}

.fyc-heading {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 32px;
	margin-bottom: 40px;
}

.fyc-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 17px;
	color: var(--forest);
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.fyc-eyebrow::before {
	content: "";
	width: 34px;
	height: 1px;
	background: var(--olive);
}

.fyc-heading h2 {
	max-inline-size: 14ch;
	font: 300 clamp(34px, 4.05vw, 52px) / 1.14 var(--serif);
	letter-spacing: -0.045em;
	color: var(--forest);
}

.fyc-heading-copy {
	max-width: 270px;
	padding-bottom: 5px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.8;
}

.fyc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(42px, 5.55vw, 80px);
	align-items: start;
	position: relative;
}

.fyc-grid::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 65px;
	bottom: 0;
	width: 1px;
	background: var(--line);
	opacity: 0.7;
}

.fyc-yarn {
	min-width: 0;
	position: relative;
	--selected: #d6dbd9;
	--tilt: 7deg;
	--lift: -2deg;
}

.fyc-yarn:nth-child(2) {
	margin-top: 48px;
	--tilt: -7deg;
	--lift: 2deg;
}

.fyc-yarn:nth-child(2) .fyc-media {
	padding-right: 0;
	padding-left: 22px;
	margin-bottom: 56px;
}

.fyc-media {
	position: relative;
	padding-right: 22px;
	padding-bottom: 19px;
	margin-bottom: 28px;
}

.fyc-media::before {
	content: "";
	position: absolute;
	inset: 22px 0 0 23px;
	background: var(--cream);
	border-radius: 2px 100px 4px 4px;
}

.fyc-yarn:nth-child(2) .fyc-media::before {
	inset: 22px 23px 0 0;
	background: var(--sage);
	border-radius: 100px 2px 4px 4px;
}

.fyc-photo {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	aspect-ratio: 1.58;
	border-radius: 2px 85px 2px 2px;
	background: var(--cream);
}

.fyc-yarn:nth-child(2) .fyc-photo {
	border-radius: 85px 2px 2px 2px;
}

.fyc-photo img,
.fyc-main-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--photo-position, 50% 48%);
	transition: transform 1s cubic-bezier(0.2, 0.65, 0.2, 1);
}

.fyc-yarn:nth-child(2) .fyc-photo img {
	--photo-position: 50% 45%;
}

.fyc-detail {
	position: absolute;
	z-index: 3;
	right: 7px;
	bottom: -32px;
	width: clamp(125px, 11.7vw, 168px);
	margin: 0;
	transform: rotate(var(--tilt));
	filter: drop-shadow(0 8px 11px #332b1b12);
	transition: transform 0.7s cubic-bezier(0.2, 0.65, 0.2, 1);
}

.fyc-yarn:nth-child(2) .fyc-detail {
	right: auto;
	left: 7px;
}

.fyc-detail-paper {
	position: relative;
	padding: 8px 8px 0;
	border: 1px solid #e2ded6;
	background: var(--paper);
}

.fyc-detail-paper::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: -8px;
	left: calc(50% - 20px);
	width: 40px;
	height: 16px;
	border-inline: 1px solid #fbf9f650;
	background: #e2dccbbf;
	transform: rotate(-3deg);
}

.fyc-detail-frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1.08;
	background: #f5f4f1;
}

.fyc-detail-link {
	display: block;
	height: 100%;
	color: inherit;
}

.fyc-detail-link:focus-visible {
	outline-offset: -4px;
}

.fyc-detail-frame img,
.fyc-detail-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #f5f4f1;
}

.fyc-detail-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 29px;
	color: var(--muted);
	font-size: 9px;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.fyc-detail-label i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--selected);
	box-shadow: 0 0 0 1px #3a3a3a18;
	transition: background 0.4s;
}

.fyc-info {
	padding: 0 5px 0 1px;
}

.fyc-status {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 20px;
	margin-bottom: 7px;
	color: var(--olive);
	font-size: 10px;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.fyc-status::before {
	content: "";
	flex-shrink: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--olive);
}

.fyc-yarn:nth-child(2) .fyc-status::before {
	width: 6px;
	height: 6px;
	border: 1px solid var(--olive);
	border-radius: 0;
	background: transparent;
	transform: rotate(45deg);
}

.fyc-title-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding-right: 1px;
}

.fyc-title-link {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.fyc-info h3 {
	font: 300 clamp(48px, 5.4vw, 60px) / 1.06 var(--serif);
	letter-spacing: -0.055em;
	color: var(--forest);
}

.fyc-count {
	color: var(--muted);
	font-size: 11px;
	letter-spacing: 0.015em;
	white-space: nowrap;
}

.fyc-composition {
	min-height: 24px;
	margin-top: 11px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.65;
}

.fyc-colors {
	margin-top: 22px;
	padding-top: 15px;
	border-top: 1px solid var(--line);
}

.fyc-selection {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	min-height: 24px;
	font-size: 12px;
}

.fyc-color-name {
	color: var(--ink);
	letter-spacing: 0.01em;
}

.fyc-color-progress {
	color: var(--muted);
	font-size: 10px;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.09em;
}

.fyc-palette {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
	max-width: 425px;
	margin-top: 9px;
}

.fyc-swatch {
	position: relative;
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
}

.fyc-swatch::before {
	content: "";
	width: 22px;
	height: 22px;
	border: 1px solid var(--paper);
	border-radius: 50%;
	background: var(--swatch);
	box-shadow: inset 0 0 0 1px #00000014;
	transition: transform var(--fy-motion-fast) var(--fy-ease), box-shadow var(--fy-motion-fast) var(--fy-ease);
}

.fyc-swatch[aria-pressed="true"]::before {
	box-shadow:
		inset 0 0 0 1px #00000014,
		0 0 0 1px var(--paper),
		0 0 0 2px var(--forest);
}

.fyc-swatch-tooltip {
	position: absolute;
	z-index: 5;
	bottom: calc(100% + 7px);
	left: 50%;
	padding: 5px 8px;
	border-radius: 2px;
	background: var(--forest);
	color: var(--paper);
	font-size: 10px;
	letter-spacing: 0;
	line-height: 1.4;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 4px);
	transition: opacity 0.18s, transform 0.18s;
}

.fyc-swatch:first-child .fyc-swatch-tooltip {
	left: 0;
	transform: translate(0, 4px);
}

.fyc-swatch:last-child .fyc-swatch-tooltip {
	left: auto;
	right: 0;
	transform: translate(0, 4px);
}

.fyc-swatch:focus-visible {
	outline: 2px solid var(--forest);
	outline-offset: 3px;
}

.fyc-swatch:focus-visible .fyc-swatch-tooltip {
	opacity: 1;
	transform: translate(-50%, 0);
}

.fyc-swatch:is(:first-child, :last-child):focus-visible .fyc-swatch-tooltip {
	transform: translate(0, 0);
}

.fyc-actions {
	margin-top: 26px;
}

.fyc-cta {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-width: 255px;
	min-height: 54px;
	padding: 0 19px 0 23px;
	border: 1px solid var(--forest);
	border-radius: 0;
	background: var(--forest);
	color: var(--paper);
	font-size: 14px;
	line-height: 1.5;
	text-decoration: none;
	transition: background 0.3s, color 0.3s, transform 0.3s var(--fy-ease), box-shadow 0.3s var(--fy-ease);
}

.fyc-cta--outline {
	background: transparent;
	color: var(--forest);
}

.fyc-cta svg {
	flex-shrink: 0;
	width: 39px;
	height: 21px;
	overflow: visible;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.1;
	transition: transform 0.35s;
}

.fyc-cta .fyc-arrow-loop {
	stroke-dasharray: 42;
	stroke-dashoffset: 42;
	opacity: 0;
	transition: stroke-dashoffset 0.6s, opacity 0.2s;
}

.fyc-note {
	min-height: 20px;
	margin-top: 11px;
	color: var(--muted);
	font-size: 11px;
	line-height: 1.6;
}

.fyc-note-price {
	color: var(--forest);
}

@media (hover: hover) and (pointer: fine) {
	.fyc-media:hover .fyc-photo img {
		transform: scale(1.035);
	}

	.fyc-media:hover .fyc-detail {
		transform: translateY(-7px) rotate(var(--lift));
	}

	.fyc-swatch:hover::before {
		transform: scale(1.12);
	}

	.fyc-swatch:hover .fyc-swatch-tooltip {
		opacity: 1;
		transform: translate(-50%, 0);
	}

	.fyc-swatch:is(:first-child, :last-child):hover .fyc-swatch-tooltip {
		transform: translate(0, 0);
	}

	.fyc-cta:hover {
		background: var(--btn-hover);
		border-color: var(--btn-hover);
		color: var(--paper);
		transform: translateY(-1px);
		box-shadow: inset 0 1px 0 color-mix(in srgb, var(--paper) 28%, transparent);
	}

	.fyc-cta--outline:hover {
		background: var(--sage);
		border-color: var(--forest);
		color: var(--forest);
		box-shadow: inset 0 1px 0 color-mix(in srgb, var(--forest) 14%, transparent);
	}

	.fyc-cta:hover svg {
		transform: translateX(3px);
	}

	.fyc-cta:hover .fyc-arrow-loop {
		stroke-dashoffset: 0;
		opacity: 1;
	}
}

@media (max-width: 1100px) {
	.fyc-heading {
		gap: 24px;
		margin-bottom: 32px;
	}

	.fyc-heading-copy {
		max-width: 220px;
		font-size: 12px;
	}

	.fyc-media {
		padding-right: 15px;
	}

	.fyc-yarn:nth-child(2) .fyc-media {
		padding-right: 0;
		padding-left: 15px;
	}

	.fyc-detail {
		right: 0;
		bottom: -27px;
	}

	.fyc-yarn:nth-child(2) .fyc-detail {
		right: auto;
		left: 0;
	}

	.fyc-composition {
		font-size: 13px;
	}

	.fyc-info h3 {
		font-size: 56px;
	}

	.fyc-cta {
		min-width: 245px;
	}
}

@media (max-width: 859px) {
	.fyc-heading {
		display: block;
		margin-bottom: 32px;
	}

	.fyc-heading h2 {
		max-width: 600px;
		font-size: clamp(32px, 5.7vw, 44px);
	}

	.fyc-heading-copy {
		max-width: none;
		margin-top: 17px;
		padding: 0;
		font-size: 13px;
	}

	.fyc-grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 48px;
	}

	.fyc-grid::before {
		display: none;
	}

	.fyc-yarn:nth-child(2) {
		margin-top: 0;
		padding-top: 32px;
		border-top: 1px solid var(--line);
	}

	.fyc-photo {
		aspect-ratio: 1.7;
	}

	.fyc-detail {
		right: 7px;
		width: clamp(133px, 23vw, 176px);
	}

	.fyc-yarn:nth-child(2) .fyc-detail {
		right: auto;
		left: 7px;
	}
}

@media (max-width: 480px) {
	.fyc.space {
		padding-block: 32px;
	}

	.fyc-eyebrow {
		gap: 11px;
		margin-bottom: 17px;
		font-size: 9px;
		letter-spacing: 0.14em;
	}

	.fyc-eyebrow::before {
		width: 25px;
	}

	.fyc-heading {
		margin-bottom: 28px;
	}

	.fyc-heading h2 {
		max-width: 300px;
		font-size: 34px;
		line-height: 1.12;
	}

	.fyc-heading-copy {
		max-width: 275px;
		margin-top: 17px;
		font-size: 12px;
		line-height: 1.8;
	}

	.fyc-media {
		padding-right: 13px;
		padding-bottom: 14px;
		margin-bottom: 26px;
	}

	.fyc-yarn:nth-child(2) .fyc-media {
		padding-right: 0;
		padding-left: 13px;
	}

	.fyc-media::before {
		inset: 15px 0 0 15px;
		border-top-right-radius: 65px;
	}

	.fyc-photo {
		aspect-ratio: 1.22;
		border-top-right-radius: 62px;
	}

	.fyc-yarn:nth-child(2) .fyc-photo {
		border-radius: 62px 2px 2px 2px;
	}

	.fyc-yarn:nth-child(2) .fyc-media::before {
		border-radius: 65px 2px 4px 4px;
	}

	.fyc-detail {
		right: 7px;
		bottom: -22px;
		width: 117px;
	}

	.fyc-yarn:nth-child(2) .fyc-detail {
		right: auto;
		left: 7px;
	}

	.fyc-detail-paper {
		padding: 6px 6px 0;
	}

	.fyc-detail-label {
		height: 25px;
		font-size: 8px;
	}

	.fyc-status {
		max-width: calc(100% - 115px);
		font-size: 9px;
		letter-spacing: 0.09em;
	}

	.fyc-info h3 {
		font-size: 52px;
	}

	.fyc-count {
		font-size: 10px;
	}

	.fyc-composition {
		max-width: 290px;
		min-height: 43px;
		margin-top: 11px;
		font-size: 13px;
	}

	.fyc-colors {
		margin-top: 18px;
		padding-top: 14px;
	}

	.fyc-palette {
		gap: 2px;
	}

	.fyc-swatch {
		width: 28px;
		height: 28px;
	}

	.fyc-swatch::before {
		width: 20px;
		height: 20px;
	}

	.fyc-cta {
		width: 100%;
		min-width: 0;
	}

	.fyc-grid {
		row-gap: 32px;
	}

	.fyc-yarn:nth-child(2) {
		padding-top: 28px;
	}
}

::view-transition-old(fy-family-variant),
::view-transition-old(fy-skein-0),
::view-transition-old(fy-skein-1),
::view-transition-new(fy-skein-0),
::view-transition-new(fy-skein-1),
::view-transition-new(fy-family-variant) {
	animation-duration: 280ms;
	animation-timing-function: var(--fy-ease, ease);
}

.family-colors-section {
	background: var(--cream);
	padding-block: 70px;
}

.family-color-tabs {
	display: flex;
	gap: 26px;
	margin-bottom: 28px;
	border-bottom: 1px solid #d4d3c9;
}

.family-color-tabs button {
	padding: 0 0 14px;
	border: 0;
	background: none;
	color: var(--olive);
	font-size: 13px;
}

.family-color-tabs button[aria-pressed="true"] {
	color: var(--forest);
	box-shadow: inset 0 -2px var(--forest);
}

.g-color-discovery {
	display: grid;
	grid-template-columns: 0.8fr 1.5fr;
	gap: 65px;
	align-items: start;
}

.g-color-intro {
	padding-top: 6px;
}

.g-color-intro h2 {
	font-size: clamp(32px, 2.85vw, 41px);
}

.g-color-intro > p {
	max-width: 330px;
	min-height: 73px;
	margin: 23px 0 24px;
	font-size: 13px;
	line-height: 1.85;
	color: var(--muted);
}

.g-palette-options {
	display: flex;
	flex-direction: column;
	max-width: 325px;
	margin-bottom: 21px;
}

.g-palette-options button,
.g-palette-options .palette-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 13px;
	width: 100%;
	min-height: 58px;
	padding: 15px 0;
	border: 0;
	border-bottom: 1px solid #d4d3c9;
	background: none;
	color: var(--olive);
	text-align: left;
	font-size: 12px;
}

.g-palette-options button[aria-pressed="true"],
.g-palette-options .palette-option[aria-pressed="true"] {
	color: var(--forest);
	border-color: var(--forest);
	box-shadow: 0 1px var(--forest);
}

.g-palette-options button:hover,
.g-palette-options .palette-option:hover {
	color: var(--forest);
}

.g-palette-options button > span:nth-child(2),
.g-palette-options .palette-option > span:nth-child(2) {
	flex: 1;
}

.g-palette-options button > svg,
.g-palette-options .palette-option > svg {
	width: 18px;
	height: 18px;
	opacity: 0.4;
}

.g-palette-options button[aria-pressed="true"] > svg,
.g-palette-options .palette-option[aria-pressed="true"] > svg {
	opacity: 1;
}

.g-palette-dots {
	display: flex;
	flex-shrink: 0;
	width: auto;
	max-width: 132px;
}

.g-palette-dots i {
	position: relative;
	display: block;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin-inline-start: -8px;
	border: 1px solid var(--cream);
	border-radius: 50%;
}

.g-palette-dots i:first-child {
	margin-inline-start: 0;
}

.g-palette-dots:has(> :nth-child(n + 5)) i {
	width: 18px;
	height: 18px;
	margin-inline-start: -7px;
}

.g-palette-dots:has(> :nth-child(n + 5)) i:first-child {
	margin-inline-start: 0;
}

.g-color-intro .text-link {
	gap: 10px;
	font-size: 12px;
}

.g-color-products {
	container: palette-cards / inline-size;
	min-inline-size: 0;
}

.g-color-products > [data-palette-panel] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.g-color-products > [data-palette-panel][hidden] {
	display: none;
}

.g-color-compare {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	margin-top: 30px;
	padding-top: 24px;
	border-top: 1px solid #d4d3c9;
}

.g-color-compare p {
	max-width: 410px;
	margin: 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.7;
}

.g-color-compare .btn {
	flex-shrink: 0;
}

.g-color-products > [data-palette-panel][data-count="3"] {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.g-color-products > [data-palette-panel][data-count="4"] {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.g-color-products > [data-palette-panel][data-count="5"],
.g-color-products > [data-palette-panel][data-count="6"] {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.g-color-products > [data-palette-panel][data-count="7"],
.g-color-products > [data-palette-panel][data-count="8"] {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.g-color-products > [data-palette-panel][data-count="3"] .g-color-card h3,
.g-color-products > [data-palette-panel][data-count="4"] .g-color-card h3,
.g-color-products > [data-palette-panel][data-count="5"] .g-color-card h3,
.g-color-products > [data-palette-panel][data-count="6"] .g-color-card h3,
.g-color-products > [data-palette-panel][data-count="7"] .g-color-card h3,
.g-color-products > [data-palette-panel][data-count="8"] .g-color-card h3 {
	font-size: clamp(16px, 3.4cqi, 24px);
	text-wrap: balance;
}

.g-color-products > [data-palette-panel][data-count="3"] .g-color-card .card-top,
.g-color-products > [data-palette-panel][data-count="4"] .g-color-card .card-top {
	margin-top: 14px;
}

.g-color-products > [data-palette-panel][data-count="3"] .g-color-image > span,
.g-color-products > [data-palette-panel][data-count="4"] .g-color-image > span {
	right: 10px;
	bottom: 10px;
	width: 28px;
	height: 28px;
}

.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="3"]) {
	grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.8fr);
	gap: 40px;
}

.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="5"]),
.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="6"]),
.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="7"]),
.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="8"]) {
	grid-template-columns: minmax(0, 1fr);
	gap: 36px;
}

.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="5"]) .g-color-intro > p,
.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="6"]) .g-color-intro > p,
.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="7"]) .g-color-intro > p,
.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="8"]) .g-color-intro > p {
	max-width: 52ch;
}

.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="5"]) .g-palette-options,
.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="6"]) .g-palette-options,
.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="7"]) .g-palette-options,
.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="8"]) .g-palette-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 48px;
	max-width: 680px;
}

@container palette-cards (inline-size <= 640px) {
	.g-color-products > [data-palette-panel][data-count="5"],
	.g-color-products > [data-palette-panel][data-count="6"],
	.g-color-products > [data-palette-panel][data-count="7"],
	.g-color-products > [data-palette-panel][data-count="8"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.g-color-card {
	min-width: 0;
}

.g-color-image {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	padding: 0;
	border: 0;
	background: #f1f2ed;
}

.g-color-image > img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 10 / 11;
	object-fit: cover;
	transition: transform var(--fy-motion) var(--fy-ease);
}

.g-color-image:hover > img {
	transform: scale(1.04);
}

.g-color-image > span {
	position: absolute;
	right: 15px;
	bottom: 15px;
	display: grid;
	place-items: center;
	width: 31px;
	height: 31px;
	background: var(--paper);
	border-radius: 50%;
	transition: transform var(--fy-motion-fast) var(--fy-ease);
}

.g-color-image:hover > span {
	transform: translateY(-3px);
}

.g-color-image svg {
	width: 17px;
	height: 17px;
}

.g-color-card .card-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-top: 18px;
}

.g-color-card h3 {
	font-size: 28px;
}

.g-color-card .price {
	font-size: 12px;
	color: var(--forest);
}

.g-color-card p {
	margin: 7px 0 11px;
	font-size: 12px;
	color: var(--muted);
}

.g-color-card .text-link {
	min-height: 38px;
	font-size: 12px;
}

.feature-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: calc(100% - 2 * var(--gutter));
	max-width: calc(var(--wide) - 2 * var(--gutter));
	margin: 80px auto 0;
	background: var(--sage);
}

.feature-split .photo {
	min-height: 425px;
	overflow: hidden;
}

.feature-copy {
	align-self: center;
	padding: 55px clamp(30px, 5vw, 72px);
}

.feature-copy .body-copy {
	margin: 22px 0 26px;
}

.story-small {
	display: grid;
	grid-template-columns: 1.12fr 0.88fr;
	gap: 95px;
	align-items: center;
}

.story-small .photo {
	height: 470px;
}

.journal-grid {
	display: grid;
	grid-template-columns: 1.25fr 0.75fr 0.75fr;
	gap: 27px;
}

.journal-card .photo {
	aspect-ratio: 1.25;
}

.journal-card:first-child .photo {
	aspect-ratio: 1.59;
}

.journal-card h3 {
	margin-top: 18px;
	font-size: 24px;
}

.journal-card .eyebrow {
	margin: 18px 0 9px;
	font-size: 12px;
}

.journal-card p {
	margin: 12px 0;
	font-size: 14px;
	color: var(--muted);
}

.journal-card .photo img {
	transition: transform var(--fy-motion) var(--fy-ease);
}

.journal-card:hover .photo img {
	transform: scale(1.035);
}

.journal-card:hover h3 {
	text-decoration: underline;
	text-underline-offset: 6px;
}

.newsletter {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	width: calc(100% - 2 * var(--gutter));
	max-width: calc(var(--wide) - 2 * var(--gutter));
	margin: 0 auto 45px;
	background: var(--sage);
}

.newsletter .photo {
	min-height: 420px;
}

.newsletter-copy {
	align-self: center;
	padding: 40px clamp(28px, 3.8vw, 54px);
}

.newsletter h2 {
	max-width: 480px;
	font-size: clamp(30px, 2.6vw, 38px);
}

.newsletter-copy > p {
	max-width: 480px;
	margin: 18px 0 22px;
	font-size: 13px;
	line-height: 1.85;
	color: var(--muted);
}

/* MailerLite form — match Forest Yarn shell */
.newsletter .mailerlite-form {
	max-width: 480px;
	accent-color: var(--forest);
}

.newsletter .mailerlite-form form {
	margin: 0;
}

/* Theme already provides eyebrow / title / intro copy. */
.newsletter .mailerlite-form-title,
.newsletter .mailerlite-form-description {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.newsletter .mailerlite-form-inputs {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
}

.newsletter .mailerlite-form-field {
	flex: 1 1 auto;
	margin: 0;
	min-width: min(100%, 12rem);
}

.newsletter .mailerlite-form-field label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.newsletter .mailerlite-form-field input[type="email"],
.newsletter .mailerlite-form-field input[type="text"] {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid var(--olive);
	border-radius: 0;
	background: color-mix(in srgb, var(--paper) 72%, transparent);
	color: var(--ink);
	font: 400 1rem / 1.5 var(--sans);
	appearance: none;
	transition:
		border-color var(--fy-motion-fast) var(--fy-ease),
		background var(--fy-motion-fast) var(--fy-ease);
}

.newsletter .mailerlite-form-field input::placeholder {
	color: var(--muted);
	opacity: 1;
}

.newsletter .mailerlite-form-field input:hover {
	border-color: var(--forest);
}

.newsletter .mailerlite-form-field input:focus-visible {
	outline: 2px solid var(--forest);
	outline-offset: 3px;
	border-color: var(--forest);
	background: var(--paper);
}

.newsletter .mailerlite-form-field input:user-invalid {
	border-color: #8a4a3a;
}

.newsletter .mailerlite-form-field input.error {
	border-color: #8a4a3a;
	color: var(--ink);
}

.newsletter .mailerlite-form label.error {
	position: static;
	display: block;
	width: auto;
	height: auto;
	margin: 8px 0 0;
	padding: 0;
	overflow: visible;
	clip-path: none;
	white-space: normal;
	font: 400 12px / 1.5 var(--sans);
	color: #8a4a3a;
}

.newsletter .mailerlite-subscribe-button-container {
	flex: 0 0 auto;
	text-align: start;
}

.newsletter .mailerlite-subscribe-submit {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 12px 25px;
	border: 1px solid var(--forest);
	border-radius: 0;
	background: var(--forest);
	color: var(--paper);
	font: 400 14px / 1.5 var(--sans);
	max-width: none;
	transition:
		background var(--fy-motion-fast) var(--fy-ease),
		border-color var(--fy-motion-fast) var(--fy-ease),
		color var(--fy-motion-fast) var(--fy-ease),
		transform var(--fy-motion-fast) var(--fy-ease),
		box-shadow var(--fy-motion-fast) var(--fy-ease);
}

@media (hover: hover) and (pointer: fine) {
	.newsletter .mailerlite-subscribe-submit:hover:not(:disabled) {
		background: var(--btn-hover);
		border-color: var(--btn-hover);
		transform: translateY(-1px);
		box-shadow: inset 0 1px 0 color-mix(in srgb, var(--paper) 28%, transparent);
	}
}

.newsletter .mailerlite-subscribe-submit:active:not(:disabled) {
	transform: translateY(0);
	box-shadow: none;
}

.newsletter .mailerlite-subscribe-submit:disabled {
	opacity: 0.55;
}

.newsletter .mailerlite-form-loader {
	flex: 1 0 100%;
	margin: 0;
	font: 400 13px / 1.5 var(--sans);
	color: var(--muted);
	text-align: start;
	font-weight: 400;
}

.newsletter .mailerlite-form-response {
	margin-top: 18px;
	text-align: start;
	color: var(--forest);
}

.newsletter .mailerlite-form-response h4,
.newsletter .mailerlite-form-response p {
	font: 300 18px / 1.45 var(--serif);
	color: var(--forest);
	letter-spacing: -0.2px;
}

.newsletter .mailerlite-form-response p {
	font: 400 14px / 1.7 var(--sans);
	color: var(--muted);
}

.newsletter .mailerlite-form-error {
	margin-top: 10px;
	font: 400 13px / 1.5 var(--sans);
	color: #8a4a3a;
}

.home-instagram {
	padding-block: 64px 8px;
	text-align: center;
}

.home-instagram__head {
	margin-bottom: 28px;
}

.home-instagram__head h2 {
	font-size: clamp(28px, 2.6vw, 38px);
	letter-spacing: -0.6px;
}

.home-instagram__feed {
	margin-inline: auto;
}

.home-instagram__cta {
	margin-top: 28px;
}

.home-instagram:has(.sbi_follow_btn a[href]) .home-instagram__cta {
	display: none;
}

.home-instagram #sb_instagram,
.home-instagram #sb_instagram .sb_instagram_header,
.home-instagram #sbi_mod_error {
	background: var(--paper);
	font-family: var(--sans);
	color: var(--ink);
}

.home-instagram #sb_instagram .sbi_header_link,
.home-instagram #sb_instagram .sbi_follow_btn a {
	color: var(--forest);
}

.home-instagram #sb_instagram .sbi_feedtheme_header_text h3 {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.4;
	color: var(--forest);
}

.home-instagram #sb_instagram .sbi_photo:not([style*="height"]) {
	aspect-ratio: 3 / 4;
}

.home-instagram #sb_instagram .sbi_photo img {
	object-fit: cover;
	transition: transform var(--fy-motion) var(--fy-ease);
}

.home-instagram #sb_instagram .sbi_item:hover .sbi_photo img {
	transform: scale(1.04);
}

.home-instagram #sb_instagram .sbi_follow_btn a {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 25px;
	margin-top: 22px;
	border: 1px solid var(--forest);
	border-radius: 0 !important;
	background: var(--forest) !important;
	color: var(--paper) !important;
	font-family: var(--sans);
	font-size: 14px;
	line-height: 1.5;
	box-shadow: none;
	transition: background var(--fy-motion-fast) var(--fy-ease), transform var(--fy-motion-fast) var(--fy-ease), box-shadow var(--fy-motion-fast) var(--fy-ease) !important;
}

@media (hover: hover) and (pointer: fine) {
	.home-instagram #sb_instagram .sbi_follow_btn a:hover {
		background: var(--btn-hover) !important;
		transform: translateY(-1px);
		box-shadow: inset 0 1px 0 color-mix(in srgb, var(--paper) 28%, transparent);
	}
}

.home-instagram #sbi_mod_error,
.home-instagram #sb_instagram .sb_instagram_error {
	margin-top: 8px;
	border-color: var(--line);
	background: var(--cream);
	color: var(--muted);
	font-size: 13px;
	border-radius: 0;
}

@media (max-width: 1100px) {
	.hero-a {
		gap: 34px;
		margin-top: 28px;
		padding-bottom: 30px;
	}

	.hero-a h1 {
		font-size: 45px;
		letter-spacing: -1px;
	}

	.hero-a-photo {
		min-height: 420px;
	}

	.hero-a .actions {
		gap: 15px;
	}

	.story-small {
		gap: 50px;
	}

	.category .arrow {
		display: none;
	}

	.family-colors-section {
		padding-block: 54px;
	}

	.g-color-discovery {
		grid-template-columns: 0.85fr 1.5fr;
		gap: 38px;
	}

	.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="3"]) {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.g-color-products > [data-palette-panel] {
		gap: 23px;
	}

	.g-color-card h3 {
		font-size: 26px;
	}
}

@media (max-width: 800px) {
	.space {
		padding-block: 58px;
	}

	.section-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.section-head p {
		max-width: none;
	}

	.hero-a {
		grid-template-columns: 1fr;
		gap: 28px;
		margin-top: 8px;
		padding-top: 20px;
		padding-bottom: 28px;
	}

	.hero-a h1 {
		font-size: clamp(36px, 6.5vw, 44px);
		letter-spacing: -1.1px;
	}

	.hero-a-copy {
		padding: 0;
	}

	.hero-a .body-copy {
		max-width: 420px;
		margin-block: 21px;
		font-size: 13px;
	}

	.hero-a .eyebrow {
		max-width: none;
		margin-bottom: 18px;
		font-size: 12px;
		line-height: 1.7;
	}

	.hero-a-photo {
		height: auto;
		min-height: 0;
		aspect-ratio: 1.26;
	}

	.hero-a .photo-label {
		right: 14px;
		bottom: 14px;
		left: 14px;
		max-width: calc(100% - 28px);
		font-size: 12px;
	}

	.story-small {
		grid-template-columns: 1fr;
	}

	.g-color-discovery,
	.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="3"]),
	.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="4"]),
	.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="5"]),
	.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="6"]),
	.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="7"]),
	.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="8"]) {
		grid-template-columns: 1fr;
		gap: 31px;
	}

	.family-colors-section {
		padding-block: 42px;
	}

	.g-color-intro h2 {
		max-width: 430px;
	}

	.g-color-intro h2 br {
		display: none;
	}

	.g-color-intro > p {
		max-width: 500px;
		min-height: 0;
		margin-block: 19px;
	}

	.g-color-compare {
		align-items: flex-start;
	}

	.g-palette-options,
	.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="5"]) .g-palette-options,
	.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="6"]) .g-palette-options,
	.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="7"]) .g-palette-options,
	.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="8"]) .g-palette-options {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 18px;
		max-width: none;
	}

	.g-palette-options button > svg,
	.g-palette-options .palette-option > svg {
		display: none;
	}

	.g-palette-dots {
		width: auto;
	}

	.g-palette-dots i {
		width: 21px;
		height: 21px;
	}

	.feature-split {
		margin-top: 60px;
	}

	.feature-split .photo {
		min-height: 420px;
	}

	.newsletter {
		grid-template-columns: 1fr;
	}

	.newsletter .photo {
		height: auto;
		min-height: 0;
		aspect-ratio: 1.35;
	}

	.newsletter-copy {
		padding: 33px 26px;
	}

	.home-instagram {
		padding-block: 48px 4px;
	}

	.home-instagram__head {
		margin-bottom: 22px;
	}

	.category-rail,
	.journal-grid {
		grid-template-columns: 1fr 1fr;
	}

	.family-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.family-grid .family-card {
		display: grid;
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		align-items: center;
		gap: 18px;
		min-height: 0;
		background: var(--cream);
		padding: 16px;
	}

	.family-media {
		align-self: center;
		min-height: 0;
		max-width: none;
		padding: 2% 3% 11% 1%;
	}

	.family-media__climate {
		width: 90%;
		border-radius: 24px 30px 64px 24px;
	}

	.family-media__climate img {
		aspect-ratio: 4 / 5;
		object-position: 50% 18%;
	}

	.family-media__variant {
		width: min(48%, 190px);
		padding: 8px;
	}

	.family-info {
		justify-content: center;
		gap: 7px;
		padding: 12px 16px 12px 0;
	}

	.family-info > p {
		min-height: 0;
		margin: 0;
		font-size: 13px;
	}

	.family-preview-swatches {
		margin: 0;
	}

	.family-note {
		margin-top: auto;
	}

	/* Bridge single-card: drop fixed 380px, keep two columns where possible. */
	.family-grid[data-count="1"] .family-card {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: stretch;
		gap: 0 28px;
		height: auto;
		min-height: 0;
		background: var(--cream);
		padding: 0 20px 0 0;
	}

	.family-grid[data-count="1"] .family-media {
		align-self: stretch;
		height: 280px;
		padding: 0;
		max-width: none;
	}

	.family-grid[data-count="1"] .family-media__climate {
		width: 100%;
		height: 100%;
		border-radius: 0;
		transform: none;
		box-shadow: none;
	}

	.family-grid[data-count="1"] .family-media__climate img {
		aspect-ratio: auto;
		height: 100%;
		object-position: 50% 55%;
	}

	.family-grid[data-count="1"] .family-media__variant {
		width: 140px;
		right: 12px;
		bottom: 20px;
		padding: 7px;
		border-radius: 0;
		transform: none;
		box-shadow: 0 8px 25px rgb(0 0 0 / 0.06);
	}

	.family-grid[data-count="1"] .family-info {
		align-self: center;
		justify-content: center;
		gap: 7px;
		padding: 20px 0 20px 12px;
	}

	.family-grid[data-count="1"] .family-title-row h3 {
		font-size: 37px;
	}

	.family-grid[data-count="1"] .family-info > p {
		min-height: 0;
		margin: 0;
		font-size: 13px;
	}

	.family-grid[data-count="1"] .family-note {
		margin-top: 8px;
	}

	.story-small .photo {
		height: auto;
		min-height: 280px;
		aspect-ratio: 1.2;
	}

	.journal-card:first-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.hero-a {
		grid-template-columns: 1fr;
		gap: 28px;
		margin-top: 0;
		padding-top: 34px;
		padding-bottom: 26px;
	}

	.hero-a-copy {
		padding: 0;
	}

	.hero-a h1 {
		max-width: 460px;
		font-size: clamp(37px, 9.8vw, 52px);
		letter-spacing: -1.15px;
	}

	.hero-a .eyebrow {
		max-width: none;
		margin-bottom: 17px;
		font-size: 12px;
	}

	.hero-a .body-copy {
		max-width: 360px;
		margin: 20px 0 23px;
		font-size: 13px;
	}

	.hero-a .actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.hero-a .fy-btn {
		font-size: 14px;
	}

	.hero-a .text-link {
		font-size: 12px;
	}

	.hero-a-photo {
		height: auto;
		min-height: 0;
		aspect-ratio: 1.21;
	}

	.hero-a .photo-label {
		padding: 7px 10px;
		font-size: 12px;
	}

	.feature-split {
		grid-template-columns: 1fr;
		margin-top: 48px;
	}

	.feature-split .photo {
		height: auto;
		min-height: 0;
		aspect-ratio: 1.13;
	}

	.newsletter {
		grid-template-columns: 1fr;
		margin-bottom: 28px;
	}

	.newsletter .photo {
		height: auto;
		min-height: 0;
		aspect-ratio: 1.3;
	}

	.newsletter-copy {
		padding: 30px 23px;
	}

	.newsletter h2 {
		font-size: 30px;
	}

	.newsletter-copy > p {
		font-size: 12px;
	}

	.newsletter .mailerlite-form-inputs {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.newsletter .mailerlite-form-field {
		flex: 0 0 auto;
		width: 100%;
		min-width: 0;
	}

	.newsletter .mailerlite-subscribe-button-container,
	.newsletter .mailerlite-subscribe-submit {
		width: 100%;
	}

	.newsletter .mailerlite-form-field input[type="email"],
	.newsletter .mailerlite-form-field input[type="text"],
	.newsletter .mailerlite-subscribe-submit {
		min-height: 44px;
	}

	.home-instagram {
		padding-block: 40px 0;
	}

	.home-instagram__head h2 {
		font-size: 30px;
	}

	.home-instagram #sb_instagram .sbi_follow_btn a,
	.home-instagram__cta .btn {
		min-height: 44px;
		padding-inline: 18px;
		font-size: 12px;
	}
}

@media (max-width: 540px) {
	.g-color-compare {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		margin-top: 22px;
		padding-top: 18px;
	}

	.g-color-compare .btn {
		width: 100%;
	}

	/* Keep 2-up category + journal secondary cards — 1-col was sparse / endless. */
	.category-rail {
		grid-template-columns: 1fr 1fr;
		gap: 18px 12px;
		padding-block: 22px;
	}

	.category {
		gap: 12px;
		align-items: flex-start;
	}

	.category img {
		width: 48px;
		height: 52px;
		flex: 0 0 auto;
	}

	.category strong {
		font-size: 18px;
	}

	.category small {
		font-size: 11px;
		line-height: 1.45;
	}

	.journal-grid {
		grid-template-columns: 1fr 1fr;
		gap: 22px 14px;
	}

	.journal-card:first-child {
		grid-column: 1 / -1;
	}

	.journal-card:not(:first-child) h3 {
		font-size: 18px;
	}

	.journal-card:not(:first-child) p {
		font-size: 13px;
	}

	/* Even 5×2 colour grid — flex wrap left a lonely 10th swatch. */
	.family-preview-swatches {
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		justify-items: center;
		gap: 12px 6px;
		width: 100%;
		min-height: 0;
	}

	.family-preview-swatches button {
		width: clamp(30px, 10vw, 40px);
		height: clamp(30px, 10vw, 40px);
	}

	/* Compact 2-up product tiles — full-bleed stacked cards ate the screen. */
	.g-color-products > [data-palette-panel],
	.g-color-products > [data-palette-panel][data-count="3"],
	.g-color-products > [data-palette-panel][data-count="4"],
	.g-color-products > [data-palette-panel][data-count="5"],
	.g-color-products > [data-palette-panel][data-count="6"],
	.g-color-products > [data-palette-panel][data-count="7"],
	.g-color-products > [data-palette-panel][data-count="8"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 12px;
	}

	.g-color-image > img {
		aspect-ratio: 1 / 1;
	}

	.g-color-image > span {
		right: 8px;
		bottom: 8px;
		width: 26px;
		height: 26px;
	}

	.g-color-image svg {
		width: 14px;
		height: 14px;
	}

	.g-color-card .card-top {
		flex-direction: row;
		align-items: baseline;
		gap: 8px;
		margin-top: 10px;
	}

	.g-color-card h3 {
		font-size: 18px;
	}

	.g-color-card .price {
		font-size: 11px;
	}

	.g-color-card p {
		margin: 4px 0 8px;
		font-size: 11px;
	}

	.g-color-card .text-link {
		min-height: 0;
		font-size: 11px;
	}

	.g-palette-options,
	.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="5"]) .g-palette-options,
	.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="6"]) .g-palette-options,
	.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="7"]) .g-palette-options,
	.g-color-discovery:has([data-palette-panel]:not([hidden])[data-count="8"]) .g-palette-options {
		gap: 8px;
	}

	.g-palette-options button,
	.g-palette-options .palette-option {
		flex-direction: column;
		align-items: flex-start;
		min-height: 79px;
		font-size: 12px;
	}

	.family-grid .family-card {
		display: flex;
		flex-direction: column;
		gap: 0;
		min-height: 0;
		padding: 0;
		background: transparent;
	}

	.family-media {
		min-height: 0;
		padding: 2% 2% 12% 0;
	}

	.family-media__climate {
		width: 93%;
		border-radius: 20px 26px 52px 20px;
		transform: rotate(-1.2deg);
	}

	.family-media__climate img {
		aspect-ratio: 4 / 5;
		object-position: 50% 20%;
	}

	.family-media__variant {
		width: min(50%, 156px);
		margin: 0;
		padding: 7px;
		transform: rotate(2.4deg);
	}

	.family-media__caption {
		bottom: -1.5em;
		font-size: 10px;
	}

	.family-info {
		padding: 22px 0 0;
	}

	.family-color-name {
		font-size: 16px;
	}

	.family-title-row h3 {
		font-size: 36px;
	}

	.family-info > p {
		max-width: 290px;
		margin-block: 14px 12px;
	}

	/* Bridge single-card: stack — climate strip + info below. */
	.family-grid[data-count="1"] .family-card {
		display: flex;
		flex-direction: column;
		gap: 0;
		height: auto;
		padding: 0;
		background: var(--cream);
	}

	.family-grid[data-count="1"] .family-media {
		width: 100%;
		height: 210px;
		padding: 0 0 28px;
	}

	.family-grid[data-count="1"] .family-media__climate {
		width: 100%;
		height: 210px;
		border-radius: 0;
		transform: none;
		box-shadow: none;
	}

	.family-grid[data-count="1"] .family-media__climate img {
		aspect-ratio: auto;
		height: 100%;
		object-position: 50% 55%;
	}

	.family-grid[data-count="1"] .family-media__variant {
		width: 120px;
		right: 14px;
		bottom: 36px;
		padding: 6px;
		border-radius: 0;
		transform: none;
		box-shadow: 0 8px 25px rgb(0 0 0 / 0.06);
	}

	.family-grid[data-count="1"] .family-media__variant .family-media__link {
		aspect-ratio: 10 / 11;
	}

	.family-grid[data-count="1"] .family-info {
		align-self: stretch;
		width: 100%;
		padding: 8px 18px 22px;
	}

	.family-grid[data-count="1"] .family-title-row h3 {
		font-size: 34px;
	}

	.family-grid[data-count="1"] .family-info > p {
		max-width: none;
		margin: 0;
	}

	.newsletter h2 {
		font-size: 30px;
	}
}

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.story-small .photo img,
		.feature-split .photo img,
		.newsletter .photo img,
		.family-media__climate img {
			animation: fy-parallax linear both;
			animation-timeline: view();
			animation-range: entry 0% cover 100%;
		}
	}
}

@keyframes fy-parallax {
	from {
		transform: translate3d(0, -5%, 0) scale(1.06);
	}

	to {
		transform: translate3d(0, 5%, 0) scale(1.06);
	}
}

@media (prefers-reduced-motion: reduce) {
	.g-color-image > img,
	.family-media img,
	.family-media__variant,
	.fyc-photo img,
	.fyc-detail,
	.fyc-swatch::before,
	.fyc-cta,
	.fyc-cta svg,
	.fyc-cta .fyc-arrow-loop,
	.journal-card .photo img,
	.category img,
	.home-instagram #sb_instagram .sbi_photo img,
	.home-instagram #sb_instagram .sbi_follow_btn a {
		transition: none;
	}

	.family-media__climate,
	.family-media__variant,
	.fyc-media:hover .fyc-photo img,
	.fyc-media:hover .fyc-detail,
	.fyc-swatch:hover::before {
		transform: none;
	}

	.family-media::before {
		display: none;
	}

	::view-transition-old(fy-family-variant),
	::view-transition-new(fy-family-variant),
	::view-transition-old(fy-skein-0),
	::view-transition-new(fy-skein-0),
	::view-transition-old(fy-skein-1),
	::view-transition-new(fy-skein-1) {
		animation: none;
	}

	.g-color-image:hover > img,
	.family-card:hover .family-media__climate,
	.family-card:hover .family-media__variant,
	.journal-card:hover .photo img,
	.category:hover,
	.category:hover img,
	.category:hover .arrow svg,
	.category:focus-visible .arrow svg,
	.home-instagram #sb_instagram .sbi_item:hover .sbi_photo img,
	.home-instagram #sb_instagram .sbi_follow_btn a:hover {
		transform: none;
	}

	.ornament {
		animation: none;
	}
}
