/* ===== Liên hoan Múa rối Quốc tế 2026 — palette lấy từ KV ===== */
:root {
  --navy-950: #050c2b;
  --navy-900: #081340;
  --navy-800: #0d1d57;
  --navy-700: #16296f;
  --gold-100: #fff3d1;
  --gold-300: #f7d98b;
  --gold-400: #efc25c;
  --gold-500: #d9a03a;
  --gold-700: #9c6a1c;
  --red: #d7263d;
  --ink: #eef1ff;
  --ink-2: #b9c1e6;
  --ink-3: #8590c2;
  --line: rgba(239, 194, 92, .22);
  --card: linear-gradient(160deg, rgba(28, 46, 120, .55), rgba(10, 20, 66, .7));
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .6);
  --gold-text: linear-gradient(180deg, #fff6d6 0%, #f7d98b 35%, #e0a842 70%, #b47a22 100%);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(53, 86, 200, .25), transparent 60%),
    radial-gradient(900px 700px at 0% 40%, rgba(40, 70, 180, .2), transparent 60%),
    var(--navy-900);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-300); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0 0 1em; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold-400); color: var(--navy-950); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
  background: rgba(6, 14, 50, .9);
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(6, 14, 50, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { height: 100%; width: min(1240px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; letter-spacing: .04em; font-size: 15px; }
.nav__brand img { width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle, rgba(247,217,139,.35), transparent 70%); }
.nav__brand b { color: var(--gold-400); }
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav__menu a:hover, .nav__menu a.is-active { color: var(--gold-100); background: rgba(239, 194, 92, .12); }
.nav__menu .nav__cta { border: 1px solid var(--gold-500); color: var(--gold-300); margin-left: 6px; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: var(--gold-300); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px;
    background: rgba(6, 14, 50, .96);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav__menu a { padding: 14px 12px; font-size: 16px; border-radius: 10px; }
  .nav__menu .nav__cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-950); padding-top: var(--nav-h); }
.hero__kv { width: 100%; height: auto; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 18%;
  background: linear-gradient(to bottom, transparent, var(--navy-900));
  pointer-events: none;
}

