/* ============================================================
   Level Webstudio — Design System
   Complete CSS foundation: tokens, typography, layout,
   components, navigation, animations, responsive.
   ============================================================ */


/* ============================================================
   A. CUSTOM PROPERTIES (:root tokens)
   ============================================================ */

:root {
  /* --- Colors --- */
  --color-bg: #0b0b10;
  --color-bg-rgb: 11, 11, 16;
  --color-bg-surface: #141419;
  --color-bg-elevated: #1c1c24;
  --color-text: #e8e8ed;
  --color-text-rgb: 232, 232, 237;
  --color-text-secondary: #8b8b96;
  --color-text-tertiary: #85858c;
  --color-accent: #d4a853;
  --color-accent-hover: #e0ba6a;
  --color-accent-muted: #a8864a;
  --color-border: #2a2a35;

  /* --- Spacing (basecreate system) --- */
  --section-padding-big: min(10vw, 10em);
  --section-padding: min(8vw, 8em);
  --section-padding-medium: min(6vw, 6em);
  --section-padding-small: min(3.5vw, 3.5em);
  --container-padding: min(4vw, 4em);
  --gap-padding: min(4vw, 4em);

  /* --- Typography --- */
  --title-size: clamp(5em, 7.5vw, 7.5em);
  --font-heading: 'Instrument Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* --- Animation --- */
  --animation-primary: 0.4s cubic-bezier(0.5, 0.75, 0, 1);
  --animation-thumb: 0.4s cubic-bezier(0.5, 0, 0.25, 1);
  --animation-smooth: 0.7s cubic-bezier(0.5, 0.5, 0, 1);

  /* --- Layout --- */
  --border-radius: 4vh;
  --header-height: 5rem;
}


/* ============================================================
   B. RESET & BASE
   ============================================================ */

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

html {
  font-size: clamp(16px, 1.2vw, 19px);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

html.no-js [data-animate],
html.no-js [data-hero-animate] {
  opacity: 1 !important;
  transform: none !important;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.66;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
}

body.scroll-locked {
  overflow: hidden;
}

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

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}


/* ============================================================
   C. TYPOGRAPHY
   ============================================================ */

h1, h2 {
  font-family: var(--font-heading);
  font-size: calc(var(--title-size) * 0.75);
  font-weight: 450;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h3 {
  font-family: var(--font-heading);
  font-size: calc(var(--title-size) * 0.3);
  font-weight: 450;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h4 {
  font-family: var(--font-heading);
  font-size: calc(var(--title-size) * 0.25);
  font-weight: 450;
  line-height: 1.3;
}

p {
  max-width: 65ch;
}

p + p {
  margin-top: 1em;
}

/* --- Utility text classes --- */

.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.text-mono {
  font-family: var(--font-mono);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-tertiary {
  color: var(--color-text-tertiary);
}

.text-accent {
  color: var(--color-accent);
}

.text-big {
  font-size: calc(var(--title-size) * 0.95);
}

.text-balance {
  text-wrap: balance;
}

strong, b {
  font-weight: 600;
}


/* ============================================================
   D. LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: 1400px;
}

.section {
  padding-block: var(--section-padding);
}

.section--big {
  padding-block: var(--section-padding-big);
}

.section--medium {
  padding-block: var(--section-padding-medium);
}

.section--small {
  padding-block: var(--section-padding-small);
}

.grid--2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-padding);
}

.grid--asymmetric {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-padding);
}

.flow > * + * {
  margin-top: var(--flow-space, 1.5em);
}

/* --- Hero (pinned by ScrollTrigger) --- */
.hero {
  position: relative;
  z-index: 1;
}

.hero .container {
}

/* --- Content body (slides over pinned hero) --- */
.content-body {
  position: relative;
  z-index: 2;
  background-color: var(--color-bg);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
}


/* ============================================================
   D2. WERKWIJZE — Fullscreen pinned experience
   ============================================================ */

/* Hero short variant (werkwijze — full viewport but content sits higher) */
.hero--short {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-top: calc(var(--header-height, 5rem) + 8vh);
    padding-bottom: 5rem;
}

/* --- Pinned experience container --- */
.ww-experience {
    position: relative;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background-color: var(--color-bg);
}

/* --- Progress bar --- */
.ww-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-border);
    z-index: 10;
}

.ww-progress__fill {
    height: 100%;
    background: var(--color-accent);
    transform-origin: left;
    transform: scaleX(0.166);
}

/* --- Slides --- */
.ww-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gap-padding);
    opacity: 0;
    pointer-events: none;
}

