/**
 * Expertise detail — custom template, modernised (0.7.0).
 *
 * Started as a 1-on-1 port of Elementor single 10268, page 4877 and the shared
 * templates 5862 (quote), 4946 (brochure), 4743 (case studies), 4782 (logos),
 * 11444 (adviesgesprek) and 7403 (contact). Since 0.7.0 the page has one design
 * language, taken from the hero's diagonal "slice":
 *
 * - sharp edges, no rounded corners;
 * - one recurring shape: a 60° corner cut (--r4y-exp-cut-br / -tl), the same angle
 *   as the hero slice, on images, the contact photo and the advice band;
 * - one eyebrow style (gold rule + small caps) and one fluid heading scale;
 * - left-aligned text at a readable measure, one section rhythm (--r4y-exp-space).
 *
 * Breakpoints: laptop ≤1366, tablet ≤1024, mobile ≤767.
 */

.r4y-template--expertise_single {
    --r4y-gutter: 60px;
    --r4y-exp-space: clamp(72px, 8vw, 120px);
    --r4y-exp-measure: 62ch;
    --r4y-exp-h2: clamp(32px, 3.4vw, 50px);
    /* 60° cut: x : y = 1 : tan(60°) */
    --r4y-exp-cut-x: 56px;
    --r4y-exp-cut-y: 97px;
    --r4y-exp-cut-br: polygon(0 0, 100% 0, 100% calc(100% - var(--r4y-exp-cut-y)), calc(100% - var(--r4y-exp-cut-x)) 100%, 0 100%);
    --r4y-exp-cut-tl: polygon(var(--r4y-exp-cut-x) 0, 100% 0, 100% 100%, 0 100%, 0 var(--r4y-exp-cut-y));
}
/* The line drawings run past the viewport edge on purpose; never scroll sideways. */
.r4y-template .r4y-expertise {
    overflow-x: clip;
}

.r4y-template .r4y-expertise__admin-notice {
    position: relative;
    z-index: 2;
    margin: 120px var(--r4y-gutter) 0;
    padding: 15px 20px;
    border-left: 4px solid var(--r4y-kit-secondary);
    background-color: var(--r4y-kit-accent);
    font-size: var(--r4y-fs-sm);
}
.r4y-template .r4y-expertise__admin-notice a { color: var(--r4y-kit-primary); text-decoration: underline; }

/* ── Shared type ──────────────────────────────────────────────────────── */
/* Eyebrow: a short gold rule + small caps. Used by every section. */
.r4y-template .r4y-expertise__eyebrow,
.r4y-template .r4y-expertise-block__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    font-family: var(--r4y-font-body);
    font-size: 13px;
    font-weight: var(--r4y-fw-semibold);
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--r4y-kit-secondary);
}
.r4y-template .r4y-expertise__eyebrow::before,
.r4y-template .r4y-expertise-block__eyebrow::before {
    content: "";
    flex: 0 0 32px;
    height: 1px;
    background-color: currentColor;
}
/* .r4y-expertise … beats base.css .r4y-main h2 { margin: 0 }. */
.r4y-template .r4y-expertise .r4y-expertise__section-title,
.r4y-template .r4y-expertise .r4y-expertise-block__title {
    margin-bottom: 24px;
    font-family: var(--r4y-font-heading);
    font-size: var(--r4y-exp-h2);
    font-weight: var(--r4y-fw-light);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--r4y-kit-primary);
}
.r4y-template .r4y-expertise .r4y-prose {
    font-size: 17px;
    font-weight: var(--r4y-fw-light);
    line-height: 1.7;
}
.r4y-template .r4y-expertise .r4y-prose a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--r4y-kit-secondary);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--r4y-transition);
}
.r4y-template .r4y-expertise .r4y-prose a:hover { color: var(--r4y-kit-secondary); }

