/* ========================================
   SHARED STYLES - bartboonstra.nl
   Used by all pages except index.html (which has its own inline copy)
======================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --gray-100: #f0eeeb;
  --gray-200: #e0ddd8;
  --gray-300: #c5c0b8;
  --gray-400: #8a8580;
  --gray-500: #6b6560;
  --warm: #d4a574;
  --warm-dark: #b8875a;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Cursor */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--black);
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.15s var(--ease-out-expo), opacity 0.3s, background 0.3s, width 0.3s, height 0.3s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  opacity: 0.9;
}
.cursor.hovering {
  transform: translate(-50%, -50%) scale(3);
  background: rgba(255,255,255,0.9);
}

/* Noise */
.noise {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(60px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-80px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(80px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 80px); }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 80px); }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 80px); }

/* Header */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: all 0.5s var(--ease-out-expo);
}
header.scrolled {
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
header .container { display: flex; justify-content: space-between; align-items: center; }

.logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

nav { display: flex; gap: 36px; align-items: center; }
nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-500);
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.3s;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0%; height: 1px;
  background: var(--black);
  transition: width 0.4s var(--ease-out-expo);
}
nav a:hover { color: var(--black); }
nav a:hover::after { width: 100%; }
nav a.active { color: var(--black); }
nav a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: all 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
}
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.btn-secondary { background: transparent; color: var(--black); border: 1.5px solid var(--black); }
.btn-secondary:hover { background: var(--black); color: var(--white); transform: translateY(-2px); }
.btn-text {
  background: none;
  color: var(--black);
  padding: 0;
  font-weight: 500;
  border-bottom: 1.5px solid var(--black);
  padding-bottom: 4px;
  transition: all 0.3s;
}
.btn-text:hover { padding-bottom: 8px; }
.btn-arrow { transition: transform 0.3s var(--ease-out-expo); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Section labels/titles */
.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: clamp(48px, 6vw, 80px);
  max-width: 800px;
}
.section-title em { font-style: italic; color: var(--gray-500); }

/* Page Hero (reusable secondary hero) */
.page-hero {
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 180px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  width: 100%;
}
.page-hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeIn 0.9s var(--ease-out-expo) 0.2s forwards;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 110px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  overflow: hidden;
}
.page-hero h1 .line {
  display: block;
  transform: translateY(100%);
  animation: slideUp 1s var(--ease-out-expo) forwards;
}
.page-hero h1 .line:nth-child(2) { animation-delay: 0.12s; }
.page-hero h1 em { font-style: italic; color: var(--gray-500); }
.page-hero p.lede {
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--gray-500);
  line-height: 1.55;
  max-width: 520px;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out-expo) 0.5s forwards;
}

@keyframes slideUp { to { transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }

/* Footer */
footer { padding: 60px 0 40px; border-top: 1px solid var(--gray-200); }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-brand { max-width: 300px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--gray-400); line-height: 1.6; }
.footer-links { display: flex; gap: 60px; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 10px;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--black); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  font-size: 13px;
  color: var(--gray-400);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-socials { display: flex; gap: 20px; }
.footer-socials a { color: var(--gray-400); transition: color 0.3s; }
.footer-socials a:hover { color: var(--black); }

/* Page loader */
.page-loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--black);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s 0.3s, visibility 0s 0.9s;
}
.page-loader.done { opacity: 0; visibility: hidden; }
.page-loader-text {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 56px);
  color: var(--white);
  opacity: 0;
  animation: loaderFade 0.8s var(--ease-out-expo) 0.1s forwards;
}
@keyframes loaderFade {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor { display: none; }
  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 999;
  }
  nav.open a { font-size: 24px; font-family: var(--serif); color: var(--black); }
  .nav-toggle { display: flex; z-index: 1001; }
  .footer-links { gap: 32px; }
  .page-hero { padding: 140px 0 60px; min-height: auto; }
}
