/* ==========================================================================
CUSTOM CSS
========================================================================== */

:root{scroll-behavior:auto}

/* Plain anchor jumps (e.g. arriving from a case study page at index.html#team) stop 50px short of the section,
   so it isn't tucked under the fixed navbar. Matches the offset used by the .page-scroll links in main.js. */
html {
    scroll-padding-top: 50px;
}

#pre-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
}

#status {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

body {
    padding-top: 70px;
    font-family: "Geist", sans-serif;
    font-size: 18px
}

header, footer {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}




h1, h2, h3, h4, h5, h6 {
    font-family: "Manrope", sans-serif;
}

h1 {
    font-weight: 200;
    font-size: 2.2rem;
    line-height: 1.1; /* Bootstrap default is 1.2; breakpoints in responsive.css inherit this */
}

.section-heading {
    font-size: 2rem;
    font-weight: 200;
    line-height: 1.1; /* breakpoints in responsive.css inherit this */
}

.font-light {
    font-weight: 300;
}

.font-body {
    font-family: "Geist", sans-serif;
}

.pre-heading {
    font-size: .8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.special-text {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}


.lead-bold {
    font-size: 1.2rem;
    font-weight: 600;
}


#home,
.page-header {
    position: relative;
    isolation: isolate;                /* keeps the z-index:-1 image layer inside the header */
    overflow: hidden;                  /* trims the image layer where it extends past the header */
    color: #fff;
}

/* Header image lives on its own layer so it can drift slower than the page (see PARALLAX) */
#home::before,
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url('../../../img/website-images/website-header.jpg') no-repeat center left / cover;
    transform: translate3d(0, calc(var(--parallax-y, 0) * 1px), 0);
    will-change: transform;
}

/* ==========================================================================
PARALLAX

Driven by main.js, which adds .parallax-on to <html> (desktop, no reduced-motion).
  data-parallax="shift"   layer drifts down slower than the page: sets --parallax-y (px).
                          data-parallax-speed = fraction of scroll (default 0.2). The layer
                          is made taller (--parallax-extra) so no edge is ever revealed.
  data-parallax="bg"      background image slides inside the section by a fixed number of px
                          (data-parallax-range, default 100): sets --parallax-size / --parallax-by.
                          Used by .arc-bottom sections, whose image is on ::before. Also needs
                          data-parallax-image (the image URL, relative to the page).
========================================================================== */

.parallax-on [data-parallax="shift"]::before {
    top: calc(var(--parallax-extra, 25%) * -1);
}

.parallax-on .arc-bottom[data-parallax="bg"]::before {
    /* image layer, colour layer. Size and offset are in px from main.js so the movement is the
       same on every screen width (falls back to a plain centred cover until it has measured) */
    background-size: var(--parallax-size, cover), auto;
    background-position: center var(--parallax-by, 50%), center;
}

/* Contact circle: the image is on the child, which inherits the variables from .contact-circle */
.parallax-on .contact-circle-img {
    background-size: var(--parallax-size, cover);
    background-position: center var(--parallax-by, 50%);
}

.full-size-background {
    background: url('../../../img/mip-static-bg.jpg') no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../../img/mip-static-bg.jpg', sizingMethod='scale');
    -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../../img/mip-static-bg.jpg', sizingMethod='scale')";
}

/* ==========================================================================
COLOURS
========================================================================== */

:root {
    --colour-light-blue: #42BEDC;
    --colour-pink: #FF00BA;
    --colour-teal: #005265;
    --colour-purple: #A966DB;
    --colour-black-70: rgba(0, 0, 0, 0.7);
}

.bg-black-70 {
    background-color: var(--colour-black-70);
}

.text-black-70 {
    color: var(--colour-black-70);
}

.bg-light-blue {
    background-color: var(--colour-light-blue);
}

.bg-pink {
    background-color: var(--colour-pink);
}

.bg-teal {
    background-color: var(--colour-teal);
}

.bg-purple {
    background-color: var(--colour-purple);
}

.bg-light {
    background-color: #F6F6F6 !important;
}

.text-black-70 {
    color: var(--colour-black-70);
}

.text-blue {
    color: var(--colour-light-blue);
}

