/* Website 7.7 preview (owner, 30 Nov 2026: "more engaging, people using it"). Home page only.
   1. Talk. Play. Grow.: three photos of golfers using CoachTalk, each with a short exchange laid over it.
      Wide (1024 px and up): three cards in a row. Tablet (700 to 1023 px): one card per row, photo and words side by side,
      the middle one mirrored. Phone (under 700 px): photo on top, words under it.
   2. Watch the film: the words beside the film, a photo poster with "Meet your coach" on it.
   Photos stay photos in both themes; everything else uses the colour tokens of css/site.css. */

/* ---------- 1. Talk. Play. Grow. ---------- */
.p77-anchor { position: absolute; top: 0; left: 0; }
.p77 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 34px); align-items: start; }
.p77-card { display: grid; gap: 22px; min-width: 0; }
.p77-media { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; background: #0E1626; box-shadow: var(--shadow-2); isolation: isolate; }
.p77-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }
.p77-play .p77-media > img { object-position: 80% 50%; }
.p77-grow .p77-media > img { object-position: 60% 40%; }
/* a soft shade where the words sit, so they read on any photo */
.p77-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 16, 31, 0) 0%, rgba(8, 16, 31, .34) 45%, rgba(8, 16, 31, .72) 100%); }
.p77-grow .p77-media::after { top: 0; bottom: auto; height: 48%; background: linear-gradient(0deg, rgba(8, 16, 31, 0) 0%, rgba(8, 16, 31, .18) 50%, rgba(8, 16, 31, .42) 100%); }

.p77-chat { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; display: grid; gap: 8px; margin: 0; }
.p77-chat.p77-top { top: 14px; bottom: auto; right: auto; max-width: min(64%, 300px); }
.p77-b { margin: 0; max-width: 88%; padding: 10px 14px 11px; border-radius: 18px; font: 500 15px/1.42 var(--f-text); letter-spacing: -.003em; box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .6); overflow-wrap: anywhere; }
.p77-top .p77-b { max-width: none; }
.p77-you { justify-self: end; background: rgba(255, 255, 255, .95); color: #0A1A33; border-bottom-right-radius: 6px; }
.p77-coach { justify-self: start; background: #0B63E5; color: #FFFFFF; border-bottom-left-radius: 6px; }
.p77-who { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; font: 700 12px/1 var(--f-text); letter-spacing: .02em; color: rgba(255, 255, 255, .9); }
.p77-who img { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: #FFFFFF; flex: none; }
.p77-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.p77-acts span { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; font: 600 13.5px/1 var(--f-text); box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .6); }
.p77-yes { background: #FFFFFF; color: #0849AD; }
.p77-no { background: rgba(8, 16, 31, .38); color: #FFFFFF; border: 1px solid rgba(255, 255, 255, .7); }

.p77-copy { display: grid; gap: 10px; align-content: start; padding-inline: 4px; }
.p77-step { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 14px/1.2 var(--f-text); color: var(--ink-3); }
.p77-n { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font: 800 13px/1 var(--f-display); letter-spacing: .02em; }
.p77-copy .h3 { margin: 4px 0 0; }
.p77-d { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.56; }
.p77-copy .k74 { margin-top: 2px; }

/* the bubbles rise in once, one after the other (only once the script is running: js/people77.js sets data-p77-ready) */
.p77[data-p77-ready] .p77-chat > * { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.p77[data-p77-ready] .is-in .p77-chat > * { opacity: 1; transform: none; }
.p77[data-p77-ready] .is-in .p77-chat > :nth-child(2) { transition-delay: .55s; }
@media (prefers-reduced-motion: reduce) {
  .p77[data-p77-ready] .p77-chat > * { opacity: 1; transform: none; transition: none; }
}

/* tablet: one card per row, photo and words side by side, the middle one mirrored */
@media (min-width: 700px) and (max-width: 1023px) {
  .p77 { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 860px; margin-inline: auto; }
  .p77-card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
  .p77-play .p77-media { order: 2; }
  .p77-media { aspect-ratio: 1 / 1; }
  .p77-grow .p77-media > img { object-position: 0% 40%; } /* keeps his face clear of the bubble in the square crop */
}
/* phone: photo on top, words under it */
@media (max-width: 699px) {
  .p77 { grid-template-columns: minmax(0, 1fr); gap: 48px; max-width: 520px; margin-inline: auto; }
  .p77-card { gap: 18px; }
  .p77-media { border-radius: 22px; }
  .p77-chat { left: 12px; right: 12px; bottom: 12px; }
  .p77-chat.p77-top { top: 12px; max-width: min(62%, 250px); }
  .p77-b { font-size: 14.5px; padding: 9px 12px 10px; }
  .p77-d { font-size: 16.5px; }
}

/* ---------- 2. Watch the film ---------- */
.film-sec.film77 { background: var(--bg); }
.film77-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(36px, 7vw, 104px); align-items: center; max-width: 1040px; }
.film77-copy { display: grid; gap: 16px; justify-items: start; align-content: center; }
.film77-copy .h2, .film77-copy .lead { margin: 0; }
.film77-k { margin-top: 10px; }
.film77-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.film77-list li { position: relative; padding-left: 22px; font: 500 17px/1.45 var(--f-text); color: var(--ink-2); }
.film77-list li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.film-sec.film77 .film-block { display: block; max-width: none; margin: 0; width: 100%; }
.film-sec.film77 .film-frame { margin: 0 auto; width: 100%; }
/* the poster: a golfer at sunset, "Meet your coach" and the play button in the dark lower half */
.film77 .fp74 { background: linear-gradient(180deg, rgba(8, 16, 31, 0) 38%, rgba(8, 16, 31, .35) 62%, rgba(8, 16, 31, .78) 100%), url(/site74/img/m77-film.jpg) center top / cover no-repeat; }
.film77 .fp74 .pp-in { align-self: end; gap: 10px; padding: 0 20px clamp(36px, 9%, 58px); }
.film77 .fp-dial { width: 128px; height: 128px; }
.film77 .fp74 .pt-title, .film77 .fp74 .pt-meta { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
.film77 .fp74 .pt-title { font: 800 clamp(24px, 2.4vw, 30px)/1.15 var(--f-display); letter-spacing: -.02em; color: #FFFFFF; }
.film77 .fp74 .pt-meta { max-width: 24ch; font-size: 13.5px; color: rgba(255, 255, 255, .78); }
@media (max-width: 859px) {
  .film77-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 560px; }
  .film77-copy { justify-items: center; text-align: center; }
  .film77-list { justify-items: center; }
  .film77-list li { padding-left: 0; }
  .film77-list li::before { position: static; display: inline-block; vertical-align: middle; margin: -3px 10px 0 0; }
  .film-sec.film77 .film-frame { max-width: 320px; }
}
@media (max-width: 380px) {
  .film-sec.film77 .film-frame { max-width: 288px; }
  .film77 .fp-dial { width: 108px; height: 108px; }
}
