/* ============================================================
   Homepage "Auditor in controle" (ADR homepage-auditor-in-controle)
   Tokens per ADR §7. All selectors are prefixed h27- so they stay
   isolated from styles.css.
   ============================================================ */

:root {
    --forest: #09322B;
    --pine: #346D62;
    --teal: #5DCEB3;
    --mint: #74FBDB;
    --mint-tint: #B6F4EA;
    --coral: #FF5757;
    --grey-600: #595959;

    --h27-tile-radius: 16px;
    --h27-section-y: clamp(36px, 4.5vw, 64px);
    --h27-max: 1240px;
}

.h27 {
    font-family: 'Nunito', sans-serif;
    color: var(--forest);
}

.h27-container {
    width: 100%;
    max-width: var(--h27-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

.h27-section {
    padding: var(--h27-section-y) 0;
    background: #FFFFFF;
}

.h27-section--forest {
    background: var(--forest);
    color: #FFFFFF;
}

.h27-section--tint {
    background: #F4FBF8;
}

/* ---------- Shared type ---------- */
.h27-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pine);
}

.h27-section--forest .h27-label {
    color: var(--mint-tint);
}

.h27-h2 {
    margin: 12px 0 16px;
    font-size: clamp(36px, 4.2vw, 52px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.h27-lead {
    margin: 0;
    max-width: 62ch;
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.55;
    color: var(--pine);
}

.h27-section--forest .h27-lead {
    color: var(--mint-tint);
}

.h27-head {
    margin-bottom: 24px;
}

.h27-head--center {
    text-align: center;
}

.h27-head--center .h27-lead {
    margin-inline: auto;
}

.h27-head--center .h27-head-action {
    margin-top: 22px;
}

/* ---------- Tiles ---------- */
.h27-tile {
    padding: 28px;
    border-radius: var(--h27-tile-radius);
    background: #FFFFFF;
    border: 1px solid #DCE9E5;
}

.h27-tile h3,
.h27-tile strong {
    display: block;
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.25;
}

.h27-tile p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--pine);
}

/* ============================================================
   §6.2 Hero
   ============================================================ */
.h27-hero {
    background: var(--forest);
    color: #FFFFFF;
    padding: calc(var(--fixed-offset, 96px) + 24px) 0 clamp(40px, 4.5vw, 64px);
}

.h27-hero-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(32px, 4vw, 64px);
    align-items: center;
}