/* Buttons: sharp, 52px, with an arrow that moves on hover. */
.r4y-template .r4y-expertise a.r4y-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 26px;
    font-family: var(--r4y-font-body);
    font-weight: var(--r4y-fw-medium);
    letter-spacing: 0.01em;
}
.r4y-template .r4y-expertise a.r4y-button::after {
    content: "→" / "";
    transition: transform var(--r4y-transition) var(--r4y-ease-out);
}
.r4y-template .r4y-expertise a.r4y-button:hover::after,
.r4y-template .r4y-expertise a.r4y-button:focus-visible::after {
    transform: translateX(4px);
}
.r4y-template .r4y-expertise a.r4y-button:focus-visible {
    outline: 2px solid var(--r4y-kit-secondary);
    outline-offset: 3px;
}

/* ── Hero: full-width image + cream gradient, the slice bottom right ──── */
.r4y-template .r4y-expertise__hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 600px;
    margin-top: -75px; /* the header overlays the hero */
    padding: 0 var(--r4y-gutter) 90px; /* same left edge as the sections below */
    overflow: hidden; /* clips the slice */
    isolation: isolate;
}
/* Layers: photo (<img>, LCP) → cream gradient → content + slice. */
.r4y-template .r4y-expertise__hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom; /* 10268 (ACF header image) */
}
.r4y-template .r4y-expertise__hero--featured .r4y-expertise__hero-image {
    object-position: center top; /* older pages (featured image) */
}
.r4y-template .r4y-expertise__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(90deg, #FFFAF7 25%, #FBF8F600 100%);
}
.r4y-template .r4y-expertise__hero-inner {
    position: relative;
}
.r4y-template .r4y-expertise__crumb {
    margin-bottom: 18px;
    font-family: var(--r4y-font-body);
    font-size: 13px;
    font-weight: var(--r4y-fw-semibold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
/* Above the H1: at 76px with line-height 1 the heading font's ascent reaches over the
   link and took the clicks. The padding makes a 44px target without moving anything. */
.r4y-template .r4y-expertise__crumb {
    position: relative;
    z-index: 1;
}
.r4y-template .r4y-expertise__crumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin-block: -14px;
    padding-inline: 4px;
    margin-inline: -4px;
    color: var(--r4y-kit-secondary);
    text-decoration: none;
    transition: color var(--r4y-transition);
}
.r4y-template .r4y-expertise__crumb a:hover,
.r4y-template .r4y-expertise__crumb a:focus-visible { color: var(--r4y-kit-primary); }
.r4y-template .r4y-expertise .r4y-expertise__title {
    max-width: 14ch;
    margin-bottom: 32px;
    font-family: var(--r4y-font-heading);
    font-size: clamp(40px, 5.2vw, 76px);
    font-weight: var(--r4y-fw-light);
    line-height: 1;
    letter-spacing: -0.015em;
    color: var(--r4y-kit-primary);
}
.r4y-template .r4y-expertise__hero-cta {
    margin: 0;
}
/* The slice: same markup and values as the Elementor HTML widget — a 1000×500 white
   block (right −20vw, top 33vw) in a wrapper rotated −60°, clipped by the hero.
   Desktop and tablet; on mobile the hero gets the same angle as a corner cut. */
.r4y-template .r4y-expertise__hero-slice {
    margin-top: 20px;
    rotate: -60deg;
    pointer-events: none;
}
.r4y-template .r4y-expertise__hero-slice > div {
    position: absolute;
    top: 33vw;
    right: -20vw;
    width: 1000px;
    height: 500px;
    background: var(--r4y-kit-white);
}

/* ── Intro + "Op deze pagina": lead text left, numbered index right ──── */
.r4y-template .r4y-expertise__intro {
    position: relative;
    padding-block: var(--r4y-exp-space);
}
.r4y-template .r4y-expertise__intro-inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 40px clamp(40px, 7vw, 120px);
    align-items: start;
}
.r4y-template .r4y-expertise__intro-decor {
    position: absolute;
    top: -280px;
    right: -60px;
    z-index: 1;
    pointer-events: none;
}
.r4y-template .r4y-expertise__intro-inner > :not(.r4y-expertise__intro-decor) {
    position: relative;
    z-index: 2;
}
.r4y-template .r4y-expertise .r4y-expertise__intro-text {
    grid-column: 1;
    max-width: var(--r4y-exp-measure);
    font-size: clamp(18px, 1.5vw, 21px);
    line-height: 1.65;
    color: var(--r4y-kit-primary);
}
.r4y-template .r4y-expertise__toc {
    grid-column: 2;
    padding: 28px 28px 20px;
    border-top: 2px solid var(--r4y-kit-secondary);
    background-color: var(--r4y-kit-accent);
}
.r4y-template .r4y-expertise__intro-inner > .r4y-expertise__toc:first-of-type:not(.r4y-expertise__intro-text ~ *) {
    grid-column: 1 / -1;
}
.r4y-template .r4y-expertise__toc-title {
    margin-bottom: 12px;
    font-family: var(--r4y-font-body);
    font-size: 13px;
    font-weight: var(--r4y-fw-semibold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--r4y-kit-secondary);
}
.r4y-template .r4y-expertise__toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: r4y-toc;
}
.r4y-template .r4y-expertise__toc-list li + li {
    border-top: 1px solid var(--r4y-color-field-border);
}
.r4y-template .r4y-expertise__toc-link {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: baseline;
    padding: 14px 0;
    font-family: var(--r4y-font-body);
    font-size: var(--r4y-fs-base);
    font-weight: var(--r4y-fw-regular);
    line-height: 1.35;
    color: var(--r4y-kit-primary);
    text-decoration: none;
    counter-increment: r4y-toc;
    transition: color var(--r4y-transition);
}
.r4y-template .r4y-expertise__toc-link::before {
    content: counter(r4y-toc, decimal-leading-zero);
    font-size: 12px;
    font-weight: var(--r4y-fw-semibold);
    letter-spacing: 0.08em;
    color: var(--r4y-kit-secondary);
}
.r4y-template .r4y-expertise__toc-link::after {
    content: "↓" / "";
    color: var(--r4y-kit-secondary);
    transition: transform var(--r4y-transition) var(--r4y-ease-out);
}
.r4y-template .r4y-expertise__toc-link:hover,
.r4y-template .r4y-expertise__toc-link:focus-visible { color: var(--r4y-kit-secondary); outline: none; }
.r4y-template .r4y-expertise__toc-link:hover::after,
.r4y-template .r4y-expertise__toc-link:focus-visible::after { transform: translateY(3px); }

