/* ==========================================================
   MTS — Concept 3 · Blueprint / Building Stronger
   Een technische tekening van een sterk team.
   ========================================================== */

:root {
  --paper: #061425;
  --paper-2: #0a1d33;
  --line: rgba(92, 210, 255, 0.38);
  --line-soft: rgba(92, 210, 255, 0.16);
  --cyan: #5cd2ff;
  --cyan-hi: #a8ebff;
  --white: #eaf6ff;
  --dim: rgba(190, 225, 250, 0.56);

  --inset: clamp(10px, 1.3vw, 24px);
  --rule: 22px;
  --gut: clamp(18px, 2.8vw, 56px);

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);

  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains 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(--white);
  font-family: var(--display);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (hover: hover) and (pointer: fine) {
  body { cursor: crosshair; }
}

img { display: block; max-width: 100%; height: auto; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ----------------------------------------------------------
   Het vel: raster, kader, liniaal
   ---------------------------------------------------------- */
.sheet {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
}
.sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 70% 60% at 32% 42%, rgba(20, 70, 120, 0.35), transparent 70%),
    linear-gradient(rgba(92, 210, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 210, 255, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(92, 210, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 210, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 96px 96px, 96px 96px, 16px 16px, 16px 16px;
  background-position: 0 0, var(--inset) var(--inset), var(--inset) var(--inset), var(--inset) var(--inset), var(--inset) var(--inset);
  opacity: 0;
}
.sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 90% at 50% 50%, transparent 60%, rgba(2, 8, 16, 0.6));
}

.frame { position: absolute; inset: var(--inset); z-index: 1; pointer-events: none; }
.frame i {
  position: absolute;
  background: var(--line);
}
.frame i:nth-child(1) { top: 0; left: 0; right: 0; height: 1px; transform-origin: left; transform: scaleX(0); }
.frame i:nth-child(2) { top: 0; right: 0; bottom: 0; width: 1px; transform-origin: top; transform: scaleY(0); }
.frame i:nth-child(3) { bottom: 0; left: 0; right: 0; height: 1px; transform-origin: right; transform: scaleX(0); }
.frame i:nth-child(4) { top: 0; left: 0; bottom: 0; width: 1px; transform-origin: bottom; transform: scaleY(0); }

.ruler {
  position: absolute;
  z-index: 1;
  display: flex;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  opacity: 0;
}
.ruler--top {
  top: var(--inset);
  left: calc(var(--inset) + var(--rule));
  right: var(--inset);
  height: var(--rule);
  border-bottom: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
  background: repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 16px) bottom / 100% 5px no-repeat;
}
.ruler--left {
  flex-direction: column;
  top: calc(var(--inset) + var(--rule));
  bottom: var(--inset);
  left: var(--inset);
  width: var(--rule);
  border-right: 1px solid var(--line-soft);
  border-top: 1px solid var(--line-soft);
  background: repeating-linear-gradient(180deg, var(--line-soft) 0 1px, transparent 1px 16px) right / 5px 100% no-repeat;
}
.ruler span {
  flex: 1;
  display: grid;
  place-items: center;
}
.ruler--top span + span  { border-left: 1px solid var(--line-soft); }
.ruler--left span + span { border-top: 1px solid var(--line-soft); }

/* ----------------------------------------------------------
   Compositie
   ---------------------------------------------------------- */
.sheet__body {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: clamp(12px, 1.4vw, 28px);
  row-gap: clamp(16px, 3vh, 40px);
  padding:
    calc(var(--inset) + var(--rule) + var(--gut) * 0.8)
    calc(var(--inset) + var(--gut))
    calc(var(--inset) + var(--gut) * 0.8)
    calc(var(--inset) + var(--rule) + var(--gut));
}

/* Meta ------------------------------------------------------ */
.meta {
  grid-column: 1 / span 5;
  grid-row: 1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.meta p { display: flex; align-items: center; gap: 12px; opacity: 0; }
.meta p::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
}
.meta__brand { color: var(--white); }
.meta__sheet { margin-top: 10px; color: var(--dim); }
.meta__sheet::before { background: var(--line-soft) !important; }

