/*
  Styles for the hero video. Everything is laid out in stage pixels (1920x1080) and the
  whole stage is scaled at once, so positions can be absolute without breakpoints.
  Convention: an element is hidden until video.js gives it the class "on"; the variant
  classes (up, pop, left) only describe where it comes from.
*/

@font-face { font-family: 'Outfit'; font-weight: 400; font-display: swap; src: url('../css/fonts/outfit/outfit-v15-latin_latin-ext-regular.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 500; font-display: swap; src: url('../css/fonts/outfit/outfit-v15-latin_latin-ext-500.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-display: swap; src: url('../css/fonts/outfit/outfit-v15-latin_latin-ext-600.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 700; font-display: swap; src: url('../css/fonts/outfit/outfit-v15-latin_latin-ext-700.woff2') format('woff2'); }

:root {
    --bg0: #0a1628;
    --bg1: #0f2847;
    --bg2: #1e3a5f;
    --ink: #ffffff;
    --mute: #94a3b8;
    --soft: #cbd5e1;
    --blue: #60a5fa;
    --blue6: #2563eb;
    --teal: #5eead4;
    --teal5: #14b8a6;
    --green: #4ade80;
    --orange: #f7901e;
    --purple: #c084fc;
    --indigo: #a5b4fc;
    --red: #f87171;
    --card: rgba(255, 255, 255, 0.06);
    --card2: rgba(255, 255, 255, 0.1);
    --line: rgba(255, 255, 255, 0.14);
    --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    background: var(--bg0);
    color: var(--ink);
    font-family: 'Outfit', system-ui, sans-serif;
    /* It's a video: clicks toggle playback, so dragging should never select text */
    -webkit-user-select: none;
    user-select: none;
}

p, h1, h2, ul { margin: 0; }

/* ---------- Stage ---------- */

.stage {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1920px;
    height: 1080px;
    transform: translate(-50%, -50%) scale(var(--s, 1));
    background: linear-gradient(135deg, var(--bg0) 0%, var(--bg1) 50%, var(--bg2) 100%);
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.08) 1px, transparent 1px);
    background-size: 64px 64px;
}

.bg-glow {
    position: absolute;
    left: 560px;
    top: 240px;
    width: 800px;
    height: 600px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.14);
    filter: blur(120px);
}

.scene {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility 0s .6s;
}

.scene.on {
    opacity: 1;
    visibility: visible;
    transition: opacity .6s ease;
}

/* ---------- Entrance effects ---------- */

.fx {
    opacity: 0;
    transition: opacity .6s ease, transform .8s var(--ease);
}

.fx.on { opacity: 1; transform: none; }
.up { transform: translateY(36px); }
.pop { transform: scale(.85); }
.left { transform: translateX(-40px); }

.draw {
    fill: none;
    stroke: var(--line);
    stroke-width: 3;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1s var(--ease);
}

.draw.on { stroke-dashoffset: 0; }

/* ---------- Typography ---------- */