/* Content positioning */
.ww-slide__content {
    position: relative;
    z-index: 2;
    max-width: 45ch;
}

.ww-slide__content--left {
    margin-right: auto;
    margin-left: 10%;
    text-align: left;
}

.ww-slide__content--right {
    margin-left: auto;
    margin-right: 10%;
    text-align: left;
}

.ww-slide__content--center {
    margin-inline: auto;
    text-align: center;
}

/* --- Step number --- */
.ww-number {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.5rem;
}

.ww-number__text {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-accent);
    position: relative;
    z-index: 1;
}

.ww-number__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(var(--color-text-rgb), 0.08);
}

.ww-number--large {
    width: 5rem;
    height: 5rem;
}

.ww-number--large .ww-number__text {
    font-size: 2rem;
}

/* --- Heading --- */
.ww-heading {
    font-family: var(--font-heading);
    font-size: calc(var(--title-size) * 0.35);
    font-weight: 450;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.ww-heading--large {
    font-size: calc(var(--title-size) * 0.6);
}

/* --- Body --- */
.ww-body {
    margin-top: 1.5rem;
    color: var(--color-text-secondary);
    max-width: 50ch;
    line-height: 1.7;
}

/* --- Traveling circle --- */
.ww-circle {
    position: absolute;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 1.5px solid var(--color-accent);
    background: transparent;
    z-index: 20;
    pointer-events: none;
    left: 0;
    top: 0;
}

/* --- Decorative backgrounds per slide --- */
.ww-slide__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Step 01: large soft amber circle top-right */
[data-ww-step="0"] .ww-slide__bg::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    max-width: 700px;
    max-height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.03) 0%, transparent 70%);
    filter: blur(60px);
}

/* Step 02: thin diagonal line */
[data-ww-step="1"] .ww-slide__bg::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 5%;
    width: 1px;
    height: 60%;
    background: var(--color-border);
    transform: rotate(15deg);
    opacity: 0.5;
}

/* Step 03: dot grid bottom-left */
[data-ww-step="2"] .ww-slide__bg::before {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, var(--color-border) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

/* Step 04: overlapping soft circles */
[data-ww-step="3"] .ww-slide__bg::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 60%;
    width: 30vw;
    height: 30vw;
    max-width: 400px;
    max-height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.02) 0%, transparent 70%);
    filter: blur(40px);
}

[data-ww-step="3"] .ww-slide__bg::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 15%;
    width: 20vw;
    height: 20vw;
    max-width: 300px;
    max-height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 232, 237, 0.015) 0%, transparent 70%);
    filter: blur(40px);
}

/* Step 05: single horizontal accent line */
[data-ww-step="4"] .ww-slide__bg::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 10%;
    width: 15vw;
    height: 1px;
    background: var(--color-accent);
    opacity: 0.15;
}

/* Step 06: larger centered amber glow */
.ww-slide__bg--final::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.04) 0%, transparent 60%);
    filter: blur(80px);
}

/* --- Mobile: stack slides vertically --- */
@media (max-width: 1024px) {
    .ww-experience {
        height: auto;
        overflow: visible;
    }

    .ww-slide {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--gap-padding);
        background-color: var(--color-bg);
    }

    .ww-slide:nth-child(even) {
        background-color: var(--color-bg-surface);
    }

    .ww-slide__content {
        max-width: 100%;
    }

    .ww-slide__content--left,
    .ww-slide__content--right,
    .ww-slide__content--center {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }

    .ww-circle,
    .ww-progress {
        display: none;
    }

    .ww-slide__bg {
        display: none;
    }
}


/* ============================================================
   E. BUTTONS
   Pill shape with fill-in hover effect via ::before pseudo.
   ============================================================ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75em 2em;
  border-radius: 100px;
  overflow: hidden;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--animation-primary);
}

/* Fill background that scales in on hover */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: scale(0) rotate(0.001deg);
  opacity: 0;
  transition: transform var(--animation-primary), opacity var(--animation-primary);
}

