/* ==========================================================================
   Home page: night lantern hero, about + important dates, updates.
   Builds on the tokens and glass utilities in site.css.
   ========================================================================== */

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

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    /* the canvas draws this same crop (js/hero-scene.js); keep the positions in step */
    background:
        url("../images/hero-background-02.webp") 62% 100% / cover no-repeat,
        linear-gradient(160deg, var(--night) 0%, #2E1450 55%, #3A1A5E 100%);
}

/* phones: shift the crop right so the lanterns stay in frame */
@media (max-width: 759px) {
    .hero { background-position: 80% 100%, 0 0; }
}

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

/* keeps the copy readable where the scene is busiest */
.hero-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(62% 62% at 22% 40%, rgba(34, 16, 58, .72) 0%, rgba(34, 16, 58, .4) 55%, rgba(34, 16, 58, 0) 100%);
    pointer-events: none;
}

.hero .inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: end;
    gap: 48px;
    padding-block: 96px 112px;
}

.hero-copy { min-width: 0; }
.hero .eyebrow { color: var(--gold); }

.hero h1 {
    margin-top: 18px;
    font-size: clamp(2.6rem, 5.6vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -.03em;
}

.hero .theme {
    margin-top: 10px;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 500;
    color: var(--on-dark);
}

/* "Illuminating" in a signature script, as hand-lettered on the save-the-date */
.hero .theme { margin-top: 22px; }

.hero .theme .script {
    margin-right: .06em;
    font-family: "Allison", "Brush Script MT", cursive;
    font-size: 2.5em;
    font-style: normal;
    font-weight: 400;
    line-height: 0;
    letter-spacing: 0;
    color: var(--secondary);
    vertical-align: -.06em;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin-top: 28px;
    font-size: 1.1rem;
    font-weight: 600;
}

.facts span { display: inline-flex; align-items: center; gap: 9px; }
.facts svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
.facts .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.hero .lede { max-width: 62ch; margin-top: 22px; color: var(--on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* next milestone, worked out on the server in Bangkok time */
.next-card { padding: 24px; border-radius: var(--radius); }

.next-card .label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
}

.next-card .count { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }

.next-card .count b {
    font: 700 4.2rem/0.85 var(--font-display);
    font-variant-numeric: tabular-nums;
}

.next-card .count span { font-size: 1.05rem; font-weight: 600; color: var(--on-dark); }
.next-card .what { margin-top: 14px; font-size: 1.05rem; font-weight: 700; }
.next-card time { display: block; margin-top: 2px; font-size: .95rem; color: var(--on-dark); }

.next-card .progress {
    height: 6px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, .14);
}

.next-card .progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--gold));
}

.next-card .steps { margin-top: 8px; font-size: .78rem; color: var(--on-dark); }

/* -------------------------------------------------------------- about --- */

.about { position: relative; overflow: hidden; padding-block: 96px; }

/* colour behind the glass, so the frost has something to blur */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.about .b1 { width: 380px; height: 380px; right: 4%; top: 40px; background: rgba(165, 77, 194, .55); }
.about .b2 { width: 300px; height: 300px; right: 22%; bottom: 20px; background: rgba(255, 123, 0, .40); }
.about .b3 { width: 260px; height: 260px; left: -80px; top: 30%; background: rgba(254, 164, 0, .22); }

.about .inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
    gap: 56px;
}

.about .eyebrow { color: var(--primary-ink); }

.about h2 {
    margin-top: 14px;
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.025em;
}

.about .copy { display: grid; gap: 14px; max-width: 66ch; margin-top: 20px; color: var(--muted); }
.about .copy strong { color: var(--ink); }

.topics h3 { margin-top: 40px; font-size: 1.2rem; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding: 0; list-style: none; }

.chips li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 12px;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 600;
    color: var(--primary-deep);
}

.chips .hl-icon { width: 26px; height: 26px; flex: none; }

/* holds the shared icon gradient; takes no space */
svg.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.dates-card { padding: 28px; border-radius: var(--radius); }
.dates-card h2 { font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; color: var(--primary-ink); }

.date-group { margin-top: 22px; }

.date-group h3 {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--secondary-ink);
}

.date-group dl { margin: 6px 0 0; }

.date-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-block: 11px;
    border-bottom: 1px solid rgba(73, 33, 101, .12);
}

.date-row:last-child { border-bottom: 0; }
.date-row dt { font-size: .95rem; color: var(--muted); }
.date-row dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.date-row.is-next dt { font-weight: 600; color: var(--ink); }
.date-row.is-next dd { color: var(--secondary-ink); }

.date-row .pill {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 99px;
    background: var(--secondary);
    color: var(--primary-deep);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    vertical-align: 1px;
}

.dates-card .btn { margin-top: 24px; }
.dates-card .opens { margin-top: 10px; text-align: center; font-size: .82rem; color: var(--muted); }

/* ------------------------------------------------------------ updates --- */

.updates {
    position: relative;
    overflow: hidden;
    padding-block: 88px;
    color: #fff;
    background: linear-gradient(160deg, #5A1F86 0%, #6E2A9C 50%, #7A2F9E 100%);
}

.updates .b1 { width: 420px; height: 420px; left: -120px; top: -80px; background: rgba(255, 123, 0, .35); }
.updates .b2 { width: 380px; height: 380px; right: -60px; bottom: -120px; background: rgba(254, 164, 0, .28); }
.updates .b3 { width: 300px; height: 300px; left: 45%; top: 30%; background: rgba(214, 120, 255, .30); }

.updates .inner { position: relative; }

.updates-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}

.updates h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -.025em; }
.all-link { padding: 10px 18px; border-radius: 999px; font-size: .92rem; font-weight: 700; text-decoration: none; }

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(34, 16, 58, .42);
    text-decoration: none;
    transition: transform .25s;
}

.card:hover { transform: translateY(-4px); }
.card .media { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }

/* drawn covers for announcements without photography */
.cover { display: grid; place-items: center; width: 100%; height: 100%; }
.cover-abstracts { background: radial-gradient(80% 90% at 20% 10%, #FFB23F, transparent 60%), linear-gradient(135deg, #FF7B00, #A54DC2); }
.cover-journey { background: radial-gradient(70% 90% at 85% 15%, #FEA400, transparent 55%), linear-gradient(135deg, #492165, #A54DC2 70%); }

.cover .tile {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 26px;
    color: #fff;
}

.cover .tile svg { width: 44px; height: 44px; }

.card .body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }

.card .tag {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .14);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
}

.card h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.card p { font-size: .95rem; color: var(--on-dark); }
.card .more { margin-top: auto; padding-top: 6px; font-size: .9rem; font-weight: 700; color: var(--gold); }
.card .more span { display: inline-block; transition: transform .2s; }
.card:hover .more span { transform: translateX(4px); }

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

@media (max-width: 980px) {
    .hero .inner, .about .inner { grid-template-columns: minmax(0, 1fr); }
    .next-card, .dates-card { max-width: 440px; }
    .cards { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
    .hero-shade { background: linear-gradient(180deg, rgba(34, 16, 58, .55) 0%, rgba(34, 16, 58, .72) 55%, rgba(34, 16, 58, .35) 100%); }
}

@media (max-width: 640px) {
    /* phones: the countdown card goes; the dates card below still marks what is next */
    .next-card { display: none; }

    .hero .inner { padding-block: 56px 64px; }
    .facts { font-size: 1rem; }
    .facts .dot { display: none; }
    .about, .updates { padding-block: 64px; }
    .dates-card, .next-card { max-width: none; padding: 22px; }
}
