/* =========================================================================
   Service pages built by page fork P2: Digital PR, Onsite SEO, Organic Social,
   Social SEO, Data & Insights. Mirrors the reference service template
   (riseatseven.com/services/*). Prefix p2- to stay clear of other page CSS.
   ========================================================================= */

/* ---------- Shared text bits ---------- */
.p2-crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .75rem; color: var(--grey-300); padding-top: 6.75rem; margin-bottom: 1.75rem; }
@media (min-width: 1024px) { .p2-crumbs { padding-top: 7.25rem; margin-bottom: 2.75rem; } }
.p2-crumbs a { color: inherit; }
@media (pointer: fine) { .p2-crumbs a:hover { color: var(--grey-900); } }
.p2-label { font-size: .9375rem; line-height: 1.25; font-weight: 500; letter-spacing: var(--tracking-tight); }
.p2-label--line { padding-bottom: .875rem; border-bottom: 1px solid var(--grey-200); }
.p2-body { font-size: .875rem; line-height: 1.5; text-wrap: pretty; }
@media (min-width: 1024px) { .p2-body { font-size: 1rem; } }
.p2-body p + p { margin-top: 1rem; }
.p2-body strong { font-weight: 600; }
.p2-hl { background: var(--mint); border-radius: .375rem; padding: .05em .3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.p2-center { display: flex; justify-content: center; margin-top: 1.25rem; }
@media (min-width: 1024px) { .p2-center { margin-top: 1.75rem; } }
.p2-sec { padding-bottom: 3rem; }
@media (min-width: 1280px) { .p2-sec { padding-bottom: 6rem; } }

/* ---------- Hero: label left, heading right ---------- */
.p2-hero { padding-bottom: 1.75rem; }
@media (min-width: 1024px) { .p2-hero { padding-bottom: 2.25rem; } }
.p2-hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 1rem; }
.p2-hero__label { grid-column: span 12; }
.p2-hero__title { grid-column: span 12; max-width: 17ch; }
@media (min-width: 1024px) {
  .p2-hero__label { grid-column: span 4; }
  .p2-hero__title { grid-column: 5 / span 7; }
}

/* ---------- Continuous card rows (work glide, capability glide) ---------- */
.p2-row { overflow: hidden; }
.p2-row__drift { display: flex; width: 120vw; position: relative; }
.p2-row .swiper { width: 100%; }
.p2-slide { display: flex; height: 20vw; min-height: 15rem; padding-inline: .375rem; }
@media (min-width: 768px) { .p2-slide { min-height: 25rem; padding-inline: .625rem; } }
@media (min-width: 1024px) { .p2-slide { height: 45vw; min-height: 30rem; } }
@media (min-width: 1536px) { .p2-slide { height: 40vw; } }
@media (min-width: 2560px) { .p2-slide { height: 30vw; } }

/* Work card filling its slide: image, chip, name; hover reveals the project colour as a circle mask */
.p2-wcard { width: 100%; height: 100%; border-radius: var(--r-2xl); background: var(--c, var(--grey-900)); color: var(--white); }
@media (min-width: 1024px) { .p2-wcard { border-radius: var(--r-3xl); } }
.p2-wcard__img { position: relative; z-index: 0; overflow: hidden; transition: transform .7s var(--ease-smooth); }
.p2-wcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p2-wcard__shade { z-index: 10; background: linear-gradient(to top, #000, transparent 60%); opacity: .5; }
.p2-wcard__info, .p2-wcard__mask { display: flex; flex-direction: column; justify-content: space-between; padding: .75rem; }
@media (min-width: 1024px) { .p2-wcard__info, .p2-wcard__mask { padding: 1.25rem; } }
.p2-wcard__info { z-index: 30; transition: opacity .3s; }
.p2-wcard__top { display: flex; justify-content: flex-end; }
.p2-wcard__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.p2-wcard__name { display: inline-flex; flex-direction: column-reverse; align-items: flex-start; gap: .5rem; }
@media (min-width: 768px) { .p2-wcard__name { flex-direction: row; } }
.p2-wcard__name small { font-size: .75rem; font-weight: 500; }
.p2-wcard__mark { width: 4rem; aspect-ratio: 20/9; border: 1px solid currentColor; border-radius: 999px; display: grid; place-items: center; font-size: .625rem; font-weight: 600; letter-spacing: .04em; opacity: .85; }
@media (min-width: 1024px) { .p2-wcard__mark { width: 6rem; font-size: .75rem; } }
.p2-wcard__mask { background: var(--c, var(--mint)); color: var(--grey-900); }
.p2-wcard__mask .t-h3 { max-width: 14ch; }
.p2-wcard .chip { background: rgba(255,255,255,.15); color: currentColor; }
.p2-wcard__mask .chip { background: rgba(255,255,255,.4); }
@media (pointer: fine) {
  .p2-wcard:hover .p2-wcard__img { transform: scale(1.05); }
  .p2-wcard:hover .p2-wcard__info { opacity: 0; }
}

/* Capability cards (white card, image + title) in the continuous glide */
.p2-cap { display: flex; flex-direction: column; width: 100%; background: var(--white); border-radius: var(--r-2xl); padding: .5rem; margin-inline: .3125rem; }
@media (min-width: 1024px) { .p2-cap { border-radius: var(--r-3xl); padding: .75rem; margin-inline: .625rem; } }
.p2-cap__img { position: relative; overflow: hidden; border-radius: var(--r-xl); aspect-ratio: 9/8; }
@media (min-width: 1024px) { .p2-cap__img { border-radius: var(--r-2xl); } }
.p2-cap__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-smooth); }
.p2-cap__title { padding: .75rem .25rem .25rem; font-size: 1.375rem; line-height: 1.05; font-weight: 500; letter-spacing: var(--tracking-tight); }
@media (min-width: 1280px) { .p2-cap__title { font-size: 1.875rem; padding-top: 1rem; } }
@media (pointer: fine) { .p2-cap:hover .p2-cap__img img { transform: scale(1.05); } }
.p2-caps .swiper-slide { display: flex; height: auto; }

