/* ---- Annnimate: element-reveal ---- */
[data-anm-scroll-reveal] {
  /* Ensure smooth animations */
  will-change: transform, opacity;
}

/* Initial state for elements that will animate */
[data-anm-scroll-reveal] > * {
  /* Prevent flash of unstyled content */
  opacity: 0;
}

/* Optional: Add transition for graceful degradation without JS */
@media (prefers-reduced-motion: no-preference) {
  [data-anm-scroll-reveal] > * {
    transition:
      opacity 0.3s ease-out,
      transform 0.3s ease-out;
  }
}

/* Ensure proper stacking context */
[data-anm-scroll-reveal="clip"],
[data-anm-scroll-reveal="clip-center"] {
  overflow: hidden;
}

/* Performance optimization for blur variant */
[data-anm-scroll-reveal="blur"] > * {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Section container */
.element_reveal_section {
  width: 100%;
}

/* Header with title and link */
.element_reveal_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.element_reveal_title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #12264F;
  letter-spacing: -0.05em;
  margin: 0;
}

.element_reveal_link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: #12264F;
  text-decoration: none;
  transition: gap 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.element_reveal_link:hover {
  gap: 0.5rem;
}

/* Grid container - 3 column layout */
.element_reveal_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
}

/* Card base styles - Square aspect ratio */
.element_reveal_card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

/* Card hover state */
.element_reveal_card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* Full-bleed image */
.element_reveal_card_image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover state - image covers full card so hover works on image directly */
.element_reveal_card_image:hover {
  transform: scale(1.05);
}

/* Sport label */
.element_reveal_card_label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: #fafafa;
  z-index: 2;
}

/* Tablet */
@media (max-width: 991px) {
  .element_reveal_grid {
    gap: 0.75rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .element_reveal_grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .element_reveal_header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ---- Annnimate: morphing-accordion ---- */
.macc_wrap {
  --ga-bg: #F3F7FB;
  --ga-ink: #12264F;
  --ga-fg: rgba(255, 250, 242, 0.92);
  --ga-fg-soft: rgba(255, 255, 255, 0.78);
  --ga-fg-dim: rgba(255, 255, 255, 0.55);
  --ga-margin: 40px;

  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: var(--ga-margin);
  background-color: var(--ga-bg);
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.macc_stage {
  position: relative;
  width: 100%;
  max-width: 560px;
}

.macc_filter_svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.macc_list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.macc_row {
  position: relative;
}

/* Filtered layer: solid ink shapes only. Text never renders in here -
   the goo filter destroys type. */
.macc_goo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.macc_goo_trigger,
.macc_goo_panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--ga-ink);
  will-change: transform;
}

/* The panel radius is constant - it must never animate. The JS parks the
   shape slightly inset behind the capsule pill so these squarer corners
   stay hidden at rest. */
.macc_goo_panel {
  border-radius: 16px;
}

/* Crisp twin of the pill, OUTSIDE the filter. The filtered pill's edge is
   threshold-reshaped while the blur is live (reads as a tiny scale pulse);
   this copy owns the visible edge, the filtered original only supplies
   goo mass. */
/* The pill layers (crisp bg + button) always stack ABOVE the panel
   layers, so the panel reads as sliding out from underneath the pill. */
.macc_trigger_crisp {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background-color: var(--ga-ink);
  pointer-events: none;
  transition: background-color 0.3s cubic-bezier(0.7, 0, 0.16, 1);
}

.macc_trigger:hover + .macc_trigger_crisp {
  background-color: #1e1e1c;
}

/* Crisp twin of the PANEL, also outside the filter, moving in lockstep
   with the filtered panel shape. While the blur is live the threshold
   over-rounds every filtered corner (the radius reads as animating);
   this copy owns the visible edge so the 16px radius is perfect from
   the first frame. The goo bridge lives in the gap between the shapes,
   outside both crisp copies, so the liquid neck still shows. */
.macc_panel_crisp {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background-color: var(--ga-ink);
  border-radius: 16px;
  pointer-events: none;
  will-change: transform;
}

.macc_trigger {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 16px 22px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--ga-fg);
  font-family: inherit;
  box-sizing: border-box;
}

.macc_trigger:focus {
  outline: none;
}

.macc_trigger:focus-visible {
  outline: 2px solid #2F7FC1;
  outline-offset: 2px;
  border-radius: 999px;
}

