/* ==========================================================================
   ProntoCore — Core design system
   Palette "Deep Space + Plasma"
   Kleurtheorie: complementair schema. Een koele, blauw-zwarte basis (hue ≈ 228°)
   tegenover een warm plasma-oranje accent (hue ≈ 16°). Het accent wordt spaarzaam
   gebruikt als lichtbron (≈ 8%), ijsblauw is de ondersteunende koele tint voor data/AI.
   Verhouding: 70% basis · 22% neutraal · 8% accent.
   ========================================================================== */

/* Lettertypen: eigen server (geen verzoeken naar Google). Alleen Latijn + Latijn-uitgebreid
   (NL, EN, PL); de browser laadt per bestand alleen wat een pagina echt gebruikt. Licentie: OFL. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---- Ink (basis) ---- */
  --ink-1000: #030408;
  --ink-950: #05060B;
  --ink-900: #080A12;
  --ink-850: #0C0F18;
  --ink-800: #111522;
  --ink-750: #161B2A;
  --ink-700: #1C2230;
  --ink-600: #2A3244;
  --ink-500: #3B4459;

  /* ---- Mist / Bone (neutraal) ---- */
  --mist-500: #6F7890;   /* 4.6:1 op ink-950 */
  --mist-400: #8A93A6;   /* 6.4:1 */
  --mist-300: #B4BBC9;   /* 10:1 */
  --bone-100: #E8E3DA;
  --bone-50: #F3EFE8;    /* 17:1 */

  /* ---- Plasma (accent) ---- */
  --plasma-700: #B8360A;
  --plasma-600: #E0430C;
  --plasma-500: #FF5B1F;
  --plasma-400: #FF7A3D;
  --plasma-300: #FFB36B;
  --plasma-200: #FFD3A8;

  /* ---- Ice (secundair) ---- */
  --ice-600: #4F7BE0;
  --ice-500: #6E97F5;
  --ice-400: #8FB4FF;
  --ice-300: #B9D0FF;

  --ok-400: #5BE49B;

  /* ---- Semantisch ---- */
  --bg: var(--ink-950);
  --bg-elev: var(--ink-850);
  --bg-elev-2: var(--ink-800);
  --line: var(--ink-700);
  --line-soft: rgba(143, 180, 255, 0.08);
  --line-glow: rgba(255, 91, 31, 0.35);
  --text: var(--bone-50);
  --text-2: var(--mist-300);
  --text-3: var(--mist-400);
  --text-4: var(--mist-500);
  --accent: var(--plasma-500);
  --accent-glow: var(--plasma-300);
  --cool: var(--ice-400);

  --grad-plasma: linear-gradient(100deg, #FFD3A8 0%, #FFB36B 22%, #FF7A3D 52%, #FF5B1F 78%, #E0430C 100%);
  --grad-plasma-v: linear-gradient(180deg, #FFB36B 0%, #FF5B1F 60%, #E0430C 100%);
  --grad-ice: linear-gradient(100deg, #B9D0FF 0%, #8FB4FF 50%, #6E97F5 100%);
  --grad-surface: linear-gradient(180deg, rgba(22, 27, 42, 0.72) 0%, rgba(12, 15, 24, 0.72) 100%);

  /* ---- Typografie ---- */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-mega: clamp(3.1rem, 0.9rem + 10.4vw, 11.5rem);
  --fs-hero: clamp(3rem, 1.2rem + 8.2vw, 9.6rem);
  --fs-h1: clamp(2.5rem, 1.3rem + 5.2vw, 6.6rem);
  --fs-h2: clamp(2.1rem, 1.2rem + 3.9vw, 5.2rem);
  --fs-h3: clamp(1.4rem, 1.05rem + 1.4vw, 2.3rem);
  --fs-h4: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  --fs-lead: clamp(1.06rem, 0.96rem + 0.48vw, 1.4rem);
  --fs-body: clamp(0.98rem, 0.95rem + 0.14vw, 1.06rem);
  --fs-small: 0.875rem;
  --fs-micro: 0.6875rem;

  --lh-tight: 0.94;
  --lh-snug: 1.12;
  --lh-body: 1.6;

  --tracking-display: -0.045em;
  --tracking-tight: -0.025em;
  --tracking-wide: 0.22em;
  --tracking-wider: 0.32em;

  /* ---- Ruimte ---- */
  --gutter: clamp(16px, 4.2vw, 56px);
  --section-y: clamp(96px, 13vw, 210px);
  --container: 1440px;
  --container-narrow: 980px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --header-h: 64px;
  --bar-h: 34px;

  /* ---- Beweging ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.18, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-1: 0.18s;
  --dur-2: 0.35s;
  --dur-3: 0.7s;

  /* ---- Schaduw & gloed ---- */
  --glow-plasma: 0 0 12px rgba(255, 91, 31, 0.55), 0 0 42px rgba(255, 91, 31, 0.28);
  --glow-plasma-soft: 0 0 30px rgba(255, 122, 61, 0.18);
  --shadow-panel: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(143, 180, 255, 0.06);

  /* ---- Hero core positie (gedeeld met loader + WebGL) ---- */
  --core-y: 38;

  color-scheme: dark;
}

@media (max-width: 767px) {
  :root {
    /* telefoons: minder lege ruimte tussen secties (was minimaal 96px boven én onder) */
    --section-y: clamp(72px, 13vw, 96px);
  }
}

@media (min-width: 768px) {
  :root {
    --header-h: 76px;
    --core-y: 42;
  }
}

@media (min-width: 1100px) {
  :root {
    --header-h: 104px;
    --bar-h: 36px;
    --core-y: 46;
  }
}

/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: auto;
  background: var(--bg);
  /* telefoons: niets mag de pagina breder maken dan het scherm (anders "zwemt" de
     pagina zijwaarts). Op html zelf, zodat ook body's clip echt werkt. */
  overflow-x: clip;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

svg {
  overflow: visible;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--plasma-500);
  color: var(--ink-950);
}

:focus-visible {
  outline: 2px solid var(--plasma-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--ink-600) var(--ink-950);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ink-950);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--ink-600), var(--ink-700));
  border: 3px solid var(--ink-950);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--plasma-600);
}

