/* fiscal.css — the Fiscal Sponsorship page (pages/offerings/fiscal-sponsorship.html).
   Loaded after css/style.css by that page alone, so other pages don't
   download these rules. */

/* =====================================================================
   FISCAL SPONSORSHIP PAGE — text only. The motion is in the type and the
   navigation: rising headings, a turning word, a section index, a timeline
   that fills as it is read, a comparison switch, and projects as tabs.
   Domain colours are the home page's planet pastels, deepened for text.
   ===================================================================== */
.fs-page { --fs-gold: #c9a874; }

.fs-art { --dom-ink: #8a6a2e; --dom-soft: #ecdcb4; }   /* the score's parchment and ink */
.fs-sci { --dom-ink: #6b5a94; --dom-soft: #dcd3ec; }   /* the flower field's violet */
.fs-edu { --dom-ink: #4f6b3a; --dom-soft: #d0dec2; }   /* the valley's green */
.fs-cha { --dom-ink: #9b5636; --dom-soft: #f0d2c0; }   /* the fresco's terracotta */

html:has(body.fs-page) { scroll-behavior: smooth; }

.fs-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) 110px;
  font-family: "Cormorant Garamond", serif;
}

/* ---- 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; }

/* ---- Opening stage: the planet becomes the bowl (js/bowl.js) ---- */
.fs-stage {
  position: relative;
  height: 100vh;
  height: 100svh;
}

#fs-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.fs-cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(18px, 4vh, 36px);
  margin: 0;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.fs-cue.is-shown { opacity: 1; transition-duration: 1.2s; } /* js/scroll-cue.js */

/* ---- Overview ---- */
.fs-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) 0 48px;
}

.fs-eyebrow {
  font-family: "Cormorant SC", serif;
  font-size: 14px;
  letter-spacing: 0.26em;
  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-rotor-line {
  font-style: italic;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 24px;
}

.fs-rotor {
  position: relative;
  display: inline-block;
  height: 1.25em;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
  color: var(--clay-deep);
  transition: width 0.6s var(--ease);
}

.fs-rotor-word {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateY(105%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s var(--ease);
}

.fs-rotor-word.is-on { position: relative; opacity: 1; transform: none; }
.fs-rotor-word.is-out { opacity: 0; transform: translateY(-105%); }
.fs-nw { white-space: nowrap; }

.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: Cormorant's old-style "1" reads as an "I" */
.fs-kicker, .fs-steps li::before, .fs-domain-num, .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-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--clay-deep);
  margin: 0 0 6px;
}

.fs-kicker::after {
  content: "";
  width: 56px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.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; }

/* ---- On your own and with Mulvium, side by side in one table ---- */
.fs-compare { margin-top: 52px; }

.fs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.fs-table th,
.fs-table td {
  text-align: left;
  vertical-align: top;
  padding: 18px 20px;
  border-bottom: 1px solid var(--hairline);
}

.fs-table thead td { width: 24%; border-bottom: 0; }
.fs-table thead th {
  padding-top: 16px;
  padding-bottom: 14px;
  font-family: "Cormorant SC", serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.12em;
  border-bottom-color: rgba(27, 22, 19, 0.28);
}
.fs-table thead th.fs-own { width: 36%; color: var(--ink-soft); }
.fs-table thead th.fs-with { color: var(--clay-deep); border-radius: 16px 16px 0 0; }

.fs-table tbody th {
  padding-left: 2px;
  font-family: "Cormorant SC", serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.05em;
  line-height: 1.35;
  color: var(--ink);
}

.fs-table td { font-size: 18px; line-height: 1.55; }
.fs-table td.fs-own { font-style: italic; color: var(--ink-soft); }
.fs-table td.fs-with { font-weight: 600; color: var(--ink); }

/* The Mulvium column carries a warm wash from top to bottom */
.fs-table .fs-with { background: rgba(240, 213, 187, 0.34); }
.fs-table tbody tr:last-child .fs-with { border-radius: 0 0 16px 16px; border-bottom-color: transparent; }

/* Rows arrive one after another */
.fs-table tbody tr { opacity: 0; transition: opacity 0.7s var(--ease) calc(0.15s + var(--i, 0) * 0.08s); }
.fs-compare.is-in tbody tr { opacity: 1; }

/* ---- How money and paperwork move: parties joined by two-lane arrows ---- */
.fs-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.fs-party {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 16px 20px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.fs-party strong {
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.1;
  color: var(--ink);
}

.fs-party > span {
  max-width: 15em;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.fs-party-main { background: rgba(240, 213, 187, 0.36); border-color: rgba(184, 119, 88, 0.32); }
.fs-party-main strong { color: var(--clay-deep); }

/* Between two parties: money goes one way (solid), paperwork the other (dashed) */
.fs-hop { display: flex; flex-direction: column; gap: 20px; padding: 0 12px; }
.fs-lane { display: flex; flex-direction: column; gap: 7px; text-align: center; }
.fs-money .fs-lane-label { order: -1; }
.fs-lane-label { font-style: italic; font-size: 15.5px; line-height: 1.35; }
.fs-money { color: var(--clay-deep); }
.fs-money .fs-lane-label { color: var(--ink); }
.fs-paper { color: var(--ink-soft); }

/* Each line is a thin band: solid for money; for paperwork, a 1px band of
   dashes laid from the arrowhead's end, so a full dash always meets the head
   (and the dashes look the same in every browser, unlike a dashed border) */
.fs-arrow {
  --dash: 6px;
  --gap: 4px;
  position: relative;
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: clip-path 0.9s var(--ease) 0.35s;
}
.fs-paper .fs-arrow {
  height: 1px;
  margin: 0.25px 0;
  background: repeating-linear-gradient(to right, currentColor 0 var(--dash), transparent var(--dash) calc(var(--dash) + var(--gap))) 2px 0;
  transition-delay: 0.75s;
}

.fs-arrow::after {
  content: "";
  position: absolute;
  top: -3.75px;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
}
.fs-money .fs-arrow::after { right: -2px; border-left: 8px solid currentColor; }
.fs-paper .fs-arrow::after { top: -4px; left: -2px; border-right: 8px solid currentColor; }

/* Each arrow draws in, in its own direction, as the diagram arrives: a clip
   uncovers it, so its dashes and head keep their shape while it grows */
.fs-arrow { clip-path: inset(-8px -12px -8px -12px); }
.fs-flow:not(.is-in) .fs-money .fs-arrow { clip-path: inset(-8px 100% -8px -12px); }
.fs-flow:not(.is-in) .fs-paper .fs-arrow { clip-path: inset(-8px -12px -8px 100%); }

.fs-key {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 0 0 76px;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
}
.fs-key span::before {
  content: "";
  display: inline-block;
  width: 30px;
  margin-right: 10px;
  vertical-align: middle;
  border-top: 1.5px solid var(--clay-deep);
}
.fs-key-paper::before {
  height: 1px;
  border-top: 0 !important;
  background: repeating-linear-gradient(to right, var(--ink-soft) 0 6px, transparent 6px 10px);
}

/* ---- Five steps: the line fills as the reader moves through them ---- */
.fs-steps {
  --fill: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px;
  list-style: none;
  counter-reset: fsstep;
  margin: 0 0 80px;
  padding: 0;
}

.fs-steps::before,
.fs-steps::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: var(--hairline);
}

.fs-steps::after {
  background: var(--clay-deep);
  transform: scaleX(var(--fill));
  transform-origin: left;
}

.fs-steps li { position: relative; counter-increment: fsstep; }

.fs-steps li::before {
  content: counter(fsstep);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border: 1px solid #cdbe96;
  border-radius: 50%;
  background: var(--paper);
  font-size: 17px;
  color: var(--clay-deep);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}

.fs-steps li.is-reached::before {
  border-color: var(--clay-deep);
  background: var(--clay-deep);
  color: var(--paper);
}

.fs-steps h3 {
  font-family: "Cormorant SC", serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.1em;
  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;
}

/* ---- In plain terms: rows that open ---- */
.fs-terms { max-width: 760px; }

.fs-terms-head {
  font-family: "Cormorant SC", serif;
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--clay-deep);
  margin: 0 0 6px;
}

.fs-term { border-bottom: 1px solid var(--hairline); }
.fs-term:first-of-type { border-top: 1px solid var(--hairline); }

.fs-term h3 { margin: 0; }

.fs-term button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 20px 2px;
  text-align: left;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--ink);
  transition: color 0.3s var(--ease);
}

