/**
 * ErosCharm — Collections discovery page (/products/).
 *
 * Editorial composition: typographic hero with real product photographs,
 * image-led category navigation, a featured collection, an asymmetric
 * collection mosaic and a brand statement. Same tokens as the rest of the
 * ErosCharm storefront. Logical properties throughout — Arabic mirrors by
 * itself. No JavaScript: motion is CSS-only and respects reduced motion.
 */

.ec-disc {
	--ec-bg: #faf8f5;
	--ec-ink: #1f1612;
	--ec-ink-70: #4a403a;
	--ec-muted: #736a63;
	--ec-soft: #a39a92;
	--ec-paper: #ffffff;
	--ec-sand: #f1ebe3;
	--ec-blush: #f3e6e2;
	--ec-stone: #e9e6e1;
	--ec-oat: #ece3d6;
	--ec-line: #e8e1d9;
	--ec-rose: #b85b64;
	--ec-brown: #2b1d17;
	--ec-brown-hover: #45322a;

	--ec-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", "Noto Sans Arabic", Arial, sans-serif;
	--ec-serif: "Playfair Display", Georgia, "Noto Naskh Arabic",
		"Times New Roman", serif;

	--ec-shell: 1380px;
	--ec-gutter: clamp(16px, 3vw, 44px);
	--ec-ease: cubic-bezier(0.2, 0, 0.2, 1);

	width: 100%;
	max-width: var(--ec-shell);
	margin-inline: auto;
	padding-inline: var(--ec-gutter);
	padding-block-end: clamp(32px, 4vw, 56px);
	font-family: var(--ec-sans);
	color: var(--ec-ink);
	box-sizing: border-box;
}

body.page .ec-disc ~ * {
	box-sizing: border-box;
}

.ec-disc *,
.ec-disc *::before,
.ec-disc *::after {
	box-sizing: border-box;
}

body:has(.ec-disc) {
	background: var(--ec-bg, #faf8f5) !important;
}

.ec-disc a {
	color: inherit;
	text-decoration: none;
}

.ec-disc a:focus-visible {
	outline: 2px solid var(--ec-ink);
	outline-offset: 3px;
}

.ec-disc h1,
.ec-disc h2,
.ec-disc p,
.ec-disc dl,
.ec-disc dd,
.ec-disc figure,
.ec-disc ul {
	margin: 0;
	padding: 0;
}

.ec-disc ul {
	list-style: none;
}

.ec-disc-eyebrow {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--ec-rose);
}

.ec-disc-arrow {
	display: inline-block;
	transition: transform 0.35s var(--ec-ease);
}

[dir="rtl"] .ec-disc-arrow,
[dir="rtl"] .ec-disc-btn span {
	transform: scaleX(-1);
}

@keyframes ec-disc-rise {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ec-disc *,
	.ec-disc *::before,
	.ec-disc *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ==========================================================================
 * Hero — typography + real product photographs
 * ========================================================================== */

.ec-disc-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
	align-items: center;
	gap: clamp(24px, 4vw, 64px);
	min-height: clamp(460px, 44vw, 620px);
	margin-inline: calc(var(--ec-gutter) * -1);
	padding: clamp(40px, 5vw, 72px) var(--ec-gutter);
	background:
		radial-gradient(90% 120% at 100% 0%, #efe3da 0%, transparent 60%),
		linear-gradient(180deg, #f6efe9 0%, var(--ec-bg) 100%);
	overflow: hidden;
}

.ec-disc-hero__text {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
	animation: ec-disc-rise 0.9s var(--ec-ease) both;
}

.ec-disc .ec-disc-hero__title {
	display: flex;
	flex-direction: column;
	font-family: var(--ec-serif) !important;
	font-size: clamp(46px, 6.2vw, 96px) !important;
	font-weight: 500 !important;
	line-height: 0.96 !important;
	letter-spacing: -0.025em !important;
	text-transform: none !important;
	color: var(--ec-ink) !important;
}

.ec-disc-hero__title span {
	display: block;
}

.ec-disc-hero__brand {
	font-style: italic;
	font-weight: 400;
	color: var(--ec-rose);
}

.ec-disc-hero__lead {
	max-width: 38ch;
	font-size: 17px;
	line-height: 1.55;
	color: var(--ec-ink-70);
}

.ec-disc-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 0 28px;
	border-radius: 999px;
	background: var(--ec-brown);
	color: #fff !important;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;
	transition: background-color 0.25s var(--ec-ease), gap 0.25s var(--ec-ease);
}

.ec-disc-btn:hover {
	background: var(--ec-brown-hover);
	gap: 18px;
}

.ec-disc-hero__stats {
	display: flex;
	gap: 36px;
	padding-block-start: 18px;
	border-block-start: 1px solid var(--ec-line);
}

.ec-disc-hero__stats div {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.ec-disc-hero__stats dt {
	font-family: var(--ec-serif);
	font-size: clamp(34px, 3.4vw, 48px);
	font-weight: 500;
	line-height: 1;
	color: var(--ec-ink);
}

.ec-disc-hero__stats dd {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ec-muted);
}

/* Photographs: an overlapping editorial trio */
.ec-disc-hero__media {
	position: relative;
	height: 100%;
	min-height: clamp(380px, 38vw, 540px);
}

.ec-disc-hero__photo {
	position: absolute;
	overflow: hidden;
	border-radius: 2px;
	background: var(--ec-sand);
	box-shadow: 0 24px 60px rgba(31, 22, 18, 0.14);
	animation: ec-disc-rise 1s var(--ec-ease) both;
}

.ec-disc-hero__photo img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center top;
}

