/* Catalog page on top of assets/kit/kit.css: accent, hero studio, category tabs, program cards.
   Colours come from the kit tokens (--ppk-*), so both themes work; only the studio hero keeps its own photograph colours. */
:root{--ppk-accent:#1d5bd0;--ppk-accent-ink:#ffffff;--ppk-tint:#e4edff}
:root[data-theme="dark"]{--ppk-accent:#6ea8ff;--ppk-accent-ink:#071a38;--ppk-tint:#12294d}
@media (prefers-color-scheme:dark){:root:not([data-theme]){--ppk-accent:#6ea8ff;--ppk-accent-ink:#071a38;--ppk-tint:#12294d}}

html{scroll-behavior:smooth;scroll-padding-top:84px}
main.ppk-shell{padding-bottom:8px}
.eyebrow{margin:0 0 6px;color:var(--ppk-accent);font-size:12px;font-weight:750;letter-spacing:.12em;text-transform:uppercase}

/* ---------- section head and controls ---------- */
.catalog-top{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}
.catalog-top h2{margin:0}
.result-count{color:var(--ppk-muted);font-size:14px;font-variant-numeric:tabular-nums}
.catalog-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 18px;margin-bottom:22px}
.catalog-filters{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.filters{display:flex;flex-wrap:wrap;gap:6px}
.filters button{min-height:44px;padding:8px 14px;border:1px solid var(--ppk-line);border-radius:var(--ppk-radius-pill);background:var(--ppk-panel);color:var(--ppk-muted);font-size:14px;font-weight:650;cursor:pointer;transition:border-color .2s,color .2s}
.filters button:hover{border-color:var(--ppk-accent);color:var(--ppk-ink)}
.filters button[aria-pressed="true"]{border-color:var(--ppk-accent);background:var(--ppk-tint);color:var(--ppk-ink)}
.ppk-tabs button{min-height:44px}
.search input{width:260px;max-width:100%;min-height:44px;padding:9px 14px;border:1px solid var(--ppk-line);border-radius:var(--ppk-radius-pill);background:var(--ppk-panel);color:var(--ppk-ink);font:inherit;font-size:16px}
.search input::placeholder{color:var(--ppk-muted);opacity:1}
.search input:focus-visible{border-color:var(--ppk-focus)}

/* ---------- program cards ---------- */
.projects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.project{display:flex;flex-direction:column;min-width:0;padding:24px;border:1px solid var(--ppk-line);border-radius:var(--ppk-radius-l);background:var(--ppk-panel);box-shadow:var(--ppk-shadow);transition:border-color .2s,transform .2s}
.project:hover{border-color:var(--ppk-accent);transform:translateY(-2px)}
.project-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.project-heading>*{min-width:0}
.project-badge{order:2;display:grid;place-items:center;flex:none;width:76px;height:76px;border:1px solid var(--ppk-line);border-radius:20px;background:#e8eef6}
:root[data-theme="dark"] .project-badge{border-color:transparent;background:transparent}
@media (prefers-color-scheme:dark){:root:not([data-theme]) .project-badge{border-color:transparent;background:transparent}}
.project-icon{display:block;width:60px;height:60px;object-fit:contain}
.platform{order:1;color:var(--ppk-muted);font-size:14px;overflow-wrap:anywhere}
.project-title-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.project h2{margin:0;font-size:23px;letter-spacing:-.02em;overflow-wrap:anywhere}
.project h2 a{color:var(--ppk-ink);text-decoration:none}
.project h2 a:hover{color:var(--ppk-accent)}
/* phones: the title link is a finger-sized target (the extra padding is cancelled by the negative margin, the look stays) */
@media(pointer:coarse),(max-width:700px){.project h2 a{display:inline-block;padding:6px 0;margin:-6px 0}}
.project-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0}
.status{display:inline-block;padding:3px 9px;border-radius:7px;background:var(--ppk-ok-bg);color:var(--ppk-ok-fg);font-size:13px;font-weight:700}
.status.preview{background:var(--ppk-warn-bg);color:var(--ppk-warn-fg)}
.status.source{border:1px solid var(--ppk-line);background:var(--ppk-bg);color:var(--ppk-muted)}
.description{flex:1;margin:16px 0;color:var(--ppk-muted);font-size:15px}
.collection-notice{margin:4px 0 14px;padding:8px 12px;border-left:3px solid var(--ppk-accent);border-radius:0 8px 8px 0;background:var(--ppk-tint);color:var(--ppk-ink);font-size:14px;line-height:1.55}
.requirements{margin-bottom:18px;padding-top:12px;border-top:1px solid var(--ppk-line);color:var(--ppk-muted);font-size:14px}
.requirements summary{cursor:pointer;list-style-position:inside}
@media(max-width:700px){.requirements summary{display:flex;align-items:center;min-height:44px;margin-top:-6px}.requirements summary::marker{content:none}.requirements summary::before{content:"\25B8";flex:none;width:1.3em;color:var(--ppk-muted)}.requirements[open] summary::before{content:"\25BE"}}
.requirements p{margin:10px 0 0;overflow-wrap:anywhere}
.actions{display:flex;flex-wrap:wrap;gap:8px}
.project .actions .ppk-btn{min-height:44px;padding:8px 12px;font-size:14px;white-space:normal;overflow-wrap:anywhere;max-width:100%}
.project .actions .ppk-btn-gh::before{width:16px;height:16px}
.actions .support-link{border-color:transparent;background:transparent;color:var(--ppk-muted);font-weight:600;text-decoration:underline;text-underline-offset:4px}
.try-demo{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:8px 12px;border:1px solid #f0be7c;border-radius:10px;background:#fff4e3;color:#974609;font-size:14px;font-weight:700;line-height:1.35;text-decoration:none}
.try-demo:hover{background:#ffe8c5}
.empty{padding:34px;border:1px solid var(--ppk-line);border-radius:var(--ppk-radius-l);background:var(--ppk-panel);color:var(--ppk-muted);text-align:center}
.catalog-note{margin:26px 0 0;font-size:14px}

/* The SVG owns its rounded outline: do not clip the banner image with another CSS radius. */
.demo-feature-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:1100px;margin:22px auto 8px}
.peak-demo-feature{display:block;min-width:0;transition:transform .18s ease}
/* The shadow follows the SVG's rounded outline (drop-shadow); a box-shadow would paint a square behind the corners. */
.peak-demo-feature img{display:block;width:100%;height:auto;border-radius:0;box-shadow:none;filter:drop-shadow(0 8px 14px #37270c14)}
.piano-demo-feature img{filter:drop-shadow(0 8px 14px #0d0f1226)}
.peak-demo-feature:hover,.peak-demo-feature:focus-visible{transform:translateY(-2px)}
/* Phone version of the two banners: real text (the SVG text is 7 px on a 360 px screen). */
.demo-m{display:none}
@media(max-width:760px){
.demo-feature-row{grid-template-columns:1fr;gap:14px}
.peak-demo-feature{--dm-bg:linear-gradient(135deg,#fff8e8,#e5d4b3);--dm-line:#ad8d61;--dm-eyebrow:#9a4a0c;--dm-title:#292820;--dm-sub:#5a4a34;--dm-btn:linear-gradient(#d4600a,#b04403);--dm-btn-ink:#fff;--dm-btn-line:#8f3a04}
.piano-demo-feature{--dm-bg:linear-gradient(135deg,#23262b,#0f1114);--dm-line:#c69c61;--dm-eyebrow:#dfb87c;--dm-title:#f1ece3;--dm-sub:#c5c2bc;--dm-btn:linear-gradient(#e5c38d,#c69c61);--dm-btn-ink:#2a200f;--dm-btn-line:#8f6a2f}
.peak-demo-feature>img{display:none}
.peak-demo-feature{text-decoration:none}.peak-demo-feature .demo-m{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"eyebrow eyebrow" "copy art" "btn btn";gap:12px 14px;align-items:center;padding:18px 16px 16px;border:2px solid var(--dm-line);border-radius:20px;background:var(--dm-bg);box-shadow:0 8px 14px -8px #0003}
.demo-m-eyebrow{grid-area:eyebrow;color:var(--dm-eyebrow);font-size:12px;font-weight:700;letter-spacing:.1em;line-height:1.35}
.demo-m-copy{grid-area:copy;display:grid;gap:6px;min-width:0}
.demo-m-title{display:block;color:var(--dm-title);font-size:22px;line-height:1.18;letter-spacing:-.01em;margin-bottom:4px}
.demo-m-sub{display:block;color:var(--dm-sub);font-size:14px;line-height:1.4}
.demo-m-art{grid-area:art;display:block;width:auto;height:132px;max-width:96px;object-fit:contain;filter:drop-shadow(0 6px 10px #0004)}
.demo-m-btn{grid-area:btn;display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 14px;border:1px solid var(--dm-btn-line);border-radius:12px;background:var(--dm-btn);color:var(--dm-btn-ink);font-size:16px;font-weight:700;text-align:center}
.peak-demo-feature{filter:none}
}
@media(prefers-reduced-motion:reduce){.peak-demo-feature{transition:none}.peak-demo-feature:hover,.peak-demo-feature:focus-visible{transform:none}}

/* ---------- approved photographic studio: only application windows are projected into the screen planes ---------- */
.hero.hero-studio{margin:18px 0 0}
.hero-studio .scene{position:absolute;left:0;top:0;width:2048px;height:768px;transform:scale(var(--scale,1));transform-origin:0 0}.hero-studio .photograph{display:block;position:absolute;inset:0;width:2048px;height:768px}.hero-studio .desktop{position:absolute;left:0;top:0;width:1600px;height:900px;transform-origin:0 0;overflow:hidden;pointer-events:none;border-radius:10px}.hero-studio .app{position:absolute;height:auto;display:block;filter:drop-shadow(0 12px 15px #0006);border-radius:9px}.hero-studio .translator{left:24px;top:25px;width:1160px}.hero-studio .sender-window{position:absolute;left:500px;top:40px;width:1040px;border-radius:12px;overflow:hidden;box-shadow:0 14px 28px #0006;border:1px solid #ffffffaa;background:#f4f6fb}.hero-studio .titlebar{position:relative;display:flex;align-items:center;justify-content:center;height:32px;background:linear-gradient(#f7f7f8,#dfdfe1);color:#46464b;font:15px/1 system-ui;letter-spacing:0}.hero-studio .traffic{position:absolute;left:13px;display:flex;gap:8px}.hero-studio .traffic i{width:12px;height:12px;background:#ff6058;border-radius:50%;border:1px solid #d94d47}.hero-studio .traffic i:nth-child(2){background:#ffbd2e;border-color:#d9a125}.hero-studio .traffic i:nth-child(3){background:#28c840;border-color:#1ca932}.hero-studio .sender-window>img{display:block;width:100%;height:auto}.hero-studio .peak{left:210px;top:24px;width:470px;border-radius:12px}.hero-studio .quick{left:790px;top:20px;width:560px;border-radius:7px}
.hero.hero-studio{display:block;position:relative;container-type:inline-size;isolation:isolate;min-height:0;padding:0;border:0;border-radius:26px;overflow:hidden;background:#062048;color:#f7fbff;aspect-ratio:8/3;grid-template-columns:none;gap:0}
.hero-studio .studio-art{position:absolute;inset:0;overflow:hidden;pointer-events:none;container-type:inline-size;background:linear-gradient(135deg,#041a3f,#0a3a86 55%,#062048)}
/* No jump on reload: the scale comes from the CSS width of the art (no script needed), the scene stays hidden until its pictures
   are decoded (catalog.js adds .is-ready), and the hero keeps its 8:3 box meanwhile. */
/* The scale is set by catalog.js (--scale = art width / 2048) on every engine. iOS Safari left tan(atan2(100cqw,2048px)) unscaled (only a corner of the photograph showed), so the CSS-only form is kept just for visitors without scripts. */
@media(scripting:none){@supports (transform:scale(tan(atan2(1px,1px)))){.hero-studio .scene{transform:scale(tan(atan2(100cqw,2048px)))}}}
.hero-studio .scene{opacity:0;transition:opacity .25s ease}
.hero-studio .studio-art.is-ready .scene{opacity:1}
@media(scripting:none){.hero-studio .scene{opacity:1;transition:none}}
@media(prefers-reduced-motion:reduce){.hero-studio .scene{transition:none}}
.hero-studio .hero-copy{position:absolute;left:34%;top:15.4%;width:32%;max-width:none;padding:0;text-align:center;color:#f7fbff;text-shadow:0 2px 12px #00163d20}
.hero-studio .eyebrow{color:#00b7ff;font-size:.9277cqw;line-height:1.3;font-weight:750;letter-spacing:.0977cqw;margin:0 0 1.2695cqw;text-transform:uppercase}
.hero-studio h1{font-size:3.125cqw;line-height:1.12;letter-spacing:-.0977cqw;margin:0 0 1.1719cqw;max-width:none;color:#f7fbff}
.hero-studio h1 span{display:block;white-space:nowrap}
.hero-studio .lead{color:#b8d1f0;font-size:1.2695cqw;line-height:1.4;max-width:29.2969cqw;margin:0 auto 1.3672cqw}
.hero-studio .hero-actions{display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:1.5625cqw}
.hero-studio .hero-actions a{display:inline-flex;align-items:center;justify-content:center;gap:.5859cqw;min-height:3.125cqw;font-size:1.0254cqw;font-weight:700;text-decoration:none;white-space:nowrap;color:#e3efff}
.hero-studio .hero-actions span{margin:0}
.hero-studio .hero-actions .primary{padding:.7324cqw 1.3672cqw;background:linear-gradient(#fff,#edf5ff);color:#0872f3;border:1px solid #dceafa;border-radius:999px;box-shadow:0 8px 22px #0010393b;text-shadow:none}
.hero-studio .hero-actions a+ a{border-bottom:0}
.hero-studio .hero-meta{display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:1.0742cqw;color:#a8c8ef;font-size:.8789cqw;line-height:1.4;margin:1.6602cqw 0 0;white-space:nowrap}
.hero-studio .hero-meta span+span:before{content:'·';margin-right:1.0742cqw;color:#6c95c5}
html[lang=en] .hero-studio h1{font-size:3.3203cqw}
html[lang=de] .hero-studio h1{font-size:2.5879cqw;letter-spacing:-.0781cqw}
html[lang=de] .hero-studio .lead{font-size:1.1719cqw}

@media(max-width:1000px){
.hero.hero-studio{aspect-ratio:auto;padding:0 20px 28px}
.hero-studio .studio-art{position:relative;aspect-ratio:1748/768;margin:0 -20px;--scene-w:1748}
/* Text sits below the picture here, so the 470px of empty table between the two laptops is cut out: the photograph is drawn as two pieces
   (left to x=950, right from x=1150 of the original, 100px cross-fade) and the Windows laptop with its screens moves 300px closer. catalog.js reads --scene-w. */
.hero-studio .photograph{display:none}
.hero-studio .scene::before,.hero-studio .scene::after{content:"";position:absolute;z-index:-1;top:0;height:768px;background:url(studio/studio-desktops.webp) no-repeat;background-size:2048px 768px}
.hero-studio .scene::before{left:0;width:950px}
.hero-studio .scene::after{left:850px;width:898px;background-position:-1150px 0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 100px);mask-image:linear-gradient(90deg,transparent,#000 100px)}
.hero-studio .windows-desktop{translate:-300px 0}
.hero-studio .hero-copy{position:relative;left:auto;top:auto;width:100%;max-width:640px;margin:0 auto}
.hero-studio .eyebrow{font-size:12px;letter-spacing:1.2px;margin:8px 0 16px}
.hero-studio h1,html[lang=en] .hero-studio h1,html[lang=de] .hero-studio h1{font-size:clamp(26px,5vw,42px);letter-spacing:-1px;margin:0 0 18px}
.hero-studio h1 span{white-space:normal}
.hero-studio .lead,html[lang=de] .hero-studio .lead{font-size:16px;max-width:580px;margin:0 auto 22px}
.hero-studio .hero-actions{flex-wrap:wrap;gap:16px}
.hero-studio .hero-actions a{font-size:15px;min-height:44px;white-space:normal;gap:10px;max-width:100%}
.hero-studio .hero-actions .primary{padding:12px 20px}
.hero-studio .hero-meta{flex-wrap:wrap;font-size:12px;gap:10px;margin-top:22px;white-space:normal}
.hero-studio .hero-meta span+span:before{margin-right:10px}
}
@media(max-width:700px){
/* Phones: the studio photograph sits inside the card with a margin, so both laptops are whole (the card's rounded corners and its edge no longer touch them) */
.hero.hero-studio{padding:0 14px 28px}
.hero-studio .studio-art{margin:14px 0 0;border-radius:16px}
.projects{grid-template-columns:1fr;gap:16px}
.project{padding:20px}
.catalog-top h2{font-size:24px}
.catalog-controls,.catalog-filters{align-items:stretch}
.search,.search input,.filters{width:100%}
}
@media(max-width:400px){.catalog-top{flex-wrap:wrap}.ppk-tabs button{padding:8px 11px}}
/* very narrow phones: the three facts wrap as whole items, no dot is left at the start of a line */
@media(max-width:400px){.hero-studio .hero-meta{gap:4px 16px}.hero-studio .hero-meta span{white-space:nowrap}.hero-studio .hero-meta span+span:before{content:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.project,.filters button{transition:none}.project:hover{transform:none}}

/* ---------- program ticker (profile only) ---------- */
.marquee-section h2{margin:0 0 6px}
.marquee{overflow:hidden;padding:6px 0;margin-top:14px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.marquee-track{display:flex;width:max-content;animation:marquee-scroll 60s linear infinite}
.marquee-reverse .marquee-track{animation-direction:reverse;animation-duration:70s}
.marquee-set{display:flex;gap:16px;padding-right:16px}
.marquee:hover .marquee-track,.marquee:focus-within .marquee-track{animation-play-state:paused}
@keyframes marquee-scroll{to{transform:translateX(-50%)}}
.marquee-card{display:block;width:250px;flex:none;overflow:hidden;border:1px solid var(--ppk-line);border-radius:16px;background:var(--ppk-panel);color:var(--ppk-ink);text-decoration:none;transition:transform .2s,box-shadow .2s}
.marquee-card:hover,.marquee-card:focus-visible{transform:translateY(-3px);box-shadow:var(--ppk-shadow)}
.marquee-card:focus-visible{outline:2px solid var(--ppk-focus);outline-offset:2px}
.marquee-shot{display:grid;place-items:center;height:132px;background:linear-gradient(145deg,var(--ppk-hero),var(--ppk-hero-end))}
.marquee-shot img{width:64px;height:64px;object-fit:contain}
.marquee-meta{display:block;padding:10px 12px}
.marquee-meta b{display:block;font-size:14px;line-height:1.2}
.marquee-meta small{display:block;color:var(--ppk-muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hint-touch{display:none}
@media(prefers-reduced-motion:reduce){.marquee-track{animation:none}.marquee{overflow-x:auto;-webkit-mask-image:none;mask-image:none}.marquee-set[aria-hidden="true"]{display:none}.marquee-card{transition:none}.marquee-card:hover,.marquee-card:focus-visible{transform:none}.hint-pointer{display:none}.hint-touch{display:inline}}
/* Touch screens have no hover to pause the ticker: it becomes a row you swipe (one copy, snap, fade only on the right edge). */
@media(hover:none) and (pointer:coarse){.marquee{overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 90%,transparent);mask-image:linear-gradient(90deg,#000 90%,transparent)}.marquee::-webkit-scrollbar{display:none}.marquee-track{animation:none}.marquee-set[aria-hidden="true"]{display:none}.marquee-card{scroll-snap-align:start}.marquee-set{padding-left:0}.hint-pointer{display:none}.hint-touch{display:inline}}
.game-demo-feature{grid-column:1/-1;--dm-bg:linear-gradient(135deg,#f3f9ee,#d3e8cb);--dm-line:#86b47f;--dm-eyebrow:#2f7d3a;--dm-title:#1d2b21;--dm-sub:#4d6152;--dm-btn:linear-gradient(#43a04e,#2a7234);--dm-btn-ink:#fff;--dm-btn-line:#1f5a29}.game-demo-feature img{filter:drop-shadow(0 8px 14px #1d3a1f1f)}