.fs-term button:hover { color: var(--clay-deep); }

/* A plus that turns into a minus */
.fs-term-mark {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
}

.fs-term-mark::before,
.fs-term-mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.45s var(--ease);
}

.fs-term-mark::after { transform: rotate(90deg); }
.fs-term.is-open .fs-term-mark::after { transform: rotate(0deg); }

.fs-term-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}

.fs-term-body > div { overflow: hidden; }
.fs-term.is-open .fs-term-body { grid-template-rows: 1fr; }

.fs-term-body p {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 34em;
}

/* ---- Four projects, each paired with one of the loading screen's pictures ---- */
.fs-projects {
  display: grid;
  gap: clamp(84px, 13vh, 140px);
  margin-top: 60px;
}

.fs-project {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.fs-project:nth-child(even) .fs-plate { order: 2; }

/* The picture stays in view while its project is read. It opens from a
   slit, as the loading screen's pictures do. */
.fs-plate {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 22px;
  background: var(--dom-soft);
  box-shadow: 0 24px 60px rgba(27, 22, 19, 0.12);
  transform: none;
  clip-path: inset(44% 0 44% 0 round 22px);
  transition: clip-path 1.4s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.6s var(--ease);
}
.fs-plate.is-in { clip-path: inset(0 0 0 0 round 22px); }

.fs-plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.16);
  transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}