.ec-disc-hero__photo--1 {
	inset-block: 0;
	inset-inline-start: 18%;
	width: 50%;
	z-index: 2;
	animation-delay: 0.1s;
}

.ec-disc-hero__photo--2 {
	top: 12%;
	inset-inline-end: 0;
	width: 30%;
	aspect-ratio: 3 / 4;
	z-index: 1;
	animation-delay: 0.25s;
}

.ec-disc-hero__photo--3 {
	bottom: 6%;
	inset-inline-start: 0;
	width: 28%;
	aspect-ratio: 3 / 4;
	z-index: 3;
	animation-delay: 0.4s;
}

.ec-disc-hero__motto {
	position: absolute;
	bottom: 2%;
	inset-inline-end: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	font-family: var(--ec-serif);
	font-size: clamp(18px, 1.8vw, 26px);
	line-height: 1.15;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ec-ink);
	writing-mode: horizontal-tb;
}

.ec-disc-hero__motto span + span {
	color: var(--ec-rose);
}

@media (max-width: 899px) {
	.ec-disc-hero {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
		gap: 32px;
		padding-block: 36px 28px;
	}

	.ec-disc-hero__media {
		min-height: 0;
		aspect-ratio: 5 / 4;
	}

	.ec-disc-hero__photo--1 {
		inset-inline-start: 22%;
		width: 52%;
	}

	.ec-disc-hero__photo--2 {
		width: 30%;
	}

	.ec-disc-hero__photo--3 {
		width: 30%;
	}

	.ec-disc-hero__lead {
		font-size: 16px;
	}
}

/* ==========================================================================
 * Category navigation — round thumbnails
 * ========================================================================== */

.ec-disc-nav {
	margin-inline: calc(var(--ec-gutter) * -1);
	padding-block: 26px 22px;
	border-block-end: 1px solid var(--ec-line);
	background: var(--ec-bg);
}

.ec-disc-nav__list {
	display: flex;
	gap: clamp(14px, 2vw, 30px);
	padding-inline: var(--ec-gutter) !important;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scroll-padding-inline: var(--ec-gutter);
	scrollbar-width: none;
}

.ec-disc-nav__list::-webkit-scrollbar {
	display: none;
}

.ec-disc-nav__list li {
	flex: 0 0 auto;
	scroll-snap-align: start;
}

.ec-disc-nav__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	min-width: 72px;
}

.ec-disc-nav__thumb {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: var(--ec-sand);
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(31, 22, 18, 0.06);
	transition: transform 0.3s var(--ec-ease), box-shadow 0.3s var(--ec-ease);
}

.ec-disc-nav__thumb img {
	width: 78% !important;
	height: 78% !important;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.ec-disc-nav__thumb--all {
	background: var(--ec-brown);
	color: #fff;
}

.ec-disc-nav__thumb--all svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
}

.ec-disc-nav__initial {
	font-family: var(--ec-serif);
	font-size: 26px;
	color: var(--ec-muted);
}

.ec-disc-nav__name {
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
	color: var(--ec-ink-70);
}

.ec-disc-nav__link:hover .ec-disc-nav__thumb {
	transform: translateY(-3px);
	box-shadow: inset 0 0 0 1px var(--ec-ink);
}

.ec-disc-nav__link.is-active .ec-disc-nav__name {
	color: var(--ec-ink);
	font-weight: 600;
}

@media (min-width: 1200px) {
	.ec-disc-nav__list {
		justify-content: space-between;
	}
}

