/* ================================================
   JORIS EENINK PRODUCTIONS — Stylesheet
   ================================================ */

/* ─── Google Fonts worden geladen via <link> in index.html ─── */

/* ─── CSS Custom Properties ────────────────────────────────── */
:root {
  --orange:  #D94E1F;
  --black:   #0A0A0A;
  --white:   #F5F0EB;
  --muted:   #8A8580;
  --nav-h:   64px;
}

/* ─── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Mono', monospace;
  overflow-x: hidden;
  cursor: none;
}

a, button, [role="button"] { cursor: none; }

img { display: block; max-width: 100%; }

/* ─── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar          { width: 4px; }
::-webkit-scrollbar-track    { background: var(--black); }
::-webkit-scrollbar-thumb    { background: var(--orange); border-radius: 2px; }

/* ─── Film grain overlay ───────────────────────────────────── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ─── Custom cursor ────────────────────────────────────────── */
#cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition:
    width   0.2s ease,
    height  0.2s ease,
    background 0.2s ease,
    border  0.2s ease;
  will-change: left, top;
}
#cursor.hovering {
  width: 30px;
  height: 30px;
  background: transparent;
  border: 1.5px solid var(--orange);
}
#cursor.clicking {
  transform: translate(-50%, -50%) scale(0.6);
}

/* ─── Section fade-in ──────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(36px);
  /* cubic-bezier expo-out: snel begin, zacht einde — cinematisch gevoel */
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Navigation ───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 900;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
}
.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}
.nav-logo span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--white);
}
/* Desktop nav links hidden — hamburger-only navigation */
.nav-links { display: none; }

/* Hamburger — altijd zichtbaar, border-box stijl */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid rgba(245, 240, 235, 0.22);
  padding: 13px 16px;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.hamburger:hover {
  border-color: var(--orange);
  background: rgba(217, 78, 31, 0.08);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1),
              opacity  0.22s ease,
              width    0.3s  cubic-bezier(0.23, 1, 0.32, 1);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
/* Menu links: staggered slide-up bij openen */
.mobile-menu a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 10vw, 64px);
  color: var(--white);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.23, 1, 0.32, 1), color 0.2s;
}
.mobile-menu.open a             { opacity: 1; transform: translateY(0); }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu a:hover { color: var(--orange); }

/* ─── Hero ─────────────────────────────────────────────────── */
#hero {
  height: 100dvh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--black); /* fallback als video niet laadt */
  overflow: hidden;
}

/* Video achtergrond */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Donkere overlay over de video */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.2);
  z-index: 1;
}

/* Stagger fade-ins */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero flex-items boven de video (z-index werkt op flex items zonder position) */
.hero-logo {
  max-width: min(480px, 80vw);
  animation: fadeUp 1.2s ease forwards;
  z-index: 2;
}
.hero-tagline {
  margin-top: 28px;
  font-family: 'DM Mono', monospace;
  font-size: clamp(11px, 1.5vw, 14px);
  color: rgba(245, 240, 235, 0.7);
  letter-spacing: 0.15em;
  text-transform: lowercase;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
  z-index: 2;
}

/* Orange line */
.hero-line-wrap {
  width: min(480px, 80vw);
  margin-top: 28px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.1s ease forwards;
  animation-delay: 0.75s;
  z-index: 2;
}
@keyframes lineExpand {
  from { width: 0; }
  to   { width: 100%; }
}
.hero-line {
  height: 1px;
  background: var(--orange);
  width: 0;
  animation: lineExpand 0.6s ease forwards;
  animation-delay: 0.8s;
}

