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

:root {
  --bg:     #fcfcfb;
  --ink:    #131312;
  --muted:  #8c8c87;
  --line:   #e8e7e2;
  --accent: #e8402a;
  --accent-ink: #cf3522;
  --card:   #f0efe9;
  --sans:   'Jost', system-ui, sans-serif;
  --maxw:   1280px;
  --pad:    2.2rem;
  --radius: 14px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9rem; font-weight: 600; padding: .8rem 1.5rem;
  border-radius: 999px; transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn-blue { background: var(--accent); color: #fff; }
.btn-blue:hover { background: var(--accent-ink); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252,252,251,.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 1rem var(--pad);
  display: flex; justify-content: space-between; align-items: center;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: 1.05rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links .btn { padding: .6rem 1.3rem; font-size: .95rem; color: #fff; }

/* HERO */
.hero {
  min-height: calc(100vh - 68px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 500; background: var(--card);
  padding: .5rem 1rem; border-radius: 999px; margin-bottom: 2.4rem;
}
.hero-badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.25} }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -.025em;
  max-width: 20ch;
}
.hero h1 .accent { color: var(--accent); }
.hero-foot {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 2rem; margin-top: 3rem;
}
.hero-intro { font-size: 1.08rem; line-height: 1.7; color: #4a4a47; max-width: 48ch; }
.hero-intro strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-actions .btn { min-width: 190px; justify-content: center; }

/* PAGE HEADER (cases / contact) */
.page-head { padding: 5.5rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.page-head .eyebrow {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.4rem;
}
.page-head h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05;
}
.page-head p { margin-top: 1.4rem; color: #4a4a47; max-width: 50ch; font-size: 1.06rem; line-height: 1.7; }

/* SECTION HEAD */
.sec-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 5rem 0 2.4rem; flex-wrap: wrap; gap: 1rem;
}
.sec-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.025em; }
.sec-note { font-size: .9rem; color: var(--muted); max-width: 32ch; }

/* FEATURED */
.feature { cursor: pointer; display: block; }
.feature-img {
  aspect-ratio: 16 / 8.5; background: var(--card); border-radius: var(--radius);
  overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center;
}
.feature-img img { width:100%; height:100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.feature:hover .feature-img img { transform: scale(1.03); }
.ph { color: #d6d4cb; font-weight: 700; letter-spacing: -.05em; user-select: none; }
.feature .ph { font-size: 6rem; }
.tag {
  position: absolute; top: 1.1rem; left: 1.1rem; background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .45rem .9rem; border-radius: 999px;
}
.feature-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 1.3rem; gap: 2rem; flex-wrap: wrap;
}
.feature-title {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -.02em;
  display: inline-flex; align-items: baseline; gap: .6rem;
}
.feature-title .idx { font-size: .82rem; color: var(--muted); font-weight: 600; }
.feature-desc { font-size: .96rem; color: var(--muted); max-width: 40ch; }

/* WORK GRID */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 2.2rem; }
.work-grid--three { grid-template-columns: repeat(3, 1fr); }
.project { cursor: pointer; }
.project-img {
  aspect-ratio: 4 / 3; background: var(--card); border-radius: var(--radius);
  overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center;
}
.project-img img { width:100%; height:100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.project:hover .project-img img { transform: scale(1.04); }
.project .ph { font-size: 4rem; }
.project-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1.1rem; gap: 1rem; }
.project-name {
  font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em;
  display: inline-flex; align-items: baseline; gap: .55rem; transition: color .2s;
}
.project-name .idx { font-size: .78rem; color: var(--muted); font-weight: 600; }
.project:hover .project-name { color: var(--accent); }
.project-cat { font-size: .84rem; color: var(--muted); margin-top: .25rem; }
.project-year { font-size: .84rem; color: var(--muted); }

.work-more { display: flex; justify-content: center; margin-top: 3.5rem; }
#work { padding-bottom: 5rem; }

/* CASES — lijst met grote afbeelding */
.case-list { border-top: 1px solid var(--line); }
.case-row {
  display: grid; grid-template-columns: 34% 1fr;
  align-items: center; gap: 2.5rem; padding: 1.8rem 0;
  border-bottom: 1px solid var(--line); position: relative;
  transition: padding-left .3s;
}
.case-row:hover { padding-left: 1.2rem; }
.case-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--accent); border-radius: 2px; transition: width .3s;
}
.case-row:hover::before { width: 4px; }
.case-thumb {
  width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: var(--card); display: flex; align-items: center; justify-content: center;
}
.case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.case-row:hover .case-thumb img { transform: scale(1.05); }
.case-thumb .ph { font-size: 3.5rem; }
.case-thumb.thumb-logo { background: var(--card); }
.case-thumb.thumb-logo img { object-fit: contain; padding: 16%; }
.case-main {
  display: flex; flex-direction: column; align-items: flex-end; text-align: right;
  justify-self: end; gap: .4rem; min-width: 0;
}
.case-name { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; transition: color .2s; }
.case-row:hover .case-name { color: var(--accent); }
.case-cat { font-size: .92rem; color: var(--muted); }
.case-year { font-size: .85rem; color: var(--muted); margin-top: .8rem; }

