/* RXG — one-screen website */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #fd6c19;   /* uit het logo gehaald */
  --ink: #111111;
  --paper: #fafaf8;
  --text-2: #5c5c59;   /* lopende tekst: 6,5:1 op papier */
  --text-3: #6b6b67;   /* kleine labels: 5,2:1 */
  --text-soft: #8a8a85; /* tweede titelregel (grote tekst): 3,4:1 */
  --line: rgb(17 17 17 / 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Ritme: schaalt met breedte én hoogte, zodat alles op één scherm past. */
  --pad-x: clamp(1.25rem, 5vw, 4.5rem);
  --pad-y: clamp(1rem, 3dvh, 2.25rem);
}

/* ---------- Reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "ss01";
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
[hidden] { display: none !important; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

/* ---------- Achtergrond ---------- */

.flow {
  position: fixed;
  z-index: -1;
  right: -38vw;
  bottom: 0;
  width: 240vw;
  height: auto;
  pointer-events: none;
  animation: drift 48s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-1.2%, 0.8%, 0); }
}

/* ---------- Layout ---------- */

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  max-width: 1360px;
  min-height: 100vh;   /* fallback oudere browsers */
  min-height: 100dvh;  /* scrollen enkel als noodoplossing (zeer kleine schermen, grote tekst) */
  margin: 0 auto;
  padding:
    max(var(--pad-y), env(safe-area-inset-top))
    max(var(--pad-x), env(safe-area-inset-right))
    max(var(--pad-y), env(safe-area-inset-bottom))
    max(var(--pad-x), env(safe-area-inset-left));
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link { margin: -0.5rem; padding: 0.5rem; }

.logo {
  width: clamp(4rem, 3.5rem + 1.6vw, 5.25rem);
  height: auto;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: -0.5rem;
  padding: 0.75rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.header-icon { color: var(--orange); }

/* Gsm: boodschap bovenaan, contact onderaan binnen duimbereik. */
.main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(1.25rem, 3dvh, 2rem);
  padding-block: clamp(1.25rem, 4.5dvh, 3rem) clamp(1rem, 2.5dvh, 1.75rem);
}

.intro { max-width: 48rem; }

/* ---------- Typografie ---------- */

.eyebrow {
  position: relative;
  display: flex;
  padding-left: calc(6px + 0.85rem);
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.9rem;
  row-gap: 0.25rem;
  color: var(--text-3);
  font-size: clamp(0.625rem, 0.5rem + 0.55vw, 0.6875rem);
  font-weight: 500;
  letter-spacing: clamp(0.06em, -0.08em + 0.9vw, 0.12em);
  text-transform: uppercase;
}

.eyebrow-mark {
  position: absolute;
  top: calc(0.75em - 3px);
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--orange);
}

.eyebrow-item { display: none; white-space: nowrap; }

/* Scheidingsteken alleen waar er ruimte is; op gsm volstaat witruimte. */
@media (min-width: 30rem) {
  .eyebrow-item + .eyebrow-item::before {
    content: "/";
    margin-right: 0.6rem;
    color: rgb(17 17 17 / 0.22);
  }
}