.grad {
    background: linear-gradient(90deg, var(--blue), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mute { color: var(--mute); }

.title, .head, .cap, .sub, .kicker, .source, .turn, .turn-sub {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
}

.title { top: 410px; font-size: 104px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.head { top: 110px; font-size: 72px; font-weight: 700; letter-spacing: -0.02em; }
.sub { top: 185px; font-size: 32px; color: var(--soft); }
.cap { top: 910px; font-size: 44px; font-weight: 500; color: var(--soft); }
.kicker { font-size: 28px; font-weight: 500; color: var(--blue); }
.source { top: 650px; font-size: 26px; color: var(--mute); }
.big { font-size: 92px; font-weight: 700; letter-spacing: -0.03em; }

.tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 600;
}

.t-blue { background: rgba(96, 165, 250, .18); color: var(--blue); }
.t-green { background: rgba(74, 222, 128, .18); color: var(--green); }
.t-teal { background: rgba(94, 234, 212, .18); color: var(--teal); }
.t-purple { background: rgba(192, 132, 252, .18); color: var(--purple); }
.t-orange { background: rgba(247, 144, 30, .18); color: var(--orange); }
.t-red { background: rgba(248, 113, 113, .18); color: var(--red); }

.c-green { color: var(--green); }
.c-blue { color: var(--blue); }
.c-purple { color: var(--purple); }
.c-indigo { color: var(--indigo); }
.c-teal { color: var(--teal); }

/* ---------- 1. Chaos ---------- */

.clock { position: absolute; left: 120px; top: 56px; font-size: 30px; color: var(--mute); }

.card {
    position: absolute;
    width: 390px;
    padding: 22px 26px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    backdrop-filter: blur(6px);
    animation: bob 5s ease-in-out infinite;
    transition: opacity .6s ease, transform .8s var(--ease), filter .8s ease;
}

/* Uneven bobbing so the pile feels restless rather than choreographed */
.card:nth-child(2n) { animation-duration: 6.5s; animation-delay: -2s; }
.card:nth-child(3n) { animation-duration: 4.2s; animation-delay: -1s; }

.card b { display: block; margin: 12px 0 6px; font-size: 27px; font-weight: 600; line-height: 1.25; }
.card small { font-size: 21px; color: var(--mute); }

@keyframes bob { 50% { translate: 0 -12px; } }

.mess.on .card { opacity: .22; filter: blur(4px); }

/* ---------- 2. 80% klaar ---------- */

.col {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.weeks { display: flex; flex-direction: column; gap: 22px; margin-bottom: 60px; }

.week { display: flex; align-items: center; gap: 30px; font-size: 32px; }
.week span { width: 150px; color: var(--mute); }
.week b { font-weight: 600; color: var(--orange); }

.bar { width: 620px; height: 18px; border-radius: 9px; background: var(--card2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, var(--blue6), var(--blue)); transition: width 1.1s var(--ease) .2s; }
.week.on .bar i { width: 80%; }

/* ---------- Chat (3 and 8) ---------- */

.chat {
    position: absolute;
    left: 460px;
    top: 240px;
    width: 1000px;
    border-radius: 22px;
    background: rgba(10, 22, 40, .85);
    border: 1px solid var(--line);
    box-shadow: 0 40px 80px rgba(0, 0, 0, .35);
    overflow: hidden;
}

.chat-top { display: flex; align-items: center; gap: 10px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.chat-top i { width: 14px; height: 14px; border-radius: 50%; background: var(--card2); }
.chat-top span { margin-left: 12px; font-size: 22px; color: var(--mute); }

.msgs { display: flex; flex-direction: column; gap: 20px; padding: 32px; min-height: 400px; }

.msg {
    max-width: 78%;
    padding: 18px 24px;
    border-radius: 20px;
    font-size: 28px;
    line-height: 1.35;
}

.msg.me { align-self: flex-end; background: var(--blue6); border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--card2); border-bottom-left-radius: 6px; }
.msg small { display: block; margin-top: 6px; font-size: 19px; color: var(--mute); }

.msg.dots { display: flex; gap: 8px; align-self: flex-start; background: var(--card2); }
.msg.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--mute); animation: blink 1s infinite; }
.msg.dots i:nth-child(2) { animation-delay: .2s; }
.msg.dots i:nth-child(3) { animation-delay: .4s; }

/* Collapsed while hidden, so the reply doesn't leave a gap where the dots were */
.msg.dots:not(.on) { display: none; }

@keyframes blink { 50% { opacity: .2; } }

.typing::after { content: '|'; margin-left: 2px; color: var(--blue); animation: blink .8s infinite; }

.msg.paste { display: flex; flex-wrap: wrap; gap: 10px; background: transparent; padding: 0; }
.srcs { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 21px;
    background: rgba(248, 113, 113, .15);
    color: var(--red);
    border: 1px dashed rgba(248, 113, 113, .5);
}

.chip.ok { background: rgba(94, 234, 212, .12); color: var(--teal); border: 1px solid rgba(94, 234, 212, .35); }
.chip.ok::before { content: 'Bron: '; color: var(--mute); }

/* ---------- 4. De wending ---------- */

.flood {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue6), var(--teal5));
}

.tri-lines { position: absolute; inset: 0; }
.tri-lines line { stroke: rgba(255, 255, 255, .7); stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s ease .9s; }
.tri.on .tri-lines line { stroke-dashoffset: 0; }

.node {
    position: absolute;
    left: var(--x0);
    top: var(--y0);
    width: 300px;
    height: 84px;
    margin: -42px 0 0 -150px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: var(--bg1);
    font-size: 34px;
    font-weight: 700;
    box-shadow: 0 20px 50px rgba(10, 22, 40, .3);
    transition: left 1s var(--ease), top 1s var(--ease);
}

