/* site-more.css: the older small style files joined into one, so the page waits for one file instead of four. Order matters; keep it.
   Sections in order: motion (timeline, photo viewer base, jump bar, touch targets), site-scroll (scroll movement), site-polish (phone review refinements), crop-focus (per-photo crops). */

/* ===== motion ===== */
/* Approach timeline: unlit steps. Lit is the default, so no-JS and reduced motion show every step lit. */
.tl-step.tl-off > span:nth-of-type(3){background-color:transparent;border-color:var(--color-line);color:var(--color-stone)}
.tl-step.tl-off > p:nth-of-type(1){color:var(--color-mist)}
.tl-step.tl-off > p:nth-of-type(2){opacity:.55}
@media (prefers-reduced-motion:reduce){.tl-step.tl-off > span:nth-of-type(3){background-color:var(--color-ink);border-color:var(--color-ink);color:var(--color-paper)}.tl-step.tl-off > p:nth-of-type(1){color:var(--color-ink)}.tl-step.tl-off > p:nth-of-type(2){opacity:1}}

/* Photo viewer: soft low-res copy first over a dark blurred backdrop, then the sharp photo (0.5 s). */
.mtb-lb-bg{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.mtb-lb-bg img{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border-radius:0;object-fit:cover;filter:blur(48px) brightness(.42);transform:scale(1.2)}
.mtb-lb .mtb-lb-stage{position:relative;margin:auto 0;max-width:100%;overflow:hidden;border-radius:6px;flex:none}
.mtb-lb .mtb-lb-stage img{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border-radius:0;object-fit:contain}
.mtb-lb .mtb-lb-sharp{transition:opacity .5s ease}
.mtb-lb .mtb-lb-low{filter:blur(10px);transform:scale(1.03);transition:opacity .5s ease}
.mtb-lb .mtb-lb-low.is-off{opacity:0;pointer-events:none}
.mtb-lb .mtb-lb-low.no-t,.mtb-lb .mtb-lb-sharp.no-t{transition:none}
@media (prefers-reduced-motion:reduce){.mtb-lb .mtb-lb-low,.mtb-lb .mtb-lb-sharp{transition:none}}

/* Portfolio: a bar that follows you and jumps to each section. */
.mtb-jump{position:fixed;z-index:40;left:50%;transform:translateX(-50%);bottom:calc(88px + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 32px)}
.mtb-jump[hidden]{display:none!important}
.mtb-jump-btn{display:flex;align-items:center;gap:10px;height:44px;padding:0 16px;border-radius:999px;background:rgba(14,16,17,.88);color:#fff;border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);font:inherit;font-size:13.5px;box-shadow:0 8px 24px rgba(0,0,0,.18);cursor:pointer}
.mtb-jump-lab{font-family:var(--font-mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;opacity:.65}
.mtb-jump-cur{font-weight:600}
.mtb-jump-btn svg{transition:rotate .3s ease}
.mtb-jump.is-open .mtb-jump-btn svg{rotate:180deg}
.mtb-jump-list{position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);margin:0;padding:8px;list-style:none;min-width:220px;border-radius:18px;background:rgba(14,16,17,.94);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.12);box-shadow:0 12px 32px rgba(0,0,0,.25);display:none}
.mtb-jump.is-open .mtb-jump-list{display:block}
.mtb-jump-list a{display:block;padding:12px 14px;border-radius:10px;color:rgba(255,255,255,.8);text-decoration:none;font-size:15px}
.mtb-jump-list a[aria-current="true"]{background:rgba(255,255,255,.12);color:#fff;font-weight:600}
@media (min-width:1024px){
  .mtb-jump{bottom:24px}
  .mtb-jump-btn{display:none}
  .mtb-jump-list{position:static;transform:none;display:flex;gap:2px;padding:6px;min-width:0;border-radius:999px}
  .mtb-jump-list a{padding:9px 16px;border-radius:999px;font-size:14px;white-space:nowrap;transition:background-color .3s ease,color .3s ease}
  .mtb-jump-list a:hover{background:rgba(255,255,255,.1);color:#fff}
}
@media (prefers-reduced-motion:reduce){.mtb-jump-btn svg,.mtb-jump-list a{transition:none}}

/* Touch targets: standalone links get at least 24 px (44 px on touch screens); footer legal links get room. */
a.group.items-center{min-height:24px}
@media (pointer:coarse){a.group.items-center{min-height:44px}}
footer a[href="/privacy"],footer a[href="/terms"]{display:inline-block;padding-block:6px}
@media (pointer:coarse){footer a[href="/privacy"],footer a[href="/terms"]{padding-block:12px}}
a[href="/contact"].font-display{display:inline-block;padding-block:4px}
/* Photo zoom: only ask the browser to prepare the animation while a card is hovered. */
.zoom-img{will-change:auto}
@media (hover:hover){.group:hover .zoom-img{will-change:scale}}

/* ===== site-scroll ===== */
/* Meet the Bryants: movement tied to scrolling, run by the browser itself where it can.
   The browser moves these on its own thread, in step with the scroll, so nothing lags the finger.
   site-scroll.js marks the elements and sets the numbers; browsers without scroll-driven animations get the same movement from the script. */
@media (prefers-reduced-motion: reduce) {
  [data-ss="grow"] { transform: scale(1) !important; }
  [data-ss="row"] { transform: translateX(0) !important; }
  [data-ss="word"] { opacity: 1 !important; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes sf-pt { from { translate: calc(var(--sf-d, 0px) * -1) var(--sf-d, 0px); } to { translate: var(--sf-d, 0px) calc(var(--sf-d, 0px) * -1); } }
    @keyframes sf-ps { from { scale: 1.02; } to { scale: 1; } }
    @keyframes sf-grow { from { transform: scale(var(--sf-s0, 0.9)); } to { transform: scale(1); } }
    @keyframes sf-row { from { transform: translateX(2vw); } to { transform: translateX(calc(-86vw - 36px)); } }
    @keyframes sf-cu { from { transform: translateY(40px); } to { transform: translateY(-40px); } }
    @keyframes sf-cd { from { transform: translateY(-25px); } to { transform: translateY(25px); } }
    @keyframes sf-word { from { opacity: 0.2; } to { opacity: 1; } }
    html.sf-sd [data-ssc] { overflow: clip !important; }
    [data-ssf] { view-timeline: --sf-fr block; }
    [data-ssw] { view-timeline: --sf-wr block; }
    [data-ssl] { view-timeline: --sf-ln block; }
    /* large framed photos: diagonal drift, plus a 2% zoom that eases out */
    html.sf-sd img[data-ss="para"] { animation: sf-pt linear both, sf-ps cubic-bezier(0.215, 0.61, 0.355, 1) both; animation-timeline: --sf-fr, --sf-fr; animation-range: cover 0% cover 100%; }
    /* photos that grow to full size: top reaches the bottom of the screen, then 30% from the top (service pages: center to center) */
    html.sf-sd [data-ss="grow"] { animation: sf-grow linear both; animation-timeline: view(); animation-range: cover 0% cover 70vh; }
    html.sf-sd [data-ss="grow"][data-sc] { animation-range: cover 0% cover 50%; }
    /* homepage partnership row */
    html.sf-sd [data-ss="row"] { animation: sf-row linear both; animation-timeline: --sf-wr; animation-range: cover 0% cover 85vh; }
    html.sf-sd [data-ss="cols"] > li:nth-child(odd) { animation: sf-cu linear both; animation-timeline: --sf-wr; animation-range: cover 0% cover 100%; }
    html.sf-sd [data-ss="cols"] > li:nth-child(even) { animation: sf-cd linear both; animation-timeline: --sf-wr; animation-range: cover 0% cover 100%; }
    /* words darken one after another as the line is read: line top 85% down the screen until its bottom is halfway up */
    html.sf-sd [data-ss="word"] { animation: sf-word linear both; animation-timeline: --sf-ln; animation-range: cover calc(15vh + (var(--i) / var(--n)) * (100% - 65vh)) cover calc(15vh + ((var(--i) + 1) / var(--n)) * (100% - 65vh)); }
  }
}

/* ===== site-polish ===== */
/* 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; }
}

/* ===== crop-focus ===== */
/* crop-focus.css: per-photo focal points and tight crops, keyed by media id (the 32-character id in the photo's address).
   One place to fix a crop without touching page files. Add a line, run tools/crop-check, look at the result on phone and desktop.
   Rules: headshots crop chest-up (head and shoulders), never arms or wide shots on headshot pages; never cut the top of a head;
   never crop a group into a small tile. */

/* Executive photo (arms crossed) used in small square tiles: zoom to head and chest so the tile reads as a headshot */
.size-\[84px\] > img[src*="/2fe393c14b9a10ed78fef194635db7e8/"],
.size-\[84px\] > img[src*="/eb12ca15d6b44acd83b5df649c25fbe4/"] { scale: 2; transform-origin: 50% 4%; }
@media (min-width: 768px) {
  .md\:size-\[96px\] > img[src*="/eb12ca15d6b44acd83b5df649c25fbe4/"] { scale: 2; transform-origin: 50% 4%; }
  .md\:size-auto > img[src*="/2fe393c14b9a10ed78fef194635db7e8/"] { scale: 1; }
}

/* Prodigy team photo on a phone: keep two faces in frame instead of torsos */
@media (max-width: 767px) {
  img[src*="/c7a60badc2fa6c903c60a2dfc6be2be7/"] { object-position: 30% 20% !important; }
}
