/* ==========================================================
   MTS — Concept 4 · Forward Motion
   Alles beweegt één kant op: linksonder → rechtsboven.
   ========================================================== */

:root {
  --ink: #030913;
  --ink-2: #071526;
  --electric: #01a0ff;
  --cyan: #62ddff;
  --white: #eef5ff;
  --mute: rgba(220, 234, 252, 0.62);
  --faint: rgba(220, 234, 252, 0.38);

  --pad: clamp(20px, 3.6vw, 72px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "Manrope", "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(--white);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ----------------------------------------------------------
   Achtergrond + ribbon
   ---------------------------------------------------------- */
.atmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 72% 58%, rgba(1, 110, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 35% at 96% 6%, rgba(98, 221, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 80% 80% at 20% 20%, var(--ink-2), var(--ink) 70%);
  opacity: 0;
}
.ribbon {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  will-change: transform;
}

/* ----------------------------------------------------------
   Layout
   ---------------------------------------------------------- */
.frame {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: var(--pad);
}

.top__left {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 44px);
}
.brand {
  display: block;
  width: clamp(150px, 15vw, 290px);
  opacity: 0;
  transform: translate3d(-24px, 0, 0);
}
.logo-crop {
  position: relative;
  display: block;
  aspect-ratio: 1420 / 636;
  overflow: hidden;
}
.logo-crop img {
  position: absolute;
  left: -10.4225%;
  top: -20.126%;
  width: 117.746%;
  max-width: none;
  filter: url(#logo-on-dark);
}

.top__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: clamp(20px, 2.4vw, 44px);
  border-left: 1px solid rgba(220, 234, 252, 0.16);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  opacity: 0;
}
.top__soon { color: var(--electric); }

.copy {
  align-self: center;
  padding: 4vh 0 12vh;
}
.headline {
  max-width: 11ch;
  font-size: clamp(3rem, 7.8vw, 10rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.headline .w {
  display: inline-block;
  overflow: hidden;
  padding: 0.02em 0.06em 0.1em 0;
  margin: -0.02em 0.05em -0.1em 0;
  vertical-align: top;
}
.headline .w > span {
  display: inline-block;
  transform: translate3d(-0.6em, 0, 0);
  opacity: 0;
}
.headline b {
  font-weight: 800;
  color: var(--electric);
}
.headline .w:nth-of-type(4) > span { color: rgba(238, 245, 255, 0.98); }

.foot {
  justify-self: end;
  display: grid;
  gap: 22px;
  max-width: 34ch;
  text-align: left;
}
.foot__line { white-space: nowrap; }
.foot__lede {
  font-size: clamp(1.05rem, 1.35vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--white);
  opacity: 0;
  transform: translate3d(-18px, 0, 0);
}
.foot__line {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  opacity: 0;
}
/* Een pijl die zichzelf steeds opnieuw vooruit trekt */
.foot__arrow {
  position: relative;
  flex: none;
  width: 44px;
  height: 1px;
  overflow: hidden;
  background: rgba(1, 160, 255, 0.25);
}
.foot__arrow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--cyan));
  transform: translate3d(-100%, 0, 0);
  animation: push 2.8s cubic-bezier(0.6, 0, 0.2, 1) 4s infinite;
}

/* ----------------------------------------------------------
   Intro
   ---------------------------------------------------------- */
.is-ready .atmos  { animation: fade 2.4s ease forwards; }
.is-ready .ribbon { animation: fade 2.8s ease 0.2s forwards; }
.is-ready .brand  { animation: slide 1.4s var(--ease) 0.5s forwards; }
.is-ready .top__meta { animation: fade 1.2s ease 1.4s forwards; }

.is-ready .headline .w > span { animation: slide 1.5s var(--ease) forwards; }
.is-ready .headline .w:nth-of-type(1) > span { animation-delay: 0.8s; }
.is-ready .headline .w:nth-of-type(2) > span { animation-delay: 0.92s; }
.is-ready .headline .w:nth-of-type(3) > span { animation-delay: 1.04s; }
.is-ready .headline .w:nth-of-type(4) > span { animation-delay: 1.16s; }

.is-ready .foot__lede { animation: slide 1.4s var(--ease) 1.6s forwards; }
.is-ready .foot__line { animation: fade 1.2s ease 2s forwards; }

@keyframes fade  { to { opacity: 1; } }
@keyframes slide { to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes push  {
  0%   { transform: translate3d(-100%, 0, 0); }
  60%  { transform: translate3d(100%, 0, 0); }
  100% { transform: translate3d(100%, 0, 0); }
}

/* ----------------------------------------------------------
   Responsief
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .copy { align-self: start; padding: 12vh 0 0; }
  .headline { font-size: clamp(2.8rem, 12.6vw, 6.4rem); }
  .foot { justify-self: end; max-width: 30ch; }
  .foot__line { white-space: normal; }
}

@media (max-width: 520px) {
  .top__left { flex-direction: column; align-items: flex-start; gap: 18px; }
  .top__meta { padding: 0; border: 0; font-size: 10.5px; }
  .brand { width: 170px; }
  .foot__line { white-space: normal; }
  .copy { padding-top: 7vh; }
  .headline { font-size: clamp(2.6rem, 14.2vw, 4rem); }
  .foot { justify-self: stretch; max-width: none; padding-left: 18vw; }
}

@media (min-width: 901px) and (max-height: 720px) {
  .headline { font-size: clamp(2.8rem, 6.6vw, 7rem); }
  .copy { padding-bottom: 6vh; }
}

/* ----------------------------------------------------------
   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;
  }
  .foot__arrow::after { transform: none; }
}