/* ==========================================================================
 * Featured collection
 * ========================================================================== */

.ec-disc-featured {
	margin-block-start: clamp(40px, 5vw, 72px);
}

.ec-disc-featured__link {
	display: grid;
	grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
	align-items: stretch;
	min-height: clamp(360px, 36vw, 520px);
	background: var(--ec-blush);
	overflow: hidden;
}

.ec-disc-featured__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 14px;
	padding: clamp(28px, 4vw, 64px);
}

.ec-disc .ec-disc-featured__title {
	font-family: var(--ec-serif) !important;
	font-size: clamp(44px, 6vw, 92px) !important;
	font-weight: 500 !important;
	line-height: 0.95 !important;
	letter-spacing: -0.02em !important;
	text-transform: none !important;
	color: var(--ec-ink) !important;
	overflow-wrap: anywhere;
	transition: transform 0.45s var(--ec-ease);
}

.ec-disc-featured__count {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ec-muted);
}

.ec-disc-featured__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin-block-start: 10px;
	padding-block-end: 4px;
	border-block-end: 1px solid var(--ec-ink);
	font-size: 14px;
	font-weight: 500;
	color: var(--ec-ink);
}

.ec-disc-featured__visual {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	background: var(--ec-sand);
	overflow: hidden;
}

.ec-disc-featured__visual.is-duo {
	grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
}

.ec-disc-featured__photo,
.ec-disc-featured__cutout {
	position: relative;
	display: block;
	overflow: hidden;
}

.ec-disc-featured__photo img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.9s var(--ec-ease);
}

.ec-disc-featured__cutout {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8%;
	background: var(--ec-sand);
}

.ec-disc-featured__cutout img {
	width: 100% !important;
	height: 100% !important;
	max-height: 440px;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: transform 0.9s var(--ec-ease);
}

.ec-disc-featured__word {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--ec-serif);
	font-size: clamp(64px, 10vw, 160px);
	color: transparent;
	-webkit-text-stroke: 1px rgba(31, 22, 18, 0.2);
}

@media (hover: hover) {
	.ec-disc-featured__link:hover .ec-disc-featured__photo img,
	.ec-disc-featured__link:hover .ec-disc-featured__cutout img {
		transform: scale(1.04);
	}

	.ec-disc-featured__link:hover .ec-disc-featured__title {
		transform: translateX(8px);
	}

	[dir="rtl"] .ec-disc-featured__link:hover .ec-disc-featured__title {
		transform: translateX(-8px);
	}

	.ec-disc-featured__link:hover .ec-disc-arrow {
		transform: translateX(6px);
	}

	[dir="rtl"] .ec-disc-featured__link:hover .ec-disc-arrow {
		transform: scaleX(-1) translateX(6px);
	}
}

@media (max-width: 767px) {
	.ec-disc-featured__link {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.ec-disc-featured__visual {
		order: -1;
		aspect-ratio: 4 / 3;
	}
}

/* ==========================================================================
 * Collection mosaic
 * ========================================================================== */

.ec-disc-grid {
	margin-block-start: clamp(56px, 7vw, 104px);
	scroll-margin-top: 24px;
}

.ec-disc-grid__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-block-end: clamp(20px, 2.4vw, 32px);
	padding-block-end: 16px;
	border-block-end: 1px solid var(--ec-ink);
}

.ec-disc .ec-disc-grid__title {
	font-family: var(--ec-serif) !important;
	font-size: clamp(32px, 4vw, 60px) !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	letter-spacing: -0.02em !important;
	text-transform: none !important;
	color: var(--ec-ink) !important;
}

.ec-disc-grid__count {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ec-muted);
}

.ec-disc-grid__list {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-auto-rows: clamp(104px, 10vw, 150px);
	grid-auto-flow: dense;
	gap: clamp(10px, 1.1vw, 16px);
}

/* 12-card editorial rhythm: tall / wide / small, then mirrored. */
.ec-disc-card { grid-column: span 4; grid-row: span 2; }
.ec-disc-card:nth-child(12n + 1) { grid-column: span 5; grid-row: span 4; }
.ec-disc-card:nth-child(12n + 2) { grid-column: span 7; grid-row: span 2; }
.ec-disc-card:nth-child(12n + 3) { grid-column: span 4; grid-row: span 2; }
.ec-disc-card:nth-child(12n + 4) { grid-column: span 3; grid-row: span 2; }
.ec-disc-card:nth-child(12n + 5) { grid-column: span 7; grid-row: span 3; }
.ec-disc-card:nth-child(12n + 6) { grid-column: span 5; grid-row: span 3; }
.ec-disc-card:nth-child(12n + 7) { grid-column: span 7; grid-row: span 2; }
.ec-disc-card:nth-child(12n + 8) { grid-column: span 5; grid-row: span 4; }
.ec-disc-card:nth-child(12n + 9) { grid-column: span 3; grid-row: span 2; }
.ec-disc-card:nth-child(12n + 10) { grid-column: span 4; grid-row: span 2; }
.ec-disc-card:nth-child(12n + 11) { grid-column: span 5; grid-row: span 3; }
.ec-disc-card:nth-child(12n + 12) { grid-column: span 7; grid-row: span 3; }