.text-purple {
    color: var(--colour-purple);
}

.text-pink {
    color: var(--colour-pink);
}

/* Keep the theme colour on links when hovered/focused (Bootstrap's a:hover would otherwise override it) */
a.text-purple:hover,
a.text-purple:focus {
    color: var(--colour-purple);
}

a.text-pink:hover,
a.text-pink:focus {
    color: var(--colour-pink);
}

/* ==========================================================================
HIGHLIGHTS
========================================================================== */

:root {
    --colour-pink-light: color-mix(in srgb, var(--colour-pink) 25%, white);       /* soft highlight */
    --colour-pink-lighter: color-mix(in srgb, var(--colour-pink) 12%, white);     /* subtle highlight */
}

/* Text selection */
::selection {
    background: var(--colour-pink-light);
    color: #000;
}

::-moz-selection {
    background: var(--colour-pink-light);
    color: #000;
}

/* <mark> and .highlight - inline highlighter-pen style */
mark,
.highlight {
    background: var(--colour-pink-light);
    color: inherit;
    padding: 0.05em 0.3em;
    border-radius: 0.2em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* Subtle variant */
.highlight-subtle {
    background: var(--colour-pink-lighter);
    color: inherit;
    padding: 0.05em 0.3em;
    border-radius: 0.2em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* Underline-style marker across the lower half of the text */
.highlight-underline {
    background: linear-gradient(transparent 55%, var(--colour-pink-light) 55%);
    color: inherit;
}

/* Light pink background utilities */
.bg-pink-light {
    background-color: var(--colour-pink-light);
}

.bg-pink-lighter {
    background-color: var(--colour-pink-lighter);
}

/* Light blue tint (matches the fVenn team card panel) */
.bg-light-blue-tint {
    background-color: #D9F1F7;
}

/* Keyboard focus ring */
:focus-visible {
    outline: 2px solid var(--colour-pink);
    outline-offset: 2px;
}

/* a, a:hover {
    color: var(--brand-primary)

} */

/* ==========================================================================
BUTTONS
========================================================================== */

.btn {
    font-size: .9rem;
    --bs-btn-padding-x: 1.6rem;
    --bs-btn-padding-y: 0.5rem;
    --bs-btn-border-width: 0;
    border-radius: 50px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-pink {
    --btn-bg: var(--colour-pink);
    color: #fff;
    background: var(--btn-bg);
}

.btn-light-blue {   
    --btn-bg: var(--colour-light-blue);
    color: #fff;
    background: var(--btn-bg);
}

.btn-teal {
    --btn-bg: var(--colour-teal);
    color: #fff;
    background: var(--btn-bg);
}

.btn-purple {
    --btn-bg: var(--colour-purple);
    color: #fff;
    background: var(--btn-bg);
}

/* Hover / focus - slightly lighter */
.btn:is(.btn-pink, .btn-light-blue, .btn-teal, .btn-purple):hover,
.btn:is(.btn-pink, .btn-light-blue, .btn-teal, .btn-purple):focus-visible {
    color: #fff;
    background: color-mix(in srgb, var(--btn-bg) 85%, white);
}

/* Active / pressed - slightly darker */
.btn:is(.btn-pink, .btn-light-blue, .btn-teal, .btn-purple):active,
.btn:is(.btn-pink, .btn-light-blue, .btn-teal, .btn-purple).active,
.btn:is(.btn-pink, .btn-light-blue, .btn-teal, .btn-purple).show {
    color: #fff;
    background: color-mix(in srgb, var(--btn-bg) 85%, black);
}

/* Disabled */
.btn:is(.btn-pink, .btn-light-blue, .btn-teal, .btn-purple):disabled,
.btn:is(.btn-pink, .btn-light-blue, .btn-teal, .btn-purple).disabled {
    color: #fff;
    background: var(--btn-bg);
}


/* ==========================================================================
ARCS (reusable curved section edges)

.arc-top     - section rises in a dome into the section above.
               Solid colours only: the dome copies the section's background.
.arc-bottom  - section bulges down in a dome into the section below.
               Its background is drawn on a ::before layer that runs past the
               section, so images flow into the dome. Configure per section:
                 --arc-image   e.g. url('../../../img/...jpg')  (optional)
                 --arc-colour  fallback / solid colour, set with .arc-bg-*
                 --arc-radius  optional rounded top corners, e.g. 36px
               The section that follows gets extra top padding automatically.
========================================================================== */

:root {
    --arc-curve: clamp(2.5rem, calc(9vw - 1rem), 6.5rem); /* height of the curve - bigger = more pronounced arc */
    --arc-spread: 0.56;                /* half-width of the dome as a multiple of the section width (unitless). 0.5 = the curve meets
                                          the screen edge vertically (sharp); higher = the edges are cut off earlier, so they're gentler. */
    --arc-overhang: calc(50% - 100% * var(--arc-spread)); /* how far the dome layer extends past each side (negative = outwards) */
}

/* Dome rising into the section above.
   The dome is a plain border-radius ellipse on a layer wider than the section
   (smoothly anti-aliased); overflow-x: clip trims the overhang at the screen edge. */
.arc-top {
    position: relative;
    display: flow-root;                /* stops any pulled-up row's negative margin dragging the section up */
    margin-top: var(--arc-curve);      /* leaves room above for the curve */
    overflow-x: clip;                  /* unlike hidden, leaves overflow-y visible so the dome can sit above the section */
}

.arc-top::before {
    content: "";
    position: absolute;
    left: var(--arc-overhang);
    right: var(--arc-overhang);
    top: calc(var(--arc-curve) * -1);
    height: calc(var(--arc-curve) + 1px); /* +1px avoids a hairline seam */
    background: inherit;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* Dome bulging down into the section below */
.arc-bottom {
    position: relative;                /* paints above the section it overlaps */
    isolation: isolate;                /* keeps the z-index:-1 layer inside this section */
    overflow-x: clip;                  /* trims the dome layer's overhang at the screen edge */
}

.arc-bottom::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: calc(var(--arc-curve) * -1);  /* extends below the section by the curve height */
    left: var(--arc-overhang);
    right: var(--arc-overhang);
    z-index: -1;
    background: var(--arc-image, none) center / cover no-repeat, var(--arc-colour, #000);
    border-radius: 0 0 50% 50% / 0 0 var(--arc-curve) var(--arc-curve);
    /* Rounded top corners, cut at the section's own edges (the overhang is outside the clip) */
    clip-path: inset(0 calc((var(--arc-spread) - 0.5) / (2 * var(--arc-spread)) * 100%) 0 calc((var(--arc-spread) - 0.5) / (2 * var(--arc-spread)) * 100%) round var(--arc-radius, 0) var(--arc-radius, 0) 0 0);
}

/* Button centred on the lowest point of an .arc-bottom dome (straddles the curve) */
.arc-bottom > .arc-btn {
    position: absolute;
    left: 50%;
    bottom: calc(var(--arc-curve) * -1);
    transform: translate(-50%, 50%);
    z-index: 1;
    white-space: nowrap;
}

/* Make room for the dome in whatever follows */
.arc-bottom + * {
    padding-top: calc(4rem + var(--arc-curve));
}

/* ==========================================================================
ROUND-TOP (rounded top corners that overlap the previous section)

.round-top   - add to any section to give it rounded top corners that curve
               over the section above. Works on solid backgrounds (e.g. bg-white)
               and on .arc-bottom sections (whose background is drawn on ::before).
               The previous section gets matching extra bottom padding and this
               section extra top padding, so spacing looks unchanged.
               Change --round-radius (in :root) to resize every instance.
========================================================================== */

:root {
    --round-radius: 36px;
}

.round-top {
    --arc-radius: var(--round-radius); /* feeds .arc-bottom's clipped ::before layer */
    position: relative;                /* paints above the section it overlaps */
    margin-top: calc(var(--round-radius) * -1);
    padding-top: calc(4rem + var(--round-radius));
}

/* Solid-background sections round their own corners; .arc-bottom rounds its ::before instead */
.round-top:not(.arc-bottom) {
    border-radius: var(--round-radius) var(--round-radius) 0 0;
}

/* Also covers a .section-group wrapper that starts/ends with a .round-top neighbour */
section:has(+ .round-top),
section:has(+ .section-group > .round-top:first-child),
.section-group:has(+ .round-top) > section:last-child,
.section-group:has(+ .section-group > .round-top:first-child) > section:last-child {
    padding-bottom: calc(6rem + var(--round-radius));
}

/* Arc background colours (fallback behind any --arc-image) */
.arc-bg-black { --arc-colour: #000; }
.arc-bg-teal  { --arc-colour: var(--colour-teal); }
.arc-bg-light { --arc-colour: #F6F6F6; }
.arc-bg-white { --arc-colour: #fff; }

/* ==========================================================================
STAGES (full-width light section with a curved top edge - uses .arc-top)
========================================================================== */

.stages {
    --stage-icon: 120px;
    --arc-drop: 0rem;                  /* how far the crest sits below the middle icon's centre - bigger = crest lower on the icon */
    padding-top: 0;
    /* bottom padding comes from section:has(+ .round-top) */
}

/* Pull the cards up so the (aligned) icons straddle the crest of the curve.
   The extra --bs-gutter-y cancels the column margin Bootstrap adds with g-*. */
.stages .stage-row {
    margin-top: calc(var(--bs-gutter-y) * -1 - var(--arc-curve) - var(--arc-drop) - var(--stage-icon) / 2);
}

.stages .card {
    max-width: 300px;
    margin-inline: auto;               /* keeps narrower cards centred in their column */
}

.stages .card-body {
    padding-top: 0;
}

.stages .stage-icon {
    position: relative;                /* paints above the curve */
    z-index: 1;
    max-width: var(--stage-icon);
    height: auto;
}



/* ==========================================================================
BENEFITS
========================================================================== */

#benefits {
    --arc-image: url('../../../img/website-images/supporting-image-1.jpg');
}

#benefits .benefit-card {
    max-width: 300px;
    margin-inline: auto;
}

#benefits .benefit-icon {
    max-width: 150px;
    height: auto;
}

#benefits .benefit-title {
    font-weight: 800;
}

/* ==========================================================================
CLIENT JOURNEY
========================================================================== */

#client-journey .journey-cards {
    --journey-icon: 88px;
    margin-top: 2.5rem;
    padding: calc(var(--journey-icon) / 2 + 1.5rem) 1rem 1.5rem; /* top padding leaves room for the overlapping icons */
    /* Dashed border drawn as an SVG so the gap can be controlled (CSS dashed borders can't).
       stroke-width 4 = 2px visible (the outer half is clipped); stroke-dasharray "dash gap" - increase the 2nd number for more space;
       rx must match border-radius. Change stroke='%23fff' to alter the colour. */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' fill='none' rx='12' ry='12' stroke='%23fff' stroke-width='5' stroke-dasharray='7 6'/%3E%3C/svg%3E") no-repeat;
    border-radius: 12px;
}

#client-journey .journey-card {
    position: relative;
    background-color: #fff;
    border: 0;
    border-radius: 16px;
    padding-top: calc(var(--journey-icon) / 2); /* clears the half of the icon sitting inside the card */
    color: var(--colour-black-70);
}

#client-journey .journey-icon {
    position: absolute;
    top: calc(var(--journey-icon) / -2);       /* half the icon overlaps the top of the card */
    left: 50%;
    transform: translateX(-50%);
    width: var(--journey-icon);
    height: var(--journey-icon);
}