.btn:hover::before {
  transform: scale(1) rotate(0.001deg);
  opacity: 1;
}

/* Text stays above the fill */
.btn span {
  position: relative;
  z-index: 1;
}

/* Focus visible */
.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* --- Primary variant (amber outline → amber fill) --- */
.btn-primary {
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
}

.btn-primary::before {
  background-color: var(--color-accent);
}

.btn-primary:hover {
  color: var(--color-bg);
}

/* --- Secondary variant (subtle outline → amber fill) --- */
.btn-secondary {
  border: 1.5px solid rgba(var(--color-text-rgb), 0.3);
  color: var(--color-text);
}

.btn-secondary::before {
  background-color: var(--color-accent);
}

.btn-secondary:hover {
  color: var(--color-bg);
}


/* ============================================================
   F. SURFACES
   ============================================================ */

.surface {
  background-color: var(--color-bg-surface);
  border-radius: var(--border-radius);
  padding: var(--gap-padding);
}

.surface--elevated {
  background-color: var(--color-bg-elevated);
}

.surface--accent-border {
  border: 1px solid var(--color-accent);
}


/* ============================================================
   G. LINKS
   ============================================================ */

.link-underline {
  position: relative;
  color: var(--color-accent);
  display: inline-block;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(var(--color-text-rgb), 0.3);
  transform: scaleX(0) rotate(0.001deg);
  transform-origin: right center;
  transition: transform var(--animation-primary), background-color var(--animation-primary);
}

.link-underline:hover::after {
  transform: scaleX(1) rotate(0.001deg);
  transform-origin: left center;
  background-color: var(--color-accent);
}

.link-underline:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}


/* ============================================================
   H. HEADER / NAVIGATION
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--section-padding-small) var(--gap-padding);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid transparent;
}

/* State 1: At top — mobile/reduced-motion fallback only (GSAP handles desktop) */
.site-header.nav-see-through {
}

/* State 2: Backdrop blur (toggled by GSAP at halfway point) */
.site-header.has-blur {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* --- Logo --- */
.site-logo {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-self: start;
}

.site-logo img,
.site-logo svg {
  height: 1.5rem;
  width: auto;
}

/* --- Desktop Nav --- */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop .nav-link {
  position: relative;
  padding: 0.5em 1em;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 450;
  color: rgba(var(--color-text-rgb), 0.7);
  transition: color var(--animation-primary);
  transform: translateY(0%) rotate(0.001deg);
}

.nav-desktop .nav-link:hover {
  color: var(--color-text);
}

/* --- Nav Actions (right column) --- */
.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  z-index: 10;
}

/* --- Contact CTA / Hamburger (morphs on scroll) --- */
.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(var(--color-text-rgb), 0.3);
  border-radius: 100px;
  padding: 0.4em 1.5em;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--color-text);
  cursor: pointer;
  background-color: transparent;
  /* Only transition hover-related props — GSAP handles morph props */
  transition: color 0.2s ease-in-out,
              background-color 0.2s ease-in-out;
  transform: rotate(0.001deg);
}

.nav-cta:hover {
  color: var(--color-accent);
}

/* Pill text */
.nav-cta-text {
  white-space: nowrap;
  pointer-events: none;
}

/* Hamburger bars (inside CTA, hidden by default) */
.nav-cta .hamburger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1.25em;
  height: 0.35em;
  opacity: 0;
  pointer-events: none;
}

.hamburger-bar {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-accent);
  border-radius: 1px;
  transition: transform var(--animation-smooth),
              background-color 0.2s ease-in-out;
}

.hamburger-bar--top {
  transform: translateY(calc(-50% - 0.175em)) rotate(0.001deg);
}

.hamburger-bar--bottom {
  transform: translateY(calc(-50% + 0.175em)) rotate(0.001deg);
}

/* Hover: bars swap (only when morphed to hamburger) */
.nav-cta.is-morphed:hover .hamburger-bar--top {
  transform: translateY(calc(-50% + 0.175em)) rotate(0.001deg);
}

