/* Shared mystical components for the Fusion Belly Dance site */

.quote-bg { background-image: url('../img/antibes.jpg'); background-size: cover; background-position: center; }
/* the diamond from the logo, used as the site's ornament */
.diamond { display: inline-block; width: 10px; height: 10px; border: 1.5px solid #8298c5; transform: rotate(45deg); flex: none; }
/* hero: the words emerge from the smoke, once */
.reveal { opacity: 0; filter: blur(10px); transform: translateY(14px); animation: emerge 1.4s cubic-bezier(.2,.7,.2,1) forwards; }
.r1 { animation-delay: .2s } .r2 { animation-delay: .45s } .r3 { animation-delay: .8s } .r4 { animation-delay: 1.05s } .r5 { animation-delay: 1.3s }
@keyframes emerge { to { opacity: 1; filter: blur(0); transform: none; } }
.scroll-cue span { display: block; width: 1px; height: 48px; background: linear-gradient(#8298c5, transparent); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.4); transform-origin: top; opacity: .4 } 50% { transform: scaleY(1); opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; filter: none; transform: none; } .scroll-cue span { animation: none; } }
/* the three rites */
.rite { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.25rem; align-items: start; }
.rite-num { font-size: 2.5rem; line-height: 1; color: #8298c5; font-style: italic; text-align: right; }
/* faq */
.faq summary::-webkit-details-marker { display: none; }
.faq-dia { transition: transform .3s ease, background .3s ease; }
.faq[open] .faq-dia { background: #8298c5; transform: rotate(225deg); }
a:focus-visible, summary:focus-visible { outline: 2px solid #8298c5; outline-offset: 3px; }

/* ---- mystical frames ---- */
.portal, .sigil { position: relative; margin: 72px 30px 64px; }
.portal-img { position: relative; z-index: 1; border-radius: 999px 999px 4px 4px; overflow: hidden; }
.portal::before, .portal::after, .sigil::before, .sigil::after { content: ''; position: absolute; pointer-events: none; }
.portal::before { inset: -12px; border: 1px solid rgba(130,152,197,.6); border-radius: 999px 999px 6px 6px; }
.portal::after { inset: -24px; border: 1px solid rgba(130,152,197,.22); border-radius: 999px 999px 8px 8px; }
.sigil::before { inset: -12px; border: 1px solid rgba(130,152,197,.6); }
.sigil::after { inset: -24px; border: 1px solid rgba(130,152,197,.22); }
.sigil-img { position: relative; z-index: 1; }
.orn-moons { position: absolute; left: 50%; top: -70px; width: 140px; height: 46px; transform: translateX(-50%); }
.orn-star { position: absolute; width: 18px; height: 18px; animation: twinkle 5s ease-in-out infinite; }
.portal .s-left { left: -33px; top: 46%; } .portal .s-right { right: -33px; top: 46%; animation-delay: 2.5s; }
.sigil .s-bottom { left: 50%; bottom: -33px; margin-left: -9px; }
.orn-root { position: absolute; bottom: -60px; width: 1px; height: 36px; background: linear-gradient(rgba(130,152,197,.6), transparent); }
.orn-root::after { content: ''; position: absolute; left: -3px; bottom: -4px; width: 7px; height: 7px; border: 1px solid #8298c5; transform: rotate(45deg); }
.r-left { left: 30%; } .r-right { right: 30%; }
.orn-horizon { position: absolute; bottom: -24px; left: -70px; right: -70px; height: 1px; background: linear-gradient(90deg, transparent, rgba(130,152,197,.55) 18%, rgba(130,152,197,.55) 82%, transparent); }
.orn-corner { position: absolute; width: 40px; height: 40px; }
.c-tl { left: -44px; top: -44px; } .c-tr { right: -44px; top: -44px; transform: scaleX(-1); }
.c-bl { left: -44px; bottom: -44px; transform: scaleY(-1); } .c-br { right: -44px; bottom: -44px; transform: scale(-1); }
.sigil .orn-moons { top: -76px; }
@keyframes twinkle { 0%,100% { opacity: .45; transform: scale(.85) } 50% { opacity: 1; transform: scale(1.1) } }
@media (prefers-reduced-motion: reduce) { .orn-star { animation: none; } }
.amp { font-style: italic; color: #8298c5; font-weight: 400; padding: 0 .05em; }
.oracle-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 14px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: .03em;
    color: #fff; border: 1px solid #8298c5; background: linear-gradient(135deg, rgba(130,152,197,.25), rgba(79,135,135,.25)); transition: background .3s ease, box-shadow .3s ease; }
.oracle-btn:hover { background: linear-gradient(135deg, #8298c5, #4f8787); box-shadow: 0 0 30px -4px rgba(130,152,197,.6); }

/* ---- orbit (circle) frame ---- */
.orbit { position: relative; width: min(100%, 600px); aspect-ratio: 1; margin: 40px auto; }
.orbit-img { position: absolute; inset: 12%; border-radius: 50%; overflow: hidden; border: 1px solid rgba(130,152,197,.5); }
.orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-spin { transform-origin: 50px 50px; animation: orbit 90s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
/* ---- hexagon frame ---- */
.hexa { position: relative; width: min(100%, 600px); aspect-ratio: 1; margin: 30px auto; }
.hexa-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hexa-img { position: absolute; inset: 9%; clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%); }
/* ---- tarot cards ---- */
.tarot { position: relative; text-align: center; padding: 26px 28px 32px; border: 1px solid rgba(130,152,197,.55); border-radius: 14px;
    background: radial-gradient(80% 40% at 50% 0%, rgba(130,152,197,.12), transparent 70%), linear-gradient(180deg, #232934, #1c2029); }
.tarot::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(130,152,197,.2); border-radius: 8px; pointer-events: none; }
.tarot .orn-corner { width: 30px; height: 30px; } .tarot .c-tl { left: -6px; top: -6px; } .tarot .c-tr { right: -6px; top: -6px; }
.tarot .c-bl { left: -6px; bottom: -6px; } .tarot .c-br { right: -6px; bottom: -6px; }
.tarot-head { display: flex; justify-content: space-between; align-items: center; color: #8298c5; font-size: 15px; letter-spacing: .2em; margin: 0 6px 14px; }
.tarot-glyph { font-family: 'Marcellus', serif; font-size: 26px; width: 46px; height: 46px; border: 1px solid rgba(130,152,197,.5); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.tarot-art { position: relative; aspect-ratio: 4 / 3; border: 1px solid rgba(130,152,197,.45); padding: 6px; }
.tarot-art img { display: block; }
.tarot-banner { margin: -26px 18px 0; position: relative; z-index: 1; padding: 14px 10px 16px; background: #1c2029; border: 1px solid rgba(130,152,197,.45);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%, 0 100%); }
@media (prefers-reduced-motion: reduce) { .orbit-spin { animation: none; } }

.static-star { position: relative !important; display: block; }
.mosaic { grid-auto-flow: dense; }
/* ---- nav ---- */
.nav-active { border-bottom: 1px solid #8298c5; }
/* ---- inner page hero ---- */
.page-hero { background: radial-gradient(60% 70% at 50% 0%, rgba(130,152,197,.16), transparent 70%), #1a1e25; }
.hero-moons { top: 0 !important; }
/* ---- mirror (oval) frame ---- */
.mirror { position: relative; width: min(100%, 440px); aspect-ratio: 3 / 4; margin: 40px auto; }
.mirror-img { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; border: 1px solid rgba(130,152,197,.55); }
.mirror::before { content: ''; position: absolute; inset: -16px; border-radius: 50%; border: 1px solid rgba(130,152,197,.3); }
.mirror::after { content: ''; position: absolute; inset: -30px; border-radius: 50%; border: 1px dashed rgba(130,152,197,.18); }
.mirror .s-top { left: 50%; top: -40px; margin-left: -9px; } .mirror .s-bottom { left: 50%; bottom: -40px; margin-left: -9px; }
/* ---- list with diamond markers ---- */
.dia-list li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 1rem; }
.dia-list .diamond { margin-top: .55rem; }
/* ---- price row ---- */
.prices { position: relative; display: grid; grid-template-columns: 1fr; border: 1px solid rgba(130,152,197,.45); }
.prices::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(130,152,197,.15); pointer-events: none; }
@media (min-width: 768px) { .prices { grid-template-columns: repeat(3, 1fr); } .price + .price { border-left: 1px solid rgba(130,152,197,.25); } }
.price { position: relative; padding: 3rem 2rem 2.5rem; text-align: center; }
.price + .price { border-top: 1px solid rgba(130,152,197,.25); } @media (min-width: 768px) { .price + .price { border-top: 0; } }
.price-featured { background: radial-gradient(80% 60% at 50% 0%, rgba(130,152,197,.14), transparent 70%); }
.price-amount { font-family: 'Marcellus', serif; font-size: 3.5rem; line-height: 1; color: #f3f4f6; }
/* ---- moon windows for placeholders ---- */
.moon-window { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin: 24px auto; }
.moon-window > div { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.moon-window::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(130,152,197,.35); }
/* ---- gallery: odd grid of whole square photos (one large, one medium, seven small) ---- */
.mosaic-wrap { container-type: inline-size; }
.mosaic { --g: 14px; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: calc((100cqw - var(--g)) / 2); gap: var(--g); }
.mosaic .tile-1, .mosaic .tile-2, .mosaic .tile-3 { grid-column: span 2; grid-row: span 2; }
@media (min-width: 768px) {
  .mosaic { --g: 18px; grid-template-columns: repeat(6, 1fr); grid-auto-rows: calc((100cqw - 5 * var(--g)) / 6); }
  .mosaic .tile-1 { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .mosaic .tile-2 { grid-column: 3 / span 2; grid-row: 2 / span 2; }
  .mosaic .tile-3 { grid-column: 5 / span 2; grid-row: 1 / span 2; }
}
.mosaic .gallery-item { position: relative; overflow: hidden; border: 1px solid rgba(130,152,197,.3); cursor: pointer; }
.mosaic .gallery-item::after { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(130,152,197,.25); pointer-events: none; transition: border-color .25s ease; }
.mosaic .gallery-item:hover::after { border-color: rgba(130,152,197,.7); }
.mosaic .gallery-item img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001) rotate(.01deg); will-change: transform; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.mosaic .gallery-item:hover img { transform: scale(1.08) rotate(.01deg); }
/* ---- line icons ---- */
.line-icon { width: 92px; height: 92px; border-radius: 50%; border: 1px solid rgba(130,152,197,.5); display: flex; align-items: center; justify-content: center; position: relative; }
.line-icon::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed rgba(130,152,197,.2); }
/* ---- hire hero ---- */
.hire-hero .hero-veil { background: linear-gradient(90deg, rgba(26,30,37,.95) 0%, rgba(26,30,37,.6) 45%, rgba(26,30,37,0) 75%), linear-gradient(0deg, #1a1e25 0%, rgba(26,30,37,.6) 14%, transparent 34%), linear-gradient(180deg, rgba(26,30,37,.7) 0%, transparent 18%); }
.hire-hero { background-image: url('../img/bg_3s.jpg'); background-size: cover; background-position: 70% 30%; }
/* ---- form ---- */
.field { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(130,152,197,.4); color: #e5e7eb; padding: .75rem 0; font-size: 1rem; outline: none; }
.field:focus { border-bottom-color: #8298c5; }
.field option { background: #212630; color: #e5e7eb; }

/* keep decorative lines inside the screen on phones and tablets */
@media (max-width: 1023px) { .orn-horizon { left: -24px; right: -24px; } .portal, .sigil { margin-left: 26px; margin-right: 26px; } }
html, body { overflow-x: clip; }
@media (max-width: 1023px) { .portal { max-width: 440px; margin-left: auto; margin-right: auto; } .sigil { max-width: 520px; margin-left: auto; margin-right: auto; } }

/* Overlapping photo collage ("You won't dance alone") */
.scatter { position: relative; aspect-ratio: 1 / 1; }
.scatter-card { position: absolute; margin: 0; aspect-ratio: 1 / 1; padding: 6px; background: #1a1e27; border: 1px solid rgba(130,152,197,.45); box-shadow: 0 18px 40px -12px rgba(0,0,0,.75); transform: rotate(var(--r, 0deg)); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease; }
.scatter-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scatter-card:hover { z-index: 10 !important; transform: rotate(0deg) scale(1.06); box-shadow: 0 24px 50px -10px rgba(0,0,0,.85); }
