/* ==========================================================================
   Round 12: final pass (about). Loaded after the r7 files.

   1. The video player (template-parts/components/video-player.php), on any
      page: a poster in the practice's own media library, a play button, and
      the provider's player created only after the click (assets/js/videos.js).
   2. The video gallery (video-gallery.php): a stage and a playlist.
   3. Why Elite: the welcome with the overview video, the four decisions on
      their own surface, the doctors and team, the patient stories above the
      Google reviews, and both specialties with their booking buttons.
   4. Technology: the closing band, the practice's video beside the Google
      trust card, the two the same height (client item 8).
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Video player
   -------------------------------------------------------------------------- */
.vid { --vid-r: 1.25rem; position: relative; min-width: 0; margin: 0; }
.vid__frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate;
  border-radius: var(--vid-r); background: #120c26;
  box-shadow: 0 1px 0 rgba(26, 18, 54, 0.04), 0 34px 64px -44px rgba(26, 18, 54, 0.7);
}
.vid__frame > .vid__poster,
.vid__ph {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* No poster yet: the brand's own colours, never a request to YouTube. */
.vid__ph {
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(58, 236, 241, 0.32), transparent 55%),
    linear-gradient(135deg, #2b1a4d 0%, #462d88 55%, #0b6f7d 100%);
}
/* A soft shade under the chips, gone once the video plays. */
.vid__frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 12, 38, 0) 52%, rgba(18, 12, 38, 0.45) 100%);
  transition: opacity 0.3s ease;
}
.vid.is-playing .vid__frame::after { opacity: 0; }
.vid__frame:hover > .vid__poster { transform: scale(1.03); }

