/* =========================================================================
   Top by Ten: About, Team, Team member, Culture, Careers (page fork P4).
   Loaded from a <link> inside each page body so it also arrives with Barba
   transitions (the head is not swapped). Class prefix: p4-
   ========================================================================= */

/* ---------- Shared bits ---------- */
.p4-label { font-size: 1.063rem; line-height: 1.25; font-weight: 500; letter-spacing: var(--tracking-tight); }
@media (min-width: 1280px) { .p4-label { font-size: 1.25rem; } }
.p4-h4 { font-size: 1.875rem; line-height: 1.05; font-weight: 500; letter-spacing: var(--tracking-tight); text-wrap: balance; }
@media (min-width: 1024px) { .p4-h4 { font-size: 2.5rem; } }
@media (min-width: 1536px) { .p4-h4 { font-size: 3rem; } }
.p4-body { font-size: 1rem; line-height: 1.45; letter-spacing: -.01em; }
.p4-body p + p { margin-top: .9rem; }
.p4-ph { color: var(--grey-300); font-style: italic; }

/* Placeholder person tile (no photos of staff until real people are supplied) */
.p4-person { position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, #d9fbf1 0%, var(--mint) 40%, #8fe3cc 100%); color: var(--grey-900); }
.p4-person--grey { background: radial-gradient(120% 90% at 30% 20%, #fafafa 0%, var(--grey-150) 45%, var(--grey-200) 100%); }
.p4-person--dark { background: radial-gradient(120% 90% at 30% 20%, #3a3a3a 0%, var(--grey-500) 50%, var(--grey-800) 100%); color: var(--grey-100); }
.p4-person__mono { font-size: clamp(3rem, 7vw, 6rem); font-weight: 600; letter-spacing: -.06em; line-height: 1; opacity: .9; }
.p4-person__note { position: absolute; left: 0; right: 0; bottom: .9rem; text-align: center; font-size: .75rem; font-weight: 500; opacity: .7; }

/* ---------- Split section: small label left, statement right (About "Who we are", Culture) ---------- */
.p4-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 1rem; padding-top: 3rem; border-top: 1px solid var(--grey-200); }
@media (min-width: 1280px) { .p4-split { padding-top: 6rem; } }
.p4-split__label { grid-column: span 12; }
.p4-split__main { grid-column: span 12; display: grid; gap: 1.25rem; justify-items: start; }
@media (min-width: 768px) { .p4-split__label { grid-column: span 4; } .p4-split__main { grid-column: 5 / span 8; } }
@media (min-width: 1024px) { .p4-split__main { grid-column: 5 / span 7; } }
.p4-split__main .t-h3 { max-width: 22ch; }
.p4-btn-ghost { background: transparent; }

/* ---------- Stats row (About) ---------- */
.p4-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 3rem; }
@media (min-width: 1024px) { .p4-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 5rem; } }
.p4-stat { display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; min-height: 11rem; padding: 1.25rem; border-left: 1px solid var(--grey-200); }
@media (min-width: 1280px) { .p4-stat { min-height: 15rem; padding: 1.75rem 2.5rem; } }
.p4-stat .stat { font-size: 3.125rem; line-height: 1; font-weight: 500; letter-spacing: var(--tracking-tight); }
@media (min-width: 1280px) { .p4-stat .stat { font-size: 4.5rem; } }
.p4-stat p { font-weight: 500; letter-spacing: var(--tracking-tight); }

/* ---------- Image loop with a big heading on top ("Senior Team") ---------- */
.p4-loop { position: relative; overflow: hidden; }
.p4-loop__row { display: flex; width: 120vw; overflow: hidden; }
.p4-loop__item { flex: none; width: 46vw; padding-inline: .375rem; }
@media (min-width: 768px) { .p4-loop__item { width: 30vw; } }
@media (min-width: 1280px) { .p4-loop__item { width: 22vw; padding-inline: .5rem; } }
.p4-loop__card { position: relative; aspect-ratio: 3/4; border-radius: var(--r-2xl); overflow: hidden; }
@media (min-width: 1024px) { .p4-loop__card { border-radius: var(--r-3xl); } }
.p4-loop__card::after { content: ""; position: absolute; inset: 0; background: rgba(17,18,18,.25); }
.p4-loop__over { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; color: var(--white); text-align: center; pointer-events: none; }
.p4-loop__over .btn { pointer-events: auto; }
.p4-loop__over .t-display { text-shadow: 0 2px 40px rgba(0,0,0,.15); }

/* ---------- Dark panel with a vertical ticker (About "Ten promises") ---------- */
.p4-ticker { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: 2rem 1.25rem; overflow: hidden; }
@media (min-width: 1024px) { .p4-ticker { padding: 0 2.5rem; min-height: 38rem; } }
.p4-ticker__intro { grid-column: span 12; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1rem; padding-block: 1rem 2rem; }
@media (min-width: 1024px) { .p4-ticker__intro { grid-column: span 5; padding-block: 3rem; } }
.p4-ticker__intro p { color: var(--grey-200); max-width: 26rem; }
.p4-ticker__list { grid-column: span 12; position: relative; height: 26rem; overflow: hidden; }
@media (min-width: 1024px) { .p4-ticker__list { grid-column: 7 / span 6; height: 38rem; } }
.p4-ticker__list::before, .p4-ticker__list::after { content: ""; position: absolute; left: 0; width: 100%; height: 25%; z-index: 2; pointer-events: none; }
.p4-ticker__list::before { top: 0; background: linear-gradient(to bottom, var(--grey-900), rgba(17,18,18,0)); }
.p4-ticker__list::after { bottom: 0; background: linear-gradient(to top, var(--grey-900), rgba(17,18,18,0)); }
.p4-ticker__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.p4-ticker__row .t-h2 { font-variant-numeric: tabular-nums; }
.p4-ticker__row span:last-child { max-width: 16rem; text-align: right; font-weight: 500; letter-spacing: var(--tracking-tight); color: var(--grey-100); }

/* ---------- Two columns: media left, text right (About "What we do", Culture values, Careers mission) ---------- */
.p4-duo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2rem; align-items: center; }
.p4-duo__media { grid-column: span 12; position: relative; }
.p4-duo__text { grid-column: span 12; }
@media (min-width: 1024px) {
  .p4-duo__media { grid-column: span 6; }
  .p4-duo__text { grid-column: 8 / span 5; }
  .p4-duo--flip .p4-duo__media { grid-column: 7 / span 6; order: 2; }
  .p4-duo--flip .p4-duo__text { grid-column: 1 / span 5; order: 1; }
}
.p4-duo__frame { position: relative; aspect-ratio: 1; border-radius: var(--r-2xl); overflow: hidden; background: var(--grey-150); }
@media (min-width: 1024px) { .p4-duo__frame { border-radius: var(--r-3xl); } }
.p4-duo__frame .swiper, .p4-duo__frame .swiper-wrapper, .p4-duo__frame .swiper-slide { height: 100%; }
.p4-duo__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p4-duo__frame .swiper-slide { position: relative; }
.p4-numlist { display: grid; gap: .9rem; margin-top: 1.25rem; counter-reset: n; }
.p4-numlist li { display: grid; grid-template-columns: 1.75rem 1fr; gap: .5rem; line-height: 1.4; }
.p4-numlist li::before { counter-increment: n; content: counter(n); display: grid; place-items: center; width: 1.375rem; height: 1.375rem; border-radius: .375rem; background: var(--mint); font-size: .75rem; font-weight: 600; }

/* Slideshow controls: five bars + play/pause (About) */
.p4-bars { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 5; display: flex; align-items: center; gap: .5rem; }
.p4-bars__track { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.p4-bars__track span { display: block; width: 0; height: 100%; background: var(--white); }
.p4-bars button { flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--mint); display: grid; place-items: center; }
.p4-bars button .ic-play { display: none; }
.p4-bars button.is-paused .ic-play { display: block; } .p4-bars button.is-paused .ic-pause { display: none; }

/* Value list with progress line (Culture values, Careers mission): slideshow bars inside rows */
.p4-values { margin-top: 1.75rem; border-top: 1px solid var(--grey-200); }
.p4-values li { position: relative; padding-block: 1rem; border-bottom: 1px solid var(--grey-200); }
.p4-values h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: var(--tracking-tight); }
.p4-values p { max-height: 0; overflow: hidden; opacity: 0; margin-top: 0; transition: max-height .6s var(--ease-smooth), opacity .4s, margin-top .6s var(--ease-smooth); font-size: .9375rem; line-height: 1.45; }
.p4-values li.is-active p { max-height: 8rem; opacity: 1; margin-top: .5rem; }
.p4-values__bar { position: absolute; left: 0; bottom: -1px; width: 66%; height: 2px; }
.p4-values__bar span { display: block; width: 0; height: 100%; background: var(--grey-900); }

