/* ============================================================
   CRESCO performance — light editorial / wearebrand-DNA
   ============================================================ */

:root {
  /* palette — overridden by Tweaks */
  --paper: #f7f7f4;
  --paper-2: #efefea;
  --ink: #16181c;
  --ink-soft: #43474e;
  --ink-faint: #8b8f97;
  --line: rgba(22, 24, 28, 0.12);
  --line-soft: rgba(22, 24, 28, 0.07);
  --accent: #16be7b;
  --accent-deep: #0e9a62;
  --accent-tint: rgba(22, 190, 123, 0.12);
  --white: #ffffff;

  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 72px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- heading-style tweak: serif (default) vs sans ---- */
html[data-heads="sans"] {
  --display: "Hanken Grotesk", system-ui, sans-serif;
}

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

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

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

::selection { background: var(--accent); color: #fff; }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
  width: 100%;
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

/* ============================================================
   WORDMARK
   ============================================================ */
.wordmark {
  font-size: var(--wm-size, 26px);
  line-height: 0.86;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 0.12em;
}
.wordmark .wm-cresco {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.wordmark .wm-perf {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.wordmark .wm-perf .dot { color: var(--accent); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
    box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  mix-blend-mode: normal;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  padding-block: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 18px; }

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.lang button {
  background: none;
  border: 0;
  color: var(--ink-faint);
  padding: 6px 11px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.lang button.active { background: var(--ink); color: var(--paper); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); color: #fff; }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.big { padding: 17px 32px; font-size: 15px; }

.nav-burger { display: none; }

/* ============================================================
   HERO — full-bleed slideshow + parallax
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--paper);
}
.hero-track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 1.1s var(--ease);
}
.hero-slide.active { opacity: 1; visibility: visible; }

.hero-visual {
  position: absolute;
  inset: -8% -4%;
  will-change: transform;
}

.hero-content {
  position: absolute;
  left: 0; right: 0; bottom: clamp(72px, 12vh, 150px);
  padding-inline: var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero-kicker {
  opacity: 0;
  transform: translateY(20px);
  margin-bottom: 22px;
}
.hero-headline {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(46px, 9.5vw, 150px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--ink);
  max-width: 16ch;
  text-wrap: balance;
}
html[data-heads="sans"] .hero-headline { font-weight: 700; letter-spacing: -0.045em; }
.hero-headline .em {
  font-style: italic;
  color: var(--accent-deep);
}
html[data-heads="sans"] .hero-headline .em { font-style: normal; }
.hero-headline .ln {
  display: block;
  opacity: 0;
  transform: translateY(40px);
}
.hero-sub {
  margin-top: 26px;
  font-size: clamp(15px, 1.35vw, 19px);
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
}
.hero-cta {
  margin-top: 34px;
  opacity: 0;
  transform: translateY(20px);
}

/* active-slide entrance */
.hero-slide.active .hero-kicker,
.hero-slide.active .hero-sub,
.hero-slide.active .hero-cta {
  opacity: 1; transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.hero-slide.active .hero-kicker { transition-delay: 0.25s; }
.hero-slide.active .hero-sub { transition-delay: 0.55s; }
.hero-slide.active .hero-cta { transition-delay: 0.7s; }
.hero-slide.active .hero-headline .ln {
  opacity: 1; transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.hero-slide.active .hero-headline .ln:nth-child(1) { transition-delay: 0.32s; }
.hero-slide.active .hero-headline .ln:nth-child(2) { transition-delay: 0.42s; }
.hero-slide.active .hero-headline .ln:nth-child(3) { transition-delay: 0.52s; }

/* hero controls */
.hero-ui {
  position: absolute;
  left: 0; right: 0; bottom: 34px;
  padding-inline: var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}
.hero-dots { display: flex; gap: 12px; align-items: center; }
.hero-dot {
  position: relative;
  width: 46px; height: 3px;
  background: var(--line);
  border: 0; padding: 0; cursor: pointer;
  overflow: hidden;
}
.hero-dot::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}
.hero-dot.active::after { animation: dotfill var(--slide-dur, 6s) linear forwards; }
@keyframes dotfill { to { transform: scaleX(1); } }

.hero-arrows { display: flex; gap: 8px; }
.hero-arrow {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 60%, transparent);
  color: var(--ink);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero-arrow:hover { background: var(--ink); color: var(--paper); transform: scale(1.05); }

.scroll-hint {
  position: absolute;
  right: var(--gutter); top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
  z-index: 5;
  display: flex; align-items: center; gap: 12px;
}
.scroll-hint::after { content: ""; width: 40px; height: 1px; background: var(--ink-faint); animation: hint 2s var(--ease) infinite; }
@keyframes hint { 0%,100% { opacity: 0.3; transform: scaleX(0.5); } 50% { opacity: 1; transform: scaleX(1); } }

/* ============================================================
   ABSTRACT CREATIVE VISUALS (brand-palette CSS art)
   ============================================================ */
.viz { position: absolute; inset: 0; background: var(--paper); overflow: hidden; }
.viz::before, .viz::after { content: ""; position: absolute; }

/* fine grid wash shared */
.viz .grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 50%, #000 35%, transparent 78%);
}
.viz .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.viz .ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  opacity: 0.16;
}

/* slide 1 — large soft accent glow rising from corner */
.viz-1 { background: radial-gradient(130% 120% at 88% 110%, var(--accent-tint), transparent 55%), var(--paper); }
.viz-1 .blob {
  width: 64vw; height: 64vw; right: -14vw; bottom: -20vw;
  background: radial-gradient(circle at 38% 36%, var(--accent), var(--accent-deep) 52%, transparent 70%);
  opacity: 0.95; filter: blur(0);
}
.viz-1 .blob::after {
  content: ""; position: absolute; inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
}
.viz-1 .ring { width: 46vw; height: 46vw; left: -8vw; top: -10vw; }

/* slide 2 — orbiting rings + small accent dot */
.viz-2 { background: var(--paper); }
.viz-2 .ring.a { width: 70vw; height: 70vw; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.viz-2 .ring.b { width: 48vw; height: 48vw; left: 50%; top: 50%; transform: translate(-50%,-50%); opacity: 0.22; }
.viz-2 .blob {
  width: 16vw; height: 16vw; left: 68%; top: 30%;
  background: radial-gradient(circle at 40% 40%, var(--accent), var(--accent-deep));
  filter: blur(0);
}

/* slide 3 — diagonal accent bar field */
.viz-3 {
  background:
    repeating-linear-gradient(122deg, var(--accent) 0 2px, transparent 2px 26px),
    var(--paper);
}
.viz-3 .grid { display: none; }
.viz-3::before {
  inset: 0;
  background: radial-gradient(80% 90% at 18% 20%, var(--paper) 30%, transparent 75%);
}
.viz-3 .blob {
  width: 38vw; height: 38vw; right: 6vw; bottom: 8vw;
  background: radial-gradient(circle at 40% 40%, var(--ink), #000 70%);
  opacity: 0.92; filter: blur(0);
}

.viz .noise {
  position: absolute; inset: 0; opacity: 0.4; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ============================================================
   SECTIONS
   ============================================================ */
section { position: relative; }
.section-pad { padding-block: clamp(80px, 12vh, 160px); }

.sec-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: clamp(48px, 7vh, 86px);
}
.sec-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 5.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  text-wrap: balance;
  max-width: 18ch;
}
html[data-heads="sans"] .sec-title { font-weight: 700; letter-spacing: -0.04em; }
.sec-title .em { font-style: italic; color: var(--accent-deep); }
html[data-heads="sans"] .sec-title .em { font-style: normal; }
.sec-intro { font-size: clamp(15px, 1.3vw, 18px); color: var(--ink-soft); max-width: 52ch; }

/* reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ---- DIENSTEN ---- */
.services { background: var(--paper); }
.svc-list { border-top: 1px solid var(--line); }
.svc {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: clamp(20px, 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 4vh, 46px) 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: padding-left 0.4s var(--ease);
}
.svc:hover { padding-left: 14px; }
.svc-num { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); letter-spacing: 0.1em; }
.svc-body { display: flex; flex-direction: column; gap: 10px; }
.svc-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: lowercase;
}
html[data-heads="sans"] .svc-name { font-weight: 700; letter-spacing: -0.03em; }
.svc-desc { font-size: 15.5px; color: var(--ink-soft); max-width: 56ch; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.svc-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}
.svc-mark {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--accent-deep);
  flex: none;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.svc:hover .svc-mark { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(45deg); }
.svc:hover .svc-mark svg { transform: rotate(-45deg); }

/* ---- STATS strip ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stat { background: var(--paper); padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; gap: 8px; }
.stat-num { font-family: var(--display); font-weight: 600; font-size: clamp(38px, 5vw, 62px); line-height: 1; letter-spacing: -0.02em; }
html[data-heads="sans"] .stat-num { font-weight: 800; }
.stat-num .u { color: var(--accent); }
.stat-label { font-size: 14px; color: var(--ink-soft); }

/* ---- WERKWIJZE ---- */
.process { background: var(--paper-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.step { position: relative; padding-top: 30px; border-top: 2px solid var(--ink); }
.step-num {
  position: absolute; top: -2px; left: 0;
  height: 2px; background: var(--accent);
  width: 0; transition: width 1s var(--ease);
}
.step.in .step-num { width: 100%; }
.step-idx { font-family: var(--mono); font-size: 12px; color: var(--accent-deep); letter-spacing: 0.16em; }
.step-name {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05;
  margin: 14px 0 12px; text-transform: lowercase; letter-spacing: -0.01em;
}
html[data-heads="sans"] .step-name { font-weight: 700; }
.step-desc { font-size: 14.5px; color: var(--ink-soft); }

/* ---- CONTACT ---- */
.contact { background: var(--ink); color: var(--paper); overflow: hidden; position: relative; }
.contact .viz { background: transparent; opacity: 0.5; }
.contact .kicker { color: var(--accent); }
.contact .kicker::before { background: var(--accent); }
.contact-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: end; }
.contact-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(40px, 7vw, 104px); line-height: 0.94;
  letter-spacing: -0.02em; text-transform: lowercase; text-wrap: balance;
  color: var(--paper);
}
html[data-heads="sans"] .contact-title { font-weight: 700; letter-spacing: -0.04em; }
.contact-title .em { font-style: italic; color: var(--accent); }
html[data-heads="sans"] .contact-title .em { font-style: normal; }
.contact-side { display: flex; flex-direction: column; gap: 26px; }
.contact-side .btn { background: var(--accent); border-color: var(--accent); color: #04210f; align-self: flex-start; }
.contact-side .btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.contact-detail { display: flex; flex-direction: column; gap: 4px; }
.contact-detail .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.contact-detail a, .contact-detail span { font-size: 18px; color: var(--paper); }
.contact-detail a:hover { color: var(--accent); }

/* ---- FOOTER ---- */
.footer { background: var(--ink); color: var(--paper); border-top: 1px solid rgba(255,255,255,0.1); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-block: 34px; }
.footer .wordmark .wm-cresco { color: var(--paper); }
.footer-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); display: flex; gap: 22px; flex-wrap: wrap; }
.footer-meta a:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; }
  .svc { grid-template-columns: 1fr; gap: 14px; }
  .svc-mark { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; align-items: start; }
  .scroll-hint { display: none; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-ui { flex-direction: row; }
  .hero-arrows { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  gap: 8px;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
}
.mobile-menu.open { transform: none; }
.mobile-menu a { font-family: var(--display); font-size: 40px; text-transform: lowercase; letter-spacing: -0.02em; padding: 8px 0; }
.mobile-menu .mm-close { position: absolute; top: 22px; right: var(--gutter); background: none; border: 0; font-size: 30px; cursor: pointer; color: var(--ink); }