/* Scroll indicator — gecentreerd onderaan */
.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 2;
  animation: fadeUpCentered 0.6s ease forwards;
  animation-delay: 1.4s;
  opacity: 0;
}
@keyframes fadeUpCentered {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hero-scroll-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(245, 240, 235, 0.7);
  text-transform: uppercase;
}
.hero-scroll-chevron {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.hero-scroll-chevron span {
  display: block;
  width: 14px;
  height: 14px;
  border-right: 1.5px solid rgba(245, 240, 235, 0.7);
  border-bottom: 1.5px solid rgba(245, 240, 235, 0.7);
  transform: rotate(45deg);
  animation: chevron-cascade 1.6s ease-in-out infinite;
}
.hero-scroll-chevron span:nth-child(1) { animation-delay: 0s; }
.hero-scroll-chevron span:nth-child(2) { animation-delay: 0.28s; }
@keyframes chevron-cascade {
  0%, 100% { opacity: 0; }
  45%       { opacity: 0.85; }
}

/* ─── Section shared ───────────────────────────────────────── */
section {
  padding: 100px 40px;
}

.section-header {
  margin-bottom: 60px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 10vw, 140px);
  line-height: 0.9;
  color: var(--white);
  text-align: left;
}
.section-counter {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.1em;
  margin-top: 8px;
}

/* ─── Intro — tagline split sectie ─────────────────────────── */
#intro {
  background: var(--black);
  border-top: 1px solid #1a1a1a;
  padding: 120px 40px;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.95;
  color: var(--white);
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
}
/* Oplopende inspringing per regel — trap-effect */
.intro-line          { display: block; }
.intro-line--1       { padding-left: 0; }
.intro-line--2       { padding-left: clamp(20px, 3vw, 48px); }
.intro-line--3       { padding-left: clamp(40px, 6vw, 96px); }
.intro-right {
  padding-left: 64px;
}
.intro-body {
  font-family: 'DM Mono', monospace;
  font-size: clamp(11px, 1vw, 13px);
  line-height: 1.85;
  color: var(--muted);
  max-width: 420px;
}
.intro-highlight { color: var(--orange); }
.intro-buttons {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(245, 240, 235, 0.22);
  padding: 13px 22px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.btn-outline:hover {
  border-color: var(--orange);
  background: rgba(217, 78, 31, 0.08);
}
.btn-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ─── Portfolio — staggered gallery ────────────────────────── */
#werk {
  background: var(--black);
  padding-bottom: 140px;
}
.portfolio-stage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 0;
}
.s-card {
  position: relative;
  background: #0e0e0e;
  overflow: hidden;
  min-width: 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* Overlappende plaatsing — kaarten delen kolomcellen */
.s-card:nth-child(1) {
  grid-column: 1 / 6;    /* 5 kolommen, raakt linkerrand */
  grid-row: 1;
  z-index: 1;
  align-self: start;
}
.s-card:nth-child(2) {
  grid-column: 4 / 10;   /* 6 kolommen midden — 2 col overlap links én rechts */
  grid-row: 1;
  z-index: 3;
  align-self: start;
  margin-top: 320px;
}
.s-card:nth-child(3) {
  grid-column: 8 / 13;   /* 5 kolommen, raakt rechterrand */
  grid-row: 1;
  z-index: 2;
  align-self: start;
  margin-top: 50px;
}
.s-card:hover {
  transform: scale(1.02);
  z-index: 10 !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
/* Title bar */
.s-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #1e1e1e;
  border-bottom: 1px solid #2a2a2a;
}
.s-card-title {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
}
.s-card-type {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
}
/* 16:9 video */
.s-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #0a0a0a;
}
.s-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
/* Orange border on hover */
.s-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  pointer-events: none;
  z-index: 5;
}
.s-card:hover::after { border-color: var(--orange); }

/* ─── Services — artefakt numbered list ────────────────────── */
#wat-ik-doe {
  background: var(--black);
  border-top: 1px solid #1a1a1a;
}
.services-list { margin-top: 0; }
.service-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0 80px;
  padding: 56px 0 56px 4px;
  border-bottom: 1px solid #1a1a1a;
  border-left: 2px solid transparent;
  align-items: start;
  transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-left-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-row:first-child { border-top: 1px solid #1a1a1a; }
.service-row:hover {
  background: rgba(217, 78, 31, 0.04);
  border-left-color: var(--orange);
}
.service-num {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.service-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1;
}
.service-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
}
.service-items li {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 20px;
  position: relative;
}
.service-items li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 11px;
}

