/* ==========================================================
   MTS — Concept 8 · Combinatie 1 · 2 · 5
   De punt (5) wordt een lijn, de lijn wordt groei (1),
   gezet in een redactioneel raster (2).
   ========================================================== */

:root {
  --ink: #04070d;
  --ink-2: #07111e;
  --electric: #01a0ff;
  --cyan: #7fe6ff;
  --white: #eef3f9;
  --mute: rgba(222, 233, 248, 0.56);
  --hair: rgba(222, 233, 248, 0.13);
  --hair-soft: rgba(222, 233, 248, 0.04);

  --m: clamp(20px, 2.9vw, 56px);
  --g: clamp(12px, 1.25vw, 24px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);

  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
}

*,
*::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(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
ol { list-style: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ----------------------------------------------------------
   Achtergrond
   ---------------------------------------------------------- */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.stage__depth {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 45% at 74% 30%, rgba(1, 110, 230, 0.16), transparent 70%),
    radial-gradient(ellipse 80% 60% at 20% 110%, var(--ink-2), transparent 70%),
    var(--ink);
  opacity: 0;
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 85% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.5));
}
.stage__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  padding: 0 var(--m);
}
.stage__grid span {
  border-left: 1px solid var(--hair-soft);
  transform-origin: top;
  transform: scaleY(0);
}
.stage__grid span:last-child {
  position: absolute;
  top: 0;
  bottom: 0;
  right: var(--m);
}
.stage__light {
  position: absolute;
  left: 0;
  top: 0;
  width: 60vmax;
  height: 60vmax;
  margin: -30vmax 0 0 -30vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(1, 140, 255, 0.06), transparent 65%);
  will-change: transform;
  opacity: 0;
  transition: opacity 1s ease;
}
body.has-pointer .stage__light { opacity: 1; }

