/* ============================================================
   FlowArt — stacked scroll sections with GSAP rotation reveal
   ============================================================ */

[data-flow-root] {
  width: 100%;
  overflow-x: hidden;
}

[data-flow-section] {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
}

.flow-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  padding: clamp(2rem, 8vw, 4vw) 4vw 4vw;
  transform-origin: bottom left;
  will-change: transform;
}

/* ---- Typography tokens ---- */

.flow-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  line-height: 1;
}

.flow-rule {
  border: 0;
  border-top: 1px solid currentColor;
  opacity: 0.35;
  margin: 2vw 0;
}

.flow-heading {
  margin: 0;
  font-size: clamp(3rem, 11vw, 12rem);
  font-weight: 800;
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.flow-lead {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(1rem, 2.4vw, 1.8rem);
  font-weight: 400;
  line-height: 1.55;
}

.flow-lead--right {
  margin-left: auto;
  text-align: right;
}

/* ---- Info columns ---- */

.flow-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 3vw;
}

.flow-col {
  flex: 1;
  min-width: 180px;
}

.flow-col-label {
  margin: 0 0 0.5rem;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.flow-col-text {
  margin: 0;
  font-size: clamp(0.82rem, 1.2vw, 1rem);
  line-height: 1.6;
  opacity: 0.78;
}

/* ---- Links inside flow sections ---- */

.flow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  opacity: 0.72;
  transition: opacity 180ms ease;
}

.flow-link:hover {
  opacity: 1;
}

.flow-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- SPA overrides: unlock experience section for FlowArt scroll ---- */

.site-shell .experience-section.is-active:has([data-flow-root]) {
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
  padding: 0 !important;
  display: block !important;
  max-width: none !important;
}

.site-shell .page:has(.experience-section.is-active [data-flow-root]) {
  height: 100svh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
  .flow-inner {
    padding: clamp(5rem, 18vw, 7rem) 6vw 6vw;
  }

  .flow-heading {
    font-size: clamp(2.6rem, 14vw, 5rem);
  }

  .flow-columns {
    gap: 6vw;
  }

  .flow-col {
    min-width: 100%;
  }
}

/* ---- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  .flow-inner {
    will-change: auto;
  }
}
