/**
 * طراح سایت.
 *
 * Black, white, and one typeface. The cafe's own pages are cream and navy, so
 * this one is built to read as a signature on the back of the work rather than
 * another page of it — the shift in palette is the whole design.
 */

.mim-designer {
	--mim-ink: #0B0B0C;
	--mim-paper: #F4F4F5;
	--mim-dim: rgba(244, 244, 245, .55);
	--mim-line: rgba(244, 244, 245, .14);

	padding: clamp(48px, 9vw, 120px) var(--mim-gutter, 20px);
	background: var(--mim-ink);
	color: var(--mim-paper);
	font-family: var(--mim-font, inherit);
}

.mim-designer *,
.mim-designer *::before {
	box-sizing: border-box;
}

.mim-designer__inner {
	max-width: 1080px;
	margin-inline: auto;
}

/* ── Hero ─────────────────────────────────────────────────── */

.mim-designer__hero {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
	padding-bottom: clamp(40px, 7vw, 84px);
	border-bottom: 1px solid var(--mim-line);
}

.mim-designer__photo {
	position: relative;
	margin: 0;
	width: 280px;
	max-width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	/* A circle rather than a card: this is a portrait, not a product shot. */
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--mim-line), 0 30px 60px -40px rgba(0, 0, 0, .9);
}

.mim-designer__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Desaturated in CSS rather than in a second file: the original stays
	   untouched in the media library, and turning the colour back on is one
	   control instead of a re-export. */
	transition: filter .5s ease, transform .5s ease;
}

.mim-designer.is-mono .mim-designer__photo img {
	filter: grayscale(1) contrast(1.06);
}

/* Colour on hover — a small reward, and proof the original is intact. */
.mim-designer.is-mono .mim-designer__photo:hover img {
	filter: grayscale(0);
	transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
	.mim-designer__photo img {
		transition: none;
	}

	.mim-designer.is-mono .mim-designer__photo:hover img {
		transform: none;
	}
}

.mim-designer__eyebrow {
	margin: 0 0 14px;
	font-family: var(--mim-font-latin, inherit);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--mim-dim);
}

.mim-designer__name {
	margin: 0 0 8px;
	font-size: clamp(34px, 7vw, 68px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.01em;
}

.mim-designer__role {
	margin: 0 0 20px;
	font-size: clamp(15px, 2.2vw, 18px);
	color: var(--mim-dim);
}

.mim-designer__text {
	margin: 0 0 26px;
	max-width: 52ch;
	font-size: 15.5px;
	line-height: 2.1;
	color: rgba(244, 244, 245, .78);
}

/* ── Buttons ──────────────────────────────────────────────── */

.mim-designer__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mim-designer__actions--center {
	justify-content: center;
}

.mim-designer__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 26px;
	background: var(--mim-paper);
	border: 1px solid var(--mim-paper);
	border-radius: 999px;
	font-weight: 700;
	font-size: 14.5px;
	color: var(--mim-ink);
	text-decoration: none;
	transition: transform .16s ease, background-color .2s ease, color .2s ease;
}

.mim-designer__btn:hover {
	transform: translateY(-2px);
	color: var(--mim-ink);
}

.mim-designer__btn--ghost {
	background: transparent;
	border-color: var(--mim-line);
	color: var(--mim-paper);
}

.mim-designer__btn--ghost:hover {
	background: var(--mim-paper);
	color: var(--mim-ink);
	border-color: var(--mim-paper);
}

.mim-designer__btn--big {
	padding: 15px 34px;
	font-size: 15.5px;
}

/* ── What was built ───────────────────────────────────────── */

.mim-designer__work {
	padding: clamp(40px, 7vw, 84px) 0;
	border-bottom: 1px solid var(--mim-line);
}

.mim-designer__heading {
	margin: 0 0 clamp(24px, 4vw, 44px);
	font-size: clamp(22px, 3.6vw, 32px);
	font-weight: 800;
}

.mim-designer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: clamp(20px, 3vw, 36px);
}

.mim-designer__item {
	position: relative;
	padding-top: 22px;
	border-top: 1px solid var(--mim-line);
}

.mim-designer__num {
	display: block;
	margin-bottom: 12px;
	font-family: var(--mim-font-latin, inherit);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .18em;
	color: var(--mim-dim);
}

.mim-designer__item-title {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.6;
}

.mim-designer__item-text {
	margin: 0;
	font-size: 14px;
	line-height: 2;
	color: rgba(244, 244, 245, .68);
}

/* ── Call to action ───────────────────────────────────────── */

.mim-designer__cta {
	padding-top: clamp(44px, 8vw, 96px);
	text-align: center;
}

.mim-designer__cta-title {
	margin: 0 0 12px;
	font-size: clamp(24px, 5vw, 44px);
	font-weight: 800;
	line-height: 1.35;
}

.mim-designer__cta-text {
	max-width: 46ch;
	margin: 0 auto 30px;
	font-size: 15px;
	line-height: 2;
	color: var(--mim-dim);
}

.mim-designer__signature {
	margin: clamp(40px, 7vw, 80px) 0 0;
	font-family: var(--mim-font-latin, inherit);
	font-size: 12px;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: rgba(244, 244, 245, .3);
}

/* ── Responsive ───────────────────────────────────────────── */

/*
 * 900px, not 760px.
 *
 * The two-column hero needs 300px for the portrait plus a gap of up to 64px
 * before the text column has any usable width left. Between 760 and 900 it was
 * technically still two columns and practically a portrait beside a ribbon of
 * two-word lines — and a tablet in portrait, or a large phone in landscape,
 * sits exactly in that band. The picture never centred there because the stack
 * had not happened yet.
 */
@media (max-width: 900px) {
	.mim-designer__hero {
		grid-template-columns: 1fr;
		text-align: center;
		/* Belt and braces with the `margin: 0 auto` below: a grid item is
		   stretched by default, and if anything ever gives the figure an
		   intrinsic width the auto margins have nothing left to distribute.
		   `justify-items` centres the track itself, so it holds either way. */
		justify-items: center;
	}

	/* `margin: 0 auto` rather than `margin-inline: auto`, because the logical
	   property alone loses to the `margin: 0` in the base rule. */
	.mim-designer__photo {
		width: min(220px, 62%);
		margin: 0 auto;
		justify-self: center;
	}

	.mim-designer__text {
		margin-inline: auto;
	}

	.mim-designer__actions {
		justify-content: center;
	}

	.mim-designer__btn {
		flex: 1 1 auto;
	}
}

/* The Telegram button carries its own blue — it is the one action on the page
   that goes somewhere else, and it should look like it. */
.mim-designer__btn--telegram {
	background: #0466C8;
	border-color: #0466C8;
	color: #FFFFFF;
}

.mim-designer__btn--telegram:hover {
	background: #0353A4;
	border-color: #0353A4;
	color: #FFFFFF;
}
