/*Home */
/* The OpenWave block (.ow-*) moved to openwave.css */

/*Hero*/
html, body {
    margin: 0;
    padding: 0;
    background: var(--rem-bg);
}

.section.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    overflow: hidden;
    background: var(--rem-bg);
}

/*triangles banner*/
.hero-triangles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.triangle {
    position: absolute;
    top: -49vh;
    height: 200vh;
    width: 63vw;
    will-change: transform;
    filter: drop-shadow(28px 7px 18px rgba(0, 0, 0, 0.08));
}

/* lightest / leftmost / frontmost ON TOP */
.t1 { left: -46vw; z-index: 5; }
.t1 path { fill: var(--rem-mint); }

.t2 { left: -33vw; z-index: 4; }
.t2 path { fill: var(--rem-teal-mid); }

.t3 { left: -21vw; z-index: 3; }
.t3 path { fill: #076c82;   /* darkest chevron, blends into the background */ }

.t4 { left: -9vw; z-index: 2; }
.t4 path { fill: var(--rem-bg); }

/*hero content*/
.hero-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;   /* right half of the page */
    right: 0;
    z-index: 7;
    pointer-events: none;

    display: flex;
    flex-direction: column;
    align-items: center;   /* centers the stats horizontally */
    padding: 0 clamp(1rem, 3vw, 3rem) 6vw;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;    /* spans the overlay's full width, so align-items centers it */
    transform: translateY(-100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    pointer-events: auto;
}

.hero-tagline {
    font-family: var(--mono);
    font-weight: 500;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    letter-spacing: 0.08em;
    color: #fff;
    margin: 0 0 1.4rem 0;
}

.hero-logo svg {
    width: clamp(220px, 24vw, 400px);
    height: auto;
    display: block;
}

/*stats */
.hero-stats {
    margin-top: auto; /* pushes this item to the bottom of the flex column */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    pointer-events: auto;
}

/*mobile*/
@media (max-width: 760px) {
    .section.hero {
        height: 100vh;
        height: 100svh;
        min-height: 520px;
    }

    .hero-triangles { display: none; }

    .hero-overlay {
        left: 0;
        align-items: center;
        justify-content: center;
        padding: calc(57px + 2rem) 6% max(3rem, calc(env(safe-area-inset-bottom, 0px) + 2rem));
    }

    .hero-content {
        position: static;
        transform: none;
        width: 100%;
        margin: auto 0;
    }

    /* eyebrow: bigger, more space above the logo */
    .hero-tagline {
        font-size: clamp(0.8rem, 3.4vw, 0.95rem);
        letter-spacing: 0.1em;
        margin-bottom: 2rem;
    }

    .hero-logo svg { width: min(260px, 72vw); }

    /* stats: grouped in the middle instead of pushed to the edges */
    .hero-stats {
        margin-top: 0;
        width: 100%;
        max-width: 26rem;
        padding-top: 1.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }
}

/*navbar override*/
.home .nav-list > li.active a, .home .nav-list .item a {
    color: white;
}

/*hero*/
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
}

/*content*/
.content {
    position: relative;
    background: white;
    padding: 4rem 0;
}

.content-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 6rem;
    z-index: 4;
}

.content-inner .row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}


.content-inner .row .col.txt {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    line-height: 2;
}

.content-inner .row .col.img {
    flex: 1;
    align-self: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.col.img img {
    position: relative;
    z-index: 2;
}


.col.img::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    background: #9ad8db;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0;
    z-index: 1;
}


/* Fade-in of the intro (.visible, set by home.js): animations.css */

/* Headings */
.col.txt h2 {
    color: var(--rem-teal);
    position: relative;
    z-index: 1;
}

/*tooltip*/
a.highlight { color: inherit; text-decoration: none; }

.highlight {
    position: relative;
    cursor: pointer;
    border-bottom: 5px dotted var(--koraal);
    font-weight: 500;
    transition: all 0.3s ease;
}

.highlight:hover {
    transform: translateY(-1px);
}

.highlight::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(8px);
    color: #0a6c83;               /* almost --rem-teal (#0b6f82): merge? */
    border: 1px solid #0a6c83;
    padding: 10px;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 10;
}