.macc_index {
  flex-shrink: 0;
  min-width: 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ga-fg-dim);
}

.macc_question {
  flex: 1;
  font-size: 15px;
  font-weight: 380;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ga-fg);
}

.macc_icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ga-fg-soft);
  transform-origin: 50% 50%;
  will-change: transform;
}

.macc_panel {
  position: relative;
  z-index: 2;
  height: 0;
  overflow: hidden;
  will-change: height;
}

/* margin-top must match PANEL_GAP in the JS - it is the rest gap between
   the pill and the open panel that the goo bridges during the pour.
   Horizontal padding matches the trigger's own padding so the answer
   aligns with the index number, not the question text. */
.macc_panel_inner {
  margin-top: 10px;
  padding: 18px 22px 20px;
}

.macc_answer {
  margin: 0;
  font-size: 14px;
  font-weight: 380;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--ga-fg-soft);
}

.macc_answer_line {
  overflow-x: visible;
  overflow-y: clip;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}

@media (max-width: 767px) {
  .macc_wrap {
    --ga-margin: 20px;
  }

  .macc_trigger {
    padding: 14px 18px;
    gap: 12px;
  }

  .macc_panel_inner {
    padding: 14px 18px 18px;
  }
}

@media (max-width: 479px) {
  .macc_index {
    display: none;
  }
}

/* ---- Annnimate: multi-step-form ---- */
.mstf_wrap {
  --mstf-bg:      #F3F7FB;
  --mstf-ink:     #12264F;
  --mstf-panel:   #12264F;
  --mstf-fg:      rgba(18, 38, 79, 0.92);
  --mstf-fg-soft: rgba(18, 38, 79, 0.78);
  --mstf-fg-dim:  rgba(18, 38, 79, 0.5);
  --mstf-line:    rgba(18, 38, 79, 0.2);
  --mstf-error:   #e0432f;
  --mstf-margin:  40px;
  --mstf-sans:    "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
}

.mstf_wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: var(--mstf-margin);
  background-color: var(--mstf-bg);
  font-family: var(--mstf-sans);
  -webkit-font-smoothing: antialiased;
}

.mstf_card {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.mstf_header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mstf_counter {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--mstf-fg-dim);
}

.mstf_counter_roller {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2em;
  color: var(--mstf-fg);
}

.mstf_counter_face {
  display: block;
}

.mstf_counter_face_next {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(100%);
}

.mstf_progress {
  position: relative;
  width: 100%;
  height: 1px;
  margin-top: 0;
  margin-bottom: 32px;
  background-color: var(--mstf-line);
}

.mstf_progress_fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--mstf-fg);
  transform: scaleX(0.333);
  transform-origin: 0% 50%;
}

.mstf_viewport {
  position: relative;
  overflow: hidden;
}

.mstf_step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform, opacity;
}

.mstf_step_title {
  margin: 0 0 24px;
  font-size: 26px;
  font-weight: 320;
  letter-spacing: -0.02em;
  color: var(--mstf-fg);
}

.mstf_field {
  margin-bottom: 8px;
}

/* Overflow-hidden mask for the entrance rise; padding + equal negative
   margin so the shake (x) and the focus-visible outline aren't clipped
   by the mask edges. */
.mstf_reveal_mask {
  overflow: hidden;
  padding: 8px;
  margin: -8px;
}

.mstf_field_control {
  position: relative;
}

