/* AI Ninjas × IT-Einkauf: full-screen presentation in the Otto Group design.
   One 1920 × 1080 stage, scaled to the screen; Optimist, Otto Group red for
   accents, sand and white grounds, aubergine for the opening and closing. */

@font-face { font-family: "Optimist"; src: url("../assets/fonts/Optimist-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Optimist"; src: url("../assets/fonts/Optimist-RegularContrast.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Optimist"; src: url("../assets/fonts/Optimist-SemiBoldContrast.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --red: #f00020; --ink: #191919; --grey: #5b5b5b; --line: rgb(25 25 25 / 0.14);
  --sand: #f5f0e1; --aubergine: #4b3666; --green: #00483c; --yellow: #fff59b; --lilac: #e7daf9; --salmon: #ffd2c8;
  --ease: cubic-bezier(0.2, 0, 0, 1); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --surround: #120d18;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--surround); overflow: hidden; }
body { font-family: "Optimist", "Helvetica Neue", Arial, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; font-synthesis: none; }
button { font: inherit; color: inherit; }
img { display: block; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }

/* ---------- stage: 1920 × 1080, scaled by app.js */
#viewport { position: fixed; inset: 0; display: grid; place-items: center; }
#stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: 0 0; }
.slide { position: absolute; inset: 0; overflow: hidden; background: #fff; color: var(--ink); text-align: left; letter-spacing: normal; text-transform: none; visibility: hidden; opacity: 0; transition: opacity 600ms var(--ease), visibility 0s linear 600ms; }
.slide.is-active { visibility: visible; opacity: 1; transition: opacity 600ms var(--ease), visibility 0s; z-index: 2; }
.slide .notes { display: none; }
.slide.sand { background: var(--sand); }
.slide.dark { background: var(--aubergine); color: #fff; }

/* entrance: everything marked [data-in] rises in, staggered by --d */
.slide [data-in] { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--d, 0) * 90ms + 150ms); }
.slide.is-active [data-in] { opacity: 1; transform: none; }
.slide [data-in="left"] { transform: translateX(-48px); }
.slide [data-in="scale"] { transform: scale(1.06); transition-duration: 700ms, 1600ms; }
.slide.is-active [data-in="left"], .slide.is-active [data-in="scale"] { transform: none; }
/* build steps: revealed one by one with → */
.slide [data-step] { opacity: 0; transform: translateY(20px); transition: opacity 500ms var(--ease), transform 700ms var(--ease); }
.slide [data-step].is-shown { opacity: 1; transform: none; }

/* ---------- type */
.eyebrow { font-size: 22px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
/* vertical rhythm: eyebrow 36 → headline 36 → sub, sub 56 → content */
.eyebrow + .h1, .eyebrow + .h2, .eyebrow + blockquote { margin-top: 36px; }
.h2 + .sub, .h1 + .sub { margin-top: 36px; }
.dark .eyebrow { color: rgb(255 255 255 / 0.8); }
.h1 { font-size: 132px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.h1 .light, .h2 .light { font-weight: 300; }
.h2 { font-size: 76px; line-height: 1.06; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
.sub { font-size: 34px; line-height: 1.35; font-weight: 400; color: var(--grey); max-width: 1000px; }
.dark .sub { color: rgb(255 255 255 / 0.82); }
.red { color: var(--red); }

/* ---------- frame: content area and the footer from the master */
.pad { position: absolute; inset: 104px 128px 160px; }
.foot { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 128px; border-top: 2px solid var(--red); font-size: 18px; color: var(--grey); z-index: 5; background: inherit; }
.foot .logo { height: 42px; width: auto; }
.foot .num { justify-self: end; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.dark .foot, .photo-foot .foot { border-top-color: transparent; color: rgb(255 255 255 / 0.75); background: none; }
.dark .foot .logo, .photo-foot .foot .logo { filter: brightness(0) invert(1); }
.dark .foot .num { color: #fff; }

/* photo edge to edge on one side */
.photo { position: absolute; top: 0; bottom: 96px; overflow: hidden; }
.photo.right { right: 0; }
.photo.left { left: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.round { border-radius: 40px; }

/* ---------- 1 title */
.s-title .photo { width: 900px; bottom: 0; }
.s-title .photo img { object-position: 72% 50%; }
.s-title .pad { top: 220px; right: 990px; display: flex; flex-direction: column; justify-content: center; }
.s-title .h1 { font-size: 104px; margin: 32px 0 40px; }
.s-title .mark { position: absolute; left: 128px; top: 96px; width: 44px; fill: #fff; }
.s-title .foot { grid-template-columns: 1fr auto 1fr; right: 900px; }

/* ---------- 2 agenda */
.agenda { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 112px; }
.agenda button { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 18px; padding: 36px 32px 40px; border-radius: 40px; min-height: 420px; transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.agenda button:hover, .agenda button:focus-visible { transform: translateY(-10px); box-shadow: 0 28px 60px rgb(0 0 0 / 0.12); }
.agenda .no { font-size: 120px; font-weight: 300; line-height: 1; }
.agenda h3 { font-size: 40px; font-weight: 600; line-height: 1.1; margin-top: auto; }
.agenda p { font-size: 24px; line-height: 1.35; }
.agenda .go { font-size: 20px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.t-lilac { background: var(--lilac); } .t-yellow { background: var(--yellow); } .t-salmon { background: var(--salmon); }
.t-green { background: var(--green); color: #fff; } .t-aub { background: var(--aubergine); color: #fff; }

/* ---------- 3 journey */
.s-journey .photo { width: 700px; top: 104px; bottom: auto; height: 470px; right: 128px; border-radius: 40px; }
.journey { position: absolute; left: 128px; right: 128px; bottom: 170px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.journey::before { content: ""; position: absolute; left: 30px; right: 0; top: 30px; height: 3px; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1800ms var(--ease-in-out) 500ms; }
.s-journey.is-active .journey::before { transform: scaleX(1); }
.journey li { position: relative; padding-top: 96px; }
.journey .dot { position: absolute; top: 0; left: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--red); color: var(--red); font-size: 26px; font-weight: 600; }
.journey li.is-shown .dot { background: var(--red); color: #fff; transition: background-color 400ms var(--ease) 200ms, color 400ms 200ms; }
.journey h3 { font-size: 44px; font-weight: 600; }
.journey p { margin-top: 12px; font-size: 26px; line-height: 1.35; color: var(--grey); max-width: 360px; }

/* ---------- 4 process landscape */
.s-land .photo { width: 820px; }
.s-land .pad { right: 900px; }
.patterns { margin-top: 44px; display: grid; gap: 0; }
.patterns li { display: flex; align-items: center; gap: 24px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 30px; }
.patterns li:last-child { border-bottom: 1px solid var(--line); }
.patterns svg { width: 34px; height: 34px; flex: none; stroke: var(--red); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 5 prioritisation matrix */
.s-prio .pad { right: 1030px; }
.s-prio .h2 { font-size: 62px; }
.matrix { position: absolute; right: 128px; top: 104px; width: 860px; height: 780px; }
.matrix .plane { position: absolute; inset: 0 0 64px 64px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background:
  linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat, linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat; }
.matrix .zone { position: absolute; right: 0; top: 0; width: 50%; height: 50%; background: color-mix(in srgb, var(--salmon) 55%, transparent); border-radius: 0 0 0 40px; opacity: 0; transition: opacity 800ms var(--ease) 1200ms; }
.s-prio.is-active .matrix .zone { opacity: 1; }
.matrix .ax { position: absolute; font-size: 20px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.matrix .ax.x { left: 64px; right: 0; bottom: 18px; text-align: right; }
.matrix .ax.y { left: 0; top: 0; writing-mode: vertical-rl; transform: rotate(180deg); height: calc(100% - 64px); text-align: right; }
.matrix .pt { position: absolute; left: calc(64px + var(--x) * (100% - 64px) / 100); bottom: calc(64px + var(--y) * (100% - 64px) / 100); width: 26px; height: 26px; margin: 0 0 -13px -13px; border-radius: 50%; background: #c9c3cf; transform: scale(0); transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1); transition-delay: calc(var(--i) * 70ms + 300ms); }
.s-prio.is-active .matrix .pt { transform: scale(1); }
.matrix .pt.hit { width: 34px; height: 34px; margin: 0 0 -17px -17px; background: var(--red); box-shadow: 0 0 0 10px rgb(240 0 32 / 0.14); transition-delay: calc(var(--i) * 70ms + 1500ms); }
.matrix .pt.hit span { position: absolute; left: 48px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 24px; font-weight: 600; color: var(--ink); background: #fff; padding: 6px 14px; border-radius: 999px; box-shadow: 0 6px 20px rgb(0 0 0 / 0.08); }
.matrix .pt.hit.lab-left span { left: auto; right: 48px; }
.matrix .note { position: absolute; left: 64px; top: -44px; font-size: 18px; color: var(--grey); }
.votes { margin-top: 56px; display: flex; gap: 14px; align-items: center; font-size: 26px; color: var(--grey); }
.votes i { width: 30px; height: 30px; border-radius: 50%; background: var(--red); display: inline-block; animation: vote 2.4s var(--ease) infinite; }
.votes i:nth-child(2) { animation-delay: 0.2s; } .votes i:nth-child(3) { animation-delay: 0.4s; }
@keyframes vote { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.25); } }

/* ---------- 6 feasibility check cards */
.checks { margin-top: 80px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.check { all: unset; cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 20px; min-height: 470px; padding: 40px 36px; border-radius: 40px; transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.check:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgb(0 0 0 / 0.1); }
.check .no { font-size: 26px; font-weight: 600; letter-spacing: 0.1em; }
.check h3 { font-size: 46px; font-weight: 600; line-height: 1.05; }
.check p { font-size: 27px; line-height: 1.35; margin-top: auto; }
.check .tick { position: absolute; right: 32px; top: 32px; width: 64px; height: 64px; border-radius: 50%; border: 3px solid currentColor; opacity: 0.35; display: grid; place-items: center; transition: opacity 200ms, background-color 300ms var(--ease), border-color 300ms; }
.check .tick svg { width: 32px; height: 32px; stroke: #fff; stroke-width: 3.5; fill: none; stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset 400ms var(--ease) 100ms; }
.check[aria-pressed="true"] .tick { opacity: 1; background: var(--red); border-color: var(--red); }
.check[aria-pressed="true"] .tick svg { stroke-dashoffset: 0; }
.verdict { position: absolute; left: 128px; bottom: 150px; display: flex; align-items: center; gap: 20px; font-size: 32px; font-weight: 600; opacity: 0; transform: translateY(12px); transition: opacity 400ms var(--ease), transform 500ms var(--ease); }
.verdict.on { opacity: 1; transform: none; }
.verdict b { display: inline-block; padding: 10px 24px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 600; }
.hint { font-size: 22px; color: var(--grey); }

/* ---------- 7 tools: four picture cards */
.tools { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.tool { position: relative; margin: 0; display: flex; flex-direction: column; border-radius: 32px; background: #fff; overflow: hidden; transition: transform 400ms var(--ease), box-shadow 400ms var(--ease); }
.tool:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgb(75 54 102 / 0.14); }
.tool .pic { aspect-ratio: 16 / 10; overflow: hidden; }
.tool .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.tool:hover .pic img { transform: scale(1.06); }
.tool h3 { margin: 24px 32px 0; font-size: 38px; font-weight: 600; }
.tool p { margin: 10px 32px 30px; font-size: 24px; line-height: 1.35; color: var(--grey); }
.tool .fit { position: absolute; left: 24px; top: 24px; padding: 8px 16px; border-radius: 999px; background: rgb(255 255 255 / 0.92); font-size: 19px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }

/* ---------- 8 funnel to the four use cases */
.flow { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.flow li { position: relative; padding: 26px 32px 28px 40px; background: var(--ink); color: #fff; clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 50%, calc(100% - 36px) 100%, 0 100%, 36px 50%); margin-right: -20px; }
.flow li:first-child { clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 50%, calc(100% - 36px) 100%, 0 100%); }
.flow li:nth-child(2) { background: #3a3a3a; } .flow li:nth-child(3) { background: #5a5a5a; } .flow li:nth-child(4) { background: var(--red); }
.flow .k { font-size: 20px; font-weight: 600; letter-spacing: 0.14em; opacity: 0.75; }
.flow .v { font-size: 34px; font-weight: 600; margin-top: 4px; padding-left: 20px; }
.cases { margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.case { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 14px; padding: 34px 32px; border-radius: 32px; background: var(--sand); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), background-color 300ms; min-height: 300px; }
.case:hover, .case:focus-visible { transform: translateY(-10px); box-shadow: 0 30px 60px rgb(0 0 0 / 0.12); }
.case .no { font-size: 64px; font-weight: 300; color: var(--red); line-height: 1; }
.case h3 { font-size: 38px; font-weight: 600; line-height: 1.1; }
.case .toolchip { margin-top: auto; align-self: flex-start; font-size: 21px; font-weight: 600; padding: 8px 18px; border-radius: 999px; background: #fff; }
.case .more { font-size: 19px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); opacity: 0; transition: opacity 200ms; }
.case:hover .more { opacity: 1; }

/* ---------- 9–12 use case */
.s-case .photo { width: 760px; left: 0; right: auto; }
.s-case .pad { left: 860px; }
.s-case .bignum { font-size: 190px; font-weight: 300; line-height: 0.8; color: var(--red); letter-spacing: -0.03em; }
.s-case .kicker { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.s-case .kicker h3 { font-size: 44px; font-weight: 600; }
.s-case .kicker .toolchip { font-size: 22px; font-weight: 600; padding: 8px 18px; border-radius: 999px; background: var(--lilac); }
.s-case .h2 { font-size: 64px; margin-top: 28px; }
.steps { margin-top: 44px; display: grid; gap: 4px; position: relative; }
.steps li { position: relative; display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 20px; padding: 12px 0; font-size: 28px; }
.steps li::before { content: counter(st); counter-increment: st; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 600; background: var(--sand); color: var(--ink); transition: background-color 300ms var(--ease), color 300ms, transform 300ms var(--ease); }
.steps { counter-reset: st; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 58px; width: 2px; height: calc(100% - 36px); background: var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tags span { font-size: 21px; font-weight: 600; padding: 8px 18px; border-radius: 999px; background: var(--sand); }
.tags span.open { background: #fff2cc; color: #7a5200; }
.tags span.open::before { content: "● "; color: #e0a100; }
.tags span.key { background: color-mix(in srgb, var(--green) 12%, #fff); color: var(--green); }
.callout { margin-top: 34px; padding: 26px 32px; border-radius: 28px; background: var(--ink); color: #fff; font-size: 27px; line-height: 1.35; max-width: 880px; }
.callout b { color: var(--salmon); font-weight: 600; }

/* ---------- 13 learnings tiles */
.tiles4 { margin-top: 80px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.tiles4 li { border-radius: 40px; padding: 16px 16px 40px; min-height: 560px; display: flex; flex-direction: column; }
.tiles4 .pic { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; }
.tiles4 .pic img { width: 100%; height: 100%; object-fit: cover; }
.tiles4 h3, .tiles4 p { padding: 0 22px; }
.tiles4 .ico { width: 72px; height: 72px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tiles4 h3 { margin-top: 32px; font-size: 44px; font-weight: 600; line-height: 1.05; }
.tiles4 p { margin-top: 16px; font-size: 27px; line-height: 1.35; }

/* ---------- 14 closing */
.s-end .photo { width: 820px; bottom: 0; }
.s-end .pad { right: 900px; display: flex; flex-direction: column; justify-content: center; }
.s-end blockquote { font-size: 76px; line-height: 1.05; font-weight: 300; letter-spacing: -0.015em; margin-top: 40px; }
.s-end blockquote b { font-weight: 600; display: block; margin-top: 24px; }
.s-end .mark { width: 60px; fill: #fff; }
.s-end .foot { right: 820px; }

/* ---------- intro: the Superzeichen draws itself, the wordmark follows */
#intro { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--sand); transition: clip-path 900ms var(--ease-in-out); clip-path: inset(0 0 0 0); }
#intro.out { clip-path: inset(0 0 100% 0); }
#intro .lock { display: flex; flex-direction: column; align-items: center; gap: 48px; }
#intro svg { width: 120px; height: 192px; overflow: visible; }
#intro path { fill: transparent; stroke: var(--red); stroke-width: 7; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1500ms var(--ease-in-out) 200ms forwards, fill 500ms var(--ease) 1500ms forwards; }
#intro .wm { width: 340px; opacity: 0; transform: translateY(16px); animation: rise 700ms var(--ease) 1700ms forwards; }
#intro .line { font-size: 20px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--grey); opacity: 0; animation: rise 700ms var(--ease) 2000ms forwards; }
#intro .skip { position: absolute; bottom: 40px; font-size: 16px; color: var(--grey); opacity: 0.7; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill { to { fill: var(--red); stroke-width: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- control bar */
/* dock: a light panel with every slide as a small preview, above the footer;
   it appears when the pointer nears the bottom, so the footer stays visible */
#bar { position: fixed; left: 50%; bottom: var(--dock-b, 96px); z-index: 30; display: flex; align-items: center; gap: 6px; max-width: calc(100vw - 32px); padding: 10px 12px; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 18px 50px rgb(75 54 102 / 0.2), 0 0 0 1px rgb(75 54 102 / 0.06); font-size: 13px; opacity: 0; transform: translate(-50%, 14px); pointer-events: none; transition: opacity 300ms var(--ease), transform 400ms var(--ease); }
body.dock-on #bar, #bar:focus-within { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
body.idle #bar { opacity: 0; transform: translate(-50%, 14px); pointer-events: none; }
body.idle { cursor: none; }
#bar button { all: unset; cursor: pointer; flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--grey); transition: background-color 150ms, color 150ms; }
#bar button:hover, #bar button:focus-visible { background: var(--sand); color: var(--ink); }
#bar button[aria-pressed="true"] { background: var(--red); color: #fff; }
#bar svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#bar .sep { flex: none; width: 1px; height: 40px; background: var(--line); margin: 0 6px; }
.rail { display: flex; align-items: flex-end; gap: 14px; padding: 0 6px; min-width: 0; }
.rail .chap { display: flex; flex-direction: column; gap: 6px; }
.rail .chap { flex: none; }
.rail .chap > p { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); white-space: nowrap; }
.rail .chap > p b { color: var(--red); margin-right: 6px; }
.rail .chap > div { display: flex; gap: 4px; }
#bar .rail .seg { all: unset; cursor: pointer; position: relative; flex: none; width: var(--tw, 88px); aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--sand); box-shadow: 0 0 0 1px var(--line); transition: transform 200ms var(--ease), box-shadow 200ms; }
#bar .rail .seg .mini { position: absolute; inset: 0; pointer-events: none; }
#bar .rail .seg .mini > .slide { transform-origin: 0 0; }
#bar .rail .seg:hover { transform: translateY(-3px); }
#bar .rail .seg.now { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red); }
#bar .rail .seg::after { content: ""; position: absolute; inset: 0; background: rgb(255 255 255 / 0.35); transition: opacity 200ms; }
#bar .rail .seg.past::after, .rail .seg.now::after, .rail .seg:hover::after { opacity: 0; }
#tip { position: fixed; z-index: 40; pointer-events: none; width: 288px; padding: 8px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 20px 40px rgb(75 54 102 / 0.22); opacity: 0; transform: translateY(6px); transition: opacity 150ms, transform 200ms var(--ease); }
#tip.on { opacity: 1; transform: none; }
#tip .mini { width: 272px; height: 153px; border-radius: 8px; overflow: hidden; position: relative; background: #fff; }
#tip > p { margin: 8px 4px 2px; font-size: 13px; line-height: 1.3; }
#tip > p small { display: block; color: var(--grey); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
.foot .ch { margin-left: 28px; color: var(--ink); font-weight: 600; }
.foot .ch b { color: var(--red); margin-right: 10px; }
.dark .foot .ch, .photo-foot .foot .ch { color: #fff; }
.dark .foot .ch b { color: var(--salmon); }

/* mini slides (overview, tooltip, presenter): a scaled copy of the stage */
.mini .slide { visibility: visible; opacity: 1; transition: none; width: 1920px; height: 1080px; transform-origin: 0 0; }
.mini .slide [data-in], .mini .slide [data-step] { opacity: 1; transform: none; transition: none; }
.mini .slide .journey::before, .mini .matrix .pt, .mini .matrix .zone { transform: none; opacity: 1; transition: none; }

/* ---------- overview */
#overview { position: fixed; inset: 0; z-index: 50; overflow: auto; background: rgb(18 13 24 / 0.94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); padding: 72px 64px 120px; color: #fff; opacity: 0; transition: opacity 250ms var(--ease); }
#overview.on { opacity: 1; }
#overview > h2 { font-size: 15px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.6; margin: 40px 0 16px; }
#overview > h2:first-of-type { margin-top: 0; }
#overview .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 36px; }
#overview > .head p { font-size: 28px; font-weight: 600; }
#overview > .head span { font-size: 14px; opacity: 0.6; }
#overview > .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 24px; }
#overview > .grid > button { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 10px; }
#overview > .grid > button > .mini { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1); transition: transform 250ms var(--ease), box-shadow 250ms var(--ease); }
#overview > .grid > button:hover > .mini, #overview > .grid > button:focus-visible > .mini { transform: translateY(-6px); box-shadow: 0 0 0 3px #fff, 0 24px 50px rgb(0 0 0 / 0.5); }
#overview > .grid > button.now > .mini { box-shadow: 0 0 0 3px var(--red); }
#overview > .grid > button > .cap { display: flex; gap: 10px; font-size: 15px; line-height: 1.3; }
#overview .cap > b { font-variant-numeric: tabular-nums; opacity: 0.5; font-weight: 600; }

/* ---------- help, laser, blackout, toast */
#help { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; background: rgb(18 13 24 / 0.7); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
#help[hidden], #overview[hidden] { display: none; }
#help .card { width: min(720px, 92vw); padding: 40px 44px; border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 40px 80px rgb(0 0 0 / 0.4); }
#help h2 { font-size: 30px; font-weight: 600; margin-bottom: 24px; }
#help dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; margin: 0; font-size: 17px; }
#help dt { display: flex; gap: 6px; }
#help kbd { font: 600 14px/1 "Optimist", sans-serif; min-width: 30px; padding: 7px 9px; border-radius: 8px; background: var(--sand); text-align: center; box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.1); }
#help dd { margin: 0; color: var(--grey); align-self: center; }
#laser { position: fixed; z-index: 45; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgb(240 0 32 / 0.25), 0 0 30px 10px rgb(240 0 32 / 0.5); pointer-events: none; opacity: 0; transition: opacity 150ms; }
body.laser #laser { opacity: 1; }
body.laser, body.laser * { cursor: none !important; }
.trail { position: fixed; z-index: 44; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--red); pointer-events: none; opacity: 0; }
body.laser .trail { opacity: var(--o); }
#blackout { position: fixed; inset: 0; z-index: 48; display: grid; place-items: center; background: var(--aubergine); opacity: 0; pointer-events: none; transition: opacity 400ms var(--ease); }
#blackout.on { opacity: 1; pointer-events: auto; }
#blackout svg { width: 70px; fill: #fff; opacity: 0.9; }
#toast { position: fixed; z-index: 58; left: 50%; top: 24px; transform: translate(-50%, -12px); padding: 12px 20px; border-radius: 999px; background: rgb(22 16 28 / 0.9); color: #fff; font-size: 15px; opacity: 0; transition: opacity 200ms, transform 300ms var(--ease); pointer-events: none; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- presenter view (?presenter) */
body.presenter { background: #0f0b13; color: #fff; overflow: auto; }
body.presenter #viewport, body.presenter #bar, body.presenter #chapter, body.presenter #intro { display: none; }
#presenter { display: none; }
body.presenter #presenter { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: auto 1fr auto; gap: 20px; height: 100vh; padding: 24px; }
#presenter .now, #presenter .next { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #fff; }
#presenter .next { opacity: 0.85; }
#presenter .lbl { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.55; margin-bottom: 8px; }
#presenter .notes-box { grid-column: 1 / -1; overflow: auto; padding: 24px 28px; border-radius: 14px; background: #1c1622; font-size: 22px; line-height: 1.5; }
#presenter .notes-box h3 { font-size: 26px; font-weight: 600; margin-bottom: 10px; }
#presenter .clock { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; font-variant-numeric: tabular-nums; }
#presenter .clock .t { font-size: 44px; font-weight: 600; }
#presenter .clock .c { font-size: 20px; opacity: 0.6; }
#presenter .clock button { all: unset; cursor: pointer; padding: 10px 18px; border-radius: 999px; background: #2a2231; font-size: 15px; }
#presenter .clock button:hover { background: var(--red); }
#presenter .clock .pos { margin-left: auto; font-size: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0s !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
}

/* tile colours win over the button reset */
:is(.agenda, .checks, .tiles4) .t-lilac { background: var(--lilac); }
:is(.agenda, .checks, .tiles4) .t-yellow { background: var(--yellow); }
:is(.agenda, .checks, .tiles4) .t-salmon { background: var(--salmon); }
:is(.agenda, .checks, .tiles4) .t-green { background: var(--green); color: #fff; }


/* ---------- 13 before / after */
.seg-tabs { margin-top: 56px; display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--sand); }
.seg-tabs button { all: unset; cursor: pointer; padding: 16px 30px; border-radius: 999px; font-size: 26px; font-weight: 600; color: var(--grey); transition: background-color 300ms var(--ease), color 300ms; }
.seg-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.seg-tabs button:hover:not([aria-selected="true"]) { color: var(--ink); }
.compare { margin-top: 56px; display: grid; grid-template-columns: 1fr 120px 1fr; align-items: start; }
.compare .col { border-radius: 40px; padding: 40px 44px 44px; min-height: 420px; }
.compare .before { background: #f1efec; }
.compare .after { background: var(--lilac); }
.compare .k { font-size: 22px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.compare .after .k { color: var(--aubergine); }
.compare ol { margin-top: 24px; display: grid; gap: 0; }
.compare li { padding: 18px 0; border-top: 1px solid var(--line); font-size: 30px; line-height: 1.3; opacity: 0; transform: translateY(14px); transition: opacity 450ms var(--ease), transform 600ms var(--ease); transition-delay: calc(var(--k) * 90ms); }
.compare li.in { opacity: 1; transform: none; }
.compare .before li { color: var(--grey); }
.compare .after li { font-weight: 600; }
.compare .arrow { align-self: center; display: grid; place-items: center; }
.compare .arrow svg { width: 72px; height: 72px; stroke: var(--red); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 15 road ahead */
.road { position: relative; margin-top: 96px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 14px, transparent 14px 26px); transform-origin: 0 50%; transform: scaleX(0); transition: transform 2000ms var(--ease-in-out) 300ms; }
.s-next.is-active .road::before { transform: scaleX(1); }
.road > li { position: relative; padding-top: 64px; }
.road > li::before { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.road > li.is-shown::before { background: var(--red); }
.road .k { font-size: 20px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.road h3 { margin-top: 16px; font-size: 42px; font-weight: 600; line-height: 1.1; }
.road p { margin-top: 16px; font-size: 26px; line-height: 1.4; color: var(--grey); }

/* ---------- transitions between slides */
.slide.is-active { animation: slide-in 800ms var(--ease) both; }
.slide.is-leaving { visibility: visible; opacity: 1; z-index: 1; animation: slide-out 700ms var(--ease) both; }
#stage[data-dir="back"] .slide.is-active { animation-name: slide-in-back; }
#stage[data-dir="back"] .slide.is-leaving { animation-name: slide-out-back; }
@keyframes slide-in { from { opacity: 0; transform: translateX(90px); } to { opacity: 1; transform: none; } }
@keyframes slide-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-90px) scale(0.98); } }
@keyframes slide-in-back { from { opacity: 0; transform: translateX(-90px); } to { opacity: 1; transform: none; } }
@keyframes slide-out-back { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(90px) scale(0.98); } }
/* pictures open like a curtain from their edge, then drift slowly */
.slide .photo[data-in], .slide.is-active .photo[data-in] { opacity: 1; transform: none; transition: none; }
.slide.is-active .photo.right { animation: wipe-r 1200ms var(--ease-in-out) both; }
.slide.is-active .photo.left { animation: wipe-l 1200ms var(--ease-in-out) both; }
.slide.is-active .photo img { animation: settle 1600ms var(--ease) both, drift 16s ease-in-out 1600ms infinite alternate; }
@keyframes wipe-r { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipe-l { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.045) translateX(-10px); } }
/* headlines rise word by word from a mask */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w > span { display: inline-block; transform: translateY(108%); transition: transform 900ms var(--ease); transition-delay: calc(var(--wi) * 45ms + 180ms); }
.slide.is-active .w > span { transform: none; }
.mini .w > span, .mini .slide { animation: none !important; transform: none; transition: none; }
.mini .photo, .mini .photo img { animation: none !important; clip-path: none; }
.mini .compare li { opacity: 1; transform: none; transition: none; }
.mini .road::before { transform: none; }
/* chapter change: a short sand curtain with the chapter name */
#chapflash { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; background: var(--aubergine); color: #fff; pointer-events: none; clip-path: inset(100% 0 0 0); }
#chapflash.run { animation: curtain 1150ms var(--ease-in-out) both; }
#chapflash .in { display: flex; align-items: baseline; gap: 3vw; }
#chapflash .no { font-size: 16vw; font-weight: 300; line-height: 1; color: var(--salmon); }
#chapflash .name { font-size: 4.4vw; font-weight: 600; }
#chapflash.run .in { animation: chap-text 1150ms var(--ease) both; }
@keyframes curtain { 0% { clip-path: inset(100% 0 0 0); } 38%, 62% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 100% 0); } }
@keyframes chap-text { 0% { opacity: 0; transform: translateY(40px); } 35%, 65% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-40px); } }
.foot > span:first-child { white-space: nowrap; }
/* the closing slide has a half-width footer: the chapter alone */
.s-end .foot > span:first-child { font-size: 0; }
.s-end .foot .ch { margin-left: 0; font-size: 18px; }

/* ---------- round 3: spacing, crops, fixes */
/* every slide keeps at least 72px between content and the footer rule */
.pad { bottom: 168px; }
/* use cases: a tighter stack that always clears the footer */
.s-case .pad { top: 88px; display: flex; flex-direction: column; }
.s-case .bignum { font-size: 150px; }
.s-case .kicker { margin-top: 24px; }
.s-case .h2 { font-size: 58px; margin-top: 20px; }
.s-case .steps { margin-top: 32px; gap: 0; }
.s-case .steps li { padding: 7px 0; font-size: 27px; }
.s-case .steps li:not(:last-child)::after { top: 51px; height: calc(100% - 44px); }
.s-case .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.s-case .actions .tags { margin-top: 0; }
.s-case .callout { margin-top: 28px; font-size: 25px; padding: 22px 28px; }
/* pictures: each crop set on its subject */
.s-title .photo img { object-position: 74% 50%; }
.s-journey .photo img { object-position: 88% 50%; }
.s-land .photo img { object-position: 94% 50%; }
.s-case .photo img.renewal { object-position: 64% 50%; }
.s-case .photo img.knowledge { object-position: 80% 50%; }
.s-case .photo img.comparison { object-position: 52% 50%; }
.s-case .photo img.project { object-position: 60% 50%; }
.s-end .photo img { object-position: 80% 50%; }
/* 4 patterns: headline on two lines, list clear of the footer */
.s-land .h2 { font-size: 64px; }
.s-land .sub { font-size: 30px; }
/* 5 prioritisation: a legend instead of the bouncing dots */
.legend { margin-top: 48px; display: grid; gap: 16px; font-size: 26px; color: var(--grey); }
.legend li { display: flex; align-items: center; gap: 16px; }
.legend i { width: 22px; height: 22px; border-radius: 50%; background: #c9c3cf; }
.legend i.hit { background: var(--red); box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 18%, transparent); }
/* 6 checks: room between the cards and the verdict */
.checks { margin-top: 64px; }
.check { min-height: 420px; }
.verdict { bottom: 190px; }
/* 8 funnel and cases */
.flow { margin-top: 52px; }
.cases { margin-top: 48px; }
.case { min-height: 250px; }
/* 13 before / after: equal columns, one line per item */
.compare { align-items: stretch; }
.compare .col { min-height: 0; }
.compare li { font-size: 28px; }
/* 15 road: dots centred on the line */
.road > li::before { box-sizing: border-box; }
/* leaving slides keep their built state instead of un-animating */
.slide.is-leaving [data-in], .slide.is-leaving .w > span { transition: none; opacity: 1; transform: none; }
.slide.is-leaving .photo { clip-path: none; }

/* ---------- round 4: customer feedback 2026-09-28 */
/* 1 and 16: the footer runs across the full width; the picture ends above it */
.s-title .photo { bottom: 96px; }
.s-title .foot, .s-end .foot { right: 0; }
.s-end .foot > span:first-child { font-size: 18px; }
.s-end .foot .ch { margin-left: 28px; }
/* real team photographs sit in a rounded frame, never full bleed */
.s-land .photo.round { top: 104px; bottom: auto; right: 128px; width: 760px; height: 560px; border-radius: 40px; }
.s-land .pad { right: 960px; }
.s-land .photo img { object-position: 60% 50%; }
.s-journey .photo img { object-position: 50% 40%; }
.s-end .photo.round { top: 150px; bottom: auto; right: 128px; width: 820px; height: 520px; border-radius: 40px; }
.s-end .photo img { object-position: 50% 45%; }
.s-end .pad { right: 1040px; }
.s-end blockquote { font-size: 68px; }
/* 5: the other ideas, numbered in the matrix and listed on the left */
.s-prio .sub { font-size: 28px; }
.ideas-k { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; font-size: 22px; font-weight: 600; color: var(--grey); }
.ideas-k i { width: 20px; height: 20px; border-radius: 50%; background: #c9c3cf; }
.ideas-k i.hit { background: var(--red); }
.ideas-k i:not(.hit) { margin-left: 24px; }
.ideas { margin-top: 18px; display: grid; gap: 0; counter-reset: idea; }
.ideas li { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 14px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 24px; line-height: 1.25; }
.ideas li:last-child { border-bottom: 1px solid var(--line); }
.ideas li::before { counter-increment: idea; content: counter(idea); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #c9c3cf; color: var(--ink); font-size: 16px; font-weight: 600; }
.matrix .pt.no { width: 34px; height: 34px; margin: 0 0 -17px -17px; display: grid; place-items: center; font-style: normal; font-size: 16px; font-weight: 600; color: var(--ink); }
/* 7: app logos on the tool cards */
.tool .app { position: relative; margin: -44px 0 0 32px; align-self: flex-start; width: 88px; height: 88px; border-radius: 24px; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgb(75 54 102 / 0.16); }
.tool .app img { width: 56px; height: 56px; }
.tool .app-text { white-space: nowrap; font-size: 24px; font-weight: 300; letter-spacing: -0.01em; color: var(--aubergine); }
.tool .app-text b { font-weight: 600; }
.tool .app + h3 { margin-top: 18px; }
/* 12: the SharePoint start step */
.s-case .steps li.start::before { background: var(--red); color: #fff; }
.s-case .steps li.start { font-weight: 600; }
/* 15: three directions as cards with concrete chips */
.road.road3 { grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 72px; }
.road.road3::before { content: none; }
.road3 > li { display: flex; flex-direction: column; min-height: 560px; padding: 44px 44px 48px; border-radius: 40px; background: var(--sand); }
.road3 > li::before { content: none; }
.road3 > li:nth-child(2) { background: var(--lilac); }
.road3 > li:nth-child(3) { background: var(--green); color: #fff; }
.road3 > li:nth-child(3) .k { color: var(--salmon); }
.road3 > li:nth-child(3) p { color: rgb(255 255 255 / 0.85); }
.road3 .k { font-size: 22px; }
.road3 h3 { margin-top: 24px; font-size: 54px; line-height: 1.05; }
.road3 p { margin-top: 20px; font-size: 30px; line-height: 1.35; }
.road3 .chips { margin-top: auto; padding-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.road3 .chips li { padding: 10px 22px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 24px; font-weight: 600; }

/* download link in the dock looks like the other dock buttons */
#bar a[data-act] { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--grey); transition: background-color 150ms, color 150ms; }
#bar a[data-act]:hover, #bar a[data-act]:focus-visible { background: var(--sand); color: var(--ink); outline: none; }

/* ---------- print (?print): one built slide per 1920 × 1080 page */
@page { size: 1920px 1080px; margin: 0; }
body.print { height: auto; overflow: visible; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body.print #viewport { position: static; display: block; }
body.print #stage { position: static; width: 1920px; height: auto; transform: none !important; }
body.print .slide { position: relative; width: 1920px; height: 1080px; visibility: visible; opacity: 1; break-after: page; page-break-after: always; }
body.print .slide:last-child { break-after: auto; page-break-after: auto; }
body.print *, body.print *::before, body.print *::after { animation: none !important; transition: none !important; }
body.print :is([data-in], [data-step], .w > span, .compare li, .matrix .pt, .matrix .zone) { opacity: 1 !important; transform: none !important; }
body.print :is(.journey, .road)::before { transform: none !important; }
body.print .photo { clip-path: none !important; }
body.print :is(#bar, #tip, #chapflash, #intro, #toast, #laser, .trail, #blackout, #presenter) { display: none !important; }
body.print :is(.agenda .go, .case .more, .verdict[data-hint]) { display: none; }
.tiles4 .pic img.time { object-position: 62% 30%; }
.tool .app-text { display: flex; align-items: baseline; justify-content: center; width: auto; min-width: 88px; padding: 0 20px; line-height: 88px; }
