/* ==========================================================================
   ABG — Coming Soon (public page)
   Colours come from CSS variables printed by index.php (editable in the CMS).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --silver-1: #ffffff;
    --silver-2: #dfe4ea;
    --silver-3: #a9b2bf;
    --text: #eef2f8;
    --muted: rgba(230, 236, 246, .72);
    --glass: rgba(255, 255, 255, .06);
    --glass-border: rgba(255, 255, 255, .14);
    --radius: 14px;
    --ease: cubic-bezier(.22, .8, .24, 1);
}

html, body {
    height: 100%;
    overflow: hidden;            /* the page is intentionally not scrollable */
}

body {
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--brand-darker);
    -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }

/* Background photo (editable in the CMS) with a slow cinematic zoom */
.bg__photo {
    position: absolute; inset: -3%;
    background: var(--bg-url) center 40% / cover no-repeat;
    animation: kenburns 40s ease-in-out infinite alternate;
}
@keyframes kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.08) translateY(-1%); }
}

/* Brand-colour tint over the photo; its strength is the CMS "overlay" setting */
.bg__gradient {
    position: absolute; inset: 0;
    opacity: var(--overlay, 1);
    background:
        radial-gradient(ellipse 80% 60% at 50% 18%, rgba(var(--brand-rgb), .95) 0%, transparent 70%),
        radial-gradient(ellipse 120% 80% at 50% 110%, var(--brand-dark) 0%, transparent 60%),
        linear-gradient(180deg, var(--brand-dark) 0%, var(--brand-darker) 100%);
}

.bg__aurora {
    position: absolute;
    width: 60vmax; height: 60vmax;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .45;
    mix-blend-mode: screen;
    animation: drift 22s ease-in-out infinite alternate;
}
.bg__aurora--1 { background: var(--brand-light);  top: -25vmax; left: -15vmax; }
.bg__aurora--2 { background: rgba(var(--accent-rgb), .35); bottom: -30vmax; right: -20vmax; animation-duration: 28s; animation-delay: -6s; }
.bg__aurora--3 { background: var(--brand); top: 30%; left: 55%; width: 40vmax; height: 40vmax; opacity: .5; animation-duration: 34s; animation-delay: -12s; }

@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(6vw, 4vh) scale(1.12); }
    100% { transform: translate(-4vw, -3vh) scale(.95); }
}

.bg__grid {
    position: absolute; inset: -2px;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 85%);
}

.bg__particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.bg__vignette {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .45) 100%);
}

/* ---------- Layout ---------- */
.stage {
    position: relative; z-index: 1;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    padding: max(2vh, env(safe-area-inset-top)) 16px max(1.4vh, env(safe-area-inset-bottom));
    gap: 1vh;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: reveal 1s var(--ease) forwards;
    animation-delay: var(--d, 0s);
}
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---------- Logo ---------- */
.hero { display: flex; justify-content: center; flex-shrink: 1; min-height: 0; }

.logo {
    position: relative;
    height: clamp(90px, 25vh, 260px);
    max-width: 88vw;
    animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-6px); } }

.logo__img {
    display: block;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .45)) drop-shadow(0 0 40px rgba(var(--accent-rgb), .18));
}

/* Light sweep clipped to the logo shape */
.logo__shine {
    position: absolute; inset: 0;
    pointer-events: none;
    -webkit-mask: var(--logo-url) center / contain no-repeat;
    mask: var(--logo-url) center / contain no-repeat;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.85) 48%, rgba(255,255,255,.95) 50%, transparent 62%);
    background-size: 250% 100%;
    background-position: 150% 0;
    mix-blend-mode: overlay;
    animation: shine 6s ease-in-out 1.2s infinite;
}
@keyframes shine {
    0%   { background-position: 150% 0; }
    35%, 100% { background-position: -60% 0; }
}

