/* ASPI Executive Gathering 2026 — microsite
   The hero rebuilds the key visual from its separate layers so it can move:
   a candi bentar that opens, the keris rising between the halves, and a
   sunrise core that breathes. Every layer lives inside .stage, a 16:9 box
   scaled like `background-size: cover`, so the artwork keeps the proportions
   of the original banner on any screen. */

:root {
    --navy-900: #03122b;
    --navy-800: #061c3f;
    --navy-700: #0a2a5e;
    --blue-500: #18a8f0;
    --blue-400: #41c3ff;
    --blue-200: #a9e2ff;
    --gold-500: #f0b03c;
    --gold-300: #ffd98a;
    --ink: #eaf4ff;
    --ink-dim: rgba(234, 244, 255, .66);
    --line: rgba(169, 226, 255, .18);
    --radius: 18px;
    --shell: min(1180px, 100% - 48px);
    --ease-out: cubic-bezier(.16, .84, .32, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--navy-900);
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 34px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue-500), #0d7fd0);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 34px rgba(24, 168, 240, .34);
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), filter .3s var(--ease-out);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 44px rgba(24, 168, 240, .46);
    filter: brightness(1.06);
}

.btn:focus-visible {
    outline: 2px solid var(--blue-200);
    outline-offset: 3px;
}

.btn-ghost {
    background: rgba(3, 18, 43, .34);
    border: 1px solid var(--line);
    box-shadow: none;
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    border-color: rgba(169, 226, 255, .42);
    box-shadow: 0 10px 30px rgba(3, 18, 43, .5);
}

/* ------------------------------------------------------------------ header */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 40;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    transition: background .4s var(--ease-out), padding .4s var(--ease-out), box-shadow .4s var(--ease-out);
}

.site-header.is-stuck {
    padding: 10px 0;
    background: rgba(3, 18, 43, .84);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line);
}

.header-inner {
    width: var(--shell);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* ASPI brand rule: the logo may only appear top-centre or top-right. */
.header-logo {
    grid-column: 2;
    justify-self: center;
}

.header-logo img {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 4px 18px rgba(3, 18, 43, .6));
    transition: height .4s var(--ease-out);
}

.site-header.is-stuck .header-logo img {
    height: 34px;
}

.header-cta {
    grid-column: 3;
    justify-self: end;
    padding: 11px 24px;
    font-size: 14px;
}

/* -------------------------------------------------------------------- hero */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

/* 16:9 box that covers the viewport, so every layer keeps its place in the
   composition no matter how the window is shaped. */
.stage {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: -3;
    width: max(100vw, calc(100svh * 16 / 9));
    height: max(100svh, calc(100vw * 9 / 16));
    translate: -50% -50%;
    pointer-events: none;
}

.stage-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

/* Sunrise core between the gate halves. */
.stage-glow {
    position: absolute;
    left: 50%;
    top: 62%;
    width: 46%;
    aspect-ratio: 1;
    translate: -50% -50%;
    background: radial-gradient(circle, rgba(255, 232, 186, .5) 0%, rgba(255, 199, 92, .26) 22%, rgba(24, 168, 240, .16) 46%, transparent 70%);
}

