@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/inter.woff2) format("woff2"); }

:root {
  --bg: #07060d;
  --ink: #f4f1ff;
  --zacht: #cbc4e4;
  --dof: #8b84a8;
  --paars: #7c3aed;
  --cyaan: #06b6d4;
  --roze: #f43f5e;
  --glas: rgba(255, 255, 255, .055);
  --rand: rgba(255, 255, 255, .14);
  --mx: 0;
  --my: 0;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  overflow-x: hidden; isolation: isolate;
}

/* Aurora: drie wazige kleurvlekken die langzaam drijven, plus korrel */
.aurora { position: fixed; inset: -20%; z-index: -2; filter: blur(80px) saturate(1.2); opacity: .8; }
.aurora i { position: absolute; border-radius: 50%; width: 55vmax; height: 45vmax; mix-blend-mode: screen; }
.aurora i:nth-child(1) { background: var(--paars); left: 5%; top: 10%; animation: drijf1 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: var(--cyaan); right: 0; top: 0; opacity: .75; animation: drijf2 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { background: var(--roze); left: 30%; bottom: -5%; opacity: .6; animation: drijf3 30s ease-in-out infinite alternate; }
@keyframes drijf1 { to { transform: translate(18vmax, 10vmax) scale(1.15); } }
@keyframes drijf2 { to { transform: translate(-16vmax, 14vmax) scale(.9); } }
@keyframes drijf3 { to { transform: translate(-10vmax, -16vmax) scale(1.2); } }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Kop */
.nav {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: max(20px, env(safe-area-inset-top)) clamp(18px, 4vw, 40px) 0;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--zacht);
}
.merk { font-weight: 600; }
.status {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  border: 1px solid var(--rand); border-radius: 999px; padding: 7px 14px;
  background: var(--glas); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.status b { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 12px #34d399; animation: knipper 1.6s infinite; }
@keyframes knipper { 50% { opacity: .3; } }

/* Held */
.hero { flex: 1; display: grid; place-items: center; align-content: center; text-align: center; padding: 48px 22px 20px; }
.orb {
  width: clamp(120px, 22vmin, 180px); aspect-ratio: 1; border-radius: 50%; margin-bottom: 38px; position: relative;
  transform: translate(calc(var(--mx) * 14px), calc(var(--my) * 14px));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
  filter: drop-shadow(0 0 40px rgba(167, 139, 250, .55));
}
.orb::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, #a78bfa, #22d3ee, #f472b6, #fbbf24, #a78bfa);
  animation: draai 10s linear infinite;
  box-shadow: 0 0 90px 12px rgba(167, 139, 250, .45), inset 0 0 40px rgba(255, 255, 255, .5);
}
.orb span {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 42%),
              radial-gradient(circle at 70% 78%, rgba(7, 6, 13, .45), transparent 55%);
}
.orb::after { /* ademende halo */
  content: ""; position: absolute; inset: -18%; border-radius: 50%;
  border: 1px solid rgba(196, 181, 253, .35); animation: adem 4s ease-in-out infinite;
}
@keyframes draai { to { transform: rotate(360deg); } }
@keyframes adem { 0%, 100% { transform: scale(.92); opacity: .2; } 50% { transform: scale(1.06); opacity: .7; } }

h1 {
  font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
  font-size: clamp(48px, 9.5vw, 116px); line-height: .94; letter-spacing: -.025em;
  margin: 0; max-width: 11ch; text-wrap: balance;
}
h1 em {
  font-style: italic; padding-right: .06em;
  background: linear-gradient(90deg, #c4b5fd, #67e8f9, #f9a8d4, #c4b5fd); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: glans 8s linear infinite;
}
@keyframes glans { to { background-position: 300% 0; } }
.sub { max-width: 46ch; margin: 24px auto 0; color: var(--zacht); font-size: clamp(16px, 2.2vw, 19px); text-wrap: pretty; }
.uitspraak { min-height: 3.2em; margin: 22px auto 0; max-width: 44ch; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(19px, 2.6vw, 24px); color: #e9e3ff; }
.uitspraak span { display: inline-block; transition: opacity .6s, filter .6s, transform .6s; }
.uitspraak span.weg { opacity: 0; filter: blur(8px); transform: translateY(6px); }

/* Glazen kaartjes */
.glas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: min(920px, calc(100% - 36px)); margin: 28px auto 34px; }
.glas div {
  border: 1px solid var(--rand); border-radius: 20px; padding: 20px 20px 18px; font-size: 14px; color: #ddd6fe;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), border-color .4s;
}
.glas div:hover { transform: translateY(-4px); border-color: rgba(196, 181, 253, .4); }
.glas b { display: block; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 34px; line-height: 1.1; color: #fff; margin-bottom: 4px; font-variant-numeric: tabular-nums; }

.voet { text-align: center; padding: 0 22px max(28px, env(safe-area-inset-bottom)); font-size: 12px; color: var(--dof); letter-spacing: .02em; }

/* Binnenkomst */
.nav, .orb, h1, .sub, .uitspraak, .glas div, .voet { animation: in 1s cubic-bezier(.2, .8, .2, 1) both; }
.orb { animation-delay: .1s; } h1 { animation-delay: .25s; } .sub { animation-delay: .4s; } .uitspraak { animation-delay: .55s; }
.glas div:nth-child(1) { animation-delay: .65s; } .glas div:nth-child(2) { animation-delay: .75s; } .glas div:nth-child(3) { animation-delay: .85s; }
.voet { animation-delay: 1s; }
@keyframes in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

@media (max-width: 680px) {
  .glas { grid-template-columns: 1fr; }
  .nav { letter-spacing: .08em; font-size: 11px; gap: 10px; }
  .merk { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .status { padding: 6px 11px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
