/* ========== Welcome Page (Section 1) ========== */
.hero {
	position: relative;
	padding: clamp(48px, 6vw, 88px) 20px;
	background: radial-gradient(1200px 600px at 10% -10%, #fff, transparent 55%),
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
	border-bottom: 1px solid var(--line);
}
.hero-wrap {
	max-width: var(--maxw);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(16px, 3vw, 36px);
	align-items: center;
}

/* Copy */
.overline {
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 0.82rem;
	color: var(--muted);
	margin: 0 0 8px;
}
.hero-title {
	font-family: 'Playfair Display', serif;
	font-weight: 600;
	font-size: clamp(28px, 4vw, 56px);
	line-height: 1.1;
	margin: 0 0 14px;
}
.hero-spark {
	position: relative;
	white-space: nowrap;
	background: linear-gradient(
		90deg,
		var(--brand) 0%,
		#e9c9a0 60%,
		var(--brand) 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero-lead {
	font-size: clamp(16px, 1.6vw, 18px);
	color: var(--muted);
	margin: 0 0 18px;
	max-width: 60ch;
}
.hero-cta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}
.hero-points {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	padding: 0;
	margin: 0;
	list-style: none;
	color: var(--muted);
}
.hero-points li {
	padding: 6px 10px;
	border: 1px dashed var(--line);
	border-radius: 999px;
}

/* Media cluster */
.hero-media {
	position: relative;
	min-height: 520px;
}
.tile {
	position: absolute;
	width: min(90vw, 320px);
	max-width: 350px;
	background: #fff;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tile:hover {
	transform: translateY(-4px) rotate(-0.3deg);
	box-shadow: 0 18px 38px rgba(27, 33, 36, 0.15);
}
.tile img {
	width: 100%;
	height: auto;
}

/* Positions (staggered arc) */
.t1 {
	top: 0;
	left: 8%;
	rotate: -3deg;
}
.t2 {
	top: 12%;
	right: -2%;
	rotate: 2deg;
}
.t3 {
	top: 40%;
	left: -4%;
	rotate: -1deg;
}
.t4 {
	top: 52%;
	right: 6%;
	rotate: 3deg;
}
.t5 {
	top: 70%;
	left: 16%;
	rotate: -2deg;
}
.t6 {
	top: 8%;
	left: 48%;
	rotate: 1deg;
}

/* Sparkles */
.spark-field {
	pointer-events: none;
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.spark {
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: radial-gradient(#fff, rgba(255, 255, 255, 0)) padding-box,
		radial-gradient(#ffdcae, rgba(255, 220, 174, 0)) border-box;
	border: 1px solid rgba(231, 186, 130, 0.6);
	animation: floatSpark 9s linear infinite;
	opacity: 0.6;
}
.spark:nth-child(1) {
	left: 8%;
	top: 16%;
	animation-delay: 0s;
}
.spark:nth-child(2) {
	left: 24%;
	top: 6%;
	animation-delay: 1.4s;
}
.spark:nth-child(3) {
	left: 62%;
	top: 10%;
	animation-delay: 2.6s;
}
.spark:nth-child(4) {
	left: 78%;
	top: 22%;
	animation-delay: 3.7s;
}
.spark:nth-child(5) {
	left: 12%;
	top: 74%;
	animation-delay: 4.9s;
}
.spark:nth-child(6) {
	left: 68%;
	top: 66%;
	animation-delay: 6.1s;
}

@keyframes floatSpark {
	0% {
		transform: translateY(0) scale(0.8);
		opacity: 0;
	}
	10% {
		opacity: 0.7;
	}
	50% {
		transform: translateY(-22px) scale(1);
	}
	100% {
		transform: translateY(-44px) scale(0.8);
		opacity: 0;
	}
}

/* Parallax tilt (subtle) */
.parallax-tilt {
	transform-style: preserve-3d;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1200px) {
	.t6 {
		display: none;
	}
}
@media (max-width: 992px) {
	.hero-wrap {
		grid-template-columns: 1fr;
	}
	.hero-media {
		min-height: 540px;
	}
	.t1 {
		left: 2%;
	}
	.t2 {
		right: 4%;
	}
	.t3 {
		left: -2%;
	}
	.t4 {
		right: 8%;
	}
	.t5 {
		left: 12%;
	}
}
@media (max-width: 768px) {
	.hero-media {
		min-height: 640px;
	}
	.tile {
		width: min(90vw, 300px);
	}
	.t2,
	.t6 {
		display: none;
	}
}
@media (max-width: 576px) {
	.hero-media {
		min-height: 560px;
	}
	.tile {
		width: min(92vw, 280px);
	}
	.t1 {
		top: 2%;
		left: 4%;
	}
	.t3 {
		top: 44%;
		left: 2%;
	}
	.t4 {
		top: 54%;
		right: 4%;
	}
	.t5 {
		top: 72%;
		left: 8%;
	}
}
@media (max-width: 360px) {
	.tile {
		width: min(94vw, 250px);
	}
}
/* ===== Section base helpers ===== */
.section-head {
	max-width: var(--maxw);
	margin: 56px auto 18px;
	padding: 0 20px;
}
.section-head h2 {
	font-family: 'Playfair Display', serif;
	font-weight: 600;
	font-size: clamp(24px, 3.2vw, 40px);
	margin: 0 0 10px;
}
.section-head .lead {
	color: var(--muted);
	max-width: 68ch;
	margin: 0;
}

/* ===== SECTION 2: Metals ===== */
.metals {
	padding: 20px 0 8px;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}
.metals-rail {
	max-width: var(--maxw);
	margin: 18px auto;
	padding: 0 20px 8px;
	display: grid;
	grid-template-columns: repeat(5, minmax(220px, 1fr));
	gap: 16px;
}
.metal-card {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.metal-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(27, 33, 36, 0.12);
}
.metal-card img {
	width: 100%;
	height: auto;
	max-width: 350px;
	margin: 0 auto;
	display: block;
}
.metal-card figcaption {
	padding: 12px 14px;
}
.metal-card figcaption strong {
	display: block;
	font-weight: 700;
}
.metal-card figcaption span {
	color: var(--muted);
	font-size: 0.95rem;
}

.metal-notes {
	max-width: var(--maxw);
	margin: 6px auto 18px;
	padding: 0 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
}
.metal-notes li {
	padding: 8px 12px;
	border: 1px dashed var(--line);
	border-radius: 999px;
	color: var(--muted);
}

/* ===== SECTION 3: Stones ===== */
.stones {
	background: var(--bg-soft);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.stones-wrap {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 40px 20px;
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: clamp(16px, 3vw, 36px);
	align-items: start;
}
.stones-sticky {
	position: sticky;
	top: 86px;
	height: fit-content;
}
.stones-frame {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	background: #fff;
}
.stones-frame img {
	display: block;
	max-width: 350px;
	width: 100%;
	height: auto;
}

.stones-body .lead {
	color: var(--muted);
	max-width: 68ch;
}
.stone-note {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px dashed var(--line);
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 14px;
	align-items: start;
}
.stone-pic img {
	width: 100%;
	height: auto;
	max-width: 350px;
}
.stone-copy h3 {
	margin: 0 0 6px;
	font-size: clamp(18px, 2vw, 22px);
}
.stone-copy p {
	margin: 0;
	color: var(--muted);
}

/* ===== SECTION 4: Layering Guide ===== */
.layering {
	background: #fff;
	border-bottom: 1px solid var(--line);
	padding-bottom: 18px;
}
.steps {
	counter-reset: step;
	max-width: var(--maxw);
	margin: 10px auto 28px;
	padding: 0 20px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	list-style: none;
}
.step-card {
	position: relative;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
	padding: 14px;
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 12px;
	align-items: start;
	transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.step-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(27, 33, 36, 0.12);
}
.step-n {
	position: absolute;
	left: 10px;
	top: 10px;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	background: var(--brand-200);
	color: var(--brand-600);
	font-weight: 700;
}
.step-pic img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 350px;
	border-radius: 12px;
}
.step-copy h3 {
	margin: 0 0 6px;
}
.step-copy p {
	margin: 0;
	color: var(--muted);
}

/* ===== SECTION 5: Craft Timeline ===== */
.craft {
	background: var(--bg-soft);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.timeline {
	max-width: var(--maxw);
	margin: 12px auto 40px;
	padding: 0 20px;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
	position: relative;
}
.timeline::before {
	content: '';
	position: absolute;
	left: 20px;
	right: 20px;
	top: 38px;
	height: 2px;
	background: linear-gradient(90deg, var(--brand-200), var(--brand));
	opacity: 0.35;
	border-radius: 2px;
}
.t-item {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 12px;
	text-align: left;
	transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.t-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(27, 33, 36, 0.12);
}
.t-pic img {
	width: 100%;
	height: auto;
	max-width: 350px;
	border-radius: 12px;
	margin-bottom: 8px;
}
.t-item h3 {
	margin: 0 0 6px;
	font-size: clamp(16px, 2vw, 20px);
}
.t-item p {
	margin: 0;
	color: var(--muted);
}

/* ===== Sheen hover effect (shared) ===== */
.sheen {
	position: relative;
	overflow: hidden;
}
.sheen::after {
	content: '';
	position: absolute;
	inset: -20%;
	background: linear-gradient(
		110deg,
		rgba(255, 255, 255, 0) 30%,
		rgba(255, 255, 255, 0.55) 50%,
		rgba(255, 255, 255, 0) 70%
	);
	transform: translateX(-120%) rotate(8deg);
	transition: transform 0.8s ease;
}
.sheen:hover::after {
	transform: translateX(120%) rotate(8deg);
}

/* ===== Responsive for sections 2–5 ===== */
@media (max-width: 1180px) {
	.metals-rail {
		grid-template-columns: repeat(3, minmax(220px, 1fr));
	}
	.timeline {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 900px) {
	.stones-wrap {
		grid-template-columns: 1fr;
	}
	.stones-sticky {
		position: relative;
		top: 0;
	}
	.steps {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 700px) {
	.metals-rail {
		grid-template-columns: repeat(2, minmax(200px, 1fr));
	}
	.timeline {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 400px) {
	.timeline {
		grid-template-columns: 1fr;
	}
	.metals-rail {
		grid-template-columns: repeat(1, minmax(200px, 1fr));
	}
}
/* ===== SECTION 6: Rings Matrix ===== */
.rings {
	background: #fff;
	border-bottom: 1px solid var(--line);
	padding-bottom: 24px;
}
.rings-matrix {
	max-width: var(--maxw);
	margin: 12px auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	grid-auto-rows: 180px;
	gap: 12px;
	position: relative;
}
.rings-cell {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	display: grid;
	place-items: center;
	text-align: center;
	transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.rings-cell:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(27, 33, 36, 0.12);
}
.rings-cell img {
	width: 100%;
	max-width: 350px;
	height: auto;
}
.rings-cell figcaption {
	font-weight: 700;
	padding: 6px 10px;
}

.r1 {
	grid-column: 1 / span 2;
	grid-row: 1 / span 2;
}
.r2 {
	grid-column: 3 / span 2;
	grid-row: 1 / span 1;
}
.r3 {
	grid-column: 5 / span 2;
	grid-row: 1 / span 2;
}
.r4 {
	grid-column: 2 / span 2;
	grid-row: 3 / span 1;
}
.r5 {
	grid-column: 4 / span 1;
	grid-row: 2 / span 2;
}
.r6 {
	grid-column: 6 / span 1;
	grid-row: 3 / span 1;
}

.rings-note {
	max-width: var(--maxw);
	margin: 10px auto 0;
	padding: 0 20px;
	color: var(--muted);
}

/* Responsive Rings */
@media (max-width: 992px) {
	.rings-matrix {
		grid-template-columns: repeat(3, 1fr);
		grid-auto-rows: 180px;
	}
	.r1 {
		grid-column: 1 / span 2;
		grid-row: 1 / span 2;
	}
	.r2 {
		grid-column: 3 / span 1;
		grid-row: 1 / span 1;
	}
	.r3 {
		grid-column: 2 / span 2;
		grid-row: 3 / span 2;
	}
	.r4 {
		grid-column: 1 / span 2;
		grid-row: 3 / span 1;
	}
	.r5 {
		grid-column: 1 / span 1;
		grid-row: 2 / span 2;
	}
	.r6 {
		grid-column: 3 / span 1;
		grid-row: 4 / span 1;
	}
}
@media (max-width: 600px) {
	.rings-matrix {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
	}
	.rings-cell {
		min-height: 0;
	}
	.r1,
	.r2,
	.r3,
	.r4,
	.r5,
	.r6 {
		grid-column: auto;
		grid-row: auto;
	}
}

/* ===== SECTION 7: Size & Fit ===== */
.fit {
	background: var(--bg-soft);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.fit-grid {
	max-width: var(--maxw);
	margin: 8px auto 28px;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 16px;
	align-items: start;
}
.fit-aside {
	position: sticky;
	top: 86px;
	height: fit-content;
}
.fit-meter {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
	padding: 12px;
	position: relative;
	overflow: hidden;
}
.fit-meter__bar {
	height: 12px;
	border-radius: 8px;
	background: linear-gradient(90deg, var(--brand-200), var(--brand));
	width: 30%;
	animation: fitPulse 3.4s ease-in-out infinite alternate;
}
.fit-meter__label {
	display: block;
	margin-top: 8px;
	color: var(--muted);
	font-weight: 700;
	font-size: 0.9rem;
}
@keyframes fitPulse {
	0% {
		width: 28%;
	}
	50% {
		width: 68%;
	}
	100% {
		width: 42%;
	}
}

.fit-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}
.fit-step {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 12px;
	align-items: start;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
	padding: 12px;
	transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.fit-step:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(27, 33, 36, 0.12);
}
.fit-pic img {
	width: 100%;
	max-width: 350px;
	height: auto;
	border-radius: 12px;
}
.fit-copy h3 {
	margin: 0 0 6px;
}
.fit-copy p {
	margin: 0;
	color: var(--muted);
}

@media (max-width: 900px) {
	.fit-grid {
		grid-template-columns: 1fr;
	}
	.fit-aside {
		position: relative;
		top: 0;
	}
}

/* ===== SECTION 8: Care & Longevity ===== */
.care {
	background: #fff;
	border-bottom: 1px solid var(--line);
	padding-bottom: 24px;
}
.care-accordion {
	max-width: var(--maxw);
	margin: 10px auto 0;
	padding: 0 20px;
	display: grid;
	gap: 12px;
}
.care-item {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
	overflow: hidden;
}
.care-item summary {
	list-style: none;
	cursor: pointer;
	padding: 12px 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.care-item summary::-webkit-details-marker {
	display: none;
}
.care-item[open] summary {
	color: var(--brand-600);
}
.care-body {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 12px;
	align-items: start;
	padding: 0 14px 14px;
}
.care-pic img {
	width: 100%;
	max-width: 350px;
	height: auto;
	border-radius: 12px;
}
.care-body p {
	margin: 0;
	color: var(--muted);
}

@media (max-width: 640px) {
	.care-body {
		grid-template-columns: 1fr;
	}
}

/* ===== SECTION 9: Atelier Mosaic ===== */
.atelier {
	background: var(--bg-soft);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.atelier-mosaic {
	max-width: var(--maxw);
	margin: 12px auto 10px;
	padding: 0 20px;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	grid-auto-rows: 180px;
	gap: 12px;
}
.a-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	display: grid;
	place-items: center;
	transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.a-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(27, 33, 36, 0.12);
}
.a-card img {
	width: 100%;
	max-width: 350px;
	height: auto;
}
.a-card figcaption {
	font-weight: 700;
	padding: 6px 10px;
}

.a-note {
	background: #fff;
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	padding: 12px;
	box-shadow: var(--shadow);
}
.a-note h3 {
	margin: 0 0 6px;
	font-size: clamp(16px, 2vw, 20px);
}
.a-note p {
	margin: 0;
	color: var(--muted);
}

.a1 {
	grid-column: 1 / span 2;
	grid-row: 1 / span 2;
}
.n1 {
	grid-column: 3 / span 2;
	grid-row: 1 / span 1;
}
.a2 {
	grid-column: 5 / span 2;
	grid-row: 1 / span 2;
}
.n2 {
	grid-column: 1 / span 2;
	grid-row: 3 / span 1;
}
.a3 {
	grid-column: 3 / span 2;
	grid-row: 2 / span 1;
}
.a4 {
	grid-column: 3 / span 1;
	grid-row: 3 / span 1;
}
.a5 {
	grid-column: 4 / span 1;
	grid-row: 3 / span 1;
}

.atelier-foot {
	max-width: var(--maxw);
	margin: 0 auto 12px;
	padding: 0 20px;
	color: var(--muted);
}

/* Responsive Atelier */
@media (max-width: 992px) {
	.atelier-mosaic {
		grid-template-columns: repeat(3, 1fr);
		grid-auto-rows: 180px;
	}
	.a1 {
		grid-column: 1 / span 2;
		grid-row: 1 / span 2;
	}
	.n1 {
		grid-column: 3 / span 1;
		grid-row: 1 / span 1;
	}
	.a2 {
		grid-column: 2 / span 2;
		grid-row: 3 / span 2;
	}
	.n2 {
		grid-column: 1 / span 2;
		grid-row: 3 / span 1;
	}
	.a3 {
		grid-column: 1 / span 2;
		grid-row: 2 / span 1;
	}
	.a4 {
		grid-column: 1 / span 1;
		grid-row: 5 / span 1;
	}
	.a5 {
		grid-column: 2 / span 1;
		grid-row: 5 / span 1;
	}
}
@media (max-width: 600px) {
	.atelier-mosaic {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
	}
	.a1,
	.a2,
	.a3,
	.a4,
	.a5,
	.n1,
	.n2 {
		grid-column: auto;
		grid-row: auto;
	}
}

/* Cap image widths globally within these sections */
.rings img,
.fit img,
.care img,
.atelier img {
	max-width: 350px;
}
/* ===== SECTION 10: Necklines Map ===== */
.necklines {
	background: #fff;
	border-bottom: 1px solid var(--line);
}
.neck-map {
	max-width: var(--maxw);
	margin: 10px auto 12px;
	padding: 0 20px 8px;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, 1fr);
	position: relative;
}
.neck-map::before {
	content: '';
	position: absolute;
	left: 20px;
	right: 20px;
	top: -4px;
	height: 2px;
	background: linear-gradient(90deg, var(--brand-200), var(--brand));
	opacity: 0.35;
	border-radius: 2px;
}
.neck.node {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
	padding: 12px;
	transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.neck.node:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(27, 33, 36, 0.12);
}
.neck h3 {
	margin: 0 0 6px;
	font-size: clamp(16px, 2vw, 20px);
}
.neck .tokens {
	list-style: none;
	padding: 0;
	margin: 0 0 6px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.badge {
	display: inline-block;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--bg-soft);
	border: 1px dashed var(--line);
	font-weight: 700;
	font-size: 0.92rem;
}
.neck .tip {
	margin: 0;
	color: var(--muted);
}
.neck-foot {
	max-width: var(--maxw);
	margin: 0 auto 16px;
	padding: 0 20px;
	color: var(--muted);
}

@media (max-width: 900px) {
	.neck-map {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 560px) {
	.neck-map {
		grid-template-columns: 1fr;
	}
}

/* ===== SECTION 11: Ethical Sourcing Ledger ===== */
.ledger {
	background: var(--bg-soft);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.ledger-wrap {
	max-width: var(--maxw);
	margin: 8px auto 20px;
	padding: 0 20px;
}
.ledger-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}
.ledger-table thead th {
	text-align: left;
	padding: 12px;
	background: #fff8f0;
	border-bottom: 1px solid var(--line);
	font-weight: 700;
}
.ledger-table tbody th,
.ledger-table td {
	padding: 12px;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}
.ledger-table tbody tr:last-child td,
.ledger-table tbody tr:last-child th {
	border-bottom: 0;
}
.ledger-table tbody tr:hover td,
.ledger-table tbody tr:hover th {
	background: #fffdf8;
}

.tag {
	display: inline-block;
	padding: 6px 10px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.9rem;
	border: 1px solid var(--line);
}
.tag.yes {
	background: #eaf7ef;
	color: #1f7a3d;
	border-color: #cfe8d6;
}
.tag.prog {
	background: #fff4e6;
	color: #9a5c10;
	border-color: #f2d1a8;
}

.legend {
	display: flex;
	gap: 12px;
	list-style: none;
	padding: 10px 0 0;
	margin: 0;
	color: var(--muted);
	flex-wrap: wrap;
}
.ledger-note {
	color: var(--muted);
	max-width: var(--maxw);
	margin: 8px auto 14px;
	padding: 0 20px;
}

@media (min-width: 980px) {
	.ledger-table tbody th {
		position: sticky;
		left: 0;
		background: #fff;
	}
}

/* ===== SECTION 12: Quiet Statements ===== */
.statements {
	background: #fff;
	border-bottom: 1px solid var(--line);
}
.set-grid {
	max-width: var(--maxw);
	margin: 8px auto 18px;
	padding: 0 20px;
	display: grid;
	gap: 12px;
}
.set {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.set:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(27, 33, 36, 0.12);
}
.set-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: linear-gradient(180deg, #ffffff, #fffaf4);
	border-bottom: 1px solid var(--line);
}
.set-n {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	font-weight: 700;
	background: var(--brand-200);
	color: var(--brand-600);
}
.peek .peek-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease, padding 0.35s ease;
	padding: 0 14px;
}
.peek:hover .peek-body,
.peek:focus-within .peek-body {
	max-height: 220px;
	padding: 10px 14px 14px;
}
.peek-body p {
	margin: 0 0 8px;
	color: var(--muted);
}
.statements .tokens {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.statements .badge {
	background: var(--bg-soft);
	border: 1px dashed var(--line);
}

.statements-foot {
	max-width: var(--maxw);
	margin: 0 auto 14px;
	padding: 0 20px;
	color: var(--muted);
}

/* (No images in these sections; nothing to constrain here.) */
/* ===== SECTION 13: Finish Glossary ===== */
.finish {
	background: var(--bg-soft);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.glossary {
	max-width: var(--maxw);
	margin: 8px auto 16px;
	padding: 0 20px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.g-item {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 12px;
	transition: transform 0.24s ease, box-shadow 0.24s ease,
		border-color 0.24s ease;
}
.g-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(27, 33, 36, 0.12);
	border-color: var(--brand-200);
}
.g-term {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
}
.g-term h3 {
	margin: 0;
	font-size: clamp(16px, 2vw, 20px);
}
.g-accent {
	flex: 0 0 120px;
	height: 4px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--brand-200), var(--brand));
	transform-origin: left;
	transform: scaleX(0.2);
	transition: transform 0.35s ease;
}
.g-item:hover .g-accent,
.g-item:focus-within .g-accent {
	transform: scaleX(1);
}
.finish-foot {
	max-width: var(--maxw);
	margin: 0 auto 14px;
	padding: 0 20px;
	color: var(--muted);
}

@media (max-width: 1000px) {
	.glossary {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 560px) {
	.glossary {
		grid-template-columns: 1fr;
	}
}

/* ===== SECTION 14: Maker's Pledge ===== */
.pledge {
	background: #fff;
	border-bottom: 1px solid var(--line);
}
.pledge-grid {
	counter-reset: pledge;
	max-width: var(--maxw);
	margin: 8px auto 18px;
	padding: 0 20px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	list-style: none;
}
.pledge-card {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
	padding: 12px;
	transition: transform 0.24s ease, box-shadow 0.24s ease,
		border-color 0.24s ease;
}
.pledge-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(27, 33, 36, 0.12);
	border-color: var(--brand-200);
}
.pledge-card h3 {
	margin: 0 0 6px;
	font-size: clamp(16px, 2vw, 20px);
	display: flex;
	align-items: center;
	gap: 8px;
}
.pledge-card p {
	margin: 0;
	color: var(--muted);
}

/* Tick badge */
.tick {
	width: 22px;
	height: 22px;
	border-radius: 999px;
	display: inline-grid;
	place-items: center;
	background: #eaf7ef;
	color: #1f7a3d;
	border: 1px solid #cfe8d6;
	position: relative;
}
.tick::before {
	content: '✓';
	font-weight: 700;
	font-size: 14px;
}

/* Subtle pulse on hover */
.pledge-card:hover .tick {
	animation: tPulse 0.9s ease;
}
@keyframes tPulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.08);
	}
	100% {
		transform: scale(1);
	}
}

.pledge-foot {
	max-width: var(--maxw);
	margin: 0 auto 14px;
	padding: 0 20px;
	color: var(--muted);
}

@media (max-width: 860px) {
	.pledge-grid {
		grid-template-columns: 1fr;
	}
}
/* ===== Ledger responsive: 400–710px ===== */
@media (min-width: 360px) and (max-width: 710px) {
	/* Превращаем таблицу в карточки-строки */
	.ledger-table {
		display: block;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
		overflow: visible;
	}
	.ledger-table thead {
		/* прячем заголовок */
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		border: 0;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
	.ledger-table tbody {
		display: block;
	}
	.ledger-table tbody tr {
		display: block;
		margin: 10px 0;
		background: #fff;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		box-shadow: var(--shadow);
		overflow: hidden;
	}
	.ledger-table tbody th[scope='row'] {
		/* заголовок строки как шапка карточки */
		display: block;
		position: static;
		background: #fff8f0;
		border-bottom: 1px solid var(--line);
		padding: 12px 14px;
		font-weight: 700;
	}
	.ledger-table tbody td {
		/* каждая ячейка — две колонки: метка + значение */
		display: grid;
		grid-template-columns: 140px 1fr;
		align-items: center;
		gap: 8px;
		padding: 10px 14px;
		border-bottom: 1px dashed var(--line);
	}
	.ledger-table tbody td:last-child {
		border-bottom: 0;
	}

	/* метка столбца из data-label (JS добавит) */
	.ledger-table tbody td::before {
		content: attr(data-label);
		font-weight: 700;
		color: var(--muted);
	}

	/* компактнее чипы */
	.tag {
		font-size: 0.85rem;
		padding: 5px 9px;
	}

	/* легенда — столбцом */
	.legend {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	/* примечание ближе к карточкам */
	.ledger-note {
		margin-top: 6px;
	}
}
/* === HERO (Ribbon) — полностью адаптивная лента без абсолютов === */
.hero--ribbon {
	position: relative;
	padding: clamp(40px, 6vw, 88px) 20px;
	background: radial-gradient(1200px 600px at 10% -10%, #fff, transparent 55%),
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
	border-bottom: 1px solid var(--line);
}
.hero--ribbon .hero-wrap {
	max-width: var(--maxw);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(16px, 3vw, 36px);
	align-items: start;
}

/* левая колонка (текст) — оставляем существующие базовые стили из файла */
.hero--ribbon .hero-lead {
	max-width: 60ch;
}

/* правая колонка: лента со snap */
.hero--ribbon .hero-strip {
	position: relative;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	border-radius: var(--radius-sm);
	padding-bottom: 6px; /* место для тени карточек */
	/* маска для мягких краёв */
	-webkit-mask-image: linear-gradient(
		90deg,
		transparent 0,
		#000 4%,
		#000 96%,
		transparent 100%
	);
	mask-image: linear-gradient(
		90deg,
		transparent 0,
		#000 4%,
		#000 96%,
		transparent 100%
	);
}
.hero--ribbon .strip-track {
	display: flex;
	gap: 12px;
	align-items: stretch;
	scroll-padding-inline: 20px;
	padding: 2px 2px 8px;
}
.hero--ribbon .card {
	scroll-snap-align: start;
	flex: 0 0 auto;
	width: clamp(180px, 32vw, 320px);
	max-width: 350px; /* требование по ширине */
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.hero--ribbon .card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(27, 33, 36, 0.12);
}

.hero--ribbon .card figure {
	position: relative;
	margin: 0;
}
.hero--ribbon .card img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 350px;
	aspect-ratio: 4 / 3;
	object-fit: cover; /* стабильная высота карточки */
}
.hero--ribbon .card figcaption {
	position: absolute;
	left: 8px;
	bottom: 8px;
	padding: 6px 10px;
	border-radius: 999px;
	background: #fff;
	color: var(--muted);
	font-weight: 700;
	box-shadow: var(--shadow);
}

/* тонкое затемнение по краям (визуальный hint, без влияния на scroll) */
.hero--ribbon .strip-fade {
	pointer-events: none;
	position: absolute;
	inset: 0;
	background: linear-gradient(
				90deg,
				rgba(255, 255, 255, 1),
				rgba(255, 255, 255, 0) 60%
			)
			left / 80px 100% no-repeat,
		linear-gradient(270deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0) 60%)
			right / 80px 100% no-repeat;
}

/* планшеты: стекаем блоки, карточки чуть шире */
@media (max-width: 1024px) {
	.hero--ribbon .hero-wrap {
		grid-template-columns: 1fr;
	}
	.hero--ribbon .card {
		width: clamp(200px, 60vw, 320px);
	}
}

/* мобильные: подписи убираем, чтобы было чище */
@media (max-width: 640px) {
	.hero--ribbon .card figcaption {
		display: none;
	}
}
.hero {
	margin-top: 40px;
}
/* ===== SECTION 15: Contact ===== */
.contact {
	background: var(--bg-soft);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	padding: clamp(32px, 5vw, 56px) 20px;
}
.contact-container {
	max-width: var(--maxw);
	margin: 0 auto;
}

.contact-header h2 {
	font-family: 'Playfair Display', serif;
	font-weight: 600;
	font-size: clamp(24px, 3.2vw, 40px);
	margin: 0 0 8px;
}
.contact-header p {
	margin: 0 0 18px;
	color: var(--muted);
	max-width: 60ch;
}

/* Формовая сетка: 2 колонки на широких, 1 на мобильных */
.form-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 14px;
}
.i-text,
.i-area {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 12px 14px;
	font: inherit;
	color: var(--ink);
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.i-text:focus-visible,
.i-area:focus-visible {
	outline: none;
	border-color: var(--brand-200);
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-200) 60%, #fff);
}
.i-text:hover,
.i-area:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(27, 33, 36, 0.06);
}

/* Поля по сетке */
#cf-name {
	grid-column: 1;
}
#cf-email {
	grid-column: 2;
}
#cf-message {
	grid-column: 1 / -1;
	min-height: 140px;
	resize: vertical;
}

/* Чекбокс и кнопка */
.form-checkbox {
	grid-column: 1 / -1;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 4px 2px;
	color: var(--muted);
	user-select: none;
}
.form-checkbox input {
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 4px;
	border: 1px solid var(--line);
	background: #fff;
	display: grid;
	place-items: center;
	transition: border-color 0.2s ease, background-color 0.2s ease,
		box-shadow 0.2s ease;
}
.form-checkbox input:checked {
	background: linear-gradient(
		110deg,
		var(--brand) 0%,
		#e1bd8f 60%,
		var(--brand) 100%
	);
	border-color: var(--brand-200);
	box-shadow: 0 6px 14px rgba(199, 150, 90, 0.25);
}
.form-checkbox input:checked::after {
	content: '✓';
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	line-height: 1;
}

.form-checkbox a {
	color: var(--brand-600);
	text-decoration: none;
}
.form-checkbox a:hover {
	text-decoration: underline;
}

/* Кнопка отправки */
.cta-button {
	grid-column: 1 / -1;
	justify-self: start;
	padding: 12px 18px;
	border-radius: 999px;
	border: 0;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	background: linear-gradient(
		110deg,
		var(--brand) 0%,
		#e1bd8f 60%,
		var(--brand) 100%
	);
	background-size: 200% 100%;
	box-shadow: 0 10px 24px rgba(199, 150, 90, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease,
		background-position 0.6s ease;
}
.cta-button:hover {
	transform: translateY(-2px);
	background-position: 100% 0;
}
.cta-button:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-200) 60%, #fff);
}

/* Примечание */
.contact-note {
	color: var(--muted);
	margin: 10px 0 0;
}

/* Визуально скрытые, но доступные label */
.vh {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	border: 0;
	padding: 0;
	white-space: nowrap;
	clip-path: inset(100%);
	clip: rect(0 0 0 0);
	overflow: hidden;
}

/* Адаптив */
@media (max-width: 880px) {
	.form-wrapper {
		grid-template-columns: 1fr;
	}
	#cf-name,
	#cf-email,
	#cf-message,
	.form-checkbox,
	.cta-button {
		grid-column: 1;
	}
}