@keyframes glowBreath {

    0%,
    100% {
        opacity: .8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ------------------------------------------------------------ gate + keris */

/* Percentages below are measured off the approved banner: the gate bases sit
   on the horizon at 78% height and the halves stand ~10% of the width apart,
   leaving the opening the keris floats in. */
.gate {
    position: absolute;
    bottom: 22%;
    height: 40%;
    width: auto;
    filter: drop-shadow(0 18px 44px rgba(3, 18, 43, .55));
    /* The base melts into the ground instead of ending on a hard edge. */
    -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0, 0, 0, .55) 7%, #000 18%);
    mask-image: linear-gradient(to top, transparent 0%, rgba(0, 0, 0, .55) 7%, #000 18%);
    will-change: transform;
}

/* Progressive blur along the foot of the gate: strongest at the ground,
   clearing upwards. */
.stage-blur {
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 17%;
    height: 13%;
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 25%, #000 45%, transparent 100%);
    mask-image: linear-gradient(to top, transparent 0%, #000 25%, #000 45%, transparent 100%);
}

/* Low mist banks drifting across the gate's base, so it reads as standing
   in fog. Two layers move at different speeds for depth. */
.fog {
    position: absolute;
    left: -15%;
    right: -15%;
    pointer-events: none;
    filter: blur(18px);
    will-change: transform;
}

.fog--back {
    bottom: 19%;
    height: 16%;
    opacity: .75;
    background:
        radial-gradient(30% 60% at 22% 60%, rgba(190, 220, 255, .32), transparent 70%),
        radial-gradient(26% 55% at 50% 55%, rgba(255, 228, 190, .3), transparent 72%),
        radial-gradient(30% 60% at 78% 62%, rgba(190, 220, 255, .3), transparent 70%);
    animation: fogDrift 38s ease-in-out infinite alternate;
}

.fog--front {
    bottom: 15%;
    height: 14%;
    background:
        radial-gradient(24% 55% at 32% 55%, rgba(210, 232, 255, .38), transparent 70%),
        radial-gradient(22% 50% at 62% 50%, rgba(220, 236, 255, .34), transparent 70%),
        radial-gradient(40% 70% at 50% 80%, rgba(120, 180, 240, .3), transparent 75%);
    animation: fogDrift 26s ease-in-out infinite alternate-reverse;
}

@keyframes fogDrift {
    from {
        transform: translateX(-4%);
    }

    to {
        transform: translateX(4%);
    }
}

.gate--left {
    right: 55.3%;
}

.gate--right {
    left: 55.3%;
}

.keris {
    position: absolute;
    left: 50%;
    bottom: 26.5%;
    height: 32%;
    width: auto;
    translate: -50% 0;
    filter: drop-shadow(0 0 22px rgba(255, 199, 92, .55)) drop-shadow(0 0 64px rgba(24, 168, 240, .3));
    will-change: transform;
}

@keyframes kerisFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-1.4%);
    }
}

/* A light that climbs the blade every few seconds. */
.keris-shine {
    position: absolute;
    left: 50%;
    bottom: 26.5%;
    width: 9%;
    height: 32%;
    translate: -50% 0;
    background: linear-gradient(0deg, transparent 0%, transparent 35%, rgba(255, 238, 205, .55) 50%, transparent 65%, transparent 100%);
    background-size: 100% 220%;
    mask-image: radial-gradient(60% 50% at 50% 50%, #000 0%, transparent 78%);
    mix-blend-mode: screen;
    animation: shineRise 6s ease-in-out infinite;
}

@keyframes shineRise {

    0% {
        background-position: 0 0%;
    }

    100% {
        background-position: 0 100%;
    }
}

/* Vignette plus the seamless hand-off: the artwork dissolves into the page
   colour at the bottom so the next section continues the same night sky. */
.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(120% 86% at 50% 46%, transparent 34%, rgba(3, 18, 43, .5) 100%),
        linear-gradient(180deg, rgba(3, 18, 43, .78) 0%, rgba(3, 18, 43, .12) 22%, transparent 42%),
        linear-gradient(180deg, transparent 52%, rgba(3, 18, 43, .35) 66%, rgba(3, 18, 43, .82) 82%, var(--navy-900) 94%);
}

/* Drifting embers. */
.motes {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.mote {
    position: absolute;
    bottom: -8px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 232, 186, .9);
    box-shadow: 0 0 10px rgba(255, 199, 92, .75);
    animation: moteRise linear infinite;
}

@keyframes moteRise {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0);
    }

    12% {
        opacity: 1;
    }

    84% {
        opacity: .65;
    }

    100% {
        opacity: 0;
        transform: translate3d(var(--drift, 20px), -92svh, 0);
    }
}

/* ------------------------------------------------------------ hero content */

.hero-inner {
    position: relative;
    width: var(--shell);
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
    padding: clamp(104px, 13vh, 150px) 0 clamp(112px, 14vh, 140px);
    /* The composition's centre of gravity is low, so the copy lives up top. */
    will-change: transform, opacity;
}

