/* Van Kalsbeek Digital - technical showcase redesign styles.
   Loads after style.css, only overrides what needs to differ. */

:root {
  --mono: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  --serif: 'Fraunces', Georgia, serif;
}

body { margin: 0; }

/* Ambient soft light blobs + soft grid behind everything (replaces the 3D scene) */
.vkd-ambient {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42vmax 42vmax at 18% 22%, rgba(46, 108, 255, .16), transparent 65%),
    radial-gradient(48vmax 48vmax at 82% 28%, rgba(120, 100, 220, .12), transparent 65%),
    radial-gradient(52vmax 52vmax at 55% 92%, rgba(30, 90, 200, .14), transparent 65%);
  animation: vkd-ambient-drift 48s ease-in-out infinite alternate;
}
:root[data-theme="dark"] .vkd-ambient {
  background:
    radial-gradient(42vmax 42vmax at 18% 22%, rgba(64, 112, 224, .15), transparent 65%),
    radial-gradient(48vmax 48vmax at 82% 28%, rgba(118, 92, 220, .11), transparent 65%),
    radial-gradient(52vmax 52vmax at 55% 92%, rgba(44, 96, 208, .13), transparent 65%);
}
@keyframes vkd-ambient-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2.5%, 2%, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .vkd-ambient { animation: none; }
}
.vkd-grid-bg {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 70%);
  pointer-events: none;
  transform: translate3d(0, var(--grid-y, 0), 0);
}

main, header, footer, .intake-section { position: relative; z-index: 1; }

/* Sticky header (style.css styles .header; this page uses .vkd-header) */
.vkd-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* Keep the fixed cookie banner above the particle canvas, as a compact centered card */
.cookie-banner {
  z-index: 200;
  left: 50%; right: auto; transform: translateX(-50%);
  bottom: 1rem; width: min(92vw, 720px);
  border: 1px solid var(--line); border-radius: 16px;
  padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom));
  box-shadow: var(--shadow);
}
.cookie-banner p { font-size: .85rem; flex: 1 1 420px; }
.btn-cookie { min-height: 44px; padding: .5rem 1.2rem; display: inline-flex; align-items: center; }

/* Animated SVG logo: invisible until .svg-active (anime.js draw on load) */
.brand { color: var(--navy); }
:root[data-theme="dark"] .brand { color: var(--on-primary); }
.brand-logo-svg {
  display: none;
  width: auto;
  height: 58px;
  flex-shrink: 0;
}
.brand.svg-active .brand-logo-light,
.brand.svg-active .brand-logo-dark { display: none; }
.brand.svg-active .brand-logo-svg { display: block; }

/* Shared drawn-logo styles: header static, hero draws the outline once */
.vkd-logo path {
  fill: currentColor;
  fill-opacity: 0;
  stroke: currentColor;
  stroke-width: 13;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill-opacity .5s ease;
}
.vkd-logo.show path { fill-opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .vkd-logo path { transition: none; }
}

/* Big hero logo: centered above the eyebrow, calm brand moment */
.vkd-hero-logo {
  display: flex; justify-content: center;
  margin-bottom: 1.75rem;
  color: var(--navy);
}
:root[data-theme="dark"] .vkd-hero-logo { color: var(--on-primary); }
.vkd-hero-logo svg { width: clamp(200px, 28vw, 240px); height: auto; }

/* Hero: single calm column, copy centered in the viewport, trust + everything below the fold. */
.vkd-hero {
  display: flex; align-items: center;
  padding: 2rem 1.5rem 3rem;
  max-width: 1100px; margin: 0 auto;
  min-height: 100vh; min-height: 100dvh;
}
.vkd-hero-inner {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: center;
  width: 100%; max-width: 680px; margin: 0 auto;
}
.vkd-hero-copy { min-width: 0; }