/* DIENSTEN — compacte rij-lijst */
#diensten { background: var(--card); padding-bottom: 6rem; }
.diensten-head { padding: 5rem 0 1.6rem; max-width: 44ch; }
.sec-eyebrow {
  display: block; font-size: .76rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.diensten-sub { margin-top: 1.1rem; font-size: 1.02rem; line-height: 1.65; color: var(--muted); }
.services { border-top: 1px solid var(--line); margin-top: 2rem; }
.svc-row {
  display: grid; grid-template-columns: 3.5rem 1fr 1.6fr;
  align-items: center; gap: 2rem; padding: 2.4rem 0;
  border-bottom: 1px solid var(--line);
}
.svc-num { font-size: .82rem; font-weight: 600; color: var(--accent); }
.svc-name { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; }
.svc-desc { font-size: .92rem; line-height: 1.65; color: var(--muted); }

/* OVER */
#about { background: var(--ink); color: #fff; }
.about {
  display: grid; grid-template-columns: 340px 1fr; gap: 4.5rem; padding: 5.5rem 0;
}
.about-photo { width: 100%; border-radius: var(--radius); filter: grayscale(100%); transition: filter .5s; }
.about-photo:hover { filter: grayscale(0); }
.about-body h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; line-height: 1.12;
  letter-spacing: -.025em; max-width: 18ch; margin-bottom: 2rem;
}
.about-body h2 .accent { color: var(--accent); }
.about-body p { font-size: 1.06rem; line-height: 1.75; color: rgba(255,255,255,.72); max-width: 56ch; }
.about-body p + p { margin-top: 1.2rem; }
.skills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.4rem; }
.skill { font-size: .84rem; font-weight: 500; border: 1px solid rgba(255,255,255,.22); padding: .5rem 1.1rem; border-radius: 999px; }

