/* Email campaigns we've designed (Scott, 23 November 2026; parts/service/email-show.php). The phones follow the Social
   Media page's showcase (social.css); here each screen is a mail app with the email scrolling top to bottom and back. */
.em-show { position: relative; overflow: hidden; background: radial-gradient(60% 70% at 85% 30%, rgba(101, 203, 229, .2), transparent 70%), radial-gradient(50% 60% at 10% 90%, rgba(238, 75, 157, .16), transparent 70%), linear-gradient(160deg, var(--base) 20%, #1b0a4f 100%); }
.em-show__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.em-show__text h2 { margin: 6px 0 18px; }
.em-show__text .lead { color: var(--white); }
.em-show__text p { color: var(--soft); max-width: 48ch; }

/* The phones */
.em-phones { position: relative; height: clamp(520px, 46vw, 640px); }
.em-phone { position: absolute; left: 50%; top: 50%; width: clamp(230px, 20vw, 290px); aspect-ratio: 9 / 19; border-radius: 40px; padding: 10px; background: linear-gradient(145deg, #2a2a3a, #0b0b14); box-shadow: 0 0 0 2px rgba(255, 255, 255, .12) inset, 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .6); }
.em-phone--front { transform: translate(-30%, -50%) rotate(4deg); z-index: 2; }
.em-phone--back { transform: translate(-95%, -46%) rotate(-9deg) scale(.86); opacity: .8; filter: saturate(.85); z-index: 1; }
.em-phone__screen { position: relative; height: 100%; border-radius: 31px; overflow: hidden; background: #fff; color: #111; display: flex; flex-direction: column; }
.em-phone__bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px 4px; font: 700 11px/1 var(--sans); }
.em-phone__notch { width: 74px; height: 20px; border-radius: var(--r-video); background: #0b0b14; }
.em-phone__bar i { width: 22px; height: 10px; border-radius: 3px; border: 1.5px solid #111; position: relative; }
.em-phone__bar i::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: #111; border-radius: 1px; }
.em-phone__mail { padding: 6px 14px 10px; border-bottom: 1px solid #e8e8ee; }
.em-phone__back { display: block; font: 600 11px/1 var(--sans); color: #2f6fe4; margin-bottom: 8px; }
.em-phone__back::before { content: "\2039"; margin-right: 4px; font-size: 14px; }
.em-phone__from { display: flex; align-items: center; gap: 8px; }
.em-phone__from span:last-child { display: grid; min-width: 0; }
.em-phone__from b { font: 700 12px/1.2 var(--sans); }
.em-phone__from small { font: 400 10.5px/1.3 var(--sans); color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-phone__av { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #384170; color: #fff; font: 700 12px/1 var(--sans); }
.em-phone__view { flex: 1; background-repeat: no-repeat; background-size: 100% auto; background-position: 50% 0; }
@media (prefers-reduced-motion: no-preference) {
	.em-show.is-moving .em-phone__view { animation: em-scroll 30s ease-in-out infinite; }
	.em-show.is-moving .em-phone--back .em-phone__view { animation-duration: 36s; animation-delay: -9s; }
	.em-phones:hover .em-phone__view { animation-play-state: paused; }
	.em-phone--front { animation: em-float 7s ease-in-out infinite alternate; }
}
/* Read the top, scroll down, rest at the foot, then back up. */
@keyframes em-scroll { 0%, 10% { background-position: 50% 0; } 45%, 55% { background-position: 50% 100%; } 90%, 100% { background-position: 50% 0; } }
@keyframes em-float { from { transform: translate(-30%, -50%) rotate(4deg); } to { transform: translate(-30%, -52%) rotate(3deg); } }

@media (max-width: 960px) {
	.em-show__top { grid-template-columns: minmax(0, 1fr); }
	.em-phones { height: 520px; max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 760px) {
	.em-phones { height: 470px; }
	.em-phone { width: 210px; border-radius: 34px; padding: 8px; }
	.em-phone__screen { border-radius: 27px; }
	.em-phone--back { transform: translate(-88%, -46%) rotate(-9deg) scale(.84); }
}