.vid__play {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  color: var(--ortho); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.vid__btn {
  display: grid; place-items: center; width: clamp(3.75rem, 3rem + 2.2vw, 5.25rem); height: clamp(3.75rem, 3rem + 2.2vw, 5.25rem);
  border-radius: 999px; background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 0.55rem rgba(255, 255, 255, 0.22), 0 22px 44px -18px rgba(18, 12, 38, 0.75);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.vid__btn svg { width: 40%; height: 40%; margin-left: 7%; }
.vid__play:hover .vid__btn { transform: scale(1.07); background: #fff; box-shadow: 0 0 0 0.8rem rgba(255, 255, 255, 0.28), 0 26px 50px -18px rgba(18, 12, 38, 0.8); }
.vid__play:active .vid__btn { transform: scale(0.98); }
.vid__play:focus { outline: none; }
.vid__play:focus-visible::before { content: ""; position: absolute; inset: 0; border-radius: var(--vid-r); box-shadow: inset 0 0 0 3px var(--cyan); }
.vid__play:focus-visible .vid__btn { outline: 3px solid var(--cyan); outline-offset: 5px; }
.vid__len,
.vid__via {
  position: absolute; bottom: 0.85rem; display: inline-flex; align-items: center; min-height: 1.75rem; padding: 0.25rem 0.65rem;
  border-radius: 999px; background: rgba(18, 12, 38, 0.72); color: #fff;
  font-family: var(--text); font-size: 0.8125rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.01em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.vid__len { right: 0.85rem; font-variant-numeric: tabular-nums; }
.vid__via { left: 0.85rem; background: rgba(18, 12, 38, 0.5); color: rgba(255, 255, 255, 0.92); font-weight: 600; }
.vid__media { position: absolute; inset: 0; z-index: 3; display: block; width: 100%; height: 100%; border: 0; background: #000; }

.vid__cap { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; margin-top: 1rem; }
.vid__k { color: var(--ortho); font-family: var(--text); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; line-height: 1.3; text-transform: uppercase; }
.vid .vid__t { margin: 0; color: var(--ink); font-family: var(--display); font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
.vid__p { display: block; max-width: 62ch; color: var(--body); font-size: 0.95rem; line-height: 1.55; }
.section--ink .vid__k { color: var(--cyan); }
.section--ink .vid .vid__t { color: #fff; }
.section--ink .vid__p { color: rgba(255, 255, 255, 0.72); }

@media (max-width: 47.99rem) {
  .vid { --vid-r: 1rem; }
  .vid__len, .vid__via { bottom: 0.6rem; min-height: 1.6rem; padding: 0.2rem 0.55rem; }
  .vid__len { right: 0.6rem; }
  .vid__via { left: 0.6rem; }
  .vid__cap { margin-top: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .vid__frame > .vid__poster, .vid__btn { transition: none; }
  .vid__frame:hover > .vid__poster, .vid__play:hover .vid__btn { transform: none; }
}


/* --------------------------------------------------------------------------
   2. Video gallery: the stage and the playlist
   -------------------------------------------------------------------------- */
.vgal { display: grid; gap: 1.25rem; min-width: 0; }
.vgal__stage { min-width: 0; }
.vgal__side { min-width: 0; }
.vgal__count { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.vgal__list { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.vgal__li { min-width: 0; margin: 0; }
.vgal__item {
  display: grid; grid-template-columns: 7.25rem minmax(0, 1fr); align-items: center; gap: 0.9rem;
  width: 100%; min-height: 4.1rem; padding: 0.5rem 0.85rem 0.5rem 0.5rem;
  border: 1px solid var(--line-soft, #e5e1ea); border-radius: 1rem; background: #fff; color: var(--ink); text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.vgal__item:hover { border-color: color-mix(in srgb, var(--ortho) 38%, #e5e1ea); box-shadow: 0 16px 30px -24px rgba(26, 18, 54, 0.5); }
.vgal__item:focus { outline: none; }
.vgal__item:focus-visible { outline: 3px solid var(--ortho); outline-offset: 2px; }
.vgal__item.is-current { border-color: var(--ortho); box-shadow: inset 0 0 0 1px var(--ortho); }
.vgal__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 0.6rem; background: linear-gradient(135deg, #2b1a4d, #0b6f7d); }
.vgal__thumb img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.vgal__item:hover .vgal__thumb img { transform: scale(1.05); }
.vgal__play {
  position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; margin: -0.95rem 0 0 -0.95rem;
  border-radius: 999px; background: rgba(255, 255, 255, 0.95); color: var(--ortho); box-shadow: 0 8px 18px -8px rgba(18, 12, 38, 0.7);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.vgal__play svg { margin-left: 2px; }
.vgal__item.is-current .vgal__play { background: var(--ortho); color: #fff; }
.vgal__len { position: absolute; right: 0.3rem; bottom: 0.3rem; padding: 0.05rem 0.35rem; border-radius: 0.35rem; background: rgba(18, 12, 38, 0.8); color: #fff; font-size: 0.75rem; font-weight: 700; line-height: 1.35; font-variant-numeric: tabular-nums; }
.vgal__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; min-width: 0; }
.vgal__k { color: var(--ortho); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1.3; text-transform: uppercase; }
.vgal__t {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  font-family: var(--display); font-size: 0.98rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em;
}
.vgal__now { display: none; align-items: center; gap: 0.4rem; color: var(--ortho); font-size: 0.8125rem; font-weight: 700; }
.vgal__now::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 999px; background: currentColor; }
.vgal__item.is-current .vgal__now { display: inline-flex; }

/* On the ink surface. */
.section--ink .vgal__count { color: rgba(255, 255, 255, 0.62); }
.section--ink .vgal__item { border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); color: #fff; }
.section--ink .vgal__item:hover { border-color: rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.07); box-shadow: none; }
.section--ink .vgal__item.is-current { border-color: var(--cyan); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--cyan); }
.section--ink .vgal__item:focus-visible { outline-color: var(--cyan); }
.section--ink .vgal__k,
.section--ink .vgal__now { color: var(--cyan); }
.section--ink .vgal__item.is-current .vgal__play { background: var(--cyan); color: var(--ink); }

/* A phone's long playlist: the first four, then a button for the rest. */
.vgal__more { display: none; }
@media (max-width: 47.99rem) {
  .r2-js .vgal:not(.is-expanded) .vgal__li:nth-child(n + 5) { display: none; }
  .r2-js .vgal__more {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; min-height: 48px; margin-top: 0.6rem; padding: 0.6rem 1rem;
    border: 1px solid var(--line, #e6e3ee); border-radius: 0.65rem; background: #fff; color: var(--ink);
    font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer;
  }
  .r2-js .vgal__more svg { transition: transform 0.2s ease; }
  .r2-js .vgal.is-expanded .vgal__more svg { transform: rotate(180deg); }
  .r2-js .vgal__more:focus-visible { outline: 3px solid var(--ortho); outline-offset: 2px; }
  .r2-js .section--ink .vgal__more { border-color: rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.06); color: #fff; }
  .r2-js .section--ink .vgal__more:focus-visible { outline-color: var(--cyan); }
}

/* 'below': the playlist as a grid of rows under the stage. */
@media (min-width: 48rem) {
  .vgal--below .vgal__list { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.65rem; }
}
/* 'side': the playlist beside the stage on a desktop, compact rows about as
   tall together as the player and its caption; the current one is marked by
   its outline and its filled play button. */
@media (min-width: 64rem) {
  .vgal--side { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(1.5rem, 2.6vw, 2.5rem); align-items: start; }
  .vgal--side .vgal__list { gap: 0.5rem; }
  .vgal--side .vgal__item { grid-template-columns: 6rem minmax(0, 1fr); gap: 0.8rem; min-height: 0; padding: 0.4rem 0.8rem 0.4rem 0.4rem; }
  .vgal--side .vgal__item.is-current .vgal__now { display: none; }
  .vgal--side .vgal__count { margin-bottom: 0.6rem; }
  /* A small thumbnail shows its length; the play mark takes its place on hover and on the one playing. */
  .vgal--side .vgal__play { opacity: 0; transform: scale(0.85); transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease; }
  .vgal--side .vgal__item:is(:hover, :focus-visible, .is-current) .vgal__play { opacity: 1; transform: none; }
  .vgal--side .vgal__item:is(:hover, :focus-visible, .is-current) .vgal__len { opacity: 0; }
  .vgal--side .vgal__len { transition: opacity 0.2s ease; }
}
@media (min-width: 64rem) and (max-width: 79.99rem) {
  .vgal--side .vgal__item { grid-template-columns: 5.25rem minmax(0, 1fr); gap: 0.7rem; }
  .vgal--side .vgal__t { font-size: 0.92rem; }
  .vgal--side .vgal__play { width: 1.6rem; height: 1.6rem; margin: -0.8rem 0 0 -0.8rem; }
}
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .vgal--side .vgal__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
}
@media (max-width: 47.99rem) {
  .vgal { gap: 1rem; }
  .vgal__item { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.8rem; padding: 0.45rem 0.75rem 0.45rem 0.45rem; border-radius: 0.9rem; }
  .vgal__t { font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .vgal__thumb img { transition: none; }
  .vgal__item:hover .vgal__thumb img { transform: none; }
}


/* --------------------------------------------------------------------------
   3. Why Elite
   -------------------------------------------------------------------------- */

/* A photograph where a section has no video. */
.page-template-page-templatestemplate-why-elite-php .why-photo { position: relative; margin: 0; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--ab-r, 1.5rem); background: linear-gradient(145deg, #eee8f8, #e4f4f4); box-shadow: var(--ab-card); }
.page-template-page-templatestemplate-why-elite-php .why-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- Welcome: the old About page's words beside the overview video ------- */
.page-template-page-templatestemplate-why-elite-php .why-story__in { display: grid; gap: 1.5rem; }
.page-template-page-templatestemplate-why-elite-php .why-story__copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.page-template-page-templatestemplate-why-elite-php .why-story__copy > .eyebrow { margin: 0; }
.page-template-page-templatestemplate-why-elite-php .why-story__copy h2 { max-width: 15ch; margin: 0.9rem 0 0; text-wrap: balance; }
.page-template-page-templatestemplate-why-elite-php .why-story__lede { max-width: 46ch; margin: 1.15rem 0 0; color: var(--body-strong, #484159); font-size: var(--fs-lede); line-height: 1.65; }
.page-template-page-templatestemplate-why-elite-php .why-story__checks { margin: 1.5rem 0 0; }
.page-template-page-templatestemplate-why-elite-php .why-story__checks li { color: var(--body-strong, #484159); }
.page-template-page-templatestemplate-why-elite-php .why-story__go { margin-top: 1.75rem; }
.page-template-page-templatestemplate-why-elite-php .why-story__media { min-width: 0; }
.page-template-page-templatestemplate-why-elite-php .why-story__media .vid { --vid-r: var(--ab-r, 1.5rem); }
.page-template-page-templatestemplate-why-elite-php .why-story__media .vid__cap { padding-inline: 0.25rem; }

@media (min-width: 64rem) {
  .page-template-page-templatestemplate-why-elite-php .why-story__in { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); gap: clamp(3rem, 5.5vw, 5.5rem); align-items: center; }
}
/* Below a desktop the video follows the introduction, before the four commitments. */
@media (max-width: 63.99rem) {
  .page-template-page-templatestemplate-why-elite-php .why-story__copy { display: contents; }
  .page-template-page-templatestemplate-why-elite-php .why-story__in { gap: 0; }
  .page-template-page-templatestemplate-why-elite-php .why-story__copy > .eyebrow { order: 1; justify-self: start; }
  .page-template-page-templatestemplate-why-elite-php .why-story__copy > h2 { order: 2; max-width: 20ch; }
  .page-template-page-templatestemplate-why-elite-php .why-story__copy > .why-story__lede { order: 3; }
  .page-template-page-templatestemplate-why-elite-php .why-story__media { order: 4; margin-top: 1.75rem; }
  .page-template-page-templatestemplate-why-elite-php .why-story__copy > .why-story__checks { order: 5; margin-top: 1.75rem; }
  .page-template-page-templatestemplate-why-elite-php .why-story__copy > .why-story__go { order: 6; justify-self: start; }
}
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .page-template-page-templatestemplate-why-elite-php .why-story__copy > .why-story__checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
}
@media (max-width: 47.99rem) {
  .page-template-page-templatestemplate-why-elite-php .why-story__lede { margin-top: 0.9rem; font-size: 1.02rem; line-height: 1.6; }
  .page-template-page-templatestemplate-why-elite-php .why-story__media { margin-top: 1.4rem; }
  .page-template-page-templatestemplate-why-elite-php .why-story__media .vid { --vid-r: 1.1rem; }
  .page-template-page-templatestemplate-why-elite-php .why-story__copy > .why-story__checks { margin-top: 1.4rem; }
  .page-template-page-templatestemplate-why-elite-php .why-story__copy > .why-story__go { display: flex; justify-self: stretch; margin-top: 1.4rem; }
}

/* --- The four decisions: no longer the first section, so the usual top
   padding, on the mist surface (the white cards read against it). -------- */
.page-template-page-templatestemplate-why-elite-php.premium-inner .why-diff { padding-top: var(--sect); }
.page-template-page-templatestemplate-why-elite-php .why-diff .why-card { border-color: #e7e3ef; }

/* --- Doctors and team ----------------------------------------------------- */
.page-template-page-templatestemplate-why-elite-php .why-team__in { display: grid; gap: 1.5rem; }
.page-template-page-templatestemplate-why-elite-php .why-team__media { min-width: 0; }
.page-template-page-templatestemplate-why-elite-php .why-team__media .vid { --vid-r: var(--ab-r, 1.5rem); }
.page-template-page-templatestemplate-why-elite-php .why-team__media .vid__cap { padding-inline: 0.25rem; }
.page-template-page-templatestemplate-why-elite-php .why-team__side { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.page-template-page-templatestemplate-why-elite-php .why-docs { display: grid; gap: 0.65rem; width: 100%; margin: 0; padding: 0; list-style: none; }
.page-template-page-templatestemplate-why-elite-php .why-docs > li { margin: 0; }
.page-template-page-templatestemplate-why-elite-php .why-doc {
  --lane: var(--ortho); --lane-tint: var(--ortho-tint, #eee9f7);
  display: grid; grid-template-columns: 4.25rem minmax(0, 1fr) auto; align-items: center; gap: 1rem;
  padding: 0.65rem 0.75rem 0.65rem 0.65rem; border: 1px solid var(--line-soft, #e5e1ea); border-radius: 1.15rem;
  background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--ab-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.page-template-page-templatestemplate-why-elite-php .why-doc--ped { --lane: var(--ped); --lane-tint: var(--ped-tint, #e3f4f6); }
.page-template-page-templatestemplate-why-elite-php .why-doc:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--lane) 40%, #e5e1ea); box-shadow: 0 22px 40px -30px rgba(26, 18, 54, 0.55); }
.page-template-page-templatestemplate-why-elite-php .why-doc:focus-visible { outline: 3px solid var(--lane); outline-offset: 3px; }
/* The logo's arch as the portrait frame, as the home page's team card has it. */
.page-template-page-templatestemplate-why-elite-php .why-doc__photo { display: block; width: 4.25rem; height: 4.25rem; overflow: hidden; border-radius: 999px 999px 0.85rem 0.85rem; background: var(--lane-tint); }
.page-template-page-templatestemplate-why-elite-php .why-doc__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.page-template-page-templatestemplate-why-elite-php .why-doc__txt { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.page-template-page-templatestemplate-why-elite-php .why-doc__name { font-family: var(--display); font-size: 1.08rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.page-template-page-templatestemplate-why-elite-php .why-doc__role { color: var(--lane); font-size: 0.9rem; font-weight: 650; }
.page-template-page-templatestemplate-why-elite-php .why-doc .go-link__ic { background: var(--lane-tint); color: var(--lane); }
.page-template-page-templatestemplate-why-elite-php .why-doc:hover .go-link__ic { background: var(--lane); color: #fff; }
.page-template-page-templatestemplate-why-elite-php .why-team__note { max-width: 46ch; margin: 1.35rem 0 0; color: var(--body-strong, #484159); font-size: 1rem; line-height: 1.65; }
.page-template-page-templatestemplate-why-elite-php .why-team__go { margin-top: 1.25rem; }

@media (min-width: 64rem) {
  .page-template-page-templatestemplate-why-elite-php .why-team__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center; }
}
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .page-template-page-templatestemplate-why-elite-php .why-team__in { gap: 1.75rem; }
  .page-template-page-templatestemplate-why-elite-php .why-docs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-template-page-templatestemplate-why-elite-php .why-doc { grid-template-columns: 1fr; justify-items: start; gap: 0.75rem; height: 100%; padding: 1rem; }
  .page-template-page-templatestemplate-why-elite-php .why-doc .go-link__ic { display: none; }
  .page-template-page-templatestemplate-why-elite-php .why-team__note { max-width: 60ch; }
}
@media (max-width: 47.99rem) {
  .page-template-page-templatestemplate-why-elite-php .why-team__in { gap: 1.25rem; }
  .page-template-page-templatestemplate-why-elite-php .why-team__media .vid { --vid-r: 1.1rem; }
  .page-template-page-templatestemplate-why-elite-php .why-doc { grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: 0.85rem; padding: 0.55rem 0.6rem 0.55rem 0.55rem; border-radius: 1rem; }
  .page-template-page-templatestemplate-why-elite-php .why-doc__photo { width: 3.5rem; height: 3.5rem; border-radius: 999px 999px 0.7rem 0.7rem; }
  .page-template-page-templatestemplate-why-elite-php .why-doc__name { font-size: 1rem; }
  .page-template-page-templatestemplate-why-elite-php .why-doc__role { font-size: 0.86rem; }
  .page-template-page-templatestemplate-why-elite-php .why-team__note { margin-top: 1.1rem; font-size: 0.97rem; }
  .page-template-page-templatestemplate-why-elite-php .why-team__go { display: flex; align-self: stretch; }
}

/* --- Patient stories, then the Google reviews, on the ink surface --------- */
.page-template-page-templatestemplate-why-elite-php .why-proof--videos .why-stories {
  margin-bottom: clamp(3rem, 6vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.page-template-page-templatestemplate-why-elite-php .why-proof .sect-head > .lede { color: rgba(255, 255, 255, 0.74); }
.page-template-page-templatestemplate-why-elite-php .why-stories .vid { --vid-r: 1.25rem; }
.page-template-page-templatestemplate-why-elite-php .why-stories .vid__frame { box-shadow: 0 40px 80px -48px rgba(0, 0, 0, 0.9); }
@media (max-width: 47.99rem) {
  .page-template-page-templatestemplate-why-elite-php .why-stories .vid { --vid-r: 1rem; }
  .page-template-page-templatestemplate-why-elite-php .why-stories .vid__p { font-size: 0.93rem; }
}

/* The Google card and the link stay in view beside the taller column of quotes. */
@media (min-width: 64rem) {
  .page-template-page-templatestemplate-why-elite-php .why-proof__lead { position: sticky; top: calc(var(--header-h, 81px) + 2rem); }
}

/* --- Both specialties, each with its booking button ----------------------- */
.page-template-page-templatestemplate-why-elite-php .why-lanes__grid { display: grid; gap: 1rem; }
.page-template-page-templatestemplate-why-elite-php .why-lane {
  --lane: var(--ortho); --lane-tint: var(--ortho-tint, #eee9f7);
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; min-width: 0; overflow: hidden;
  padding: clamp(1.35rem, 2.6vw, 2.25rem); border: 1px solid var(--line-soft, #e5e1ea); border-radius: var(--ab-r, 1.5rem);
  background: #fff; box-shadow: var(--ab-card);
}
.page-template-page-templatestemplate-why-elite-php .why-lane--ped { --lane: var(--ped); --lane-tint: var(--ped-tint, #e3f4f6); }
/* The lane's colour, as a quiet wash in the corner. */
.page-template-page-templatestemplate-why-elite-php .why-lane::before {
  content: ""; position: absolute; top: -40%; right: -25%; width: 70%; aspect-ratio: 1; border-radius: 999px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--lane) 9%, transparent), transparent);
}
.page-template-page-templatestemplate-why-elite-php .why-lane > * { position: relative; margin: 0; }
.page-template-page-templatestemplate-why-elite-php .why-lane__top { display: flex; align-items: center; gap: 0.85rem; }
.page-template-page-templatestemplate-why-elite-php .why-lane__top .eyebrow { margin: 0; }
.page-template-page-templatestemplate-why-elite-php .why-lane__icon { display: grid; flex: none; place-items: center; width: 3rem; height: 3rem; border-radius: 0.95rem; background: var(--lane-tint); color: var(--lane); }
.page-template-page-templatestemplate-why-elite-php .why-lane h3 { max-width: 20ch; margin-top: 0.4rem; font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.7rem); line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.page-template-page-templatestemplate-why-elite-php .why-lane__text { max-width: 52ch; color: var(--body); font-size: 0.99rem; line-height: 1.65; }
.page-template-page-templatestemplate-why-elite-php .why-lane__actions { display: grid; gap: 0.65rem; width: 100%; margin-top: auto !important; padding-top: 0.75rem; }
.page-template-page-templatestemplate-why-elite-php .why-lane__actions .btn--stacked { width: 100%; }
.page-template-page-templatestemplate-why-elite-php .why-lane__actions .go-link { display: flex; width: 100%; }
.page-template-page-templatestemplate-why-elite-php .why-lane--ped .go-link__ic { background: var(--ped-tint, #e3f4f6); color: var(--ped); }
.page-template-page-templatestemplate-why-elite-php .why-lane--ped .go-link:hover { border-color: var(--ped); color: var(--ped); }
.page-template-page-templatestemplate-why-elite-php .why-lane--ped .go-link:hover .go-link__ic { background: var(--ped); color: #fff; }
@media (min-width: 48rem) {
  .page-template-page-templatestemplate-why-elite-php .why-lanes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}
@media (max-width: 47.99rem) {
  .page-template-page-templatestemplate-why-elite-php .why-lane { gap: 0.7rem; border-radius: 1.25rem; }
  .page-template-page-templatestemplate-why-elite-php .why-lane__icon { width: 2.6rem; height: 2.6rem; border-radius: 0.8rem; }
  .page-template-page-templatestemplate-why-elite-php .why-lane h3 { margin-top: 0.2rem; font-size: 1.3rem; }
  .page-template-page-templatestemplate-why-elite-php .why-lane__text { font-size: 0.96rem; line-height: 1.6; }
}


/* --------------------------------------------------------------------------
   4. Technology: the closing band (client item 8)
   -------------------------------------------------------------------------- */
@media (min-width: 64rem) {
  /* Only the two lanes in the grid now; the trust card moved into the band. */
  .page-template-page-templatestemplate-technology-php .tech-close__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.page-template-page-templatestemplate-technology-php .tech-close__band { display: grid; gap: 1rem; margin-top: 1.25rem; }
.page-template-page-templatestemplate-technology-php .tech-close__media { min-width: 0; }
.page-template-page-templatestemplate-technology-php .tech-close__media .vid { --vid-r: 1.5rem; }
.page-template-page-templatestemplate-technology-php .tech-close__photo { position: relative; margin: 0; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 1.5rem; background: linear-gradient(145deg, #eee8f8, #e4f4f4); box-shadow: 0 30px 60px -48px rgba(26, 18, 54, 0.5); }
.page-template-page-templatestemplate-technology-php .tech-close__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.page-template-page-templatestemplate-technology-php .tech-close__side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.page-template-page-templatestemplate-technology-php .tech-close__about { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 0.25rem 0.25rem 0; }
.page-template-page-templatestemplate-technology-php .tech-close__about > * { margin: 0; }
.page-template-page-templatestemplate-technology-php .tech-close__about h3 { max-width: 22ch; font-size: clamp(1.3rem, 1.1rem + 0.55vw, 1.6rem); line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.page-template-page-templatestemplate-technology-php .tech-close__text { max-width: 44ch; color: var(--body); font-size: 0.98rem; line-height: 1.6; }
.page-template-page-templatestemplate-technology-php .tech-close__len { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--body); font-size: 0.875rem; font-weight: 650; }
.page-template-page-templatestemplate-technology-php .tech-close__len svg { color: var(--ortho); }
.page-template-page-templatestemplate-technology-php .tech-close__side .tech-close__trust { max-width: none; border-radius: 1.5rem; }

@media (min-width: 48rem) {
  /* The Google card, compact enough for the column: the source and the count
     on one line, the score, then the business and the link. */
  .page-template-page-templatestemplate-technology-php .tech-close__side .tech-close__trust {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-content: stretch; column-gap: 1rem; row-gap: 0.55rem; padding: 1.2rem 1.5rem;
  }
  .page-template-page-templatestemplate-technology-php .tech-close__side .tech-close__trust .gbadge__top { grid-column: 1; grid-row: 1; }
  .page-template-page-templatestemplate-technology-php .tech-close__side .tech-close__trust .gbadge__count { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; }
  .page-template-page-templatestemplate-technology-php .tech-close__side .tech-close__trust .gbadge__score { grid-column: 1 / -1; grid-row: 2; }
  .page-template-page-templatestemplate-technology-php .tech-close__side .tech-close__trust .gbadge__num { font-size: 2.5rem; }
  .page-template-page-templatestemplate-technology-php .tech-close__side .tech-close__trust .gbadge__biz { grid-column: 1 / -1; grid-row: 3; margin-top: 0.2rem; padding: 0.8rem 0 0; border-top: 1px solid var(--line-soft, #e5e1ea); border-left: 0; }
  .page-template-page-templatestemplate-technology-php .tech-close__side .tech-close__trust .gbadge__cta { grid-column: 1 / -1; grid-row: 4; padding-left: 0; }
}
@media (min-width: 64rem) {
  /* The video and the side column share one height: the text at the top,
     the Google card at the foot, level with the video's lower edge. */
  .page-template-page-templatestemplate-technology-php .tech-close__band { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.75rem); align-items: stretch; }
  .page-template-page-templatestemplate-technology-php .tech-close__side { justify-content: space-between; gap: 0.9rem; }
  .page-template-page-templatestemplate-technology-php .tech-close__about { padding-top: 0.5rem; }
  /* Several videos: the playlist runs under the player; the card fills its column. */
  .page-template-page-templatestemplate-technology-php .tech-close__band--list .tech-close__side { justify-content: flex-start; }
  .page-template-page-templatestemplate-technology-php .tech-close__band--list .tech-close__side .tech-close__trust { flex: 1; justify-content: center; }
}
@media (min-width: 64rem) and (max-width: 79.99rem) {
  .page-template-page-templatestemplate-technology-php .tech-close__band { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .page-template-page-templatestemplate-technology-php .tech-close__side .tech-close__trust { row-gap: 0.4rem; padding: 1rem 1.2rem; }
  .page-template-page-templatestemplate-technology-php .tech-close__side .tech-close__trust .gbadge__num { font-size: 2.1rem; }
  .page-template-page-templatestemplate-technology-php .tech-close__side .tech-close__trust .gbadge__biz { padding-top: 0.65rem; }
  .page-template-page-templatestemplate-technology-php .tech-close__about { gap: 0.45rem; padding-top: 0.25rem; }
  .page-template-page-templatestemplate-technology-php .tech-close__about h3 { font-size: 1.3rem; }
  /* A narrower desktop: the title and the length, so the column stays as tall as the video. */
  .page-template-page-templatestemplate-technology-php .tech-close__band:not(.tech-close__band--list) .tech-close__text { display: none; }
}
@media (min-width: 48rem) and (max-width: 63.99rem) {
  /* A tablet: the video across, then what it shows beside the Google card. */
  .page-template-page-templatestemplate-technology-php .tech-close__band { gap: 1.25rem; }
  .page-template-page-templatestemplate-technology-php .tech-close__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
  .page-template-page-templatestemplate-technology-php .tech-close__band--list .tech-close__side,
  .page-template-page-templatestemplate-technology-php .tech-close__side:not(:has(.tech-close__about)) { grid-template-columns: minmax(0, 1fr); }
  .page-template-page-templatestemplate-technology-php .tech-close__about { padding: 0.5rem 0.25rem 0; }
  .page-template-page-templatestemplate-technology-php .tech-close__side .tech-close__trust { grid-column: auto; }
}
@media (max-width: 47.99rem) {
  .page-template-page-templatestemplate-technology-php .tech-close__band { gap: 1rem; margin-top: 0.85rem; }
  .page-template-page-templatestemplate-technology-php .tech-close__media .vid { --vid-r: 1.25rem; }
  .page-template-page-templatestemplate-technology-php .tech-close__photo { border-radius: 1.25rem; }
  .page-template-page-templatestemplate-technology-php .tech-close__about { gap: 0.5rem; padding: 0.35rem 0.15rem 0.25rem; }
  .page-template-page-templatestemplate-technology-php .tech-close__about h3 { font-size: 1.3rem; }
  .page-template-page-templatestemplate-technology-php .tech-close__side .tech-close__trust { border-radius: 1.25rem; }
}
