/* Layer Work — layerwork.nl
   Donker industrieel. Ondergrond #0a0a0b, ink wit/grijs,
   oranje #f1641e uitsluitend als koop-/actiesignaal. */

/* ---------- tokens ---------- */
:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --line: rgba(255, 255, 255, .11);
  --line-soft: rgba(255, 255, 255, .06);
  --ink: #f2f2f0;
  --muted: #9b9b96;
  --dim: #6e6e69;
  --accent: #f1641e;

  --display: 'Oxanium', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gut: clamp(16px, 4vw, 48px);
}

/* ---------- basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* FDM-laagjestextuur over de hele pagina */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 5px);
  mix-blend-mode: overlay;
  opacity: .7;
}

img, svg { display: block; max-width: 100%; height: auto; }

/* moet na de display-regels staan: anders wint .btn { display: inline-flex } */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: 400; letter-spacing: .02em; text-wrap: balance; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 10, 11, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 66px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { height: 22px; width: auto; }
.brand .wordmark { height: 13px; width: auto; opacity: .95; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 8vw, 92px) clamp(56px, 9vw, 104px);
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -30%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, .055), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dim);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 22px;
  height: 1px;
  background: var(--accent);
}

h1 {
  margin-top: 20px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(30px, 6.6vw, 64px);
  line-height: 1.06;
  letter-spacing: .005em;
}

h1 .thin { color: var(--dim); }

.lead {
  max-width: 62ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17.5px);
}

/* ---------- printanimatie ---------- */
.printer {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
}

.plate {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 15.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5) 18%, rgba(255, 255, 255, .5) 82%, transparent);
}

.plate::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent);
}

.stage {
  position: relative;
  width: 78%;
  margin-bottom: 6%;
}

.stage .ghost { width: 100%; opacity: .14; }

.stage .build {
  position: absolute;
  inset: 0;
  clip-path: inset(100% 0 0 0);
  animation: build 7s linear infinite;
}

.stage .build img { width: 100%; }

.nozzle {
  position: absolute;
  left: -4%;
  right: -4%;
  top: 100%;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 14px 2px rgba(241, 100, 30, .6);
  animation: nozzle 7s linear infinite;
}

@keyframes build {
  0%   { clip-path: inset(100% 0 0 0); }
  78%  { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

@keyframes nozzle {
  0%   { top: 100%; opacity: 0; }
  4%   { opacity: 1; }
  78%  { top: 0; opacity: 1; }
  86%  { opacity: 0; }
  100% { top: 0; opacity: 0; }
}

/* ---------- status ---------- */
.status {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(56px, 9vw, 104px);
  text-align: center;
}

/* de streep vóór het label staat normaal links; gecentreerd hoort hij mee te schuiven */
.status .eyebrow { justify-content: center; }

.status h2,
.status h1 {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: .04em;
  font-size: clamp(23px, 4vw, 38px);
  line-height: 1.25;
}

/* ---------- 404 ---------- */
.notfound .lead { margin-inline: auto; }

.backlink {
  display: inline-block;
  margin-top: 26px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .2s;
}

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

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
  padding-block: clamp(40px, 6vw, 64px);
}

.site-footer .lockup {
  max-width: 270px;
  opacity: .9;
}

.fmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }

  .printer {
    order: -1;
    max-width: 340px;
    margin-inline: auto;
  }
}

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

  .stage .build {
    animation: none;
    clip-path: inset(0);
  }

  .nozzle { display: none; }
}