#client-journey .journey-title {
    font-weight: 800;
    color: #000;
}

.journey-card p {
    font-size: 1rem;
}

/* Slider mode (below lg). Keen Slider switches itself off from lg up (see CLIENT JOURNEY SLIDER in main.js), and its
   own CSS only applies while it is active, so these rules only apply to the slider. */
#client-journey .journey-slider:not([data-keen-slider-disabled]) {
    --bs-gutter-x: 0;                                  /* spacing between slides is set in the JS instead */
    --bs-gutter-y: 0;
    flex-wrap: nowrap;
    justify-content: flex-start !important;
    padding-top: calc(var(--journey-icon) / 2);        /* the slider clips its overflow, so keep the overlapping icons inside it... */
    margin-top: calc(var(--journey-icon) / -2);        /* ...and pull it back up so the spacing is unchanged */
}

#client-journey .journey-slider:not([data-keen-slider-disabled]) .keen-slider__slide {
    overflow: visible;                                 /* otherwise the icons are clipped by the slide */
}

#client-journey .journey-arrows {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

/* 48px round buttons, comfortably above the 44px minimum touch target */
#client-journey .journey-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

#client-journey .journey-arrow:hover:not(:disabled),
#client-journey .journey-arrow:active:not(:disabled) {
    background: #fff;
    color: var(--colour-teal, #000);
}