.vkd-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem;
}
.vkd-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); display: inline-block;
  animation: vkd-pulse 1.6s ease-in-out infinite;
}
@keyframes vkd-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.vkd-title {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "opsz" 64;
  letter-spacing: -.01em;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08; margin: 0 0 1.25rem; color: var(--heading);
  overflow-wrap: break-word;
  text-wrap: balance;
}
.vkd-rotator {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
}
.vkd-rot-svg {
  display: block;
  overflow: visible;
}
.vkd-rot-svg text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: inherit;
  letter-spacing: -.01em;
}
.vkd-rot-svg stop.vkd-grad-0 { stop-color: var(--primary); }
.vkd-rot-svg stop.vkd-grad-1 { stop-color: #7b5bd6; }
:root[data-theme="dark"] .vkd-rot-svg stop.vkd-grad-0 { stop-color: #8fb6ff; }
:root[data-theme="dark"] .vkd-rot-svg stop.vkd-grad-1 { stop-color: #a78bfa; }
.vkd-rot-cursor {
  position: absolute;
  width: 3px;
  height: 1.08em;
  background: var(--accent);
  bottom: 0;
  transform: translateY(6%);
  animation: vkd-cursor-blink 1.05s step-end infinite;
  pointer-events: none;
}
@keyframes vkd-cursor-blink {
  50% { opacity: 0; }
}

.vkd-sub {
  font-size: 1.08rem; color: var(--muted);
  max-width: 56ch; margin-bottom: 1.5rem; line-height: 1.6;
}
.vkd-proof {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.vkd-badge {
  display: inline-block; background: var(--primary); color: var(--on-primary);
  font-family: var(--mono); font-size: .82rem; font-weight: 600; padding: .35rem .7rem; border-radius: 8px;
}
.vkd-proof-text { font-size: .95rem; color: var(--text); }

/* Hero entrance: calm blur-to-sharp cascade after the logo finishes drawing */
.vkd-eyebrow, .vkd-title, .vkd-sub, .vkd-proof, .hero-actions, .vkd-trust {
  animation: vkd-hero-reveal .85s cubic-bezier(.2, .7, .2, 1) both;
}
.vkd-eyebrow { animation-delay: 1.1s; }
.vkd-title   { animation-delay: 1.25s; }
.vkd-sub     { animation-delay: 1.45s; }
.vkd-proof   { animation-delay: 1.6s; }
.hero-actions { animation-delay: 1.75s; }
.vkd-trust   { animation-delay: 2s; }
@keyframes vkd-hero-reveal {
  from { opacity: 0; transform: translateY(16px); filter: blur(7px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* Stack / toolkit section */
.vkd-stack { max-width: 1100px; margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) 1.5rem; }
.vkd-stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.vkd-stack-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 1.75rem;
  background: var(--surface); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.vkd-stack-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.vkd-stack-icon {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; color: var(--on-primary);
  background: linear-gradient(135deg, var(--primary), #7b6ef6);
  border-radius: 10px; width: 52px; height: 52px; font-size: 1rem; margin-bottom: 1rem;
}
.vkd-stack-card h3 { margin: 0 0 .5rem; }
.vkd-stack-card p { margin: 0; color: var(--muted); }

/* Trust panel: profile + proof list */
.vkd-trust {
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  max-width: 560px; margin: 0 auto;
  font-family: inherit; text-align: left; color: inherit;
  cursor: pointer;
  width: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.vkd-trust:hover, .vkd-trust:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 24px 60px rgba(7,35,75,.18);
}
.vkd-trust:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.vkd-trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.vkd-trust-item {
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: .95rem; line-height: 1.5; color: var(--text);
}
.vkd-trust-item a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.vkd-trust-item a:hover { text-decoration-thickness: 2px; }
.vkd-trust-icon { flex: none; width: 20px; height: 20px; margin-top: .15rem; color: var(--accent); }
.vkd-profile {
  display: flex; align-items: center; gap: 1rem;
  padding-bottom: 1.25rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.vkd-profile img {
  width: 96px; height: 128px; border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.vkd-profile-meta { text-align: left; }
.vkd-profile-name { margin: 0; font-weight: 700; color: var(--heading); }
.vkd-profile-role { margin: .2rem 0 0; font-size: .85rem; color: var(--muted); }
.vkd-trust-open {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.25rem; font-weight: 700; color: var(--accent);
}
.vkd-trust-open span { transition: transform .25s ease; }
.vkd-trust:hover .vkd-trust-open span, .vkd-trust:focus-visible .vkd-trust-open span { transform: translateX(4px); }

/* Over-mij modal: opens centered over the page, grows in on open */
.vkd-modal { position: fixed; inset: 0; z-index: 1000; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding: 1.25rem; }
.vkd-modal[hidden] { display: none; }
.vkd-modal-backdrop {
  position: fixed; inset: 0; background: color-mix(in srgb, var(--backdrop, #000) 55%, transparent);
  opacity: 0; transition: opacity .3s ease; cursor: pointer;
}
.vkd-modal.is-open .vkd-modal-backdrop { opacity: 1; }
.vkd-modal-card {
  position: relative; z-index: 1;
  width: min(760px, 100%); margin: auto;
  box-sizing: border-box;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(7,35,75,.18);
  padding: 1.5rem;
  transform: scale(.92) translateY(10px);
  opacity: 0;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .3s ease;
}
.vkd-modal.is-open .vkd-modal-card { transform: scale(1) translateY(0); opacity: 1; }
.vkd-modal-close {
  position: absolute; top: .75rem; right: .75rem;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; border: none; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--muted);
}
.vkd-modal-close:hover { color: var(--heading); }
.vkd-modal-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
.vkd-modal-about.about-grid {
  display: grid; grid-template-columns: minmax(0, 230px) 1fr; gap: 1.5rem; align-items: start;
}
.vkd-modal-about .about-photo img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line);
  display: block; }
.vkd-modal-about .about-text h2 { margin-top: .1rem; }
.vkd-modal-about .about-text p { font-size: .95rem; line-height: 1.65; margin-bottom: .9rem; }
.vkd-modal-about .vkd-trust-list { margin-top: 1.25rem; }
.vkd-modal-about .vkd-trust-item { margin-bottom: .5rem; }
.vkd-modal-cta { margin-top: 1.25rem; }

@media (max-height: 820px) {
  .vkd-modal-about.about-grid { gap: 1rem; }
  .vkd-modal-about .about-photo { width: min(120px, 34vw); }
  .vkd-modal-about .about-text p { font-size: .88rem; line-height: 1.5; margin-bottom: .6rem; }
  .vkd-modal-about .vkd-trust-list { margin-top: .7rem; }
  .vkd-modal-about .vkd-trust-item { margin-bottom: .25rem; }
  .vkd-modal-cta { margin-top: .7rem; }
}

@media (max-width: 768px) {
  .vkd-hero-inner { grid-template-columns: 1fr; }
  .vkd-stack-grid { grid-template-columns: 1fr; }
  .vkd-grid-bg { background-size: 44px 44px; }
  .vkd-modal-about.about-grid { grid-template-columns: 1fr; }
  .vkd-modal-about .about-photo { max-width: 320px; }
}

/* Touch targets >= 44px (WCAG 2.5.8) */
.project-links a { padding: .7rem 0; }
.intake-alt-link { padding: .7rem 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem; }
.footer-link-btn { min-height: 44px; padding: .7rem .5rem; }
.vkd-trust-item a { display: inline-block; min-height: 44px; line-height: 1.4; padding: .3rem 0; }

/* Intake progress: keep only the numbered circles on small screens */
@media (max-width: 560px) {
  .progress-step { gap: 0; font-size: 0; }
  .progress-step-nr { font-size: .75rem; }
  .vkd-trust-item a { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .vkd-dot { animation: none; }
}

/* ---- Craft layer: scroll progress, back-to-top, marquee, stats, spotlight, FAQ ---- */

/* Scroll progress line above the sticky header */
.vkd-scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 120;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--primary), #7b6ef6);
  pointer-events: none;
}

/* Sticky header gains subtle depth once scrolled */
.vkd-header { transition: box-shadow .25s, background .25s; }
.vkd-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(0, 0, 0, .3);
}

/* Back-to-top button */
.vkd-back {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--heading); box-shadow: var(--shadow); cursor: pointer;
  transition: transform .2s, color .2s, border-color .2s;
}
.vkd-back[hidden] { display: none; }
.vkd-back:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); }
.vkd-back:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.vkd-back svg { width: 20px; height: 20px; }

/* Proof stats (bewijscijfers) */
.vkd-stats {
  max-width: 1100px; margin: 0 auto;
  padding: 3rem 1.5rem 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem;
}
.vkd-stat-num {
  display: block;
  font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--heading); line-height: 1.1;
}
.vkd-stat-label {
  display: block; font-size: .9rem; color: var(--muted);
  line-height: 1.6; margin-top: .3rem; max-width: 24ch;
}

/* Spotlight glow cards: glow follows the pointer (hover/focus) or sweeps
   once cards enter view on touch screens. Glow clipped to the card shape
   via clip-path so the popular-tier badge can keep overflowing. */
.vkd-spot { position: relative; }
.vkd-spot::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  clip-path: inset(0 round 13px);
  background: radial-gradient(300px circle at var(--spot-x, 50%) var(--spot-y, 45%),
    color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
}
.vkd-spot:hover::before, .vkd-spot:focus-within::before { opacity: 1; }

/* Touch devices can't hover: let an auto-glow sweep over each card once it
   scrolls into view, so the spotlight effect is not dead on mobile. */
.vkd-spot.auto-glow::before {
  opacity: 1;
  animation: vkd-spot-sweep 5.5s ease-in-out infinite;
}
@keyframes vkd-spot-sweep {
  0%, 100% { --spot-x: 80%; --spot-y: 18%; }
  25%      { --spot-x: 30%; --spot-y: 70%; }
  50%      { --spot-x: 65%; --spot-y: 82%; }
  75%      { --spot-x: 40%; --spot-y: 30%; }
}

/* Primary buttons flip to solid navy in the redesign; one definition keeps
   hero CTA, intake and maintenance CTA consistent. */
.btn-primary {
  background: var(--navy); color: #fff;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 10px 30px rgba(14, 76, 146, .25);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary:hover { background: #0e2f63; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(.97); }
:root[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, var(--primary), #6b52e8);
}
:root[data-theme="dark"] .btn-primary:hover { background: linear-gradient(135deg, #3b72e4, #5b45c9); }

/* Sticky header: append the studio wordmark next to the drawn logo */
.brand::after {
  content: "Van Kalsbeek Digital";
  font-family: var(--serif); font-weight: 600; font-size: 1.1rem;
  color: var(--heading); white-space: nowrap;
}
@media (max-width: 768px) { .brand::after { display: none; } }
:root[data-theme="dark"] .brand::after { color: var(--on-primary); }

/* FAQ: native accordion */
.faq-item summary {
  list-style: none; cursor: pointer;
  font-size: 1.05rem; font-weight: 600; color: var(--heading);
  padding: .55rem 0; padding-right: 1.75rem; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: .05rem; top: .45rem;
  font-size: 1.15rem; font-weight: 600; color: var(--accent);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item dd { margin: .6rem 0 0; font-size: .92rem; color: var(--muted); line-height: 1.7; }
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    block-size: 0; overflow: hidden; opacity: 0;
    content-visibility: hidden;
    transition: content-visibility .28s allow-discrete, block-size .28s ease, opacity .22s ease;
  }
  .faq-item[open]::details-content {
    block-size: auto; opacity: 1; content-visibility: visible;
  }
}

/* Tiers: collapsible cards */
.tier-panel .services-grid { align-items: start; }
.service-card summary {
  list-style: none; cursor: pointer; display: block;
}
.service-card summary::-webkit-details-marker { display: none; }
.service-card summary .tier-price,
.service-card summary .tier-duration,
.vkd-tier-desc { display: block; }
.vkd-tier-desc {
  font-size: .9rem; color: var(--muted); line-height: 1.7; margin: .25rem 0 1rem;
}
.vkd-tier-hint {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .82rem; font-weight: 600; color: var(--accent);
}
.vkd-tier-hint svg {
  width: 14px; height: 14px; transition: transform .25s ease;
}
.vkd-tier-less { display: none; }
.service-card[open] .vkd-tier-more { display: none; }
.service-card[open] .vkd-tier-less { display: inline; }
.service-card[open] .vkd-tier-hint svg { transform: rotate(180deg); }
.service-card[open] .tier-features { margin-top: 1rem; }
@supports (interpolate-size: allow-keywords) {
  .service-card { interpolate-size: allow-keywords; }
  .service-card::details-content {
    block-size: 0; overflow: hidden; opacity: 0;
    content-visibility: hidden;
    transition: content-visibility .28s allow-discrete, block-size .28s ease, opacity .22s ease;
  }
  .service-card[open]::details-content {
    block-size: auto; opacity: 1; content-visibility: visible;
  }
}

/* Scroll reveals (style.css html.js .reveal): shorter slide + faster fade so
   fast scrolling stays calm instead of flashing delayed content in late. */
html.js .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease-out, transform .4s ease-out;
}
html.js .reveal.visible { opacity: 1; transform: none; }

/* Responsive for the new pieces */
@media (max-width: 768px) {
  .vkd-stats { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1.25rem; }
}
@media (min-width: 1024px) {
  .vkd-hero { min-height: 100vh; min-height: 100dvh; padding: 2rem 1.5rem 3rem; }
  .vkd-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: 3rem; max-width: 1100px;
    transform: translateY(-22%);
  }
  .vkd-hero-logo {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-bottom: .25rem;
  }
  .vkd-hero-logo svg { width: clamp(120px, 14vw, 160px); }
  .vkd-hero-copy { text-align: left; }
  .hero-actions { justify-content: flex-start; }
  .vkd-trust { max-width: none; margin: 0; align-self: center; }
}
@media (max-width: 480px) {
  .vkd-back { right: 1rem; bottom: 1rem; }
  .vkd-hero-logo { margin-bottom: 1rem; }
  .vkd-hero-logo svg { width: clamp(150px, 34vw, 190px); }
}

/* First-impression gate removed: everything is visible on arrival. */

@media (prefers-reduced-motion: reduce) {
  .vkd-spot::before { display: none; }
  .vkd-spot.auto-glow::before { animation: none; opacity: 0; }
  .vkd-grid-bg { transform: none; }
  .faq-item summary::after { transition: none; }
  .faq-item::details-content { transition: none; }
  .service-card summary svg { transition: none; }
  .service-card::details-content { transition: none; }
  .vkd-eyebrow, .vkd-title, .vkd-sub, .vkd-proof, .hero-actions, .vkd-trust { animation: none; }
  .vkd-rot-cursor { animation: none; }
}