/* CONTACT — get in touch */
.contact { background: var(--ink); color: #fff; padding: 7rem 2.2rem 6rem; text-align: center; }
.contact-outline {
  font-size: clamp(1.9rem, 5vw, 4rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em;
  color: #fff; max-width: 24ch; margin: 0 auto;
}
.contact-ready { font-size: clamp(1.1rem, 2.4vw, 1.55rem); font-weight: 700; margin-top: 2rem; letter-spacing: -.01em; }
.contact-box {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 2.8rem;
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55);
  font-size: .95rem; font-weight: 600; padding: .95rem 1.9rem; border-radius: 999px;
  transition: background .25s, border-color .25s, transform .2s;
}
.contact-box:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.contact-socials { display: flex; justify-content: center; gap: 1.8rem; margin-top: 3.2rem; }
.contact-socials a { font-size: .85rem; color: rgba(255,255,255,.55); transition: color .2s; }
.contact-socials a:hover { color: #fff; }

/* contact-detailrij (contactpagina) */
.contact-details {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 3rem;
  margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid rgba(255,255,255,.12);
}
.contact-detail .label {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: .5rem;
}
.contact-detail .val { font-size: 1rem; font-weight: 500; color: #fff; }
.contact-detail a.val:hover { color: var(--accent); }

/* CONTACT PAGE — uitgebreid */
.contact-page {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 4.5rem;
  padding: 4.5rem 0 6rem;
}
.contact-col h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.6rem; letter-spacing: -.01em; }
.info-item { padding: 1.3rem 0; border-top: 1px solid var(--line); }
.info-item:last-of-type { border-bottom: 1px solid var(--line); }
.info-item .label {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .4rem;
}
.info-item .val { font-size: 1.05rem; font-weight: 500; overflow-wrap: anywhere; display: block; }
.info-item a.val { transition: color .2s; }
.info-item a.val:hover { color: var(--accent); }
.info-socials { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; margin-top: 2rem; }
.info-socials a { font-size: .85rem; color: var(--muted); transition: color .2s; }
.info-socials a:hover { color: var(--ink); }

.contact-form .form-row { margin-bottom: 1.3rem; }
.contact-form label {
  display: block; font-size: .78rem; font-weight: 500;
  color: var(--muted); margin-bottom: .5rem;
}
.contact-form input, .contact-form textarea {
  width: 100%; font-family: inherit; font-size: 1rem;
  padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); transition: border-color .2s;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form button { margin-top: .4rem; border: none; cursor: pointer; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 1rem; }

/* PROJECT DETAIL */
.project-hero { padding: 3rem 0 2.5rem; }
.project-back { display: inline-block; font-size: .9rem; color: var(--muted); margin-bottom: 2.5rem; transition: color .2s; }
.project-back:hover { color: var(--accent); }
.project-hero-meta { font-size: .85rem; color: var(--accent); font-weight: 600; letter-spacing: .04em; margin-bottom: 1rem; }
.project-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.04; max-width: 16ch; }
.project-hero .lead { margin-top: 1.4rem; font-size: 1.1rem; line-height: 1.6; color: #4a4a47; max-width: 52ch; }

.project-cover { aspect-ratio: 16 / 9; background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 4rem; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.project-cover .ph { font-size: 6rem; }

.project-body { display: grid; grid-template-columns: 240px 1fr; gap: 4rem; padding-bottom: 4rem; }
.project-details { display: flex; flex-direction: column; gap: 1.5rem; align-self: start; }
.detail-item .label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.detail-item .val { font-size: 1rem; font-weight: 500; }
.project-text p { font-size: 1.08rem; line-height: 1.8; color: #46463f; max-width: 60ch; }
.project-text p + p { margin-top: 1.2rem; }
.project-text h3 { font-size: 1.3rem; font-weight: 700; margin: 2.4rem 0 1rem; letter-spacing: -.01em; }

.project-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.6rem; padding-bottom: 4rem; align-items: start; }
.project-gallery .shot {
  grid-column: span 3; aspect-ratio: 4 / 3;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.project-gallery .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.project-gallery .shot:hover img { transform: scale(1.04); }
.project-gallery .shot .ph { font-size: 2rem; }
/* formaten voor een dynamische compositie */
.shot.full        { grid-column: span 6; aspect-ratio: 16 / 7; }
.shot.two-thirds  { grid-column: span 4; aspect-ratio: 3 / 2; }
.shot.one-third   { grid-column: span 2; aspect-ratio: 3 / 4; }
.shot.half        { grid-column: span 3; aspect-ratio: 4 / 3; }

/* PROJECT CAROUSEL */
.carousel { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--card); margin-bottom: 4rem; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; display: flex; align-items: center; justify-content: center; }
.carousel-slide.active { opacity: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide .ph { font-size: 2rem; }
.carousel-slide.slide-logo { background: var(--card); }
.carousel-slide.slide-logo img { width: 52%; height: auto; max-height: 40%; object-fit: contain; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.85); color: var(--ink); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: background .2s, transform .2s;
}
.carousel-btn:hover { background: #fff; }
.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }
.carousel-dots { position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 2; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.55); padding: 0; transition: background .25s, width .25s, border-radius .25s; }
.carousel-dots button.active { background: var(--accent); width: 22px; border-radius: 4px; }

/* PROJECT FLIPBOOK (bladerboek) */
.flipbook-wrap { margin-bottom: 4rem; }
.flipbook-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.flipbook { position: relative; width: 100%; aspect-ratio: 16 / 9; perspective: 2200px; cursor: pointer; }
.flip-page { position: absolute; inset: 0; transform-origin: left center; transition: transform .8s cubic-bezier(.3,.7,.3,1); transform-style: preserve-3d; }
.flip-page img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--radius); backface-visibility: hidden; box-shadow: 0 12px 34px rgba(0,0,0,.14); }
.flip-page.flipped { transform: rotateY(-180deg); }
.flipbook-controls { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-top: 1.2rem; }
.flipbook-controls button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1rem; transition: border-color .2s, transform .2s; }
.flipbook-controls button:hover { border-color: var(--ink); transform: translateY(-2px); }
.flipbook-counter { font-size: .85rem; color: var(--muted); min-width: 4.5rem; text-align: center; }