/* Detail A ------------------------------------------------- */
.detail {
  position: relative;
  grid-column: 8 / span 5;
  grid-row: 1 / 3;
  align-self: start;
  justify-self: end;
  z-index: 1;
  width: min(100%, clamp(260px, 25vw, 500px));
  padding: 26px 34px 0 0;
}
.detail__box {
  position: relative;
  padding: clamp(12px, 1.2vw, 22px);
  border: 1px dashed var(--line-soft);
  background: rgba(4, 14, 27, 0.72);
  clip-path: inset(0 0 100% 0);
}
.detail__box .logo-crop { opacity: 0; }
.corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--cyan);
  border-style: solid;
  border-width: 0;
}
.corner--tl { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.corner--tr { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.corner--bl { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.corner--br { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

.detail__dim {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--cyan);
  opacity: 0;
}
.detail__dim--w {
  top: 10px;
  left: 0;
  right: 34px;
  height: 1px;
  background: var(--line);
}
.detail__dim--w::before,
.detail__dim--w::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 1px;
  height: 11px;
  background: var(--cyan);
}
.detail__dim--w::before { left: 0; }
.detail__dim--w::after { right: 0; }
.detail__dim--w span {
  position: absolute;
  left: 50%;
  top: -7px;
  transform: translateX(-50%);
  padding: 0 8px;
  background: var(--paper);
  line-height: 1.3;
}
.detail__dim--h {
  top: 26px;
  right: 12px;
  width: 1px;
  bottom: 42px;
  background: var(--line);
}
.detail__dim--h::before,
.detail__dim--h::after {
  content: "";
  position: absolute;
  left: -5px;
  width: 11px;
  height: 1px;
  background: var(--cyan);
}
.detail__dim--h::before { top: 0; }
.detail__dim--h::after { bottom: 0; }
.detail__dim--h span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  padding: 0 8px;
  background: var(--paper);
  line-height: 1.3;
}
.detail__cap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: 0;
}
.bubble {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  color: var(--cyan);
  letter-spacing: 0;
}

/* Logo-uitsnede */
.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;
  filter: url(#logo-on-dark);
}

/* Kop met constructielijnen ------------------------------- */
.head {
  --fs: clamp(3.3rem, min(9.8vw, 17vh), 12.5rem);
  --lh: 0.9;
  position: relative;
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: center;
  padding-top: 34px;
}
.headline {
  position: relative;
  font-size: var(--fs);
  font-weight: 700;
  line-height: var(--lh);
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.headline__l {
  position: relative;
  display: block;
  width: fit-content;
  color: transparent;
  -webkit-text-stroke: 1px rgba(92, 210, 255, 0.7);
  clip-path: inset(-10% 100% -10% 0);
}
.headline__l::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--white);
  -webkit-text-stroke: 0;
  clip-path: inset(-10% 100% -10% 0);
}

.guides {
  position: absolute;
  left: calc(var(--gut) * -0.5);
  right: calc(var(--gut) * -0.5);
  top: 34px;
  height: calc(var(--fs) * var(--lh) * 2);
  pointer-events: none;
}
.guide {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px dashed var(--line-soft);
  transform-origin: left;
  transform: scaleX(0);
}
/* Cap-hoogte en basislijn per regel (Space Grotesk-metriek) */
.guide--1 { top: calc(var(--fs) * 0.105); }
.guide--2 { top: calc(var(--fs) * 0.8); }
.guide--3 { top: calc(var(--fs) * (0.105 + var(--lh))); }
.guide--4 { top: calc(var(--fs) * (0.8 + var(--lh))); }
.guide em {
  position: absolute;
  right: 0;
  bottom: 3px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.guide--2,
.guide--4 { border-top-style: solid; border-top-color: var(--line); }

.span-dim {
  position: absolute;
  top: 6px;
  left: 0;
  width: var(--span, 60%);
  height: 1px;
  background: var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  transform-origin: left;
  transform: scaleX(0);
}
.span-dim::before,
.span-dim::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 1px;
  height: 11px;
  background: var(--cyan);
}
.span-dim::before { left: 0; }
.span-dim::after { right: 0; }
.span-dim span {
  position: absolute;
  left: 50%;
  top: -7px;
  transform: translateX(-50%);
  padding: 0 10px;
  background: var(--paper);
  line-height: 1.3;
  white-space: nowrap;
}