.h27-eyebrow {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(116, 251, 219, 0.14);
    border: 1px solid rgba(116, 251, 219, 0.45);
    color: var(--mint);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.h27-h1 {
    margin: 20px 0 20px;
    font-size: clamp(40px, 5.2vw, 70px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.h27-h1 em {
    font-style: normal;
    color: var(--mint);
}

.h27-hero-sub {
    margin: 0 0 28px;
    max-width: 52ch;
    font-size: clamp(17px, 1.25vw, 20px);
    line-height: 1.55;
    color: var(--mint-tint);
}

.h27-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.h27-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.h27-btn--primary {
    background: var(--mint);
    color: var(--forest);
    border-color: var(--mint);
}

.h27-btn--primary:hover {
    background: var(--mint-tint);
    border-color: var(--mint-tint);
}

.h27-btn--ghost {
    background: transparent;
    color: var(--mint);
    border-color: rgba(116, 251, 219, 0.5);
}

.h27-btn--ghost:hover {
    background: rgba(116, 251, 219, 0.12);
    border-color: var(--mint);
}

.h27-btn--dark {
    background: var(--forest);
    color: var(--mint);
    border-color: var(--forest);
}

.h27-btn--dark:hover {
    background: #0C4238;
    border-color: #0C4238;
}

.h27-trust {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--mint-tint);
}

.h27-trust span {
    white-space: nowrap;
}

/* Language switch (real URLs, no JS translation) */

/* ============================================================
   §5 Control Lens (static first frame; animation in pass 2)
   ============================================================ */
.h27-lens {
    width: 100%;
    aspect-ratio: 724 / 500;
}

.h27-lens svg {
    width: 100%;
    height: auto;
    display: block;
}

.h27-lens-label {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    fill: var(--mint-tint);
}

.h27-lens-label--sm {
    font-size: 11px;
    font-weight: 600;
    fill: #9FD9CD;
}

.h27-lens-card-title {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 800;
    fill: var(--forest);
}

.h27-lens-card-meta {
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 600;
    fill: var(--pine);
}

.h27-lens-counter {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 700;
    fill: var(--mint);
}

/* ============================================================
   §6.4 Problem — bottleneck
   ============================================================ */
.h27-shift {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 4px;
    align-items: center;
}

.h27-shift-thread {
    width: 148px;
    height: 90px;
    margin: 0 -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.h27-shift-thread-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.h27-shift-thread-svg--v {
    display: none;
}

.h27-shift-thread-chevron {
    fill: none;
    stroke: var(--coral);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.h27-shift-card--now {
    background: #F6F7F7;
    border-color: #E2E5E4;
}

.h27-shift-card--next {
    background: #EAFBF5;
    border-color: var(--teal);
}

.h27-shift-kicker {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pine);
}

.h27-iconrows {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.h27-iconrows li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 16px;
    line-height: 1.5;
    color: var(--pine);
}

.h27-iconrows svg {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: var(--teal);
}

/* ============================================================
   §6.5 Approach — flow + feedback loop
   ============================================================ */
.h27-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.h27-flow .h27-tile {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.h27-flow .h27-tile:hover,
.h27-flow .h27-tile:focus-within {
    border-color: var(--coral);
    background: #FFF6F6;
}

/* ============================================================
   §6.6 Orchestration — stack + table
   ============================================================ */
.h27-orch {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: clamp(28px, 3.5vw, 56px);
    align-items: start;
}

.h27-table-wrap {
    overflow-x: auto;
}

.h27-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.h27-table th {
    padding: 12px 14px;
    text-align: left;
    background: var(--mint-tint);
    color: var(--forest);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.h27-table th:first-child { border-radius: 10px 0 0 0; }
.h27-table th:last-child { border-radius: 0 10px 0 0; }

.h27-table td {
    padding: 14px;
    border-bottom: 1px solid #DCE9E5;
    color: var(--pine);
    vertical-align: top;
}

.h27-table td:first-child {
    color: var(--forest);
    font-weight: 700;
    white-space: nowrap;
}

.h27-table-note {
    margin: 18px 0 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--forest);
}

/* ============================================================
   §6.7 Firm AI — now/next + model band
   ============================================================ */
.h27-models {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.h27-model {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #DCE9E5;
    font-size: 15px;
    font-weight: 700;
    color: var(--forest);
}

.h27-model img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* ============================================================
   §6.8 ISA + content with partner firms
   ============================================================ */

.h27-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.h27-chips li {
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--mint-tint);
    color: var(--forest);
    font-size: 14px;
    font-weight: 700;
}

/* ============================================================
   §6.9 Impact tiles
   ============================================================ */

.h27-impact-tile--quality .h27-label {
    color: var(--mint);
}

/* ============================================================
   §6.10 Why now — statement band
   ============================================================ */
.h27-statement {
    margin: 0 auto;
    max-width: 24ch;
    text-align: center;
    font-size: clamp(30px, 4.6vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--mint);
}

.h27-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.h27-cols div {
    font-size: 16px;
    line-height: 1.55;
    color: var(--mint-tint);
}

.h27-cols b {
    display: block;
    margin-bottom: 6px;
    color: #FFFFFF;
    font-size: 17px;
}

.h27-why-lead {
    margin: 18px auto 0;
    max-width: 38ch;
    text-align: center;
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 700;
    line-height: 1.45;
    color: var(--mint-tint);
}

.h27-why-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.h27-copyright {
    margin: 28px 0 0;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.45;
    color: rgba(182, 244, 234, 0.45);
}

.h27 .footer-copyright {
    display: none;
}

/* ============================================================
   §6.13 Closing CTA
   ============================================================ */
.h27-cta {
    position: relative;
    overflow: hidden;
}

.h27-cta-thread {
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: min(42%, 420px);
    opacity: 0.9;
    pointer-events: none;
}

.h27-cta-inner {
    position: relative;
    max-width: 62ch;
}

.h27-cta h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 3.6vw, 46px);
    font-weight: 800;
    line-height: 1.12;
}

.h27-cta p {
    margin: 0 0 26px;
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.55;
    color: var(--mint-tint);
}

.h27-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.h27-news {
    padding-top: 26px;
    border-top: 1px solid rgba(182, 244, 234, 0.25);
}

.h27-news-label {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--mint-tint);
}

.h27-news-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.h27-news-form input[type="email"] {
    flex: 1 1 260px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(182, 244, 234, 0.4);
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
}

.h27-news-form input[type="email"]::placeholder {
    color: #8FC4B9;
}

/* ============================================================
   Focus states (§10, WCAG 2.2 AA)
   ============================================================ */
.h27 a:focus-visible,
.h27 button:focus-visible,
.h27 input:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 2px;
}