/* Portrait "video" cards (social SEO hero strip) */
.p2-vcard { position: relative; display: block; width: 100%; aspect-ratio: 9/16; overflow: hidden; border-radius: var(--r-2xl); background: var(--grey-900); color: var(--white); }
@media (min-width: 1024px) { .p2-vcard { border-radius: var(--r-3xl); } }
.p2-vcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-smooth); }
.p2-vcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 35%, transparent 65%, rgba(0,0,0,.45)); }
.p2-vcard__cap { position: absolute; z-index: 2; left: .75rem; right: .75rem; top: .75rem; font-size: .8125rem; line-height: 1.2; font-weight: 500; letter-spacing: var(--tracking-tight); }
.p2-vcard__play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 3rem; height: 3rem; margin: -1.5rem 0 0 -1.5rem; border-radius: 50%; background: var(--mint); color: var(--grey-900); display: grid; place-items: center; transition: transform .5s var(--ease-smooth); }
.p2-vcard__tag { position: absolute; z-index: 2; left: .75rem; bottom: .75rem; }
@media (pointer: fine) { .p2-vcard:hover img { transform: scale(1.05); } .p2-vcard:hover .p2-vcard__play { transform: scale(1.15); } }
.p2-strip .swiper-slide { padding-inline: .375rem; }
@media (min-width: 768px) { .p2-strip .swiper-slide { padding-inline: .625rem; } }

/* ---------- Statistics row ---------- */
.p2-stats__desk { display: none; }
@media (min-width: 1024px) {
  .p2-stats__desk { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
  .p2-stats__mob { display: none; }
}
.p2-stat { display: flex; flex-direction: column; justify-content: flex-end; gap: .75rem; min-height: 11rem; border-left: 1px solid var(--grey-200); padding: 1.25rem 1.25rem 0; }
@media (min-width: 1280px) { .p2-stat { min-height: 15rem; } }
.p2-stat .stat { font-size: 4.5rem; line-height: 1.1; font-weight: 500; letter-spacing: var(--tracking-tight); }
@media (min-width: 1024px) { .p2-stat .stat { font-size: 6rem; } }
.p2-stat p { font-size: .8125rem; line-height: 1.2; font-weight: 500; max-width: 14rem; }
.p2-stats__mob .swiper-slide { height: auto; display: flex; }

/* ---------- Intro: heading left, copy right ---------- */
.p2-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 1.5rem; }
.p2-intro > :first-child { grid-column: span 12; }
.p2-intro > :last-child { grid-column: span 12; max-width: 38rem; }
@media (min-width: 1024px) {
  .p2-intro > :first-child { grid-column: span 4; }
  .p2-intro > :last-child { grid-column: 6 / span 6; }
}
.p2-intro__note { margin-top: 1.75rem; font-size: 1.375rem; line-height: 1.05; font-weight: 500; letter-spacing: var(--tracking-tight); max-width: 22ch; }
@media (min-width: 1280px) { .p2-intro__note { font-size: 1.875rem; } }