#client-journey .journey-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

#client-journey .journey-arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}


/* ==========================================================================
   Case study cards
   ========================================================================== */
   .case-card {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0; /* stops min-height being transferred through aspect-ratio into a min-width wider than the column */
    aspect-ratio: 624 / 271;
    min-height: 200px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 24px;
    overflow: hidden;
    color: #fff;
}

.case-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0) 100%);
}

.case-card-content {
    position: relative;
    padding: 2rem;
    max-width: 70%;
}

.case-card-title {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

/* ==========================================================================
   Stats counter
   ========================================================================== */
.stat-number {
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums; /* stops the digits jiggling while counting */
}

.stat-label {
    margin: 0.75rem auto 0;
    font-size: 0.875rem;
    max-width: 22rem;
    color: var(--colour-black-70);
}

/* ==========================================================================
CASE STUDY PAGES (case-studies/*.html)

.page-header   - slim version of the home hero (shares its image / parallax rules, see HEADER above).
.bullet-list   - list with brand-coloured dot bullets that cycle pink, purple, light blue.
.case-quote    - large pull quote for the "In their words" section.
========================================================================== */

.page-header {
    padding-top: 4rem;
    padding-bottom: calc(4rem + var(--round-radius));   /* the section below overlaps by --round-radius */
}

.page-header h1 {
    margin-bottom: 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
}

.back-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* The white focus ring is lost on the dark image, so use light blue here (same idea as the nav links) */
.back-link:focus-visible {
    outline-color: var(--colour-light-blue);
    box-shadow: none;
}

.bullet-list {
    --bullet-size: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bullet-list li {
    --bullet-colour: var(--colour-pink);
    position: relative;
    padding-left: calc(var(--bullet-size) + 1.1rem);
    margin-bottom: 1rem;
    color: var(--colour-black-70);
}

.bullet-list li:nth-child(3n + 2) { --bullet-colour: var(--colour-purple); }
.bullet-list li:nth-child(3n + 3) { --bullet-colour: var(--colour-light-blue); }

.bullet-list li::before {
    content: "";
    position: absolute;
    left: 0.3rem;
    top: 0.5em;                         /* centres the dot on the first line of text */
    width: var(--bullet-size);
    height: var(--bullet-size);
    border-radius: 50%;
    background: var(--bullet-colour);
    /* soft halo ring: the same colour at low opacity */
    box-shadow: 0 0 0 0.3rem color-mix(in srgb, var(--bullet-colour) 18%, transparent);
}

/* Two columns from md up, without splitting an item across the columns.
   Add .bullet-list-single for lists with long items, which read better in one column. */
@media (min-width: 768px) {
    .bullet-list:not(.bullet-list-single) {
        column-count: 2;
        column-gap: 3rem;
    }

    .bullet-list li {
        break-inside: avoid;
    }
}

/* MiP / fVenn logo above the "Project" pre-heading, showing which business delivered the work */
.case-logo {
    display: block;
    width: auto;
    height: 48px;
    margin-bottom: 1.5rem;
}

/* Placeholder box until the real project image is supplied: swap for an <img class="img-fluid case-image"> */
.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--colour-teal), var(--colour-light-blue));
    color: rgba(255, 255, 255, 0.85);
    font-size: 3rem;
}