/* ---------- Testimonial carousel on a dark panel (About) ---------- */
.p4-rec { padding: 3rem 0 2rem; overflow: hidden; }
@media (min-width: 1024px) { .p4-rec { padding: 5rem 0 3rem; } }
.p4-rec__head { text-align: center; padding-inline: var(--gutter); margin-bottom: 2.5rem; }
.p4-rec__stars { letter-spacing: .3em; font-size: 1rem; margin-bottom: 1rem; color: var(--white); }
.p4-quote { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--r-2xl); overflow: hidden; background: var(--white); color: var(--grey-900); transition: opacity .5s; }
@media (min-width: 1024px) { .p4-quote { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); border-radius: var(--r-3xl); min-height: 26rem; } }
.p4-rec .swiper-slide:not(.swiper-slide-active) .p4-quote { opacity: .35; }
.p4-quote__text { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 1.5rem; }
@media (min-width: 1024px) { .p4-quote__text { padding: 2.25rem; } }
.p4-quote__text blockquote { font-size: 1.375rem; line-height: 1.1; font-weight: 500; letter-spacing: var(--tracking-tight); }
@media (min-width: 1280px) { .p4-quote__text blockquote { font-size: 1.875rem; } }
.p4-quote__who { display: flex; align-items: center; gap: .75rem; font-size: .875rem; line-height: 1.3; }
.p4-quote__who i { width: 2.5rem; height: 2.5rem; border-radius: .5rem; background: var(--mint); flex: none; }
.p4-quote__media { position: relative; min-height: 14rem; }
.p4-quote__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p4-quote__media .btn { position: absolute; right: 1rem; bottom: 1rem; }
.p4-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-inline: var(--gutter); }
.p4-pager button { min-width: 6.5rem; height: 2.75rem; padding-inline: 1rem; border-radius: .75rem; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.55); font-size: .8125rem; font-weight: 600; letter-spacing: -.02em; transition: border-color .3s, color .3s, background .3s; }
.p4-pager button.is-active { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }
@media (pointer: fine) { .p4-pager button:hover { color: var(--white); } }

