/* =============================================================================
   Carl Alkemade — portfolio styles
   Minimal, white, gallery-like. Colours & sizes are grouped at the top so
   they're easy to tweak.
   ========================================================================== */
:root{
  --bg:#ffffff;
  --ink:#141414;
  --muted:#8a8a8a;
  --line:#e8e8e8;
  --line-strong:#cfcfcf;
  --maxw:1500px;
  --pad:clamp(18px,4vw,44px);
  --font:"Helvetica Neue",Helvetica,Arial,sans-serif;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font);
  font-size:15px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}

/* ---- Top bar ------------------------------------------------------------- */
.topbar{
  position:sticky;top:0;z-index:20;
  display:flex;align-items:baseline;justify-content:space-between;gap:16px;
  padding:18px var(--pad);
  background:var(--bg);
  border-bottom:1px solid var(--line);
}
.brand{
  font-size:16px;font-weight:600;letter-spacing:.01em;white-space:nowrap;
}
.topnav{display:flex;align-items:baseline;gap:22px}
#nav-links{display:flex;gap:22px}
#nav-links a{color:var(--muted);font-size:13px;letter-spacing:.02em}
#nav-links a:hover{color:var(--ink)}
#nav-links a.active{color:var(--ink)}
.lang{display:inline-flex;align-items:baseline;gap:6px;font-size:12px;color:var(--muted)}
.lang button{
  background:none;border:0;padding:0;margin:0;cursor:pointer;
  font:inherit;font-size:12px;color:var(--muted);letter-spacing:.03em;
}
.lang button.on{color:var(--ink)}
.lang .sep{color:var(--line-strong)}

/* Projects fold-down — categorised, in a soft box */
.navitem{position:relative;display:inline-flex}
.dropdown{
  position:absolute;top:100%;left:0;margin-top:12px;min-width:190px;
  display:none;flex-direction:column;gap:14px;
  background:var(--bg);border:1px solid var(--line);padding:16px 18px;
  box-shadow:0 10px 34px rgba(0,0,0,.09);z-index:30;
}
.navitem.open .dropdown{display:flex}
.dropdown-group{display:flex;flex-direction:column;gap:3px}
.dropdown-cat{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin-bottom:2px}
.dropdown a{padding:1px 0;font-size:13px;color:#3a3a3a;white-space:nowrap}
.dropdown a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}

/* ---- Layout shell -------------------------------------------------------- */
.view{
  max-width:var(--maxw);margin:0 auto;
  padding:clamp(20px,3vw,34px) var(--pad) 80px;
  min-height:60vh;
}
.empty{color:var(--muted)}

/* ---- Filter bar ---------------------------------------------------------- */
.filterbar{
  display:flex;flex-wrap:wrap;gap:18px;justify-content:flex-end;
  margin:2px 0 26px;
}
.filterbar button{
  background:none;border:0;padding:0;cursor:pointer;font:inherit;
  font-size:13px;color:var(--muted);letter-spacing:.02em;
}
.filterbar button:hover{color:var(--ink)}
.filterbar button.on{color:var(--ink);text-decoration:underline;text-underline-offset:4px}

