/* Industries: places and sizes its parts; the patterns are design\components.css's (plan.md, Industries). */

/* the header: three tall photos side by side, full-bleed; a kit sequence lands one glass card over each in turn;
   the words in a white card centred over their foot */
.ind-hero { position: relative; isolation: isolate; background: var(--c-paper); padding-bottom: var(--space-6, 48px); }
.ind-hero__panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; height: min(660px, calc(100svh - 120px)); min-height: 520px; }
.ind-hero__panel { position: relative; margin: 0; overflow: hidden; background: var(--c-paper-alt); }
.ind-hero__panel img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ind-hero__panel--medspa img { object-position: 50% 22%; }
.ind-hero__panel--dental img { object-position: 64% 30%; }
.ind-hero__panel--trades img { object-position: 46% 20%; }
.ind-hero__panel .seq-card { left: 50%; top: 50%; width: max-content; max-width: calc(100% - 32px); translate: -50% 0; }
.ind-hero__card { position: relative; z-index: 2; display: grid; justify-items: center; gap: 14px; box-sizing: border-box; width: min(820px, calc(100% - 2 * var(--gutter))); margin: -168px auto 0; padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 56px); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-l); text-align: center; }
.ind-hero__card h1 { font-size: clamp(2.125rem, 1.2rem + 3.2vw, 3.375rem); text-wrap: balance; }
.ind-hero__grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ind-hero__line { font-size: 1.1875rem; line-height: 1.6; color: var(--c-ink-soft); max-width: 36em; }
.ind-hero__card .cta-row { justify-content: center; margin-top: var(--space-2, 8px); }
.ind-hero__stop { top: 16px; right: 16px; }
@media (max-width: 760px) {
  /* the phone: three narrow panels; the cards stack across all three, low, clear of the faces at the top */
  .ind-hero__panels { position: relative; height: 460px; min-height: 0; gap: 4px; }
  .ind-hero__panel { position: static; overflow: visible; }
  .ind-hero__panel .seq-card { left: 12px; right: 12px; width: auto; max-width: none; translate: none; }
  .ind-hero__panel--medspa .seq-card { top: 214px; }
  .ind-hero__panel--dental .seq-card { top: 288px; }
  .ind-hero__panel--trades .seq-card { top: 362px; }
  .ind-hero__card { margin-top: -28px; }
}

/* kinds: trade-type at display size on the designed ground */
.ind-kinds__stage { position: relative; max-width: 760px; margin-inline: auto; }
.scene.ind-kinds__scene { width: 100%; height: 420px; }
.ind-kinds__stop { top: 0; right: -8px; }
@media (max-width: 600px) { .scene.ind-kinds__scene { height: 360px; } }

/* the chapters on footage: each scene over its picture, clear of the faces; on the phone the scene sits low and the faces show above it */
.ind-medspa .chapter__media img { object-position: 80% 40%; }
.ind-medspa .chapter__media::after { background: linear-gradient(90deg, rgba(11, 31, 59, 0.3) 0%, rgba(11, 31, 59, 0) 55%); }
.ind-medspa .scene.chapter__scene { left: 4%; top: 50%; width: min(520px, 52%); height: 500px; transform: translateY(-50%); }
.ind-medspa .chapter__media { min-height: 680px; }
.ind-therapy .chapter__media video { object-position: 38% 40%; }
.ind-therapy .chapter__media::after { background: linear-gradient(270deg, rgba(11, 31, 59, 0.28) 0%, rgba(11, 31, 59, 0) 52%); }
.ind-therapy .scene.chapter__scene { right: 3%; top: 50%; width: min(420px, 44%); height: 560px; transform: translateY(-50%); }
.ind-therapy .chapter__media { min-height: 680px; }
@media (max-width: 1000px) {
  .ind-medspa .chapter__media, .ind-therapy .chapter__media { min-height: 820px; }
  .ind-medspa .chapter__media img { object-position: 74% 30%; }
  .ind-therapy .chapter__media video { object-position: 42% 20%; }
  .ind-medspa .scene.chapter__scene, .ind-therapy .scene.chapter__scene { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; height: 580px; transform: none; }
  .ind-therapy .scene.chapter__scene { height: 620px; }
  .ind-medspa .chapter__media > .stop, .ind-therapy .chapter__media > .stop { top: auto; bottom: 604px; } /* just over the scene, in one view with it */
}

