/* Meet the Bryants: small refinements from phone review. */

/* Background loops never show the phone's own play button or controls (ours is the small pause button). */
video[data-vj]:not([controls])::-webkit-media-controls,
video[data-vj]:not([controls])::-webkit-media-controls-enclosure,
video[data-vj]:not([controls])::-webkit-media-controls-panel,
video[data-vj]:not([controls])::-webkit-media-controls-overlay-play-button,
video[data-vj]:not([controls])::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Style picker rows (Professional, Men's, Women's): the View / Showing label sits in the corner so the description can use the full row. */
button[aria-pressed].group.flex.w-full { position: relative; }
button[aria-pressed].group.flex.w-full > span.min-w-0 { flex: 1 1 0%; }
button[aria-pressed].group.flex.w-full > span.min-w-0 > span.flex { padding-right: 4.75rem; }
button[aria-pressed].group.flex.w-full > span.ml-auto { position: absolute; right: 0; top: 1.4rem; padding-top: 0; }
@media (min-width: 768px) { button[aria-pressed].group.flex.w-full > span.ml-auto { top: 1.75rem; } }
button[aria-pressed].group.flex.w-full > span.min-w-0 span.overflow-hidden { text-wrap: wrap; }

/* Film tiles on phones: play button, length and title only, so the face stays clear. */
@media (max-width: 767px) {
  button[aria-label^="Watch the video"] ~ span.absolute > span.mt-1.block { display: none; }
}

/* ERAS: the applicant strip sits right under the large photo on every screen, so the photo changes where you are looking. */
.mtb-eras-strip { display: block; margin-top: 1.25rem; }
.mtb-eras-strip ul { margin-top: 0.5rem; }
.mtb-eras-orig { display: none !important; }

/* The page title takes focus after a page change; no ring around it. */
h1:focus, h1:focus-visible, main:focus, main:focus-visible, [tabindex="-1"]:focus { outline: none !important; }

/* Case study cards on phones: darker gradient and a soft shadow so the words read over any photo. */
@media (max-width: 767px) {
  a.zoom-frame > span[aria-hidden="true"][class*="linear-gradient(180deg"] { background: linear-gradient(180deg, rgba(14,16,17,0.82) 0%, rgba(14,16,17,0.56) 30%, rgba(14,16,17,0.5) 52%, rgba(14,16,17,0.88) 78%, rgba(14,16,17,0.94) 100%) !important; }
  a.zoom-frame h3, a.zoom-frame p, a.zoom-frame ul li { text-shadow: 0 1px 14px rgba(0,0,0,0.6); }
  a.zoom-frame ul li { text-shadow: none; }
}