.highlight:hover::after,
.highlight:hover::before {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/*footer*/
footer {
    margin-top: auto;
    width: 100%;
}

@media (max-width: 760px) {
    .section.intro .content-inner {
        gap: 0;
    }

    /*tooltip*/
    .highlight {
        position: relative;
        cursor: pointer;
        border-bottom: none;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .highlight::after {
        display: none;
    }

    .highlight:hover::after,
    .highlight:hover::before {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .content-inner .row {
        flex-direction: column;
    }
    .content-inner .row .col.txt,
    .content-inner .row .col.img {
        flex: 1 1 100%;
    }
}

/*ticker*/

.client-ticker {
    --ticker-accent: #125d6e;   /* own teal, between --rem-teal and --rem-bg */
    --logo-h: 88px; /* height of a square logo; wide logos scale down from this */
    --logo-max-w: 280px; /* no logo gets wider than this */
    --gap: 96px; /* space between every pair of logos */
    /* --page-width is set by ticker.js from the page's content column; this is the fallback */

    position: relative;
    z-index: 4;
    background: var(--cream);
    padding-block: clamp(7rem, 13vw, 7rem) clamp(6rem, 12vw, 7rem); /* top, bottom */
}
.client-ticker .ticker-head {
    position: relative;
    z-index: 1;
    padding-inline: 1.5rem;
}

.client-ticker .ticker-title {
    position: relative;
    visibility: visible;
    opacity: 1;
    max-width: 30ch;
    margin: 0 auto clamp(3rem, 6vw, 3rem);
    text-align: center;
    text-wrap: balance;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    line-height: 1.3;
    color: var(--rem-teal);
}

/* Fade-in and scrolling of the logos: animations.css */

.ticker-row {
    /*width: min(var(--page-width, 1200px), 100% - 3rem);*/
    margin-inline: auto;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.ticker-track {
    display: flex;
    width: max-content;
}

.ticker-set {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: var(--gap);
    margin: 0;
    padding: 0 var(--gap) 0 0; /* trailing gap keeps both halves exactly equal */
    list-style: none;
}

/* Each logo is exactly as wide as its image, so the gap is the only spacing */
.ticker-logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    min-width: 0;
    height: calc(var(--logo-h) + 24px);
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.ticker-logo-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    font: inherit;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
}

button.ticker-logo-inner {
    cursor: pointer;
}

.ticker-logo-inner:focus-visible {
    outline: 2px solid var(--ticker-accent);
    outline-offset: 6px;
}

.client-ticker .ticker-logo img {
    display: block;
    flex-shrink: 0;
    width: auto;
    height: calc(var(--logo-h) * var(--scale, 1));
    max-width: var(--logo-max-w);
    max-height: none;
    object-fit: contain;
    user-select: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.client-ticker .ticker-logo:hover img,
.client-ticker .ticker-logo-inner:focus-visible img {
    transform: scale(1.15);
}

/* Hover / focus card */
.ticker-card {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    display: grid;
    gap: 0.2rem;
    min-width: 12rem;
    max-width: 18rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: var(--ticker-accent);
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.35;
    box-shadow: 0 14px 30px -14px rgba(18, 93, 110, 0.6);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, calc(-100% - 6px));
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ticker-card.is-visible {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 12px));
    pointer-events: auto;   /* hoverable and clickable once it is shown */
}

/* Invisible bridge over the gap between card and logo, so the pointer doesn't "fall off" */
.ticker-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 24px;
}

/* Hold the ticker still while a card is open, so the logo doesn't slide out from under it */
.client-ticker.has-card .ticker-track {
    animation-play-state: paused !important;
}

.ticker-card::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: var(--arrow, 50%);
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: inherit;
    transform: translateX(-50%) rotate(45deg);
}

.ticker-card-name {
    font-weight: 700;
}

.ticker-card-meta {
    opacity: 0.8;
}

