/* NetBuur: royal gold accents, deep green ink and pale mineral paper. */
:root {
  --fps-paper: #e8eeee;
  --fps-ink: #0a2324;
  --fps-accent: oklch(76.7% 0.139 91.059);
  --fps-accent-hover: #e2c15b;
  --fps-turquoise: #51bbbb;
  --fps-lilac: #e1a3ee;
  --fps-forest: #244a48;
  --fps-forest-hover: #2e5f5c;
  --fps-muted: #708985;
}

::selection {
  background: var(--fps-turquoise);
  color: var(--fps-ink);
}

/* FPS gives the pale background the largest share of the first screen. */
main > section:first-child.bg-netbuur-orange {
  background-color: var(--fps-paper);
  color: var(--fps-ink);
}

main > section:first-child.bg-netbuur-orange .text-netbuur-blue {
  color: var(--fps-accent);
}

body:has(main > section:first-child.bg-netbuur-orange)
  header
  nav[data-theme="light"]
  .text-netbuur-white {
  color: var(--fps-ink);
}

body:has(main > section:first-child.bg-netbuur-orange)
  header
  nav[data-theme="light"]
  .border-netbuur-white {
  border-color: var(--fps-ink);
}

body:has(main > section:first-child.bg-netbuur-orange)
  header
  nav[data-theme="light"]
  button.bg-netbuur-white {
  background-color: var(--fps-ink);
}

body:has(main > section:first-child.bg-netbuur-orange)
  header
  nav[data-theme="light"]
  button.bg-netbuur-white
  svg {
  color: var(--fps-paper);
}

/* Dark ink keeps text legible on the gold surfaces and crown. */
.bg-netbuur-orange,
.bg-netbuur-orange.text-netbuur-white,
.bg-netbuur-orange .text-netbuur-white,
a.group:has(> svg[viewBox="0 0 125 125"]) .text-netbuur-white {
  color: var(--fps-ink);
}

/* Editorial photographs retain their colors; the service symbols are tinted. */
img[alt="Performance & Growth"],
img[alt="Creative Solutions"],
img[alt="Digital Presence"] {
  filter: hue-rotate(-13deg) saturate(0.88) brightness(0.94);
}

.customCursor {
  background-color: var(--fps-lilac);
}

/* Full-bleed animated artwork must not widen the mobile document. */
html,
body {
  overflow-x: clip;
}

/* A reusable pixel dissolve: small dots, checkerboard, then the next color. */
body:has(main > section:first-child.bg-netbuur-orange) main
  > section:nth-child(2)::before,
body:has(main > section:first-child.bg-netbuur-orange)
  main
  > section:nth-child(3)::before,
footer.bg-almost-black::after {
  --pixel: 8px;
  --edge-start: var(--fps-paper);
  --edge-end: var(--fps-ink);
  content: "";
  display: block;
  block-size: calc(var(--pixel) * 12);
  pointer-events: none;
  background-image:
    linear-gradient(90deg, var(--edge-end) 25%, transparent 25%),
    linear-gradient(90deg, var(--edge-end) 25%, transparent 25%),
    linear-gradient(90deg, var(--edge-end) 50%, transparent 50%),
    linear-gradient(90deg, var(--edge-end) 50%, transparent 50%),
    linear-gradient(90deg, var(--edge-end) 50%, transparent 50%),
    linear-gradient(90deg, var(--edge-start) 50%, transparent 50%),
    linear-gradient(90deg, var(--edge-start) 25%, transparent 25%),
    linear-gradient(90deg, var(--edge-start) 25%, transparent 25%),
    linear-gradient(
      var(--edge-start) calc(var(--pixel) * 7),
      var(--edge-end) calc(var(--pixel) * 7)
    );
  background-size:
    calc(var(--pixel) * 2) calc(var(--pixel) / 2),
    calc(var(--pixel) * 2) calc(var(--pixel) / 2),
    calc(var(--pixel) * 2) var(--pixel),
    calc(var(--pixel) * 2) var(--pixel),
    calc(var(--pixel) * 2) var(--pixel),
    calc(var(--pixel) * 2) var(--pixel),
    calc(var(--pixel) * 2) calc(var(--pixel) / 2),
    calc(var(--pixel) * 2) calc(var(--pixel) / 2),
    100% 100%;
  background-position:
    calc(var(--pixel) / 2) var(--pixel),
    calc(var(--pixel) * 1.5) calc(var(--pixel) * 2.5),
    0 calc(var(--pixel) * 4),
    var(--pixel) calc(var(--pixel) * 5),
    0 calc(var(--pixel) * 6),
    var(--pixel) calc(var(--pixel) * 7),
    calc(var(--pixel) / 2) calc(var(--pixel) * 9),
    calc(var(--pixel) * 1.5) calc(var(--pixel) * 10.5),
    0 0;
  background-repeat: repeat-x;
}

/* The first band sits before the sticky manifesto, outside its animation. */
body:has(main > section:first-child.bg-netbuur-orange) main
  > section:nth-child(2) {
  background-color: var(--fps-ink);
}

/* Mirror the dissolve as the manifesto gives way to the light services. */
body:has(main > section:first-child.bg-netbuur-orange) main
  > section:nth-child(3)::before {
  margin-inline: calc(-1 * var(--padding-x));
  margin-block: -1.25rem 2rem;
  transform: rotate(180deg);
}

/* The footer finishes with the dark-to-vermilion edge from the reference. */
footer.bg-almost-black {
  position: relative;
  padding-bottom: calc(96px + 2.5rem);
}

footer.bg-almost-black::after {
  --edge-start: var(--fps-ink);
  --edge-end: var(--fps-accent);
  position: absolute;
  inset: auto 0 0;
}

@media (max-width: 639px) {
  body:has(main > section:first-child.bg-netbuur-orange)
    main
    > section:nth-child(2)::before,
  body:has(main > section:first-child.bg-netbuur-orange)
    main
    > section:nth-child(3)::before,
  footer.bg-almost-black::after {
    --pixel: 6px;
  }

  footer.bg-almost-black {
    padding-bottom: calc(72px + 2.5rem);
  }
}

/* Hide the award ribbon inherited from the reference on every page. */
#awwwards {
  display: none !important;
}

/* Suppress blog promotions and footer links across captured pages. */
main > section:has(a[href="/blog"], a[href^="/blog/"]),
a[href="/blog"],
a[href^="/blog/"] {
  display: none !important;
}

/* "Let's bond" crown badge: a 45° spin suits the old flower, not a crown —
   on hover it lifts and tilts slightly instead. */
a.group:hover > svg.group-hover\:rotate-45[viewBox="0 0 125 125"] {
  rotate: -6deg;
  translate: 0 -4%;
}

/* The manifesto's longer French headline keeps its full width on the wave. */
#Path #Text {
  font-size: 64px;
}
@media (min-width: 768px) {
  #Path #Text {
    font-size: 72px;
  }
}