/* dental: the words beside a framed clip, out-answer's card over the clip's left edge, clear of the faces at the right */
.ind-dental__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ind-dental__copy { display: grid; gap: 18px; }
.ind-dental__frame { position: relative; }
.ind-dental__media { aspect-ratio: 16 / 10; }
.ind-dental__media video { object-position: 70% 40%; }
.scene.ind-dental__scene { position: absolute; z-index: 2; left: -40px; top: 14%; width: 340px; }
.ind-dental__stop { top: 14px; right: 14px; }
@media (max-width: 900px) {
  .ind-dental__in { grid-template-columns: minmax(0, 1fr); }
  .ind-dental__media { aspect-ratio: 4 / 5; }
  .ind-dental__media video { object-position: 78% 30%; }
  .scene.ind-dental__scene { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; }
}

/* buyers: three-buyers on the designed ground */
.ind-buyers__stage { position: relative; max-width: 1100px; margin-inline: auto; container-type: inline-size; }
@container (width < 760px) { /* one column: the box as tall as its tallest story (802 px at 360 wide), the line held at its foot, so nothing under the cards moves */
  .scene.ind-buyers__scene { min-height: 810px; }
  .ind-buyers__stage .ind-buyers__scene .tb { align-self: stretch; align-content: space-between; } /* three classes: the scene's own .tb rules come later */
}
.scene.ind-buyers__scene { width: 100%; }
.ind-buyers__stop { top: -6px; right: -6px; }

/* trades: the framed photo, clock24 over its lower right corner (the face is at the top); the words beside */
.ind-trades__in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.ind-trades__frame { position: relative; margin-bottom: 60px; }
.ind-trades__photo { aspect-ratio: 4 / 3; }
.ind-trades__photo img { object-position: 64% 0%; }
.ind-trades__stage { position: absolute; z-index: 2; right: -9%; bottom: -60px; width: 448px; } /* 0.8 of clock24's 560: its 13 px text stays whole (at 440 or 420 it rounds to 12.9) */
.scene.ind-trades__scene { width: 100%; aspect-ratio: 1; }
.ind-trades__stop { top: -6px; right: -6px; }
.ind-trades__copy { display: grid; gap: 18px; }
@media (max-width: 900px) {
  .ind-trades__in { grid-template-columns: minmax(0, 1fr); }
  .ind-trades__frame { margin-bottom: 0; }
  .ind-trades__photo { aspect-ratio: auto; height: 520px; }
  .ind-trades__photo img { object-position: 60% 0%; }
  .ind-trades__stage { right: 50%; bottom: 14px; width: 300px; translate: 50% 0; } /* on the photo, under the face */
}

/* anyway: the kit chat in glass over a framed photo of a florist at work, at the left over her shoulder */
.ind-anyway__frame { position: relative; max-width: 1100px; margin-inline: auto; }
.ind-anyway__photo { aspect-ratio: 16 / 9; }
.ind-anyway__photo img { object-position: 50% 50%; }
.ind-anyway__chat { position: absolute; z-index: 2; left: 5%; top: 50%; transform: translateY(-50%); }
.ind-anyway__stop { top: 14px; right: 14px; }
.ind-anyway__ctas { display: grid; justify-items: center; margin-top: var(--space-5); }
.ind-anyway__ctas .cta-row { margin-top: var(--space-3); }
@media (max-width: 760px) {
  .ind-anyway__photo { aspect-ratio: auto; height: 560px; }
  .ind-anyway__photo img { object-position: 74% 50%; }
  .ind-anyway__chat { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; transform: none; } /* on the photo, under her phone */
}

/* the close */
.ind-close .close-foot__media img { object-position: 50% 30%; }
