/* layout.css — section scaffolding and pin containers.

   Note on pinning: ScrollTrigger with pinSpacing:true (the default) WRAPS each
   pinned section in <div class="pin-spacer">. That wrapper is generated at
   runtime, so nothing here may depend on .section being a direct child of main.
   This is also why 009 §10 check 4 uses a descendant selector. */

main { display: block; }

.section {
  min-height: var(--section-h);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* Pinned sections are promoted to their own layer by ScrollTrigger; keep the
     stub content out of the way of that (009 §8: transform/opacity only). */
  overflow: hidden;
}

.section__inner {
  text-align: center;
  /* The pinned element itself is never animated — this child is the target. */
  will-change: opacity;
}

.section__index {
  display: block;
  font-size: var(--index-size);
  letter-spacing: 0.25em;
  opacity: 0.55;
  margin-bottom: 0.5em;
}

.section__label {
  font-size: var(--label-size);
  font-weight: 600;
  line-height: 1;
}
