/* social-media-email.css: the Social media & email page's own placing and sizing. Components and tokens come from
   design\. Scenes keep their words at full size (Lessons 1-3); glass stays on the calm side of each photo, clear of
   every face (Lesson 4). */

/* ---------- 1. the header: a band of her counter, her notifications on its calm side; the words and box under it ---------- */
.sochead__band { position: relative; overflow: hidden; height: 440px; background: var(--c-night-3); }
.sochead__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 30%; }
.sochead__wash { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(13, 13, 15, 0.18) 0%, rgba(13, 13, 15, 0) 22%, rgba(13, 13, 15, 0) 72%, var(--c-night) 100%); }
.sochead__scene { position: absolute; inset: 0; z-index: 2; }
.sochead__band .stop { top: 14px; right: 14px; bottom: auto; }
.sochead__in { display: grid; gap: 24px; padding-block: 8px 40px; }
.sochead__copy { display: grid; gap: 14px; }
.sochead .phead__line { margin-top: 0; }
.sochead .phead__note { margin-top: 0; }
/* from 641 to 1149 px the photo cannot be cropped sideways: mirrored, her face sits left of the stack */
@media (min-width: 641px) and (max-width: 1149px) { .sochead__photo { transform: scaleX(-1); } }
@media (min-width: 760px) {
  .sochead__band { height: clamp(380px, 44vh, 500px); }
  .sochead__band .stop { top: auto; bottom: 18px; right: 40px; }
}
@media (min-width: 1000px) {
  .sochead__in { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: center; gap: 56px; padding-block: 12px 48px; }
  .sochead .phead__title { font-size: min(clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem), 7vh); }
}

/* ---------- 2. the month, the signature ---------- */
.somonth { --ground-x: 6%; --ground-y: 100%; }
.somonth__in { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1100px) { .somonth__in { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 44px; } .somonth__head { padding-top: 64px; } }
.somonth__head { margin: 0; }
.somonth__stage { position: relative; padding-top: 48px; }
.somonth__scene { position: relative; overflow: visible; }
.somonth__stage .stop { top: 0; right: 0; bottom: auto; }

/* ---------- 3. what's in it: three framed cards, one moment playing at a time ---------- */
.soinc .head { margin-bottom: 8px; }
.soinc__stage { position: relative; padding-top: 48px; }
.soinc__stage .stop { top: 0; right: 0; bottom: auto; }
.soinc .tc { display: grid; gap: 28px; overflow: visible; }
@media (min-width: 1000px) { .soinc .tc { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.tc-card { display: grid; gap: 16px; align-content: start; margin: 0; }
.tc-media { position: relative; overflow: hidden; height: 480px; border-radius: var(--radius-xl); background: var(--c-night-3); box-shadow: var(--shadow-l); }
@media (min-width: 1000px) { .tc-media { height: 520px; } }
.tc-card.on .tc-media { box-shadow: 0 0 0 3px var(--c-accent), var(--shadow-l); }
.tc-fill { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.tc-card:nth-child(1) .tc-fill { object-position: 40% 50%; }
.tc-card:nth-child(2) .tc-fill { object-position: 62% 50%; }
.tc-card:nth-child(3) .tc-fill { object-position: 71% 50%; }
.tc-cap { display: grid; gap: 6px; }
.tc-cap b { font: 700 1.25rem/1.25 var(--font-display); }
.tc-cap span { color: var(--c-ink-soft); }
.tc-link { margin-top: 4px; justify-self: start; }

/* ---------- 4. your photos, your voice: type set as the picture ---------- */
.sovoice { --ground-x: 92%; --ground-y: 0%; }
.sovoice__stage { position: relative; max-width: 1000px; margin: 0 auto; padding-top: 48px; }
.sovoice__stage .stop { top: 0; right: 0; bottom: auto; }
.sovoice__line { max-width: 1000px; margin: 20px auto 0; }

/* ---------- 5. the report: the owner at her laptop, the month's report beside her ---------- */
.soreport__in { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1000px) { .soreport__in { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; } }
.soreport__copy { display: grid; gap: 20px; }
.soreport__copy .head__line { margin: 0; }
.soreport__media { position: relative; overflow: hidden; height: 700px; border-radius: var(--radius-xl); background: var(--c-night-3); box-shadow: var(--shadow-l); }
.soreport__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 45% 50%; }
.soreport__scene { position: absolute; inset: 0; }
.soreport__media .stop { top: 14px; left: 14px; right: auto; bottom: auto; }
@media (max-width: 479px) { .soreport__media { margin-inline: calc(var(--gutter) * -1); border-radius: 0; } }
@media (min-width: 600px) { .soreport__media { height: 600px; } .soreport__photo { object-position: 100% 50%; } }

/* ---------- 6. the close: her counter as a band, the words and the box under it ---------- */
.soclose { padding-top: 0; }
.soclose::before { display: none; }
.soclose .close__media { position: relative; inset: auto; z-index: 0; height: clamp(340px, 38vw, 560px); margin-bottom: 36px; }
.soclose .close__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 13, 15, 0) 70%, var(--c-night) 100%); }
.soclose > .stop { top: 14px; right: 14px; bottom: auto; }
.soclose .close__media .soclose__clip { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 40%; }
.soclose__card { position: absolute; z-index: 1; left: max(var(--gutter), 11%); bottom: 44px; }
.soclose__in { display: grid; gap: 30px; align-items: center; }
@media (min-width: 1000px) { .soclose__in { grid-template-columns: minmax(0, 560px) minmax(0, 420px); justify-content: space-between; gap: 56px; } }
.soclose__words { display: grid; gap: 16px; }
@media (max-width: 759px) {
  .soclose .close__media .soclose__clip { object-position: 60% 40%; }
  .soclose__card { left: auto; right: 16px; bottom: 30px; }
}
