/* ==========================================================
   MTS — Concept 2 · Executive Editorial
   Asymmetrisch, papierwit, marine inkt, blauw als enige accent.
   ========================================================== */

:root {
  --paper: #f3f4f1;
  --ink: #07121f;
  --navy: #06111d;
  --mute: #5a6472;
  --hair: rgba(7, 18, 31, 0.11);
  --hair-soft: rgba(7, 18, 31, 0.055);
  --accent: #0a74f0;
  --electric: #01a0ff;

  --m: clamp(20px, 2.9vw, 56px);   /* paginamarge */
  --g: clamp(12px, 1.25vw, 24px);  /* kolomgoot */

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);

  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "IBM Plex 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(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ol { list-style: none; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ----------------------------------------------------------
   Raster
   ---------------------------------------------------------- */
.grid-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  padding: 0 var(--m);
  pointer-events: none;
}
.grid-lines span {
  border-left: 1px solid var(--hair-soft);
  transform-origin: top;
  transform: scaleY(0);
}
.grid-lines span:last-of-type {
  position: absolute;
  top: 0;
  bottom: 0;
  right: var(--m);
}
.grid-lines__focus {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--col, 0px);
  background: linear-gradient(180deg, rgba(1, 160, 255, 0.05), rgba(1, 160, 255, 0.015) 60%, transparent);
  opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.6s ease;
  will-change: transform;
}
body.has-pointer .grid-lines__focus { opacity: 1; }

/* ----------------------------------------------------------
   Pagina
   ---------------------------------------------------------- */
.page {
  position: relative; /* bewust geen z-index: zo blijft multiply het papier zien */
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 0 var(--m);
}

/* Masthead ------------------------------------------------- */
.masthead {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  align-items: center;
  min-height: clamp(60px, 7.2vh, 84px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(0);
}
.masthead__logo {
  grid-column: 1 / span 2;
  display: block;
  width: clamp(92px, 7.4vw, 136px);
  opacity: 0;
  mix-blend-mode: multiply; /* het witte papier van het logo valt weg */
}
.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;
}
.masthead__cell { overflow: hidden; }
.masthead__cell > span {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
}
.masthead__cell--a { grid-column: 4 / span 3; }
.masthead__cell--b { grid-column: 7 / span 3; }
.masthead__cell--c { grid-column: 11 / span 2; text-align: right; }

/* Spread --------------------------------------------------- */
.spread {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto minmax(0, 1fr);
  column-gap: var(--g);
}

.title {
  grid-column: 1 / span 8;
  grid-row: 1;
  padding-top: clamp(28px, 6.5vh, 88px);
  font-size: clamp(3rem, 7.1vw, 9.2rem);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.052em;
  text-transform: uppercase;
}
.title__line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0 0.05em;
  margin-bottom: -0.05em;
}
.title__line > span {
  display: inline-block;
  transform: translate3d(0, 105%, 0);
}
.title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
  margin-left: 0.04em;
}

.thesis {
  grid-column: 9 / span 4;
  grid-row: 1;
  align-self: end;
  margin-bottom: clamp(4px, 1vh, 16px);
}
.thesis li {
  position: relative;
  display: grid;
  grid-template-columns: 3.2em 1fr;
  align-items: baseline;
  padding: clamp(10px, 1.5vh, 20px) 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;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0;
}
.thesis__t {
  font-size: clamp(1.2rem, 1.85vw, 2.3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  transform: translate3d(0, 110%, 0);
}

.note {
  grid-column: 1 / span 3;
  grid-row: 2;
  align-self: end;
  padding: 0 0 var(--m);
  max-width: 22ch;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
}
.note__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.note__label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--electric);
}
.note__text {
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* De plaat: het logo als uitgesneden beeld ------------------ */
.plate {
  position: relative;
  grid-column: 4 / -1;
  grid-row: 2;
  min-height: clamp(240px, 36vh, 560px);
  margin: clamp(28px, 5vh, 64px) calc(var(--m) * -1) 0 0;
  overflow: hidden;
  background: var(--navy);
  color: rgba(226, 236, 250, 0.62);
  clip-path: inset(100% 0 0 0);
}
.plate__img {
  position: absolute;
  inset: 0;
  transform: scale(1.14);
  transform-origin: 30% 60%;
}
.plate__drift {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.plate__img img {
  position: absolute;
  left: -14%;
  top: 50%;
  width: 112%;
  max-width: none;
  transform: translateY(-46%);
  filter: url(#logo-on-dark);
}
/* Zachte schaduw van boven, als bij een gedrukte plaat */
.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 17, 29, 0.55), transparent 28%),
    linear-gradient(0deg, rgba(6, 17, 29, 0.7), transparent 30%);
  pointer-events: none;
}
.plate__cap,
.plate__soon {
  position: absolute;
  text-shadow: 0 1px 12px rgba(6, 17, 29, 0.9);
  z-index: 1;
  bottom: clamp(16px, 2.2vw, 32px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
}
.plate__cap {
  left: clamp(16px, 2.2vw, 32px);
  display: flex;
  gap: 2.4em;
}
.plate__cap span:first-child { color: var(--electric); }
.plate__soon {
  right: calc(var(--m) + 4px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #eaf2ff;
}
.plate__soon::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--electric);
}

