/* ==========================================================================
   Launch Labs — Section 2: "Your website is your marketing hub"
   Calm, editorial reinforcement section. Deliberately locked to a white
   surface with its own dark-neutral text tokens — it does not follow the
   hero's red/black/white theme switcher, it always reads the same.

   Structure: section shell (local colour tokens) -> single centered column
              (heading -> diagram image -> supporting copy) -> scroll-
              triggered reveal, driven by js/hub.js adding .is-visible when
              the section enters the viewport.
   ========================================================================== */

.hub {
  --ink: #0b0a0d;
  --ink-muted: rgba(11, 10, 13, 0.64);
  --hairline: rgba(11, 10, 13, 0.1);
  --contrast: #D92632;

  background: #FFFFFF;
  color: var(--ink);
  border-top: 1px solid var(--hairline);
  padding: clamp(10rem, 22vw, 17rem) clamp(1.5rem, 4vw, 4rem);
}

.hub__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(2.5rem, 5vw, 4rem);
  max-width: 108rem;
  margin-inline: auto;
}

/* ==========================================================================
   Copy
   ========================================================================== */
.hub__content { max-width: 64rem; }

.hub__heading {
  max-width: 64rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4.4vh, 3.4rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px);
}

.hub__heading-accent { color: var(--contrast); }

.hub__punch {
  max-width: 44rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.9rem, 1.56vw, 1.47rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px);
}

.hub.is-visible .hub__heading,
.hub.is-visible .hub__punch {
  animation: hub-rise 0.75s var(--ease) forwards;
}

.hub.is-visible .hub__heading { animation-delay: 0s; }
.hub.is-visible .hub__punch { animation-delay: 0.2s; }

/* ==========================================================================
   Diagram image
   ========================================================================== */
.hub__diagram {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  opacity: 0;
  transform: translateY(14px);
}

.hub.is-visible .hub__diagram {
  animation: hub-rise 0.8s var(--ease) forwards;
  animation-delay: 0.3s;
}

.hub__image {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes hub-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 30rem) {
  .hub__heading { max-width: 100%; }
}