/* Services menu (desktop and iPad): fades in and drops 6px over 250ms; hidden below 1024px, where the phone menu is used. */
.mtb-mega2[hidden] { display: none !important; }
.mtb-mega2:not([hidden]) { animation: mtb-mega2-in 0.25s ease both; }
@keyframes mtb-mega2-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 1023px) { .mtb-mega2 { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .mtb-mega2:not([hidden]) { animation: none; } .mtb-mega2 img { transition: none !important; } }

/* Phone bar: all white, full width and flush to the bottom with a thin line on top. No black frame around it. */
#site-bar { background: #fff !important; padding: 0 0 env(safe-area-inset-bottom) !important; border-top: 1px solid rgba(14,16,17,0.12); }
#site-bar > div { height: 76px !important; border-radius: 0 !important; box-shadow: none !important; }

/* Diagnostics: ?off=marquee, scroll, blur, all (see initPlayGate). Switches one effect off so a device that struggles can be bisected. */
html.off-marquee .animate-marquee, html.off-all .animate-marquee { animation: none !important; }
html.off-scroll [data-ss], html.off-all [data-ss] { animation: none !important; transform: none !important; translate: none !important; scale: none !important; }
html.off-blur *, html.off-all * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* The sheet sits directly on the flush bar (76px tall plus the phone's bottom safe area). */
.mtb-sheet-panel { bottom: calc(76px + env(safe-area-inset-bottom)) !important; max-height: calc(100svh - 76px - env(safe-area-inset-bottom) - 56px) !important; border-radius: 18px 18px 0 0; }

/* Form and calendar pages: no second "Work with us" in the phone bar (the page is already the ask). */
html.no-bar-cta .mtb-bar-cta { display: none !important; }

/* Individual headshot pages, wide screens: Calendly puts about 45px of its own empty padding above its box. Trim a little of it (conservative; the heading row stays whole). */
@media (min-width: 768px) {
  .mtb-embed-book { overflow: hidden; }
  .mtb-embed-book iframe { margin-top: -20px; height: calc(720px + 20px); }
}

/* Forms and calendars: no "loads here" box while they start. A quiet loading state shows, the old link only after 9 seconds. */
.mtb-embed:not(.is-live) .mtb-embed-wait { display: none; }
.mtb-embed:not(.is-live).is-slow .mtb-embed-wait { display: flex; }
.mtb-embed:not(.is-live):not(.is-slow) { min-height: 360px; display: grid; place-items: center; }
.mtb-embed:not(.is-live):not(.is-slow)::before { content: ""; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(14,16,17,0.12); border-top-color: #0e1011; animation: mtb-embed-spin .8s linear infinite; }
@keyframes mtb-embed-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mtb-embed:not(.is-live):not(.is-slow)::before { animation: none; } }

/* Phone menu open: the menu has its own Work With Us button, so the bar keeps only the logo and the close button. */
html.mm-open .mtb-bar-cta { display: none !important; }

/* Touch screens: no hover zoom on photos, so scrolling past them costs nothing. */
@media (hover: none) {
  .zoom-img { transition: none !important; }
  .zoom-frame:hover .zoom-img { transform: none !important; scale: none !important; }
}

/* Photo viewer: photo first. Swipe or use the keys to move; details open from one small button. */
.mtb-lb { touch-action: pan-y; }
.mtb-lb .mtb-lb-nav, .mtb-lb figcaption { display: none !important; }
.mtb-lb-pill { position: fixed; right: 1rem; bottom: calc(1.25rem + env(safe-area-inset-bottom)); z-index: 3; display: inline-flex; align-items: center; gap: 0.9rem; padding: 0.95rem 1.3rem; border-radius: 999px; background: rgba(14,16,17,0.72); border: 1px solid rgba(255,255,255,0.18); color: #fff; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; transition: opacity 0.25s ease; }
.mtb-lb-ps { width: 1px; height: 16px; background: rgba(255,255,255,0.35); }
.mtb-lb.has-details .mtb-lb-pill { opacity: 0; pointer-events: none; }
.mtb-lb-panel { position: fixed; left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom)); max-width: 720px; margin-inline: auto; z-index: 4; border-radius: 22px; padding: 1.4rem 1.5rem 1.15rem; background: rgba(20,24,26,0.84); border: 1px solid rgba(255,255,255,0.12); color: #fff; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transform: translateY(calc(100% + 2rem)); transition: transform 0.38s cubic-bezier(0.22,1,0.36,1); }
.mtb-lb.has-details .mtb-lb-panel { transform: none; }
.mtb-lb-ph { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.62); }
.mtb-lb-pt { margin: 0.5rem 0 1rem; font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; }
.mtb-lb-th { display: flex; gap: 0.5rem; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mtb-lb-th::-webkit-scrollbar { display: none; }
.mtb-lb-th button { flex: none; width: 56px; height: 70px; padding: 0; border: 2px solid transparent; border-radius: 7px; overflow: hidden; background: rgba(255,255,255,0.08); opacity: 0.7; cursor: pointer; }
.mtb-lb-th button.is-on { border-color: #fff; opacity: 1; }
.mtb-lb-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mtb-lb-pf { display: flex; justify-content: space-between; align-items: center; margin-top: 0.6rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.14); }
.mtb-lb-hide { background: none; border: 0; padding: 0 0 3px; color: #fff; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.7); cursor: pointer; }
.mtb-lb-pa { display: flex; gap: 0.6rem; }
.mtb-lb-pa button { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: transparent; color: #fff; cursor: pointer; }
.mtb-lb-pa svg { width: 16px; height: 16px; }
/* The viewer's older round-button rules must not reach these buttons; the photo gets the full width now the arrows are gone. */
.mtb-lb { grid-template-columns: 10px minmax(0, 1fr) 10px !important; padding: 56px 0 96px !important; }
.mtb-lb .mtb-lb-pill { display: inline-flex; width: auto; height: auto; border-radius: 999px; font-size: 12.5px; line-height: 1; justify-self: auto; }
.mtb-lb .mtb-lb-pill:hover { background: rgba(14,16,17,0.82); }
.mtb-lb .mtb-lb-hide { display: inline-block; width: auto; height: auto; border-radius: 0; font-size: 12.5px; line-height: 1.2; justify-self: auto; }
.mtb-lb .mtb-lb-hide:hover { background: none; }
.mtb-lb .mtb-lb-th button { display: block; width: 56px; height: 70px; border-radius: 7px; justify-self: auto; }
.mtb-lb .mtb-lb-th button:hover { background: rgba(255,255,255,0.08); opacity: 1; }
.mtb-lb .mtb-lb-pa button { width: 46px; height: 46px; border-radius: 50%; }
.mtb-lb .mtb-lb-th img { max-height: none; max-width: none; border-radius: 0; margin: 0; }
@media (prefers-reduced-motion: reduce) { .mtb-lb-panel, .mtb-lb-pill { transition: none; } }

/* Testimonials on phones: arrows and counter at the top so they are always in reach, and quotes a little smaller so the card is not a screen tall. */
@media (max-width: 767px) {
  .mtb-tc { position: relative; }
  .mtb-tc { padding-top: 4.75rem !important; }
  .mtb-tc .mtb-tc-ctl { position: absolute; top: 0.9rem; left: 1.5rem; right: 1rem; margin: 0 !important; padding: 0 !important; border: 0 !important; flex-direction: row; justify-content: space-between; align-items: center; gap: 0.75rem; z-index: 2; }
  .mtb-tc .mtb-tc-ctl button { width: 40px; height: 40px; }
  .mtb-tc .mtb-tc-ctl button svg { width: 16px; height: 16px; }
  .mtb-tc blockquote > p:first-child:not(:only-child) { font-size: clamp(22px, 6.2vw, 26px) !important; line-height: 1.18 !important; }
  .mtb-tc blockquote > p:not(:first-child) { font-size: 15.5px !important; line-height: 1.5 !important; margin-top: 1rem !important; }
}