.project-nav { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 2.4rem 0; gap: 1rem; flex-wrap: wrap; }
.project-nav a { font-size: .95rem; color: var(--muted); transition: color .2s; }
.project-nav a:hover { color: var(--accent); }
.project-nav .pn-next { text-align: right; }
.project-nav .pn-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .3rem; }
.project-nav .pn-title { font-weight: 700; color: var(--ink); font-size: 1.05rem; }

@media (max-width: 860px) {
  .project-body { grid-template-columns: 1fr; gap: 2rem; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery .shot { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .project-cover { aspect-ratio: 4 / 3; }
}

/* FOOTER — donker, sluit aan op contact */
footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 0; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  font-size: .78rem; color: rgba(255,255,255,.45);
}

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* CUSTOM CURSOR */
@media (hover: hover) and (pointer: fine) {
  * { cursor: none; }
  input, textarea, [contenteditable] { cursor: text; }
}
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10000;
  border-radius: 50%; will-change: transform;
}
.cursor-dot {
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  background: var(--accent); transition: opacity .2s;
}
.cursor-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1.5px solid var(--accent); opacity: .45;
  transition: width .25s, height .25s, margin .25s, opacity .25s;
}
body.cursor-hover .cursor-ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; opacity: .85; }
body.cursor-hover .cursor-dot { opacity: 0; }

/* responsive */
@media (max-width: 860px) {
  :root { --pad: 1.3rem; }
  .nav-logo img { height: 32px; }
  .nav-links { gap: 1.1rem; }
  .nav-links a:not(.btn) { font-size: .85rem; }
  .hero { padding: 4rem 0 3.5rem; }
  .work-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .svc-row { grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1.8rem 0; }
  .svc-desc { display: none; }
  .case-row { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem 0; }
  .case-main { align-items: flex-start; text-align: left; justify-self: start; }
  .case-year, .case-arrow { display: none; }
  .about { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 0; }
  .about-photo { max-width: 260px; }
  .feature-img { aspect-ratio: 4 / 3; }
  .contact { padding: 4.5rem 1.3rem; }
  .contact-box { padding: 1.05rem 1.8rem; font-size: .92rem; }
  .contact-page { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 0 4rem; }
  .page-head { padding: 3.5rem 0 2.5rem; }
}