.headline {
  margin-top: clamp(1rem, 2.6dvh, 1.75rem);
  /* Gsm: grote titel over vier regels, begrensd door breedte en hoogte. */
  font-size: min(4rem, calc((100vw - 2.75rem) / 6.5), 5.2dvh);
  font-weight: 560;
  line-height: 1.03;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.headline-line { display: block; }
.headline-soft { color: var(--text-soft); }

.lede {
  margin-top: clamp(1rem, 2.8dvh, 1.75rem);
  max-width: 36ch;
  color: var(--text-2);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  letter-spacing: -0.008em;
  text-wrap: pretty;
}

/* ---------- Diensten (gsm) ---------- */

.services {
  list-style: none;
  border-top: 1px solid var(--line);
}

.services li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: clamp(0.55rem, 1.25dvh, 0.8rem) 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.services-no {
  color: var(--text-3);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

/* Op lage gsm-schermen weglaten: de boodschap en het contact gaan voor. */
@media (max-height: 43rem) {
  .services { display: none; }
  .headline { font-size: min(4rem, calc((100vw - 2.75rem) / 6.5), 6.2dvh); }
}

/* ---------- Acties ---------- */

.actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 3.375rem;
  padding: 0 1.25rem 0 1.375rem;
  border-radius: 0.25rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 8px 24px -12px rgb(17 17 17 / 0.45);
  transition: background-color 350ms var(--ease), box-shadow 350ms var(--ease), transform 350ms var(--ease);
}
.cta:hover {
  background: #000;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 14px 30px -14px rgb(17 17 17 / 0.55);
}
.cta:active { transform: translateY(1px); }

.cta-icon {
  flex: none;
  color: var(--orange);
  transition: transform 450ms var(--ease);
}
.cta:hover .cta-icon,
.cta:focus-visible .cta-icon { transform: translate(3px, -3px); }

.link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 100% calc(50% + 0.75em);
  background-repeat: no-repeat;
  transition: background-size 450ms var(--ease);
}
.link:hover,
.link:focus-visible {
  background-size: 100% 1px;
  background-position: 0 calc(50% + 0.75em);
}

.email {
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-link {
  padding: 0.75rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

.copy-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.25rem;
  color: var(--text-3);
  cursor: pointer;
  transition: color 200ms, background-color 200ms;
}
.copy-btn:hover { color: var(--ink); background: rgb(17 17 17 / 0.05); }
.copy-btn .icon-check { display: none; color: var(--orange); }
.copy-btn[data-copied] .icon-copy { display: none; }
.copy-btn[data-copied] .icon-check { display: block; }

/* ---------- Footer ---------- */

.footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: clamp(0.75rem, 2dvh, 1.125rem);
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 1.5rem;
  height: 1px;
  background: var(--orange);
}

/* ---------- Tablet & desktop ---------- */

/* Eén compacte compositie, verticaal gecentreerd; de lijnen dragen de rechterkant. */
@media (min-width: 48rem) {
  .flow {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .main {
    justify-content: center;
    gap: clamp(1.75rem, 4.5dvh, 2.75rem);
    padding-block: clamp(1.5rem, 5dvh, 3rem) clamp(2rem, 8dvh, 5rem);
  }

  .eyebrow { column-gap: 0.6rem; font-size: 0.75rem; letter-spacing: 0.14em; }
  .eyebrow-short { display: none; }
  .eyebrow-item { display: inline; }
  .services { display: none; }

  .headline { font-size: min(clamp(2rem, 1.55rem + 3.4vw, 4.5rem), calc((100vw - 2.75rem) / 9.6), 9dvh); }

  .actions {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem 1.75rem;
  }

  .cta { justify-content: flex-start; }
}

/* Tablet staand: de lijnen onderaan houden, niet achter de tekst. */
@media (min-width: 48rem) and (max-aspect-ratio: 1/1) {
  .flow {
    inset: auto -20vw 0 auto;
    width: 160vw;
    height: auto;
  }
  .main { justify-content: flex-start; padding-top: clamp(4rem, 14dvh, 9rem); }
}

/* Lage schermen (gsm liggend): alles compact op één lijn. */
@media (max-height: 34rem) and (orientation: landscape) {
  :root { --pad-y: 0.75rem; }
  .flow { inset: 0; width: 100%; height: 100%; }
  .main {
    justify-content: center;
    gap: 1rem;
    padding-block: 0.75rem;
  }
  .headline { margin-top: 0.625rem; font-size: min(2.25rem, 10dvh); }
  .services { display: none; }
  .lede { margin-top: 0.625rem; line-height: 1.45; }
  .actions { flex-direction: row; align-items: center; gap: 1.5rem; }
  .cta { min-height: 2.75rem; justify-content: flex-start; }
}

/* ---------- Animatie ---------- */

.reveal {
  animation: reveal 1000ms var(--ease) both;
  animation-delay: var(--d, 0ms);
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .flow { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