.hero-title {
    width: min(100%, 880px);
    margin: 0;
    position: relative;
}

.hero-title img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 6px 30px rgba(3, 18, 43, .55));
}

/* Single light sweep across the wordmark after it lands. */
.hero-title::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .5) 50%, transparent 62%);
    mix-blend-mode: screen;
    opacity: 0;
    pointer-events: none;
}

.hero-title.is-swept::after {
    animation: titleSweep 1.5s ease-out 1;
}

@keyframes titleSweep {
    0% {
        opacity: 0;
        transform: translateX(-28%);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(28%);
    }
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(3, 18, 43, .4);
    backdrop-filter: blur(10px);
    font-size: clamp(10px, 1.3vw, 12px);
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--blue-200);
}

.hero-kicker::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-300);
    box-shadow: 0 0 12px var(--gold-500);
    animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: .5;
        transform: scale(.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    margin: 0;
    font-size: clamp(14px, 1.7vw, 17px);
    color: var(--ink-dim);
}

.hero-meta strong {
    color: var(--ink);
    font-weight: 600;
}

.hero-meta .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(169, 226, 255, .4);
}

.hero-foot {
    margin-top: auto;
    display: grid;
    justify-items: center;
    gap: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 4px;
}

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 24px;
    translate: -50% 0;
    display: grid;
    justify-items: center;
    gap: 8px;
    font-size: 10px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: rgba(234, 244, 255, .45);
}

.hero-scroll span {
    display: block;
    width: 1px;
    height: 42px;
    background: linear-gradient(180deg, var(--blue-400), transparent);
    animation: scrollLine 2.2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scrollLine {

    0%,
    100% {
        opacity: .25;
        transform: scaleY(.55);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* --------------------------------------------------------------- sections */

.section {
    position: relative;
    padding: clamp(76px, 10vw, 130px) 0;
}

.section-inner {
    width: var(--shell);
    margin: 0 auto;
}

.section-head {
    max-width: 700px;
    margin: 0 auto clamp(40px, 6vw, 64px);
    text-align: center;
}

.eyebrow {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--blue-400);
}

.section-head h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4.4vw, 44px);
    line-height: 1.18;
    letter-spacing: -.02em;
    font-weight: 800;
}

.section-head p {
    margin: 0;
    color: var(--ink-dim);
    font-size: clamp(15px, 1.9vw, 18px);
}

/* Carries the hero's night sky downward so the seam never shows. */
/* Starts in the exact navy the hero dissolves into, so there is no seam;
   the glow sits further down, where it reads as part of the same sky. */
.about {
    margin-top: -1px;
    background:
        radial-gradient(70% 45% at 50% 38%, rgba(24, 168, 240, .12), transparent 70%),
        var(--navy-900);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
    gap: 18px;
}

.card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(10, 42, 94, .46), rgba(3, 18, 43, .46));
    transition: transform .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(169, 226, 255, .34);
    box-shadow: 0 20px 50px rgba(3, 18, 43, .6);
}

.card-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 13px;
    background: linear-gradient(140deg, rgba(24, 168, 240, .3), rgba(240, 176, 60, .22));
    color: var(--blue-200);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.card p {
    margin: 0;
    color: var(--ink-dim);
    font-size: 15px;
}

.card-link {
    display: block;
    color: inherit;
}

/* --------------------------------------------------------------- countdown */

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 2vw, 18px);
    max-width: 820px;
    margin: 0 auto;
}

.cd-unit {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: clamp(18px, 3vw, 30px) 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(10, 42, 94, .46), rgba(3, 18, 43, .46));
}

.cd-num {
    display: block;
    font-size: clamp(34px, 6.4vw, 64px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #fff 20%, var(--blue-200));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cd-num.tick {
    animation: cdTick .5s var(--ease-out);
}

@keyframes cdTick {
    from {
        opacity: .2;
        transform: translateY(-10px);
    }
}

.cd-label {
    font-size: clamp(11px, 1.4vw, 13px);
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink-dim);
}

.countdown-done {
    margin: 0;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-300);
}

/* ---------------------------------------------------------------- location */