/* ── Blocks ───────────────────────────────────────────────────────────── */
.r4y-template .r4y-expertise-block {
    scroll-margin-top: 110px;
}
.r4y-template .r4y-expertise-block__text {
    max-width: var(--r4y-exp-measure);
}
.r4y-template .r4y-expertise-block__text p,
.r4y-template .r4y-expertise-block__text ul,
.r4y-template .r4y-expertise-block__text ol {
    margin-block: 1em;
}
.r4y-template .r4y-expertise-block__text ul { padding-inline-start: 22px; }
.r4y-template .r4y-expertise-block__text li::marker { color: var(--r4y-kit-secondary); }
.r4y-template .r4y-expertise-block__text > :first-child { margin-top: 0; }
.r4y-template .r4y-expertise-block__text > :last-child { margin-bottom: 0; }
.r4y-template .r4y-expertise-block__text h3 {
    margin: 1.6em 0 0.5em;
    font-family: var(--r4y-font-heading);
    font-size: var(--r4y-fs-xl);
    font-weight: var(--r4y-fw-regular);
    line-height: 1.2;
    color: inherit;
}
.r4y-template .r4y-expertise-block__media {
    position: relative;
    overflow: hidden;
}
/* The <img> fills its column whatever the text height (as the old background did). */
.r4y-template .r4y-expertise-block__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* 1, 3 "media": dark green, image left (cut at the seam), white text right */
.r4y-template .r4y-expertise-block--media .r4y-expertise-block__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 560px;
    background-color: var(--r4y-kit-primary);
}
.r4y-template .r4y-expertise-block--media .r4y-expertise-block__media {
    min-height: 100%;
    clip-path: var(--r4y-exp-cut-br);
}
.r4y-template .r4y-expertise-block--media .r4y-expertise-block__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--r4y-exp-space) clamp(30px, 6vw, 100px);
}
.r4y-template .r4y-expertise .r4y-expertise-block--media .r4y-expertise-block__title,
.r4y-template .r4y-expertise-block--media .r4y-expertise-block__text {
    color: var(--r4y-kit-white);
}
.r4y-template .r4y-expertise-block--media .r4y-prose { font-weight: var(--r4y-fw-light); }

