/* Block Reveal Animation Styles and Letter Fade-in */
.block-effect {
  font-size: calc(8px + 6vw);
  font-weight: bold;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Speed tweak: make text reveals ~20% faster */
.block-reveal {
  --td: 0.56s; /* was 0.7s */
  --d: 0.04s; /* was 0.05s */
  color: transparent;
  padding: 4px;
  position: relative;
  overflow: hidden;
  animation: revealBlock 0s var(--td) forwards;
  width: 100vw;
  text-align: center;
  display: block;
}
.block-reveal::after {
  content: "";
  width: 0%;
  height: 100%;
  padding-bottom: 4px;
  position: absolute;
  top: 0;
  left: 0;
  background: #fff !important;
  filter: blur(2px);
  z-index: 2;
  transition: width 0.56s cubic-bezier(0.4, 0, 0.2, 1); /* was 0.7s */
}
@keyframes revealBlock {
  100% {
    color: #fff;
  }
}
@keyframes revealingIn {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}
@keyframes revealingOut {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}
.fullwidth-block-effect {
  width: 100vw !important;
  max-width: 100vw;
  min-width: 100vw;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}
.fade-in-letter {
  opacity: 0;
  display: inline-block;
  transition: opacity 0.4s cubic-bezier(0.18, 1.17, 0.03, 1.46);
}
.block-reveal-letters .fade-in-letter {
  opacity: 0;
  animation: fadeInLetter 0.2s forwards; /* was 0.25s */
}
/* Headline: first 13 letters in 1s, next 22 in 0.8s */
/* First 13: step = 1s/13 ≈ 0.0769s, start at 0.5s */
/* Shift all manual letter delays earlier by 20% */
.block-reveal-letters .fade-in-letter:nth-child(1) {
  animation-delay: 0.4s;
}
.block-reveal-letters .fade-in-letter:nth-child(2) {
  animation-delay: 0.4615s;
}
.block-reveal-letters .fade-in-letter:nth-child(3) {
  animation-delay: 0.523s;
}
.block-reveal-letters .fade-in-letter:nth-child(4) {
  animation-delay: 0.5846s;
}
.block-reveal-letters .fade-in-letter:nth-child(5) {
  animation-delay: 0.6461s;
}
.block-reveal-letters .fade-in-letter:nth-child(6) {
  animation-delay: 0.7076s;
}
.block-reveal-letters .fade-in-letter:nth-child(7) {
  animation-delay: 0.7691s;
}
.block-reveal-letters .fade-in-letter:nth-child(8) {
  animation-delay: 0.8306s;
}
.block-reveal-letters .fade-in-letter:nth-child(9) {
  animation-delay: 0.8922s;
}
.block-reveal-letters .fade-in-letter:nth-child(10) {
  animation-delay: 0.9537s;
}
.block-reveal-letters .fade-in-letter:nth-child(11) {
  animation-delay: 1.0152s;
}
.block-reveal-letters .fade-in-letter:nth-child(12) {
  animation-delay: 1.0767s;
}
.block-reveal-letters .fade-in-letter:nth-child(13) {
  animation-delay: 1.1382s;
}
/* Start 14th letter after 0.1s delay from 13th */
.block-reveal-letters .fade-in-letter:nth-child(14) {
  animation-delay: 1.2182s;
}

.subtitle-fade.block-reveal-letters .fade-in-letter {
  opacity: 0;
  animation: fadeInLetter 0.2s forwards;
  animation-delay: 0.96s; /* was 1.2s */
}
/* Now override nth-child delays for subtitle-fade, all start after 1.2s + per-letter step */
/* 35 subtitle letters, 0.8s total: step = 0.8s/35 ≈ 0.02286s, start at 1.2s */
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(1) {
  animation-delay: 0.96s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(2) {
  animation-delay: 0.9783s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(3) {
  animation-delay: 0.9966s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(4) {
  animation-delay: 1.0149s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(5) {
  animation-delay: 1.0331s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(6) {
  animation-delay: 1.0514s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(7) {
  animation-delay: 1.0697s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(8) {
  animation-delay: 1.088s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(9) {
  animation-delay: 1.1063s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(10) {
  animation-delay: 1.1246s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(11) {
  animation-delay: 1.1429s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(12) {
  animation-delay: 1.1611s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(13) {
  animation-delay: 1.1794s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(14) {
  animation-delay: 1.1977s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(15) {
  animation-delay: 1.216s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(16) {
  animation-delay: 1.2343s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(17) {
  animation-delay: 1.2526s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(18) {
  animation-delay: 1.2709s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(19) {
  animation-delay: 1.2891s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(20) {
  animation-delay: 1.3074s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(21) {
  animation-delay: 1.3257s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(22) {
  animation-delay: 1.344s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(23) {
  animation-delay: 1.3623s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(24) {
  animation-delay: 1.3806s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(25) {
  animation-delay: 1.3989s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(26) {
  animation-delay: 1.4171s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(27) {
  animation-delay: 1.4354s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(28) {
  animation-delay: 1.4537s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(29) {
  animation-delay: 1.472s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(30) {
  animation-delay: 1.4903s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(31) {
  animation-delay: 1.5086s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(32) {
  animation-delay: 1.5269s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(33) {
  animation-delay: 1.5451s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(34) {
  animation-delay: 1.5634s;
}
.subtitle-fade.block-reveal-letters .fade-in-letter:nth-child(35) {
  animation-delay: 1.5817s;
}
@keyframes fadeInLetter {
  to {
    opacity: 1;
  }
}

/* --- By line (under subtitle). Fade in with the profile blob (delay 1.6s). --- */
.byline-fade.block-reveal-letters {
  width: 100%;
  text-align: center;
  display: block;
  margin: -1.2em auto 0 auto;
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 1; /* container stays in flow; letters handle visibility */
  font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.byline-fade.block-reveal-letters .fade-in-letter {
  opacity: 0;
  animation: fadeInLetter 0.2s forwards;
}

.byline-fade.block-reveal-letters .fade-in-letter:nth-child(1) {
  animation-delay: 1.6s;
}
.byline-fade.block-reveal-letters .fade-in-letter:nth-child(2) {
  animation-delay: 1.66s;
}