.logo__reflection {
    position: absolute;
    left: 0; right: 0; top: 100%;
    margin: 4px auto 0;
    height: 100%; width: auto; max-width: 100%;
    transform: scaleY(-1);
    opacity: .12;
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 35%);
    mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 35%);
    pointer-events: none;
}

/* ---------- Coming soon band ---------- */
.announce { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1.1vh; position: relative; z-index: 2; }

.announce__band {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 3vw, 36px);
}

.announce__line {
    flex: 0 1 220px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .9));
    position: relative;
}
.announce__line:last-child { background: linear-gradient(270deg, transparent, rgba(var(--accent-rgb), .9)); }
.announce__line::after {
    content: "";
    position: absolute; top: 50%;
    width: 7px; height: 7px;
    border: 1px solid var(--accent);
    transform: translateY(-50%) rotate(45deg);
    right: -4px;
}
.announce__line:last-child::after { right: auto; left: -4px; }

.announce__title {
    font-family: "Cinzel", Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.6rem, min(6.4vw, 7.2vh), 4.4rem);
    letter-spacing: .32em;
    margin-right: -.32em;        /* balance the trailing letter-spacing */
    white-space: nowrap;
    line-height: 1.1;
}
.announce__title .ch {
    display: inline-block;
    background: linear-gradient(180deg, var(--silver-1) 0%, var(--silver-2) 45%, var(--silver-3) 55%, var(--silver-1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35));
    opacity: 0;
    transform: translateY(.4em);
    animation: letter .8s var(--ease) forwards, glow 5s ease-in-out infinite;
    animation-delay: calc(.5s + var(--i) * .06s), calc(2s + var(--i) * .12s);
}
.announce__title .sp { display: inline-block; width: .35em; }
@keyframes letter { to { opacity: 1; transform: none; } }
@keyframes glow {
    0%, 100% { filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35)); }
    50%      { filter: drop-shadow(0 0 14px rgba(var(--accent-rgb), .55)); }
}

.announce__subtitle {
    font-size: clamp(.78rem, min(1.6vw, 2vh), 1.05rem);
    font-weight: 300;
    letter-spacing: .08em;
    color: var(--muted);
    text-align: center;
    max-width: 640px;
}

/* ---------- Countdown ---------- */
.countdown { display: flex; gap: clamp(8px, 1.6vw, 18px); margin-top: .4vh; }
.countdown__unit {
    min-width: clamp(54px, 8.5vh, 86px);
    padding: .9vh 10px .7vh;
    text-align: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.countdown__num {
    display: block;
    font-family: "Cinzel", serif;
    font-weight: 600;
    font-size: clamp(1.1rem, 3.6vh, 2rem);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.countdown__lbl { font-size: clamp(.55rem, 1.2vh, .7rem); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---------- Section titles ---------- */
.section-title {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    font-family: "Cinzel", serif;
    font-weight: 600;
    font-size: clamp(.85rem, 2.2vh, 1.15rem);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--silver-2);
    margin-bottom: 1.4vh;
}
.section-title::before, .section-title::after {
    content: ""; width: 40px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .7));
}
.section-title::after { transform: scaleX(-1); }
.section-title--sm { font-size: clamp(.7rem, 1.7vh, .9rem); margin-bottom: 1.2vh; }

/* ---------- News carousel ---------- */
.news { width: 100%; max-width: 1240px; min-height: 0; }

.news__wrap { position: relative; display: flex; align-items: center; gap: 10px; }

.news__track {
    --card-w: clamp(190px, 34vh, 300px);
    flex: 1;
    display: flex;
    gap: clamp(12px, 1.6vw, 20px);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 4px 12px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.news__track::-webkit-scrollbar { display: none; }
.news__track.is-centered { justify-content: center; }

.card {
    flex: 0 0 var(--card-w);
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    text-align: left;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.card:hover, .card:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(var(--accent-rgb), .55);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .4), 0 0 0 1px rgba(var(--accent-rgb), .25), 0 0 30px rgba(var(--brand-rgb), .6);
    outline: none;
}

