/* POLISH LAYER (loaded last): loader, scroll reveal, balance, contact, stability */

/* ---- Logo loading screen ---- */
.loader { transition: opacity .55s ease, visibility 0s linear .55s; }
.loader:not(.done) { transition: opacity .25s ease; }
.loader-logo { animation: loaderBreathe 1.5s ease-in-out infinite; transition: transform .55s ease; }
.loader-logo .loader-fill { animation: loaderFill 1.5s cubic-bezier(.65,0,.35,1) infinite; }
.loader.done .loader-logo { transform: scale(1.18); }
@keyframes loaderBreathe { 50% { scale: 1.07; } }
@keyframes loaderFill { 0% { clip-path: inset(100% 0 0 0); opacity: 1; } 60%, 80% { clip-path: inset(0 0 0 0); opacity: 1; } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }

/* ---- Scroll reveal (only elements the script marks are ever hidden) ---- */
html .reveal, html .reveal.reveal, html .img-reveal { opacity: 1; transform: none; clip-path: none; transition: none; }
html.js body, html body { animation: none; }
html main .fx.fx.fx { opacity: 0; translate: 0 52px; scale: .92; }
html main .fx.fx.fx.fx-in { opacity: 1; translate: 0 0; scale: 1;
  transition: opacity .8s ease var(--fx-delay, 0ms), translate .9s cubic-bezier(.16,1,.3,1) var(--fx-delay, 0ms), scale .9s cubic-bezier(.16,1,.3,1) var(--fx-delay, 0ms); }
.fx-boot .hero-copy-inner > *:not(.hero-title):not(.hero-lead) { opacity: 0; translate: 0 28px; }
.fx-boot.page-ready .hero-copy-inner > *:not(.hero-title):not(.hero-lead) { opacity: 1; translate: 0 0; transition: opacity .7s ease, translate .8s cubic-bezier(.16,1,.3,1); }
.fx-boot.page-ready .hero-copy-inner > :nth-child(2) { transition-delay: .08s; } .fx-boot.page-ready .hero-copy-inner > :nth-child(3) { transition-delay: .16s; }
.fx-boot.page-ready .hero-copy-inner > :nth-child(4) { transition-delay: .24s; } .fx-boot.page-ready .hero-copy-inner > :nth-child(5) { transition-delay: .32s; }
html.no-scroll { overflow: hidden; }
.bento-tile img, .mosaic-item img { --s: 1; }
.lb { visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.lb.on { visibility: visible; transition: opacity .35s ease; }

/* ---- Balance: centred, symmetrical layout ---- */
main .container-narrow { margin-inline: auto; }
.section-header { margin-inline: auto; text-align: center; max-width: 760px; }
.section-header p { margin-inline: auto; }
.hero-copy-inner { max-width: 860px; margin-inline: auto; text-align: center; }
.hero-lead { margin-inline: auto; }
.hero-route { align-items: stretch; }
@media (min-width: 861px) {
  .hero-shade { background: radial-gradient(ellipse at 50% 45%, rgba(8,12,21,.78) 0%, rgba(8,12,21,.5) 55%, rgba(8,12,21,.25) 100%), linear-gradient(0deg, var(--bg-base) 0%, rgba(8,12,21,0) 30%); }
}
.results-section .container { text-align: center; }

.credibility { padding-block: var(--space-2xl); text-align: center; }
.role-line { font-family: var(--font-label); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-accent); margin: 0 auto var(--space-lg); }
.authority-grid, .quals-grid { display: grid; gap: 12px; max-width: 1040px; margin: 0 auto; padding: 0; list-style: none; }
.authority-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quals-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.authority-item, .quals-grid li { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-md); padding: 18px 14px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.authority-item strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.35rem, 2.4vw, 2rem); color: var(--text-primary); line-height: 1.1; }
.authority-item span { font-size: .84rem; color: var(--text-secondary); }
.quals-title { font-size: 1.5rem; margin: var(--space-2xl) auto var(--space-md); }
.quals-grid li { font-size: .92rem; line-height: 1.45; }
@media (max-width: 860px) { .authority-grid, .quals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .quals-grid { grid-template-columns: minmax(0, 1fr); } }


