/* Sunday Club motion: sunshine, shimmer, and a little dance-floor energy. */
:root { --motion-ease: cubic-bezier(.16, 1, .3, 1); }
.hero-line { display: block; overflow: clip; padding: .16em .08em; margin: -.16em -.08em; }
.hero-line > span { display: inline-block; transform-origin: left bottom; }
.motion-on [data-motion-waiting] { opacity: 0; }
.motion-on .hero-photo img, .motion-on .detail-photo img { animation: none; transform: translateY(var(--image-drift, 0px)) scale(1.09); }
.hero-art { rotate: var(--art-tilt, 0deg); transition: rotate .65s var(--motion-ease); }
/* Keep the crop on a permanent parent mask while the image moves inside it.
   The entrance must not replace this shape with a square clipping endpoint. */
.hero-photo, .detail-photo { position: relative; isolation: isolate; clip-path: inset(0 round var(--photo-radius)); }
.hero-photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at var(--shine-x, 80%) var(--shine-y, 20%), #fff9e647, transparent 52%); opacity: 0; transition: opacity .7s; mix-blend-mode: screen; }
.motion-on .hero-photo::after { opacity: 1; }
.motion-on .hero h1 em, .motion-on .estimate-copy h2 em { color: transparent; background: linear-gradient(110deg, #432b46 15%, #95537f 33%, #b06837 43%, #754784 53%, #432b46 68%); background-size: 250% 100%; background-clip: text; -webkit-background-clip: text; animation: type-shimmer 8s ease-in-out infinite; }
.motion-on .estimate-copy h2 em { background-image: linear-gradient(110deg, #d9c8e9 15%, #fbf4e6 34%, #efcd72 44%, #efa1b5 54%, #d9c8e9 68%); }
.hero-glints { position: absolute; inset: 0; pointer-events: none; display: none; }
.motion-on .hero-glints { display: block; }
.hero-glints i { position: absolute; width: 52px; aspect-ratio: 1; background: var(--butter); clip-path: polygon(50% 0, 60% 36%, 100% 50%, 60% 61%, 50% 100%, 40% 61%, 0 50%, 40% 36%); animation: star-breathe 4.5s ease-in-out infinite; }
.hero-glints i:nth-child(1) { top: 8%; right: -16px; background: #fbf4e6; }
.hero-glints i:nth-child(2) { top: 33%; left: 9%; width: 27px; animation-delay: -1.5s; }
.hero-glints i:nth-child(3) { bottom: 17%; right: 9%; width: 40px; background: #efc4df; animation-delay: -3s; }
.motion-on .sun-stamp > svg { animation: petals-spin 32s linear infinite; }
.motion-on .little-sun { animation: petals-spin 18s linear infinite; }
.brand-flower { transition: transform .9s var(--motion-ease); }
.brand:hover .brand-flower { transform: rotate(144deg); }
.motion-on .color-petals { animation: petal-sway 7s ease-in-out infinite; }
.site-header { transition: box-shadow .5s, background .5s; }
.site-header.is-scrolled { box-shadow: 0 9px 30px #432b4610; }
.site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; background: linear-gradient(90deg, var(--coral), #bd91ca, var(--butter), var(--sage)); transform: scaleX(var(--page-progress, 0)); transform-origin: left; }

/* A continuous ribbon, with the original static arrangement for reduced motion. */
.color-band.is-marquee { display: block; padding: 20px 0; }
.marquee-track { display: flex; width: max-content; animation: club-marquee 30s linear infinite; animation-play-state: paused; }
.motion-on .marquee-track { animation-play-state: running; }
.marquee-run { display: flex; flex: none; align-items: center; justify-content: space-around; gap: clamp(30px, 4vw, 80px); min-width: 100vw; padding-inline: clamp(20px, 3vw, 50px); }
.color-band.is-marquee .marquee-run > span { flex: none; gap: clamp(30px, 4vw, 80px); font-size: clamp(36px, 4.1vw, 64px); }
.color-band.is-marquee i { font-size: 28px; }
.motion-on .marquee-run i { animation: petals-spin 16s linear infinite; }

.button, .submit-button { position: relative; isolation: isolate; overflow: hidden; translate: var(--magnet-x, 0px) var(--magnet-y, 0px); transition: background .25s, transform .3s, translate .45s var(--motion-ease), box-shadow .3s; }
.button::before, .submit-button::before { content: ''; pointer-events: none; position: absolute; inset: -80% -45%; background: linear-gradient(110deg, transparent 35%, #fff5 49%, transparent 63%); transform: translateX(-80%); }
.motion-on .button:hover::before, .motion-on .submit-button:hover::before { animation: button-gloss .8s var(--motion-ease); }
.motion-on .button:hover, .motion-on .submit-button:hover { box-shadow: 0 8px 24px #432b4625; }
.button span, .submit-button span { transition: transform .4s var(--motion-ease); }
.motion-on .button:hover span, .motion-on .submit-button:hover span + span { transform: rotate(45deg); }
.text-link span { transition: transform .4s var(--motion-ease); }
.text-link:hover span { transform: translate(4px, -4px); }
.service-panel { animation: none; }
.service-stage { background: radial-gradient(ellipse at 60% 35%, #d9c8e929, transparent 70%); }
.service-tab { position: relative; isolation: isolate; overflow: hidden; transition: color .35s, padding-left .5s var(--motion-ease), background .3s; }
.service-tab::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, #d9c8e975, #efcd7210); transform: translateX(-102%); z-index: -1; transition: transform .6s var(--motion-ease); }
.motion-on .service-tab[aria-selected=true]::before, .motion-on .service-tab:hover::before { transform: translateX(0); }
.motion-on .service-tab[aria-selected=true] { padding-left: 13px; }
.service-image img { transition: filter .7s; }
.service-panel .image-label { transition: background .5s; }
.service-panel:hover .image-label { background: var(--butter); }
.process-grid article { transition: background .5s; }
.process-grid article:hover { background: #d9c8e924; }
.step-number { transition: transform .7s var(--motion-ease), border-radius .7s; }
.motion-on .process-grid article:hover .step-number { transform: rotate(-12deg) scale(1.12); border-radius: 35%; }
.motion-on .hand-note { animation: note-float 7s ease-in-out infinite; }
.city-list span { transition: padding-left .3s, background .3s; }
.city-list span:hover { padding-left: 7px; background: #fbf4e629; }
.city-list span::after { transition: transform .3s; }
.city-list span:hover::after { transform: translate(3px, -3px); }
summary::after { transition: rotate .35s var(--motion-ease); }
details[open] summary::after { rotate: 180deg; }
.field input, .field textarea, .field select { transition: border-color .35s, background .35s, box-shadow .35s; }
.field input:focus, .field textarea:focus, .field select:focus { background: #d9c8e911; border-bottom-color: var(--butter); box-shadow: 0 4px 0 -3px var(--butter); }
.estimate-section { position: relative; isolation: isolate; overflow: hidden; }
.estimate-section::before, .estimate-section::after { content: ''; position: absolute; pointer-events: none; z-index: -1; width: min(70vw, 700px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #ae73b222, transparent 66%); }
.estimate-section::before { top: -35%; left: -20%; }
.estimate-section::after { right: -30%; bottom: -35%; background: radial-gradient(circle, #df785d24, transparent 65%); }
.motion-on .estimate-section::before, .motion-on .estimate-section::after { animation: aurora-drift 16s ease-in-out infinite alternate; }
.motion-on .estimate-section::after { animation-delay: -8s; }
.footer-wordmark { transform-origin: 50% 100%; }
.motion-on .footer-intro > svg { animation: petals-spin 30s linear infinite; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; transition: none !important; }
.motion-paused .hero-photo img { animation: none; transform: none; }
.motion-paused .hero-art { rotate: 0deg; }
@keyframes type-shimmer { 0%, 20% { background-position: 100% 50%; } 70%, 100% { background-position: 0% 50%; } }
@keyframes petals-spin { to { transform: rotate(360deg); } }
@keyframes star-breathe { 0%, 100% { transform: scale(.6) rotate(-20deg); opacity: .28; } 50% { transform: scale(1) rotate(30deg); opacity: .95; } }
@keyframes club-marquee { to { transform: translateX(-50%); } }
@keyframes button-gloss { to { transform: translateX(80%); } }
@keyframes petal-sway { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
@keyframes note-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes aurora-drift { to { transform: translate(25%, 15%) scale(1.25); } }
@media(max-width:760px) {
  .hero-glints i:nth-child(1) { right: -10px; width: 40px; }
  .hero-glints i:nth-child(3) { width: 30px; }
  .color-band.is-marquee { min-height: 82px; padding-block: 17px; }
  .color-band.is-marquee .marquee-run > span { font-size: 38px; }
  .color-band.is-marquee i { font-size: 21px; }
  .motion-on .service-tab[aria-selected=true] { padding-left: 5px; }
}
@media(prefers-reduced-motion:reduce) {
  [data-motion-waiting] { opacity: 1 !important; }
  .hero-photo img, .detail-photo img, .hero-art { transform: none !important; rotate: none !important; }
  .hero-glints { display: none !important; }
  .color-band.is-marquee { padding-inline: var(--gutter); }
  .marquee-track { display: block; width: 100%; transform: none !important; }
  .marquee-run { min-width: 0; width: 100%; padding: 0; gap: 20px; flex-wrap: wrap; }
  .marquee-run + .marquee-run { display: none; }
  .color-band.is-marquee .marquee-run > span { font-size: clamp(26px, 4vw, 54px); gap: 20px; }
}
@media print { .hero-glints, .sparkle-canvas { display: none !important; } [data-motion-waiting] { opacity: 1 !important; } }

@media print { .motion-on .hero h1 em, .motion-on .estimate-copy h2 em { color: var(--ink) !important; background: none !important; } }
.motion-paused .site-header::after { opacity: 0; }

/* Draw the club mark rather than allowing emoji-font substitution on iOS. */
.club-asterisk { display: block; width: 1em; height: 1em; overflow: visible; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; }
.little-sun, .color-band i { flex-shrink: 0; }

/* Covered scenes retain their layout without spending frames on decoration. */
.chapters-enabled > .chapter-card:not(.chapter-visible) *,
.chapters-enabled > .chapter-card:not(.chapter-visible) *::before,
.chapters-enabled > .chapter-card:not(.chapter-visible) *::after,
.motion-offscreen, .motion-offscreen::before, .motion-offscreen::after,
.motion-offscreen *, .motion-offscreen *::before, .motion-offscreen *::after { animation-play-state: paused !important; }