/* ---------- Countdown bar ---------- */
.bar { position: relative; z-index: 2; margin-top: -40px; }
.bar__inner {
  width: min(1180px, 100% - 32px); margin-inline: auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 20px 28px;
  background: linear-gradient(135deg, rgba(20, 38, 110, .92), rgba(8, 18, 64, .95));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
}
.bar__label strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--gold-100); }
.countdown { display: flex; justify-content: center; gap: 10px; }
.countdown div { min-width: 72px; text-align: center; padding: 8px 6px; border-radius: 12px; background: rgba(5, 12, 43, .55); border: 1px solid rgba(239, 194, 92, .15); }
.countdown b { display: block; font-family: var(--serif); font-size: 32px; line-height: 1.1; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.bar__actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .bar { margin-top: -24px; }
  .bar__inner { grid-template-columns: 1fr; text-align: center; padding: 20px 16px; gap: 16px; }
  .bar__actions { justify-content: center; }
  .countdown div { min-width: 0; flex: 1; }
  .countdown b { font-size: 28px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn--gold { color: #2b1a02; background: linear-gradient(180deg, #ffe7a3, #e9b44c 55%, #c8902c); box-shadow: 0 8px 24px -8px rgba(233, 180, 76, .65), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(233, 180, 76, .8), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn--ghost { color: var(--gold-100); border: 1px solid var(--gold-500); background: rgba(239, 194, 92, .06); }
.btn--ghost:hover { background: rgba(239, 194, 92, .16); }

/* ---------- Section commons ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 120px) 0; overflow-x: clip; }
.section__head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section__note { color: var(--ink-3); font-size: 14px; margin: 14px 0 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-400); margin: 0 0 12px; }
.eyebrow::before, .section__head .eyebrow::after { content: "✦"; margin-right: 10px; font-size: 10px; vertical-align: 2px; color: var(--gold-500); }
.section__head .eyebrow::after { margin: 0 0 0 10px; }
.title { font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 5vw, 54px); letter-spacing: -.01em; color: var(--ink); }
.title em { font-style: italic; font-weight: 500; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Intro ---------- */
.intro__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro__text .title { margin-bottom: 24px; }
.intro__text p:not(.eyebrow):not(.lead) { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 32px 0 0; }
.facts div { padding: 16px 18px; border-radius: 14px; background: rgba(13, 29, 87, .55); border: 1px solid var(--line); }
.facts dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.intro__art { position: relative; display: grid; place-items: center; }
.intro__art img { position: relative; width: min(440px, 90%); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); animation: bob 6s ease-in-out infinite; }
.halo { position: absolute; width: 110%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(247, 217, 139, .35) 0%, rgba(80, 120, 255, .18) 40%, transparent 70%); }
@keyframes bob { 50% { transform: translateY(-14px) rotate(-1.5deg); } }

.stats { list-style: none; padding: 0; margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats li { text-align: center; padding: 28px 8px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats b { display: block; font-family: var(--serif); font-size: clamp(40px, 6vw, 64px); line-height: 1; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { display: block; margin-top: 8px; color: var(--ink-2); font-size: 14px; }

@media (max-width: 860px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__art { order: -1; }
  .intro__art img { width: min(300px, 75%); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Goals ---------- */
.goals { overflow: hidden; background: linear-gradient(180deg, transparent, rgba(5, 12, 43, .55) 20%, rgba(5, 12, 43, .55) 80%, transparent); }
.goals__deco { position: absolute; pointer-events: none; opacity: .9; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.goals__deco--l { width: 260px; left: -70px; bottom: 6%; }
.goals__deco--r { width: 280px; right: -80px; top: 8%; }
.goals__cols { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.col-title { font-family: var(--serif); font-size: 26px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: baseline; gap: 12px; color: var(--gold-100); }
.col-title span { font-size: 15px; color: var(--gold-500); letter-spacing: .1em; }
.goal { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px 22px 8px; margin-bottom: 16px; transition: transform .3s, border-color .3s; }
.goal:hover { transform: translateY(-3px); border-color: rgba(239, 194, 92, .5); }
.goal__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(247, 217, 139, .25), rgba(217, 160, 58, .08)); border: 1px solid rgba(239, 194, 92, .35); }
.goal__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-300); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.goal h4 { font-size: 18px; font-weight: 600; margin: 4px 0 8px; color: var(--ink); }
.goal p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 1240px) { .goals__deco { opacity: .25; } }
@media (max-width: 860px) { .goals__cols { grid-template-columns: 1fr; } .goals__deco { display: none; } }

/* ---------- Troupes ---------- */
.flags-arc { width: min(640px, 100%); margin: 0 auto 28px; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .4)); }
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.tabs button { font: inherit; font-weight: 600; font-size: 15px; color: var(--ink-2); background: rgba(13, 29, 87, .6); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; cursor: pointer; transition: all .2s; min-height: 44px; }
.tabs button span { display: inline-block; margin-left: 6px; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: rgba(239, 194, 92, .15); color: var(--gold-300); }
.tabs button[aria-selected="true"] { color: #2b1a02; background: linear-gradient(180deg, #ffe7a3, #e2aa45); border-color: transparent; }
.tabs button[aria-selected="true"] span { background: rgba(43, 26, 2, .15); color: #2b1a02; }
.troupe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.troupe { padding: 24px; display: flex; flex-direction: column; transition: transform .3s, border-color .3s; }
.troupe:hover { transform: translateY(-4px); border-color: rgba(239, 194, 92, .55); }
.troupe[hidden] { display: none; }
.troupe__head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.troupe__country { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); font-weight: 600; }
.troupe__name { font-size: 17px; font-weight: 600; color: var(--ink); }
.troupe__show { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold-100); margin-bottom: 10px; line-height: 1.35; }
.troupe__desc { color: var(--ink-2); font-size: 14.5px; flex: 1; }
.tags { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(239, 194, 92, .1); border: 1px solid rgba(239, 194, 92, .25); color: var(--gold-300); }

.flag { width: 32px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 4px 10px rgba(0, 0, 0, .35); flex-shrink: 0; }
.flag--lg { width: 48px; border-radius: 6px; }
.flag--org { display: grid; place-items: center; font-size: 15px; color: #2b1a02; background: linear-gradient(180deg, #ffe7a3, #d9a03a); }

/* ---------- Schedule timeline ---------- */
.schedule { overflow: hidden; }
.schedule__deco { position: absolute; width: 420px; right: -120px; top: 60px; opacity: .2; pointer-events: none; }
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 920px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 63px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--gold-500), rgba(217, 160, 58, .1)); }
.tl-day { display: grid; grid-template-columns: 128px 1fr; gap: 20px; margin-bottom: 20px; position: relative; }
.tl-date { text-align: center; padding-top: 6px; position: relative; z-index: 1; }
.tl-date b { display: grid; place-items: center; width: 72px; height: 72px; margin: 4px auto 4px; border-radius: 50%; font-family: var(--serif); font-size: 30px; color: #2b1a02; background: radial-gradient(circle at 35% 30%, #fff1c4, #e5ae48 60%, #b47a22); box-shadow: 0 0 0 6px var(--navy-900), 0 10px 24px -6px rgba(233, 180, 76, .6); }
.tl-wd, .tl-date > span { display: block; font-size: 12px; color: var(--ink-3); letter-spacing: .06em; }
.tl-wd { color: var(--gold-300); font-weight: 600; }
.tl-label { display: inline-block; margin-top: 6px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--red); color: #fff; }
.tl-label--now { background: #1fa971; }
.tl-body { padding: 20px 24px; }
.tl-time { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--gold-400); letter-spacing: .12em; }
.tl-body ul { list-style: none; padding: 0; margin: 0; }
.tl-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.tl-item + .tl-item { border-top: 1px dashed rgba(239, 194, 92, .2); }
.tl-item .flag { margin-top: 4px; }
.tl-title { margin: 0; font-weight: 600; font-size: 16.5px; color: var(--ink); line-height: 1.4; }
.tl-who { margin: 2px 0 0; font-size: 14px; color: var(--ink-3); }
.tl-item--special .tl-title { font-family: var(--serif); font-size: 19px; color: var(--gold-100); }
.tl-day.is-past { opacity: .55; }
.tl-day.is-today .tl-body { border-color: var(--gold-400); box-shadow: 0 0 0 1px var(--gold-400), var(--shadow); }
@media (max-width: 640px) {
  .timeline::before { left: 35px; }
  .tl-day { grid-template-columns: 72px 1fr; gap: 12px; }
  .tl-date b { width: 52px; height: 52px; font-size: 22px; box-shadow: 0 0 0 5px var(--navy-900); }
  .tl-date > span:last-of-type { display: none; }
  .tl-wd { font-size: 11px; }
  .tl-label { font-size: 9px; padding: 2px 6px; letter-spacing: .04em; }
  .tl-body { padding: 14px 16px; }
}

/* ---------- Exchange ---------- */
.exchange { background: linear-gradient(180deg, transparent, rgba(120, 60, 20, .12) 30%, rgba(5, 12, 43, .4) 100%); }
.exchange-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.ex-day { padding: 0; overflow: hidden; }
.ex-day header { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 20px; background: linear-gradient(90deg, rgba(239, 194, 92, .22), rgba(239, 194, 92, .04)); border-bottom: 1px solid var(--line); }
.ex-day header b { font-family: var(--serif); font-size: 26px; color: var(--gold-100); }
.ex-day header span { font-size: 13px; color: var(--gold-300); font-weight: 600; }
.ex-day ul { list-style: none; margin: 0; padding: 6px 20px 14px; }
.ex-day li { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 12px 0; }
.ex-day li + li { border-top: 1px dashed rgba(239, 194, 92, .2); }
.ex-day time { font-size: 13px; font-weight: 700; color: var(--gold-400); letter-spacing: .04em; }
.ex-day li { grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
.ex-day li time { grid-column: 1 / -1; }
.ex-day li span { font-weight: 500; font-size: 15px; line-height: 1.4; }
.ex-day.is-today { border-color: var(--gold-400); }

/* ---------- Workshop ---------- */
.workshop { overflow: hidden; }
.workshop__deco { position: absolute; width: 380px; left: -110px; top: 40px; opacity: .2; pointer-events: none; transform: scaleX(-1); }
.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.ws { padding: 22px; display: flex; flex-direction: column; transition: transform .3s, border-color .3s; }
.ws:hover { transform: translateY(-4px); border-color: rgba(239, 194, 92, .55); }
.ws__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.ws__date { font-size: 13px; color: var(--ink-3); }
.ws__date b { font-family: var(--serif); font-size: 20px; color: var(--gold-100); margin-right: 4px; }
.ws__type { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(215, 38, 61, .18); color: #ff9aa8; border: 1px solid rgba(215, 38, 61, .4); }
.ws h3 { font-family: var(--serif); font-size: 21px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.ws p { color: var(--ink-2); font-size: 14.5px; }
.ws p:not(.ws__who) { flex: 1; }
.ws__who { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--gold-300) !important; }
.ws__who .flag { width: 26px; }

/* ---------- Venue ---------- */
.venue__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.venue__text .title { margin-bottom: 18px; }
.venue__list { list-style: none; padding: 0; margin: 0 0 28px; }
.venue__list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.venue__list b { display: inline-block; min-width: 92px; color: var(--gold-300); font-weight: 600; }
.venue__map { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--navy-800); }
.venue__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.9) contrast(1.02); }
@media (max-width: 860px) { .venue__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 40px; text-align: center; background: linear-gradient(180deg, transparent, var(--navy-950) 40%); border-top: 1px solid var(--line); }
.footer__title { width: min(520px, 90%); margin: 0 auto 12px; }
.footer__tag { color: var(--ink-2); margin-bottom: 40px; }
.footer__orgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer__orgs h3 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 10px; }
.footer__orgs p { color: var(--ink-2); font-size: 14px; margin: 0; }
.footer__copy { margin: 28px 0 0; font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) { .footer__orgs { grid-template-columns: 1fr; } }