/* ==========================================================================
   Typografie
   ========================================================================== */

.display,
h1,
h2,
h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-tight);
  text-wrap: balance;
}

h3 {
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
}

p {
  text-wrap: pretty;
}

.serif,
em.serif,
.display em,
h1 em,
h2 em,
h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-right: 0.04em;
}

.text-plasma {
  background: var(--grad-plasma);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.text-ice {
  background: var(--grad-ice);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-2);
  font-weight: 350;
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-weight: 400;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-3);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--plasma-500);
  box-shadow: var(--glow-plasma);
  flex: none;
}

.eyebrow--plain::before {
  display: none;
}

.eyebrow--line::before {
  width: 28px;
  height: 1px;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, var(--plasma-500));
  box-shadow: none;
}

.tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(var(--container-narrow) + var(--gutter) * 2);
}

/* iPhone liggend: inhoud nooit onder de notch/camera */
@supports (padding: max(0px)) {
  .container {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section-head {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(48px, 7vw, 110px);
}

.section-head--center {
  justify-items: center;
  text-align: center;
}

.section-head h2 {
  font-size: var(--fs-h2);
  max-width: 16ch;
}

.section-head--center h2 {
  max-width: 18ch;
}

.section-head .lead {
  max-width: 56ch;
}

.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
  border: 0;
  margin: 0;
}

/* ==========================================================================
   Toegankelijkheid
   ========================================================================== */

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--plasma-500);
  color: var(--ink-950);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur-2) var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
}

/* ==========================================================================
   Atmosfeer: grain + vignette
   ========================================================================== */

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* i18n: EN wordt vóór de eerste paint toegepast */
html.i18n-pending body {
  visibility: hidden;
}

