/* ==========================================================
   MTS — Concept 1 · Kinetic Blue
   Cinematisch, donker, de beweging uit het logo centraal.
   ========================================================== */

:root {
  --ink: #02060c;
  --ink-2: #06101c;
  --deep: #07162a;
  --electric: #01a0ff;
  --blue: #0a6cff;
  --cyan: #5fdcff;
  --ice: #e6f0ff;
  --mute: rgba(214, 229, 250, 0.58);
  --faint: rgba(214, 229, 250, 0.32);

  --pad: clamp(20px, 3.4vw, 64px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.18, 1);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--ice);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ----------------------------------------------------------
   Logo: het origineel, bijgesneden en omgezet voor donker
   ---------------------------------------------------------- */
.logo-crop {
  position: relative;
  aspect-ratio: 1420 / 636;
  overflow: hidden;
}
.logo-crop img {
  position: absolute;
  left: -10.4225%;
  top: -20.126%;
  width: 117.746%;
  max-width: none;
  height: auto;
  filter: url(#logo-on-dark);
}

/* ----------------------------------------------------------
   Achtergrond
   ---------------------------------------------------------- */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.stage__depth {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 42% 36% at 50% 40%, rgba(1, 110, 230, 0.17), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 115%, var(--deep), transparent 70%),
    radial-gradient(ellipse 70% 70% at 50% 45%, var(--ink-2), var(--ink) 75%);
  opacity: 0;
}

/* Gigantische tone-on-tone typografie die langzaam voorbij drijft */
.stage__type {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-58%);
  opacity: 0;
}
.stage__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: drift 90s linear infinite;
}
.stage__track span {
  display: block;
  padding-right: 0.35em;
  font-size: clamp(7rem, 21vw, 26rem);
  font-weight: 900;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  line-height: 0.8;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #07111f;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Elektrische lijn */
.flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.flow path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow__glow {
  stroke: url(#flow-grad);
  stroke-width: 14;
  opacity: 0;
}
.flow__main {
  stroke: url(#flow-grad);
  stroke-width: 1.8;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.flow__thin {
  stroke: url(#flow-grad);
  stroke-width: 0.8;
  opacity: 0;
}
.flow__comet,
.flow__comet-glow {
  stroke-dasharray: 70 1100;
  stroke-dashoffset: 70;
  opacity: 0;
}
.flow__comet { stroke: #dff7ff; stroke-width: 2.2; }
.flow__comet-glow { stroke: var(--cyan); stroke-width: 9; }

/* Muisgevoelig licht */
.stage__light {
  position: absolute;
  left: 0;
  top: 0;
  width: 70vmax;
  height: 70vmax;
  margin: -35vmax 0 0 -35vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(1, 140, 255, 0.075), rgba(1, 140, 255, 0.025) 40%, transparent 68%);
  will-change: transform;
  transform: translate3d(50vw, 45vh, 0);
  opacity: 0;
  transition: opacity 1.2s ease;
}
body.has-pointer .stage__light { opacity: 1; }

/* Fijne korrel voor een filmische textuur */
.stage__grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: overlay;
  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");
}

/* Vignet */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 80% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55));
}

/* ----------------------------------------------------------
   Kop
   ---------------------------------------------------------- */
.bar {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: calc(var(--pad) * 0.62) var(--pad);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mute);
}
.bar p { opacity: 0; }
.bar__brand strong {
  font-weight: 800;
  color: var(--ice);
  margin-right: 0.6em;
}
.bar__status {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: right;
}
.bar__rule {
  display: block;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--electric));
  transform-origin: right center;
  transform: scaleX(0);
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: clamp(24px, 6vw, 120px);
  padding: calc(var(--pad) * 1.6 + 20px) var(--pad) var(--pad);
}

.mark {
  position: relative;
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  width: clamp(260px, min(50vw, 86vh), 1000px);
  margin: 2vh 0 4vh;
  will-change: transform;
}
.mark .logo-crop {
  clip-path: inset(0 100% 0 0);
}
.mark__scan {
  position: absolute;
  top: -6%;
  bottom: -6%;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, #bff0ff 30%, #bff0ff 70%, transparent);
  box-shadow: 0 0 18px 2px rgba(1, 160, 255, 0.6);
  opacity: 0;
}

.headline {
  grid-column: 1;
  align-self: end;
  font-size: clamp(2.9rem, 7.3vw, 9rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--ice);
}
.headline .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.headline .line > span {
  display: inline-block;
  transform: translate3d(0, 108%, 0);
}
.headline i {
  font-style: normal;
  color: var(--electric);
}