/* ---------- Split: media left, text right (approach, cycling tabs) ---------- */
.p2-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: .75rem; align-items: center; }
@media (min-width: 768px) { .p2-split { row-gap: 1.25rem; } }
@media (min-width: 1024px) { .p2-split { column-gap: 2.5rem; } }
@media (min-width: 1280px) { .p2-split { column-gap: 5rem; } }
.p2-split__media, .p2-split__text { grid-column: span 12; }
.p2-split__text { display: grid; gap: .75rem; align-content: center; padding-block: 1.25rem; }
@media (min-width: 768px) { .p2-split__text { gap: 1.75rem; } }
@media (min-width: 1024px) {
  .p2-split__media, .p2-split__text { grid-column: span 6; }
  .p2-split__text { padding-block: 2.5rem; }
  .p2-split--text-first .p2-split__text { order: -1; }
}
.p2-split--text-first .p2-split__text { order: 2; }
@media (min-width: 1024px) { .p2-split--text-first .p2-split__text { order: -1; } }
.p2-split__text .btn { justify-self: start; }

/* Square media frame used by the slideshow and the tab images */
.p2-frame { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-2xl); background: var(--grey-150); }
@media (min-width: 1024px) { .p2-frame { border-radius: var(--r-3xl); } }
.p2-frame .swiper, .p2-frame .swiper-wrapper, .p2-frame .swiper-slide { height: 100%; }
.p2-frame .swiper-slide img, .p2-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p2-frame > img[data-tab-img] { opacity: 0; transition: opacity .7s var(--ease-smooth); }
.p2-frame > img[data-tab-img].is-active { opacity: 1; }
.p2-frame--duo { aspect-ratio: auto; background: none; border-radius: 0; overflow: visible; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.p2-frame--duo .p2-vcard { aspect-ratio: 9/14; }

/* Slideshow progress bars (top) and play/pause dot (bottom right) */
.p2-bars { position: absolute; z-index: 10; left: .75rem; right: .75rem; top: .75rem; display: flex; gap: .375rem; }
@media (min-width: 1024px) { .p2-bars { left: 1.25rem; right: 1.25rem; top: 1.25rem; } }
.p2-bars > span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.p2-bars > span > span { display: block; height: 100%; width: 0; background: var(--white); }
.p2-toggle { position: absolute; z-index: 10; right: .75rem; bottom: .75rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--mint); color: var(--grey-900); display: grid; place-items: center; font-size: .625rem; }
@media (min-width: 1024px) { .p2-toggle { right: 1.25rem; bottom: 1.25rem; } }
.p2-toggle .ic-play { display: none; }
.p2-toggle.is-paused .ic-play { display: block; }
.p2-toggle.is-paused .ic-pause { display: none; }

/* ---------- Cycling tabs ---------- */
.p2-tabs { border-top: 1px solid var(--grey-200); }
.p2-tab__head { display: block; width: 100%; text-align: left; padding-top: 1rem; font-size: 1.063rem; line-height: 1.15; font-weight: 500; letter-spacing: var(--tracking-tight); }
@media (min-width: 1024px) { .p2-tab__head { font-size: 1.125rem; } }
@media (min-width: 1280px) { .p2-tab__head { padding-top: 1.5rem; font-size: 1.375rem; } }
.p2-tab__body { height: 0; overflow: hidden; }
.p2-tab:first-child .p2-tab__body { height: auto; }          /* no-JS / first paint: first tab open */
.p2-tab__body > div { padding-top: 1rem; }
@media (min-width: 1280px) { .p2-tab__body > div { padding-right: 2.5rem; } }
@media (min-width: 1536px) { .p2-tab__body > div { padding-right: 5rem; } }
.p2-tab__body h3 { font-size: 1.875rem; line-height: 1; font-weight: 500; letter-spacing: var(--tracking-tight); margin-bottom: 1rem; text-wrap: balance; }
.p2-tab__body p { font-size: .875rem; line-height: 1.5; margin-bottom: 1.25rem; text-wrap: pretty; }
@media (min-width: 1024px) { .p2-tab__body p { font-size: 1rem; } }
.p2-tab__body p:last-child { margin-bottom: 0; }
.p2-tab__line { height: 1px; margin-top: 1rem; background: var(--grey-200); }
@media (min-width: 1280px) { .p2-tab__line { margin-top: 1.5rem; } }
.p2-tab__line > span { display: block; width: 0; height: 2px; margin-top: -1px; background: var(--grey-900); }
.p2-tab__line > span.is-run { animation: p2-grow 10s linear forwards; }
.p2-tab__line > span.is-full { width: 100%; }
@keyframes p2-grow { from { width: 0%; } to { width: 100%; } }
@media (pointer: fine) { .p2-tab:not(.is-active) .p2-tab__head:hover { color: var(--grey-300); } }

