/**
 * WORKS device mockups — compact Mac + phone, fits inside thumbs.
 */

.device-mockup {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 0;
	pointer-events: none;
}

.device-mockup__scene {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 7% 6%;
	box-sizing: border-box;
}

/* —— MacBook —— */
.device-mockup__mac {
	position: relative;
	width: 68%;
	flex: 0 0 auto;
	z-index: 1;
}

.device-mockup__mac-lid {
	position: relative;
	background: #1a1a1a;
	border: 1.5px solid #000;
	border-radius: 8px 8px 3px 3px;
	padding: 7px 6px 6px;
	box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
}

.device-mockup__mac-cam {
	display: block;
	width: 3px;
	height: 3px;
	margin: 0 auto 4px;
	border-radius: 50%;
	background: #444;
}

.device-mockup__mac-screen {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 2px;
	background-color: #222;
	background-position: top center;
	background-size: cover;
	background-repeat: no-repeat;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.device-mockup__mac-base {
	height: 6px;
	margin: 0 3% -1px;
	background: linear-gradient(180deg, #4a4a4a, #222);
	border-radius: 0 0 6px 6px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* —— Phone —— */
.device-mockup__phone {
	position: relative;
	width: 20%;
	flex: 0 0 auto;
	margin-left: -5%;
	margin-bottom: -1%;
	z-index: 2;
	background: #111;
	border: 1px solid #000;
	border-radius: 10px;
	padding: 3px 2px;
	box-shadow: 0 8px 14px rgba(0, 0, 0, 0.2);
}

.device-mockup__phone-notch {
	position: absolute;
	top: 4px;
	left: 50%;
	width: 22%;
	height: 3px;
	margin-left: -11%;
	border-radius: 3px;
	background: #0a0a0a;
	z-index: 2;
}

.device-mockup__phone-screen {
	aspect-ratio: 9 / 19.5;
	overflow: hidden;
	border-radius: 8px;
	background-color: #222;
	background-position: top center;
	background-size: cover;
	background-repeat: no-repeat;
}

/* —— Card —— */
.device-mockup--card .device-mockup__mac {
	width: 70%;
}
.device-mockup--card .device-mockup__phone {
	width: 22%;
}

.work-image .device-mockup {
	position: absolute;
	inset: 0;
}
.work-image--devices {
	position: relative;
	overflow: hidden;
	background: linear-gradient(160deg, #efece6, #ddd8cf);
	border-style: solid;
	border-color: #ddd;
}
.work-image--devices > span:first-child {
	position: relative;
	z-index: 4;
	color: #333;
	text-shadow: none;
}

/* Archive project cards — mobile MV cover + white type */
.project-visual.has-cover {
	padding: 0;
	align-items: stretch;
	justify-content: flex-end;
	background: #1a1a1a;
	color: #fff;
}
.project-visual__cover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	z-index: 1;
	transform: scale(1.02);
	transition: transform 0.45s ease;
}
.project-card:hover .project-visual__cover {
	transform: scale(1.06);
}
.project-visual__shade {
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.08) 35%, rgba(0, 0, 0, 0.55) 72%, rgba(0, 0, 0, 0.78) 100%);
	pointer-events: none;
}
.project-visual__copy {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 6px;
	width: 100%;
	height: 100%;
	padding: 16px 14px 18px;
	box-sizing: border-box;
	color: #fff;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.project-visual.has-cover .visual-index {
	position: static;
	margin: 0;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.78);
	mix-blend-mode: normal;
}
.project-visual.has-cover .visual-cat {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.88);
}
.project-visual.has-cover .visual-name {
	font-size: 18px;
	line-height: 1.35;
	letter-spacing: -0.04em;
	font-weight: 900;
	max-width: 14em;
}

/* —— Hero —— */
.case-hero-visual.has-devices {
	height: auto;
	min-height: 320px;
	padding: 18px 14px 22px;
	overflow: hidden;
	background: linear-gradient(155deg, #f6f4ee, #e8e3d8);
}
.case-hero-visual.has-devices .case-visual-art,
.case-hero-visual.has-devices .case-visual-bottom {
	display: none;
}
.case-hero-visual .device-mockup {
	min-height: 260px;
	margin-top: 12px;
}
.device-mockup--hero .device-mockup__mac {
	width: 66%;
}
.device-mockup--hero .device-mockup__phone {
	width: 20%;
}

/* —— Flat screenshots on single —— */
.case-devices {
	margin: 8px 0 34px;
	padding: 18px 0 6px;
	border-top: 1px solid #ddd;
}
.case-devices__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 14px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
}
.case-devices__grid {
	display: grid;
	grid-template-columns: 1.35fr 0.65fr;
	gap: 14px;
	align-items: end;
}
.case-devices__item {
	margin: 0;
}
.case-devices__item figcaption {
	margin-top: 8px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: #666;
}
.case-devices__laptop-shell {
	background: #1a1a1a;
	border: 1.5px solid #000;
	border-radius: 10px 10px 4px 4px;
	padding: 10px 8px 8px;
	box-shadow: 0 14px 24px rgba(0, 0, 0, 0.14);
}
.case-devices__laptop-shell .device-mockup__mac-screen {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 2px;
	background: #111;
}
.case-devices__laptop-shell .device-mockup__mac-screen img,
.case-devices__phone-shell .device-mockup__phone-screen img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}
.case-devices__laptop-base {
	height: 7px;
	margin: 0 5%;
	background: linear-gradient(180deg, #555, #222);
	border-radius: 0 0 7px 7px;
}
.case-devices__phone-shell {
	background: #111;
	border: 1px solid #000;
	border-radius: 16px;
	padding: 4px 3px;
	box-shadow: 0 14px 24px rgba(0, 0, 0, 0.16);
	max-width: 150px;
	margin-left: auto;
}
.case-devices__phone-shell .device-mockup__phone-screen {
	aspect-ratio: 9 / 19.5;
	overflow: hidden;
	border-radius: 13px;
	background: #111;
}

/* —— Rail carousel —— */
.stage-works__media--devices {
	background: linear-gradient(155deg, #f0eee8, #ddd8ce) !important;
}
.stage-works__media .device-mockup {
	position: absolute;
	inset: 0;
}
.device-mockup--rail .device-mockup__scene {
	padding: 6% 5%;
}
.device-mockup--rail .device-mockup__mac {
	width: 72%;
}
.device-mockup--rail .device-mockup__phone {
	width: 21%;
	margin-left: -5%;
}
.device-mockup--rail .device-mockup__mac-lid {
	padding: 5px 4px 4px;
	border-radius: 6px 6px 2px 2px;
}
.device-mockup--rail .device-mockup__mac-cam {
	width: 2px;
	height: 2px;
	margin-bottom: 3px;
}
.device-mockup--rail .device-mockup__mac-base {
	height: 4px;
}
.device-mockup--rail .device-mockup__phone {
	border-radius: 9px;
	padding: 2px;
}

@media (max-width: 730px) {
	.case-devices__grid {
		grid-template-columns: 1fr 0.72fr;
	}
}


/* Cover cards: title lives on the image; keep meta + short only below */
.project-card:has(.has-cover) .project-meta {
	margin-top: 12px;
}
.project-card:has(.has-cover) > p {
	margin-top: 8px;
	margin-bottom: 0;
}
.project-card:has(.has-cover) .project-card-bottom {
	margin-top: 18px;
}
.work-image--devices > span:first-child {
	display: none;
}
