/* ===================================================
   Speech Spark — motion
   Subtle reveals, gentle hovers, no bouncing.
=================================================== */

.reveal {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-46px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(46px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* image settles from a soft zoom */
.image-reveal {
    overflow: hidden;
}

.image-reveal img {
    transform: scale(1.08);
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.image-reveal.active img {
    transform: scale(1);
}

/* staggered children */
.stagger > * {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger.active > * {
    opacity: 1;
    transform: translateY(0);
}

.stagger.active > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.active > *:nth-child(2) { transition-delay: 0.13s; }
.stagger.active > *:nth-child(3) { transition-delay: 0.21s; }
.stagger.active > *:nth-child(4) { transition-delay: 0.29s; }
.stagger.active > *:nth-child(5) { transition-delay: 0.37s; }
.stagger.active > *:nth-child(6) { transition-delay: 0.45s; }
.stagger.active > *:nth-child(7) { transition-delay: 0.53s; }
.stagger.active > *:nth-child(8) { transition-delay: 0.61s; }

/* hero photo drift on load */
@keyframes softRise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-left > * {
    animation: softRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-left > *:nth-child(1) { animation-delay: 0.05s; }
.hero-left > *:nth-child(2) { animation-delay: 0.15s; }
.hero-left > *:nth-child(3) { animation-delay: 0.25s; }
.hero-left > *:nth-child(4) { animation-delay: 0.35s; }
.hero-left > *:nth-child(5) { animation-delay: 0.45s; }

.hero-right {
    animation: softRise 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* mobile menu panel */
@media (max-width: 900px) {
    .nav-links {
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
    }
}

/* ==========================
   VOICE RINGS — motion in the empty space beside headings
   Concentric rings expand outward from a warm core, like a
   voice carrying across a room.
========================== */

.voice-rings {
    position: absolute;
    right: 5%;
    top: 50%;
    width: 360px;
    height: 360px;
    transform: translateY(-50%);
    pointer-events: none;
}

.voice-rings .ring {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 1px solid rgba(254, 244, 217, 0.32);
    opacity: 0;
    animation: ringExpand 5.5s ease-out infinite;
}

.voice-rings .ring:nth-child(2) { animation-delay: 1.1s; }
.voice-rings .ring:nth-child(3) { animation-delay: 2.2s; }
.voice-rings .ring:nth-child(4) { animation-delay: 3.3s; }

.voice-rings .core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ember);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 8px rgba(196, 122, 44, 0.22);
    animation: coreGlow 3s ease-in-out infinite;
}

.voice-rings .spark {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(254, 244, 217, 0.75);
    left: 50%;
    top: 50%;
}

.voice-rings .spark.s1 { animation: orbit1 9s linear infinite; }
.voice-rings .spark.s2 { animation: orbit2 13s linear infinite; width: 6px; height: 6px; background: rgba(196, 122, 44, 0.85); }
.voice-rings .spark.s3 { animation: orbit3 17s linear infinite; width: 5px; height: 5px; }

@keyframes ringExpand {
    0%   { transform: scale(0.18); opacity: 0; }
    12%  { opacity: 0.9; }
    100% { transform: scale(1); opacity: 0; }
}

@keyframes coreGlow {
    0%, 100% { box-shadow: 0 0 0 6px rgba(196, 122, 44, 0.18); }
    50%      { box-shadow: 0 0 0 12px rgba(196, 122, 44, 0.30); }
}

@keyframes orbit1 {
    from { transform: rotate(0deg) translateX(150px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}
@keyframes orbit2 {
    from { transform: rotate(120deg) translateX(105px) rotate(-120deg); }
    to   { transform: rotate(480deg) translateX(105px) rotate(-480deg); }
}
@keyframes orbit3 {
    from { transform: rotate(240deg) translateX(178px) rotate(-240deg); }
    to   { transform: rotate(600deg) translateX(178px) rotate(-600deg); }
}

/* drifting dots for large dark bands (statement / CTA) */
.band-motion {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.band-motion span {
    position: absolute;
    border-radius: 50%;
    background: rgba(254, 244, 217, 0.10);
    animation: drift 22s ease-in-out infinite;
}

.band-motion span:nth-child(1) { width: 120px; height: 120px; left: 8%;  top: 20%; }
.band-motion span:nth-child(2) { width: 60px;  height: 60px;  left: 78%; top: 30%; animation-delay: -4s; background: rgba(196, 122, 44, 0.16); }
.band-motion span:nth-child(3) { width: 180px; height: 180px; left: 62%; top: 55%; animation-delay: -9s; }
.band-motion span:nth-child(4) { width: 40px;  height: 40px;  left: 30%; top: 68%; animation-delay: -13s; background: rgba(196, 122, 44, 0.14); }

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    33%      { transform: translate(28px, -22px); }
    66%      { transform: translate(-20px, 18px); }
}

/* respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .slide-left,
    .slide-right,
    .stagger > * {
        opacity: 1;
        transform: none;
    }

    .image-reveal img {
        transform: none;
    }
}