/* ---- Contact: WhatsApp + Instagram ---- */
.band-card { max-width: 820px; margin: 0 auto; text-align: center; padding: var(--space-2xl) var(--space-lg); }
.band-card p { max-width: 580px; margin: var(--space-md) auto var(--space-lg); color: var(--text-secondary); line-height: 1.7; }
.band-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contact-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 210px; min-height: 56px; padding: 12px 24px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; font-weight: 600; transition: background .25s ease, border-color .25s ease; }
.contact-btn:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.5); }
.contact-btn img { width: 30px; height: 30px; flex: none; }
.chooser { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px; background: rgba(4,6,12,.86); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.chooser.on { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.chooser-panel { position: relative; width: min(400px, 100%); max-height: 100%; overflow: auto; display: flex; flex-direction: column; gap: 12px; text-align: center; padding: 36px 24px 24px; background: var(--bg-card); border: 1px solid var(--border-highlight); border-radius: var(--radius-lg); translate: 0 24px; transition: translate .35s cubic-bezier(.16,1,.3,1); }
.chooser.on .chooser-panel { translate: 0 0; }
.chooser-panel h2 { font-size: 1.5rem; margin: 0; }
.chooser-panel p { margin: 0 0 6px; color: var(--text-secondary); font-size: .92rem; }
.chooser-x { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; font-size: 1.6rem; color: #fff; background: none; border: 0; cursor: pointer; }

/* ---- Footer ---- */
.footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.footer-location { color: var(--text-primary); font-weight: 600; }
@media (max-width: 767px) {
  .footer-grid { text-align: center; justify-items: center; }
  .footer-logo { margin-inline: auto; }
  .site-footer .social-row, .site-footer .store-row { justify-content: center; }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- Phones: balance and smooth scrolling ---- */
@media (max-width: 860px) {
  .ambient-glow { display: none; }                      /* very large blurs cause flicker on phones */
  .card, .pillar-card, .hero-route { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .coach-feature-grid { text-align: center; }
  .coach-feature-grid .title-item, .coach-feature-grid .pricing-feature-item { text-align: left; }
  .coach-feature-grid .cta-row, .coach-feature-grid .store-row, .coach-feature-grid .chip-container { justify-content: center; }
  .approach-card { text-align: center; }
  .approach-card .chip-container { justify-content: center; }
}
@media (max-width: 520px) {
  .band-actions .contact-btn { width: 100%; }
  .section { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
}
@media (hover: none) { .card:hover, .pillar-card:hover { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .loader-logo, .loader-logo .loader-fill { animation: none; }
  .fx-boot .hero-copy-inner > *:not(.hero-title):not(.hero-lead) { opacity: 1; translate: none; transition: none !important; }
}

@media (max-width: 860px) {
  #pillars-preview .container > .reveal:first-child { justify-content: center !important; text-align: center; }
}

/* Transformation photos: rise from below, low opacity to full, small to full size */

/* ---- Transformations: 3D cover-flow carousel ---- */
.results-stage { --w: min(300px, 66vw); --dx: calc(var(--w) * .62); position: relative; height: calc(var(--w) * 1.25 + 30px); margin: var(--space-xl) auto 0; padding: 0; list-style: none;
  perspective: 1100px; perspective-origin: 50% 40%; touch-action: pan-y; overflow: visible; max-width: 100%; user-select: none; -webkit-user-select: none; outline: none; }
@media (min-width: 900px) { .results-stage { --w: 330px; --dx: calc(var(--w) * .78); } }
.results-card { position: absolute; left: 50%; top: 10px; width: var(--w); margin: 0; flex: none; max-width: none;
  transform-style: preserve-3d; will-change: transform, opacity;
  transform: translateX(-50%) translateX(calc(var(--o, 0) * var(--dx))) translateZ(calc(var(--a, 0) * -150px)) rotateY(calc(var(--o, 0) * -38deg));
  opacity: calc(1 - var(--a, 0) * .22);
  transition: transform .95s cubic-bezier(.22,1,.36,1), opacity .7s ease; }
.results-card.is-far { opacity: 0; pointer-events: none; }
.results-card::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg); pointer-events: none; background: rgba(5,8,14,calc(var(--a, 0) * .3)); transition: background .7s ease; }
.results-card.is-active { filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)); }
.results-card.is-active .results-open { border-color: var(--border-highlight); cursor: zoom-in; }
.results-card:not(.is-active) .results-open { cursor: pointer; }
.results-open:hover { transform: none; }
.results-stage:not(.is-in) .results-card { transform: translateX(-50%) translateZ(-260px) scale(.7); opacity: 0; transition: none; }
.results-stage.is-in .results-card { transition-delay: calc(var(--a, 0) * 60ms); }
.results-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: var(--space-lg); }
.results-dots { display: flex; gap: 8px; }
.results-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.28); cursor: pointer; transition: width .35s ease, background .35s ease; }
.results-dot.on { width: 26px; background: var(--cyan-accent); }
.results-arrow { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); cursor: pointer; transition: background .25s ease; }
.results-arrow:hover { background: rgba(255,255,255,.18); }
.results-section { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { .results-card, .results-card::after { transition: none; } }

/* ---- Word-by-word text ---- */
.w { display: inline-block; opacity: 0; translate: 0 .55em; }
.w-in .w { opacity: 1; translate: 0 0; transition: opacity .7s ease var(--wd, 0ms), translate .85s cubic-bezier(.16,1,.3,1) var(--wd, 0ms); }
.w-in .w.w, .w-in.w { }

/* ---- Footer: centred and balanced ---- */
.footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-brand .footer-app, .footer-brand .store-row, .footer-brand .social-row { justify-content: center; }
.footer-brand .footer-logo { margin-inline: auto; }
.footer-brand p { max-width: 320px; margin-inline: auto; }
.footer-grid { align-items: start; }
@media (min-width: 768px) { .footer-grid > div:not(.footer-brand) { justify-self: center; } }
.footer-bottom > * { text-align: center; justify-content: center; }
