* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: #fff;
  color: #fff;
  font-family: monospace;
}

/* ── canvas: fixed dead-centre ── */
#canal-canvas {
  position: fixed;
  top: 50%;
  top: 50dvh;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}

/* ── invisible hit area restores mouse events over the canvas ── */
#canvas-hit {
  position: fixed;
  top: 50%;
  top: 50dvh;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--canvas-size, min(100vw, 100svh, 900px));
  height: var(--canvas-size, min(100vw, 100svh, 900px));
  z-index: 11;
  pointer-events: auto;
  background: transparent;
}

/* ── scrollable content ── */
#content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 12px 100svh;  /* no top padding — hero handles vertical centering */
  pointer-events: auto;
}

/* ── hero: first image centred at 50vh, same as the graphic ── */
.hero {
  min-height: 0;
  display: block;
  position: relative;
  padding-top: 0;
  padding-bottom: 7px;
}

.hero .img-block {
  margin: 0;
}

.hero .img-caption {
  position: static;
  margin-top: 6px;
  margin-bottom: 0;
  text-align: left;
  padding-inline: 0;
}

/* ── all images after the hero stack with tight spacing ── */
.img-block {
  margin-top: 0;
  margin-bottom: 0;
}

.img-block img {
  width: 100%;
  display: block;
}

/* ── captions ── */
.img-caption {
  font-size: 11px;
  color: #333;
  margin-top: 6px;
  margin-bottom: 7px;
}

/* ── text sections ── */
.section {
  margin-bottom: 80px;
  line-height: 1.75;
}

.section h2 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 14px;
}

.section p {
  font-size: 14px;
  color: #333;
}

.section p + p {
  margin-top: 12px;
}

/* ── divider ── */
.divider {
  border: none;
  border-top: 1px solid #000;
  margin: 60px 0;
}

/* ── mobile ── */
@media (max-width: 768px) {
  #content {
    max-width: 100%;
    padding: 0 16px 100svh;
  }
}