.h27-section--forest a:focus-visible,
.h27-hero a:focus-visible {
    outline-color: var(--mint);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
    .h27-hero-grid,
    .h27-orch,
    .h27-two {
        grid-template-columns: 1fr;
    }

    .h27-int-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .h27-shift {
        grid-template-columns: 1fr;
    }

    .h27-shift-thread {
        width: 64px;
        height: 96px;
        justify-self: center;
    }

    .h27-shift-thread-svg--h {
        display: none;
    }

    .h27-shift-thread-svg--v {
        display: block;
    }

    .h27-iconrows,
    .h27-flow,
    .h27-cols,
    .h27-impact,
    .h27-timeline {
        grid-template-columns: 1fr;
    }

    .h27-sectable th[scope="row"] {
        white-space: normal;
    }
}

/* ============================================================
   Reveal on scroll (shared by the new visuals)
   ============================================================ */
[data-h27-reveal] > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-h27-reveal].is-visible > * {
    opacity: 1;
    transform: none;
}

[data-h27-reveal].is-visible > *:nth-child(2) { transition-delay: 0.1s; }
[data-h27-reveal].is-visible > *:nth-child(3) { transition-delay: 0.2s; }
[data-h27-reveal].is-visible > *:nth-child(4) { transition-delay: 0.3s; }

/* ============================================================
   Eigen onderzoek: drie getallen
   ============================================================ */
.h27-research {
    margin-top: 0;
}

.h27-research-intro {
    margin: 0 auto 20px;
    max-width: 56ch;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.h27-research-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.h27-research-card {
    position: relative;
    overflow: hidden;
    padding: 30px 28px 28px;
    border-radius: var(--h27-tile-radius);
    background: var(--forest);
    color: #FFFFFF;
}

.h27-research-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(116, 251, 219, 0.1);
}

.h27-research-figure {
    position: relative;
    display: block;
    margin-bottom: 14px;
    color: var(--mint);
    font-size: clamp(54px, 5.6vw, 76px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.h27-research-figure i {
    font-style: normal;
    font-size: 0.5em;
    vertical-align: 0.42em;
    margin-left: 2px;
}

.h27-research-card strong {
    position: relative;
    display: block;
    margin-bottom: 8px;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
}

.h27-research-card p {
    position: relative;
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--mint-tint);
}

.h27-research-extras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.h27-research-extra {
    display: flex;
    align-items: center;
    gap: 16px 20px;
    margin: 0;
    padding: 20px 28px;
    border-radius: var(--h27-tile-radius);
    background: var(--forest);
    color: var(--mint-tint);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
}

.h27-research-figure--inline {
    flex: 0 0 auto;
    margin: 0;
    font-size: 42px;
    line-height: 1;
}

/* ============================================================
   Organische rode draad
   ============================================================ */
.h27-draad {
    position: relative;
    margin-top: 28px;
    height: 220px;
}

.h27-draad--lead {
    margin-top: 0;
    margin-bottom: 8px;
    height: 180px;
}

.h27-draad-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.h27-draad-ball {
    filter: none;
}

/* ============================================================
   Orkestratielaag: levend paneel
   ============================================================ */
.h27-orchestra {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 0;
    align-items: center;
}

.h27-orchestra-panel {
    border-radius: var(--h27-tile-radius);
    border: 1px solid #DCE9E5;
    background: #FFFFFF;
    overflow: hidden;
}

.h27-orchestra-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--forest);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
}

.h27-orchestra-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--mint);
    animation: h27Blink 2s ease-in-out infinite;
}

@keyframes h27Blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}

.h27-orchestra-live {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(116, 251, 219, 0.18);
    color: var(--mint);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.h27-orchestra-table {
    margin: 0;
}

.h27-orchestra-table tbody tr {
    transition: background-color 0.45s ease;
}

.h27-orchestra-table tbody tr.is-active {
    background: #F0FBF7;
}

.h27-orchestra-table tbody tr td:last-child::after {
    content: "\2713";
    display: inline-block;
    margin-left: 8px;
    color: var(--teal);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.h27-orchestra-table tbody tr.is-accepted td:last-child::after {
    opacity: 1;
    transform: scale(1);
}

.h27-chip {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    background: #EEF6F3;
    font-size: 13px;
    font-weight: 700;
    color: var(--pine);
    transition: background-color 0.4s ease, color 0.4s ease;
}

tr.is-active .h27-chip {
    background: var(--mint-tint);
    color: var(--forest);
}

.h27-orchestra-file {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.h27-orchestra-thread {
    position: absolute;
    left: 0;
    right: 150px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--coral), var(--mint));
}

.h27-orchestra-thread::after {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--mint);
    box-sizing: border-box;
    opacity: 0;
}