/* 2, 4 "split": text left, image right with the cut */
.r4y-template .r4y-expertise-block--split,
.r4y-template .r4y-expertise-block--text {
    padding: var(--r4y-exp-space) var(--r4y-gutter);
}
.r4y-template .r4y-expertise-block--split .r4y-expertise-block__inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
    max-width: var(--r4y-container);
    margin-inline: auto;
}
.r4y-template .r4y-expertise-block--split .r4y-expertise-block__media {
    align-self: stretch;
    min-height: 460px;
    clip-path: var(--r4y-exp-cut-br);
}

/* 1–4 without image "text": white, a readable column */
.r4y-template .r4y-expertise-block--text .r4y-expertise-block__inner {
    max-width: var(--r4y-container);
    margin-inline: auto;
}
/* Desktop: eyebrow + heading in the left column, the text on the right. */
@media (min-width: 1025px) {
    .r4y-template .r4y-expertise-block--text .r4y-expertise-block__content {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        grid-auto-rows: min-content;
        column-gap: clamp(40px, 6vw, 100px);
    }
    .r4y-template .r4y-expertise-block--text .r4y-expertise-block__content > * { grid-column: 1; }
    .r4y-template .r4y-expertise-block--text .r4y-expertise-block__text {
        grid-column: 2;
        grid-row: 1 / span 3;
        padding-top: 4px;
    }
}
/* Two text blocks in a row: a hairline between them instead of double spacing. */
.r4y-template .r4y-expertise-block--text + .r4y-expertise-block--text {
    padding-top: 0;
}
.r4y-template .r4y-expertise-block--text + .r4y-expertise-block--text .r4y-expertise-block__inner {
    padding-top: var(--r4y-exp-space);
    border-top: 1px solid var(--r4y-color-field-border);
}

/* 5 "highlight": gold band, white panel + image */
.r4y-template .r4y-expertise-block--highlight {
    padding: var(--r4y-exp-space) var(--r4y-gutter);
    background-color: var(--r4y-kit-secondary);
}
.r4y-template .r4y-expertise-block--highlight .r4y-expertise-block__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: var(--r4y-container);
    margin-inline: auto;
}
.r4y-template .r4y-expertise-block--highlight.r4y-expertise-block--no-image .r4y-expertise-block__inner { grid-template-columns: 1fr; }
.r4y-template .r4y-expertise-block--highlight .r4y-expertise-block__content {
    padding: clamp(32px, 5vw, 72px);
    background-color: var(--r4y-kit-white);
}
.r4y-template .r4y-expertise-block--highlight .r4y-expertise-block__media {
    min-height: 420px;
    clip-path: var(--r4y-exp-cut-br);
}
.r4y-template .r4y-expertise-block--highlight .r4y-expertise-block__text { color: var(--r4y-kit-text); }
.r4y-template .r4y-expertise-block__cta { margin: 32px 0 0; }