.card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-dark); }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }

.card__placeholder {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    font-size: 2.2rem;
    color: rgba(255, 255, 255, .55);
    background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
}

.card__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .55)); }

.card__play {
    position: absolute; top: 50%; left: 50%;
    width: 52px; height: 52px;
    transform: translate(-50%, -50%);
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 1rem;
    padding-left: 3px;
    transition: background .35s, transform .35s var(--ease);
}
.card__play::before {
    content: ""; position: absolute; inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .4);
    animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.card:hover .card__play { background: #ff0033; border-color: #ff0033; transform: translate(-50%, -50%) scale(1.1); }

.card__badge {
    position: absolute; left: 10px; bottom: 9px;
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 30px;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.card__badge i { margin-right: 4px; }
.card--video .card__badge i { color: #ff4d4d; }

.card__title {
    margin: 10px 13px 12px;      /* margin, not padding: line-clamp would leak the next line into padding */
    font-size: clamp(.74rem, 1.6vh, .88rem);
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news__nav {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: background .3s, opacity .3s, transform .3s;
}
.news__nav:hover { background: rgba(255, 255, 255, .16); transform: scale(1.08); }
.news__nav[disabled] { opacity: .25; pointer-events: none; }
.news__nav.is-hidden { display: none; }

/* ---------- Social ---------- */
.social { display: flex; flex-direction: column; align-items: center; }
.social__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 1.6vw, 16px); }

.social__btn {
    --size: clamp(40px, 6vh, 52px);
    position: relative;
    width: var(--size); height: var(--size);
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: calc(var(--size) * .4);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.social__btn::before {
    content: ""; position: absolute; inset: 0;
    background: var(--c);
    border-radius: 50%;
    transform: scale(0);
    transition: transform .4s var(--ease);
}
.social__btn--instagram::before { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social__btn--snapchat:hover i { color: #111; }
.social__btn i, .social__btn img { position: relative; z-index: 1; }
.social__btn img { width: 55%; height: 55%; object-fit: contain; }
.social__btn:hover, .social__btn:focus-visible {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
    outline: none;
}
.social__btn:hover::before, .social__btn:focus-visible::before { transform: scale(1); }

/* ---------- Footer ---------- */
.foot { font-size: clamp(.6rem, 1.3vh, .72rem); letter-spacing: .08em; color: rgba(230, 236, 246, .45); }

/* ---------- Video modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(2, 6, 20, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s ease; }
.modal__box {
    position: relative;
    width: min(1000px, 100%, calc((100dvh - 80px) * 16 / 9));
    animation: pop .4s var(--ease);
}
.modal__frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__close {
    position: absolute; top: -48px; right: 0;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    font-size: 1.1rem;
    transition: background .3s, transform .3s;
}
.modal__close:hover { background: rgba(255, 255, 255, .25); transform: rotate(90deg); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .announce__title { letter-spacing: .18em; margin-right: -.18em; font-size: clamp(1.4rem, 8vw, 2.4rem); }
    .announce__line { flex-basis: 40px; }
    .news__nav { display: none; }
    .news__track { --card-w: min(68vw, 30vh * 16 / 9); }
    .section-title { letter-spacing: .12em; gap: 10px; text-align: center; }
    .section-title::before, .section-title::after { width: 22px; flex-shrink: 0; }
}

/* Short screens (landscape phones, small laptops) */
@media (max-height: 620px) {
    .announce__subtitle { display: none; }
    .logo__reflection { display: none; }
    .card__title { display: block; white-space: nowrap; text-overflow: ellipsis; margin: 7px 10px 8px; }
    .foot { display: none; }
}
@media (max-height: 460px) {
    .countdown { display: none; }
    .news__track { --card-w: clamp(150px, 42vh, 220px); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal, .announce__title .ch { opacity: 1; transform: none; }
}