/* ---------- Team index: heading pinned behind scattered cards ---------- */
.p4-team { position: relative; padding-bottom: 6rem; }
.p4-team__heading { position: relative; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 9rem var(--gutter) 3rem; }
@media (pointer: fine) and (min-width: 1024px) { .p4-team__heading { height: 100svh; padding-top: 4rem; } }
.p4-team__heading .crumbs { position: absolute; top: 7.5rem; left: var(--gutter); display: flex; gap: .5rem; font-size: .75rem; color: var(--grey-300); }
.p4-team__heading p { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 500; letter-spacing: var(--tracking-tight); }
.p4-team__grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; padding-inline: var(--gutter); }
.p4-member { display: block; position: relative; }
.p4-member__card { position: relative; aspect-ratio: 3/4; border-radius: var(--r-2xl); overflow: hidden; transition: border-radius .4s var(--ease-smooth); }
@media (min-width: 1024px) { .p4-member__card { border-radius: var(--r-3xl); } }
@media (pointer: fine) { .p4-member:hover .p4-member__card { border-radius: var(--r-xl); } }
.p4-member__chips { position: absolute; z-index: 3; top: .75rem; left: .75rem; display: flex; flex-wrap: wrap; gap: .25rem; }
.p4-member__chips .chip { background: rgba(255,255,255,.75); color: var(--grey-900); }
/* Desktop scatter: positions measured from the reference page (480px-wide capture -> vw) */
@media (pointer: fine) and (min-width: 1024px) {
  .p4-team__grid { display: block; position: relative; height: 232vw; margin-top: -100svh; padding: 0; }
  .p4-member { position: absolute; }
  .p4-member:nth-child(1) { left: 6.25vw; top: 11.67vw; width: 22.92vw; z-index: 30; }
  .p4-member:nth-child(2) { left: 71.25vw; top: 28.33vw; width: 17.92vw; z-index: 10; }
  .p4-member:nth-child(3) { left: 22.50vw; top: 53.96vw; width: 25.00vw; z-index: 30; }
  .p4-member:nth-child(4) { left: 76.88vw; top: 60.42vw; width: 15.83vw; z-index: 10; }
  .p4-member:nth-child(5) { left: 7.50vw; top: 104.58vw; width: 20.00vw; z-index: 30; }
  .p4-member:nth-child(6) { left: 68.75vw; top: 101.88vw; width: 14.17vw; z-index: 10; }
  .p4-member:nth-child(7) { left: 14.17vw; top: 144.17vw; width: 18.33vw; z-index: 30; }
  .p4-member:nth-child(8) { left: 73.75vw; top: 145.83vw; width: 14.17vw; z-index: 10; }
  .p4-member:nth-child(9) { left: 7.50vw; top: 184.79vw; width: 20.00vw; z-index: 30; }
  .p4-member:nth-child(10) { left: 72.29vw; top: 205.21vw; width: 16.25vw; z-index: 10; }
}