/* ─── About ────────────────────────────────────────────────── */
#over-mij {
  background: var(--black);
  border-top: 1px solid #1a1a1a;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  color: var(--white);
  line-height: 0.95;
  margin-bottom: 28px;
}
.about-body {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 480px;
}
.kvk-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  border: 1px solid #333;
  border-radius: 20px;
  padding: 7px 16px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--white);
  letter-spacing: 0.1em;
}
.kvk-badge .check { color: var(--orange); }
.about-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #111;
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.4s ease;
}
.about-photo:hover img { filter: grayscale(0%); }

/* Placeholder when photo is missing */
.about-photo-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-align: center;
  padding: 24px;
  border: 1px dashed #333;
}

/* ─── Contact — boazwalma card style ───────────────────────── */
#contact {
  background: var(--black);
  border-top: 1px solid #1a1a1a;
  padding: 80px 40px 0;
  position: relative;
  overflow: hidden;
}
.contact-intro {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 36px;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  position: relative;
  z-index: 2;
  padding-bottom: 80px;
}
.contact-card {
  border: 1px solid #232323;
  border-radius: 4px;
  padding: 28px 28px 40px;
  transition: border-color 0.25s ease;
}
.contact-card:hover { border-color: #3a3a3a; }
.contact-card-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 20px;
}
.contact-card-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-card-items li {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  color: var(--white);
  letter-spacing: 0.03em;
  line-height: 1.5;
}
.contact-card-items a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-card-items a:hover { color: var(--orange); }

/* Giant watermark */
.contact-watermark {
  position: absolute;
  bottom: -24px;
  left: 0;
  right: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(80px, 16vw, 220px);
  color: rgba(245, 240, 235, 0.035);
  text-align: center;
  letter-spacing: -0.01em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  line-height: 1;
}

/* ─── Footer bar ────────────────────────────────────────────── */
footer {
  border-top: 1px solid #1a1a1a;
  padding: 22px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer p {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  /* Portfolio: iets minder offset bij smallere schermen */
  .s-card:nth-child(2) { margin-top: 110px; }
  .s-card:nth-child(3) { margin-top: 36px; }
  .service-row { grid-template-columns: 200px 1fr; gap: 0 40px; }
}

@media (max-width: 860px) {
  /* Portfolio: één kolom, expliciete rijen — overlapping verdwijnt */
  .portfolio-stage { grid-template-columns: 1fr; grid-template-rows: auto; }
  .s-card:nth-child(1) { grid-column: 1; grid-row: 1; }
  .s-card:nth-child(2) { grid-column: 1; grid-row: 2; margin-top: 16px; }
  .s-card:nth-child(3) { grid-column: 1; grid-row: 3; margin-top: 16px; z-index: 1; }

  /* Services: label boven items */
  .service-row { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; }

  /* Contact: 2 kolommen */
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .contact-cards .contact-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  nav { padding: 0 24px; }
  section { padding: 80px 24px; }
  #contact { padding: 64px 24px 0; }
  footer { padding: 20px 24px; flex-direction: column; gap: 8px; text-align: center; }

  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-right { padding-left: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { aspect-ratio: 4/3; order: -1; }

  .hero-scroll { bottom: 32px; }

  .section-title { font-size: clamp(56px, 14vw, 100px); }
  .contact-watermark { font-size: clamp(60px, 18vw, 120px); }
}

@media (max-width: 480px) {
  .contact-cards { grid-template-columns: 1fr; }
  .contact-cards .contact-card:last-child { grid-column: auto; }
}