/* ── Quote band: photo under dark green, gold rule, left aligned ──────── */
.r4y-template .r4y-expertise-quote {
    position: relative;
    overflow: hidden;
    padding-block: var(--r4y-exp-space);
    isolation: isolate;
}
/* Layers: photo (lazy <img>) → dark green overlay → mark + quote. */
.r4y-template .r4y-expertise-quote__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.r4y-template .r4y-expertise-quote::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: var(--r4y-kit-primary); /* dark green, confirmed by Alex (2026-11-07) */
    opacity: 0.92;
}
.r4y-template .r4y-expertise-quote__inner {
    position: relative;
}
.r4y-template .r4y-expertise-quote__mark {
    position: absolute;
    top: -150px;
    right: -150px;
    width: 560px;
    max-width: none;
    height: auto;
    opacity: 0.7;
    pointer-events: none;
}
.r4y-template .r4y-expertise-quote__text {
    position: relative;
    max-width: 22em;
    margin: 0;
    padding: 0 0 0 32px;
    border: 0;
    border-left: 2px solid var(--r4y-kit-secondary);
    font-family: var(--r4y-font-heading);
    font-size: clamp(26px, 2.8vw, 40px);
    font-style: normal;
    font-weight: var(--r4y-fw-light);
    line-height: 1.2;
    text-align: start;
    color: var(--r4y-kit-white);
}
.r4y-template .r4y-expertise-quote__text p { margin: 0; }

/* ── Brochure: a crème band, text left and button right ───────────────── */
.r4y-template .r4y-expertise__brochure,
.r4y-template .r4y-expertise__cta {
    position: relative;
    overflow: hidden;
    padding-block: var(--r4y-exp-space);
}
.r4y-template .r4y-expertise__brochure .r4y-expertise__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 60px;
    align-items: end;
}
.r4y-template .r4y-expertise__brochure .r4y-expertise__panel > :not(.r4y-expertise__panel-decor) { grid-column: 1; }
.r4y-template .r4y-expertise__brochure .r4y-expertise__panel > p:last-child {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    margin: 0;
}
.r4y-template .r4y-expertise__panel {
    position: relative;
}
.r4y-template .r4y-expertise__panel-decor {
    position: absolute;
    top: calc(-1 * var(--r4y-exp-space));
    right: calc(-1 * var(--r4y-gutter));
    transform-origin: right top;
    pointer-events: none;
}
.r4y-template .r4y-expertise__brochure .r4y-expertise__panel-decor { opacity: 0.5; }
.r4y-template .r4y-expertise__panel > :not(.r4y-expertise__panel-decor) {
    position: relative;
}
.r4y-template .r4y-expertise .r4y-expertise__panel-text {
    max-width: var(--r4y-exp-measure);
    margin-bottom: 32px;
}
.r4y-template .r4y-expertise__brochure .r4y-expertise__panel-text { margin-bottom: 0; }

/* ── Adviesgesprek: dark green band, cut top left, gold button ────────── */
.r4y-template .r4y-expertise__cta {
    margin-inline: var(--r4y-gutter);
    background-color: var(--r4y-kit-primary);
    clip-path: var(--r4y-exp-cut-tl);
}
.r4y-template .r4y-expertise__cta .r4y-expertise__panel { z-index: 1; }
.r4y-template .r4y-expertise__cta .r4y-expertise__panel { padding-inline: clamp(0px, 4vw, 60px); }
.r4y-template .r4y-expertise .r4y-expertise__cta .r4y-expertise__section-title,
.r4y-template .r4y-expertise__cta .r4y-expertise__panel-text { color: var(--r4y-kit-white); }
.r4y-template .r4y-expertise__cta a.r4y-button--primary { background-color: var(--r4y-kit-secondary); }
.r4y-template .r4y-expertise__cta a.r4y-button--primary:hover,
.r4y-template .r4y-expertise__cta a.r4y-button--primary:focus { background-color: var(--r4y-kit-white); color: var(--r4y-kit-primary); }
/* The crown brand mark as a large gold watermark, bottom right, partly off the band. */
.r4y-template .r4y-expertise__cta-mark {
    position: absolute;
    right: -40px;
    bottom: -90px;
    width: clamp(260px, 34vw, 520px);
    color: var(--r4y-kit-secondary);
    opacity: 0.55;
    pointer-events: none;
}
.r4y-template .r4y-brand-mark { display: block; width: 100%; height: auto; overflow: visible; }