/* ---------- Team member profile ---------- */
.p4-profile { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2rem; padding-top: 8rem; }
@media (min-width: 1024px) { .p4-profile { padding-top: 9rem; } }
.p4-profile .crumbs { grid-column: span 12; display: flex; gap: .5rem; font-size: .75rem; color: var(--grey-300); }
.p4-profile__media { grid-column: span 12; }
.p4-profile__text { grid-column: span 12; }
@media (min-width: 1024px) {
  .p4-profile__media { grid-column: 1 / span 5; }
  .p4-profile__media > div { position: sticky; top: 7rem; }
  .p4-profile__text { grid-column: 7 / span 6; }
}
.p4-profile__media .p4-member__card { aspect-ratio: 4/5; }
.p4-profile__name { font-size: 3.125rem; line-height: .95; font-weight: 500; letter-spacing: var(--tracking-tight); }
@media (min-width: 1280px) { .p4-profile__name { font-size: 4.5rem; } }
.p4-profile__role { font-size: 1.875rem; line-height: 1; font-weight: 500; letter-spacing: var(--tracking-tight); color: var(--grey-200); margin-top: .25rem; }
@media (min-width: 1280px) { .p4-profile__role { font-size: 2.5rem; } }
.p4-qa { margin-top: 2.5rem; display: grid; gap: 1.75rem; }
.p4-qa h2 { font-size: 1.375rem; line-height: 1.15; font-weight: 500; letter-spacing: var(--tracking-tight); margin-bottom: .6rem; }
@media (min-width: 1280px) { .p4-qa h2 { font-size: 1.5rem; } }
.p4-qa p { font-size: .9375rem; line-height: 1.5; }
.p4-qa mark { background: var(--mint); padding: 0 .2em; border-radius: .25rem; }
.p4-socials { display: flex; gap: .5rem; margin-top: 1.5rem; }