.nav-cta.is-morphed:hover .hamburger-bar--bottom {
  transform: translateY(calc(-50% - 0.175em)) rotate(0.001deg);
}

/* Ghost circle on hover when morphed */
.nav-cta.is-morphed:hover {
  background-color: rgba(var(--color-text-rgb), 0.04);
}

/* Active: X morph */
.nav-mobile-active .hamburger-bar--top {
  transform: translateY(-50%) rotate(45deg);
}

.nav-mobile-active .hamburger-bar--bottom {
  transform: translateY(-50%) rotate(-45deg);
}

/* Active + hover: bars expand */
.nav-mobile-active .nav-cta:hover .hamburger-bar--top {
  transform: translateY(-50%) rotate(45deg) scaleX(1.2);
}

.nav-mobile-active .nav-cta:hover .hamburger-bar--bottom {
  transform: translateY(-50%) rotate(-45deg) scaleX(1.2);
}

/* --- Nav Panel (slides from right) --- */
.nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(28rem, 85vw);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-height, 5rem) + 3rem) var(--gap-padding) var(--gap-padding);
    background-color: var(--color-bg-surface);
    border-left: 1px solid var(--color-border);
    transform: translateX(100%);
    pointer-events: none;
}

.nav-overlay.is-active {
    pointer-events: auto;
    /* transform animated by GSAP — no CSS value here */
}

.nav-overlay .nav-link {
    font-family: var(--font-heading);
    font-size: calc(var(--title-size) * 0.3);
    font-weight: 450;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--color-text);
    display: block;
    padding: 0.5em 0;
    border-bottom: 1px solid var(--color-border);
    transition: color var(--animation-primary);
}

.nav-overlay .nav-link:first-child {
    border-top: 1px solid var(--color-border);
}

.nav-overlay .nav-link:hover {
    color: var(--color-accent);
}

/* Footer info inside nav panel */
.nav-overlay-footer {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
}

.nav-overlay-footer a {
    color: var(--color-text-secondary);
    transition: color var(--animation-primary);
}

.nav-overlay-footer a:hover {
    color: var(--color-accent);
}

/* Backdrop */
.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 998;
    background-color: rgba(var(--color-bg-rgb), 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
}

.nav-backdrop.is-active {
    pointer-events: auto;
}


/* ============================================================
   I. FOOTER
   ============================================================ */

/* — Footer body — */
.site-footer {
  background: var(--color-bg-elevated);
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
}

.site-footer > .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* — Grid — */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem 4rem;
  padding-top: 0;
}

/* — Column headings — */
.footer-column-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

/* — Brand column — */
.footer-brand .site-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  max-width: 30ch;
  margin-bottom: 1.5rem;
}

/* — Nav column — */
.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-links a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: color var(--animation-primary);
}

.footer-nav-links a:hover {
  color: var(--color-accent);
}

/* — Contact column — */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-style: normal;
}

.footer-contact-info a,
.footer-contact-info span {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: color var(--animation-primary);
}

.footer-contact-info a:hover {
  color: var(--color-accent);
}

/* — Bottom bar — */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  padding-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  transition: color var(--animation-primary);
}

.footer-legal a:hover {
  color: var(--color-text-secondary);
}

.footer-meta {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
}

/* — Footer responsive — */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-tagline {
    max-width: none;
  }

  .footer-nav-links,
  .footer-contact-info {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

}


/* ============================================================
   J. ANIMATION STATES
   ============================================================ */

[data-animate] {
  opacity: 0;
}

[data-hero-animate] {
  opacity: 0;
}

/* Types that handle their own visibility (clip-path, SplitText, counters, parallax) */
[data-animate="reveal-clip"],
[data-animate="reveal-clip-left"],
[data-animate="reveal-clip-right"],
[data-animate="reveal-text"],
[data-animate="reveal-text-chars"],
[data-animate="reveal-text-lines"],
[data-animate="reveal-counter"],
[data-animate="reveal-parallax"],
[data-animate="reveal-stagger-clip"],
[data-animate="reveal-stagger-clip"] > * {
  opacity: 0;
}

.parallax-inner {
}

