/* ============================================
   mauritsvanderkruit.nl — shared design system
   ============================================ */

:root {
  --bg: #0d0d0f;
  --bg-alt: #16161a;
  --bg-card: #17171b;
  --border: #26262b;
  --text: #f2f0ec;
  --text-dim: #9b9a9e;
  --text-faint: #6b6a6f;
  --accent: #e8734a;
  --accent-soft: rgba(232, 115, 74, 0.14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; border-radius: 10px; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 450; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; color: var(--text); }

p { color: var(--text-dim); margin: 0 0 1em; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.9em;
  display: block;
}

/* ---------- nav ---------- */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 32px; border-top: 1px solid var(--border); }
  .nav-toggle { display: block; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232, 115, 74, 0.18);
}
.btn.primary {
  background: linear-gradient(180deg, #ef8258, var(--accent));
  border-color: var(--accent);
  color: #1a0f0a;
  box-shadow: 0 4px 18px rgba(232, 115, 74, 0.35);
}
.btn.primary:hover {
  color: #1a0f0a;
  background: linear-gradient(180deg, #f2946e, #ef8258);
  border-color: #ef8258;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(232, 115, 74, 0.45);
}
.btn.primary:active, .btn:active { transform: translateY(0); }

/* ---------- hero ---------- */
.hero {
  padding: 120px 0 90px;
  border-bottom: 1px solid var(--border);
}
.hero p.lede {
  font-size: 1.15rem;
  max-width: 640px;
  color: var(--text-dim);
}
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- sections ---------- */
section { padding: 80px 0; }
section.tight { padding: 50px 0; }
.section-head { margin-bottom: 44px; max-width: 640px; }

/* ---------- project grid ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) { .project-grid { grid-template-columns: 1fr; } }

.project-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-card), var(--bg));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(140px 100px at 100% 0%, var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(232, 115, 74, 0.2);
}
.project-card:hover::before { opacity: 1; }
.project-card .pc-top { position: relative; z-index: 1; display: flex; justify-content: flex-end; }
.project-card .pc-num {
  color: var(--border);
  font-size: 4.6rem;
  font-weight: 500;
  font-family: var(--serif);
  line-height: 1;
  transition: color 0.25s ease;
}
.project-card:hover .pc-num { color: rgba(232, 115, 74, 0.4); }
.project-card > div:last-child { position: relative; z-index: 1; padding-right: 52px; }
.project-card h3 { margin-bottom: 6px; transition: color 0.15s ease; }
.project-card:hover h3 { color: var(--accent); }
.project-card .pc-role { color: var(--text-faint); font-size: 0.85rem; }
.project-card .pc-arrow {
  position: absolute;
  right: 26px;
  bottom: 26px;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-dim);
  font-size: 1.05rem;
  transition: all 0.2s ease;
}
.project-card:hover .pc-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a0f0a;
  transform: translate(2px, -2px);
}

/* ---------- stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.stat .num { font-family: var(--serif); font-size: 1.9rem; color: var(--accent); display: block; }
.stat .label { font-size: 0.85rem; color: var(--text-dim); margin-top: 4px; }

/* ---------- timeline (experience) ---------- */
.role {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
}
@media (max-width: 720px) { .role { grid-template-columns: 1fr; gap: 12px; } }
.role .meta { color: var(--text-faint); font-size: 0.85rem; }
.role .meta .dates { color: var(--text-dim); display: block; margin-top: 4px; }
.role ul { padding-left: 18px; color: var(--text-dim); }
.role li { margin-bottom: 6px; }
.role-logo { height: 34px; width: auto; border-radius: 4px; margin-bottom: 10px; filter: grayscale(1) brightness(1.4); opacity: 0.85; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------- case study ---------- */
.case-hero {
  padding: 110px 0 60px;
  border-bottom: 1px solid var(--border);
}
.case-hero .meta-row {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border);
}
.case-hero .meta-row div { font-size: 0.85rem; color: var(--text-faint); }
.case-hero .meta-row strong { display: block; color: var(--text); font-size: 0.95rem; font-weight: 500; margin-top: 3px; }

.case-section { padding: 56px 0; border-bottom: 1px solid var(--border); }
.case-section:last-of-type { border-bottom: none; }
.case-section h2 { margin-bottom: 20px; }
.case-section .body-text { max-width: 720px; }
.case-section .body-text p { white-space: pre-line; }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.shot-grid figure { margin: 0; }
.shot-grid figcaption { color: var(--text-faint); font-size: 0.82rem; margin-top: 8px; }

.wip-badge {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.project-nav {
  display: flex; justify-content: space-between; padding: 40px 0;
  border-top: 1px solid var(--border);
}
.project-nav a { color: var(--text-dim); font-size: 0.9rem; }
.project-nav a:hover { color: var(--accent); }

/* ---------- contact / footer ---------- */
.contact {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 56px;
  text-align: center;
  margin: 0 32px;
}
@media (max-width: 720px) { .contact { padding: 36px 24px; margin: 0 16px; } }
.contact h2 { margin-bottom: 10px; }

footer {
  padding: 40px 32px 60px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-faint); font-size: 0.85rem;
  max-width: var(--max); margin: 0 auto;
  flex-wrap: wrap; gap: 12px;
}
footer a { color: var(--text-dim); }
footer a:hover { color: var(--accent); }

.about-photo { border-radius: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.logo-strip { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; margin-top: 20px; }
.logo-strip img { height: 26px; width: auto; border-radius: 0; }

.pub-list { list-style: none; padding: 0; margin: 0; }
.pub-list li { padding: 14px 0; border-top: 1px solid var(--border); font-size: 0.95rem; color: var(--text-dim); }
.pub-list li a { color: var(--text); }
.pub-list li a:hover { color: var(--accent); }