.h27-orchestra.is-running .h27-orchestra-thread::after {
    animation: h27Packet 2.4s ease-in-out infinite;
}

@keyframes h27Packet {
    0% { left: 0; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.h27-orchestra-dossier {
    width: 140px;
    padding: 20px 16px;
    border-radius: var(--h27-tile-radius);
    background: var(--forest);
    color: #FFFFFF;
    text-align: center;
}

.h27-orchestra-dossier-label {
    display: block;
    font-size: 14px;
    font-weight: 800;
}

.h27-orchestra-counter {
    display: block;
    margin: 6px 0 2px;
    color: var(--mint);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.h27-orchestra-dossier-sub {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mint-tint);
}

/* ============================================================
   Kantoor-AI: modellen en Engyon AI
   ============================================================ */
.h27-engyonai {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.h27-engyonai-tile {
    background: #FFFFFF;
}

.h27-engyonai-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--mint-tint);
    color: var(--forest);
}

.h27-engyonai-mark svg {
    width: 22px;
    height: 22px;
}

/* ============================================================
   Content: NV COS / ISA / werkpakketten / methodologie
   ============================================================ */
.h27-content-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.h27-content-points li {
    padding: 20px 18px;
    border-radius: var(--h27-tile-radius);
    background: var(--forest);
    color: #FFFFFF;
}

.h27-content-points strong {
    display: block;
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--mint);
}

.h27-content-points span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--mint-tint);
}