.ec-disc-card {
	position: relative;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	border-radius: 2px;
	background: var(--ec-sand);
}

.ec-disc-card--blush { background: var(--ec-blush); }
.ec-disc-card--stone { background: var(--ec-stone); }
.ec-disc-card--oat { background: var(--ec-oat); }

.ec-disc-card__link {
	position: absolute;
	inset: 0;
	display: block;
}

/* Category images are cut-outs on white: multiply lets the garment sit on the
   card's tone without a white box; contain keeps the whole piece undistorted. */
.ec-disc-card__media {
	position: absolute;
	inset-block: 8%;
	inset-inline-end: 4%;
	width: 58%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ec-disc-card__media img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: transform 0.8s var(--ec-ease);
}

.ec-disc-card__word {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: -4%;
	font-family: var(--ec-serif);
	font-size: clamp(80px, 11vw, 190px);
	line-height: 1;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1px rgba(31, 22, 18, 0.16);
	transform: translateY(-50%);
	transition: transform 0.8s var(--ec-ease);
}

.ec-disc-card__text {
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 60%;
	padding: clamp(16px, 1.8vw, 28px);
	transition: transform 0.45s var(--ec-ease);
}

.ec-disc-card__index {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	color: var(--ec-rose);
}

.ec-disc-card__name {
	font-family: var(--ec-serif);
	font-size: clamp(22px, 2.3vw, 38px);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.01em;
	color: var(--ec-ink);
	overflow-wrap: normal;
	word-break: normal;
	hyphens: manual;
}

.ec-disc-card:nth-child(12n + 1) .ec-disc-card__name,
.ec-disc-card:nth-child(12n + 8) .ec-disc-card__name {
	font-size: clamp(30px, 3.4vw, 56px);
}

.ec-disc-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
}

.ec-disc-card__count {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ec-muted);
}

.ec-disc-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--ec-ink);
}

@media (hover: hover) {
	.ec-disc-card:hover .ec-disc-card__media img {
		transform: scale(1.06) translateY(-2%);
	}

	.ec-disc-card:hover .ec-disc-card__word {
		transform: translateY(-50%) translateX(-3%);
	}

	.ec-disc-card:hover .ec-disc-card__text {
		transform: translateY(-4px);
	}

	.ec-disc-card:hover .ec-disc-arrow {
		transform: translateX(5px);
	}

	[dir="rtl"] .ec-disc-card:hover .ec-disc-arrow {
		transform: scaleX(-1) translateX(5px);
	}

	.ec-disc-card::after {
		content: "";
		position: absolute;
		inset: 0;
		background: rgba(31, 22, 18, 0);
		transition: background-color 0.45s var(--ec-ease);
		pointer-events: none;
	}

	.ec-disc-card:hover::after {
		background: rgba(31, 22, 18, 0.04);
	}
}

/* Tablet: 6 columns — every third card spans the full width. */
@media (max-width: 1023px) {
	.ec-disc-grid__list {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		grid-auto-rows: clamp(100px, 16vw, 150px);
	}

	.ec-disc-card,
	.ec-disc-card:nth-child(n) {
		grid-column: span 3;
		grid-row: span 2;
	}

	.ec-disc-card:nth-child(3n + 1) {
		grid-column: span 6;
		grid-row: span 2;
	}

	.ec-disc-card:nth-child(3n + 1) .ec-disc-card__media {
		width: 44%;
	}

	.ec-disc-card:nth-child(n) .ec-disc-card__name {
		font-size: clamp(22px, 3.6vw, 36px);
	}
}