.case-image {
    width: 100%;
    border-radius: 24px;
}

.case-quote {
    margin: 0;
}

.case-quote blockquote {
    margin: 0 0 1.5rem;
    font-family: "Manrope", sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.4;
}

.case-quote figcaption {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Attribution detail line (name in the caption, job title / company underneath) */
.case-quote figcaption small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
}

@media (min-width: 992px) {
    .case-quote blockquote {
        font-size: 2rem;
    }
}

/* Longer quotes: smaller type so they don't dominate the section (declared after the sizes above) */
.case-quote.case-quote-long blockquote {
    font-size: 1.2rem;
    line-height: 1.5;
}

@media (min-width: 992px) {
    .case-quote.case-quote-long blockquote {
        font-size: 1.5rem;
    }
}


/* ==========================================================================
NAV
========================================================================== */
.navbar-nav .nav-link {
    font-size: 1rem;
}

/* ==========================================================================
HEADER
========================================================================== */

header h2 {
    font-size: 1.2rem;
}


/* ==========================================================================
AGENDA
========================================================================== */

.table tbody tr td:last-child {
    text-align: center;
}

/* ==========================================================================
SPEAKERS
========================================================================== */

/* ==========================================================================
BOARDROOM SESSIONS
========================================================================== */

/* ==========================================================================
FORM
========================================================================== */