.ticker-card-cta {
    justify-self: start;
    margin-top: 0.35rem;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: inherit;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.ticker-card-cta:hover {
    text-decoration-thickness: 2px;
}

@media (max-width: 768px) {
    .client-ticker {
        --logo-h: 60px;
        --logo-max-w: 190px;
        --gap: 56px;
    }
}

/* Mobile: no ticker, the teal trust section runs straight into the footer.
   home.js only loads the logos once the ticker is visible. */
@media (max-width: 760px) {
    .client-ticker { display: none; }
}

/* No motion: a static, swipeable strip */
@media (prefers-reduced-motion: reduce) {
    .ticker-row {
        overflow-x: auto;
        scrollbar-width: thin;
    }
    .ticker-set.is-clone,
    .ticker-logo.is-clone {
        display: none;
    }
    .client-ticker .ticker-logo img,
    .ticker-card {
        transition: none;
    }
}


.rem-reach {
    margin: 0;
    text-align: center;
    color: var(--cream);
    font-family: var(--sans);
}

.rem-reach-lead {
    display: block;
    margin: 0 0 1.1rem;
    font-size: 14px;
    letter-spacing: 0.02em;
    color: var(--cream-soft);
    font-family: var(--sans);

}

.rem-reach-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35em;
    font-family: var(--sans);
    font-weight: 400;
    font-size: clamp(17px, 1.25vw, 22px);
    line-height: 1.3;
    letter-spacing: 0.03em;
    color: var(--cream-soft);
}

.rem-reach-part {
    white-space: nowrap;
    font-family: var(--sans);
}

/*stat*/
.rem-reach-num {
    position: relative;
    margin: 0 0.1em;
    font-size: 1.45em;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--cream);
    white-space: nowrap;
    vertical-align: -0.06em;
}

.rem-reach-num::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.04em;
    height: 2px;
    background: var(--koraal);
    transform-origin: left center;
}
/* The underline drawing in once the numbers have counted: animations.css */

@media (max-width: 480px) {
    .rem-reach-part { white-space: normal; }
}

/*trust*/

.trust {
    --trust-dim: rgba(244, 240, 234, 0.74);
    padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 5vw, 4rem);
    background: var(--rem-bg);
    color: var(--cream);
}

.trust-wrap {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(3rem, 8vw, 8rem);
    align-items: start;
    max-width: var(--content-max);
    margin: 0 auto;
}

/* ===== Tekst ===== */
.trust-title {
    margin: 0 0 1.75rem;
    font-family: var(--sans);
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--cream);
    text-wrap: balance;
}

.trust-text p {
    margin: 0 0 1.1rem;
    font-family: var(--sans);
    font-size: clamp(16px, 1.15vw, 18px);
    line-height: 1.7;
    color: var(--trust-dim);
}

/* ===== Normen: tweede rij over de volle breedte, vier naast elkaar ===== */
.trust-norms {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: clamp(3.5rem, 6vw, 5rem) 0 0;
    padding: 0;
    list-style: none;
}

.trust-norms li {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.85rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line-on-dark);
    border-radius: 12px;
    background: rgba(244, 240, 234, 0.05);
}

.trust-norms li > .icon {
    grid-row: span 2;
    width: 22px;
    height: 22px;
    color: var(--koraal);
}

.trust-norm-name {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cream);
}

.trust-norm-what {
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.3;
    color: var(--trust-dim);
}

/* ===== Klantverhalen ===== */
.trust-testi {
    align-self: stretch;
    padding: 0.4rem 0 0 clamp(1.5rem, 3vw, 2.5rem);
    border-left: 1px solid var(--line-on-dark);
}

.trust-testi-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.trust-testi-title {
    margin: 0;
    font-family: var(--sans);
    font-size: clamp(20px, 1.6vw, 24px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--cream);
}

.trust-testi-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.trust-btn {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line-on-dark);
    border-radius: 50%;
    background: transparent;
    color: var(--cream);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.trust-btn svg { width: 15px; height: 15px; }
.trust-pp svg { fill: currentColor; width: 13px; height: 13px; }

.trust-pp .trust-pp-play,
.trust-testi.is-paused .trust-pp .trust-pp-pause { display: none; }
.trust-testi.is-paused .trust-pp .trust-pp-play { display: block; }