.lede {
  grid-column: 2;
  align-self: end;
  max-width: 30ch;
  padding-bottom: 0.9em;
  font-size: clamp(0.98rem, 1.05vw, 1.2rem);
  line-height: 1.55;
  font-weight: 400;
  color: var(--mute);
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}
.lede__index {
  display: block;
  margin-bottom: 1.4em;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--electric);
}

.side {
  position: fixed;
  z-index: 2;
  right: calc(var(--pad) * 0.5);
  top: 50%;
  transform: translate(50%, -50%) rotate(90deg);
  transform-origin: center;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  opacity: 0;
}

/* ----------------------------------------------------------
   Intro-choreografie (start zodra body.is-ready)
   ---------------------------------------------------------- */
.is-ready .stage__depth { animation: fade 2.4s ease forwards; }
.is-ready .stage__type  { animation: fade 3s ease 0.6s forwards; }
.is-ready .flow__main   { animation: draw 2.6s var(--ease-io) 0.25s forwards; }
.is-ready .flow__glow   { animation: fadeTo 3s ease 1.4s forwards; --to: 0.09; }
.is-ready .flow__thin   { animation: fadeTo 3s ease 1.6s forwards; --to: 0.45; }
.is-ready .flow__comet,
.is-ready .flow__comet-glow {
  animation: comet 9s cubic-bezier(0.45, 0, 0.2, 1) 3s infinite, fadeTo 0.6s ease 3s forwards;
}
.is-ready .flow__comet      { --to: 0.95; }
.is-ready .flow__comet-glow { --to: 0.22; }

.is-ready .mark .logo-crop { animation: wipe 1.7s var(--ease-io) 0.7s forwards; }
.is-ready .mark__scan      { animation: scan 1.7s var(--ease-io) 0.7s forwards; }

.is-ready .headline .line > span { animation: rise 1.3s var(--ease-out) forwards; }
.is-ready .headline .line:nth-child(1) > span { animation-delay: 1.35s; }
.is-ready .headline .line:nth-child(2) > span { animation-delay: 1.5s; }

.is-ready .lede { animation: rise-soft 1.2s var(--ease-out) 1.9s forwards; }
.is-ready .bar p { animation: track 1.6s var(--ease-out) 1.7s forwards; }
.is-ready .bar__rule { animation: grow 1.4s var(--ease-io) 2.2s forwards; }
.is-ready .side { animation: fade 2s ease 2.4s forwards; }

@keyframes fade    { to { opacity: 1; } }
@keyframes fadeTo  { to { opacity: var(--to, 1); } }
@keyframes draw    { to { stroke-dashoffset: 0; } }
@keyframes wipe    { to { clip-path: inset(0 0 0 0); } }
@keyframes rise    { to { transform: translate3d(0, 0, 0); } }
@keyframes rise-soft { to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes grow    { to { transform: scaleX(1); } }
@keyframes comet {
  0%   { stroke-dashoffset: 70; }
  70%  { stroke-dashoffset: -1010; }
  100% { stroke-dashoffset: -1010; }
}
@keyframes scan {
  0%   { opacity: 0; transform: translateX(0); }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(var(--scan-x, 1000px)); }
}
@keyframes track {
  from { opacity: 0; letter-spacing: 0.6em; }
  to   { opacity: 1; letter-spacing: 0.26em; }
}

/* ----------------------------------------------------------
   Responsief
   ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .side { display: none; }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto auto;
    row-gap: 28px;
    padding-top: 96px;
  }
  .mark {
    width: min(88vw, 560px);
    margin: 0;
  }
  .headline { font-size: clamp(2.6rem, 12.4vw, 5.6rem); }
  .lede { grid-column: 1; max-width: 34ch; padding-bottom: 0; }
  .bar { align-items: flex-start; }
  .bar__status { flex-direction: column-reverse; align-items: flex-end; gap: 8px; }
  .stage__track span { font-size: 38vw; }
}

@media (max-width: 480px) {
  .bar { font-size: 10px; letter-spacing: 0.2em; }
  .bar__brand { max-width: 12em; }
  .hide-sm { display: none; }
}

/* Lage, brede schermen (laptops met browserbalk) */
@media (min-width: 821px) and (max-height: 700px) {
  .mark { width: clamp(240px, 74vh, 760px); margin: 0 0 2vh; }
  .headline { font-size: clamp(2.6rem, 6vw, 6.4rem); }
}

/* ----------------------------------------------------------
   Minder beweging
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
  .stage__track { animation: none !important; }
  .flow__comet, .flow__comet-glow, .mark__scan { display: none; }
}