/* ---------- Culture hero: "Est. 2025" halves part while the video grows ---------- */
.p4-vg { position: relative; height: 200vh; }
@media (pointer: coarse), (prefers-reduced-motion: reduce) { .p4-vg { height: auto; } }
.p4-vg__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
@media (pointer: coarse), (prefers-reduced-motion: reduce) { .p4-vg__sticky { position: relative; height: auto; display: block; padding: 8rem var(--gutter) 2rem; } }
.p4-vg .crumbs { position: absolute; top: 7.5rem; left: var(--gutter); z-index: 5; display: flex; gap: .5rem; font-size: .75rem; color: var(--grey-300); }
@media (pointer: coarse), (prefers-reduced-motion: reduce) { .p4-vg .crumbs { position: static; margin-bottom: 1.5rem; } }
.p4-vg__left, .p4-vg__right { position: absolute; z-index: 1; font-size: clamp(5rem, 14vw, 15rem); line-height: .85; font-weight: 500; letter-spacing: -.05em; }
.p4-vg__left { left: 20%; top: 18%; }
.p4-vg__right { right: 6%; top: 52%; }
@media (pointer: coarse), (prefers-reduced-motion: reduce) { .p4-vg__left, .p4-vg__right { position: static; display: inline-block; margin-right: .25em; font-size: clamp(4rem, 18vw, 9rem); } }
.p4-vg__media { position: relative; z-index: 2; width: min(92vw, 1400px); aspect-ratio: 16/9; overflow: hidden; border-radius: 1.5rem; }
@media (pointer: coarse), (prefers-reduced-motion: reduce) { .p4-vg__media { width: 100%; margin-top: 1.5rem; } }
.p4-vg__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p4-vg__media .vplayer__start { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; padding: 1.25rem; }
.p4-vg__note { position: absolute; top: 1rem; left: 1rem; z-index: 3; }

/* ---------- Photo glide strip ---------- */
.p4-glide .swiper-slide { padding-inline: .375rem; }
@media (min-width: 1280px) { .p4-glide .swiper-slide { padding-inline: .5rem; } }
.p4-glide__img { position: relative; aspect-ratio: 1; border-radius: var(--r-2xl); overflow: hidden; }
@media (min-width: 1024px) { .p4-glide__img { border-radius: var(--r-3xl); } }
.p4-glide__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Good Times: pinned horizontal timeline on a dark panel ---------- */
.p4-times { position: relative; }
.p4-times__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-block: 1.75rem; }
@media (pointer: coarse), (prefers-reduced-motion: reduce), (max-width: 1023px) { .p4-times__sticky { position: relative; height: auto; } }
.p4-times__panel { height: 100%; border-radius: var(--r-3xl); background: var(--grey-900); color: var(--white); overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-block: 2.5rem; }
.p4-times__title { text-align: center; font-size: clamp(4rem, 14vw, 14rem); line-height: .85; font-weight: 500; letter-spacing: -.05em; margin-bottom: -3rem; position: relative; z-index: 2; pointer-events: none; }
.p4-times__track { display: flex; gap: 1rem; padding-inline: 8vw; }
@media (pointer: coarse), (prefers-reduced-motion: reduce), (max-width: 1023px) { .p4-times__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: 1.25rem; padding-bottom: .5rem; margin-top: 3.5rem; } }
.p4-times__item { flex: none; width: 70vw; scroll-snap-align: start; opacity: .45; transition: opacity .5s; }
@media (min-width: 1024px) { .p4-times__item { width: 30vw; } }
.p4-times__item.is-active, .p4-times__item:first-child { opacity: 1; }
@media (pointer: coarse), (prefers-reduced-motion: reduce), (max-width: 1023px) { .p4-times__item { opacity: 1; } }
.p4-times__img { position: relative; aspect-ratio: 4/3; border-radius: var(--r-2xl); overflow: hidden; }
.p4-times__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p4-times__cap { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-top: .9rem; font-size: 1.125rem; line-height: 1.15; font-weight: 500; letter-spacing: var(--tracking-tight); }