.btn-check:active+.btn-secondary, .btn-check:checked+.btn-secondary, .btn-secondary.active, .btn-secondary:active, .show>.btn-secondary.dropdown-toggle {
    color: #fff;
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
}


/* ==========================================================================
OTHER
========================================================================== */

.accordion-button:not(.collapsed) {
    color: #000;
    background-color: #e6e4e5;
}

.accordion-button:focus {
    border-color: #000;
}

/* ==========================================================================
MAP
========================================================================== */

.map-container {
    position: relative;
    color: #222;
    background-attachment: scroll;
    background-image: url('../../../img/map-image.jpg');
    background-position: center center;
    background-repeat: none;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
    min-height: 500px;
}

#map {
    position:absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 0; /* Set z-index to 0 as it will be on a layer below the contact form */
}

/* ==========================================================================
FOOTER
========================================================================== */

footer {

}

/* ==========================================================================
NAVBAR
========================================================================== */

.navbar.bg-white {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.navbar-brand img {
    height: 32px;
    width: auto;
}

.navbar-brand .brand-logo-mip {
    height: 34px;
}

.navbar-brand .brand-logo-frog {
    height: 30px;
}

.navbar-brand {
    margin-right: 0.5rem;
}

@media (min-width: 992px) {
    /* Tighter links to leave room for the three brand logos */
    .navbar .navbar-nav.nav-pill .nav-link {
        padding: 0.5rem 0.85rem;
    }

    .navbar .navbar-nav.nav-pill {
        gap: 0.1rem;
    }
}

.nav-pill {
    background-color: #000;
    border-radius: 1.5rem;
    padding: 0.75rem;
    margin-top: 1rem;
    gap: 0.25rem;
}

.navbar .navbar-nav.nav-pill .nav-link {
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 50rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.navbar .navbar-nav.nav-pill .nav-link:hover,
.navbar .navbar-nav.nav-pill .nav-link:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
}

.navbar .navbar-nav.nav-pill .nav-link.active,
.navbar .navbar-nav.nav-pill .nav-link.active:hover,
.navbar .navbar-nav.nav-pill .nav-link.active:focus {
    color: #000;
    background-color: #fff;
}

/* ==========================================================================
TEAM CARDS (Our People)
========================================================================== */

.team-card {
    max-width: 480px;
    margin-inline: auto;
    text-align: left;
}

.team-card-visual {
    position: relative;
    height: 183px;
}

.team-card-panel {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 88%;
    height: 123px;
    padding-left: 1.75rem;
    display: flex;
    align-items: center;
    border-radius: 24px;
    background: #D9F1F7;                /* light tint of --colour-light-blue */
}

.team-card-mip .team-card-panel {
    background: color-mix(in srgb, var(--colour-pink) 7%, white);   /* light tint of --colour-pink */
}

.team-card-logo {
    max-width: 38%;
    max-height: 56px;
    width: auto;
    height: auto;
}

.team-card-photo {
    position: absolute;
    right: 1.25rem;
    bottom: -0.75rem;
    width: 170px;
    height: 170px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 5px solid #fff;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

@media (max-width: 400px) {
    .team-card-photo {
        width: 140px;
        height: 140px;
        right: 0.75rem;
    }
}

.team-card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.team-card-name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
}

.team-card-btn {
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.team-card-company,
.team-card-role {
    margin: 0;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.3;
}

.team-card-company {
    margin-top: 1rem;
}

/* Team biography modals */
.team-modal .modal-content {
    border: 0;
    border-radius: 28px;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.25);
    /* clip (not hidden) keeps the rounded corners without making this a scroll container, so the sticky close button below works */
    overflow: clip;
}

/* Stays at the top-right of the modal while the whole modal scrolls; the negative bottom margin stops it taking up space */
.team-modal-close {
    position: sticky;
    top: 1rem;
    align-self: flex-end;
    flex-shrink: 0;
    margin: 1rem 1rem -3.25rem 0;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    background-color: #fff;
    background-size: 0.8rem;
    border-radius: 50%;
    opacity: 1;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

.team-modal-close:hover {
    opacity: 0.75;
}

.team-modal-header {
    padding: 2.5rem 2.5rem 0;
}

.team-modal .modal-body {
    padding: 1.5rem 2.5rem 1rem;
}

.team-modal .modal-footer {
    border-top: 0;
    padding: 0.5rem 2.5rem 2rem;
}

.team-modal-role {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1.25rem;
}

.team-modal-role span {
    margin-inline: 0.35rem;
    opacity: 0.4;
}

.team-modal-mip .team-modal-role {
    color: var(--colour-pink);
}

.team-modal-fvenn .team-modal-role {
    color: var(--colour-purple);
}

/* ==========================================================================
TESTIMONIAL VIDEO THUMBS
========================================================================== */

.video-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;               /* stacked on mobile; fixed heights from md up (responsive.css) */
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--colour-teal);
    /* Safari: keeps the scaled child clipped to the rounded corners */
    isolation: isolate;
}