/* ---- Project grid (all images; hover shows the project title) ------------ */
.grid{
  display:grid;
  column-gap:clamp(34px,5vw,86px);
  row-gap:clamp(30px,3.5vw,54px);
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  grid-auto-rows:60px;grid-auto-flow:dense;
}
.tile{
  position:relative;display:block;
  cursor:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%3E%3Cg%20stroke='%23e00000'%20stroke-width='1'%20stroke-linecap='round'%3E%3Cline%20x1='16'%20y1='3'%20x2='16'%20y2='29'/%3E%3Cline%20x1='3'%20y1='16'%20x2='29'%20y2='16'/%3E%3C/g%3E%3C/svg%3E") 16 16, crosshair;
}
.tile-imgwrap{
  display:flex;height:100%;
  align-items:center;justify-content:center;overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.tile-imgwrap img{max-width:100%;max-height:100%;object-fit:contain;mix-blend-mode:multiply}
.tile:hover .tile-imgwrap{opacity:.82}
/* click a grid image: it enlarges in place, rest of the site still visible */
.tile.zoomed{z-index:40}
.tile.zoomed .tile-imgwrap{transform:scale(1.5);box-shadow:0 12px 40px rgba(0,0,0,.14);background:#fff}

/* project title chip that follows the cursor over an image */
#hovertip{
  position:fixed;left:0;top:0;z-index:60;pointer-events:none;
  transform:translate(11px,11px);
  background:none;color:#e00000;
  font-size:12px;letter-spacing:.02em;line-height:1;
  padding:0;white-space:nowrap;
  opacity:0;transition:opacity .12s ease;
}
#hovertip.show{opacity:1}

/* ---- Project detail (stacked: images, full-width info lines, then text) -- */
.project{max-width:1100px;margin:0 auto}
.back{display:inline-block;color:var(--muted);font-size:13px;margin-bottom:26px}
.back:hover{color:var(--ink)}
.project-head{margin:0 0 clamp(20px,3vw,32px)}
.project-head h1{font-size:22px;font-weight:600;margin:0 0 4px;line-height:1.3}
.project-meta{color:var(--muted);font-size:13px;margin:0}
.shots{display:flex;flex-direction:column;gap:clamp(20px,3vw,40px)}
.shot{margin:0}
.shot img{
  display:block;width:auto;max-width:100%;max-height:80vh;height:auto;margin:0 auto;
  background:#fbfbfb;border:1px solid var(--line);
  padding:clamp(10px,2vw,26px);cursor:zoom-in;mix-blend-mode:multiply;
}
.shot figcaption{margin-top:8px;font-size:12px;color:var(--muted);text-align:center}
/* info grid — full-width thin lines under the images (year / material / scale) */
.specs{margin:clamp(28px,4vw,46px) 0 0;padding:0;border-top:1px solid var(--line-strong)}
.spec{display:flex;justify-content:space-between;gap:16px;padding:13px 2px;border-bottom:1px solid var(--line);font-size:13px}
.spec dt{color:var(--muted);margin:0}
.spec dd{margin:0;color:var(--ink);text-align:right}
/* description comes after the lines */
.project-body{color:#333;font-size:13px;line-height:1.6;max-width:720px;margin-top:clamp(24px,4vw,40px)}
.project-body p{margin:0 0 12px}

/* ---- Blog ---------------------------------------------------------------- */
.blog-list{max-width:640px;margin:0 auto;display:flex;flex-direction:column}
.post-link{
  display:flex;justify-content:space-between;align-items:baseline;gap:16px;
  padding:16px 2px;border-top:1px solid var(--line);
}
.post-link:first-child{border-top:0}
.post-link-title{font-size:16px}
.post-link:hover .post-link-title{text-decoration:underline;text-underline-offset:3px}
.post-link-date{font-size:12px;color:var(--muted);white-space:nowrap}

.post.single{max-width:640px;margin:0 auto}
.post.single .post-title{font-size:22px;font-weight:600;margin:6px 0 16px}
.post-date{font-size:12px;color:var(--muted);letter-spacing:.02em}
.post-body p{margin:0 0 14px;color:#333}

/* ---- Info ---------------------------------------------------------------- */
.info{
  max-width:900px;margin:0 auto;
  display:grid;grid-template-columns:1fr;gap:44px;
}
.info h2{font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0 0 16px}
.info-about p{max-width:640px;color:#333;margin:0 0 14px}
.cv-list,.contact-list{list-style:none;margin:0;padding:0}
.cv-list li{
  display:grid;grid-template-columns:120px 1fr;gap:6px 20px;
  padding:12px 0;border-top:1px solid var(--line);align-items:baseline;
}
.cv-period{color:var(--muted);font-size:13px}
.cv-role{font-size:15px}
.cv-place{grid-column:2;color:var(--muted);font-size:13px}
.contact-list li{display:flex;gap:18px;padding:11px 0;border-top:1px solid var(--line)}
.c-label{width:100px;color:var(--muted);font-size:13px}
.contact-list a:hover{text-decoration:underline;text-underline-offset:3px}

/* ---- Footer -------------------------------------------------------------- */
.footer{
  max-width:var(--maxw);margin:0 auto;
  padding:22px var(--pad) 40px;color:var(--muted);font-size:12px;
  border-top:1px solid var(--line);
}

/* ---- Lightbox ------------------------------------------------------------ */
.lightbox{
  position:fixed;inset:0;z-index:50;display:none;
  align-items:center;justify-content:center;
  background:rgba(255,255,255,.97);padding:4vw;cursor:zoom-out;
}
.lightbox.open{display:flex}
.lightbox img{max-width:100%;max-height:92vh;object-fit:contain;mix-blend-mode:multiply}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width:640px){
  .topbar{flex-direction:column;align-items:flex-start;gap:10px;padding-bottom:14px}
  .topnav{width:100%;justify-content:space-between}
  .grid{grid-template-columns:1fr 1fr;gap:16px}
  .card-img{padding:8px}
  .cv-list li{grid-template-columns:1fr}
  .cv-place{grid-column:1}
}
@media (max-width:420px){
  .grid{grid-template-columns:1fr}
}