.tri.on .node { left: var(--x1); top: var(--y1); }

.turn { top: 620px; font-size: 80px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.turn-sub { top: 840px; font-size: 36px; color: rgba(255, 255, 255, .88); }

/* ---------- 5. Het plan ---------- */

.tree { position: absolute; inset: 0; }
.tree .draw { stroke: rgba(94, 234, 212, .5); }

.goal, .kpi, .act {
    position: absolute;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--line);
}

.goal { left: 660px; top: 200px; width: 600px; padding: 22px 30px; text-align: center; border-color: rgba(94, 234, 212, .5); background: rgba(94, 234, 212, .08); }
.goal b { display: block; margin-top: 10px; font-size: 38px; font-weight: 700; }

.kpi { top: 430px; width: 400px; padding: 20px 26px; }
.kpi b { display: block; margin-top: 10px; font-size: 30px; font-weight: 600; }

.act { top: 640px; width: 400px; padding: 20px 26px; }
.act b { display: block; margin-top: 10px; font-size: 28px; font-weight: 500; padding-right: 70px; }

.av {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    color: var(--bg0);
}

.act .av { position: absolute; right: 22px; bottom: 20px; }
.a1 { background: var(--green); }
.a2 { background: var(--blue); }
.a3 { background: var(--orange); }

/* ---------- 6. Bewezen modellen ---------- */

.tpl {
    position: absolute;
    width: 380px;
    height: 130px;
    padding: 22px 28px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--line);
}

.tpl b { display: block; margin-top: 12px; font-size: 28px; font-weight: 700; white-space: nowrap; }

.tpl-hl {
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    border: 2px solid var(--teal);
    box-shadow: 0 0 40px rgba(94, 234, 212, .35);
    opacity: 0;
    transition: opacity .5s;
}

.tpl-hl.on { opacity: 1; }

.tip {
    position: absolute;
    left: 460px;
    top: 640px;
    width: 1000px;
    padding: 30px 36px;
    border-radius: 22px;
    background: rgba(10, 22, 40, .85);
    border: 1px solid rgba(94, 234, 212, .4);
    box-shadow: 0 40px 80px rgba(0, 0, 0, .35);
}

.tip-text { font-size: 32px; line-height: 1.35; }

/* ---------- 7. AI aan het werk ---------- */

.panel {
    position: absolute;
    width: 820px;
    height: 330px;
    padding: 30px 36px;
    border-radius: 22px;
    background: var(--card);
    border: 1px solid var(--line);
}

.verb { margin-bottom: 20px; font-size: 26px; font-weight: 700; }

.panel .msg.sm { font-size: 24px; max-width: 86%; padding: 14px 20px; }
.panel .msg.bot { margin-bottom: 16px; }
.panel .msg.me { display: flex; align-items: center; gap: 14px; margin-left: auto; width: fit-content; }
.panel .msg.me .av { flex: none; width: 44px; height: 44px; font-size: 17px; }

.teams { display: flex; flex-direction: column; gap: 18px; }
.team { display: flex; align-items: center; gap: 24px; font-size: 24px; }
.team span { width: 110px; color: var(--soft); }
.team .bar { width: 560px; height: 16px; }
.team.on .bar i { width: var(--w); }
.tally { margin-top: 30px; font-size: 26px; color: var(--mute); }
.tally b { font-size: 40px; color: var(--ink); }