/* ---------- Tinh chỉnh ---------- */
.tl-wd, .tl-date > span { width: max-content; margin-inline: auto; padding: 0 6px; background: var(--navy-900); border-radius: 6px; }
.ws__top { flex-direction: column; align-items: flex-start; gap: 10px; }

/* =====================================================
   ANIMATION
   ===================================================== */

/* Thanh tiến trình cuộn */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold-700), var(--gold-300), #fff6d6); box-shadow: 0 0 12px rgba(247, 217, 139, .7); pointer-events: none; }

/* Hero: KV hiện dần + zoom nhẹ, bụi vàng lấp lánh */
.hero { overflow: hidden; }
.hero__kv { animation: kvIn 1.8s cubic-bezier(.2, .7, .2, 1) both; transform-origin: 50% 60%; }
@keyframes kvIn { from { opacity: 0; transform: scale(1.06); filter: brightness(.6); } to { opacity: 1; transform: none; filter: none; } }
.sparkles { position: absolute; inset: var(--nav-h) 0 0; pointer-events: none; z-index: 1; }
.sparkles i { position: absolute; width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%; background: #fff3c4; box-shadow: 0 0 6px 2px rgba(247, 217, 139, .8); opacity: 0; animation: twinkle var(--d, 4s) ease-in-out var(--delay, 0s) infinite; }
.sparkles i.star { background: none; box-shadow: none; width: auto; height: auto; color: #fff3c4; font-style: normal; font-size: var(--s, 10px); text-shadow: 0 0 8px rgba(247, 217, 139, .9); }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: translateY(0) scale(.4); } 40% { opacity: 1; transform: translateY(-10px) scale(1); } 70% { opacity: .5; transform: translateY(-22px) scale(.8); } }

/* Thanh đếm ngược trượt lên, số "lật" khi đổi */
.bar__inner { animation: barIn 1s cubic-bezier(.2, .7, .2, 1) .6s both; }
@keyframes barIn { from { opacity: 0; transform: translateY(30px); } }
.countdown b.tick { animation: flip .45s cubic-bezier(.3, .7, .3, 1); }
@keyframes flip { 0% { transform: rotateX(80deg); opacity: .2; } 100% { transform: none; opacity: 1; } }
.countdown div { perspective: 200px; }

/* Nút vàng: vệt sáng chạy qua */
.btn--gold { position: relative; overflow: hidden; isolation: isolate; }
.btn--gold::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%); transform: translateX(-120%); animation: shine 4.5s ease-in-out 2s infinite; }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* Chữ vàng trong tiêu đề lấp lánh */
.title em { background-size: 100% 200%; background-image: linear-gradient(180deg, #fff6d6 0%, #f7d98b 25%, #e0a842 45%, #fff1c4 55%, #e0a842 70%, #b47a22 100%); animation: goldShift 5s ease-in-out infinite alternate; }
@keyframes goldShift { from { background-position: 0 0; } to { background-position: 0 100%; } }

/* Xuất hiện so le cho các thẻ */
.reveal { transition-delay: calc(var(--i, 0) * 70ms); }
.reveal--zoom { transform: translateY(24px) scale(.96); }
.reveal--left { transform: translateX(-36px); }
.reveal--right { transform: translateX(36px); }
.reveal.is-in { transform: none; }

/* Hàng cờ phấp phới */
.flags-arc { animation: flagWave 5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes flagWave { 0%, 100% { transform: rotate(-1deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-6px); } }

/* Rối trang trí: lắc lư như được giật dây + parallax (biến --py do JS đặt) */
.goals__deco, .schedule__deco, .workshop__deco { translate: 0 var(--py, 0px); }
.goals__deco--l { animation: sway 7s ease-in-out infinite; transform-origin: 50% 0; }
.goals__deco--r { animation: sway 8s ease-in-out -2s infinite reverse; transform-origin: 50% 0; }
.schedule__deco { animation: sway 9s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes sway { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }

/* Chú Tễu vẫy chào khi hover */
.intro__art img { transition: filter .4s; cursor: pointer; }
.intro__art:hover img { animation: wiggle .9s ease-in-out; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)) brightness(1.08); }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-6deg) translateY(-8px); } 40% { transform: rotate(5deg) translateY(-12px); } 60% { transform: rotate(-4deg) translateY(-6px); } 80% { transform: rotate(2deg); } }
.halo { animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .75; } }