/* Reveal helpers (JS zet .is-in) */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Kwaliteitsniveaus 0–14 (boot.js zet de klassen; zie PC_PERF.fx)
   fx-glass      glas-blur (alleen sterke desktops, niveau 12+)
   fx-no-grain   geen korrel over het scherm (telefoons, tablets, niveau < 10)
   fx-no-glow    geen filter-gloed (drop-shadow/blur) — telefoons en zwakke pc's
   fx-no-loops   geen eindeloze decoratieve animaties (niveau < 3)
   fx-static     niveau 0: alles direct zichtbaar, geen overgangen
   ========================================================================== */

/* Glas-effect: alleen waar de GPU het makkelijk trekt. Elders een dichte tint. */
html.fx-glass .site-header::before {
  background: linear-gradient(180deg, rgba(5, 6, 11, 0.84), rgba(5, 6, 11, 0.62));
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

html:not(.fx-glass) *,
html:not(.fx-glass) *::before,
html:not(.fx-glass) *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.fx-no-grain .grain {
  display: none;
}

/* Gloed via filters kost op telefoons per frame een extra render-pass:
   dezelfde kleuren, zonder filter */
html.fx-no-glow .brand-mark__core,
html.fx-no-glow .loader__progress,
html.fx-no-glow .process__path-fg,
html.fx-no-glow .flow__pulse,
html.fx-no-glow .care__pulse path,
html.fx-no-glow .final__core,
html.fx-no-glow .hero__fallback i {
  filter: none !important;
}

html.fx-no-glow .process__path-fg {
  stroke-width: 2.5;
}

/* Eindeloze decoratie uit (niveau 0–2) */
html.fx-no-loops .fab__ring,
html.fx-no-loops .btn__dot,
html.fx-no-loops .brand-mark__core,
html.fx-no-loops .final__ring,
html.fx-no-loops .final__core,
html.fx-no-loops .page-hero__orb i,
html.fx-no-loops .map__pin--me,
html.fx-no-loops .map__pin--me i,
html.fx-no-loops .care__checks i,
html.fx-no-loops .care__checks i::after,
html.fx-no-loops .care__pulse path,
html.fx-no-loops .hud__live,
html.fx-no-loops .hud__scroll i,
html.fx-no-loops .hero__holdring-core,
html.fx-no-loops .loader__grid,
html.fx-no-loops .tier--featured::before,
html.fx-no-loops .status-dot::after,
html.fx-no-loops .remote-line i::after,
html.fx-no-loops .loader__core::before,
html.fx-no-loops .ai-btn__orb,
html.fx-no-loops .ai-btn__orb i,
html.fx-no-loops .phone__soon i,
html.fx-no-loops .tp-hint i,
html.fx-no-loops .kern__ring--care,
html.fx-no-loops .kern__pulse,
html.fx-no-loops .kern__core::before,
html.fx-no-loops .kern__core i,
html.fx-no-loops .kern__ico::after,
html.fx-no-loops .notfound__code span {
  animation: none !important;
}

html.fx-no-loops .page-hero__orb,
html.fx-no-loops .final__orb {
  opacity: 0.5;
}

/* Niveau 0: alles meteen tonen */
html.fx-static .js [data-reveal],
html.fx-static [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Telefoons en tablets: de logo-kern in de vaste header ademt niet
   (een SVG-animatie zou het hele scherm lang elke frame opnieuw tekenen) */
html.is-touch .brand-mark__core {
  animation: none;
}

/* Knoppen: op aanraakschermen geen permanente eigen laag (geen magnetisch effect) */
html.is-touch .btn {
  will-change: auto;
}

/* Secties buiten beeld: oneindige animaties pauzeren (fx.js zet .anim-off) */
.anim-off,
.anim-off *,
.anim-off *::before,
.anim-off *::after {
  animation-play-state: paused !important;
}

/* Lange dienstpagina's: alles na de catalogus pas renderen als het dichtbij komt */
.svc-catalog ~ .section {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}