/* ===== Training page: coming soon ===== */
/* Responsive and reduced-motion rules go at the bottom. */

.soon {
    --soon-art: min(100vw, max(100svh, 640px)); /* artwork width; the copy's overlap is worked out from it */
    position: relative;
    isolation: isolate;
    overflow: clip;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: calc(100svh - var(--header-height));
    padding-bottom: 56px;
}

/* Breadcrumb */
.soon-breadcrumb { position: absolute; top: 22px; left: 0; right: 0; z-index: 3; }
.soon-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; }
.soon-breadcrumb li {
    font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(237, 228, 211, 0.75);
}
.soon-breadcrumb li + li::before { content: "/"; margin: 0 12px; color: var(--color-gold); opacity: 0.7; }
.soon-breadcrumb a { transition: color 0.3s ease; }
.soon-breadcrumb a:hover { color: var(--color-gold); }
.soon-breadcrumb [aria-current="page"] { color: var(--color-gold); }

/* Artwork: fades in from a slight zoom; the mask melts its edges into the page */
.soon-art { position: relative; flex: none; width: var(--soon-art); aspect-ratio: 14 / 9; }
.soon-art-inner {
    position: absolute; inset: 0;
    isolation: isolate;
    opacity: 0; scale: 1.08;
    transition: opacity 1.4s ease, scale 2.4s var(--ease-out);
    will-change: translate;
}
.soon.is-loaded .soon-art-inner { opacity: 1; scale: 1; }
/* A pool of the artwork's own dark green under it, so no oval shows where the image fades out */
.soon-art-inner::before {
    content: ""; position: absolute; inset: -22% -24%; z-index: -1;
    background: radial-gradient(closest-side, #09120c 52%, rgba(9, 18, 12, 0) 100%);
}
.soon-art img {
    width: 100%; height: 100%;
    -webkit-mask-image: radial-gradient(ellipse 50% 52% at 50% 42%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 52% at 50% 42%, #000 62%, transparent 100%);
}

/* Glow behind the player, breathing slowly */
.soon-glow {
    position: absolute; left: 49.7%; top: 24%;
    width: 58%; aspect-ratio: 1;
    translate: -50% -50%;
    background: radial-gradient(circle, rgba(234, 215, 173, 0.24) 0%, rgba(217, 192, 138, 0.09) 38%, rgba(217, 192, 138, 0) 68%);
    mix-blend-mode: screen;
    pointer-events: none;
    opacity: 0;
}
.soon.is-loaded .soon-glow { animation: soonGlow 6s ease-in-out 1.2s infinite; }

/* Rim light: traces the top of the ball once, then a small comet keeps circling it */
.soon-rim { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.soon-rim path { fill: none; stroke: url(#soon-rim-fade); stroke-linecap: round; } /* fades out where the ball sinks into the dark */
.soon-rim-line { stroke-width: 2.5; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.soon-rim-comet { stroke-width: 4; stroke-dasharray: 7 100; stroke-dashoffset: 7; opacity: 0; filter: drop-shadow(0 0 8px var(--color-gold)); }
.soon.is-loaded .soon-rim-line { animation: soonRimDraw 2.4s var(--ease-out) 0.5s forwards; }
.soon.is-loaded .soon-rim-comet { animation: soonRimComet 7s ease-in-out 3s infinite; }

/* Gold dust drifting upward */
.soon-dust { position: absolute; inset: 0; z-index: 1; pointer-events: none; will-change: translate; }
.soon-dust span {
    position: absolute; left: var(--x); bottom: -10px;
    width: var(--s); height: var(--s);
    border-radius: 50%;
    background: var(--color-gold-light);
    box-shadow: 0 0 6px var(--color-gold);
    opacity: 0;
    animation: soonDust var(--t) linear var(--d) infinite;
}

/* Copy: sits in the empty lower third of the artwork */
.soon-content {
    position: relative; z-index: 2;
    margin-top: calc(var(--soon-art) * -0.2);
    text-align: center;
}
.soon-eyebrow {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    margin-bottom: 10px;
    font-size: 0.85rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
    color: var(--color-gold);
}
.soon-eyebrow::before, .soon-eyebrow::after { content: ""; flex: none; width: 40px; height: 1px; background: var(--color-gold); }

/* Title: slides up out of a mask, then the gold shimmers */
.soon-title {
    font-family: var(--font-serif);
    font-size: clamp(3.2rem, min(8vw, 13svh), 6.4rem);
    font-weight: 600; line-height: 1.02; letter-spacing: -0.01em;
    color: var(--color-cream);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.soon-title .line { display: block; overflow: hidden; padding-bottom: 0.22em; margin-bottom: -0.14em; } /* room for the g descender inside the mask */
.soon-title .line > span { display: inline-block; transform: translateY(110%); }
.soon.is-loaded .soon-title .line > span { animation: soonLineUp 1.1s var(--ease-out) 0.6s forwards; }
.soon-title em {
    font-style: italic; font-weight: 500;
    padding-right: 0.06em; /* keeps the italic's last letter inside the gradient */
    background: linear-gradient(100deg, #b89a5e 0%, var(--color-gold) 30%, #f6e7c1 50%, var(--color-gold) 70%, #b89a5e 100%);
    background-size: 250% 100%; background-position: 100% 0;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: var(--color-gold);
}
.soon.is-loaded .soon-title em { animation: soonShimmer 6s ease-in-out 1.8s infinite; }

.soon-text {
    max-width: 680px;
    margin: 12px auto 0;
    font-size: 1rem; line-height: 1.7;
    color: rgba(237, 228, 211, 0.82);
    text-wrap: pretty;
}
.soon-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 24px; }
.soon-actions a { padding: 12px 26px; }
.soon-actions .fa-whatsapp { margin-right: 8px; font-size: 1.1rem; }

@keyframes soonLineUp  { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes soonShimmer {
    0%   { background-position: 100% 0; }
    50%  { background-position: 0% 0; }
    100% { background-position: 100% 0; }
}
@keyframes soonGlow {
    0%, 100% { opacity: 0.55; transform: scale(0.96); }
    50%      { opacity: 1;    transform: scale(1.04); }
}
@keyframes soonRimDraw {
    0%   { stroke-dashoffset: 100; opacity: 0; }
    15%  { opacity: 0.9; }
    70%  { opacity: 0.9; }
    100% { stroke-dashoffset: 0; opacity: 0.3; }
}
@keyframes soonRimComet {
    0%   { stroke-dashoffset: 7; opacity: 0; }
    10%  { opacity: 1; }
    55%  { opacity: 1; }
    65%  { stroke-dashoffset: -100; opacity: 0; }
    100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes soonDust {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    12%  { opacity: 0.7; }
    80%  { opacity: 0.45; }
    100% { transform: translate3d(24px, -78svh, 0); opacity: 0; }
}

/* ===== Responsive ===== */
@media (max-width: 767px) and (orientation: portrait) {
    .soon { --soon-art: 150vw; padding-top: 28px; }
    .soon-art img {
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 62%, transparent 92%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 62%, transparent 92%);
    }
}
/* Short laptops: a smaller ball keeps the buttons on screen */
@media (min-width: 768px) and (max-height: 800px) {
    .soon { --soon-art: max(90svh, 560px); padding-bottom: 32px; }
}
/* Landscape phones: ball and copy side by side */
@media (max-height: 500px) and (orientation: landscape) {
    .soon { --soon-art: 50vw; flex-direction: row; padding: 44px 24px 20px; }
    .soon-content { flex: 1; margin-top: 0; padding: 0; }
    .soon-title { font-size: clamp(2.6rem, 7vw, 3.4rem); }
    .soon-text { margin-top: 6px; font-size: 0.85rem; line-height: 1.55; }
    .soon-actions { margin-top: 14px; gap: 10px; }
    .soon-actions a { padding: 9px 18px; font-size: 0.85rem; }
}
@media (max-width: 575px) {
    .soon-breadcrumb { top: 16px; }
    .soon-eyebrow { font-size: 0.75rem; letter-spacing: 0.26em; }
    .soon-eyebrow::before, .soon-eyebrow::after { width: 26px; }
    .soon-text { font-size: 0.95rem; }
    .soon-actions { flex-direction: column; align-items: center; }
    .soon-actions a { width: 100%; max-width: 320px; }
}
@media (max-width: 359px) {
    .soon-title { font-size: 2.8rem; }
    .soon-actions a { padding-left: 16px; padding-right: 16px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    .soon-art-inner { opacity: 1; scale: 1; }
    .soon-glow { opacity: 0.8; }
    .soon-rim-line { stroke-dashoffset: 0; opacity: 0.3; }
    .soon-rim-comet, .soon-dust { display: none; }
    .soon-title .line > span { transform: none; }
}