/* Statement ------------------------------------------------- */
.statement {
  grid-column: 1 / span 4;
  grid-row: 3;
  align-self: end;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
}
.statement__lead {
  max-width: 16ch;
  font-size: clamp(1.35rem, 2vw, 2.35rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.statement__sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.caret {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--cyan);
  animation: blink 1.1s steps(1) infinite;
}

/* Fig. 02 --------------------------------------------------- */
.truss {
  grid-column: 6 / span 3;
  grid-row: 3;
  align-self: end;
  justify-self: center;
  width: min(100%, 230px);
}
.truss svg { display: block; width: 100%; height: auto; overflow: visible; }
.truss path { fill: none; stroke-linecap: round; }
.truss__members path {
  stroke: var(--cyan);
  stroke-width: 1.2;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
}
.truss__nodes circle {
  fill: var(--paper);
  stroke: var(--cyan-hi);
  stroke-width: 1.2;
  opacity: 0;
}
.truss__load path { stroke: var(--dim); stroke-width: 1; }
.truss__dim path { stroke: var(--line-soft); stroke-width: 1; }
.truss__load,
.truss__dim,
.truss__labels { opacity: 0; }
.truss text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--white);
}
.truss__load text { fill: var(--dim); }
.truss figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
  opacity: 0;
}

