/* ==========================================================
   MTS — Concept 6 · Blue Field
   Een Zwitserse affiche: één vlak elektrisch blauw,
   marine typografie, wit als licht.
   ========================================================== */

:root {
  --blue: #0a6cff;
  --blue-hi: #3b8dff;
  --navy: #06101c;
  --white: #ffffff;
  --rule: rgba(6, 16, 28, 0.32);
  --soft: rgba(255, 255, 255, 0.78);

  --pad: clamp(20px, 3vw, 56px);
  --gap: clamp(10px, 1.2vw, 24px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);

  --display: "Anybody", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM 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:
    radial-gradient(ellipse 70% 60% at 88% -10%, var(--blue-hi), transparent 70%),
    var(--blue);
  color: var(--navy);
  font-family: var(--display);
  line-height: 1.4;
  -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; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Drukkorrel, alsof het op papier gezeefdrukt is */
.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------
   Affiche-raster
   ---------------------------------------------------------- */
.poster {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  column-gap: var(--gap);
  padding: var(--pad) var(--pad) calc(var(--pad) * 0.7);
}

/* Meta ------------------------------------------------------ */
.meta {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  padding-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.meta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--navy);
  transform-origin: left;
  transform: scaleX(0);
}
.meta p { opacity: 0; }
.meta__a { grid-column: 1 / span 4; }
.meta__b { grid-column: 5 / span 4; }
.meta__c { grid-column: 9 / span 4; text-align: right; color: var(--white); }

/* Merk ------------------------------------------------------ */
.mark {
  grid-column: 1 / span 4;
  grid-row: 2;
  width: clamp(200px, 27vw, 520px);
  margin-top: clamp(24px, 5vh, 64px);
  clip-path: inset(100% 0 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-blue);
}

.lead {
  grid-column: 9 / span 4;
  grid-row: 2;
  align-self: end;
  max-width: 19ch;
  font-size: clamp(1.05rem, 1.45vw, 1.75rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transform: translate3d(0, 14px, 0);
}

/* De drie woorden ------------------------------------------ */
.words {
  grid-column: 1 / -1;
  grid-row: 4;
  margin-top: 4vh;
}
.row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
  padding-top: clamp(6px, 1.2vh, 14px);
  cursor: default;
}
.row::before,
.row::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  transform-origin: left;
}
.row::before { background: var(--rule); transform: scaleX(0); }
.row::after {
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transition: transform 0.9s var(--ease);
}
.row__w {
  grid-column: 1 / span 9;
  font-size: clamp(3.2rem, min(12.4vw, 17vh), 15.5rem);
  font-weight: 900;
  font-stretch: 50%;
  line-height: 0.8;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: color 0.6s var(--ease);
}
.row__i,
.row__t {
  padding-bottom: 0.7em;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transition: transform 0.7s var(--ease);
}
.row__i { grid-column: 10; }
.row__t { grid-column: 11 / span 2; text-align: right; }

@media (hover: hover) {
  .row:hover .row__w { color: var(--white); }
  .row:hover::after { transform: scaleX(1); }
  .row:hover .row__t { transform: translate3d(-8px, 0, 0); }
}

.side {
  position: fixed;
  z-index: 2;
  right: calc(var(--pad) * 0.42);
  top: 50%;
  transform: translate(50%, -50%) rotate(90deg);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--soft);
  opacity: 0;
}

/* ----------------------------------------------------------
   Intro
   ---------------------------------------------------------- */
.is-ready .meta::after { animation: lineX 1.3s var(--ease-io) forwards; }
.is-ready .meta p { animation: fade 0.9s ease forwards; }
.is-ready .meta__a { animation-delay: 0.4s; }
.is-ready .meta__b { animation-delay: 0.5s; }
.is-ready .meta__c { animation-delay: 0.6s; }

.is-ready .mark { animation: rise-clip 1.5s var(--ease-io) 0.5s forwards; }
.is-ready .lead { animation: up 1.2s var(--ease) 1.5s forwards; }

.is-ready .row::before { animation: lineX 1.2s var(--ease-io) forwards; }
.is-ready .row__w { animation: stretch 1.8s var(--ease) forwards; }
.is-ready .row__i,
.is-ready .row__t { animation: fade 0.8s ease forwards; }

.is-ready .row:nth-child(1)::before { animation-delay: 0.7s; }
.is-ready .row:nth-child(2)::before { animation-delay: 0.82s; }
.is-ready .row:nth-child(3)::before { animation-delay: 0.94s; }
.is-ready .row:nth-child(1) .row__w { animation-delay: 0.9s; }
.is-ready .row:nth-child(2) .row__w { animation-delay: 1.05s; }
.is-ready .row:nth-child(3) .row__w { animation-delay: 1.2s; }
.is-ready .row:nth-child(1) .row__i, .is-ready .row:nth-child(1) .row__t { animation-delay: 1.8s; }
.is-ready .row:nth-child(2) .row__i, .is-ready .row:nth-child(2) .row__t { animation-delay: 1.95s; }
.is-ready .row:nth-child(3) .row__i, .is-ready .row:nth-child(3) .row__t { animation-delay: 2.1s; }
.is-ready .side { animation: fade 1.2s ease 2.4s forwards; }

@keyframes fade  { to { opacity: 1; } }
@keyframes lineX { to { transform: scaleX(1); } }
@keyframes up    { to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes rise-clip { to { clip-path: inset(0 0 0 0); } }
/* Het woord zet zich breed: van smal naar krachtig */
@keyframes stretch {
  from { opacity: 0; font-stretch: 50%; }
  to   { opacity: 1; font-stretch: var(--stretch, 145%); }
}

/* ----------------------------------------------------------
   Responsief
   ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .side { display: none; }
  .lead { grid-column: 7 / span 6; }
}

@media (max-width: 1100px) and (orientation: portrait) {
  .row__w { --stretch: 125%; font-size: clamp(3rem, 15vw, 10rem); }
  .mark { grid-column: 1 / span 8; width: 62vw; margin-top: 8vh; }
  .lead { grid-column: 1 / span 8; grid-row: 3; align-self: start; margin-top: 5vh; font-size: clamp(1.2rem, 3.2vw, 1.8rem); }
}

@media (max-width: 700px) {
  .poster { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .meta__a { grid-column: 1 / span 4; }
  .meta__b { display: none; }
  .meta__c { grid-column: 5 / span 2; }
  .mark { grid-column: 1 / span 6; width: min(66vw, 320px); }
  .lead { grid-column: 1 / -1; grid-row: 3; align-self: start; margin-top: 28px; font-size: 1.05rem; }
  .words { margin-top: 32px; }
  .row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .row__w {
    --stretch: 108%;
    grid-column: 1 / -1;
    font-size: clamp(2.8rem, 17.5vw, 5.6rem);
  }
  .row__i { grid-column: 1; padding-bottom: 8px; }
  .row__t { grid-column: 2; padding-bottom: 8px; }
}

/* Lage schermen: woorden iets compacter zodat alles op één scherm past */
@media (min-width: 701px) and (max-height: 760px) {
  .row__w { font-size: clamp(3rem, min(11vw, 15vh), 12rem); }
}

/* ----------------------------------------------------------
   Minder beweging
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition: none !important;
  }
}