/* ---------- Team voices slideshow (Culture) ---------- */
.p4-voices { position: relative; border-radius: var(--r-3xl); overflow: hidden; background: var(--grey-500); color: var(--white); }
.p4-voices__bg { position: absolute; inset: 0; filter: blur(24px); transform: scale(1.1); opacity: .55; }
.p4-voices__bg img { width: 100%; height: 100%; object-fit: cover; }
.p4-voices__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding: .75rem; }
@media (min-width: 1024px) { .p4-voices__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2.5rem; padding: .75rem 2.5rem .75rem .75rem; } }
.p4-voices__photo { position: relative; aspect-ratio: 1; border-radius: var(--r-2xl); overflow: hidden; }
.p4-voices__text { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; padding: 1rem .5rem 1.25rem; }
.p4-voices .swiper { width: 100%; }
.p4-voices blockquote { font-size: 1.5rem; line-height: 1.05; font-weight: 500; letter-spacing: var(--tracking-tight); }
@media (min-width: 1280px) { .p4-voices blockquote { font-size: 2.5rem; } }
.p4-voices__people { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.p4-voices__person { display: flex; align-items: center; gap: .6rem; font-size: .8125rem; line-height: 1.25; opacity: .55; transition: opacity .3s; }
.p4-voices__person.is-active { opacity: 1; }
.p4-voices__person i { width: 2.25rem; height: 2.25rem; border-radius: .5rem; background: var(--mint); flex: none; }
.p4-voices__person b { display: block; font-weight: 600; }

/* ---------- Careers: image hero with a fading slideshow ---------- */
.p4-imghero { position: relative; height: calc(100svh - 2.5rem); padding: .5rem; }
.p4-imghero__frame { position: relative; height: 100%; border-radius: var(--r-3xl); overflow: hidden; background: var(--grey-900); }
.p4-imghero__frame .swiper, .p4-imghero__frame .swiper-wrapper, .p4-imghero__frame .swiper-slide { height: 100%; }
.p4-imghero__frame .swiper-slide { position: relative; }
.p4-imghero__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p4-imghero__frame::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(17,18,18,.55), rgba(17,18,18,.1) 60%); pointer-events: none; }
.p4-imghero__content { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1.5rem; padding: 0 var(--gutter) 3rem; color: var(--white); text-align: center; }
@media (min-width: 1024px) { .p4-imghero__content { padding-bottom: 4.5rem; } }
.p4-imghero .crumbs { position: absolute; top: 6.5rem; left: 1.25rem; z-index: 4; display: flex; gap: .5rem; font-size: .75rem; color: rgba(255,255,255,.7); }