/* ── Case studies: sharp cards (scoped here; the card file stays generic) ── */
.r4y-template .r4y-expertise__cases {
    padding-block: var(--r4y-exp-space);
}
.r4y-template .r4y-expertise .r4y-expertise__cases .r4y-expertise__section-title { margin-bottom: 0; }
.r4y-template .r4y-expertise__case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.r4y-template .r4y-expertise__cases .r4y-case-card {
    background-color: var(--r4y-kit-accent);
    transition: transform 0.4s var(--r4y-ease-out), box-shadow 0.4s var(--r4y-ease-out);
}
.r4y-template .r4y-expertise__cases .r4y-case-card:hover,
.r4y-template .r4y-expertise__cases .r4y-case-card:focus-within {
    box-shadow: 0 30px 60px -40px rgba(0, 37, 25, 0.5);
    transform: translateY(-4px);
}
.r4y-template .r4y-expertise__cases .r4y-case-card__media {
    height: 240px;
    min-height: 0;
    clip-path: var(--r4y-exp-cut-br);
}
.r4y-template .r4y-expertise__cases .r4y-case-card__body {
    padding: 28px 28px 30px;
    border-top: 2px solid var(--r4y-kit-secondary);
    background-color: transparent;
    color: var(--r4y-color-text);
}
.r4y-template .r4y-expertise__cases .r4y-case-card__title {
    order: 2;
    margin-bottom: 14px;
    font-size: var(--r4y-fs-xl);
    font-weight: var(--r4y-fw-regular);
    line-height: 1.15;
}
.r4y-template .r4y-expertise__cases .r4y-case-card__content {
    display: flex;
    flex-direction: column;
}
.r4y-template .r4y-expertise__cases .r4y-case-card__link,
.r4y-template .r4y-expertise__cases .r4y-case-card__link:hover,
.r4y-template .r4y-expertise__cases .r4y-case-card__link:focus { color: var(--r4y-kit-primary); }
.r4y-template .r4y-expertise__cases .r4y-case-card__category {
    order: 1;
    padding-bottom: 12px;
    font-size: 12px;
    font-weight: var(--r4y-fw-semibold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--r4y-kit-secondary);
}
.r4y-template .r4y-expertise__cases .r4y-case-card__text {
    order: 3;
    display: -webkit-box;
    margin-bottom: 24px;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    font-size: 15px;
    line-height: 1.6;
    text-align: start;
}
.r4y-template .r4y-expertise__cases .r4y-case-card__more {
    padding: 0;
    background: none;
    font-weight: var(--r4y-fw-medium);
    color: var(--r4y-kit-primary);
}
.r4y-template .r4y-expertise__cases .r4y-case-card__more::after {
    content: " →" / "";
    display: inline-block;
    transition: transform var(--r4y-transition) var(--r4y-ease-out);
}
.r4y-template .r4y-expertise__cases .r4y-case-card:hover .r4y-case-card__more::after { transform: translateX(4px); }

/* ── Logo wall: full width, between hairlines ─────────────────────────── */
.r4y-template .r4y-expertise__logos {
    margin-bottom: var(--r4y-exp-space);
    padding-block: 36px;
    border-block: 1px solid var(--r4y-color-field-border);
}
/* Full width: more logos in view on wide screens, so they don't drift apart. */
@media (min-width: 1400px) {
    .r4y-template .r4y-expertise__logos .r4y-logos { --r4y-logos-visible: 7; }
}

