/* Leesbare typografie en responsive profielkaart */
* { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; overflow-y: auto; }
.container { min-height: 100vh; min-height: 100svh; height: auto; }
#background { width: 100%; height: 100%; object-fit: cover; }
#profile-block, #skills-block { width: min(680px, calc(100vw - 40px)); max-width: 680px; max-height: calc(100svh - 150px); overflow-y: auto; padding: 30px; border-radius: 24px; border-color: rgba(255,255,255,.2); box-shadow: 0 20px 80px rgba(0,0,0,.4); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
#profile-name { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important; font-size: clamp(30px, 5vw, 44px); font-weight: 750; letter-spacing: -.045em; line-height: 1.15; text-shadow: 0 2px 18px rgba(255,255,255,.15); animation: none; }
.profile-info { min-width: 0; }
.name-and-badges { flex-wrap: wrap; gap: 14px; }
#profile-bio { font-size: 16px; line-height: 1.65; color: #e2e5eb; overflow-wrap: anywhere; min-height: 2em; }
.profile-container { flex-shrink: 0; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; background: rgba(255,255,255,.06); transition: background .2s, transform .2s; }
.social-links a:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }
.social-links a:focus-visible { outline: 2px solid #b8f4ed; outline-offset: 4px; }
.social-icon { width: 25px; height: 25px; object-fit: contain; }
.profile-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
#visitor-count { font-variant-numeric: tabular-nums; }

.slider { min-height: 44px; }
@media (max-width: 600px) {
 #profile-block, #skills-block { width: calc(100vw - 28px); padding: 24px 20px; max-width: 440px; max-height: calc(100svh - 140px); }
 .profile-header { flex-direction: column; align-items: center; gap: 20px; }
 .profile-info { width: 100%; text-align: center; }
 .name-and-badges { flex-direction: column; justify-content: center; }
 .profile-container, .profile-picture { width: 104px; height: 104px; }
 .profile-footer { justify-content: center; }
 #profile-bio { font-size: 15px; }
 .badge-group { flex-wrap: wrap; justify-content: center; }
 .badge { width: 22px; height: 22px; }
 .top-controls { gap: 12px; }
}
@media (pointer: coarse) {
 .custom-cursor, .cursor-trail { display: none !important; }
 body, body:not(.touch-device), a, button { cursor: auto; }
 #profile-block, #skills-block { touch-action: pan-y; }
}
@media (max-height: 520px) {
 #profile-block, #skills-block { top: 76px !important; transform: translateX(-50%) !important; max-height: calc(100svh - 90px); }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Regelaars staan onder de kaart; geen uitgerekt vlak over de tekst. */
.top-controls {
 position: fixed;
 top: var(--controls-top, calc(50% + 200px));
 bottom: auto;
 left: 50%;
 right: auto;
 transform: translateX(-50%);
 width: max-content;
 max-width: calc(100vw - 28px);
 height: auto;
 min-height: 0;
 padding: 6px 14px;
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 18px;
 border: 1px solid rgba(255,255,255,.15);
 border-radius: 999px;
 background: rgba(0,0,0,.65);
 -webkit-backdrop-filter: blur(10px);
 backdrop-filter: blur(10px);
}
.top-controls .slider { height: 6px; min-height: 6px; background: rgba(255,255,255,.25); }
.top-controls .volume-control, .top-controls .transparency-control { min-height: 36px; }
@media (max-height: 520px) {
 #profile-block, #skills-block { max-height: calc(100svh - 160px); }
}
/* Galerij en prijslijst */
.content-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.content-links button { min-height: 48px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; border-radius: 14px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07); color: white; font-size: 15px; font-weight: 600; cursor: pointer; }
.content-links button:hover { background: rgba(255,255,255,.16); }
.content-links button:focus-visible, .dialog-close:focus-visible, .gallery-tile:focus-visible { outline: 2px solid #b8f4ed; outline-offset: 3px; }
.content-dialog { position: fixed; inset: 0; margin: auto; width: min(960px, calc(100vw - 28px)); max-width: 960px; max-height: 88vh; max-height: 88svh; padding: 28px; border: 1px solid #41464e; border-radius: 24px; color: #f5f6f8; background: #14171d; overflow-y: auto; box-shadow: 0 25px 100px #0008; cursor: auto; }
.content-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dialog-eyebrow { color: #aeb6c5; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.dialog-header h2 { font-size: 28px; letter-spacing: -.03em; }
.dialog-close { min-width: 44px; min-height: 44px; border: 1px solid #41464e; border-radius: 50%; background: #ffffff0a; color: white; font-size: 28px; cursor: pointer; }
.dialog-description { color: #b3bccb; margin-bottom: 20px; line-height: 1.6; }
#gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.gallery-tile { display: block; min-width: 0; padding: 0; border: 1px solid #343941; border-radius: 14px; background: #090b0e; overflow: hidden; cursor: pointer; }
.gallery-tile[hidden] { display: none; }
.gallery-tile img, .gallery-tile video { display: block; width: 100%; height: 240px; object-fit: contain; }
.media-dialog { width: min(1100px, calc(100vw - 24px)); padding: 14px; }
.media-dialog .dialog-close { position: sticky; top: 0; float: right; z-index: 1; background: #14171d; }
#large-image { display: block; width: 100%; max-height: 74svh; object-fit: contain; }
#prices-dialog { max-width: 680px; }
#prices-text { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.9; }
#prices-frame { width: 100%; height: 55vh; border: 0; border-radius: 12px; background: white; color-scheme: light; }
#prices-frame[hidden], #prices-text[hidden] { display: none; }
@media (max-width: 600px) {
 .content-dialog { padding: 20px 16px; border-radius: 20px; }
 #gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
 .gallery-tile img, .gallery-tile video { height: 180px; }
 .content-links { gap: 8px; }
 .content-links button { font-size: 14px; padding: 12px; }
}
@media (max-width: 360px) { .content-links { grid-template-columns: 1fr; } }
