/* editorial.css — the type and motion the Fiscal Sponsorship, MulviumSOS and
   Oak pages share: rising headings and reveals (js/fiscal.js adds .is-in),
   definitions with highlighter strokes, a timeline
   of steps, numbered lists, and the closing links.
   Loaded after css/style.css and before each page's own stylesheet. */

/* ---- Reveals: blocks rise; heading words rise out of their masks ---- */
.fs-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.fs-reveal.is-in { opacity: 1; transform: none; }

.fs-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.06em 0.14em;
  margin: 0 -0.06em -0.14em;
}

.fs-w > span {
  display: inline-block;
  transform: translateY(112%);
  transition: transform var(--dur, 1.1s) cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s);
}

.fs-words.is-in .fs-w > span { transform: none; }

.fs-eyebrow {
  font-family: "Major Mono Display", monospace;
  text-transform: lowercase;
  font-size-adjust: none;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--clay-deep);
  margin: 0 0 14px;
}

.fs-title {
  font-weight: 300;
  font-size: clamp(54px, 9vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 22px;
}

.fs-lede {
  font-weight: 500;
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 32em;
  margin: 0 0 44px;
}

/* Numerals in lining figures, so they sit level with capitals */
.fs-list li::before { font-variant-numeric: lining-nums; }

/* ---- Sections ---- */
.fs-section,
.fs-close { scroll-margin-top: calc(var(--nav-h) + 8px); }

.fs-section { padding-top: clamp(84px, 14vh, 150px); }

.fs-h2 {
  font-weight: 300;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.04;
  color: var(--ink);
  margin: 0 0 26px;
}

.fs-definition {
  font-style: italic;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.38;
  color: var(--ink);
  max-width: 22em;
  margin: 0 0 30px;
}

/* Highlighter strokes draw in under the key phrases */
.fs-definition mark {
  color: inherit;
  background: linear-gradient(transparent 60%, rgba(240, 213, 187, 0.85) 60%, rgba(240, 213, 187, 0.85) 92%, transparent 92%) left / 0 100% no-repeat;
  transition: background-size 1.1s var(--ease) 0.35s;
}

.fs-definition mark + mark { transition-delay: 0.8s; }
.fs-definition.is-in mark { background-size: 100% 100%; }

.fs-prose { max-width: 40em; }

.fs-prose p,
.fs-intro {
  font-weight: 500;
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.fs-intro { font-style: italic; font-weight: 400; font-size: 21px; margin-bottom: 36px; }

/* ---- Steps: a row of short cards, read left to right ---- */
.fs-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0 0 80px;
  padding: 0;
}

.fs-steps li {
  padding: 18px 18px 20px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
}

.fs-steps h3 {
  font-family: "Major Mono Display", monospace;
  text-transform: lowercase;
  font-size-adjust: none;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0 0 8px;
}

.fs-steps p {
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.fs-label {
  font-family: "Major Mono Display", monospace;
  text-transform: lowercase;
  font-size-adjust: none;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0 0 12px;
}

.fs-list {
  display: grid;
  gap: 10px;
  list-style: none;
  counter-reset: fscan;
  margin: 0;
  padding: 0;
}

.fs-list li {
  position: relative;
  counter-increment: fscan;
  padding-left: 40px;
  font-weight: 500;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.fs-list li::before {
  content: counter(fscan);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 15px;
  color: var(--dom-ink, var(--clay-deep));
}

/* ---- Begin ---- */
.fs-close { padding: clamp(100px, 16vh, 170px) 0 10px; text-align: center; }

.fs-close p { font-style: italic; font-size: 21px; color: var(--ink-soft); margin: 0 0 26px; }

.fs-close .fs-close-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  font-style: normal;
}

.fs-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-style: italic;
  font-size: 23px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}

.fs-cta:hover { color: var(--clay); gap: 16px; }
.fs-cta-quiet { font-size: 20px; color: var(--ink-soft); }

/* ---- Narrow screens: the steps run down the page ---- */
@media (max-width: 860px) {
  .fs-steps { grid-template-columns: 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .fs-reveal, .fs-w > span { transition: none; transform: none; }
}