.mstf_input,
.mstf_textarea,
.mstf_select {
  display: block;
  width: 100%;
  padding: 22px 0 8px;
  border: none;
  border-bottom: 1px solid var(--mstf-line);
  background-color: transparent;
  color: var(--mstf-fg);
  font-family: inherit;
  font-size: 15px;
  font-weight: 380;
  letter-spacing: -0.01em;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.mstf_input:focus-visible,
.mstf_textarea:focus-visible,
.mstf_select:focus-visible {
  outline: none;
}

/* Browser autofill (Chrome/Safari/Firefox): cover the yellow paint with
   the stage color, keep our type color, and fire a no-op animation the
   JS listens for to float the label (autofilled values are hidden from
   JS until the user interacts, so value checks can't detect them). */
.mstf_input:-webkit-autofill,
.mstf_textarea:-webkit-autofill,
.mstf_select:-webkit-autofill {
  -webkit-text-fill-color: #12264F;
  caret-color: #12264F;
  box-shadow: inset 0 0 0 1000px #F3F7FB;
  transition: background-color 999999s step-end;
  animation-name: mstf_autofill_in;
  animation-duration: 0.001s;
}

@keyframes mstf_autofill_in {
  from { opacity: 1; }
  to { opacity: 1; }
}

.mstf_textarea {
  min-height: 84px;
  padding-top: 24px;
  resize: none;
}

/* Selects size to UA line metrics, not padding, so without an explicit
   height the control ends up shorter than the inputs and the underline
   rides up toward the label. Pin both to the same box. */
.mstf_input,
.mstf_select {
  height: 49px;
}

.mstf_select {
  cursor: pointer;
}

.mstf_select option {
  color: #12264F;
  background-color: #ffffff;
}

.mstf_field_caret {
  position: absolute;
  right: 0;
  bottom: 14px;
  width: 14px;
  height: 14px;
  pointer-events: none;
  color: var(--mstf-fg-dim);
}

.mstf_label {
  position: absolute;
  left: 0;
  top: 18px;
  transform-origin: 0% 50%;
  font-size: 15px;
  font-weight: 380;
  letter-spacing: -0.01em;
  color: var(--mstf-fg-dim);
  pointer-events: none;
}

.mstf_underline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--mstf-fg);
  transform: scaleX(0);
  transform-origin: 0% 50%;
}

/* Reserved height always present so an error appearing never shifts the
   fields below it - only the masked text rolls, nothing resizes.
   font-size on the mask so its 1.4em box matches the inner text height -
   at the parent's 15px the box was taller than the 13px text and the
   parked glyph tops peeked through. */
.mstf_error {
  overflow: hidden;
  height: 1.4em;
  margin-top: 4px;
  font-size: 13px;
}

.mstf_error_inner {
  display: block;
  font-weight: 380;
  letter-spacing: -0.01em;
  color: var(--mstf-error);
  transform: translateY(110%);
}

.mstf_review {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 28px;
}

.mstf_review_row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mstf-line);
}

.mstf_review_row dt {
  font-size: 13px;
  font-weight: 500;
  color: var(--mstf-fg-dim);
}

.mstf_review_row dd {
  margin: 0;
  font-size: 15px;
  font-weight: 380;
  letter-spacing: -0.01em;
  color: var(--mstf-fg);
  word-break: break-word;
}