/* Titelblok ------------------------------------------------ */
.titleblock {
  grid-column: 9 / span 4;
  grid-row: 3;
  align-self: end;
  justify-self: end;
  width: min(100%, 440px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  background: rgba(4, 14, 27, 0.6);
}
.titleblock > div {
  padding: 8px 10px 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  opacity: 0;
}
.titleblock > div:nth-child(1) { grid-column: span 3; }
.titleblock > div:nth-child(2) { grid-column: span 2; }
.titleblock > div:nth-child(1) dd { font-size: 13px; color: var(--white); }
.titleblock dt {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.titleblock dd {
  margin-top: 3px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--cyan-hi);
}

/* Vizier ---------------------------------------------------- */
.crosshair {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.has-pointer .crosshair { opacity: 1; }
.crosshair__x,
.crosshair__y {
  position: absolute;
  background: rgba(92, 210, 255, 0.2);
  will-change: transform;
}
.crosshair__x { left: 0; top: 0; width: 100%; height: 1px; }
.crosshair__y { top: 0; left: 0; width: 1px; height: 100%; }
.crosshair__label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 3px 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(6, 20, 37, 0.85);
  border: 1px solid var(--line-soft);
  white-space: nowrap;
  will-change: transform;
}

/* ----------------------------------------------------------
   Opbouw — alsof de tekening wordt geconstrueerd
   ---------------------------------------------------------- */
.is-ready .sheet::before { animation: fade 1.4s ease forwards; }
.is-ready .frame i { animation: drawLine 1.1s var(--ease-io) forwards; }
.is-ready .frame i:nth-child(2) { animation-delay: 0.25s; }
.is-ready .frame i:nth-child(3) { animation-delay: 0.5s; }
.is-ready .frame i:nth-child(4) { animation-delay: 0.75s; }
.is-ready .ruler { animation: fade 1s ease 0.7s forwards; }
.is-ready .meta p { animation: fade 0.6s ease 0.9s forwards; }
.is-ready .meta p + p { animation-delay: 1.05s; }

.is-ready .guide { animation: drawLine 1.3s var(--ease-io) forwards; }
.is-ready .guide--1 { animation-delay: 0.9s; }
.is-ready .guide--2 { animation-delay: 1.0s; }
.is-ready .guide--3 { animation-delay: 1.1s; }
.is-ready .guide--4 { animation-delay: 1.2s; }
.is-ready .span-dim { animation: drawLine 1.1s var(--ease-io) 2.6s forwards; }

.is-ready .headline__l { animation: reveal 1.5s var(--ease-io) forwards; }
.is-ready .headline__l:nth-child(1) { animation-delay: 1.3s; }
.is-ready .headline__l:nth-child(2) { animation-delay: 1.5s; }
.is-ready .headline__l::after { animation: reveal 1.3s var(--ease-io) forwards; }
.is-ready .headline__l:nth-child(1)::after { animation-delay: 2.3s; }
.is-ready .headline__l:nth-child(2)::after { animation-delay: 2.45s; }

.is-ready .detail__box { animation: reveal-down 1.2s var(--ease-io) 1.6s forwards; }
.is-ready .detail__box .logo-crop { animation: fade 1.2s ease 2.4s forwards; }
.is-ready .detail__dim { animation: fade 0.8s ease 2.6s forwards; }
.is-ready .detail__cap { animation: fade 0.8s ease 2.7s forwards; }

.is-ready .truss__members path { animation: stroke 1.2s var(--ease-io) forwards; }
.is-ready .truss__members path:nth-child(1) { animation-delay: 2.4s; }
.is-ready .truss__members path:nth-child(2) { animation-delay: 2.55s; }
.is-ready .truss__members path:nth-child(3) { animation-delay: 2.7s; }
.is-ready .truss__members path:nth-child(4) { animation-delay: 2.95s; }
.is-ready .truss__members path:nth-child(5) { animation-delay: 3.05s; }
.is-ready .truss__members path:nth-child(6) { animation-delay: 3.15s; }
.is-ready .truss__nodes circle { animation: fade 0.5s ease 3.4s forwards; }
.is-ready .truss__load,
.is-ready .truss__dim,
.is-ready .truss__labels,
.is-ready .truss figcaption { animation: fade 0.8s ease 3.6s forwards; }

.is-ready .statement { animation: rise 1.1s var(--ease) 3s forwards; }
.is-ready .titleblock > div { animation: fade 0.5s ease forwards; }
.is-ready .titleblock > div:nth-child(1) { animation-delay: 3.2s; }
.is-ready .titleblock > div:nth-child(2) { animation-delay: 3.3s; }
.is-ready .titleblock > div:nth-child(3) { animation-delay: 3.4s; }
.is-ready .titleblock > div:nth-child(4) { animation-delay: 3.5s; }
.is-ready .titleblock > div:nth-child(5) { animation-delay: 3.6s; }
.is-ready .titleblock > div:nth-child(6) { animation-delay: 3.7s; }

@keyframes fade        { to { opacity: 1; } }
@keyframes drawLine    { to { transform: none; } }
@keyframes reveal      { to { clip-path: inset(-10% -2% -10% 0); } }
@keyframes reveal-down { to { clip-path: inset(0 0 0 0); } }
@keyframes stroke      { to { stroke-dashoffset: 0; } }
@keyframes rise        { to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes blink       { 50% { opacity: 0; } }

/* ----------------------------------------------------------
   Responsief
   ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .head { --fs: clamp(3.2rem, 13.4vw, 9rem); }
  .detail { grid-column: 7 / span 6; }
  .statement { grid-column: 1 / span 6; grid-row: 3; }
  .titleblock { grid-column: 7 / span 6; grid-row: 3; }
  .truss { display: none; }
}

@media (max-width: 720px) {
  :root { --rule: 0px; }
  .ruler { display: none; }
  .sheet__body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    row-gap: 36px;
  }
  .meta,
  .detail,
  .head,
  .statement,
  .truss,
  .titleblock { grid-column: 1; grid-row: auto; }
  .head { --fs: clamp(2.6rem, 15.2vw, 6rem); order: 1; }
  .meta { order: 0; }
  .statement { order: 2; }
  .detail { order: 3; justify-self: start; width: 100%; }
  .truss { order: 4; display: block; justify-self: start; width: min(78%, 260px); }
  .titleblock { order: 5; justify-self: stretch; width: 100%; }
  .guide em { display: none; }
}

@media (max-width: 1100px) and (min-width: 721px) and (orientation: portrait) {
  .sheet__body { grid-template-rows: auto minmax(0, 1fr) auto auto; }
  .head { --fs: min(15.4vw, 9.5rem); align-self: end; }
  .detail { width: min(100%, 44vw); }
  .truss {
    display: block;
    grid-column: 4 / span 6;
    grid-row: 3;
    width: min(100%, 250px);
    margin: 3vh 0 2vh;
  }
  .statement, .titleblock { grid-row: 4; }
}

@media (max-width: 1100px) and (min-width: 721px) and (max-height: 900px) {
  .head { --fs: clamp(3rem, 10vw, 7rem); }
}

/* ----------------------------------------------------------
   Minder beweging
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition: none !important;
  }
  .caret { animation: none !important; }
  .crosshair { display: none; }
}
