.cal-wrap {
  max-width: 560px;
  margin: 0 auto;
}

/* Header */
.cal-header {
    text-align: center;
    margin-bottom: 22px;
    line-height: 26px;
}
.cal-wedding-title {
  font-family: var(--font-heading);
  font-size: var(--fs-script);
  color: #2E2820;
  margin: 0 0 12px;
  opacity: 0;
  animation: fadeUp .8s cubic-bezier(.16,1,.3,1) forwards;
  animation-play-state: paused;
}

.cal-date-line {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 300;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0;
  animation: fadeUp .8s cubic-bezier(.16,1,.3,1) .18s forwards;
  animation-play-state: paused;
}

.cal-section.in-view .cal-wedding-title,
.cal-section.in-view .cal-date-line {
  animation-play-state: running;
}

/* Grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px 0;
}

.cal-day-name {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #b5ac9f;
  text-align: center;
  padding-bottom: 22px;
  opacity: 0;
  transition: opacity .5s ease calc(var(--i) * 0.06s + .35s);
}

.cal-section.in-view .cal-day-name { opacity: 1; }

.cal-cell {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  color: #7a7368;
  text-align: center;
  padding: 14px 0;
  position: relative;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity  .4s ease calc(var(--i) * 0.035s),
    transform .4s ease calc(var(--i) * 0.035s);
}

.cal-section.in-view .cal-cell { opacity: 1; transform: none; }

/* Wedding date */
.cal-cell.wedding { z-index: 1; font-weight: 900; }

.cal-cell.wedding::before {
  content: '';
  position: absolute;
  top: 39%; left: 46%;
  width: 33px; height: 69px;
  background: url(/wp-content/uploads/2026/06/r.svg) center / contain no-repeat;
  transform: translate(-50%, -50%) scale(0) rotate(-12deg);
  z-index: -1;
  transition: transform .65s cubic-bezier(.34,1.56,.64,1) calc(var(--i) * 0.035s + .15s);
}

.cal-section.in-view .cal-cell.wedding::before {
  transform: translate(-50%, -50%) scale(1) rotate(-12deg);
}

/* Subtle pulse after reveal */
@keyframes calPulse {
  0%, 100% { filter: drop-shadow(0 0 0px rgba(201,169,110,.7)); }
  50%       { filter: drop-shadow(0 0 8px rgba(201,169,110,0)); }
}

.cal-section.in-view .cal-cell.wedding::before {
  animation: calPulse 2.2s ease 1.8s infinite;
}