.mstf_nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.mstf_nav_btn {
  padding: 12px 22px;
  border: 1px solid var(--mstf-line);
  border-radius: 999px;
  background-color: transparent;
  color: var(--mstf-fg-soft);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.mstf_nav_btn:focus-visible {
  outline: 2px solid #2F7FC1;
  outline-offset: 2px;
}

.mstf_nav_next {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  margin-left: auto;
  border-color: transparent;
  background-color: var(--mstf-panel);
  color: #f4f2ee;
}

.mstf_send_icon {
  width: 0;
  height: 14px;
  opacity: 0;
  visibility: hidden;
  flex: none;
}

.mstf_submit_mask {
  position: relative;
  display: block;
  overflow: hidden;
  height: 1.2em;
}

.mstf_submit_label {
  display: block;
  font-size: inherit;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.mstf_submit_label_next {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(100%);
}

.mstf_submit_spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  opacity: 0;
}

.mstf_submit_measure {
  position: absolute;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: inherit;
  font-weight: 500;
  letter-spacing: -0.01em;
  pointer-events: none;
}

@media (max-width: 479px) {
  .mstf_wrap {
    --mstf-margin: 20px;
    align-items: flex-start;
    padding-top: 64px;
  }

  .mstf_card {
    max-width: 100%;
  }
}

/* ---- Annnimate: process-rail ---- */
/* the scroll track; JS makes it tall where the stage sticks, auto elsewhere */
.prl_wrap {
  position: relative;
  width: 100%;
  height: var(--prl-track, auto);
  background: #F3F7FB;
  color: rgba(18, 38, 79, 0.92);
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
}

/* the visible block: CSS sticky holds it while the track scrolls past, no JS pin */
.prl_stage {
  position: sticky;
  top: 0;
  display: grid;
  align-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 40px;
}

.prl_rail {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* JS fits the line to the steps; the svg is a fixed-height strip above them */
.prl_svg {
  display: block;
  width: 100%;
  height: 24px;
  overflow: visible;
}

.prl_svg_mobile {
  display: none;
}

.prl_path,
.prl_path_ghost {
  fill: none;
  stroke: #12264F;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prl_path {
  opacity: 0.78;
}

/* the route is dotted underneath so the eye knows where the bead is headed */
.prl_path_ghost {
  opacity: 0.28;
  stroke-dasharray: 1 7;
}

.prl_bead {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: var(--prl-bead, 10px);
  height: var(--prl-bead, 10px);
  border-radius: 50%;
  background: #12264F;
  box-shadow: 0 0 0 calc(var(--prl-bead, 10px) * 0.5) #F3F7FB;
  pointer-events: none;
  will-change: transform;
}

/* equal columns: even spacing, and each step's anchor is its column's middle */
.prl_steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  column-gap: 4%;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.prl_step {
  position: relative;
  min-width: 0;
  will-change: opacity;
}

.prl_step_btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.prl_step_btn:focus-visible {
  outline: 1px solid rgba(18, 38, 79, 0.3);
  outline-offset: 4px;
}

.prl_step_num {
  display: block;
  height: 1em;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: rgba(18, 38, 79, 0.62);
  font-variant-numeric: tabular-nums;
}

/* a digit is a 1em window over a strip of glyphs; overflow clip plus the
   invisible in-flow glyph keeps the baseline where text expects it */
.prl_col {
  position: relative;
  display: inline-block;
  overflow: clip;
  width: 0.64em;
  height: 1em;
  line-height: 1;
  vertical-align: baseline;
}

.prl_col::before {
  content: '0';
  visibility: hidden;
}

.prl_strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
}

.prl_glyph {
  display: block;
  height: 1em;
  line-height: 1;
  text-align: center;
}

.prl_step_title {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.prl_step_text {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: rgba(18, 38, 79, 0.62);
}

/* the active step's image; its space is reserved so a card never changes height */
.prl_step_media {
  display: block;
  width: 100%;
  margin-top: 16px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  transform-origin: 50% 0;
  will-change: transform, opacity;
}

.prl_step_media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  /* phones never stick: the stacked steps are taller than the screen */
  .prl_stage {
    position: relative;
    padding: 20px;
  }

  /* the steps stack beside a vertical line JS fits to them */
  .prl_rail {
    padding-left: 72px;
    padding-bottom: 0;
  }

  .prl_svg_desktop {
    display: none;
  }

  .prl_svg_mobile {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 72px;
    height: 100%;
  }

  /* equal-height rows: every step holds the room its image needs, so nothing
     shifts when an image comes in and the bead spacing stays even */
  .prl_steps {
    grid-auto-flow: row;
    grid-auto-rows: 1fr;
    row-gap: 48px;
    column-gap: 0;
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prl_bead,
  .prl_step,
  .prl_strip,
  .prl_step_media {
    will-change: auto;
  }
}

/* ---- Annnimate: progress ---- */
[data-anm-progress] {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.progress_svg {
  display: block;
  overflow: visible;
}

.progress_track {
  opacity: 1;
}

.progress_circle {
  will-change: stroke-dashoffset;
  transition: stroke 0.3s ease;
}

/* Percent text centered in circle */
.progress_percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  pointer-events: none;
  line-height: 1;
}

[data-anm-progress="bar"] {
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 200px;
}

.progress_bar_track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
}

.progress_bar_fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 2px;
  transform-origin: left center;
  will-change: transform;
}

[data-anm-progress="text"] {
  display: inline-block;
}

.progress_text {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .progress_circle,
  .progress_bar_fill,
  .progress_text,
  .progress_percent {
    transition: none !important;
    animation: none !important;
  }
}

/* Progress demo section - two column layout */
.progress_demo_section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 0 4rem;
  min-height: 300vh;
}

/* Left column - scrolling content */
.progress_content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 8rem;
  padding-bottom: 8rem;
}

/* Right column - sticky progress */
.progress_sticky_wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Circular progress styling */
.progress_circular {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.progress_circular .progress_percent {
  font-size: 2rem;
  color: #12264F;
}

/* Card styling for demo content */
.progress_card {
  position: relative;
  background: #12264F;
  border: 1px solid #262626;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  aspect-ratio: 3 / 4;
  justify-content: flex-end;
  overflow: hidden;
}

/* Background image */
.progress_card_bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  pointer-events: none;
}