/* Check list inside a tab (data & insights) */
.p2-checks { display: grid; gap: .75rem 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .p2-checks { grid-template-columns: 1fr 1fr; } }
.p2-checks li { display: flex; gap: .625rem; align-items: flex-start; font-size: .8125rem; line-height: 1.3; font-weight: 500; }
.p2-checks li::before { content: ""; flex: none; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23111212' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; }
.p2-checks span { display: block; font-weight: 400; color: var(--grey-300); }

/* ---------- Testimonials (dark panel, centred carousel, pill pager) ---------- */
.p2-tm { padding: 3rem 0 2.5rem; overflow: hidden; text-align: center; }
@media (min-width: 1024px) { .p2-tm { padding: 5rem 0 3.5rem; } }
.p2-tm__stars { letter-spacing: .3em; font-size: .875rem; margin-bottom: 1rem; }
.p2-tm h2 { margin: 0 auto 2rem; max-width: 12ch; color: var(--white); }
.p2-tm .swiper { overflow: visible; }
.p2-tm-slide { display: grid; gap: .5rem; text-align: left; transition: opacity .7s var(--ease-smooth), transform .7s var(--ease-smooth); }
@media (min-width: 768px) { .p2-tm-slide { grid-template-columns: 1fr 1fr; gap: .75rem; } }
.p2-tm .swiper-slide:not(.swiper-slide-active) .p2-tm-slide { opacity: .35; transform: scale(.94); }
.p2-tm-quote { background: var(--white); color: var(--grey-900); border-radius: var(--r-3xl); padding: 1.25rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-height: 16rem; }
@media (min-width: 1024px) { .p2-tm-quote { padding: 1.75rem; min-height: 24rem; } }
.p2-tm-quote blockquote { font-size: 1.25rem; line-height: 1.1; font-weight: 500; letter-spacing: var(--tracking-tight); }
@media (min-width: 1280px) { .p2-tm-quote blockquote { font-size: 1.625rem; } }
.p2-tm-person { display: flex; align-items: center; gap: .625rem; font-size: .8125rem; line-height: 1.2; }
.p2-tm-person .avatar { flex: none; width: 2.25rem; height: 2.25rem; border-radius: .5rem; background: var(--grey-150); display: grid; place-items: center; font-size: .6875rem; font-weight: 600; }
.p2-tm-person small { display: block; color: var(--grey-300); font-size: .75rem; }
.p2-tm-media { position: relative; border-radius: var(--r-3xl); overflow: hidden; min-height: 14rem; }
.p2-tm-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p2-tm-media .btn { position: absolute; right: 1rem; bottom: 1rem; }
.p2-tm .p2-pager { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.75rem; padding-inline: var(--gutter); counter-reset: p2c; }
.p2-pager .swiper-pagination-bullet { counter-increment: p2c; width: auto; height: 2.5rem; margin: 0 !important; padding: 0 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: transparent; opacity: 1; color: rgba(255,255,255,.45); display: inline-flex; align-items: center; font-size: .75rem; font-weight: 600; letter-spacing: .04em; transition: color .3s, border-color .3s; }
.p2-pager .swiper-pagination-bullet::after { content: "Client " counter(p2c, decimal-leading-zero); }
.p2-pager .swiper-pagination-bullet-active { border-color: var(--white); color: var(--white); }
@media (pointer: fine) { .p2-pager .swiper-pagination-bullet:hover { color: var(--white); } }

/* ---------- FAQ (white rounded rows) ---------- */
.p2-faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 1.5rem; }
.p2-faq > :first-child { grid-column: span 12; }
.p2-faq > :last-child { grid-column: span 12; }
@media (min-width: 1024px) {
  .p2-faq > :first-child { grid-column: span 4; }
  .p2-faq > :last-child { grid-column: 5 / span 8; }
}
.p2-faq .acc { border: 0; display: grid; gap: .5rem; }
.p2-faq .acc details { border: 0; background: var(--white); border-radius: var(--r-xl); padding-inline: 1rem; }
@media (min-width: 1024px) { .p2-faq .acc details { padding-inline: 1.25rem; } }
.p2-faq .acc summary { padding-block: 1rem; font-size: .9375rem; font-weight: 500; letter-spacing: var(--tracking-tight); }
.p2-faq .acc .acc__body { padding-bottom: 1.25rem; font-size: .875rem; line-height: 1.5; color: var(--grey-400); }

/* Section headings with a line below (articles, featured row) */
.p2-headrow { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--grey-200); }
