/* ENERGYLOVERS – digitale visitekaartjes
   Kleuren afgeleid van het gedrukte kaartje: groen #15803D (PMS 356), lichtgroen #86EFAC / #BBF7D0, tekst #1A1A1A. */

:root {
  --bg: #0a0b0a;
  --fg: #f1f3ef;
  --fg-muted: #9aa39b;
  --fg-dim: #838b84;
  --line: rgba(255, 255, 255, 0.09);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.085);
  --green: #15803d;
  --green-light: #1c9a4b;
  --green-deep: #126a34;
  --mint: #86efac;
  --focus: #86efac;
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --card-w: min(100%, 460px);
  --card-radius: 5px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--fg);
  background-color: var(--bg);
  background-image:
    radial-gradient(90% 60% at 50% -12%, rgba(21, 128, 61, 0.28), rgba(21, 128, 61, 0) 65%),
    radial-gradient(55% 45% at 100% 100%, rgba(134, 239, 172, 0.05), rgba(134, 239, 172, 0) 70%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Zeer subtiele korrel voor diepte (statische tegel, geen animatie) */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: none;
  vertical-align: middle;
}

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

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

.skip-link {
  position: absolute;
  left: 50%;
  top: -120px;
  z-index: 20;
  transform: translateX(-50%);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Kop en voet ---------- */
.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: calc(30px + env(safe-area-inset-top)) 20px 0;
}

.brand {
  display: inline-flex;
  color: var(--fg);
  opacity: 0.9;
  text-decoration: none;
  border-radius: 6px;
  transition: opacity 0.2s;
}
a.brand:hover { opacity: 1; }

.wordmark {
  display: block;
  width: 150px;
  height: auto;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
}
.site-footer a {
  color: inherit;
  text-decoration: none;
  padding: 0.25rem 0.1rem;
  border-radius: 4px;
  transition: color 0.2s;
}
.site-footer a:hover { color: var(--fg); }

/* ---------- Hoofdinhoud ---------- */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 30px 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.intro { text-align: center; }

.name {
  margin: 0;
  font-size: clamp(1.75rem, 6vw, 2.375rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.role {
  margin: 0.6rem 0 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--fg-muted);
  font-size: 0.9375rem;
}
.role-company {
  font-size: 0.75rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.role-sep { color: var(--fg-dim); }

/* ---------- Zwevend kaartje ---------- */
.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 8px 0 0;
}

.card-scene {
  position: relative;
  width: var(--card-w);
  aspect-ratio: 85 / 55;
  perspective: 1400px;
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 28%;
  --sx: 0;
  --sy: 0;
  --la: 135deg;
}

.card-float {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: card-float 7.5s ease-in-out infinite;
  will-change: transform;
}

.card-tilt {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 1.1s var(--ease);
  will-change: transform;
}
.card-scene.is-tilting .card-tilt { transition: transform 0.16s ease-out; }
.card-scene.is-tilting .card-float,
.card-scene.is-tilting .card-shadow,
.card-scene.is-paused .card-float,
.card-scene.is-paused .card-shadow,
.card-scene.is-offscreen .card-float,
.card-scene.is-offscreen .card-shadow { animation-play-state: paused; }

.card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  border-radius: var(--card-radius);
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform 0.9s var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.card.is-flipped { transform: rotateY(180deg); }
.card:focus-visible { outline: 2px solid var(--focus); outline-offset: 10px; }

.card-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #fff;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.3),
    0 24px 48px -18px rgba(0, 0, 0, 0.75),
    0 60px 90px -40px rgba(0, 0, 0, 0.6);
}
.card-face--back { transform: rotateY(180deg) translateZ(0); }
.card-face picture,
.card-face img {
  display: block;
  width: 100%;
  height: 100%;
}
.card-face img { object-fit: cover; }

/* Lichtval: zachte highlight die met de muis meebeweegt en een lichte schaduwzijde */
.card-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(55% 75% at var(--gx) var(--gy), rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 72%),
    linear-gradient(var(--la), rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.09) 100%);
  opacity: 0.55;
  transition: opacity 0.6s var(--ease);
}
.card-scene.is-tilting .card-light { opacity: 1; }

.card-shadow {
  position: absolute;
  z-index: -1;
  left: 7%;
  right: 7%;
  bottom: -15%;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  filter: blur(10px);
  transform: translate(calc(var(--sx) * 1px), calc(var(--sy) * 1px)) scale(1);
  transition: transform 1.1s var(--ease);
  animation: shadow-float 7.5s ease-in-out infinite;
}