.video-thumb-bg {
    position: absolute;
    inset: 0;
    /* image layer first; if the file is missing the gradient shows through */
    background:
        var(--thumb-img, none) center / cover no-repeat,
        linear-gradient(135deg, var(--colour-teal), var(--colour-light-blue));
    transition: transform 0.6s ease;
}

.video-thumb:hover .video-thumb-bg,
.video-thumb:focus-visible .video-thumb-bg {
    transform: scale(1.08);
}

.video-thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6.5rem;
    height: 6.5rem;
    margin: -3.25rem 0 0 -3.25rem;
    border: 0.45rem solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.92);
    font-size: 2.25rem;
    transition: transform 0.3s ease;
}

.video-thumb-play .fa-play {
    margin-left: 0.4rem;                /* optically centres the triangle */
}

.video-thumb:hover .video-thumb-play,
.video-thumb:focus-visible .video-thumb-play {
    transform: scale(1.1);
}

.video-thumb:focus-visible {
    outline: 3px solid var(--colour-light-blue);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .video-thumb-bg,
    .video-thumb-play { transition: none; }
}

/* ==========================================================================
CONTACT SECTION
========================================================================== */

.contact-section {
    --contact-overlap: 6rem;            /* how far the circle image rises into the section above */
    position: relative;
    background: #F0F0F0;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

/* Logo shown at the top of each contact card */
.contact-card-logo {
    height: 44px;
    width: auto;
    max-width: 100%;
}


.contact-circle-img,
.contact-image-mobile {
    background: url('../../../img/website-images/website-footer-image.jpg') center / cover no-repeat;
}

/* Mobile only (d-lg-none in the markup): simple full-width strip at the bottom of the section */
.contact-image-mobile {
    height: 120px;
}

/* Video modal (reuses .team-modal styling) */
.video-modal-frame {
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.video-modal-placeholder {
    background: linear-gradient(135deg, var(--colour-teal), var(--colour-light-blue));
    color: #fff;
    font-weight: 700;
}

/* Privacy & cookie notice (reuses .team-modal styling) */
.consent-modal .modal-body {
    padding-top: 2rem;
}

.consent-modal-subtitle {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--colour-purple);
}

.consent-modal .consent-button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 575.98px) {
    .consent-modal .consent-button-container .btn { flex: 1 1 100%; }
}

@media (max-width: 575.98px) {
    .team-modal-header { padding: 2rem 1rem 0; }
    .team-modal .modal-body { padding: 1.25rem 1.25rem 0.5rem; }
    .team-modal .modal-footer { padding: 0.5rem 1.25rem 1.5rem; }
}

