@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url(fonts/barlow-400.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url(fonts/barlow-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-700.woff2) format('woff2'); }

:root {
  --bg: #0e0f10;
  --ink: #e7e5e2;
  --ink-dim: #bdb8b2;
  --ink-faint: #9a958f;
  --heading: #f6f4f1;
  --amber: #dc9354;          /* oranje uit het logo */
  --amber-hover: #efab70;
  --on-amber: #141516;
  --line: rgba(255,240,225,.2);
  --field: rgba(14,15,16,.8);
  --ok: #8fd47f;
  --fout: #f08a78;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 5.5vw, 88px);
  /* positie en grootte van de werklamp; app.js beweegt hem */
  --lx: 68%;
  --ly: 46%;
  --lr: clamp(240px, 34vw, 560px);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-color: #3a3632 var(--bg); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto;
  background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 'Barlow', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--amber); color: var(--on-amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 3px; }

/* ── Werkplaats onder de lamp ─────────────────────────────────────────────
   Dezelfde foto twee keer: één bijna zwart, één warm verlicht. De verlichte laag
   is alleen zichtbaar binnen de lichtbundel (mask), die de cursor volgt. */
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); }
.photo {
  position: absolute; inset: -2%;
  background: url("achtergrond.jpg") center / cover no-repeat;
  background-image: image-set(url("achtergrond.webp") type("image/webp"), url("achtergrond.jpg") type("image/jpeg"));
}
.photo-base { filter: brightness(.3) saturate(.55) contrast(1.05); }
.photo-lit {
  filter: brightness(1.45) saturate(1.1) sepia(.2) contrast(1.08);
  -webkit-mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 0%, rgba(0,0,0,.72) 32%, rgba(0,0,0,.22) 62%, transparent 100%);
          mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 0%, rgba(0,0,0,.72) 32%, rgba(0,0,0,.22) 62%, transparent 100%);
  animation: lamp-on 1.5s .25s steps(1, end) both;
}
/* leesbaarheid: donker aan de tekstkant, zachte vignet rondom */
.shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,15,16,.94) 0%, rgba(14,15,16,.82) 30%, rgba(14,15,16,.35) 58%, rgba(14,15,16,.1) 100%),
    linear-gradient(180deg, rgba(14,15,16,.55) 0%, transparent 22%, transparent 70%, rgba(14,15,16,.9) 100%);
}

/* ── Kop- en voetbalk ─────────────────────────────────────────────────── */
.top, main, .bar { position: relative; z-index: 1; padding-inline: var(--pad); }
.top { display: flex; align-items: center; gap: 18px; padding-top: clamp(22px, 4vw, 44px); }
.logo { width: 180px; height: auto; display: block; }
.x { width: 11px; height: 11px; fill: none; stroke: var(--ink-faint); stroke-width: 1.6; stroke-linecap: round; flex: none; }
.vienix-link { display: block; padding: 10px 0; opacity: .82; transition: opacity .2s; }
.vienix-link:hover { opacity: 1; }
.vienix { width: 112px; height: auto; display: block; }

.bar { padding-bottom: clamp(18px, 3vw, 34px); }
.contact {
  display: flex; flex-wrap: wrap; gap: 0 32px; padding-top: 14px;
  border-top: 1px solid rgba(255,240,225,.12); max-width: 620px;
}
.contact a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 6px; text-decoration-thickness: 1px; transition: color .2s, text-decoration-color .2s;
}
.contact a:hover { color: var(--amber-hover); text-decoration-color: currentColor; }
.contact svg { width: 17px; height: 17px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 32px; }
.contact { flex: 1; }
.credit {
  display: inline-flex; align-items: center; min-height: 44px; flex: none;
  color: var(--ink-faint); font-size: 14.5px; text-decoration: none; transition: color .2s;
}
.credit span { margin-left: .3em; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: color .2s, text-decoration-color .2s; }
.credit:hover span { color: var(--amber-hover); text-decoration-color: currentColor; }

/* ── Inhoud ───────────────────────────────────────────────────────────── */
main { display: flex; flex-direction: column; justify-content: center; padding-block: clamp(48px, 8vh, 96px); max-width: 1100px; }

h1 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.4rem, 10.2vw, 6rem); line-height: .9; letter-spacing: -.01em; color: var(--heading);
}
.h1-line { display: block; }
.h1-accent { color: var(--amber); }