/* ── Contact: photo with the cut at the seam, form in a sharp card ────── */
.r4y-template .r4y-expertise__contact {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    margin-top: var(--r4y-exp-space);
    scroll-margin-top: 90px;
    background-color: var(--r4y-kit-accent);
}
.r4y-template .r4y-expertise__contact-media {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    clip-path: var(--r4y-exp-cut-br);
}
.r4y-template .r4y-expertise__contact-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Keep the faces in view: the photo (two people, portrait) is cropped from the top. */
    object-position: center 10%;
}
.r4y-template .r4y-expertise__contact-body {
    display: flex;
    flex-direction: column;
    padding: var(--r4y-exp-space) clamp(30px, 6vw, 100px);
}
.r4y-template .r4y-expertise__contact-mark {
    width: 44px;
    margin-bottom: 24px;
    color: var(--r4y-kit-secondary);
}
.r4y-template .r4y-expertise .r4y-expertise__contact-title {
    margin-bottom: 16px;
    font-family: var(--r4y-font-heading);
    font-size: var(--r4y-exp-h2);
    font-weight: var(--r4y-fw-light);
    line-height: 1.05;
    color: var(--r4y-kit-primary);
}
.r4y-template .r4y-expertise .r4y-expertise__contact-text {
    max-width: var(--r4y-exp-measure);
    margin-bottom: 32px;
}

/* ── Laptop ≤1366 ─────────────────────────────────────────────────────── */
@media (max-width: 1366px) {
    .r4y-template .r4y-expertise__hero {
        min-height: 360px;
        padding: 150px var(--r4y-gutter) 72px;
    }
    .r4y-template .r4y-expertise__intro-decor { right: -90px; }
    .r4y-template .r4y-expertise__panel-decor { transform: scale(0.6); }
}