.location {
    background: var(--navy-900);
    padding-top: 0;
}

.map {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 7;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--navy-800);
    box-shadow: 0 30px 70px rgba(3, 18, 43, .55);
}

.map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    /* Tones the default map toward the night palette; full colour on hover. */
    filter: grayscale(.35) contrast(1.05) brightness(.92);
    transition: filter .5s var(--ease-out);
}

.map:hover iframe {
    filter: none;
}

.map-actions {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

@media (max-width: 720px) {
    .map {
        aspect-ratio: 4 / 5;
    }
}

/* Its own colour in the middle, but both edges dissolve into the page navy,
   so it blends with the sections above and below instead of meeting them. */
.cta {
    text-align: center;
    background:
        linear-gradient(180deg, var(--navy-900) 0%, transparent 32%, transparent 68%, var(--navy-900) 100%),
        radial-gradient(60% 70% at 50% 72%, rgba(240, 176, 60, .14), transparent 72%),
        radial-gradient(70% 70% at 50% 34%, rgba(24, 168, 240, .2), transparent 72%),
        var(--navy-800);
}

.cta h2 {
    margin: 0 0 14px;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -.02em;
}

.cta p {
    max-width: 560px;
    margin: 0 auto 30px;
    color: var(--ink-dim);
}

/* ------------------------------------------------------------------ footer */

.site-footer {
    padding: 42px 0;
    text-align: center;
    background: var(--navy-900);
}

.footer-inner {
    width: var(--shell);
    margin: 0 auto;
    display: grid;
    justify-items: center;
    gap: 14px;
}

.footer-inner img {
    height: 34px;
    width: auto;
    opacity: .9;
}

.footer-inner p {
    margin: 0;
    font-size: 13px;
    color: rgba(234, 244, 255, .46);
}

/* ------------------------------------------------- pre-animation states */

/* Hidden only when JS + motion are on, so no-JS visitors still see it all. */
.js-motion .hero-inner>*,
.js-motion .gate,
.js-motion .keris,
.js-motion .keris-shine,
.js-motion [data-reveal] {
    visibility: hidden;
}

/* ------------------------------------------------------------------ orbs */

.orbs {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    mix-blend-mode: screen;
    /* Orbs fade out at the edges so they never light up a section boundary. */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 76%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 76%, transparent 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(var(--blur, 40px));
    opacity: .55;
    will-change: transform;
}

.orb--blue {
    background: radial-gradient(circle at 35% 35%, rgba(65, 195, 255, .9), rgba(24, 168, 240, .25) 55%, transparent 72%);
}

.orb--gold {
    background: radial-gradient(circle at 40% 40%, rgba(255, 217, 138, .9), rgba(240, 176, 60, .22) 55%, transparent 72%);
}

/* Small crisp orbs that read as glowing beads rather than haze. */
.orb--bead {
    --blur: 1px;
    opacity: .9;
    box-shadow: 0 0 18px rgba(65, 195, 255, .9), 0 0 42px rgba(65, 195, 255, .45);
    background: radial-gradient(circle at 35% 35%, #fff, var(--blue-400) 60%);
}

.orb--bead.orb--gold {
    box-shadow: 0 0 18px rgba(255, 199, 92, .9), 0 0 42px rgba(255, 199, 92, .45);
    background: radial-gradient(circle at 35% 35%, #fff, var(--gold-300) 60%);
}

.section .orbs {
    opacity: .7;
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 860px) {
    .header-cta {
        display: none;
    }

    .header-inner {
        grid-template-columns: 1fr;
    }

    .header-logo {
        grid-column: 1;
    }

    .hero-inner {
        gap: 18px;
        padding-top: clamp(92px, 12vh, 120px);
    }

    /* The stage keeps its 16:9 proportions on portrait screens, so the gate
       stays aligned with the horizon; only the shine is widened to read. */
    .keris-shine {
        width: 16%;
    }
}

@media (max-width: 520px) {
    :root {
        --shell: calc(100% - 32px);
    }

    .btn {
        padding: 13px 26px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .motes,
    .orbs {
        display: none;
    }
}
