/* jeroenbaars.com — editor-style portfolio */
:root {
  --bg: #121214;
  --panel: #1C1C1F;
  --panel-2: #26262A;
  --line: #2C2C31;
  --line-2: #3A3A40;
  --text: #E6E6E6;
  --text-2: #B8B8BE;
  --muted: #9A9AA2;
  --accent: #3B8EEA;
  --head-w: 128px;
  --h-ruler: 26px;
  --h-v2: 36px;
  --h-v1: 72px;
  --h-a1: 48px;
  --h-a2: 40px;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: Inter, system-ui, sans-serif; font-size: 13px; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
a { color: var(--text); }
a:hover { color: #fff; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.small { font-size: 12px; }
.caps { letter-spacing: 0.06em; }

.app { display: flex; flex-direction: column; gap: 4px; padding: 4px; min-height: 100vh; min-height: 100dvh; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.panel-head { padding: 8px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Top bar */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 8px 10px 8px 14px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { border-radius: 6px; flex: none; }
.brand-text { display: flex; align-items: baseline; gap: 20px; min-width: 0; flex-wrap: wrap; row-gap: 2px; }
.brand-name { font-weight: 700; letter-spacing: 0.06em; font-size: 14px; }
.brand-seq { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspaces { display: flex; gap: 4px; }
.workspaces button { min-height: 40px; padding: 0 16px; border: none; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; }
.workspaces button[aria-pressed="true"] { background: #3A3A42; color: #fff; }

/* Monitor + inspector */
.upper { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.monitor { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; }
.monitor-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.screen { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.screen:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; }
.fx-layer { position: absolute; inset: 0; will-change: filter; }
.fx-layer video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
.offline { position: absolute; inset: 0; background: #8E1F1F; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 16px; color: #fff; }
.offline strong { font-weight: 800; font-size: clamp(28px, 5vw, 60px); letter-spacing: 0.04em; line-height: 1; }
.offline-sub { font-size: clamp(14px, 1.4vw, 18px); color: #FFE4E4; }
.offline-file, .offline-tc { position: absolute; top: 12px; font-size: 12px; color: #FFC9C9; }
.offline-file { left: 14px; }
.offline-tc { right: 14px; }
.offline-relink { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: #FFC9C9; }
.offline-relink i { width: 6px; height: 6px; border-radius: 3px; background: #fff; animation: relink 1.2s infinite; }
.offline-relink i:nth-child(2) { animation-delay: 0.2s; }
.offline-relink i:nth-child(3) { animation-delay: 0.4s; margin-right: 4px; }
@keyframes relink { 0%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.v1off { position: absolute; inset: 0; background: #000; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); pointer-events: none; }

.transport { display: flex; align-items: center; gap: 12px; font-family: var(--mono); }
.transport-btns { display: flex; align-items: center; gap: 6px; }
.transport-tc { font-size: 20px; font-weight: 700; }
.transport-client { flex: 1 1 auto; text-align: center; font-family: Inter, sans-serif; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.transport-dur { font-size: 12px; }
.tbtn { width: 40px; height: 40px; flex: none; border-radius: 4px; border: 1px solid var(--line-2); background: #2E2E34; color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.tbtn svg { width: 18px; height: 18px; fill: currentColor; }
.tbtn svg.stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tbtn:disabled { opacity: 0.35; cursor: default; }
.tbtn-play { border-radius: 20px; border: none; background: var(--accent); color: #121214; }
.tbtn-play .ico-pause { display: none; }
.tbtn-play.playing .ico-play { display: none; }
.tbtn-play.playing .ico-pause { display: block; }

.inspector { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; }
.insp-tabs { display: flex; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.insp-tabs button { min-height: 38px; padding: 0 12px; border: none; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.insp-tabs button[aria-pressed="true"] { color: #fff; border-bottom-color: var(--accent); }
.insp-body { padding: 20px; }
.pane { display: flex; flex-direction: column; gap: 16px; }
.pane-title { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 700; }
.pane-sub { margin: 0; font-size: 18px; font-weight: 700; }
.pane-text { margin: 0; line-height: 1.6; color: var(--text-2); }
.pane p { margin: 0; }
.meta { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.meta dt { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.meta dd { margin: 4px 0 0; }
.portrait { aspect-ratio: 4 / 3; background: #0A0A0B; display: flex; align-items: center; justify-content: center; font-size: 12px; background-size: cover; background-position: center; }
.btn-accent { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 4px; background: var(--accent); color: #121214; font-weight: 600; text-decoration: none; padding: 0 16px; }
.btn-accent:hover { color: #121214; filter: brightness(1.1); }
.btn-ghost { align-self: flex-start; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 4px; background: #2E2E34; color: var(--text); cursor: pointer; font-size: 12px; }
.socials { display: flex; gap: 20px; flex-wrap: wrap; }
.socials a { min-height: 44px; display: inline-flex; align-items: center; }
.fx-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fx-group { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.slider { display: flex; flex-direction: column; gap: 4px; }
.slider-row { display: flex; justify-content: space-between; font-size: 12px; }
.slider input { width: 100%; accent-color: var(--accent); min-height: 24px; cursor: pointer; }
.fx-badge { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 0 5px; border-radius: 3px; background: #9A8BE6; color: #121214; line-height: 16px; }

/* Timeline */
.timeline { outline: none; padding-bottom: 10px; position: relative; }
.timeline:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.seq-bar { display: flex; align-items: center; gap: 4px; padding: 0 10px 0 6px; border-bottom: 1px solid var(--line); }
.seq-tabs { display: flex; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.seq-tabs::-webkit-scrollbar { display: none; }
.seq-tabs button { flex: none; min-height: 44px; padding: 0 14px; border: none; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.seq-tabs button[aria-pressed="true"] { color: #fff; border-bottom-color: var(--accent); }
.seq-tabs .x { color: var(--muted); display: none; }
.seq-tabs button[aria-pressed="true"] .x { display: inline; }
.seq-tabs .n { font-family: var(--mono); font-weight: 400; color: var(--muted); }
.seq-menu-btn { border: none; background: transparent; }
.seq-menu-btn[aria-expanded="true"] { background: #3A3A42; }
.seq-hint { margin-left: auto; padding-left: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.zoom { display: flex; background: var(--bg); border-radius: 6px; padding: 2px; flex: none; }
.zoom button { min-width: 52px; min-height: 36px; border: none; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; }
.zoom button[aria-pressed="true"] { background: #3A3A42; color: #fff; }
.seq-tc { padding-left: 8px; flex: none; }
.seq-menu { display: flex; flex-direction: column; gap: 2px; padding: 8px; background: #161618; border-bottom: 1px solid var(--line); }
.seq-menu button { min-height: 48px; border: none; border-radius: 4px; background: transparent; color: var(--text); cursor: pointer; text-align: left; padding: 6px 12px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.seq-menu button[aria-current="true"] { background: #2E2E34; }
.seq-menu strong { font-size: 13px; }
.seq-menu span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.tl-body { position: relative; display: flex; user-select: none; -webkit-user-select: none; }
.heads { width: var(--head-w); flex: none; display: flex; flex-direction: column; }
.head { display: flex; align-items: center; gap: 6px; padding-left: 10px; border-bottom: 1px solid #26262A; }
.head-ruler { height: var(--h-ruler); border-bottom-color: var(--line); }
.head-v2 { height: var(--h-v2); }
.head-v1 { height: var(--h-v1); }
.head-a1 { height: var(--h-a1); }
.head-a2 { height: var(--h-a2); border-bottom: none; }
.tk { width: 28px; height: 28px; border-radius: 4px; border: 1px solid var(--line-2); background: #2E2E34; color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.tk svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tk-eye[aria-pressed="false"] { background: var(--bg); color: #6A6A72; }
.tk-m[aria-pressed="true"] { background: #E3B04B; color: #121214; }
.tk-s[aria-pressed="true"] { background: #7DCB6E; color: #121214; }
.tk-label { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: 4px; }

.lanes-scroll { flex: 1 1 auto; min-width: 0; overflow: hidden; margin-right: 14px; cursor: ew-resize; touch-action: none; }
.timeline.zoomed .lanes-scroll { overflow-x: auto; scrollbar-width: none; touch-action: pan-x; margin-right: 0; }
.lanes-scroll::-webkit-scrollbar { display: none; }
.lanes { position: relative; width: 100%; }
.lane { position: relative; border-bottom: 1px solid #26262A; }
.lane-ruler { height: var(--h-ruler); background: #19191C; border-bottom-color: var(--line); }
.lane-v2 { height: var(--h-v2); }
.lane-v1 { height: var(--h-v1); }
.lane-a1 { height: var(--h-a1); }
.lane-a2 { height: var(--h-a2); border-bottom: none; }
.tick { position: absolute; top: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); border-left: 1px solid var(--line-2); padding-left: 4px; white-space: nowrap; line-height: 1; height: 14px; }

.clip { position: absolute; top: 5px; bottom: 5px; border: none; border-top: 3px solid var(--c, #666); border-radius: 3px; background-color: var(--c, #666); padding: 5px 6px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; overflow: hidden; cursor: inherit; text-align: left; background-size: auto 100%; background-repeat: repeat-x; }
.clip.sel { box-shadow: 0 0 0 2px #fff; }
.clip.offline { background-image: repeating-linear-gradient(135deg, #A12C2C 0 8px, #7E1F1F 8px 16px); border-top-color: #A12C2C; }
.chip { font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--bg); color: var(--text); padding: 1px 5px; border-radius: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; gap: 4px; max-width: 100%; }
.chip-dur { font-family: var(--mono); font-weight: 400; }
.aclip { position: absolute; top: 5px; bottom: 5px; background: #1F3A33; border-radius: 3px; display: flex; align-items: center; gap: 1px; padding: 0 3px; overflow: hidden; }
.aclip.offline { background: #3A1C1C; }
.aclip i { flex: 1 1 0; background: #5FC2A6; border-radius: 1px; min-width: 1px; }
.bed { position: absolute; inset: 5px 0; background: #22303A; border-radius: 3px; display: flex; align-items: center; gap: 2px; padding: 0 4px; overflow: hidden; }
.bed i { flex: 1 1 0; background: #6FA6C8; border-radius: 1px; min-width: 1px; }
.tl-body.off-v2 .lane-v2 > *, .tl-body.off-v1 .lane-v1 > *, .tl-body.silent-a1 .lane-a1 > *, .tl-body.silent-a2 .lane-a2 > * { opacity: 0.3; }
.tl-body.off-v2 .head-v2 .tk-label, .tl-body.off-v1 .head-v1 .tk-label, .tl-body.silent-a1 .head-a1 .tk-label, .tl-body.silent-a2 .head-a2 .tk-label { color: #6A6A72; }

.playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; z-index: 3; }
.playhead span { position: absolute; top: 0; left: -6px; width: 14px; height: 12px; background: var(--accent); border-radius: 0 0 3px 3px; }

/* Boot screen */
.splash { position: fixed; inset: 0; z-index: 1000; background: #0E0E10; display: flex; align-items: center; justify-content: center; padding: 20px 20px 110px; transition: opacity 420ms ease; }
.splash.out { opacity: 0; pointer-events: none; }
.splash-wall { position: absolute; inset: 0; background: url(../media/carhartt/poster.jpg) center / cover; }
.splash-wall::after { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 14, 0.72); }
.splash-card { position: relative; width: 100%; max-width: 680px; background: #18181B; border: 1px solid var(--line); border-radius: 12px; padding: 36px; display: flex; flex-direction: column; gap: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.splash-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.splash-icon { border-radius: 16px; }
.splash-version { font-size: 12px; text-align: right; line-height: 1.6; }
.splash-name { margin: 0 0 8px; font-size: clamp(36px, 7vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.splash-sub { margin: 0; font-size: 16px; color: var(--text-2); }
.splash-disc { margin: 12px 0 0; font-size: 12px; letter-spacing: 0.08em; }
.splash-bar { position: relative; height: 26px; }
.splash-clips { position: absolute; inset: 4px 0; display: flex; gap: 3px; }
.splash-clips span { border-radius: 3px; opacity: 0.18; transition: opacity 180ms ease; }
.splash-clips span.on { opacity: 1; }
.splash-ph { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--accent); }
.splash-ph span { position: absolute; top: -4px; left: -5px; width: 12px; height: 8px; background: var(--accent); border-radius: 0 0 3px 3px; }
.splash-status { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); margin-top: -18px; }
.splash-status span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.splash-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 12px; color: var(--muted); }
.dock { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 10px; padding: 8px 12px 12px; border-radius: 24px; background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 20px 50px rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); }
.dock-tile { width: 56px; height: 56px; border-radius: 14px; background: rgba(30, 30, 36, 0.75); border: 1px solid rgba(255, 255, 255, 0.12); display: flex; align-items: center; justify-content: center; color: #C8C8CE; }
.dock-tile svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dock-sep { width: 1px; height: 48px; background: rgba(255, 255, 255, 0.2); margin: 0 2px 4px; }
.dock-app { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.dock-icon { border-radius: 13px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5); }
.dock-dot { width: 5px; height: 5px; border-radius: 3px; background: var(--text); opacity: 0.85; }
@keyframes jbBounce { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-26px); } 55% { transform: translateY(0); } 68% { transform: translateY(-8px); } 80% { transform: translateY(0); } }
.bounce { animation: jbBounce 0.9s cubic-bezier(.3, .7, .4, 1) infinite; }

@media (prefers-reduced-motion: reduce) {
  .bounce, .offline-relink i { animation: none; }
  .splash { transition: none; }
}

/* Phone */
@media (max-width: 760px) {
  :root { --head-w: 56px; --h-v1: 66px; --h-a1: 46px; --h-v2: 34px; --h-ruler: 22px; }
  .app { padding: 0; gap: 0; }
  .panel { border-radius: 0; border-left: none; border-right: none; }
  .topbar { padding: 12px 12px 10px; }
  .brand-text { flex-direction: column; gap: 2px; }
  .workspaces { width: 100%; }
  .workspaces button { flex: 1 1 0; min-height: 44px; background: var(--panel-2); }
  .upper { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .app > *, .upper > *, .monitor > *, .inspector > * { flex-shrink: 0; }
  .monitor { flex: none; }
  .monitor .panel-head { display: none; }
  .monitor-body { padding: 0 0 8px; gap: 8px; }
  .transport { padding: 0 12px; }
  .tbtn { width: 44px; height: 44px; }
  .tbtn-play { border-radius: 22px; }
  .transport-tc { font-size: 15px; margin-left: auto; }
  .transport-client, .transport-dur { display: none; }
  .inspector { flex: none; }
  .insp-body { padding: 16px; }
  .pane-title { font-size: 22px; }
  .hide-phone { display: none; }
  .seq-hint { display: none; }
  .seq-tc { display: none; }
  .seq-bar { padding-right: 6px; }
  .zoom { margin-left: auto; }
  .head { padding-left: 0; justify-content: center; }
  .tk-label, .tk-s { display: none; }
  .tk { width: 44px; height: calc(100% - 6px); max-height: 44px; }
  .lanes-scroll { margin-right: 0; }
  .timeline:not(.zoomed) .tick { display: none; }
  .splash-card { padding: 24px; gap: 22px; }
  .dock-tile { width: 48px; height: 48px; }
  .dock-tile svg { width: 22px; height: 22px; }
  .dock-icon { width: 48px; height: 48px; }
  .dock { gap: 8px; padding: 6px 10px 10px; }
}