@media (max-width: 960px) {
    .h27-research-cards {
        grid-template-columns: 1fr;
    }

    .h27-orchestra {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .h27-orchestra-file {
        justify-content: flex-start;
    }

    .h27-orchestra-thread {
        display: none;
    }

    .h27-engyonai {
        grid-template-columns: 1fr;
    }

    .h27-draad {
        height: 160px;
        margin-top: 20px;
    }

    .h27-research-extras {
        grid-template-columns: 1fr;
    }

    .h27-research-extra {
        flex-direction: column;
        align-items: flex-start;
    }
}

.h27-usecases {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    margin-top: 24px;
    padding: 22px 28px;
    border-radius: var(--h27-tile-radius);
    background: var(--forest);
    color: #FFFFFF;
}

.h27-usecases p {
    flex: 1 1 240px;
    margin: 0;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.h27-usecases-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ============================================================
   Beveiliging: tabel met certificeringen en EU-wetten
   ============================================================ */
.h27-sectable {
    background: #FFFFFF;
    border-radius: var(--h27-tile-radius);
    overflow: hidden;
}

.h27-sectable tbody th[scope="row"] {
    background: #FFFFFF;
}

.h27-sectable th[scope="row"] {
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 800;
    color: var(--forest);
    white-space: nowrap;
    vertical-align: middle;
}

.h27-sectable th[scope="row"] img {
    width: 36px;
    height: 36px;
    margin-right: 14px;
    object-fit: contain;
    vertical-align: middle;
}

.h27-sectable th[scope="row"] img.h27-secmark {
    object-fit: cover;
    object-position: 0 50%;
}

.h27-sectable td {
    font-size: 16px;
    font-weight: 700;
    color: var(--forest);
    vertical-align: middle;
}

.h27-sectable th:last-child,
.h27-sectable-ok {
    width: 72px;
    text-align: center;
    padding-right: 22px;
}

.h27-check {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--mint);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2309322B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M6.5 12.2l3.4 3.4 7.6-7.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
}

.h27-sec-cta {
    margin: 20px 0 0;
    text-align: center;
}

/* ---------- §5.2 Lens in beweging ---------- */
.h27-lens-flows path,
.h27-lens-loop {
    animation: h27LensDash 3.4s linear infinite;
}

@keyframes h27LensDash {
    to { stroke-dashoffset: -24; }
}

.h27-lens-ring-dash {
    transform-box: fill-box;
    transform-origin: center;
    animation: h27LensSpin 26s linear infinite;
}

@keyframes h27LensSpin {
    to { transform: rotate(360deg); }
}

.h27-lens-ring {
    transition: stroke 0.3s ease, filter 0.3s ease;
}

.h27-lens-ring.is-accepted {
    filter: drop-shadow(0 0 10px rgba(116, 251, 219, 0.85));
}

.h27-lens-ring.is-steered {
    stroke: var(--coral);
    filter: drop-shadow(0 0 10px rgba(255, 87, 87, 0.75));
}

.h27-lens-status {
    font-size: 13px;
    font-weight: 700;
    fill: var(--mint-tint);
}

.h27-lens-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* The card fades in and rises 10px as it enters review (ADR §5.2). */
.h27-lens-card.is-reviewing {
    animation: h27LensCardIn 0.35s ease-out;
}

@keyframes h27LensCardIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.h27-lens-card-mark {
    font-size: 19px;
    font-weight: 800;
    fill: var(--forest);
}

.h27-lens-card.is-steered .h27-lens-card-mark {
    fill: var(--coral);
}

/* ============================================================
   Reduced motion (ADR §10): keep every state, drop the movement.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .h27 .partner-logos {
        animation: none !important;
        transform: none !important;
    }

    .h27 [data-h27-reveal] > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .h27 .h27-orchestra-dot,
    .h27 .h27-orchestra-thread::after,
    .h27 .h27-lens-flows path,
    .h27 .h27-lens-loop,
    .h27 .h27-lens-ring-dash,
    .h27 .h27-lens-card {
        animation: none !important;
    }

    .h27 .h27-btn,
    .h27 .banner-cta,
    .h27 .h27-flow .h27-tile {
        transition: none !important;
    }
}

/* ============================================================
   Dark mode (§7) — forest bands stay dark, light sections invert
   ============================================================ */
@media (prefers-color-scheme: dark) {
    .h27-section--tint,
    .h27 .h27-section:not(.h27-section--forest) {
        background: #06231E;
        color: #FFFFFF;
    }

    .h27 .h27-section:not(.h27-section--forest) .h27-h2 {
        color: #FFFFFF;
    }

    .h27 .h27-section:not(.h27-section--forest) .h27-lead,
    .h27 .h27-section:not(.h27-section--forest) .h27-label {
        color: var(--mint-tint);
    }

    .h27-tile {
        background: #0D3B33;
        border-color: #1C544A;
        color: #FFFFFF;
    }

    .h27-usecases {
        background: var(--forest);
        color: #FFFFFF;
    }

    .h27-tile p,
    .h27-iconrows li {
        color: var(--mint-tint);
    }

    .h27-tile strong,
    .h27-tile h3 {
        color: #FFFFFF;
    }

    /* Brand marks are drawn for light backgrounds, so keep the pill light. */
    .h27-model {
        background: #FFFFFF;
        border-color: #DCE9E5;
        color: var(--forest);
    }

    .h27-shift-card--now {
        background: #0A2E28;
        border-color: #1C544A;
    }

    .h27-shift-card--next {
        background: #0D3B33;
        border-color: var(--teal);
    }

    .h27-flow .h27-tile:hover,
    .h27-flow .h27-tile:focus-within {
        background: #3A1A1A;
        border-color: var(--coral);
    }

    .h27-table td {
        border-bottom-color: #1C544A;
        color: var(--mint-tint);
    }

    .h27-table td:first-child,
    .h27-table-note {
        color: #FFFFFF;
    }

    .h27-sectable {
        background: #FFFFFF;
    }

    .h27-sectable th,
    .h27-sectable td,
    .h27-sectable th[scope="row"],
    .h27-sectable td:first-child {
        color: var(--forest);
        border-bottom-color: #DCE9E5;
    }

    /* ---- Nieuwe visuals ---- */
    .h27-research-intro {
        color: #FFFFFF;
    }

    .h27-research-card {
        background: #0D3B33;
    }

    .h27-orchestra-panel {
        background: #0D3B33;
        border-color: #1C544A;
    }

    .h27-orchestra-bar {
        background: #0A2E28;
    }

    .h27-orchestra-table tbody tr.is-active {
        background: #10463C;
    }

    .h27-chip {
        background: #10463C;
        color: var(--mint-tint);
    }

    .h27-orchestra-dossier {
        background: #0A2E28;
    }

    .h27-content-points li {
        background: #0D3B33;
    }
}