/* Thẻ: viền sáng theo con trỏ */
.card { position: relative; }
.troupe::before, .ws::before, .goal::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(247, 217, 139, .16), transparent 60%); }
.troupe:hover::before, .ws:hover::before, .goal:hover::before { opacity: 1; }
.troupe .flag--lg { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.troupe:hover .flag--lg { transform: rotate(-6deg) scale(1.12); }
.goal__icon { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), background .3s; }
.goal:hover .goal__icon { transform: rotate(-8deg) scale(1.1); background: linear-gradient(160deg, rgba(247, 217, 139, .45), rgba(217, 160, 58, .15)); }

/* Timeline: đường vàng "chảy" xuống theo cuộn */
.timeline::before { transform-origin: 50% 0; transform: scaleY(var(--tl, 0)); transition: transform .2s linear; }
.tl-day.is-in .tl-date b { animation: pop .7s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.tl-label { animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 6px rgba(215, 38, 61, 0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(215, 38, 61, .55); } }

/* Thống kê nảy nhẹ */
.stats.is-in b { animation: pop .8s cubic-bezier(.3, 1.6, .5, 1) both; }
.stats.is-in li:nth-child(2) b { animation-delay: .1s; }
.stats.is-in li:nth-child(3) b { animation-delay: .2s; }
.stats.is-in li:nth-child(4) b { animation-delay: .3s; }

/* Logo trên menu */
.nav__brand img { animation: spinIn 1.2s cubic-bezier(.3, 1.4, .5, 1) both; }
.nav__brand:hover img { animation: wiggle .9s ease-in-out; }
@keyframes spinIn { from { transform: rotate(-200deg) scale(0); } }

.troupe.pop-in { animation: cardIn .55s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 60ms) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.card.reveal { transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }

/* Section vừa được cuộn tới từ menu: tiêu đề trượt nhẹ vào */
.section.is-arrived .section__head, .section.is-arrived .intro__text, .section.is-arrived .venue__text { animation: arrive .9s cubic-bezier(.2, .7, .2, 1); }
@keyframes arrive { 0% { opacity: .2; transform: translateY(-28px); } 100% { opacity: 1; transform: none; } }

/* Menu mobile: các mục trượt xuống so le khi mở */
@media (max-width: 960px) {
  .nav__menu { transform-origin: 50% 0; transform: translateY(-12px) scaleY(.96); }
  .nav.is-open .nav__menu { transform: none; }
  .nav.is-open .nav__menu a { animation: menuIn .45s cubic-bezier(.2, .7, .2, 1) both; }
  .nav.is-open .nav__menu a:nth-child(2) { animation-delay: .04s; }
  .nav.is-open .nav__menu a:nth-child(3) { animation-delay: .08s; }
  .nav.is-open .nav__menu a:nth-child(4) { animation-delay: .12s; }
  .nav.is-open .nav__menu a:nth-child(5) { animation-delay: .16s; }
  .nav.is-open .nav__menu a:nth-child(6) { animation-delay: .2s; }
  .nav.is-open .nav__menu a:nth-child(7) { animation-delay: .24s; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-14px); } }