/* ----------------------------------------------------------
   Pagina
   ---------------------------------------------------------- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  column-gap: var(--g);
  padding: 0 var(--m) var(--m);
}
.page > :not(.flow) { position: relative; z-index: 1; }

/* De lijn ------------------------------------------------- */
.flow {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.flow path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow__main {
  stroke: url(#flow-grad);
  stroke-width: 2;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.flow__glow {
  stroke: var(--electric);
  stroke-width: 12;
  opacity: 0;
}
.flow__thin {
  stroke: url(#flow-grad);
  stroke-width: 0.8;
  opacity: 0;
}
.flow__comet {
  stroke: #e3f8ff;
  stroke-width: 2.4;
  stroke-dasharray: 60 1100;
  stroke-dashoffset: 60;
  opacity: 0;
}

/* Masthead (2) --------------------------------------------- */
.masthead {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  min-height: clamp(60px, 7.4vh, 84px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--hair);
  transform-origin: left;
  transform: scaleX(0);
}
.masthead p { overflow: hidden; }
.masthead p > span {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
}
.masthead strong { font-weight: 400; color: var(--white); margin-right: 0.5em; }
.masthead em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45em;
  line-height: 0;
  letter-spacing: 0;
  text-transform: none;
  color: var(--electric);
}
.masthead__a { grid-column: 1 / span 4; }
.masthead__b { grid-column: 7 / span 3; }
.masthead__c { grid-column: 10 / span 3; text-align: right; color: var(--electric); }

/* Logo (1) -------------------------------------------------- */
.mark {
  grid-column: 7 / -1;
  grid-row: 2 / 4;
  align-self: start;
  justify-self: end;
  width: clamp(260px, min(40vw, 58vh), 800px);
  margin-top: clamp(24px, 6vh, 80px);
  will-change: transform;
}
.logo-crop {
  position: relative;
  aspect-ratio: 1420 / 636;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
}
.logo-crop img {
  position: absolute;
  left: -10.4225%;
  top: -20.126%;
  width: 117.746%;
  max-width: none;
  filter: url(#logo-on-dark);
}
.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;
}

/* Statement (5) -------------------------------------------- */
.statement {
  grid-column: 1 / span 8;
  grid-row: 3;
  align-self: end;
  font-size: clamp(3.2rem, min(8.6vw, 15.5vh), 11.5rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.statement__l {
  display: block;
  width: fit-content;
  white-space: nowrap;
  opacity: 0;
  letter-spacing: 0.3em;
}
.dot {
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  margin-left: 0.06em;
  background: var(--electric);
  vertical-align: baseline;
  opacity: 0;
  transform: scale(0);
}

/* Onderste rij --------------------------------------------- */
.lede {
  grid-column: 1 / span 4;
  grid-row: 4;
  align-self: start;
  margin-top: clamp(20px, 4vh, 44px);
  max-width: 26ch;
  font-size: clamp(1rem, 1.15vw, 1.25rem);
  line-height: 1.4;
  color: var(--white);
  opacity: 0;
  transform: translate3d(0, 12px, 0);
}
.lede__k {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.lede__k::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--electric);
}

.thesis {
  grid-column: 9 / span 4;
  grid-row: 4;
  align-self: start;
  margin-top: clamp(20px, 4vh, 44px);
}
.thesis li {
  position: relative;
  display: grid;
  grid-template-columns: 3.2em 1fr;
  align-items: baseline;
  padding: clamp(8px, 1.3vh, 16px) 0;
  overflow: hidden;
}
.thesis li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hair);
  transform-origin: left;
  transform: scaleX(0);
}
.thesis__n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--electric);
  opacity: 0;
}
.thesis__t {
  font-size: clamp(1.05rem, 1.45vw, 1.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  transform: translate3d(0, 110%, 0);
}

/* ----------------------------------------------------------
   Choreografie
   ---------------------------------------------------------- */
.is-ready .stage__depth { animation: fade 2.2s ease forwards; }
.is-ready .stage__grid span { animation: lineY 1.6s var(--ease-io) forwards; }
.is-ready .stage__grid span:nth-child(odd) { animation-delay: 0.1s; }
.is-ready .stage__grid span:nth-child(even) { animation-delay: 0.25s; }

.is-ready .masthead::after { animation: lineX 1.4s var(--ease-io) 0.2s forwards; }
.is-ready .masthead p > span { animation: up 1s var(--ease) forwards; }
.is-ready .masthead__a > span { animation-delay: 0.6s; }
.is-ready .masthead__b > span { animation-delay: 0.7s; }
.is-ready .masthead__c > span { animation-delay: 0.8s; }

.is-ready .statement__l { animation: settle 2.1s var(--ease) forwards; }
.is-ready .statement__l:nth-child(1) { animation-delay: 0.45s; }
.is-ready .statement__l:nth-child(2) { animation-delay: 0.6s; }
.is-ready .statement__l:nth-child(3) { animation-delay: 0.75s; }
.is-ready .dot { animation: pop 0.7s var(--ease) 2.05s forwards; }

.is-ready .flow__main { animation: draw 2.8s var(--ease-io) 2.45s forwards; }
.is-ready .flow__glow { animation: fadeTo 2s ease 4.2s forwards; --to: 0.07; }
.is-ready .flow__thin { animation: fadeTo 2.4s ease 4.4s forwards; --to: 0.42; }
.is-ready .flow__thin--far { --to: 0.2; }
.is-ready .flow__comet {
  animation: comet 9s cubic-bezier(0.45, 0, 0.2, 1) 5.6s infinite, fadeTo 0.4s ease 5.6s forwards;
  --to: 0.95;
}

.is-ready .logo-crop { animation: wipe 1.7s var(--ease-io) 3.6s forwards; }
.is-ready .mark__scan { animation: scan 1.7s var(--ease-io) 3.6s forwards; }

.is-ready .lede { animation: rise 1.1s var(--ease) 2.6s forwards; }
.is-ready .thesis li::before { animation: lineX 1.1s var(--ease-io) forwards; }
.is-ready .thesis__t { animation: up 1.1s var(--ease) forwards; }
.is-ready .thesis__n { animation: fade 0.8s ease forwards; }
.is-ready .thesis li:nth-child(1)::before,
.is-ready .thesis li:nth-child(1) .thesis__t,
.is-ready .thesis li:nth-child(1) .thesis__n { animation-delay: 2.8s; }
.is-ready .thesis li:nth-child(2)::before,
.is-ready .thesis li:nth-child(2) .thesis__t,
.is-ready .thesis li:nth-child(2) .thesis__n { animation-delay: 2.94s; }
.is-ready .thesis li:nth-child(3)::before,
.is-ready .thesis li:nth-child(3) .thesis__t,
.is-ready .thesis li:nth-child(3) .thesis__n { animation-delay: 3.08s; }

@keyframes fade   { to { opacity: 1; } }
@keyframes fadeTo { to { opacity: var(--to, 1); } }
@keyframes lineX  { to { transform: scaleX(1); } }
@keyframes lineY  { to { transform: scaleY(1); } }
@keyframes up     { to { transform: translate3d(0, 0, 0); } }
@keyframes rise   { to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes draw   { to { stroke-dashoffset: 0; } }
@keyframes wipe   { to { clip-path: inset(0 0 0 0); } }
@keyframes pop    { to { opacity: 1; transform: scale(1); } }
@keyframes settle {
  from { opacity: 0; letter-spacing: 0.3em; }
  to   { opacity: 1; letter-spacing: -0.05em; }
}
@keyframes comet {
  0%   { stroke-dashoffset: 60; }
  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, 800px)); }
}

/* ----------------------------------------------------------
   Responsief
   ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .masthead__b { display: none; }
  .thesis { grid-column: 7 / span 6; }
  .lede { grid-column: 1 / span 6; }
}

@media (max-width: 1100px) and (orientation: portrait) {
  .mark { grid-column: 1 / -1; grid-row: 2; justify-self: center; width: min(80vw, 640px); margin-top: 10vh; }
  .statement { grid-column: 1 / -1; grid-row: 3; font-size: clamp(3rem, 13vw, 8rem); margin-top: 6vh; }
}

@media (max-width: 700px) {
  .page,
  .stage__grid,
  .masthead { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .stage__grid span:nth-child(n+7):not(:last-child) { display: none; }
  .masthead__a { grid-column: 1 / span 4; }
  .masthead__c { grid-column: 5 / span 2; }
  .mark { grid-column: 1 / -1; width: 86vw; margin-top: 8vh; }
  .statement { grid-column: 1 / -1; font-size: clamp(2.8rem, 15vw, 5rem); }
  .lede { grid-column: 1 / -1; grid-row: 4; }
  .thesis { grid-column: 1 / -1; grid-row: 5; margin-top: 24px; }
}

/* ----------------------------------------------------------
   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;
  }
  .flow__comet, .mark__scan { display: none; }
}