/* Careers perks: pinned 600vh; images stacked (first on top) rise away; words follow the active image */
.p4-perks { position: relative; }
.p4-perks__label { text-align: center; font-weight: 500; letter-spacing: var(--tracking-tight); padding-top: 1rem; }
.p4-perks__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2.5rem; width: 100%; padding-inline: var(--gutter); }
.p4-perks__row > :first-child { text-align: right; }
.p4-perks__word { font-size: clamp(2rem, 4.2vw, 4.5rem); line-height: .95; font-weight: 500; letter-spacing: var(--tracking-tight); transition: opacity .5s, filter .5s; }
.p4-perks__img { position: relative; width: clamp(9rem, 26vw, 30rem); aspect-ratio: 1; border-radius: var(--r-3xl); overflow: hidden; will-change: transform; }
.p4-perks__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (pointer: fine) and (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .p4-perks { height: 600vh; padding-bottom: 0; }
  .p4-perks__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
  .p4-perks__item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transform: translateY(-4rem); }
  .p4-perks__item:nth-child(1) { z-index: 4; } .p4-perks__item:nth-child(2) { z-index: 3; } .p4-perks__item:nth-child(3) { z-index: 2; } .p4-perks__item:nth-child(4) { z-index: 1; }
  .p4-perks__word { opacity: 0; filter: blur(16px); }
  .p4-perks__item:has(.is-active) .p4-perks__word,
  .p4-perks:not(:has(.is-active)) .p4-perks__item:first-child .p4-perks__word { opacity: 1; filter: none; }
  .p4-perks__label { position: absolute; left: 0; right: 0; bottom: 2.5rem; padding: 0; }
  .p4-perks__img { width: 25rem; }
}
@media (pointer: fine) and (min-width: 1280px) and (prefers-reduced-motion: no-preference) { .p4-perks__img { width: 30rem; } }
@media (max-width: 1023px), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .p4-perks__label { order: -1; padding-bottom: 1.25rem; }
  .p4-perks__sticky { display: flex; flex-direction: column; }
  .p4-perks__item { padding-block: 1rem; }
  .p4-perks__row { grid-template-columns: 1fr; gap: .75rem; justify-items: center; text-align: center; }
  .p4-perks__row > :first-child { text-align: center; }
  .p4-perks__img { width: 70vw; max-width: 22rem; }
}

/* Careers: ways of working panel with "Get in touch" cursor label */
.p4-places { padding: 2.5rem 1.25rem; }
@media (min-width: 1024px) { .p4-places { padding: 4rem 4rem; } }
.p4-places__row { display: flex; flex-direction: column; gap: .75rem; padding-block: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.14); }
@media (min-width: 768px) { .p4-places__row { flex-direction: row; align-items: center; justify-content: space-between; } }
.p4-places__row:last-child { border-bottom: 0; }
.p4-places__row .t-h2 { transition: transform .5s var(--ease-smooth); }
@media (pointer: fine) { .p4-places__row:hover .t-h2 { transform: translateX(1rem); } }
.p4-places__row p { color: var(--grey-200); max-width: 20rem; font-weight: 500; letter-spacing: var(--tracking-tight); }
@media (min-width: 768px) { .p4-places__row p { text-align: right; } }

/* Careers: job list */
.p4-jobs__head { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 1024px) { .p4-jobs__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.p4-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.p4-filters span { font-size: .875rem; color: var(--grey-300); margin-right: .25rem; }
.p4-filters select { appearance: none; min-width: 9.5rem; height: 2.5rem; padding: 0 2.25rem 0 1rem; border-radius: 999px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .9rem center / .8rem; font: inherit; font-size: .875rem; color: var(--grey-900); border: 0; }
.p4-jobs { padding: .75rem; }
.p4-job { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 1rem 1rem 1rem 1.25rem; margin-bottom: .5rem; border-radius: var(--r-2xl); background: var(--white); color: var(--grey-900); transition: border-radius .3s; }
@media (min-width: 1024px) { .p4-job { grid-template-columns: 1fr 8rem 8rem 10rem 3rem; padding: 1.25rem 1.25rem 1.25rem 1.75rem; } }
@media (pointer: fine) { .p4-job:hover { border-radius: var(--r-lg); } }
.p4-job h3 { font-size: 1.375rem; font-weight: 500; letter-spacing: var(--tracking-tight); }
.p4-job span { display: none; font-size: .875rem; }
@media (min-width: 1024px) { .p4-job span { display: block; } }
.p4-job i.p4-job__go { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--mint); }
.p4-jobs__more { display: grid; gap: 1.25rem; padding: 2rem 1.25rem 1.5rem; color: var(--white); }
@media (min-width: 1024px) { .p4-jobs__more { grid-template-columns: 1fr 1fr; align-items: center; padding: 2.5rem 2.5rem 2rem; } }
.p4-jobs__more p { color: var(--grey-200); max-width: 30rem; margin-bottom: 1rem; font-size: .9375rem; line-height: 1.45; }

