:root {
  color-scheme: dark;
  --bg: #0f1115;
  --panel: #1a1d24;
  --line: #2a2e38;
  --text: #e8e8ec;
  --muted: #9a9fac;
  --gold: #d4af37;
  --meat: #c94f5d;
  --meat-dark: #702933;
  --cream: #ffe5d0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body {
  margin: 0;
  overflow-x: clip;
  background: radial-gradient(ellipse at 80% 12%, #c94f5d12, transparent 38%), radial-gradient(ellipse at 15% 70%, #d4af3708, transparent 35%), var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
.page { position: relative; z-index: 1; max-width: 1240px; margin: auto; padding: 0 48px; }
.background-meatballs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.background-meatballs .background-meatball { left: var(--ball-x); top: var(--ball-y); width: var(--ball-size); height: var(--ball-size); opacity: var(--ball-opacity); animation: background-meat-float var(--ball-duration) ease-in-out var(--ball-delay) infinite alternate; }
@keyframes background-meat-float { from { transform: translate(-8px, 12px) rotate(-20deg); } to { transform: translate(18px, -26px) rotate(35deg); } }
header { height: 100px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; font-size: 22px; font-weight: 750; letter-spacing: -.8px; }
.brand img { width: 38px; height: 38px; margin-right: 12px; }
.brand > span { color: var(--meat); font-weight: 500; }
.nav-link { border: 1px solid #c94f5d70; border-radius: 30px 8px 30px 8px; padding: 12px 19px; font-size: 12px; background: #c94f5d0b; transform: rotate(1deg); transition: border-color .2s, transform .2s, background .2s; }
.nav-link:hover { border-color: var(--meat); background: #c94f5d18; transform: rotate(-1deg) translateY(-2px); }
.nav-link span { color: var(--gold); margin-left: 18px; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; padding: 65px 0 74px; }
.intro { position: relative; z-index: 1; }
h1 { font-size: clamp(64px, 7.8vw, 104px); letter-spacing: -6px; line-height: 1.02; margin: 0 0 28px; font-weight: 750; }
h1 em { display: inline-block; position: relative; color: var(--gold); font-family: Georgia, serif; font-weight: 400; padding-right: 12px; transition: color .3s; }
h1 em::after { content: ''; position: absolute; height: 7px; background: var(--gold); opacity: .4; left: 3px; right: 5px; bottom: -5px; transform: rotate(-4deg); clip-path: polygon(0 25%, 100% 0, 98% 60%, 2% 100%); }
.intro::before { content: 'vers van het web'; position: absolute; top: -27px; left: 3px; padding: 5px 9px; border-radius: 4px; background: var(--meat); color: #fff5eb; font: 700 9px monospace; letter-spacing: 1px; text-transform: uppercase; transform: rotate(-3deg); box-shadow: 3px 3px 0 var(--meat-dark); }
.description { color: var(--muted); font-size: 16px; line-height: 1.85; max-width: 385px; }
.text-link { display: inline-flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 650; margin-top: 20px; }
.text-link > span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #d4af3755; border-radius: 50%; color: var(--gold); }

/* The entire illustrated flashlight is one keyboard-accessible toggle. */
.flashlight-scene {
  position: relative;
  overflow: visible;
  min-width: 0;
  height: 390px;
  border: 1px solid #353741;
  border-radius: 90px 24px 90px 24px;
  background: radial-gradient(ellipse at 75% 25%, #d4af3714, transparent 65%), linear-gradient(145deg, #20242c, #13161c);
  box-shadow: 0 25px 65px #0003, inset 0 1px #ffffff05;
  transform: rotate(-3deg);
  isolation: isolate;
}
.flashlight-scene::before { content: ''; position: absolute; inset: 16px; border: 1px dashed #7f849421; border-radius: 76px 15px 76px 15px; pointer-events: none; }
.meat-sticker { position: absolute; z-index: 3; right: -12px; bottom: 20px; min-width: 126px; padding: 10px 13px; border: 2px solid var(--cream); border-radius: 7px; background: var(--meat); color: white; text-align: center; text-transform: uppercase; font: 800 10px/1.2 monospace; letter-spacing: .7px; transform: rotate(7deg); box-shadow: 5px 6px 0 #6f2933; pointer-events: none; }
.meat-sticker small { display: block; margin-top: 3px; color: var(--cream); font-size: 7px; letter-spacing: 0; }
.warning-sticker { position: absolute; z-index: 3; top: 28px; right: -28px; padding: 7px 12px; border: 2px solid #0f1115; background: var(--cream); color: #702933; font: 900 8px monospace; letter-spacing: .7px; transform: rotate(11deg); box-shadow: 4px 4px 0 var(--meat); pointer-events: none; }
.meatball { position: absolute; z-index: 2; display: block; width: 34px; height: 34px; border: 2px solid #e09a9f; border-radius: 48% 52% 43% 57%; background: radial-gradient(circle at 35% 28%, #ffd3ca 0 3%, transparent 4%), url('./meat-texture.png') center / 80px; box-shadow: inset -5px -6px 8px #4d131bb0, 3px 7px 10px #0008; pointer-events: none; animation: meat-float 4s ease-in-out infinite; }
.meatball-one { top: 78px; left: 40px; transform: rotate(10deg); }
.meatball-two { bottom: 44px; left: 90px; width: 22px; height: 22px; animation-delay: -1.4s; }
.meatball-three { top: 80px; right: 48px; width: 26px; height: 26px; animation-delay: -2.7s; }
@keyframes meat-float { 0%, 100% { translate: 0 0; rotate: -4deg; } 50% { translate: 0 -12px; rotate: 8deg; } }
.flashlight-toggle { position: absolute; inset: 50px 0 46px; width: 100%; padding: 0; border: 0; border-radius: 40px; background: transparent; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.flashlight-glow { position: absolute; inset: -25px 0; border-radius: 50%; background: radial-gradient(ellipse at 25% 45%, #d4af3724, transparent 62%); transition: opacity .35s; pointer-events: none; }
.flashlight-assembly { position: absolute; top: 54%; left: 48%; width: 250px; height: 100px; transform: translate(-50%, -50%) rotate(12deg) scaleX(-1); }
.flashlight-body { position: absolute; width: 149px; height: 58px; top: 22px; left: 0; border-radius: 14px 5px 5px 14px; border: 1px solid #c97b7b; background: linear-gradient(#ffffff30, transparent 28%, #27090b35 65%, #1b0309aa 94%, #ffffff20), url('./meat-texture.png') center / cover; box-shadow: inset 7px 0 #59232d, inset 10px 0 #bc7777; }
.flashlight-grip { position: absolute; inset: 3px 55px 3px 19px; border-radius: 4px; background: repeating-linear-gradient(90deg, #0000000a 0 3px, #ffffff0a 3px 5px, transparent 5px 9px); }
.flashlight-brand { position: absolute; bottom: 9px; right: 8px; font: 6px monospace; letter-spacing: 1px; color: #ffe8d9; text-shadow: 0 1px 2px #240308; transform: scaleX(-1); }
.flashlight-switch { position: absolute; width: 26px; height: 17px; top: 9px; right: 14px; border: 3px solid #151920; border-radius: 10px; background: var(--gold); box-shadow: 0 0 12px #d4af3766; transition: background .2s, box-shadow .2s; }
.flashlight-neck { position: absolute; left: 144px; top: 17px; width: 33px; height: 68px; border-radius: 5px; background: repeating-linear-gradient(90deg, #6b5930 0 4px, #c3a44b 4px 7px, #302e29 7px 10px); }
.flashlight-head { position: absolute; left: 170px; top: 4px; height: 94px; width: 69px; clip-path: polygon(0 16%, 85% 0, 100% 0, 100% 100%, 85% 100%, 0 84%); background: linear-gradient(#ffffff40, transparent 25%, #31090c44 65%, #18040bcc 94%, #ffffff20), url('./meat-texture.png') 70% center / cover; }
.flashlight-lens { position: absolute; left: 226px; top: 4px; width: 22px; height: 94px; border: 5px solid #b79842; border-radius: 50%; background: #fff2be; box-shadow: 0 0 19px #ffe19b99, inset 0 0 8px #fff; transition: background .3s, box-shadow .3s; }
.flashlight-beam { position: absolute; left: 238px; top: -149px; width: 1100px; height: 400px; clip-path: polygon(0 39%, 100% 0, 100% 100%, 0 61%); background: linear-gradient(90deg, #ffe8a54d, #d4af3726 35%, #d4af3714 70%, transparent); pointer-events: none; transition: opacity .35s; }
.light-off .flashlight-scene .flashlight-beam, .light-off .flashlight-glow { opacity: 0; }
.light-off .flashlight-scene .flashlight-lens { background: #424a56; box-shadow: inset 0 0 8px #000; }
.light-off .flashlight-scene .flashlight-switch { background: #727987; box-shadow: none; }
.light-off #light-word { color: var(--muted); }
.light-off .meatball { animation-play-state: paused; filter: saturate(.45) brightness(.65); }


.projects { padding: 0 0 56px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -.5px; }
.section-heading > span { font: 10px monospace; letter-spacing: 1px; color: var(--cream); background: var(--meat-dark); border: 1px solid var(--meat); border-radius: 4px; padding: 6px 9px; transform: rotate(2deg); }
.project-card { position: relative; display: grid; grid-template-columns: 40% 1fr; border: 1px solid #c94f5d66; border-radius: 22px 8px 22px 8px; overflow: hidden; background: linear-gradient(120deg, #20232d, var(--panel)); box-shadow: 7px 7px 0 #70293338; transition: border-color .2s, transform .2s, box-shadow .2s; isolation: isolate; }
.project-card:hover { border-color: var(--meat); transform: translate(-2px, -4px) rotate(-.25deg); box-shadow: 11px 13px 0 #70293355; }
.project-spotlight { position: absolute; z-index: 4; top: 12px; right: 20px; width: 130px; height: 54px; pointer-events: none; transform: rotate(var(--aim-angle, -25deg)); }
.project-spotlight .flashlight-assembly { top: 50%; left: 50%; transform: translate(-50%, -50%) scale(-.52, .52); }
.project-spotlight .flashlight-body { filter: drop-shadow(0 8px 8px #0005); }
.project-spotlight .flashlight-beam { opacity: .65; }
.project-card:hover .project-spotlight .flashlight-beam { opacity: 1; }
.project-art { position: relative; min-height: 345px; overflow: hidden; background: radial-gradient(ellipse at 50% 70%, #9060c133, transparent 65%), #13161e; border-right: 1px solid var(--line); }
.project-content { position: relative; z-index: 2; padding: 48px 38px 35px; }
.tags { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; font: 9px monospace; letter-spacing: 1px; color: var(--muted); }
.live { display: flex; gap: 7px; align-items: center; letter-spacing: 0; color: #8ed6a3; }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #4caf6d; }
h3 { font-size: 36px; letter-spacing: -1.5px; margin: 22px 0 12px; font-weight: 650; }
.project-content > p { font-size: 14px; line-height: 1.8; color: var(--muted); max-width: 470px; margin: 0; }
.features { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 25px; padding: 0; }
.features li { font-size: 10px; border: 1px solid #c94f5d66; border-radius: 12px 4px 12px 4px; padding: 6px 9px; color: #e4c1c5; background: #c94f5d0b; }
.features li:nth-child(2) { transform: rotate(-2deg); }
.project-action { display: flex; justify-content: space-between; align-items: center; color: var(--gold); font-size: 13px; font-weight: 650; }
.project-action > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--bg); font-size: 22px; font-weight: 400; }
.afterword { font: 11px monospace; text-align: center; color: #d8969e; margin: 28px 0 0; transform: rotate(-.5deg); }
.afterword span { color: var(--gold); }
footer { display: flex; justify-content: center; gap: 20px; padding: 24px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-star { color: var(--gold); font-size: 17px; margin-left: 8px; }
.skip-link { position: absolute; top: -80px; left: 20px; padding: 15px; background: var(--gold); color: var(--bg); z-index: 10; }
.skip-link:focus { top: 10px; }

@media (max-width: 900px) and (min-width: 761px) {
  .page { padding: 0 30px; }
  .hero { gap: 10px; }
  h1 { font-size: 76px; }
  .flashlight-assembly { transform: translate(-50%, -50%) rotate(12deg) scale(-.85, .85); }
  .project-content { padding: 28px; }
  h3 { font-size: 29px; }
}
@media (max-width: 760px) {
  .background-meatball:nth-child(even) { display: none; }
  .page { padding: 0 24px; }
  header { height: 82px; }
  .brand { font-size: 19px; }
  .brand img { width: 32px; height: 32px; margin-right: 9px; }
  .nav-link { font-size: 10px; padding: 10px 12px; }
  .nav-link span { margin-left: 6px; }
  .hero { grid-template-columns: 1fr; gap: 35px; padding: 45px 0 42px; }
  h1 { font-size: clamp(58px, 12vw, 84px); letter-spacing: -3.5px; margin-bottom: 22px; }
  .description { font-size: 14px; max-width: 430px; }
  .text-link { margin-top: 10px; font-size: 12px; }
  .flashlight-scene { height: 275px; width: 100%; max-width: 460px; justify-self: center; border-radius: 60px 20px 60px 20px; transform: rotate(-2deg); }
  .meat-sticker { right: -5px; bottom: 12px; transform: rotate(5deg) scale(.86); transform-origin: right bottom; }
  .warning-sticker { top: 20px; right: -8px; transform: rotate(7deg) scale(.8); transform-origin: right top; }
  .meatball-one { left: 22px; top: 62px; }
  .meatball-two { left: 54px; bottom: 35px; }
  .meatball-three { right: 24px; top: 74px; }
  .flashlight-scene::before { border-radius: 46px 10px 46px 10px; }
  .flashlight-assembly { transform: translate(-50%, -50%) rotate(92deg) scale(-.8, .8); }
  .section-heading > span { font-size: 8px; letter-spacing: 1px; }
  .project-card { grid-template-columns: 1fr; }
  .project-spotlight { top: 4px; right: 16px; transform: rotate(var(--aim-angle, -35deg)) scale(.82); }
  .project-art { min-height: 320px; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-content { padding: 60px 24px 28px; }
  h3 { font-size: 30px; }
  .tags { gap: 12px; }
  .projects { padding-bottom: 38px; }
  .afterword { font-size: 9px; line-height: 1.8; }
  footer { font-size: 10px; }
  .footer-star { display: none; }
}
@media (max-width: 360px) {
  .page { padding: 0 18px; }
  .brand { font-size: 17px; }
  .flashlight-assembly { transform: translate(-50%, -50%) rotate(92deg) scale(-.7, .7); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .meatball, .background-meatballs .background-meatball { animation: none; }
}

/* A real capture of the tracker, displayed as a static project preview. */
.project-art { min-height: 345px; background: #13161e; }
.tracker-preview { position: absolute; top: 23px; left: 6%; width: 88%; height: auto; border: 1px solid #363b48; border-radius: 12px; box-shadow: 0 15px 30px #0005; }
.project-art::after { content: ''; position: absolute; inset: 65% 0 0; background: linear-gradient(transparent, #13161e 92%); pointer-events: none; }
.preview-caption { position: absolute; z-index: 1; bottom: 18px; left: 0; right: 0; text-align: center; color: #babdc7; font: 10px monospace; letter-spacing: 1px; }
@media (max-width: 760px) { .project-art { min-height: 340px; } }