.fs-plate.is-in img { transform: none; }
.fs-art .fs-plate img { object-position: 28% 50%; }
.fs-sci .fs-plate img { object-position: 56% 50%; }
.fs-edu .fs-plate img { object-position: 42% 50%; }
.fs-cha .fs-plate img { object-position: 50% 50%; }

.fs-domain {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-family: "Cormorant SC", serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--dom-ink);
}

.fs-domain-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  letter-spacing: 0;
}

.fs-panel-meta { font-style: italic; font-size: 18px; color: var(--dom-ink); margin: 0 0 8px; }

.fs-panel-title {
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 20px;
}

.fs-idea {
  font-weight: 500;
  font-size: 19.5px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 22px;
  padding-left: 20px;
  border-left: 2px solid var(--dom-soft);
}

.fs-label {
  font-family: "Cormorant SC", serif;
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--ink);
  margin: 0 0 12px;
}

.fs-needs {
  font-style: italic;
  font-size: 18px;
  color: var(--dom-ink);
  margin: 0 0 26px;
}

.fs-needs .fs-label { margin-right: 10px; font-style: normal; }

.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);
}

/* ---- 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 ---- */
@media (max-width: 860px) {
  .fs-hero { min-height: 0; padding-top: calc(var(--nav-h) + 56px); }

  /* The diagram runs down the page: two arrows side by side between each
     pair of parties, money going down, paperwork coming back up */
  .fs-flow { grid-template-columns: 1fr; }
  .fs-party { padding: 18px 18px 16px; }
  .fs-hop { flex-direction: row; justify-content: center; gap: 22px; padding: 8px 0; }
  .fs-lane { flex: 1 1 0; flex-direction: row; align-items: center; gap: 12px; max-width: 180px; }
  .fs-money { justify-content: flex-end; text-align: right; }
  .fs-paper { justify-content: flex-start; text-align: left; }
  .fs-arrow { flex: none; width: 1.5px; height: 68px; }
  .fs-paper .fs-arrow { width: 1px; height: 68px; margin: 0 0.25px; background: repeating-linear-gradient(to bottom, currentColor 0 var(--dash), transparent var(--dash) calc(var(--dash) + var(--gap))) 0 2px; }
  .fs-money .fs-arrow::after,
  .fs-paper .fs-arrow::after { top: auto; bottom: auto; left: -3.75px; right: auto; border: 0; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; }
  .fs-money .fs-arrow::after { bottom: -2px; border-top: 8px solid currentColor; }
  .fs-paper .fs-arrow::after { top: -2px; left: -4px; border-bottom: 8px solid currentColor; }
  .fs-arrow { clip-path: inset(-12px -8px -12px -8px); }
  .fs-flow:not(.is-in) .fs-money .fs-arrow { clip-path: inset(-12px -8px 100% -8px); }
  .fs-flow:not(.is-in) .fs-paper .fs-arrow { clip-path: inset(100% -8px -12px -8px); }
  .fs-key { margin-bottom: 60px; }

  .fs-steps { grid-template-columns: 1fr; gap: 24px; }
  .fs-steps::before,
  .fs-steps::after { top: 22px; bottom: 22px; left: 22px; right: auto; width: 1px; height: auto; }
  .fs-steps::after { transform: scaleY(var(--fill)); transform-origin: top; }
  .fs-steps li { padding-left: 64px; }
  .fs-steps li::before { position: absolute; left: 0; top: -6px; margin: 0; }

  /* Each project: its picture first, then its story */
  .fs-project { grid-template-columns: 1fr; gap: 26px; }
  .fs-project:nth-child(even) .fs-plate { order: 0; }
  .fs-plate { position: relative; top: auto; aspect-ratio: 16 / 10; border-radius: 18px; }
}

/* Phones: the comparison keeps its two columns; each row's topic sits above them */
@media (max-width: 600px) {
  .fs-table, .fs-table thead, .fs-table tbody { display: block; }
  .fs-table thead tr,
  .fs-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fs-table thead td { display: none; }
  .fs-table thead th { width: auto !important; padding: 12px 14px; font-size: 15px; }
  .fs-table tbody th { grid-column: 1 / -1; padding: 18px 2px 8px; border-bottom: 0; font-size: 17px; }
  .fs-table td { padding: 2px 14px 16px; font-size: 16px; line-height: 1.5; }
  .fs-table tbody td.fs-own { padding-left: 2px; }
  .fs-table thead th.fs-own { padding-left: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.fs-page) { scroll-behavior: auto; }
  .fs-reveal, .fs-w > span { transition: none; transform: none; }
  .fs-table tbody tr { opacity: 1; transition: none; }
  .fs-arrow { clip-path: none !important; transition: none; }
  .fs-plate { clip-path: inset(0 0 0 0 round 22px); transition: none; }
  .fs-plate img { transform: none; transition: none; }
}
