/* ============================================================
   GOBLER — Bribi Na Krakti
   Base: tokens, reset, typografie, nav, footer, componenten
   ============================================================ */

:root {
  /* canvas */
  --bg-0: #07090b;
  --bg-1: #0b0e11;
  --bg-2: #11161b;
  --surface: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* tekst */
  --text-1: #f2f4f0;
  --text-2: #aab3ac;
  --text-3: #79837c;

  /* merk — uit het logo */
  --lime: #c8f031;
  --lime-deep: #9edc1f;
  --lime-dim: rgba(200, 240, 49, 0.14);
  --blue: #4a90e2;
  --blue-deep: #1e63c8;
  --blue-dim: rgba(46, 123, 217, 0.16);

  /* typografie */
  --serif: "Fraunces", Georgia, serif;
  --grotesk: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --text-hero: clamp(3rem, 1.2rem + 8.6vw, 8.2rem);
  --text-h2: clamp(2.1rem, 1rem + 4.4vw, 4.6rem);
  --text-h3: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
  --text-lead: clamp(1.1rem, 1rem + 0.55vw, 1.4rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-label: 0.72rem;

  /* ritme */
  --space-section: clamp(5.5rem, 4rem + 8vw, 12rem);
  --space-block: clamp(2.5rem, 2rem + 3vw, 5rem);
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --measure: 62ch;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 340ms;

  --nav-h: 4.75rem;
  --radius: 1.1rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-1);
  color: var(--text-1);
  font-family: var(--grotesk);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

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

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

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--lime);
  color: var(--bg-0);
  font-weight: 600;
  border-radius: 99px;
  transform: translateY(-300%);
  transition: transform var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- typografie ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.label {
  font-family: var(--grotesk);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

.label--lime {
  color: var(--lime);
}

.serif-i {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 480;
  letter-spacing: 0;
}

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

.lead {
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--text-2);
  max-width: var(--measure);
  text-wrap: pretty;
}

.measure {
  max-width: var(--measure);
}

/* ---------- layout ---------- */
.wrap {
  width: min(100% - 2 * var(--gutter), 82rem);
  margin-inline: auto;
}

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

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: var(--space-block);
}

.section-head h2 {
  font-size: var(--text-h2);
  max-width: 16ch;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
}

/* ---------- korrel & sfeer ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  transform: translateZ(0);
  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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  transform: translateZ(0);
  pointer-events: none;
  z-index: 0;
}

.glow--lime {
  background: radial-gradient(circle, rgba(200, 240, 49, 0.1), transparent 65%);
}

.glow--blue {
  background: radial-gradient(circle, rgba(30, 99, 200, 0.16), transparent 65%);
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(9, 11, 14, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 130;
}

.nav__brand img {
  width: 2.1rem;
  height: auto;
}

.nav__brand span {
  font-weight: 700;
  letter-spacing: 0.32em;
  font-size: 0.95rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2vw, 2.1rem);
  list-style: none;
  padding: 0;
}

.nav__links a:not(.btn) {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-2);
  padding: 0.45rem 0.1rem;
  position: relative;
  transition: color var(--dur-fast) ease;
}

.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}

.nav__links a:not(.btn):hover,
.nav__links a:not(.btn)[aria-current="page"] {
  color: var(--text-1);
}

.nav__links a:not(.btn):hover::after,
.nav__links a:not(.btn)[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__links .nav__philosophy {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--lime);
}

.nav__toggle {
  display: none;
  z-index: 130;
  background: none;
  border: 0;
  width: 2.9rem;
  height: 2.9rem;
  cursor: pointer;
  position: relative;
}

.nav__toggle span {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  height: 2px;
  background: var(--text-1);
  transition: transform var(--dur-med) var(--ease-out),
    opacity var(--dur-fast) ease;
}

.nav__toggle span:nth-child(1) {
  top: 1.05rem;
}

.nav__toggle span:nth-child(2) {
  bottom: 1.05rem;
}

body.menu-open .nav__toggle span:nth-child(1) {
  transform: translateY(0.38rem) rotate(45deg);
}

body.menu-open .nav__toggle span:nth-child(2) {
  transform: translateY(-0.38rem) rotate(-45deg);
}

/* mobiel menu */
@media (max-width: 900px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 125;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.4rem;
    padding: calc(var(--nav-h) + 1rem) var(--gutter) 3rem;
    background: rgba(7, 9, 11, 0.96);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-med) ease, visibility 0s linear var(--dur-med);
  }

  body.menu-open .nav__links {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .nav__links a:not(.btn) {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 8vw, 2.8rem);
    font-weight: 520;
    letter-spacing: -0.01em;
    color: var(--text-1);
    padding: 0.35rem 0;
  }

  .nav__links .nav__philosophy {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  .nav__links li:last-child {
    margin-top: 1.6rem;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* ---------- knoppen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.85rem 1.9rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
    background var(--dur-fast) ease, color var(--dur-fast) ease,
    border-color var(--dur-fast) ease, box-shadow var(--dur-med) ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn--lime {
  background: var(--lime);
  color: #10130a;
}

.btn--lime:hover {
  background: #d8fa55;
  box-shadow: 0 0 42px rgba(200, 240, 49, 0.28);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text-1);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover svg {
  transform: translateX(4px);
}

/* tekstlink met pijl */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--lime);
  padding-block: 0.4rem;
}

.arrow-link svg {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform var(--dur-fast) var(--ease-out);
}

.arrow-link:hover svg {
  transform: translateX(5px);
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  user-select: none;
}

.marquee__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee__track span {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  white-space: nowrap;
  color: var(--text-3);
}

.marquee__track span i {
  font-style: italic;
  color: var(--lime);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- kracht-lijn (scroll-draad) ---------- */
.thread {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
}

.thread::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}

.thread__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--blue-deep), var(--lime));
  transform-origin: top;
  transform: scaleY(0);
  will-change: transform;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: var(--space-block) 0 2.5rem;
  background: var(--bg-0);
  position: relative;
}

.footer__motto {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  line-height: 1.1;
  max-width: 18ch;
  margin-bottom: var(--space-block);
}

.footer__motto i {
  font-style: italic;
  color: var(--lime);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
}

.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.footer__brand img {
  width: 2.6rem;
  height: auto;
}

.footer__brand strong {
  display: block;
  letter-spacing: 0.28em;
  font-size: 0.95rem;
}

.footer__brand small {
  color: var(--text-3);
  font-size: 0.82rem;
  display: block;
  margin-top: 0.35rem;
  line-height: 1.5;
}

.footer h4 {
  font-family: var(--grotesk);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.1rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer ul a,
.footer address {
  color: var(--text-2);
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.7;
  transition: color var(--dur-fast) ease;
}

.footer ul a:hover {
  color: var(--lime);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- reveal states (JS zet .is-inview) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(2.2rem);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-inview {
  opacity: 1;
  transform: none;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee__track {
    animation: none;
  }

  .thread__fill {
    transform: none;
  }
}
