/* Scroll-driven five movements — sober, sticky, premium */
.tcf-movements {
  position: relative;
  background: var(--smoke, #111);
  color: var(--bone, #f4efe6);
}
.tcf-movements__intro {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(72px, 12vh, 120px) clamp(20px, 4vw, 56px) 24px;
}
.tcf-movements__intro h2 {
  font-family: var(--display, "Newsreader", Georgia, serif);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.12;
  max-width: 16ch;
  margin: 0 0 28px;
}
.tcf-movements__intro p {
  max-width: 38em;
  color: var(--bone-dim, #c8c0b4);
  font-family: var(--sans, "Outfit", "Helvetica Neue", sans-serif);
  font-size: clamp(16px, 1.35vw, 18px);
  margin: 0;
}
.tcf-movements__track {
  position: relative;
}
.tcf-movements__sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 8vh, 80px) clamp(20px, 4vw, 56px);
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
  z-index: 2;
}
.tcf-movements__stage {
  display: grid;
  /* Extra air under the title so the calligraphic swash sits fully between
     word baseline and subtitle (≥16px clearance each side). */
  gap: clamp(52px, 7.5vh, 80px);
}
.tcf-movements__index {
  font-family: var(--display, "Newsreader", Georgia, serif);
  font-style: italic;
  font-size: 15px;
  color: var(--champagne, #c4b09a);
  letter-spacing: 0.08em;
}
.tcf-movements__word {
  font-family: var(--display, "Newsreader", Georgia, serif);
  font-weight: 400;
  font-size: clamp(52px, 11.2vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.022em;
  margin: 0;
  min-height: 1.05em;
}
.tcf-movements__word .tcf-circle {
  font-style: normal;
}
.tcf-movements__desc {
  font-family: var(--sans, "Outfit", "Helvetica Neue", sans-serif);
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--bone-dim, #c8c0b4);
  max-width: 28em;
  margin: 0;
  min-height: 3.2em;
  transition: opacity 0.35s ease;
}
.tcf-movements__dots {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}
.tcf-movements__dots li {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--champagne-dim, #8a7a68);
  opacity: 0.45;
  transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.tcf-movements__dots li.is-active {
  opacity: 1;
  background: var(--tcf-brand-red, #e31b23);
  border-color: var(--tcf-brand-red, #e31b23);
}
.tcf-movements__panels {
  position: relative;
  z-index: 1;
}
.tcf-movements__panel {
  height: 85vh;
  pointer-events: none;
}
/* Fallback list: always in DOM for no-JS / a11y */
.tcf-movements__fallback {
  list-style: none;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) clamp(72px, 12vh, 120px);
  max-width: 640px;
  border-top: 1px solid var(--rule, #2a2a2a);
}
.tcf-movements__fallback li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule, #2a2a2a);
  align-items: baseline;
}
.tcf-movements__fallback .ritual-i {
  font-family: var(--display, Georgia, serif);
  font-style: italic;
  color: var(--champagne, #c4b09a);
  font-size: 18px;
}
.tcf-movements__fallback .ritual-t {
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tcf-movements__fallback .ritual-d {
  grid-column: 2;
  color: var(--bone-dim, #c8c0b4);
  font-size: 16px;
  margin-top: 18px;
}

/* Enhanced experience when JS + motion OK */
html.js:not(.rmotion) .tcf-movements--enhanced .tcf-movements__fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
html:not(.js) .tcf-movements__sticky,
html.rmotion .tcf-movements__sticky,
html:not(.js) .tcf-movements__panels,
html.rmotion .tcf-movements__panels {
  display: none;
}
html:not(.js) .tcf-movements__fallback,
html.rmotion .tcf-movements__fallback {
  position: static;
  clip: auto;
  width: auto;
  height: auto;
  overflow: visible;
  max-width: 640px;
}

@media (max-width: 700px) {
  .tcf-movements__sticky { min-height: 92vh; padding-top: 96px; }
  .tcf-movements__panel { height: 70vh; }
  .tcf-movements__word { font-size: clamp(46px, 15vw, 84px); }
  .tcf-movements__stage { gap: 56px; }
}

/* Framework page visual upgrade of steps */
.tcf-tf .steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule, #2a2a2a);
}
.tcf-tf .steps > li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule, #2a2a2a);
  align-items: start;
}
.tcf-tf .steps-n {
  font-family: var(--display, Georgia, serif);
  font-style: italic;
  font-size: 22px;
  color: var(--champagne, #c4b09a);
}
.tcf-tf .steps h3 {
  font-family: var(--display, Georgia, serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 10px;
}
.tcf-tf .steps p {
  margin: 0;
  color: var(--bone-dim, #c8c0b4);
  font-size: clamp(16px, 1.35vw, 18px);
  max-width: 36em;
}

.tcf-movements__word [data-tcf-word] {
  display: inline-block;
}
.tcf-movements__word [data-tcf-word][hidden] {
  display: none !important;
}
.tcf-movements__desc[hidden] {
  display: none !important;
}

/* 1.3.0 — scroll-drawn brand line through the five movements */
.tcf-movements { overflow-x: clip; }            /* clip (not hidden) keeps position:sticky working */
.tcf-movements__stage { position: relative; z-index: 1; }
.tcf-movements__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
/* 1.3.3 — handcrafted brush ink: variable-width fill + soft edge + feTurbulence; centreline is mask-only */
.tcf-movements__line .tcf-line__ink {
  fill: var(--tcf-brand-red, #e31b23);
  stroke: none;
  opacity: 0.94;
}
.tcf-movements__line .tcf-line__ink--soft {
  opacity: 0.28;
}
.tcf-movements__line .tcf-line__center {
  fill: none;
  stroke: none;
  opacity: 0;
  pointer-events: none;
}
.tcf-movements__line .tcf-line__tip {
  fill: var(--tcf-brand-red, #e31b23);
  opacity: 0;
  transition: opacity 0.2s ease;
}
/* The ink stroke becomes the circle around «Causa»: hide its own animated ring */
.tcf-movements--line .tcf-movements__word .tcf-circle > svg { visibility: hidden; }
/* Reduced motion: static full line + circle drawn over the fallback list */
html.rmotion .tcf-movements--static-line .tcf-movements__fallback { position: relative; }
.tcf-movements__line--static { left: 0; width: 100%; }
.tcf-movements__line--static .tcf-line__tip { display: none; }

/* 1.3.1 — cross-fade between movement steps (index, word, description) */
.tcf-movements--fade .tcf-movements__index {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.tcf-movements--fade .tcf-movements__index.is-active {
  opacity: 1;
  transform: translateY(0);
}
.tcf-movements--fade .tcf-movements__word {
  display: grid;
  align-items: center;
}
.tcf-movements--fade .tcf-movements__word [data-tcf-word] {
  grid-area: 1 / 1;
  justify-self: start;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(1.2px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.tcf-movements--fade .tcf-movements__word [data-tcf-word].is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}
.tcf-movements--fade .tcf-movements__descs {
  display: grid;
  align-items: start;
  min-height: 3.2em;
}
.tcf-movements--fade .tcf-movements__descs .tcf-movements__desc {
  grid-area: 1 / 1;
  margin: 0;
  min-height: 0;
  opacity: 0;
  transform: translateY(8px);
  filter: blur(1px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.tcf-movements--fade .tcf-movements__descs .tcf-movements__desc.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
@media (max-width: 700px) {
  .tcf-movements--fade .tcf-movements__word [data-tcf-word],
  .tcf-movements--fade .tcf-movements__descs .tcf-movements__desc {
    filter: none;
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

/* 1.3.3 — calligraphic swash under Causa: clean fill, no brush texture */
.tcf-movements--swash .tcf-line__ink {
  opacity: 1;
}
.tcf-movements--swash .tcf-line__ink--soft {
  opacity: 0.18;
}
.tcf-movements--swash .tcf-line__tip {
  r: 1.6;
}