/* ----------------------------------------------------------
   Intro
   ---------------------------------------------------------- */
.is-ready .grid-lines span { animation: lineY 1.6s var(--ease-io) forwards; }
.is-ready .grid-lines span:nth-child(1)  { animation-delay: 0.00s; }
.is-ready .grid-lines span:nth-child(2)  { animation-delay: 0.04s; }
.is-ready .grid-lines span:nth-child(3)  { animation-delay: 0.08s; }
.is-ready .grid-lines span:nth-child(4)  { animation-delay: 0.12s; }
.is-ready .grid-lines span:nth-child(5)  { animation-delay: 0.16s; }
.is-ready .grid-lines span:nth-child(6)  { animation-delay: 0.20s; }
.is-ready .grid-lines span:nth-child(7)  { animation-delay: 0.24s; }
.is-ready .grid-lines span:nth-child(8)  { animation-delay: 0.28s; }
.is-ready .grid-lines span:nth-child(9)  { animation-delay: 0.32s; }
.is-ready .grid-lines span:nth-child(10) { animation-delay: 0.36s; }
.is-ready .grid-lines span:nth-child(11) { animation-delay: 0.40s; }
.is-ready .grid-lines span:nth-child(12) { animation-delay: 0.44s; }
.is-ready .grid-lines span:nth-child(13) { animation-delay: 0.48s; }

.is-ready .masthead::after { animation: lineX 1.4s var(--ease-io) 0.2s forwards; }
.is-ready .masthead__logo { animation: fade 1.2s ease 0.7s forwards; }
.is-ready .masthead__cell > span { animation: up 1s var(--ease) forwards; }
.is-ready .masthead__cell--a > span { animation-delay: 0.8s; }
.is-ready .masthead__cell--b > span { animation-delay: 0.9s; }
.is-ready .masthead__cell--c > span { animation-delay: 1.0s; }

.is-ready .title__line > span { animation: up 1.4s var(--ease) forwards; }
.is-ready .title__line:nth-child(1) > span { animation-delay: 0.55s; }
.is-ready .title__line:nth-child(2) > span { animation-delay: 0.68s; }
.is-ready .title__line:nth-child(3) > span { animation-delay: 0.81s; }

.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: 1.1s; }
.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: 1.24s; }
.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: 1.38s; }

.is-ready .plate { animation: plateIn 1.6s var(--ease-io) 0.9s forwards; }
.is-ready .plate__img { animation: settle 3.4s var(--ease) 0.9s forwards; }
.is-ready .plate__cap,
.is-ready .plate__soon { animation: fade 1s ease 2.2s forwards; }
.is-ready .note { animation: rise 1.1s var(--ease) 1.8s forwards; }

@keyframes lineY   { to { transform: scaleY(1); } }
@keyframes lineX   { to { transform: scaleX(1); } }
@keyframes up      { to { transform: translate3d(0, 0, 0); } }
@keyframes fade    { to { opacity: 1; } }
@keyframes rise    { to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes plateIn { to { clip-path: inset(0 0 0 0); } }
@keyframes settle  { to { transform: scale(1); } }

/* ----------------------------------------------------------
   Responsief
   ---------------------------------------------------------- */
@media (max-width: 1180px) and (orientation: portrait), (max-width: 760px) {
  .title { grid-column: 1 / span 12; font-size: clamp(3rem, 10vw, 7.4rem); }
  .plate__cap span + span { display: none; }
  .thesis {
    grid-column: 7 / span 6;
    grid-row: 2;
    align-self: start;
    margin: clamp(24px, 4vh, 48px) 0 0;
  }
  .spread { grid-template-rows: auto auto minmax(0, 1fr); }
  .note { grid-column: 1 / span 5; grid-row: 2; align-self: end; padding: 0; }
  .plate { grid-row: 3; grid-column: 1 / -1; margin-left: calc(var(--m) * -1); }
}

@media (max-width: 760px) {
  .grid-lines,
  .masthead,
  .spread { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid-lines span:nth-child(n+7):not(:last-of-type) { display: none; }
  .masthead__logo { grid-column: 1 / span 3; }
  .masthead__cell--a,
  .masthead__cell--b { display: none; }
  .masthead__cell--c { grid-column: 4 / span 3; }
  .title { grid-column: 1 / -1; font-size: clamp(2.5rem, 12.8vw, 4.6rem); padding-top: 32px; }
  .thesis { grid-column: 1 / -1; grid-row: 2; margin-top: 28px; }
  .note { grid-column: 1 / -1; grid-row: 3; margin: 28px 0 0; max-width: none; }
  .plate {
    grid-row: 4;
    min-height: 280px;
    margin-top: 28px;
  }
  .plate__img img { width: 190%; left: -34%; transform: translateY(-38%); }
  .plate__cap { gap: 1.2em; }
  .plate__soon { top: 16px; bottom: auto; }
}

/* ----------------------------------------------------------
   Minder beweging
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition: none !important;
  }
}