/* Content wrapper on top of image */
.progress_card_content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 3rem;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.9) 0%,
    rgba(10, 10, 10, 0.6) 50%,
    transparent 100%
  );
}

.progress_card_label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #a3a3a3;
}

.progress_card_title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fafafa;
  line-height: 1.1;
}

.progress_card_text {
  font-size: 1rem;
  line-height: 1.6;
  color: #d1d1d1;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .progress_demo_section {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 2rem;
  }

  .progress_sticky_wrap {
    position: relative;
    height: auto;
    padding: 4rem 0;
  }

  .progress_content {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .progress_card {
    aspect-ratio: auto;
    min-height: 400px;
  }

  .progress_card_content {
    padding: 2rem;
  }

  .progress_card_title {
    font-size: 2rem;
  }
}

@media (max-width: 479px) {
  .progress_demo_section {
    padding: 0 1.5rem;
  }

  .progress_card {
    min-height: 350px;
  }

  .progress_card_content {
    padding: 1.5rem;
  }

  .progress_card_title {
    font-size: 1.75rem;
  }

  .progress_circular .progress_percent {
    font-size: 1.5rem;
  }
}

/* ---- Annnimate: text-fill-wave ---- */
/* Text Fill Wave
   A big centered two-line headline that fills in color as the user scrolls,
   with a narrow accent-colored band riding the edge of the fill. No Webflow -
   CSS variables and @font-face allowed. */



/* ---- Tokens ---- */
.tfw_section {
  /* Matches the scroll preview templates' page background so the cover and
     the section read as one surface. */
  --tfw-bg:      #F3F7FB;
  --tfw-from:    #d9d7d0;
  --tfw-to:      #171717;
  --tfw-accent:  #2F7FC1;
  --tfw-sans:    "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- Root ---- */
.tfw_section {
  position: relative;
  width: 100%;
  min-height: 100svh;
  box-sizing: border-box;
  background: var(--tfw-bg);
  color: var(--tfw-to);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tfw-sans);
  -webkit-font-smoothing: antialiased;
}

.tfw_content {
  position: relative;
  width: 100%;
  /* vw-based so the split composition keeps its proportions as the viewport
     grows (the type is vw-scaled too); the max() floor keeps small screens
     effectively full-width. */
  max-width: max(62vw, 640px);
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

/* ---- Headline ----
   Each line gets background-clip:text with a static 3-stop gradient. The
   stop offsets are driven by --tfw-fill (a plain number, 0-100) at runtime -
   see the calc() math below. The fallback color (before JS sets the custom
   properties) keeps the text legible if background-clip is unsupported. */
.tfw_headline {
  font-family: var(--tfw-sans);
  font-weight: 400;
  font-size: clamp(34px, 7vw, 120px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 0;
  overflow-x: visible;
  overflow-y: visible;
  color: var(--tfw-from);
}

.tfw_line {
  --tfw-fill: -8;
  --tfw-wave-width: 8;
  --tfw-angle: 97deg;
  display: block;
  /* The gradient's 0-100% spans the line BOX. A full-width box would make
     the sweep cross empty gutters before/after the centered text (the ease's
     slow tail lands in dead space), so the box must hug the glyphs. */
  width: fit-content;
  /* background-clip:text only paints inside the box - descenders and the
     tight-tracking overhang render outside it and go invisible. Padding
     grows the paint box; the negative bottom margin cancels the layout
     shift so the leading stays tight. */
  padding: 0 0.08em 0.18em;
  /* Split layout: first line sits flush left, following lines flush right */
  margin: 0 auto -0.18em 0;
  background-image: linear-gradient(
    var(--tfw-angle),
    var(--tfw-to) 0%,
    var(--tfw-to) calc(var(--tfw-fill) * 1% - var(--tfw-wave-width) * 1%),
    var(--tfw-accent) calc(var(--tfw-fill) * 1%),
    var(--tfw-from) calc(var(--tfw-fill) * 1% + var(--tfw-wave-width) * 1%),
    var(--tfw-from) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.tfw_line + .tfw_line {
  margin-left: auto;
  margin-right: 0;
}

/* ---- Responsive: deliberate mobile layout ----
   Tighter headline scale, narrower gutters. clamp() already handles most of
   the range; this trims the max side padding on very small viewports. */
@media (max-width: 479px) {
  .tfw_content {
    padding: 0 20px;
  }
}

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