/* ---------- Self-hosted fonts ---------- */
@font-face {
	font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
	src: url('../fonts/kb-space-grotesk-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
	src: url('../fonts/kb-space-grotesk-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Roboto Mono'; font-style: normal; font-weight: 100 700; font-display: swap;
	src: url('../fonts/kb-roboto-mono-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Roboto Mono'; font-style: normal; font-weight: 100 700; font-display: swap;
	src: url('../fonts/kb-roboto-mono-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Base ---------- */
html, body { background-color: #000; color: #fff; }
body { font-family: 'Roboto Mono', monospace; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: #fff; color: #000; }
a { color: inherit; text-decoration: none; }

/* Header: hidden while scrolling down (toggled by site.js) */
.kb-header-hidden header.e-flexbox,
.kb-header-hidden .elementor-location-header header { transform: translateY(-120%); }

/* ---------- Rich text ---------- */
.elementor strong, .elementor b { color: #fff; font-weight: 600; }
.elementor a.e-paragraph-link-base:hover, .elementor p a:hover { color: #a3a3a3; }

/* ---------- Header: hide while scrolling down ---------- */
.elementor-location-header .e-con { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.kb-header-hidden .elementor-location-header .e-con { transform: translateY(-140%); }

/* ---------- Ticker / marquee ("More Works — See Also") ---------- */
@keyframes kb-marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
.ticker-track { animation: kb-marquee 28s linear infinite; will-change: transform; }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- Project cards: hover zoom + tint ---------- */
.card .card-img { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-img { transform: scale(1.05); }
.card .card-shade { transition: opacity .5s ease, background .5s ease; }
.card:hover .card-shade { background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.9) 100%); height: 100%; }

/* ---------- Images: film grain + scroll zoom (scale set by site.js) ---------- */
.media-frame { isolation: isolate; }
.media-frame > img { transform: scale(var(--kb-zoom, 1)); transform-origin: 50% 50%; will-change: transform; }
.media-frame::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
	opacity: .14; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Custom cursor ---------- */
.kb-cursor {
	position: fixed; top: 0; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px;
	border-radius: 50%; background: #fff; mix-blend-mode: difference; pointer-events: none; z-index: 100000;
	transition: width .25s ease, height .25s ease, margin .25s ease, opacity .25s ease; opacity: 0;
}
.kb-cursor.is-visible { opacity: 1; }
.kb-cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
@media (hover: none) { .kb-cursor { display: none; } }

/* ---------- Menu popup ---------- */
.elementor-popup-modal .dialog-widget-content { background: #141414 !important; box-shadow: none !important; }
.elementor-popup-modal .dialog-close-button { top: 34px; right: 40px; }

@media (prefers-reduced-motion: reduce) {
	.ticker-track { animation: none; }
	.media-frame > img { transform: none !important; }
}

/* ---------- FAQ accordion: icon slot defaults to 200px wide → keep it tight ---------- */
.faq-item .e-accordion-item-title-base { flex: 1 1 auto; min-width: 0; }
.faq-item .e-accordion-item-icon-base { width: auto; min-width: 0; flex: 0 0 auto; margin-left: 20px; }
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

/* ---------- Case study KPI icons (same three icons on every project, like on Framer) ---------- */
.kpi::before {
	content: ""; display: block; width: 40px; height: 40px; margin: 0 auto 14px;
	background: center / contain no-repeat;
}
.kpi:nth-child(1)::before { background-image: url("../icons/kb-kpi-1.svg"); }
.kpi:nth-child(2)::before { background-image: url("../icons/kb-kpi-2.svg"); }
.kpi:nth-child(3)::before { background-image: url("../icons/kb-kpi-3.svg"); }
@media (max-width: 809px) { .kpi::before { width: 32px; height: 32px; margin-bottom: 10px; } }

/* ---------- Education tiles (About): small blue icon badge ---------- */
.tile:has(> .t-h4)::before {
	content: ""; position: absolute; top: 36px; left: 36px; width: 32px; height: 32px;
	background: #0c2438 center / 20px 20px no-repeat;
	clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.tile:has(> .t-h4):nth-child(1)::before { background-image: url("../icons/kb-edu-1.svg"); }
.tile:has(> .t-h4):nth-child(2)::before { background-image: url("../icons/kb-edu-2.svg"); }
.tile:has(> .t-h4):nth-child(3)::before { background-image: url("../icons/kb-edu-3.svg"); }

/* ---------- Headline reveal (only when JS runs; see site.js) ---------- */
.kb-js .kb-reveal { clip-path: inset(0 0 100% 0); transform: translateY(40px); transition: clip-path 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.kb-js .kb-reveal.is-in { clip-path: inset(0 0 -10% 0); transform: none; }
@media (prefers-reduced-motion: reduce) { .kb-js .kb-reveal { clip-path: none; transform: none; } }

/* ================= v1.6 (29.09.2026) – Framer 1512px comparison ================= */

/* Elementor sets .e-con::before to position:absolute → KPI icon would sit top-left instead of above the text. */
.kpi::before { position: static !important; }
@media (max-width: 809px) { .tile:has(> .t-h4)::before { top: 20px; left: 20px; } }

/* Film grain on tool / language / education tiles (Framer has it on all tiles). */
.tile::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
	opacity: .12; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Home "Skillset": images wipe in from the left when the row scrolls into view (see site.js). */
.kb-js .skill-row .media-frame { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s cubic-bezier(.2,.7,.2,1); }
.kb-js .skill-row .media-frame.is-in { clip-path: inset(0 0 0 0); }
.kb-js .skill-row .media-frame > img { transform: scale(1.1); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.kb-js .skill-row .media-frame.is-in > img { transform: scale(1); }

/* About: "Education & Languages" section grows from 95 % to 100 % while scrolling in (scale set by site.js). */
[data-id="2100ffb8"] { transform: scale(var(--kb-grow, 1)); transform-origin: 50% 0; }

/* About: the CTA component uses a narrow portrait crop on Framer (325 × 486 instead of 583 × 486). */
/* Mobile (< 810px) keeps the component's own 254 × 380 crop. */
@media (min-width: 810px) {
	body.page-id-35 .e-586eaa42-6d78 { width: 325px; aspect-ratio: 325 / 486; }
}

/* Work + case studies: Framer footer variant with 76px side padding and a smaller wordmark. */
@media (min-width: 1025px) {
	body.page-id-36 .e-4001c086-2176, body.parent-pageid-36 .e-4001c086-2176 { padding-inline: 76px; }
	body.page-id-36 .e-1e743291-a216, body.parent-pageid-36 .e-1e743291-a216 { font-size: 13.89vw; line-height: .81em; }
}

@media (prefers-reduced-motion: reduce) {
	.kb-js .skill-row .media-frame, .kb-js .skill-row .media-frame > img { clip-path: none; transform: none; transition: none; }
	[data-id="2100ffb8"] { transform: none; }
}

/* ================= v1.7 (29.09.2026) ================= */
/* Page-load intro (see site.js #8): start 60–160px offset + transparent, spring-like ease into place. */
.kb-in { opacity: 0; transform: translate3d(0, var(--kb-in-y, 60px), 0); }
.kb-in.kb-in-go {
	opacity: 1; transform: none;
	transition: transform 1.1s cubic-bezier(.22,1,.36,1) var(--kb-in-d, 0s), opacity .8s ease var(--kb-in-d, 0s);
}
.kb-line { display: block; overflow: hidden; padding-block: .04em; margin-block: -.04em; }
.kb-line > span { display: block; }

/* Framer ≥ 1920px breakpoint (Elementor has no widescreen breakpoint here):
   project cards 680 high, Home sticky images (portrait + statement) 895 high. */
@media (min-width: 1920px) {
	.elementor .card, .elementor .frame-wide:has(.card), .elementor .frame-square:has(.card) { height: 680px; }
	.elementor [data-id="1d1a77de"], .elementor [data-id="5536f59f"] { height: 895px; }
	/* Case studies: right text/image column 1156 wide (Framer), instead of 700. */
	.elementor div.cs-row { grid-template-columns: 1fr 1156px; }
}

/* Case studies: "More Works" card frames only had desktop (560) + mobile (340) heights → tablet like Framer. */
@media (min-width: 810px) and (max-width: 1439px) {
	.elementor .frame-wide:has(.card) { height: 340px; }
}

/* Impressum + Datenschutz: visible inline links and a little air around lists. */
body.page-id-592 .t-body-sm a, body.page-id-593 .t-body-sm a { color: var(--color-white, #fff); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; word-break: break-word; }
body.page-id-593 .t-body-sm ul, body.page-id-593 .t-body-sm ol { margin: 8px 0 16px; padding-inline-start: 1.4em; }
body.page-id-593 .t-body-sm li ul { margin: 4px 0 4px; }