.copy { margin-top: clamp(22px, 3vw, 32px); max-width: 33em; }
.intro { color: var(--ink-dim); font-size: clamp(17px, 1.4vw, 19px); text-wrap: pretty; }
.news { margin-top: 10px; color: var(--heading); font-weight: 600; font-size: clamp(17px, 1.4vw, 19px); }

.signup { margin-top: clamp(32px, 5vh, 52px); width: 100%; max-width: 560px; }
.signup label { display: block; font-weight: 600; color: var(--heading); margin-bottom: 12px; }
.signup-row {
  display: flex; padding: 6px; gap: 6px; border-radius: 10px;
  background: var(--field); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.signup-row:hover { border-color: rgba(255,240,225,.32); }
.signup-row:focus-within { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(220,147,84,.2); }
.signup.invalid .signup-row { border-color: var(--fout); }
.signup input[type=email] {
  flex: 1; min-width: 0; min-height: 50px; padding: 0 12px; border: 0; background: transparent;
  color: var(--heading); caret-color: var(--amber); font: 400 16px/1.2 'Barlow', sans-serif;
}
.signup input[type=email]:focus { outline: none; }
.signup input[type=email]::placeholder { color: var(--ink-faint); }
.signup input:-webkit-autofill {
  -webkit-text-fill-color: var(--heading); caret-color: var(--amber);
  -webkit-box-shadow: 0 0 0 40px #1a1a1a inset; transition: background-color 9999s;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 6px; border: 0; cursor: pointer;
  background: var(--amber); color: var(--on-amber);
  font: 600 16px/1 'Barlow', sans-serif; white-space: nowrap; touch-action: manipulation;
  transition: background-color .2s, transform .15s var(--ease-out), opacity .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.btn:hover { background: var(--amber-hover); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn[aria-busy="true"] svg { animation: nudge .8s ease-in-out infinite; }

.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-hint { margin-top: 12px; font-size: 14.5px; color: var(--ink-faint); min-height: 1.6em; }
.signup-hint.fout { color: var(--fout); }

.signup.done label, .signup.done .signup-row, .signup.done .signup-hint { display: none; }
.signup-done {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 10px; outline: none;
  border: 1px solid rgba(143,212,127,.35); background: var(--field);
  color: var(--heading); font-weight: 600; animation: rise .6s var(--ease-out) both;
}
.signup-done[hidden] { display: none; }
.signup-done svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.signup-done path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .5s .2s var(--ease-out) forwards; }

/* ── Binnenkomst: de lamp springt aan, daarna komt de tekst ───────────── */
.top { animation: rise .8s .9s var(--ease-out) both; }
.h1-line { animation: rise 1s var(--ease-out) both; }
.h1-line:first-child { animation-delay: .55s; }
.h1-accent { animation-delay: .68s; }
.copy { animation: rise .9s .85s var(--ease-out) both; }
.signup { animation: rise .9s 1s var(--ease-out) both; }
.bar { animation: rise .9s 1.15s var(--ease-out) both; }

/* tl-buis: twee keer haperen, dan aan */
@keyframes lamp-on {
  0% { opacity: 0; } 8% { opacity: .7; } 14% { opacity: 0; } 30% { opacity: .9; } 36% { opacity: .15; } 52% { opacity: 1; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes nudge { 50% { transform: translateX(4px); } }

/* ── Kleiner scherm ───────────────────────────────────────────────────── */
@media (max-width: 700px) {
  :root { --lr: 80vw; --lx: 50%; --ly: 24%; }
  .photo {
    background-image: image-set(url("achtergrond-960.webp") type("image/webp"), url("achtergrond.jpg") type("image/jpeg"));
    background-position: 68% center;
  }
  .shade {
    background:
      linear-gradient(180deg, rgba(14,15,16,.5) 0%, rgba(14,15,16,.25) 22%, rgba(14,15,16,.82) 46%, rgba(14,15,16,.95) 100%);
  }
  main { justify-content: flex-end; padding-block: 18vh 36px; }
}
@media (max-width: 520px) {
  .top { gap: 12px; }
  .logo { width: 132px; }
  .vienix { width: 88px; }
  .x { width: 9px; height: 9px; }
  .signup-row { flex-direction: column; }
  .btn { width: 100%; }
  .contact { flex-direction: column; gap: 0; }
  .bar { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .signup-done path { stroke-dashoffset: 0; }
}