/* ── Tablet ≤1024 ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .r4y-template--expertise_single { --r4y-gutter: 30px; }
    .r4y-template .r4y-expertise__intro-inner { grid-template-columns: 1fr; }
    .r4y-template .r4y-expertise__toc { grid-column: 1; max-width: 560px; }
    .r4y-template .r4y-expertise__intro-decor { top: -260px; right: -110px; }
    .r4y-template .r4y-expertise-block--media .r4y-expertise-block__inner { min-height: 0; }
    .r4y-template .r4y-expertise-block--split .r4y-expertise-block__inner { grid-template-columns: 1fr 1fr; }
    .r4y-template .r4y-expertise__panel-decor { transform: scale(0.4); }
    .r4y-template .r4y-expertise__case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .r4y-template .r4y-expertise__case-grid > :nth-child(3) { display: none; }
    .r4y-template .r4y-expertise__contact { grid-template-columns: 1fr; }
    .r4y-template .r4y-expertise__contact-media { min-height: 0; aspect-ratio: 16 / 9; }
}

/* ── Mobile ≤767: everything stacks; the cut stays as the one shape ───── */
@media (max-width: 767px) {
    .r4y-template--expertise_single {
        --r4y-gutter: 20px;
        --r4y-exp-space: 64px;
        --r4y-exp-cut-x: 40px;
        --r4y-exp-cut-y: 69px;
    }
    .r4y-template .r4y-expertise__hero {
        min-height: 480px;
        padding: 120px var(--r4y-gutter) 96px;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 104px), calc(100% - 60px) 100%, 0 100%);
    }
    .r4y-template .r4y-expertise__hero::before {
        background-image: linear-gradient(90deg, #FFFAF7 10%, #FFFAF7CC 60%, #FBF8F600 100%);
    }
    .r4y-template .r4y-expertise__hero-slice { display: none; }
    .r4y-template .r4y-expertise .r4y-expertise__title { margin-bottom: 24px; }
    .r4y-template .r4y-expertise__intro-decor { display: none; }
    .r4y-template .r4y-expertise__toc { padding: 22px 20px 12px; }

    .r4y-template .r4y-expertise-block--media .r4y-expertise-block__inner,
    .r4y-template .r4y-expertise-block--split .r4y-expertise-block__inner,
    .r4y-template .r4y-expertise-block--highlight .r4y-expertise-block__inner { grid-template-columns: 1fr; gap: 0; }
    .r4y-template .r4y-expertise-block--media .r4y-expertise-block__media { aspect-ratio: 4 / 3; min-height: 0; }
    .r4y-template .r4y-expertise-block--media .r4y-expertise-block__content { padding: 48px var(--r4y-gutter) var(--r4y-exp-space); }
    .r4y-template .r4y-expertise-block--split .r4y-expertise-block__media { order: -1; min-height: 0; aspect-ratio: 4 / 3; margin-bottom: 40px; }
    .r4y-template .r4y-expertise-block--highlight { padding-inline: 0; }
    .r4y-template .r4y-expertise-block--highlight .r4y-expertise-block__content { padding: 40px var(--r4y-gutter); }
    .r4y-template .r4y-expertise-block--highlight .r4y-expertise-block__media { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
    .r4y-template .r4y-expertise .r4y-prose { font-size: var(--r4y-fs-base); }

    .r4y-template .r4y-expertise-quote__mark { top: auto; right: -70px; bottom: -60px; width: 260px; opacity: 0.5; }
    .r4y-template .r4y-expertise__cta-mark { right: -60px; bottom: -50px; width: 240px; opacity: 0.4; }
    .r4y-template .r4y-expertise-quote__text { padding-left: 20px; }

    .r4y-template .r4y-expertise__brochure .r4y-expertise__panel { grid-template-columns: 1fr; }
    .r4y-template .r4y-expertise__brochure .r4y-expertise__panel > p:last-child { grid-column: 1; grid-row: auto; margin-top: 28px; }
    .r4y-template .r4y-expertise__panel-decor { display: none; }
    .r4y-template .r4y-expertise__cta { margin-inline: 0; }
    .r4y-template .r4y-expertise__cta .r4y-expertise__panel { padding-top: 24px; }
    .r4y-template .r4y-expertise a.r4y-button { width: 100%; justify-content: space-between; }

    /* Case studies: a swipe row instead of three long cards. */
    .r4y-template .r4y-expertise__case-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 84%;
        gap: 16px;
        margin-inline: calc(-1 * var(--r4y-gutter));
        padding: 0 var(--r4y-gutter) 8px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--r4y-gutter);
        scrollbar-width: none;
    }
    .r4y-template .r4y-expertise__case-grid::-webkit-scrollbar { display: none; }
    .r4y-template .r4y-expertise__case-grid > * { scroll-snap-align: start; }
    .r4y-template .r4y-expertise__case-grid > :nth-child(3) { display: flex; }
    .r4y-template .r4y-expertise__cases .r4y-case-card__media { height: 200px; }
    .r4y-template .r4y-expertise__cases .r4y-case-card:hover { transform: none; }

    .r4y-template .r4y-expertise__logos { padding-block: 24px; }
    .r4y-template .r4y-expertise__contact-media { aspect-ratio: 4 / 3; }
    .r4y-template .r4y-expertise__contact-body { padding: 48px var(--r4y-gutter) var(--r4y-exp-space); }
}

@media (prefers-reduced-motion: reduce) {
    .r4y-template .r4y-expertise a.r4y-button::after,
    .r4y-template .r4y-expertise__toc-link::after,
    .r4y-template .r4y-expertise__cases .r4y-case-card,
    .r4y-template .r4y-expertise__cases .r4y-case-card__more::after { transition: none; }
    .r4y-template .r4y-expertise__cases .r4y-case-card:hover,
    .r4y-template .r4y-expertise__cases .r4y-case-card:focus-within { transform: none; }
}