/* Mục tiêu & Ý nghĩa: 6 thẻ cao bằng nhau — 2 cột dùng chung một lưới, các hàng 1fr */
.goals__cols { grid-template-columns: 1fr 1fr; grid-template-rows: auto repeat(3, 1fr); grid-auto-flow: column; column-gap: 28px; row-gap: 16px; }
.goals__col { display: contents; }
.goals__cols > .goals__col > .col-title { grid-row: 1; margin-bottom: 2px; }
.goal { margin-bottom: 0; align-content: start; height: 100%; }
@media (max-width: 860px) {
  .goals__cols { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: auto; grid-auto-flow: row; }
  .goals__cols > .goals__col > .col-title { grid-row: auto; margin-top: 16px; }
}

/* Giao lưu: dùng flex để hàng cuối (thẻ lẻ) được căn giữa */
.exchange-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.ex-day { flex: 0 0 calc((100% - 3 * 18px) / 4); }
@media (max-width: 1125px) { .ex-day { flex-basis: calc((100% - 2 * 18px) / 3); } }
@media (max-width: 847px) { .ex-day { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 569px) { .ex-day { flex-basis: 100%; } }

/* Tiêu đề "Tài hoa kết nối năm châu" luôn trên một dòng */
.intro__text .title { white-space: nowrap; font-size: clamp(26px, 4vw, 48px); }
@media (max-width: 340px) { .intro__text .title { font-size: 24px; } }

/* Rối nền Workshop: hạ xuống để không bị cắt đầu */
.workshop__deco { top: 150px; left: -70px; width: 360px; }

/* Chặn tràn ngang trên iOS/iPadOS Safari (overflow-x trên body bị bỏ qua khi vuốt) — tránh header/menu bị trôi ngang */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