/* ==========================================================================
SCROLL REVEAL (overrides animate.css's plain fadeIn for every .wow.fadeIn)

A soft rise + fade. Staggered delays are added by main.js (data-wow-delay) for
columns that sit side by side. Only the start frame sets a transform, so any
transform an element has of its own is left alone once it has finished.
========================================================================== */

@keyframes mipRevealUp {
    from {
        opacity: 0;
        transform: translate3d(0, 28px, 0);
    }
    to {
        opacity: 1;
    }
}

.wow.fadeIn {
    animation-name: mipRevealUp;
    animation-duration: 0.9s;
    animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
JOURNEY WHEEL

main.js adds .wheel-anim (hides the pieces) and then .is-visible when the wheel
scrolls into view: the centre pops in, then the six segments follow clockwise with
each arrow popping in just behind its segment. Without JS the wheel is simply shown.
========================================================================== */

.journey-wheel {
    overflow: visible;                 /* the right-hand segments touch the edge of the viewBox, so
                                          their pop-in overshoot and hover scale would otherwise be clipped */
}

.journey-wheel .wheel-core,
.journey-wheel .wheel-node,
.journey-wheel .wheel-arrow {
    transform-box: fill-box;           /* scale from each piece's own centre */
    transform-origin: center;
}

.journey-wheel .wheel-node {
    transition: transform 0.3s ease;
}

@media (hover: hover) {
    .journey-wheel .wheel-node:hover {
        transform: scale(1.06);
    }
}

@keyframes wheelPop {
    from {
        opacity: 0;
        transform: scale(0.4);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes wheelArrowIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.journey-wheel.wheel-anim:not(.is-visible) .wheel-core,
.journey-wheel.wheel-anim:not(.is-visible) .wheel-node {
    opacity: 0;
    transform: scale(0.4);
}

.journey-wheel.wheel-anim:not(.is-visible) .wheel-arrow {
    opacity: 0;
    transform: scale(0.5);
}

/* fill-mode "backwards": holds the start frame during the delay, then hands back to
   normal styles so the hover scale still works afterwards */
.journey-wheel.wheel-anim.is-visible .wheel-core {
    animation: wheelPop 1.2s cubic-bezier(0.34, 1.4, 0.64, 1) backwards;
}

.journey-wheel.wheel-anim.is-visible .wheel-node {
    animation: wheelPop 1.05s cubic-bezier(0.34, 1.4, 0.64, 1) backwards;
    animation-delay: calc(0.7s + var(--i, 0) * 0.22s);
}

/* Arrow n appears just after segment n, as the next segment is popping in, so the
   sequence reads as flowing round the wheel */
.journey-wheel.wheel-anim.is-visible .wheel-arrow {
    animation: wheelArrowIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
    animation-delay: calc(1.2s + var(--i, 0) * 0.22s);
}

@media (prefers-reduced-motion: reduce) {
    .wow.fadeIn {
        animation-name: fadeIn;        /* plain fade, no movement */
    }
    .journey-wheel .wheel-node {
        transition: none;
    }
    #status .fa-spin {
        animation: none;               /* stop the pre-loader spinner rotating */
    }
}

/* ==========================================================================
ACCESSIBILITY
========================================================================== */

/* Skip link (uses Bootstrap's .visually-hidden-focusable to hide until focused) */
.skip-link:focus,
.skip-link:focus-visible {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10000000;                 /* above the pre-loader and the navbar */
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    background: #000;
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

/* The skip link moves focus to <main>; it doesn't need a visible ring */
main:focus {
    outline: 0;
}

/* Visible keyboard focus for every link and button, on light or dark backgrounds:
   white inner ring + black outer ring, so at least one is always 3:1 against what is behind it */
a:focus-visible,
.btn:focus-visible,
.btn-close:focus-visible {
    outline: 3px solid #000;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #fff;
}

/* Nav links sit on a black pill / drawer, so use a light-blue ring there instead */
.navbar .nav-link:focus-visible,
.navbar .dropdown-item:focus-visible {
    outline: 3px solid var(--colour-light-blue);
    outline-offset: 2px;
    box-shadow: none;
}