/* Phone: 2 columns — every third card is a full-width feature. */
@media (max-width: 599px) {
	.ec-disc-grid__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: auto;
		gap: 10px;
	}

	.ec-disc-card,
	.ec-disc-card:nth-child(n) {
		grid-column: span 1;
		grid-row: auto;
		aspect-ratio: 3 / 4;
	}

	.ec-disc-card:nth-child(3n + 1) {
		grid-column: span 2;
		aspect-ratio: 16 / 10;
	}

	.ec-disc-card:nth-child(n) .ec-disc-card__media {
		inset-block: 6% 34%;
		inset-inline: 10%;
		width: auto;
	}

	.ec-disc-card:nth-child(3n + 1) .ec-disc-card__media {
		inset-block: 8%;
		inset-inline: auto 4%;
		width: 52%;
	}

	.ec-disc-card__text {
		max-width: 100%;
		padding: 14px;
		gap: 4px;
	}

	.ec-disc-card:nth-child(3n + 1) .ec-disc-card__text {
		max-width: 52%;
	}

	.ec-disc-card:nth-child(n) .ec-disc-card__name {
		font-size: 22px;
	}

	.ec-disc-card:nth-child(3n + 1) .ec-disc-card__name {
		font-size: 30px;
	}

	.ec-disc-card__cta {
		display: none;
	}

	.ec-disc-card__word {
		font-size: 96px;
	}
}

/* ==========================================================================
 * Brand statement
 * ========================================================================== */

.ec-disc-statement {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	align-items: end;
	gap: 24px clamp(24px, 5vw, 80px);
	margin-block-start: clamp(64px, 8vw, 120px);
	padding-block: clamp(40px, 5vw, 72px);
	border-block: 1px solid var(--ec-line);
}

.ec-disc-statement__motto {
	display: flex;
	flex-direction: column;
	font-family: var(--ec-serif);
	font-size: clamp(56px, 9vw, 150px);
	font-weight: 500;
	line-height: 0.9;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	color: var(--ec-ink);
}

.ec-disc-statement__motto span + span {
	font-style: italic;
	font-weight: 400;
	text-transform: none;
	color: var(--ec-rose);
	padding-inline-start: 0.6em;
}

.ec-disc-statement__side {
	display: grid;
	gap: 10px;
	padding-block-end: 10px;
}

.ec-disc-statement__brand {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--ec-ink);
}

.ec-disc-statement__line {
	max-width: 32ch;
	font-family: var(--ec-serif);
	font-size: clamp(20px, 2vw, 28px);
	line-height: 1.3;
	color: var(--ec-ink-70);
}

@media (max-width: 767px) {
	.ec-disc-statement {
		grid-template-columns: minmax(0, 1fr);
	}

	.ec-disc-statement__motto {
		font-size: clamp(54px, 17vw, 80px);
	}
}

/* ==========================================================================
 * Service strip (shared markup from the collection pages)
 * ========================================================================== */

.ec-disc .ec-services {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin-block-start: 0;
	list-style: none;
}

.ec-disc .ec-services__item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 26px 16px;
}

.ec-disc .ec-services__item + .ec-services__item {
	border-inline-start: 1px solid var(--ec-line);
}

.ec-disc .ec-services__icon {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	fill: none;
	stroke: var(--ec-ink);
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ec-disc .ec-services__copy {
	display: grid;
	gap: 3px;
	font-size: 13px;
	color: var(--ec-muted);
}

.ec-disc .ec-services__copy strong {
	font-family: var(--ec-serif);
	font-size: 17px;
	font-weight: 500;
	color: var(--ec-ink);
}

@media (max-width: 767px) {
	.ec-disc .ec-services__item {
		justify-content: flex-start;
		padding: 16px 4px;
	}

	.ec-disc .ec-services__item + .ec-services__item {
		border-inline-start: 0;
		border-block-start: 1px solid var(--ec-line);
	}
}

/* Narrow tiles (3 of 12 columns): text takes the full width, the image steps
   back, and names are sized to fit on one line. */
@media (min-width: 1024px) {
	.ec-disc-card:nth-child(12n + 4) .ec-disc-card__text,
	.ec-disc-card:nth-child(12n + 9) .ec-disc-card__text {
		max-width: 100%;
	}

	.ec-disc-card:nth-child(12n + 4) .ec-disc-card__media,
	.ec-disc-card:nth-child(12n + 9) .ec-disc-card__media {
		inset-block: 6% 40%;
		inset-inline: 14% 6%;
		width: auto;
	}

	.ec-disc-card:nth-child(12n + 4) .ec-disc-card__name,
	.ec-disc-card:nth-child(12n + 9) .ec-disc-card__name {
		font-size: clamp(20px, 1.8vw, 28px);
	}
}

/* Phone: the statement section carries the motto; keep the hero photos clear. */
@media (max-width: 599px) {
	.ec-disc-hero__motto {
		display: none;
	}
}
