/* ==========================================================================
   LAYOUT PRIMITIVES — containers, section shell, utilities
   ========================================================================== */

/* Centered content column with fluid gutters */
.container {
  inline-size: 100%;
  max-inline-size: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-inline-size: calc(var(--container-wide) + var(--gutter) * 2);
}

/* Generic section shell.
   overflow stays visible so sticky stages inside keep working; decorative
   layers are clipped by their own .section__decor wrapper instead. */
.section {
  position: relative;
  padding-block: var(--section-space);
  isolation: isolate;
}

/* Dedicated clip layer for blobs / glows / pixel clusters.
   A sibling of the content — never an ancestor of a sticky stage. */
.section__decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

/* Mobile-first centering of short UI content (CLAUDE.md §5) */
.u-center-mobile {
  text-align: center;
  margin-inline: auto;
}

@media (min-width: 64rem) {
  .u-center-mobile {
    text-align: start;
    margin-inline: 0;
  }
}

/* Screen-reader-only text */
.visually-hidden {
  position: absolute !important;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link — visible only when focused */
.skip-link {
  position: absolute;
  inset-block-start: var(--space-sm);
  inset-inline-start: var(--space-sm);
  z-index: calc(var(--z-overlay) + 1);
  padding-block: var(--space-xs);
  padding-inline: var(--space-md);
  border-radius: var(--r-btn);
  background: var(--c-teal);
  color: var(--c-navy);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--dur-micro) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Feature toggling: element kept in the DOM, hidden until activated */
[data-feature="off"] {
  display: none !important;
}

/* Elements animated in by GSAP start hidden ONLY when JS is running,
   so content is always visible without JS (progressive enhancement). */
.js-motion [data-reveal] {
  opacity: 0;
}