/* clip-path animations: no will-change (not GPU-composited, wastes mobile memory) */


/* ============================================================
   K. HOMEPAGE-SPECIFIC
   ============================================================ */

/* --- Hero ambient background --- */
.hero-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.hero-ambient::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.04) 0%, transparent 70%);
  filter: blur(80px);
}

.hero-ambient::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.025) 0%, transparent 70%);
  filter: blur(60px);
}

/* --- Scroll indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-indicator__line {
  display: block;
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 0.8; transform: scaleY(1); transform-origin: top; }
}

/* --- Hero layout --- */
.hero--diensten {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: calc(var(--header-height, 5rem) + 2rem);
  padding-bottom: 5rem;
}

.hero--home {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: calc(var(--header-height, 5rem) + 2rem);
  padding-bottom: 5rem;
}

@media (min-height: 900px) {
  .hero--home {
    max-height: 100vh;
  }
}

/* --- Werkwijze teaser (horizontal process strip) --- */
.werkwijze-teaser {
  display: flex;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.werkwijze-teaser__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  position: relative;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 450;
  font-size: 0.9rem;
}

/* Vertical divider between steps */
.werkwijze-teaser__step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 2.5rem;
  background: var(--color-border);
  transform: translateY(-50%);
}

/* --- Final CTA --- */
.home-cta {
  background-color: var(--color-bg-surface);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.home-cta p {
  max-width: 50ch;
}

/* --- Portfolio (ready for when projects exist) --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--section-padding-small);
}

.browser-mockup {
  border-radius: calc(var(--border-radius) * 0.6);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-elevated);
}

.browser-mockup__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.browser-mockup__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--color-text-tertiary);
}

.browser-mockup__url {
  font-size: 0.7rem;
  color: var(--color-text-tertiary);
  margin-left: auto;
}

.browser-mockup__viewport {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.browser-mockup__viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Responsive break helper --- */
.md-break {
  display: inline;
}


/* ============================================================
   L. RESPONSIVE
   ============================================================ */

/* --- Medium screens (tablets, small laptops) --- */
@media (min-width: 1024px) {
  .grid--2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid--asymmetric {
    grid-template-columns: 1.2fr 1fr;
  }

  .diensten-split {
    grid-template-columns: 2fr 1fr;
  }
}

@media (max-width: 1024px) {
  :root {
    --section-padding-big: 15vw;
    --section-padding: 12vw;
    --section-padding-medium: 9vw;
    --section-padding-small: 5vw;
  }

  /* Always show hamburger on mobile */
  .nav-desktop {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding-block: 1rem;
  }

  /* CTA always in hamburger mode on mobile */
  .nav-cta {
    width: 3rem;
    height: 3rem;
    padding: 0;
    border-color: transparent;
    background-color: transparent;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-cta .nav-cta-text {
    opacity: 0;
    position: absolute;
    pointer-events: none;
  }

  .nav-cta .hamburger {
    opacity: 1;
  }

  .nav-overlay {
    width: 100%;
    border-left: none;
  }

  #hero {
    position: sticky;
    top: 0;
    z-index: 0;
  }

  .content-body {
    position: relative;
    z-index: 1;
  }

  .site-header.has-blur {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: rgba(11, 11, 16, 0.95);
  }

  .werkwijze-teaser-header,
  .home-cta .container,
  .werkwijze-cta-grid {
    grid-template-columns: 1fr !important;
    text-align: left !important;
  }

}

@media (max-width: 720px) {
  :root {
    --section-padding-big: 20vw;
    --section-padding: 15vw;
    --section-padding-medium: 10vw;
    --section-padding-small: 7vw;
  }

  h1, h2 {
    font-size: 13vw;
  }

  .md-break {
    display: none;
  }
}

@media (max-width: 640px) {
  /* Werkwijze: wrap into 2-column grid on mobile */
  .werkwijze-teaser {
    flex-wrap: wrap;
    border: none;
  }

  .werkwijze-teaser__step {
    flex: 0 0 50%;
    border-bottom: 1px solid var(--color-border);
  }

  .werkwijze-teaser__step:not(:last-child)::after {
    display: none;
  }

  /* Vertical divider for 2-col: odd items get right border */
  .werkwijze-teaser__step:nth-child(odd) {
    border-right: 1px solid var(--color-border);
  }
}

@media (max-width: 420px) {
  .werkwijze-teaser__step {
    flex: 0 0 100%;
    border-right: none !important;
  }
}

@media (max-width: 540px) {
  h1, h2 {
    font-size: 11vw;
  }

  h3 {
    font-size: 1.5rem;
  }

  .nav-overlay .nav-link {
    font-size: 2rem;
  }
}

/* --- Mobile: remove expensive blur filters, use softer gradients instead --- */
@media (max-width: 1024px) {
  .hero-ambient::before,
  .hero-ambient::after,
  [data-ww-step="0"] .ww-slide__bg::before,
  [data-ww-step="3"] .ww-slide__bg::before,
  [data-ww-step="3"] .ww-slide__bg::after,
  .ww-slide__bg--final::before {
    filter: none;
  }

  .hero-ambient::before {
    width: 80vw;
    height: 80vw;
    max-width: 1000px;
    max-height: 1000px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.03) 0%, transparent 50%);
  }

  .hero-ambient::after {
    width: 55vw;
    height: 55vw;
    max-width: 650px;
    max-height: 650px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.02) 0%, transparent 50%);
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-animate],
  [data-hero-animate] {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ============================================================
   M. CONTACT — Form + layout
   ============================================================ */

/* Hero minimal variant (contact — shortest hero, just clears header) */
.hero--minimal {
  min-height: auto;
  display: flex;
  align-items: flex-end;
  position: relative;
  padding-top: calc(var(--header-height, 5rem) + 4rem);
  padding-bottom: 3rem;
}

/* --- Contact page grid --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: calc(var(--gap-padding) * 2);
  align-items: start;
}

.contact-info-column {
  position: sticky;
  top: calc(var(--header-height, 5rem) + 3rem);
}

/* --- Form --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-row--double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-padding);
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-optional {
  font-weight: 400;
  color: var(--color-text-tertiary);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.9rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  outline: none;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--color-accent);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-text-tertiary);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-bottom-color: var(--color-accent);
}

.form-field textarea {
  resize: vertical;
  min-height: 6rem;
}

/* --- Radio pills --- */
.form-field--radio legend {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.radio-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.radio-option {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-label {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
}

.radio-option input:checked + .radio-label {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(212, 168, 83, 0.06);
}

.radio-option input:focus-visible + .radio-label {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.radio-label:hover {
  border-color: var(--color-text-tertiary);
  color: var(--color-text);
}

/* --- Error messages --- */
.form-error {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-accent);
}

/* --- Submit full width --- */
.btn--full {
  width: 100%;
  justify-content: center;
}

/* --- Consent --- */
.form-consent {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

/* --- Success message --- */
.form-success h3 {
  color: var(--color-accent);
}

/* --- Contact info sidebar --- */
.contact-info {
  padding: var(--gap-padding);
  background: var(--color-bg-surface);
  border-radius: var(--border-radius);
}

.contact-info__block .label {
  margin-bottom: 0;
}

/* --- Contact mobile --- */
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info-column {
    position: static;
    margin-top: var(--section-padding-medium);
  }

  .form-row--double {
    grid-template-columns: 1fr;
  }

  .radio-group {
    flex-direction: column;
  }
}


/* ============================================================
   SKIP LINK — keyboard accessibility (WCAG)
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 500;
  border-radius: 0 0 0.5rem 0.5rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}


/* ============================================================
   LEGAL PAGES — minimal, readable text
   ============================================================ */

.legal-page {
  padding-top: calc(var(--header-height, 5rem) + 4rem);
  padding-bottom: var(--section-padding-big);
}

.legal-page h1 {
  font-size: calc(var(--title-size) * 0.4);
  font-weight: 450;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.legal-page h2 {
  font-size: calc(var(--title-size) * 0.2);
  font-weight: 450;
  margin-top: 3rem;
  margin-bottom: 1rem;
  text-transform: none;
  line-height: 1.3;
}

.legal-page p,
.legal-page li {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style: disc;
}

.legal-page li {
  margin-bottom: 0.5rem;
}

.legal-page a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
