/* Datum 2026: Social Media page. Builds on home.css, service.css (the hero), pricing.css (package cards) and work.css (case study cards). */
.so-packages .h-head p, .so-examples .h-head p { color: var(--soft); max-width: 46ch; }
.so-small { margin-top: 18px; }
.so-small a { color: var(--white); }
.so-examples { background: linear-gradient(160deg, var(--base) 20%, #1b0a4f 100%); }
.so-flip { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.so-work__grid { list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .so-work__grid { grid-template-columns: minmax(0, 1fr); } }


/* ---------- Social content we've created (Scott, 18 November 2026; parts/social/showcase.php) ---------- */
.so-show { position: relative; overflow: hidden; background: radial-gradient(60% 70% at 85% 30%, rgba(238, 75, 157, .22), transparent 70%), radial-gradient(50% 60% at 10% 90%, rgba(101, 203, 229, .14), transparent 70%), linear-gradient(160deg, var(--base) 20%, #1b0a4f 100%); }
.so-show__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.so-show__text h2 { margin: 6px 0 18px; }
.so-show__text .lead { color: var(--white); }
.so-show__text p { color: var(--soft); max-width: 48ch; }
.so-show__text .btn { margin-top: 10px; }

/* The phones */
.so-phones { position: relative; height: clamp(520px, 46vw, 640px); }
.so-phone { position: absolute; 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); }
.so-phone--front { left: 50%; top: 50%; transform: translate(-30%, -50%) rotate(4deg); z-index: 2; }
.so-phone--back { left: 50%; top: 50%; transform: translate(-95%, -46%) rotate(-9deg) scale(.86); opacity: .75; filter: saturate(.85); z-index: 1; }
.so-phone__screen { position: relative; height: 100%; border-radius: 31px; overflow: hidden; background: #fff; color: #111; display: flex; flex-direction: column; }
.so-phone__bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px 4px; font: 700 11px/1 var(--sans); }
.so-phone__notch { width: 74px; height: 20px; border-radius: var(--r-video); background: #0b0b14; }
.so-phone__bar i { width: 22px; height: 10px; border-radius: 3px; border: 1.5px solid #111; position: relative; }
.so-phone__bar i::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: #111; border-radius: 1px; }
.so-phone__app { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px 8px; border-bottom: 1px solid #eee; font: 800 15px/1 var(--sans); letter-spacing: -.01em; }
.so-phone__app svg { fill: none; stroke: #111; stroke-width: 2; }
.so-phone__view { position: relative; flex: 1; overflow: hidden; }
.so-feed { list-style: none; margin: 0; padding: 0; will-change: transform; }
.so-post { padding-bottom: 12px; }
.so-post__head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; }
.so-post__av { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font: 800 12px/1 var(--sans); background: linear-gradient(135deg, var(--pink), var(--indigo)); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--pink); }
.so-post__who { display: grid; line-height: 1.15; min-width: 0; }
.so-post__who b { font: 700 11px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-post__who small { font: 400 9.5px/1.2 var(--sans); color: #777; }
.so-post__more { margin-left: auto; font-size: 9px; letter-spacing: 1px; color: #555; }
.so-post img { display: block; width: 100%; height: auto; background: #eee; }
.so-post__acts { display: flex; gap: 12px; padding: 9px 12px 4px; }
.so-post__acts svg { fill: none; stroke: #111; stroke-width: 1.8; stroke-linejoin: round; }
.so-post__save { margin-left: auto; }
.so-post__heart { display: inline-flex; }
.so-post.is-liked .so-post__heart svg { fill: #ED4956; stroke: #ED4956; animation: so-heart .5s var(--ease); }
.so-post__cap { margin: 2px 12px 0; font: 400 10.5px/1.35 var(--sans); color: #222; }
.so-post__cap b { font-weight: 700; }
@keyframes so-heart { 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
/* A heart that floats up off the front phone now and then. */
.so-phones__like { position: absolute; z-index: 3; left: 62%; top: 58%; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--pink); box-shadow: var(--shadow-1); opacity: 0; transform: scale(.4); pointer-events: none; }
.so-phones__like svg { fill: #fff; }
.so-phones__like.is-on { animation: so-like 1.6s var(--ease) both; }
@keyframes so-like { 0% { opacity: 0; transform: translateY(0) scale(.4); } 18% { opacity: 1; transform: translateY(-6px) scale(1.08); } 30% { transform: translateY(-10px) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-70px) scale(.9); } }
@media (prefers-reduced-motion: no-preference) {
	.so-show.is-moving .so-feed { animation: so-scroll var(--so-dur, 70s) linear infinite; }
	.so-show.is-moving .so-phone--back .so-feed { animation-duration: calc(var(--so-dur, 70s) * 1.25); animation-delay: -12s; }
	.so-show.is-paused .so-feed { animation-play-state: paused; }
	.so-phone--front { animation: so-float 7s ease-in-out infinite alternate; }
}
@keyframes so-scroll { to { transform: translateY(-50%); } }
@keyframes so-float { from { transform: translate(-30%, -50%) rotate(4deg); } to { transform: translate(-30%, -52%) rotate(3deg); } }

/* The gallery: every post at its own shape, filtered by client. */
.so-gal { margin-top: clamp(48px, 6vw, 88px); }
.so-gal__chips { margin-bottom: 22px; }
.so-gal__grid { list-style: none; margin: 0; padding: 0; columns: 4 240px; column-gap: 14px; }
.so-gal__item { break-inside: avoid; margin: 0 0 14px; }
.so-gal__item[hidden] { display: none; }
.so-gal__item a { position: relative; display: block; border-radius: var(--r-video); overflow: hidden; background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.so-gal__item img { display: block; width: 100%; height: auto; transition: transform .6s var(--ease); }
.so-gal__item a:hover, .so-gal__item a:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--pink), 0 20px 40px -20px rgba(0, 0, 0, .7); outline: none; }
.so-gal__item a:hover img { transform: scale(1.03); }
.so-gal__label { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 34px 14px 12px; background: linear-gradient(to top, rgba(2, 0, 62, .92), rgba(2, 0, 62, 0)); color: var(--white); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.so-gal__label b { font: 700 14px/1.2 var(--sans); }
.so-gal__label span { font: 400 12.5px/1.3 var(--sans); color: var(--soft); }
.so-gal__item a:hover .so-gal__label, .so-gal__item a:focus-visible .so-gal__label { opacity: 1; transform: none; }
.so-gal__more { text-align: center; margin: 18px 0 0; }
@media (hover: none) { .so-gal__label { opacity: 1; transform: none; } }

@media (max-width: 960px) {
	.so-show__top { grid-template-columns: minmax(0, 1fr); }
	.so-phones { height: 520px; max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 760px) {
	.so-phones { height: 470px; }
	.so-phone { width: 210px; border-radius: 34px; padding: 8px; }
	.so-phone__screen { border-radius: 27px; }
	.so-phone--back { transform: translate(-88%, -46%) rotate(-9deg) scale(.84); }
	.so-gal__grid { columns: 2; column-gap: 10px; }
	.so-gal__item { margin-bottom: 10px; }
	.so-gal.is-short .so-gal__item.is-extra { display: none; }
	.so-gal__label { padding: 26px 10px 9px; } .so-gal__label b { font-size: 12.5px; } .so-gal__label span { font-size: 11.5px; }
}
@media (min-width: 761px) { .so-gal__more { display: none; } }

/* Panasonic Instagram stories (18 November 2026): in the front phone and as tall tiles in the gallery. */
.so-story { position: absolute; inset: 0; z-index: 4; background: #000; opacity: 0; visibility: hidden; transform: scale(1.04); transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.so-story.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.so-story__poster, .so-story__vid, .so-story__vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.so-story__vid iframe { pointer-events: none; }
.so-story__bar { position: absolute; z-index: 2; top: 44px; left: 10px; right: 10px; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .4); overflow: hidden; }
.so-story__bar i { display: block; height: 100%; width: 0; background: #fff; }
.so-story.is-on .so-story__bar i { animation: so-bar var(--d, 14s) linear forwards; }
@keyframes so-bar { to { width: 100%; } }
.so-story__head { position: absolute; z-index: 2; top: 54px; left: 10px; display: flex; align-items: center; gap: 7px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.so-story__head b { font: 700 11px/1 var(--sans); }
.so-story__head small { font: 400 10px/1 var(--sans); opacity: .85; }
.so-gal__item--story a { aspect-ratio: var(--ar, 9 / 16); background: #000; } /* Each film in its own shape (Scott, 21 November 2026). */
.so-gal__item--story img, .so-gal__vid, .so-gal__vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.so-gal__vid iframe { pointer-events: none; opacity: 0; transition: opacity .6s; }
.so-gal__vid iframe.is-ready { opacity: 1; }
.so-gal__play { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(2, 0, 62, .55); backdrop-filter: blur(4px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7) inset; }
.so-gal__play svg { fill: #fff; margin-left: 2px; }
.so-gal__item--story .so-gal__label { z-index: 2; }
.so-vdlg { width: min(420px, 92vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--r-lg); background: #000; overflow: visible; }
.so-vdlg::backdrop { background: rgba(2, 0, 62, .88); backdrop-filter: blur(6px); }
.so-vdlg__frame { position: relative; aspect-ratio: var(--ar, 9 / 16); max-height: 92vh; border-radius: var(--r-lg); overflow: hidden; }
.so-vdlg.is-wide { width: min(960px, 92vw); } /* Landscape films open wider. */
.so-vdlg__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.so-vdlg .w-lightbox__close { position: absolute; top: -52px; right: 0; }
@media (max-width: 760px) { .so-story__bar { top: 38px; } .so-story__head { top: 47px; } .so-vdlg .w-lightbox__close { top: 8px; right: 8px; z-index: 2; } }
.so-story::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 110px; background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); pointer-events: none; }