@keyframes card-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg); }
  50% { transform: translate3d(0, -9px, 0) rotateX(1.8deg) rotateY(-2.4deg); }
}
@keyframes shadow-float {
  0%, 100% { transform: translate(calc(var(--sx) * 1px), calc(var(--sy) * 1px)) scale(1); opacity: 0.95; }
  50% { transform: translate(calc(var(--sx) * 1px), calc(var(--sy) * 1px)) scale(0.93); opacity: 0.72; }
}

.flip-link {
  display: none;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.45rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fg-dim);
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.js .flip-link { display: inline-flex; }
.flip-link:hover { color: var(--fg); background: var(--surface); }
.flip-link .icon { width: 14px; height: 14px; }

/* ---------- Acties ---------- */
.actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 58px;
  padding: 0 1.4rem;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--green-light) 0%, var(--green) 55%, var(--green-deep) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 18px 36px -16px rgba(21, 128, 61, 0.8);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s;
}
.btn-primary .icon { width: 21px; height: 21px; }
.btn-primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 3px rgba(0, 0, 0, 0.45),
    0 22px 42px -16px rgba(21, 128, 61, 0.95);
}
.btn-primary:active { transform: translateY(0); filter: brightness(0.98); }

.action-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
}

.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 6px 2px 4px;
  border-radius: 14px;
  color: var(--fg);
  text-decoration: none;
}
.action-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.action-icon .icon { width: 22px; height: 22px; }
.action-label {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.action:hover .action-icon {
  background: var(--surface-hover);
  border-color: rgba(134, 239, 172, 0.4);
  color: var(--mint);
  transform: translateY(-2px);
}
.action:hover .action-label { color: var(--fg); }
.action:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.details {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}
.details dt {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.details dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--fg-muted);
}
.details a {
  color: inherit;
  text-decoration: none;
  padding: 0.1rem 0.15rem;
  border-radius: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.details a:hover { color: var(--fg); border-bottom-color: rgba(134, 239, 172, 0.6); }

.downloads {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--fg-dim);
}
.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.download-link:hover { color: var(--fg); background: var(--surface); }
.download-link .icon { width: 15px; height: 15px; }

/* ---------- Startpagina ---------- */
main.choose { max-width: 980px; }

.tiles {
  list-style: none;
  margin: 0;
  padding: 6px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.tile-link {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px 22px 24px;
  border-radius: 24px;
  color: var(--fg);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s;
}
.tile-link:hover {
  transform: translateY(-4px);
  border-color: rgba(134, 239, 172, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.03));
}
.tile-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

.tile-card {
  position: relative;
  display: block;
  width: 84%;
  margin: 8px auto 14px;
  aspect-ratio: 85 / 55;
  perspective: 1200px;
}
.tile-card-inner {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: #fff;
  transform: rotateX(9deg) rotateY(-12deg) rotateZ(-1deg);
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.3),
    0 30px 60px -24px rgba(0, 0, 0, 0.85),
    0 10px 20px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s var(--ease);
}
.tile-card-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.08) 100%);
}
.tile-card-inner { position: relative; }
.tile-link:hover .tile-card-inner { transform: rotateX(5deg) rotateY(-6deg) rotateZ(0deg); }
.tile-card-inner picture,
.tile-card-inner img {
  display: block;
  width: 100%;
  height: 100%;
}
.tile-shadow { display: none; }

.tile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
}
.tile-name {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.tile-role { font-size: 0.875rem; color: var(--fg-muted); }
.tile-sep { color: var(--fg-dim); }
.tile-company {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.tile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}
.tile-cta .icon { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.tile-link:hover .tile-cta .icon { transform: translateX(3px); }

/* ---------- Grotere schermen ---------- */
@media (min-width: 760px) {
  main { max-width: 560px; padding-top: 36px; gap: 36px; }
  main.choose { max-width: 980px; }
  .wordmark { width: 164px; }
  .name { font-size: 2.5rem; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-header { padding-top: calc(40px + env(safe-area-inset-top)); }
}

/* ---------- Beperkte beweging ---------- */
@media (prefers-reduced-motion: reduce) {
  .card-float, .card-shadow { animation: none !important; }
  .card-tilt, .card, .card-shadow, .card-light, .btn-primary, .action-icon,
  .tile-link, .tile-card-inner, .tile-cta .icon, .download-link, .flip-link { transition: none !important; }
  .card-tilt { transform: none !important; }
}