.trust-btn:hover {
    background: var(--cream);
    border-color: var(--cream);
    color: var(--rem-bg);
}

.trust-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0.3rem;
}

.trust-dot {
    position: relative;
    overflow: hidden;
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1.5px solid var(--koraal);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.trust-dot::before {                  /* ruimer raakvlak */
    content: "";
    position: absolute;
    inset: -12px -4px;
}

/* De actieve stip loopt vol in de tijd tot het volgende verhaal */
.trust-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--koraal);
    transform: scaleX(0);
    transform-origin: left center;
}

.trust-dot[aria-current="true"] { width: 32px; }
.trust-dot[aria-current="true"]::after { transform: scaleX(1); }
/* The active dot filling up until the next story: animations.css */

.trust-btn:focus-visible,
.trust-dot:focus-visible {
    outline: 2px solid var(--koraal);
    outline-offset: 3px;
}

.trust-quotes {
    display: grid;
    touch-action: pan-y;
}

.trust-quote {
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.6s var(--ease-out), visibility 0s linear 0.6s;
}

.trust-quote.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.5s ease 0.12s, transform 0.7s var(--ease-out) 0.12s, visibility 0s;
}

.trust-quote blockquote { margin: 0; }

.trust-quote blockquote p {
    margin: 0;
    font-family: var(--sans);
    font-size: clamp(20px, 1.75vw, 26px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--cream);
}

.trust-quote-by {
    margin-top: 1.5rem;
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--cream);
}

.trust-quote-by span {
    display: block;
    margin-top: 0.25rem;
    font-weight: 400;
    color: var(--trust-dim);
}

@media (max-width: 900px) {
    .trust-wrap { grid-template-columns: minmax(0, 1fr); row-gap: 4rem; }
    .trust-norms { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
    .trust-testi { padding: 2.5rem 0 0; border-left: 0; border-top: 1px solid var(--line-on-dark); }

    .trust-text  { order: 1; }
    .trust-norms { order: 2; margin-top: -2rem; }   /* dichter bij de tekst waar ze bij horen */
    .trust-testi { order: 3; }
}

@media (max-width: 340px) {
    .trust-norms { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .trust-quote, .trust-dot { transition: none; }
}


@property --norm-line { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

.trust-norms li {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    cursor: default;
    background-image: linear-gradient(var(--koraal), var(--koraal));
    background-position: left top;
    background-size: max(1.5rem, var(--norm-line)) 2px;
    background-repeat: no-repeat;
    transition:
            --norm-line 0.3s var(--ease-out),
            transform 0.35s var(--ease-out),
            border-color 0.35s var(--ease-out),
            background-color 0.35s var(--ease-out),
            opacity 0.35s var(--ease-out);
}

/* Zachte koraal gloed achter het schildje */
.trust-norms li::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    /*background: radial-gradient(160px circle at 1.6rem 50%, rgba(216, 85, 59, 0.22), transparent 70%);*/
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    pointer-events: none;
}

/*icon bounce*/
.trust-norms li::before {
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trust-norm-what { transition: color 0.3s var(--ease-out); }

.trust-norms li:hover {
    --norm-line: 100%;
    transform: translateY(-3px);
    border-color: rgba(244, 240, 234, 0.4);
    /*background-color: rgba(244, 240, 234, 0.08);*/
    transition:
            --norm-line 0.5s var(--ease-out),
            transform 0.35s var(--ease-out),
            border-color 0.35s var(--ease-out),
            background-color 0.35s var(--ease-out),
            opacity 0.35s var(--ease-out);
}
.trust-norms li:hover::after { opacity: 1; }
.trust-norms li:hover::before { transform: scale(1.15) rotate(-8deg); }
.trust-norms li:hover .trust-norm-what { color: var(--cream); }

@media (hover: hover) {
    .trust-norms:has(li:hover) li:not(:hover) { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
    .trust-norms li,
    .trust-norms li::before,
    .trust-norms li::after { transition: none; }
    .trust-norms li:hover { transform: none; }
    .trust-norms li:hover::before { transform: none; }
}