.chart { width: 748px; height: 170px; overflow: visible; }
.chart .target { stroke: var(--green); stroke-width: 2; stroke-dasharray: 8 8; opacity: .6; }
.chart text { fill: var(--green); font-size: 18px; font-family: inherit; opacity: .8; }
.chart .draw { stroke: var(--purple); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.ping { fill: var(--red); transform-origin: 670px 158px; animation: ping 1.2s ease-out infinite; }

@keyframes ping { 0% { stroke: rgba(248, 113, 113, .6); stroke-width: 0; } 100% { stroke: rgba(248, 113, 113, 0); stroke-width: 30; } }

.alert {
    position: absolute;
    left: 36px;
    right: 36px;
    bottom: 26px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 23px;
    background: rgba(248, 113, 113, .14);
    color: #fecaca;
    border-left: 4px solid var(--red);
}

.doc-title { font-size: 30px; font-weight: 700; margin-bottom: 14px; }
.doc { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 24px; color: var(--soft); }
.doc b { color: var(--ink); font-weight: 600; }

.badge {
    position: absolute;
    right: 32px;
    top: 28px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 600;
    color: var(--indigo);
    border: 1px solid rgba(165, 180, 252, .5);
}

/* ---------- 9. De cyclus ---------- */

.ring { position: absolute; inset: 0; }
.ring .draw { stroke: rgba(96, 165, 250, .45); stroke-width: 4; transition-duration: 1.6s; }

.orbit {
    position: absolute;
    left: 960px;
    top: 430px;
    width: 0;
    height: 0;
    animation: spin 6s linear infinite;
}

.orbit i {
    position: absolute;
    left: -12px;
    top: -292px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 24px var(--teal);
}

@keyframes spin { to { rotate: 360deg; } }

.step, .hub {
    position: absolute;
    width: 290px;
    margin-left: -145px;
    text-align: center;
}

.step {
    height: 76px;
    margin-top: -38px;
    line-height: 72px;
    border-radius: 999px;
    font-size: 30px;
    font-weight: 600;
    background: var(--bg1);
    border: 2px solid var(--blue);
}

.hub { left: 960px; top: 390px; font-size: 34px; font-weight: 700; line-height: 1.2; color: var(--teal); }


/* ---------- 10. Overal ---------- */

.dom {
    position: absolute;
    width: 520px;
    height: 230px;
    padding: 32px 36px;
    border-radius: 22px;
    background: var(--card);
    border: 1px solid var(--line);
}

.dom b { display: block; font-size: 34px; font-weight: 700; }
.dom p { margin-top: 10px; font-size: 24px; color: var(--soft); }
.dom .tag { position: absolute; left: 36px; bottom: 32px; }

/* ---------- 11. Afsluiter ---------- */

.logo { position: absolute; left: 760px; top: 150px; width: 400px; }
.end-title { position: absolute; left: 0; right: 0; top: 330px; text-align: center; font-size: 100px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.end-sub { position: absolute; left: 0; right: 0; top: 580px; text-align: center; font-size: 40px; font-weight: 500; color: #bfdbfe; }
.end-q { position: absolute; left: 0; right: 0; top: 720px; text-align: center; font-size: 30px; color: var(--mute); }

.cta {
    position: absolute;
    left: 660px;
    top: 790px;
    width: 600px;
    padding: 24px 0;
    border-radius: 14px;
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: var(--blue6);
    box-shadow: 0 20px 50px rgba(37, 99, 235, .4);
}

.cta:hover { background: #1d4ed8; }

/* ---------- Controls ---------- */

/* Hidden in embed mode, where the homepage thumbnail draws its own play button */
.big-play {
    position: fixed;
    left: 50%;
    top: 50%;
    width: clamp(64px, 14vmin, 140px);
    aspect-ratio: 1;
    translate: -50% -50%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(37, 99, 235, .92);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
    fill: #fff;
    opacity: 0;
    scale: .8;
    pointer-events: none;
    transition: opacity .25s, scale .25s;
}

.big-play svg { width: 42%; margin-left: 8%; }
.paused:not(.embed) .big-play { opacity: 1; scale: 1; }

.stage { transition: filter .25s; }
.paused:not(.embed) .stage { filter: brightness(.6); }

.ui {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .55));
    transition: opacity .4s;
}

.idle .ui, .embed .ui { opacity: 0; pointer-events: none; }
.idle { cursor: none; }

.pp {
    flex: none;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    fill: #fff;
    cursor: pointer;
}

.pp svg { width: 100%; height: 100%; }
.i-play, .paused .i-pause { display: none; }
.paused .i-play { display: block; }

.track { position: relative; flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .2); cursor: pointer; }
.track::before { content: ''; position: absolute; inset: -10px 0; }
.fill { height: 100%; width: 0; border-radius: 3px; background: var(--blue); }
.tick { position: absolute; top: -3px; width: 2px; height: 12px; background: rgba(255, 255, 255, .5); }

.time { flex: none; min-width: 90px; font-size: 14px; color: var(--soft); font-variant-numeric: tabular-nums; }