/* Careers FAQ: label left, accordion right */
.p4-faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 1.5rem; }
.p4-faq > :first-child { grid-column: span 12; }
.p4-faq > :last-child { grid-column: span 12; }
@media (min-width: 1024px) { .p4-faq > :first-child { grid-column: span 4; } .p4-faq > :last-child { grid-column: 5 / span 8; } }
.p4-faq .acc details { background: var(--white); border-radius: var(--r-xl); margin-bottom: .5rem; padding: 0 1.25rem; }

/* Application modal form */
.p4-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.p4-form label { display: grid; gap: .4rem; font-size: .875rem; font-weight: 500; }
.p4-form input, .p4-form textarea { width: 100%; padding: .85rem 1rem; border-radius: var(--r-xl); border: 1px solid var(--grey-200); background: var(--white); font: inherit; font-size: 1rem; color: var(--grey-900); }
.p4-form textarea { min-height: 7rem; resize: vertical; }
.p4-form__row { display: grid; gap: 1rem; }
@media (min-width: 768px) { .p4-form__row { grid-template-columns: 1fr 1fr; } }
.p4-form [data-status] { font-size: .875rem; color: var(--grey-300); min-height: 1.2em; }
.p4-form__note { font-size: .8125rem; color: var(--grey-300); }

.p4-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Extra-large headings used by the reference on About / Team */
.p4-xl { font-size: clamp(4.25rem, 12vw, 11.5rem); line-height: .88; letter-spacing: -.045em; }

/* Introduce Yourself: inline introduction + CV form (careers.html) */
.p4-intro-form { display: grid; gap: 2rem; border-top: 1px solid var(--grey-200); padding-top: 2rem; }
@media (min-width: 1024px) { .p4-intro-form { grid-template-columns: 5fr 7fr; gap: 3rem; align-items: start; } }
.p4-intro-form__text { display: grid; gap: 1rem; align-content: start; }
.p4-intro-form__text .t-h2 { margin: .25rem 0 0; }
.p4-intro-form__card { margin-top: 0; background: var(--white); border-radius: var(--r-xl); padding: clamp(1.25rem, 3vw, 2.25rem); }
.p4-form input:focus-visible, .p4-form textarea:focus-visible { outline: 2px solid var(--grey-900); outline-offset: 2px; }
.p4-form [aria-invalid="true"] { border-color: #c2410c; }
.p4-file { position: relative; }
.p4-file input[type="file"] { position: absolute; inset: auto 0 0 0; width: 100%; height: 3.25rem; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.p4-file__ui { display: flex; align-items: center; gap: .75rem; min-height: 3.25rem; padding: .4rem .5rem .4rem .4rem; border-radius: var(--r-xl); border: 1px dashed var(--grey-200); background: var(--white); font-weight: 400; }
.p4-file__btn { flex: none; padding: .55rem 1rem; border-radius: 999px; background: var(--grey-900); color: var(--white); font-size: .875rem; font-weight: 500; }
.p4-file__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--grey-300); font-size: .9375rem; }
.p4-file.is-chosen .p4-file__name { color: var(--grey-900); }
.p4-file:focus-within .p4-file__ui { outline: 2px solid var(--grey-900); outline-offset: 2px; }
.p4-file[aria-invalid="true"] .p4-file__ui, .p4-file.is-invalid .p4-file__ui { border-color: #c2410c; }
.p4-form [data-status].is-error { color: #c2410c; }
.p4-form [data-status].is-ok { color: var(--grey-900); }
.p4-form button[disabled] { opacity: .55; pointer-events: none; }
.p4-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Culture: how we work remotely */
.p4-remote { display: grid; gap: 1.75rem; margin-top: 1.75rem; }
@media (min-width: 768px) { .p4-remote { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.p4-remote .p4-h4 { margin-bottom: .5rem; }
.p4-remote .p4-h4 { font-size: 1.375rem; line-height: 1.15; } @media (min-width: 1024px) { .p4-remote .p4-h4 { font-size: 1.5rem; } }
