/* ========================================================
   CREATIVE SLIDESHOW MODAL ANIMATIONS FOR CV STORYTELLING
   ======================================================== */
.cv-slide {
    display: none;
    opacity: 0;
    transform: scale(0.96) translateY(10px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cv-slide.active-slide {
    display: flex;
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Slide 7: every word shakes except "dream" */
@keyframes shakeAnimation {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(-4px, 3px) rotate(-2deg); }
    40% { transform: translate(4px, -3px) rotate(2deg); }
    60% { transform: translate(-3px, -2px) rotate(-1deg); }
    80% { transform: translate(3px, 2px) rotate(1deg); }
}
.shake-word {
    display: inline-block;
    animation: shakeAnimation 0.3s infinite ease-in-out;
}
.dream-firm {
    display: inline-block;
    animation: none !important;
    transform: none !important;
    color: #E5B24D;
    text-shadow: 0 0 25px rgba(229, 178, 77, 0.8);
}

/* Slide 9: Turn situation */
@keyframes turnSituation {
    0%, 20% { transform: rotate(0deg); }
    70%, 100% { transform: rotate(360deg) scale(1.1); color: #E5B24D; }
}
.turned-situation {
    display: inline-block;
    animation: turnSituation 3s cubic-bezier(0.68, -0.6, 0.32, 1.6) infinite alternate;
}

/* Slide 10: push the limit 5 times to the right */
@keyframes pushLimit {
    0%, 100% { transform: translateX(0); }
    10%, 20% { transform: translateX(0.8vw); }
    30%, 40% { transform: translateX(1.6vw); }
    50%, 60% { transform: translateX(2.4vw); }
    70%, 80% { transform: translateX(3.2vw); }
    90% { transform: translateX(4vw); }
}
.push-limit-anim {
    display: inline-block;
    animation: pushLimit 4s infinite ease-in-out;
}

/* Slide 11: Fall and rise */
@keyframes fallDown {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    50%, 100% { transform: translateY(30px) rotate(-25deg); opacity: 0.3; color: #C84B31; }
}
@keyframes riseUp {
    0% { transform: translateY(30px); opacity: 0.3; }
    50%, 100% { transform: translateY(-10px); opacity: 1; color: #E5B24D; }
}
.fall-anim { display: inline-block; animation: fallDown 1.5s infinite alternate ease-in-out; }
.rise-anim { display: inline-block; animation: riseUp 1.5s infinite alternate ease-in-out; }

/* Slide 12 & 13: Unveil hope & light at bottom right */
@keyframes neonGlow {
    0%, 100% { text-shadow: 0 0 10px #E5B24D, 0 0 30px #E5B24D; color: #FFF; }
    50% { text-shadow: 0 0 25px #C84B31, 0 0 60px #C84B31; color: #E5B24D; }
}
.glowing-light {
    animation: neonGlow 2s infinite;
}

/* Slide 3: a cloud of the word "problems" (varied size, colour, form, position, direction) */
.chaotic-problem {
    position: absolute;
    white-space: nowrap;
    user-select: none;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
    max-width: 90vw;
}
.prob-float { animation-name: probFloat; }
.prob-left  { animation-name: probLeft; }
.prob-right { animation-name: probRight; }
.prob-up    { animation-name: probUp; }
.prob-down  { animation-name: probDown; }
.prob-spin  { animation-name: probSpin; animation-direction: normal; animation-timing-function: linear; }
.prob-zig   { animation-name: probZig; }

@keyframes probFloat {
    0%   { transform: scale(0.85) rotate(var(--rot)); opacity: 0.6; }
    100% { transform: scale(1.1) rotate(calc(var(--rot) + 30deg)); opacity: 1; }
}
@keyframes probLeft {
    0%   { transform: translateX(20px) rotate(var(--rot)); }
    100% { transform: translateX(-20px) rotate(calc(var(--rot) + 12deg)); }
}
@keyframes probRight {
    0%   { transform: translateX(-20px) rotate(var(--rot)); }
    100% { transform: translateX(20px) rotate(calc(var(--rot) - 12deg)); }
}
@keyframes probUp {
    0%   { transform: translateY(20px) rotate(var(--rot)); }
    100% { transform: translateY(-20px) rotate(calc(var(--rot) + 8deg)); }
}
@keyframes probDown {
    0%   { transform: translateY(-20px) rotate(var(--rot)); }
    100% { transform: translateY(20px) rotate(calc(var(--rot) - 8deg)); }
}
@keyframes probSpin {
    0%   { transform: rotate(var(--rot)); }
    100% { transform: rotate(calc(var(--rot) + 360deg)); }
}
@keyframes probZig {
    0%   { transform: translate(-15px, -12px) scale(0.85) rotate(var(--rot)); }
    50%  { transform: translate(12px, 15px) scale(1.1) rotate(calc(var(--rot) + 20deg)); }
    100% { transform: translate(-8px, 18px) scale(1) rotate(calc(var(--rot) - 15deg)); }
}
/* forms */
.prob-outline { color: transparent !important; -webkit-text-stroke: 1.5px #C84B31; }
.prob-pill    { padding: 0.1em 0.7em; border: 2px solid currentColor; border-radius: 999px; }
.prob-box     { padding: 0.1em 0.5em; border: 2px dashed currentColor; border-radius: 4px; }
.prob-strike  { text-decoration: line-through; text-decoration-thickness: 2px; }
.prob-under   { text-decoration: underline wavy; text-underline-offset: 5px; }
.prob-glow    { text-shadow: 0 0 14px currentColor; }

/* Slide 15: "up" sits higher, "down" sits lower */
@keyframes lookUp {
    0%, 100% { transform: translateY(-20px); }
    50% { transform: translateY(-35px); }
}
@keyframes lookDown {
    0%, 100% { transform: translateY(20px); }
    50% { transform: translateY(35px); }
}
.look-up { display: inline-block; animation: lookUp 2.4s infinite ease-in-out; }
.look-down { display: inline-block; animation: lookDown 2.4s infinite ease-in-out; }

/* Slide 16: goals keep expanding, gradually */
@keyframes goalsGrow {
    0% { transform: scale(0.8); }
    100% { transform: scale(1.4); }
}
@keyframes expandLetters {
    0% { letter-spacing: 0; }
    100% { letter-spacing: 0.2em; }
}
.goals-grow {
    display: inline-block;
    margin: 0 0.3em;
    animation: goalsGrow 5s infinite alternate ease-in-out;
}
.expanding-text {
    display: inline-block;
    animation: expandLetters 5s infinite alternate ease-in-out;
}

/* Slide 17: "people" pulls "me down" like an elastic, then it snaps back up */
@keyframes peopleDrag {
    0%, 10% { transform: translateY(0); }
    45% { transform: translateY(18px); }
    60%, 100% { transform: translateY(0); }
}
@keyframes elasticMeDown {
    0%, 10% { transform: translateY(0) scaleY(1); }
    45% { transform: translateY(40px) scaleY(1.25); }
    58% { transform: translateY(-15px) scaleY(0.85); }
    70% { transform: translateY(8px) scaleY(1.05); }
    82% { transform: translateY(-3px) scaleY(0.97); }
    92%, 100% { transform: translateY(0) scaleY(1); }
}
.people-drag {
    display: inline-block;
    animation: peopleDrag 3.2s infinite ease-in-out;
}
.me-down-elastic {
    display: inline-block;
    transform-origin: top center;
    animation: elasticMeDown 3.2s infinite ease-in-out;
}

/* Slide 18: every word breaks apart except "focus" */
.break-word {
    position: relative;
    display: inline-block;
    color: transparent;
}
.break-word::before,
.break-word::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
    white-space: nowrap;
}
.break-word::before {
    clip-path: polygon(0 0, 100% 0, 100% 48%, 70% 56%, 45% 44%, 20% 55%, 0 47%);
    animation: breakTop 2.4s infinite ease-in-out;
    animation-delay: inherit;
}
.break-word::after {
    clip-path: polygon(0 47%, 20% 55%, 45% 44%, 70% 56%, 100% 48%, 100% 100%, 0 100%);
    animation: breakBottom 2.4s infinite ease-in-out;
    animation-delay: inherit;
}
@keyframes breakTop {
    0%, 25% { transform: translate(0, 0) rotate(0deg); }
    50%, 80% { transform: translate(-6px, -12px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes breakBottom {
    0%, 25% { transform: translate(0, 0) rotate(0deg); }
    50%, 80% { transform: translate(6px, 14px) rotate(5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
.focus-firm {
    display: inline-block;
    color: #E5B24D;
    text-shadow: 0 0 25px rgba(229, 178, 77, 0.8);
    animation: none !important;
    transform: none !important;
}

/* Slide 19: "to get there" drifts apart, "together" stays very united */
@keyframes spreadApart {
    0% { letter-spacing: 0.05em; word-spacing: 0.1em; }
    100% { letter-spacing: 0.25em; word-spacing: 0.6em; }
}
.apart-text {
    display: inline-block;
    animation: spreadApart 3s infinite alternate ease-in-out;
}
@keyframes uniteTogether {
    0% { letter-spacing: 0.25em; text-shadow: none; }
    45%, 100% { letter-spacing: -0.03em; text-shadow: 0 0 22px rgba(200, 75, 49, 0.9); }
}
.united-text {
    display: inline-block;
    text-decoration: underline;
    text-decoration-color: #E5B24D;
    text-underline-offset: 6px;
    animation: uniteTogether 3s infinite alternate ease-in-out;
}

/* Fix errors: misspelled -> corrected */
.err-word {
    display: inline-block;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}
.err-bad {
    color: #C84B31;
    text-decoration: underline wavy #C84B31;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}
.err-good {
    color: #E5B24D;
    text-decoration: none;
    text-shadow: 0 0 25px rgba(229, 178, 77, 0.8);
}
@keyframes errPop {
    0% { transform: scale(1.15) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); }
}
.err-pop { animation: errPop 0.35s ease-out; }
.err-check {
    display: inline-block;
    margin-left: 0.3em;
    color: #E5B24D;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.err-check.show { opacity: 1; transform: scale(1); }

/* Negativity -> positivity: letters swapped one by one */
.posneg-word { display: flex; justify-content: center; flex-wrap: wrap; }
.pos-letter {
    display: inline-block;
    color: #C84B31;
    transition: color 0.6s ease, text-shadow 0.6s ease;
}
@keyframes letterOut {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(30px) rotate(25deg); opacity: 0; }
}
@keyframes letterIn {
    0% { transform: translateY(-30px) scale(0.6); opacity: 0; }
    70% { transform: translateY(4px) scale(1.15); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
.pos-out { animation: letterOut 0.45s ease-in forwards; }
.pos-new { color: #E5B24D; animation: letterIn 0.6s ease-out forwards; }
.pos-done .pos-letter {
    color: #E5B24D;
    text-shadow: 0 0 22px rgba(229, 178, 77, 0.7);
}

/* Married slide: staged reveal, heartbeat, rising hearts */
.hearts-rain {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
@keyframes riseHeart {
    0% { transform: translateY(0) scale(0.6) rotate(-10deg); opacity: 0; }
    15% { opacity: 0.9; }
    100% { transform: translateY(-70vh) scale(1.1) rotate(15deg); opacity: 0; }
}
.rain-heart {
    position: absolute;
    bottom: -40px;
    opacity: 0;
    animation: riseHeart 4.5s infinite ease-out;
}
@keyframes lineUp {
    0% { opacity: 0; transform: translateY(18px); }
    100% { opacity: 1; transform: translateY(0); }
}
.married-line {
    opacity: 0;
    animation: lineUp 1s ease-out forwards;
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.1); }
    30% { transform: scale(1); }
    45% { transform: scale(1.06); }
}
.married-wrap {
    position: relative;
    display: inline-block;
    padding: 0 0.2em;
}
@keyframes ringSparkle {
    0%, 100% { transform: scale(0.8) rotate(-12deg); opacity: 0.4; }
    50% { transform: scale(1.3) rotate(12deg); opacity: 1; }
}
.ring-sparkle {
    position: absolute;
    top: -0.5em;
    right: -0.9em;
    font-size: 0.4em;
    animation: ringSparkle 1.8s infinite ease-in-out;
}
@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.shimmer-text {
    background: linear-gradient(90deg, #fff, #E5B24D, #F4A6B8, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: lineUp 1s ease-out forwards, shimmer 3s linear infinite;
}

/* Leap of faith */
.leap-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 0.3em 0.4em;
}
.leap-word, .leap-faith { display: inline-block; }
.leap-faith {
    color: #E5B24D;
    text-shadow: 0 0 25px rgba(229, 178, 77, 0.8);
    letter-spacing: 0.06em;
}

/* Friends: "friends" and "me" step together like two feet */
.walk-stage { width: 100%; max-width: 32rem; margin: 0 auto; padding-top: 1.5rem; }
.walk-feet {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
}
.foot {
    display: inline-block;
    animation: footStep 1.2s infinite linear;
}
.foot-b { animation-delay: -0.6s; }
@keyframes footStep {
    0%   { transform: translate(-10px, 0) rotate(0deg); }
    12%  { transform: translate(-4px, -10px) rotate(-8deg); }
    25%  { transform: translate(0, -18px) rotate(-4deg); }
    38%  { transform: translate(6px, -10px) rotate(4deg); }
    50%  { transform: translate(10px, 0) rotate(0deg); }
    100% { transform: translate(-10px, 0) rotate(0deg); }
}
.walk-ground {
    margin-top: 0.6rem;
    height: 3px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0 16px, transparent 16px 36px);
    animation: groundMove 0.9s linear infinite;
}
@keyframes groundMove {
    0%   { background-position-x: 0; }
    100% { background-position-x: -36px; }
}

/* Time runs around crazily, memories barely move */
.time-arena {
    position: relative;
    width: 100%;
    height: clamp(8rem, 20vh, 11rem);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.time-runner {
    position: absolute;
    font-size: clamp(1.1rem, 4vw, 1.6rem);
    white-space: nowrap;
    animation: timeRun 3.2s infinite ease-in-out both;
}
.time-ghost-1 { opacity: 0.45; filter: blur(1px); animation-delay: 0.1s; }
.time-ghost-2 { opacity: 0.22; filter: blur(2px); animation-delay: 0.2s; }
@keyframes timeRun {
    0%   { left: 4%;  top: 4%;  transform: rotate(0deg) scale(1); }
    12%  { left: 60%; top: 55%; transform: rotate(40deg) scale(0.7); }
    25%  { left: 15%; top: 65%; transform: rotate(-30deg) scale(1.2); }
    38%  { left: 65%; top: 2%;  transform: rotate(90deg) scale(0.9); }
    52%  { left: 35%; top: 65%; transform: rotate(-60deg) scale(1.1); }
    66%  { left: 2%;  top: 30%; transform: rotate(20deg) scale(0.8); }
    80%  { left: 60%; top: 25%; transform: rotate(180deg) scale(1.3); }
    92%  { left: 25%; top: 2%;  transform: rotate(-20deg) scale(1); }
    100% { left: 4%;  top: 4%;  transform: rotate(0deg) scale(1); }
}
.memories-drift {
    display: inline-block;
    text-shadow: 0 0 14px rgba(229, 178, 77, 0.45);
    animation: memoriesDrift 9s ease-in-out infinite alternate;
}
@keyframes memoriesDrift {
    0%   { transform: translate(0, 0);       opacity: 0.85; }
    50%  { transform: translate(2px, -2px);  opacity: 1; }
    100% { transform: translate(-1px, 1.5px); opacity: 0.9; }
}

/* Slide 2: HAITI — flag unfurls, letters wave, pin drops */
.haiti-from { opacity: 0; animation: lineUp 0.9s ease-out 0.2s forwards; }
.haiti-wrap { position: relative; display: inline-block; }
.haiti-flag {
    position: relative;
    display: inline-flex;
    padding: 0.12em 0.4em;
    border-radius: 0.35em;
    overflow: hidden;
    background: linear-gradient(180deg, #00209F 0 50%, #D21034 50% 100%);
    box-shadow: 0 18px 45px rgba(0, 32, 159, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.25);
    transform-origin: left center;
    animation: flagUnfurl 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s backwards,
               flagWave 3.2s ease-in-out 1.6s infinite;
}
@keyframes flagUnfurl {
    0%   { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}
@keyframes flagWave {
    0%, 100% { transform: skewY(0deg) rotate(0deg); }
    25%      { transform: skewY(-2.5deg) rotate(-0.8deg); }
    75%      { transform: skewY(2.5deg) rotate(0.8deg); }
}
.haiti-letter {
    display: inline-block;
    color: #fff;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: letterPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards,
               letterWave 1.6s ease-in-out infinite;
    animation-delay: calc(0.9s + var(--i) * 0.12s), calc(1.6s + var(--i) * 0.14s);
}
@keyframes letterPop {
    0%   { opacity: 0; transform: scale(0.2) rotate(-20deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes letterWave {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -0.12em; }
}
.haiti-sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%);
    transform: translateX(-130%);
    animation: haitiSheen 3.2s ease-in-out 1.8s infinite;
    pointer-events: none;
}
@keyframes haitiSheen {
    0%   { transform: translateX(-130%); }
    55%, 100% { transform: translateX(130%); }
}
.haiti-pin {
    position: absolute;
    left: 50%;
    top: -0.95em;
    margin-left: -0.35em;
    font-size: 0.7em;
    color: #E5B24D;
    filter: drop-shadow(0 6px 10px rgba(229, 178, 77, 0.6));
    animation: pinDrop 1s cubic-bezier(0.34, 1.56, 0.64, 1) 1.9s backwards;
    z-index: 3;
}
@keyframes pinDrop {
    0%   { opacity: 0; transform: translateY(-80px) scale(0.6, 1.4); }
    60%  { opacity: 1; transform: translateY(6px) scale(1.2, 0.8); }
    100% { opacity: 1; transform: translateY(0) scale(1, 1); }
}
.haiti-ripple {
    position: absolute;
    left: 50%;
    top: -0.1em;
    width: 1.4em;
    height: 0.5em;
    margin-left: -0.7em;
    border: 2px solid #E5B24D;
    border-radius: 50%;
    opacity: 0;
    animation: haitiRipple 2.4s ease-out 2.7s infinite;
    z-index: 2;
}
.haiti-ripple.r2 { animation-delay: 3.5s; }
@keyframes haitiRipple {
    0%   { transform: scale(0.3); opacity: 0.9; }
    100% { transform: scale(3); opacity: 0; }
}

/* Slide 14: HOPE — a sun rises, rays spin, letters ignite */
.hope-intro { animation: lineUp 1s ease-out 0.1s backwards; }
.hope-stage {
    position: relative;
    width: 100%;
    min-height: clamp(8rem, 20vh, 10rem);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hope-sun {
    position: absolute;
    left: 50%;
    bottom: -45%;
    width: clamp(10rem, 40vw, 18rem);
    height: clamp(10rem, 40vw, 18rem);
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 220, 130, 0.95) 0%, rgba(229, 178, 77, 0.4) 40%, transparent 70%);
    animation: sunRise 3.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
}
@keyframes sunRise {
    0%   { transform: translateX(-50%) translateY(110%) scale(0.4); opacity: 0; }
    100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}
.hope-rays {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(16rem, 70vw, 26rem);
    height: clamp(16rem, 70vw, 26rem);
    transform: translate(-50%, -50%);
    animation: raysIn 3s ease-out 1s backwards;
    pointer-events: none;
}
.hope-rays-inner {
    width: 100%;
    height: 100%;
    background: repeating-conic-gradient(from 0deg, rgba(229, 178, 77, 0.4) 0deg 5deg, transparent 5deg 16deg);
    -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 68%);
    mask-image: radial-gradient(circle, #000 15%, transparent 68%);
    animation: raysSpin 40s linear infinite;
}
@keyframes raysIn {
    0%   { transform: translate(-50%, -50%) scale(0.1); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@keyframes raysSpin {
    to { transform: rotate(360deg); }
}
.hope-word { position: relative; z-index: 2; display: flex; }
.hope-letter {
    display: inline-block;
    color: #E5B24D;
    animation: hopeIgnite 1.4s cubic-bezier(0.16, 1, 0.3, 1) backwards,
               hopeGlow 2.4s ease-in-out infinite alternate;
    animation-delay: calc(1.5s + var(--i) * 0.45s), calc(1.5s + var(--i) * 0.45s + 1.4s);
}
@keyframes hopeIgnite {
    0%   { opacity: 0; transform: translateY(50px) scale(0.5); filter: blur(14px); color: #3b2a4a; text-shadow: none; }
    60%  { opacity: 1; transform: translateY(-10px) scale(1.18); filter: blur(0); color: #fff; text-shadow: 0 0 40px #fff; }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); color: #E5B24D; text-shadow: 0 0 25px rgba(229, 178, 77, 0.9); }
}
@keyframes hopeGlow {
    0%   { text-shadow: 0 0 18px rgba(229, 178, 77, 0.6); }
    100% { text-shadow: 0 0 45px rgba(255, 214, 120, 1), 0 0 90px rgba(229, 178, 77, 0.6); }
}

/* Family: the sentence is an inclined hill */
.hill-stage {
    width: 100%;
    padding: clamp(2rem, 8vw, 4.5rem) 0 2rem;
    display: flex;
    justify-content: center;
    overflow: hidden;
}
.hill-slope {
    position: relative;
    display: inline-block;
    transform: rotate(-8deg);
    transform-origin: center;
}
.hill-row {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: 0.25em;
    white-space: nowrap;
}
.hill-w { display: inline-block; }
.hill-family { text-shadow: 0 0 20px rgba(229, 178, 77, 0.5); }
.hill-me-slot { visibility: hidden; }
.hill-ground {
    height: 6px;
    margin-top: 0.3rem;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(229, 178, 77, 0.1), #E5B24D, rgba(200, 75, 49, 0.9));
    box-shadow: 0 0 18px rgba(229, 178, 77, 0.5);
}
.hill-climber {
    position: absolute;
    left: 0;
    bottom: 100%;
    margin-bottom: 0.15em;
    animation: hillClimb 12s cubic-bezier(0.45, 0, 0.55, 1) infinite both;
}
.hill-climber-step {
    display: inline-block;
    text-shadow: 0 0 18px rgba(200, 75, 49, 0.7);
    animation: hillStep 0.9s ease-in-out infinite;
}
@keyframes hillClimb {
    0%, 4%   { left: 0%;   transform: translateX(0%);    opacity: 0; }
    9%       { left: 0%;   transform: translateX(0%);    opacity: 1; }
    88%      { left: 100%; transform: translateX(-100%); opacity: 1; }
    93%      { left: 100%; transform: translateX(-100%); opacity: 1; filter: drop-shadow(0 0 14px #E5B24D); }
    98%      { left: 100%; transform: translateX(-100%); opacity: 1; filter: drop-shadow(0 0 14px #E5B24D); }
    100%     { left: 100%; transform: translateX(-100%); opacity: 0; }
}
@keyframes hillStep {
    0%, 100% { translate: 0 0; rotate: -3deg; }
    50%      { translate: 0 -0.22em; rotate: 3deg; }
}

/* World: a globe spins up, letters burst out */
.world-stars { position: absolute; inset: 0; pointer-events: none; }
.world-star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    animation: starTwinkle 2.6s ease-in-out infinite;
}
@keyframes starTwinkle {
    0%, 100% { opacity: 0.05; transform: scale(0.6); }
    50%      { opacity: 0.9; transform: scale(1.4); }
}
.world-stage {
    position: relative;
    width: 100%;
    max-width: 34rem;
    min-height: clamp(11rem, 25vh, 15rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    overflow: hidden;
}
.world-globe {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(11rem, 45vw, 17rem);
    height: clamp(11rem, 45vw, 17rem);
    transform: translate(-50%, -50%);
    opacity: 0.55;
    animation: globeIn 2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes globeIn {
    0%   { transform: translate(-50%, -50%) scale(0.1) rotate(-200deg); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.55; }
}
.globe-lines .gm {
    transform-box: fill-box;
    transform-origin: center;
    animation: meridianSpin 8s linear infinite;
}
@keyframes meridianSpin {
    0%    { transform: scaleX(1); }
    12.5% { transform: scaleX(0.92); }
    25%   { transform: scaleX(0.71); }
    37.5% { transform: scaleX(0.38); }
    50%   { transform: scaleX(0); }
    62.5% { transform: scaleX(0.38); }
    75%   { transform: scaleX(0.71); }
    87.5% { transform: scaleX(0.92); }
    100%  { transform: scaleX(1); }
}
.world-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(14rem, 60vw, 22rem);
    height: clamp(5rem, 20vw, 7rem);
    transform: translate(-50%, -50%) rotate(-18deg);
    border: 1.5px dashed rgba(229, 178, 77, 0.4);
    border-radius: 50%;
    animation: orbitIn 1.2s ease-out 1.8s backwards;
    pointer-events: none;
}
@keyframes orbitIn { 0% { opacity: 0; } 100% { opacity: 1; } }
.world-plane {
    position: absolute;
    font-size: clamp(1.1rem, 4vw, 1.6rem);
    animation: planeOrbit 9s linear infinite;
}
@keyframes planeOrbit {
    0.00% { left: 100.0%; top: 50.0%; transform: translate(-50%, -50%) rotate(135deg); }
    4.17% { left: 98.3%; top: 62.9%; transform: translate(-50%, -50%) rotate(150deg); }
    8.33% { left: 93.3%; top: 75.0%; transform: translate(-50%, -50%) rotate(165deg); }
    12.50% { left: 85.4%; top: 85.4%; transform: translate(-50%, -50%) rotate(180deg); }
    16.67% { left: 75.0%; top: 93.3%; transform: translate(-50%, -50%) rotate(195deg); }
    20.83% { left: 62.9%; top: 98.3%; transform: translate(-50%, -50%) rotate(210deg); }
    25.00% { left: 50.0%; top: 100.0%; transform: translate(-50%, -50%) rotate(225deg); }
    29.17% { left: 37.1%; top: 98.3%; transform: translate(-50%, -50%) rotate(-120deg); }
    33.33% { left: 25.0%; top: 93.3%; transform: translate(-50%, -50%) rotate(-105deg); }
    37.50% { left: 14.6%; top: 85.4%; transform: translate(-50%, -50%) rotate(-90deg); }
    41.67% { left: 6.7%; top: 75.0%; transform: translate(-50%, -50%) rotate(-75deg); }
    45.83% { left: 1.7%; top: 62.9%; transform: translate(-50%, -50%) rotate(-60deg); }
    50.00% { left: 0.0%; top: 50.0%; transform: translate(-50%, -50%) rotate(-45deg); }
    54.17% { left: 1.7%; top: 37.1%; transform: translate(-50%, -50%) rotate(-30deg); }
    58.33% { left: 6.7%; top: 25.0%; transform: translate(-50%, -50%) rotate(-15deg); }
    62.50% { left: 14.6%; top: 14.6%; transform: translate(-50%, -50%) rotate(-0deg); }
    66.67% { left: 25.0%; top: 6.7%; transform: translate(-50%, -50%) rotate(15deg); }
    70.83% { left: 37.1%; top: 1.7%; transform: translate(-50%, -50%) rotate(30deg); }
    75.00% { left: 50.0%; top: 0.0%; transform: translate(-50%, -50%) rotate(45deg); }
    79.17% { left: 62.9%; top: 1.7%; transform: translate(-50%, -50%) rotate(60deg); }
    83.33% { left: 75.0%; top: 6.7%; transform: translate(-50%, -50%) rotate(75deg); }
    87.50% { left: 85.4%; top: 14.6%; transform: translate(-50%, -50%) rotate(90deg); }
    91.67% { left: 93.3%; top: 25.0%; transform: translate(-50%, -50%) rotate(105deg); }
    95.83% { left: 98.3%; top: 37.1%; transform: translate(-50%, -50%) rotate(120deg); }
    100.00% { left: 100.0%; top: 50.0%; transform: translate(-50%, -50%) rotate(135deg); }
}

.world-intro { opacity: 0; animation: lineUp 1s ease-out 0.4s forwards; }
.world-word { display: flex; justify-content: center; }
.world-letter {
    display: inline-block;
    color: #E5B24D;
    animation: worldFromCore 1.5s cubic-bezier(0.2, 0.9, 0.2, 1) backwards,
               worldGlow 2.6s ease-in-out infinite alternate;
    animation-delay: calc(1.9s + var(--i) * 0.3s), calc(1.9s + var(--i) * 0.3s + 1.5s);
}
@keyframes worldFromCore {
    0%   { opacity: 0; transform: translateX(calc((2 - var(--i)) * 0.5em)) scale(0.1) rotate(-120deg); filter: blur(14px); }
    65%  { opacity: 1; transform: translateX(0) scale(1.25) rotate(8deg); filter: blur(0); color: #fff; }
    100% { opacity: 1; transform: translateX(0) scale(1) rotate(0deg); filter: blur(0); color: #E5B24D; }
}
@keyframes worldGlow {
    0%   { text-shadow: 0 0 16px rgba(229, 178, 77, 0.5); }
    100% { text-shadow: 0 0 40px rgba(229, 178, 77, 1), 0 0 80px rgba(229, 178, 77, 0.5); }
}

/* BLESSINGS piling up */
.bless-stage {
    position: relative;
    width: 100%;
    max-width: 30rem;
    height: clamp(12rem, 30vh, 18rem);
    margin: 0 auto;
    overflow: hidden;
}
.bless-magnet {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 4rem;
    height: 3.4rem;
    margin-left: -2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
.bless-m { font-size: clamp(1.8rem, 5vw, 2.6rem); position: relative; z-index: 2; }
.bless-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4rem;
    height: 4rem;
    margin: -2rem 0 0 -2rem;
    border: 2px solid rgba(229, 178, 77, 0.7);
    border-radius: 50%;
    opacity: 0;
    animation: magnetPull 2s ease-in infinite;
}
.bless-ring.r2 { animation-delay: 1s; }
@keyframes magnetPull {
    0%   { transform: scale(4); opacity: 0; }
    40%  { opacity: 0.55; }
    100% { transform: scale(0.6); opacity: 0; }
}
.bless-word {
    position: absolute;
    left: 50%;
    white-space: nowrap;
    font-family: "Syne", sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
    opacity: 0;
    z-index: 2;
}

/* Slide 1: ROBENSY */
.name-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    overflow: hidden;
}
.name-halo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(12rem, 45vw, 17rem);
    height: clamp(12rem, 45vw, 17rem);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 62%, rgba(229, 178, 77, 0.55) 82%, transparent 100%);
    -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 66%, transparent 67%);
    mask: radial-gradient(circle, transparent 62%, #000 63%, #000 66%, transparent 67%);
    animation: haloIn 1.6s ease-out 1.4s backwards, haloSpin 7s linear infinite;
}
.name-halo.h2 {
    width: clamp(9rem, 35vw, 13rem);
    height: clamp(9rem, 35vw, 13rem);
    background: conic-gradient(from 180deg, transparent 0 62%, rgba(200, 75, 49, 0.6) 82%, transparent 100%);
    animation: haloIn 1.6s ease-out 1.6s backwards, haloSpin 5s linear infinite reverse;
}
@keyframes haloIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes haloSpin { to { transform: rotate(360deg); } }
.name-iam { animation: lineUp 1s ease-out 0.1s backwards; }
.name-word { gap: 0.02em; }
.name-letter {
    display: inline-block;
    color: #E5B24D;
    animation: gatherIn 1.3s cubic-bezier(0.2, 0.9, 0.2, 1) backwards,
               nameWave 2.6s ease-in-out infinite;
    animation-delay: calc(0.6s + var(--i) * 0.14s), calc(2.4s + var(--i) * 0.2s);
}
@keyframes gatherIn {
    0%   { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.2); filter: blur(12px); }
    70%  { opacity: 1; transform: translate(0, 0) rotate(8deg) scale(1.3); filter: blur(0); color: #fff; }
    100% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); filter: blur(0); color: #E5B24D; }
}
@keyframes nameWave {
    0%, 100% { translate: 0 0; text-shadow: 0 0 14px rgba(229, 178, 77, 0.45); }
    50%      { translate: 0 -0.07em; text-shadow: 0 0 40px rgba(255, 214, 120, 1), 0 0 70px rgba(229, 178, 77, 0.6); }
}
.name-underline {
    display: block;
    height: 4px;
    width: min(72%, 24rem);
    margin: 0.7rem auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, transparent, #C84B31, #E5B24D, #C84B31, transparent);
    transform: scaleX(0);
    animation: underlineDraw 1.3s cubic-bezier(0.2, 0.9, 0.2, 1) 2.3s forwards;
}
@keyframes underlineDraw { to { transform: scaleX(1); } }

/* Slide 4: "little" shrinks, the tiny "boy" hops */
.lt-word { display: inline-flex; align-items: baseline; }
.lt-l {
    display: inline-block;
    animation: shrinkWave 4.2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.16s);
}
@keyframes shrinkWave {
    0%, 12%, 100% { font-size: 1em; color: #fff; }
    38%, 62%      { font-size: 0.38em; color: #E5B24D; }
}
.boy-wrap {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: 0.25em;
    margin-left: 0.25em;
    padding-bottom: 0.2em;
}
.boy-word {
    display: inline-block;
    font-size: 0.34em;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.04em;
    opacity: 0.85;
    animation: boyHop 1.4s cubic-bezier(0.3, 0.6, 0.4, 1) 0.12s infinite;
    transform-origin: bottom center;
}
@keyframes boyHop {
    0%, 100% { transform: translateY(0) scale(1.1, 0.85); }
    15%      { transform: translateY(0) scale(0.92, 1.12); }
    50%      { transform: translateY(-1.1em) scale(1, 1); }
    85%      { transform: translateY(0) scale(1, 1); }
}
.boy-shadow {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0.1em;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    filter: blur(2px);
    animation: boyShadow 1.4s ease-in-out infinite;
}
@keyframes boyShadow {
    0%, 100% { transform: scaleX(1); opacity: 0.6; }
    50%      { transform: scaleX(0.55); opacity: 0.2; }
}
.dots-seq span { display: inline-block; animation: dotBlink 1.4s infinite; opacity: 0.2; }
.dots-seq span:nth-child(2) { animation-delay: 0.25s; }
.dots-seq span:nth-child(3) { animation-delay: 0.5s; }
@keyframes dotBlink { 0%, 60%, 100% { opacity: 0.2; } 30% { opacity: 1; } }

/* Slide 5: VISION — viewfinder hunts, then locks focus */
.vf-intro { animation: lineUp 0.9s ease-out 0.1s backwards; }
.vf-stage {
    position: relative;
    display: inline-block;
    padding: clamp(1rem, 4vw, 1.8rem) clamp(1.2rem, 5vw, 2.6rem);
}
.vf-corner {
    position: absolute;
    width: clamp(16px, 4vw, 26px);
    height: clamp(16px, 4vw, 26px);
    border: 0 solid #E5B24D;
    animation: vfCorner 3s cubic-bezier(0.2, 0.9, 0.2, 1) 0.5s backwards, vfBlink 0.5s steps(2) 3.4s 2;
}
.vf-corner.tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; }
.vf-corner.tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; }
.vf-corner.bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; }
.vf-corner.br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; }
@keyframes vfCorner {
    0%   { opacity: 0; transform: translate(var(--tx), var(--ty)); }
    30%  { opacity: 1; }
    55%  { transform: translate(calc(var(--tx) * 0.5), calc(var(--ty) * 0.5)); }
    70%  { transform: translate(calc(var(--tx) * 0.75), calc(var(--ty) * 0.75)); }
    100% { opacity: 1; transform: translate(0, 0); }
}
@keyframes vfBlink { 0%, 100% { border-color: #E5B24D; } 50% { border-color: #39ff88; } }
.vf-word {
    letter-spacing: 0.06em;
    animation: vfFocus 3.4s ease-out 0.4s backwards, vfGlow 2.6s ease-in-out 3.8s infinite alternate;
}
@keyframes vfFocus {
    0%   { filter: blur(24px); opacity: 0.2; letter-spacing: 0.25em; transform: scale(1.15); }
    22%  { filter: blur(9px);  opacity: 0.6; }
    38%  { filter: blur(18px); opacity: 0.5; }
    55%  { filter: blur(5px);  opacity: 0.8; letter-spacing: 0.15em; transform: scale(1.05); }
    70%  { filter: blur(11px); opacity: 0.8; }
    88%  { filter: blur(0);    opacity: 1; letter-spacing: 0.08em; transform: scale(1.02); }
    100% { filter: blur(0);    opacity: 1; letter-spacing: 0.06em; transform: scale(1); }
}
@keyframes vfGlow {
    0%   { text-shadow: 0 0 14px rgba(229, 178, 77, 0.5); }
    100% { text-shadow: 0 0 40px rgba(255, 214, 120, 1), 0 0 80px rgba(229, 178, 77, 0.5); }
}
.vf-scan {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #E5B24D, transparent);
    box-shadow: 0 0 14px #E5B24D;
    opacity: 0;
    animation: vfScan 2.4s ease-in-out 3.8s infinite;
}
@keyframes vfScan {
    0%   { top: 10%; opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { top: 90%; opacity: 0; }
}

/* Slide 16: everything blurs, only "ideas" stays sharp */
.blur-word {
    display: inline-block;
    animation: blurOut 2.2s ease-in-out forwards;
    animation-delay: calc(1.8s + var(--i) * 0.45s);
}
@keyframes blurOut {
    0%   { filter: blur(0); opacity: 1; }
    100% { filter: blur(7px); opacity: 0.45; }
}
.ideas-focus { animation: ideasFocus 1.4s ease-out 3.6s both; }
@keyframes ideasFocus {
    0%   { transform: scale(1); box-shadow: 0 0 0 rgba(229, 178, 77, 0); }
    50%  { transform: scale(1.12); box-shadow: 0 0 40px rgba(229, 178, 77, 0.7); }
    100% { transform: scale(1.05); box-shadow: 0 0 24px rgba(229, 178, 77, 0.45); }
}

/* WAYS open */
.ways-stage {
    position: relative;
    width: 100%;
    height: clamp(10rem, 25vh, 15rem);
    overflow: hidden;
}
.way-lvl {
    position: absolute;
    z-index: 2;
    translate: -50% -50%;
    display: inline-block;
    font-family: "Syne", sans-serif;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
}
.way-ghost { visibility: hidden; }
.way-half { position: absolute; inset: 0; }
.way-l { clip-path: inset(-10% 50% -10% -10%); }
.way-r { clip-path: inset(-10% -10% -10% 50%); }
.way-flare {
    position: absolute;
    z-index: 1;
    translate: -50% -50%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 230, 160, 0.9) 0%, rgba(229, 178, 77, 0.35) 45%, transparent 70%);
    opacity: 0;
    pointer-events: none;
}
.way-spark {
    position: absolute;
    z-index: 3;
    translate: -50% -50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 14px 6px #E5B24D, 0 0 40px 14px rgba(229, 178, 77, 0.6);
    pointer-events: none;
}

/* Slide 27: five little scenes */
.met-title { transition: opacity 1.5s ease; }
.god-on .met-title { opacity: 0.45; }
.met-stage {
    position: relative;
    width: 100%;
    min-height: clamp(11rem, 25vh, 15rem);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.met-scene {
    display: none;
    grid-area: 1 / 1;
    width: 100%;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: clamp(11rem, 25vh, 15rem);
}
.met-scene.on { display: flex; animation: sceneIn 0.7s ease-out both; }
@keyframes sceneIn { 0% { opacity: 0; transform: scale(0.94); } 100% { opacity: 1; transform: scale(1); } }

/* music: letters are notes on a staff */
.staff-wrap { position: relative; width: min(100%, 24rem); height: 12rem; display: flex; align-items: center; justify-content: center; }
.staff {
    position: relative;
    width: 100%;
    height: 72px;
    background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 0 2px, transparent 2px 18px);
    background-size: 100% 74px;
    background-repeat: no-repeat;
}
.staff-clef { position: absolute; left: 0; top: -14px; font-size: clamp(2rem, 6vw, 3rem); line-height: 1; }
.staff-note {
    position: absolute;
    width: clamp(28px, 6vw, 38px);
    height: clamp(28px, 6vw, 38px);
    margin-left: calc(clamp(28px, 6vw, 38px) / -2);
    border-radius: 50%;
    background: #21132C;
    border: 2px solid #E5B24D;
    color: #E5B24D;
    font-family: "Syne", sans-serif;
    font-weight: 900;
    font-size: clamp(0.9rem, 3vw, 1.3rem);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: notePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards, notePulse 3.2s linear infinite;
}
.staff-note::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 35px;
    background: #E5B24D;
}
.staff-note.stem-up::after { right: -2px; bottom: 50%; }
.staff-note.stem-down::after { left: -2px; top: 50%; }
@keyframes notePop { 0% { opacity: 0; transform: scale(0) rotate(-40deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes notePulse {
    0%, 100% { background: #21132C; color: #E5B24D; box-shadow: none; }
    4%, 12%  { background: #E5B24D; color: #21132C; box-shadow: 0 0 26px rgba(229, 178, 77, 0.95); transform: scale(1.18); }
    24%      { background: #21132C; color: #E5B24D; box-shadow: none; transform: scale(1); }
}
.staff-playhead {
    position: absolute;
    top: -26px;
    bottom: -26px;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #C84B31, transparent);
    box-shadow: 0 0 12px #C84B31;
    animation: playhead 3.2s linear infinite;
}
@keyframes playhead { 0% { left: 8%; } 100% { left: 96%; } }
.float-note {
    position: absolute;
    bottom: 10%;
    font-size: 1.6rem;
    color: #F4A6B8;
    opacity: 0;
    animation: floatNote 3.4s ease-out infinite;
}
@keyframes floatNote {
    0%   { transform: translateY(0) rotate(-10deg); opacity: 0; }
    20%  { opacity: 0.9; }
    100% { transform: translateY(-7rem) rotate(18deg); opacity: 0; }
}

/* football */
.fb-word { display: flex; align-items: center; justify-content: center; }
.fb-l { display: inline-block; animation: fbLetter 1.8s ease-in-out infinite; animation-delay: calc(var(--i) * 0.12s); }
@keyframes fbLetter { 0%, 70%, 100% { translate: 0 0; } 82% { translate: 0 -0.18em; } }
.fb-ball {
    display: inline-block;
    font-size: 0.8em;
    margin: 0 0.02em;
    animation: fbLetter 1.8s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.12s);
}
@keyframes ballSpin { to { rotate: 360deg; } }

/* computer */
.mx-rain { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.mx-col {
    position: absolute;
    top: 0;
    font-family: "Courier New", monospace;
    font-size: 12px;
    line-height: 1.15;
    white-space: pre;
    color: rgba(0, 255, 102, 0.55);
    text-shadow: 0 0 6px rgba(0, 255, 102, 0.6);
    animation: mxFall linear infinite;
}
@keyframes mxFall { 0% { transform: translateY(-100%); } 100% { transform: translateY(260px); } }
.mx-term {
    position: relative;
    z-index: 2;
    padding: clamp(0.8rem, 3vw, 1.2rem) clamp(1rem, 4vw, 1.8rem);
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 102, 0.55);
    background: rgba(0, 16, 6, 0.82);
    box-shadow: 0 0 34px rgba(0, 255, 102, 0.28), inset 0 0 34px rgba(0, 255, 102, 0.1);
    font-family: "Courier New", monospace;
    overflow: hidden;
    max-width: 90vw;
}
.mx-term::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 3px);
    pointer-events: none;
}
.mx-prompt { color: #39ff88; font-size: 0.8rem; letter-spacing: 0.15em; text-align: left; opacity: 0.85; }
.mx-cursor { display: inline-block; width: 8px; height: 0.9em; margin-left: 4px; background: #39ff88; vertical-align: middle; animation: cvBlink 0.7s steps(2) infinite; }
@keyframes cvBlink { 0% { opacity: 1; } 50% { opacity: 0; } }
.mx-word {
    margin: 0.4rem 0;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: #39ff88;
    text-shadow: 0 0 10px #00ff66, 0 0 30px rgba(0, 255, 102, 0.6);
    animation: mxGlitch 2.6s infinite;
}
@keyframes mxGlitch {
    0%, 90%, 100% { transform: translate(0); text-shadow: 0 0 10px #00ff66, 0 0 30px rgba(0, 255, 102, 0.6); }
    92% { transform: translate(-3px, 1px); text-shadow: 3px 0 #ff0055, -3px 0 #00e1ff; }
    95% { transform: translate(3px, -1px); text-shadow: -3px 0 #ff0055, 3px 0 #00e1ff; }
}
.mx-status { color: #39ff88; font-size: 0.75rem; letter-spacing: 0.2em; opacity: 0; animation: lineUp 0.5s ease-out 1.8s forwards; }

/* languages */
.lang-globe { font-size: 1.8rem; animation: ballSpin 6s linear infinite; }
.lang-word { min-height: 1.15em; }
.lang-name { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); min-height: 1.2em; }
.lang-pips { display: flex; gap: 6px; margin-top: 0.8rem; }
.lang-pip { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); transition: all 0.3s ease; }
.lang-pip.on { background: #E5B24D; transform: scale(1.5); box-shadow: 0 0 10px #E5B24D; }

/* GOD */
.god-rays {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(18rem, 80vw, 34rem);
    height: clamp(18rem, 80vw, 34rem);
    transform: translate(-50%, -50%);
    animation: raysIn 3.5s ease-out both;
    pointer-events: none;
}
.god-rays-inner {
    width: 100%;
    height: 100%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 214, 120, 0.4) 0deg 4deg, transparent 4deg 14deg);
    -webkit-mask-image: radial-gradient(circle, #000 12%, transparent 62%);
    mask-image: radial-gradient(circle, #000 12%, transparent 62%);
    animation: raysSpin 60s linear infinite;
}
.god-halo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(12rem, 50vw, 20rem);
    height: clamp(12rem, 50vw, 20rem);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 230, 160, 0.5) 0%, rgba(229, 178, 77, 0.2) 40%, transparent 70%);
    animation: godHalo 4s ease-in-out infinite alternate;
}
@keyframes godHalo { 0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; } 100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } }
.god-word {
    position: relative;
    z-index: 2;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: clamp(3.5rem, 16vw, 11rem);
    letter-spacing: 0.12em;
    padding-left: 0.12em;
    background: linear-gradient(100deg, #b8862b 0%, #fff3c4 35%, #E5B24D 50%, #fff3c4 65%, #b8862b 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 28px rgba(229, 178, 77, 0.8));
    animation: godReveal 4s cubic-bezier(0.16, 1, 0.3, 1) both, godShine 6s linear 4s infinite;
}
@keyframes godReveal {
    0%   { opacity: 0; transform: scale(1.3); filter: blur(28px) drop-shadow(0 0 0 rgba(229, 178, 77, 0)); }
    60%  { opacity: 1; filter: blur(2px) drop-shadow(0 0 40px rgba(255, 230, 160, 1)); }
    100% { opacity: 1; transform: scale(1); filter: blur(0) drop-shadow(0 0 28px rgba(229, 178, 77, 0.8)); }
}
@keyframes godShine { 0% { background-position: 0% 50%; } 100% { background-position: 250% 50%; } }

/* Married: "mar" and "ried" slowly come together */
.married-big {
    --sep: 0.8em;
    position: relative;
    display: inline-flex;
    text-shadow: 0 0 25px rgba(200, 75, 49, 0.7), 0 0 60px rgba(200, 75, 49, 0.4);
    animation: heartbeat 1.6s ease-in-out 4.9s infinite;
}
@media (min-width: 640px) { .married-big { --sep: 2em; } }
.mar-a { display: inline-block; animation: marComeRight 3.7s cubic-bezier(0.55, 0.05, 0.25, 1) 1s backwards; }
.mar-b { display: inline-block; animation: marComeLeft 3.7s cubic-bezier(0.55, 0.05, 0.25, 1) 1s backwards; }
@keyframes marComeRight {
    0%   { opacity: 0; transform: translateX(calc(var(--sep) * -1)); }
    15%  { opacity: 1; }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes marComeLeft {
    0%   { opacity: 0; transform: translateX(var(--sep)); }
    15%  { opacity: 1; }
    100% { opacity: 1; transform: translateX(0); }
}
.mar-dash {
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    color: #E5B24D;
    opacity: 0;
    animation: dashLife 3.7s ease-in-out 1s both;
}
@keyframes dashLife {
    0%   { opacity: 0; transform: scaleX(1); }
    15%  { opacity: 1; }
    85%  { opacity: 1; transform: scaleX(0.8); }
    100% { opacity: 0; transform: scaleX(0); }
}
.union-burst {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2em;
    height: 2em;
    margin: -1em 0 0 -1em;
    border: 3px solid #E5B24D;
    border-radius: 50%;
    opacity: 0;
    font-size: 1.5rem;
    animation: unionBurst 1.3s ease-out 4.7s both;
    pointer-events: none;
}
@keyframes unionBurst {
    0%   { opacity: 0.95; transform: scale(0.2); box-shadow: 0 0 30px #E5B24D; }
    100% { opacity: 0; transform: scale(3.5); }
}
.union-heart {
    position: absolute;
    left: 50%;
    top: 50%;
    font-size: 1.2rem;
    opacity: 0;
    animation: heartBurst 1.6s ease-out 4.7s both;
    pointer-events: none;
}
@keyframes heartBurst {
    0%   { opacity: 1; transform: rotate(var(--a)) translateX(0) rotate(calc(var(--a) * -1)) scale(0.4); }
    100% { opacity: 0; transform: rotate(var(--a)) translateX(4rem) rotate(calc(var(--a) * -1)) scale(1.2); }
}

/* Slide 8: END -> BEGINNING */
.wp-slot {
    display: inline-block;
    vertical-align: bottom;
    white-space: nowrap;
    max-width: 0;
    padding-right: 0;
    animation: wpSlot 11s infinite both;
}
@keyframes wpSlot {
    0%, 14%   { max-width: 0;   padding-right: 0; }
    22%, 52%  { max-width: 3em; padding-right: 0.28em; }
    58%, 100% { max-width: 0;   padding-right: 0; }
}
.wp-not { position: relative; display: inline-block; }
.wp-not::after {
    content: "";
    position: absolute;
    left: -6%;
    top: 54%;
    height: 4px;
    width: 0;
    border-radius: 3px;
    background: #C84B31;
    box-shadow: 0 0 10px #C84B31;
    animation: wpStrike 11s infinite both;
}
@keyframes wpStrike {
    0%, 27%   { width: 0; opacity: 1; }
    34%, 40%  { width: 112%; opacity: 1; }
    42%, 100% { width: 112%; opacity: 0; }
}
.wp-l { display: inline-block; }
.wp-not-l {
    opacity: 0;
    animation: wpNotLetter 11s infinite both;
    animation-delay: calc(var(--i) * 0.06s);
}
@keyframes wpNotLetter {
    0%, 14%  { opacity: 0; transform: translateY(0) scale(0.4); color: #fff; }
    20%      { opacity: 1; transform: translateY(0) scale(1.35); color: #fff; }
    24%      { opacity: 1; transform: translateY(0) scale(1); color: #fff; }
    34%, 38% { opacity: 0.7; transform: translateY(0) scale(1); color: #C84B31; }
    52%, 100% { opacity: 0; transform: translateY(60px) rotate(var(--rot)); color: #C84B31; }
}
.wp-swap {
    position: relative;
    display: inline-block;
    vertical-align: bottom;
    height: 1.3em;
    width: var(--w-end, 2.4em);
    animation: wpSwapWidth 11s infinite both;
}
@keyframes wpSwapWidth {
    0%, 48%   { width: var(--w-end, 2.4em); }
    62%, 94%  { width: var(--w-beg, 5.5em); }
    100%      { width: var(--w-end, 2.4em); }
}
.wp-end, .wp-begin { position: absolute; left: 0; top: -0.325em; white-space: nowrap; }
.wp-end-l {
    animation: wpEndLetter 11s infinite both;
    animation-delay: calc(var(--i) * 0.06s);
}
@keyframes wpEndLetter {
    0%        { opacity: 0; transform: translateY(8px); color: #fff; }
    4%, 34%   { opacity: 1; transform: translateY(0); color: #fff; }
    40%       { opacity: 1; transform: translateY(0); color: #C84B31; }
    52%, 100% { opacity: 0; transform: translateY(60px) rotate(var(--rot)); color: #C84B31; }
}
.wp-begin-l {
    opacity: 0;
    animation: wpBeginLetter 11s infinite both;
    animation-delay: calc(var(--i) * 0.07s);
}
@keyframes wpBeginLetter {
    0%, 48%  { opacity: 0; transform: translateY(50px) scale(0.3) rotate(var(--rot)); color: #E5B24D; }
    60%      { opacity: 1; transform: translateY(-10px) scale(1.2) rotate(0deg); color: #fff; }
    66%      { opacity: 1; transform: translateY(0) scale(1); color: #E5B24D; text-shadow: 0 0 25px rgba(229, 178, 77, 0.9); }
    92%      { opacity: 1; transform: translateY(0) scale(1); color: #E5B24D; text-shadow: 0 0 25px rgba(229, 178, 77, 0.9); }
    100%     { opacity: 0; transform: translateY(-20px) scale(1); color: #E5B24D; }
}
.wp-dot { display: inline-block; }
.wp-caption { animation: wpCaption 11s infinite both; }
@keyframes wpCaption {
    0%, 68%  { opacity: 0; transform: translateY(10px); }
    78%, 92% { opacity: 1; transform: translateY(0); }
    100%     { opacity: 0; }
}

/* ========================================================
   Full screen & Mobile Adjustments
   ======================================================== */
#cvModal.cv-fs {
    padding: 0;
    background: #0A050F;
}
#cvModal.cv-fs .cv-card {
    width: 100%;
    height: 100%;
    max-width: none;
    min-height: 0;
    border: 0;
    border-radius: 0;
    padding: clamp(0.5rem, 3vw, 1rem) clamp(0.8rem, 4vw, 2rem) clamp(0.6rem, 3vw, 1.2rem);
}
#cvModal.cv-fs .cv-stage-wrap {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
#cvModal.cv-fs .cv-stage {
    flex: none;
    width: var(--cv-w, 900px);
    height: var(--cv-h, 540px);
    transform: scale(var(--cv-s, 1));
    transform-origin: center center;
    max-width: 100%;
    max-height: 100%;
}

.cv-sound-hint { animation: soundHint 1.4s ease-in-out infinite; }
@keyframes soundHint {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229, 178, 77, 0.0); }
    50%      { box-shadow: 0 0 0 8px rgba(229, 178, 77, 0.35); }
}

/* Media Query for Small Screens / Mobile Viewports */
@media (max-width: 768px) {
    .break-word::before {
        animation-name: breakTopMobile;
    }
    .break-word::after {
        animation-name: breakBottomMobile;
    }
    @keyframes breakTopMobile {
        0%, 25% { transform: translate(0, 0) rotate(0deg); }
        50%, 80% { transform: translate(-3px, -8px) rotate(-3deg); }
        100% { transform: translate(0, 0) rotate(0deg); }
    }
    @keyframes breakBottomMobile {
        0%, 25% { transform: translate(0, 0) rotate(0deg); }
        50%, 80% { transform: translate(3px, 9px) rotate(3deg); }
        100% { transform: translate(0, 0) rotate(0deg); }
    }

    .time-arena {
        height: 8rem;
    }
    .walk-stage {
        padding-top: 1rem;
    }
    .staff-wrap {
        height: 9rem;
    }
    .staff-note::after {
        height: 25px;
    }
}



/* ========================================================
   RESPONSIVE LAYOUT SAFETY
   Additive overrides for phones, tablets and short screens.
   Keeps the original slide animations and visual effects.
   ======================================================== */

/* Prevent animated content from creating horizontal page overflow. */
#cvModal,
#cvModal * {
    box-sizing: border-box;
}

#cvModal {
    max-width: 100%;
    max-height: 100%;
}

#cvModal .cv-card,
#cvModal .cv-stage-wrap,
#cvModal .cv-stage,
#cvModal .cv-slide {
    min-width: 0;
    min-height: 0;
}

#cvModal .cv-stage-wrap {
    max-width: 100%;
}

#cvModal .cv-stage {
    max-width: 100%;
}

#cvModal .cv-slide {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Keep visual stages within the available slide width. */
.name-stage,
.hope-stage,
.hill-stage,
.world-stage,
.bless-stage,
.met-stage,
.met-scene,
.ways-stage,
.time-arena,
.walk-stage,
.staff-wrap {
    max-width: 100%;
    min-width: 0;
}

.name-stage,
.hope-stage,
.hill-stage,
.world-stage,
.bless-stage,
.met-stage,
.met-scene,
.ways-stage,
.time-arena {
    overflow: hidden;
}

.mx-term {
    width: min(100%, 42rem);
    overflow-wrap: anywhere;
}

.hill-slope,
.hill-row {
    max-width: 100%;
}

.staff {
    min-width: 0;
}

/* Tablets and compact laptops. */
@media (max-width: 1024px) {
    .chaotic-problem {
        max-width: 82vw;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .name-stage {
        padding: 1.25rem 0.75rem;
    }

    .hope-stage {
        min-height: clamp(7rem, 18vh, 9rem);
    }

    .world-stage {
        min-height: clamp(9rem, 23vh, 13rem);
    }

    .bless-stage {
        height: clamp(10rem, 27vh, 15rem);
    }

    .met-stage,
    .met-scene {
        min-height: clamp(9rem, 23vh, 13rem);
    }

    .ways-stage {
        height: clamp(8rem, 22vh, 12rem);
    }
}

/* Phones. */
@media (max-width: 768px) {
    .cv-slide {
        width: 100%;
        max-width: 100%;
    }

    .chaotic-problem {
        max-width: 76vw;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .hill-stage {
        padding: 1.5rem 0 1rem;
    }

    .hill-slope {
        transform: rotate(-4deg);
        max-width: 96%;
    }

    .hill-row {
        white-space: normal;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        row-gap: 0.12em;
    }

    .world-stage {
        min-height: 9rem;
        padding-inline: 0.5rem;
    }

    .world-orbit {
        width: min(88vw, 22rem);
    }

    .world-globe {
        width: clamp(9rem, 48vw, 14rem);
        height: clamp(9rem, 48vw, 14rem);
    }

    .bless-stage {
        height: clamp(9rem, 25vh, 13rem);
    }

    .bless-word {
        max-width: 88%;
        white-space: normal;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .ways-stage {
        height: clamp(8rem, 20vh, 11rem);
    }

    .way-lvl {
        max-width: 94%;
        white-space: normal;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .time-arena {
        height: clamp(6.5rem, 17vh, 8rem);
    }

    .time-runner {
        max-width: 80%;
        white-space: normal;
        text-align: center;
    }

    .walk-stage {
        padding-top: 0.75rem;
    }

    .walk-feet {
        gap: 0.65rem;
    }

    .staff-wrap {
        width: min(100%, 22rem);
        height: 8.5rem;
    }

    .staff-note::after {
        height: 22px;
    }

    .mx-term {
        width: 100%;
        max-width: 92vw;
        padding: 0.75rem 0.85rem;
        border-radius: 10px;
    }

    .mx-prompt,
    .mx-status {
        letter-spacing: 0.08em;
        overflow-wrap: anywhere;
    }

    .married-big {
        --sep: 0.35em;
    }

    .union-heart {
        font-size: 1rem;
    }

    .god-word {
        font-size: clamp(3rem, 17vw, 7rem);
        letter-spacing: 0.06em;
        padding-left: 0.06em;
    }

    .hope-rays {
        width: min(76vw, 22rem);
        height: min(76vw, 22rem);
    }

    .hope-sun {
        width: clamp(8rem, 42vw, 14rem);
        height: clamp(8rem, 42vw, 14rem);
    }
}

/* Very narrow phones. */
@media (max-width: 420px) {
    .name-stage {
        padding: 1rem 0.35rem;
    }

    .vf-stage {
        padding: 0.8rem 1rem;
        max-width: 100%;
    }

    .vf-corner {
        width: 16px;
        height: 16px;
    }

    .hill-stage {
        padding-block: 1rem;
    }

    .hill-slope {
        transform: rotate(-2deg);
    }

    .hill-row {
        gap: 0.15em;
    }

    .leap-row {
        gap: 0.2em 0.25em;
        align-items: center;
    }

    .walk-feet {
        gap: 0.45rem;
    }

    .staff-wrap {
        height: 7.5rem;
    }

    .staff-note {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }

    .staff-note::after {
        height: 18px;
    }

    .lang-pips {
        gap: 4px;
    }

    .lang-pip {
        width: 6px;
        height: 6px;
    }

    .married-big {
        --sep: 0.2em;
    }

    .god-word {
        font-size: clamp(2.6rem, 16vw, 4.5rem);
    }
}

/* Landscape phones and short-height screens. */
@media (max-height: 500px) and (orientation: landscape) {
    .name-stage {
        padding-block: 0.35rem;
    }

    .hope-stage,
    .world-stage,
    .met-stage,
    .met-scene {
        min-height: 6rem;
    }

    .bless-stage {
        height: 7.5rem;
    }

    .ways-stage {
        height: 7rem;
    }

    .time-arena {
        height: 5.5rem;
    }

    .walk-stage {
        padding-top: 0.35rem;
    }

    .staff-wrap {
        height: 6rem;
    }

    .hill-stage {
        padding-block: 0.5rem;
    }
}

/* Respect accessibility preferences without changing the slide layout. */
@media (prefers-reduced-motion: reduce) {
    .cv-slide {
        transition-duration: 0.01ms;
    }

    .shake-word,
    .turned-situation,
    .push-limit-anim,
    .fall-anim,
    .rise-anim,
    .glowing-light,
    .look-up,
    .look-down,
    .goals-grow,
    .expanding-text,
    .people-drag,
    .me-down-elastic,
    .apart-text,
    .united-text,
    .rain-heart,
    .ring-sparkle,
    .foot,
    .walk-ground,
    .memories-drift,
    .haiti-flag,
    .haiti-letter,
    .haiti-sheen,
    .haiti-pin,
    .haiti-ripple,
    .hope-rays-inner,
    .hope-letter,
    .hill-climber,
    .hill-climber-step,
    .world-star,
    .world-globe,
    .world-orbit,
    .world-plane,
    .world-letter,
    .bless-ring,
    .name-halo,
    .name-letter,
    .lt-l,
    .boy-word,
    .boy-shadow,
    .staff-note,
    .staff-playhead,
    .float-note,
    .fb-l,
    .fb-ball,
    .mx-col,
    .mx-word,
    .lang-globe,
    .god-rays-inner,
    .god-halo,
    .god-word,
    .married-big,
    .mar-a,
    .mar-b,
    .mar-dash,
    .union-burst,
    .union-heart,
    .wp-slot,
    .wp-not::after,
    .wp-not-l,
    .wp-swap,
    .wp-end-l,
    .wp-begin-l,
    .wp-caption {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}


/* =========================================
   FIXED SLIDESHOW FRAME — RESPONSIVE
   ========================================= */

/* Normal slideshow: fixed frame, independent of slide content */
.cv-stage-wrap {
    position: relative;
    width: min(100%, 900px);
    height: clamp(350px, 65vh, 540px);
    min-height: 0;
    max-height: 540px;
    margin: auto;
    padding: 0 !important;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    flex: 0 0 auto;
}

/* All slides occupy exactly the same frame */
.cv-slide {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0 !important;
    max-height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Tablets and smaller screens */
@media (max-width: 768px) {
    .cv-stage-wrap {
        width: 100%;
        height: clamp(330px, 55vh, 440px);
        max-height: 440px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .cv-stage-wrap {
        height: clamp(320px, 48vh, 390px);
        max-height: 390px;
    }
}

/* Short landscape screens */
@media (max-height: 600px) and (orientation: landscape) {
    .cv-stage-wrap {
        height: 65vh;
        max-height: 400px;
        min-height: 240px;
    }
}

/* Fullscreen: use the available screen area */
#cvModal.cv-fs .cv-stage-wrap {
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

#cvModal.cv-fs .cv-stage {
    flex: none;
    width: var(--cv-w, 900px);
    height: var(--cv-h, 540px);
    transform: scale(var(--cv-s, 1));
    transform-origin: center center;
    max-width: 100%;
    max-height: 100%;
}


/* =========================================
   RESPONSIVE SLIDESHOW TYPOGRAPHY
   Automatically adjusts text to screen size
   ========================================= */

/* Main slide headings */
.cv-slide h1,
.cv-slide h2,
.cv-slide h3 {
    font-size: clamp(1.35rem, 3.8vw, 3.5rem);
    line-height: 1.15;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Paragraphs and normal text */
.cv-slide p {
    font-size: clamp(0.85rem, 1.7vw, 1.25rem);
    line-height: 1.5;
}

/* Scale Tailwind text sizes inside slides */
.cv-slide .text-2xl { font-size: clamp(1.1rem, 2.5vw, 1.5rem) !important; }
.cv-slide .text-3xl { font-size: clamp(1.25rem, 3vw, 1.875rem) !important; }
.cv-slide .text-4xl { font-size: clamp(1.5rem, 3.8vw, 2.25rem) !important; }
.cv-slide .text-5xl { font-size: clamp(1.8rem, 4.8vw, 3rem) !important; }
.cv-slide .text-6xl { font-size: clamp(2rem, 5.5vw, 3.75rem) !important; }
.cv-slide .text-7xl { font-size: clamp(2.2rem, 6vw, 4.5rem) !important; }
.cv-slide .text-8xl { font-size: clamp(2.5rem, 7vw, 5.5rem) !important; }
.cv-slide .text-9xl { font-size: clamp(2.8rem, 8vw, 6rem) !important; }

/* Special animated text */
.cv-slide .vf-word,
.cv-slide .hope-word,
.cv-slide .married-big,
.cv-slide .leap-row {
    font-size: clamp(2rem, 7vw, 5.5rem);
    line-height: 1.1;
}

/* Tablets */
@media (max-width: 768px) {
    .cv-slide {
        padding: 12px !important;
        gap: 0.8rem;
    }

    .cv-slide h1,
    .cv-slide h2,
    .cv-slide h3 {
        line-height: 1.15;
    }

    .cv-slide p {
        line-height: 1.4;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .cv-slide {
        padding: 8px !important;
        gap: 0.6rem;
    }

    .cv-slide h1,
    .cv-slide h2,
    .cv-slide h3 {
        font-size: clamp(1.15rem, 5.5vw, 1.8rem);
        line-height: 1.2;
    }

    .cv-slide p {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
    }

    .cv-slide .text-2xl { font-size: clamp(1rem, 4.5vw, 1.3rem) !important; }
    .cv-slide .text-3xl { font-size: clamp(1.15rem, 5vw, 1.5rem) !important; }
    .cv-slide .text-4xl { font-size: clamp(1.3rem, 6vw, 1.8rem) !important; }
    .cv-slide .text-5xl { font-size: clamp(1.5rem, 7vw, 2.1rem) !important; }
    .cv-slide .text-6xl { font-size: clamp(1.7rem, 8vw, 2.5rem) !important; }
    .cv-slide .text-7xl { font-size: clamp(1.9rem, 9vw, 2.8rem) !important; }
    .cv-slide .text-8xl { font-size: clamp(2rem, 10vw, 3rem) !important; }
    .cv-slide .text-9xl { font-size: clamp(2.2rem, 11vw, 3.2rem) !important; }

    .cv-slide .vf-word,
    .cv-slide .hope-word,
    .cv-slide .married-big,
    .cv-slide .leap-row {
        font-size: clamp(2rem, 10vw, 3rem);
    }
}

/* Short screens in landscape mode */
@media (max-height: 600px) and (orientation: landscape) {
    .cv-slide h1,
    .cv-slide h2,
    .cv-slide h3 {
        font-size: clamp(1.1rem, 4vh, 2rem);
    }

    .cv-slide p {
        font-size: clamp(0.75rem, 2.5vh, 1rem);
    }

    .cv-slide .text-5xl,
    .cv-slide .text-6xl,
    .cv-slide .text-7xl,
    .cv-slide .text-8xl,
    .cv-slide .text-9xl {
        font-size: clamp(1.5rem, 6vh, 3rem) !important;
    }
}

/* SLIDESHOW VIDEO PROGRESS BAR */
#cvModal #cvProgress {
    display: block;
    width: 0%;
    height: 100%;
    background: #FBBF24;
    transition: width linear;
    will-change: width;
}

#cvModal .cv-progress-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    overflow: hidden;
    z-index: 30;
    background: rgba(255, 255, 255, 0.12);
}