:root {
  color-scheme: light dark;
  /* brand (same in both themes) */
  --lime: #DCFF1E;
  --indigo: #3A3594;
  --indigo-deep: #27236B;
  --lavender: #B07CF7;
  --lav-soft: #E9DDFD;
  --on-lime: #111114;          /* text on lime */
  --on-indigo: #FFFFFF;        /* text on indigo */
  /* theme tokens: light */
  --bg: #EDEDF0;
  --surface: #FFFFFF;
  --surface-2: #E3E3EA;
  --text: #111114;
  --muted: #55555F;
  --line: #D4D4DC;
  --border: #111114;           /* bold outline style */
  --accent-text: #3A3594;      /* indigo used as text */
  --shadow: #3A3594;
  --hl: #DCFF1E;               /* marker highlight behind headings */
  --band: #111114;             /* dark strips (latest, footer) */
  --band-surface: #1E1E26;
  --band-line: #3A3A46;
  --band-text: #FFFFFF;
  --band-muted: #CFCFDA;
  --solid-bg: #111114;         /* solid buttons / selected chips */
  --solid-text: #FFFFFF;
  --topbar: rgba(237, 237, 240, .92);
  --pattern-a: rgba(220, 255, 30, .55);
  --pattern-b: rgba(176, 124, 247, .35);
  --logo-filter: none;         /* black logos */
  --radius: 4px;
  --font: "Noto Sans Lao", "Montserrat", system-ui, sans-serif;
  --display: "Montserrat", "Noto Sans Lao", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0E13;
    --surface: #1A1A22;
    --surface-2: #14141B;
    --text: #F2F2F6;
    --muted: #B9B9C6;
    --line: #2E2E3A;
    --border: #4B4B5C;
    --accent-text: #BDB8FF;
    --shadow: #5B55D6;
    --hl: rgba(220, 255, 30, .32);
    --band: #07070B;
    --band-surface: #1A1A22;
    --band-line: #33333F;
    --solid-bg: #F2F2F6;
    --solid-text: #111114;
    --topbar: rgba(14, 14, 19, .9);
    --pattern-a: rgba(220, 255, 30, .16);
    --pattern-b: rgba(176, 124, 247, .22);
    --logo-filter: invert(1);  /* black logos become white */
    --lav-soft: #2C2550;
  }
  .tag { color: #DCD6FF; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--lime); padding: 8px 12px; z-index: 99; }

/* diamond pattern used as decoration */
.pattern, .hero, .band-indigo {
  background-image:
    linear-gradient(45deg, transparent 46%, var(--pattern-a) 46% 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, var(--pattern-b) 46% 54%, transparent 54%);
  background-size: 56px 56px;
}

/* top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--topbar); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand, .foot-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: auto; filter: var(--logo-filter); }
.brand .logo-event { height: 40px; }
.brand .logo-muan { height: 36px; }
.brand .x, .foot-brand .x { font-family: var(--display); font-weight: 500; font-size: 1.3rem; line-height: 1; color: var(--text); }
.foot-brand img { height: 48px; width: auto; filter: invert(1); }
.foot-brand .x { color: #fff; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--lime); color: var(--on-lime); }
.menu-btn { display: none; font: inherit; background: var(--solid-bg); color: var(--solid-text); border: 0; border-radius: 999px; padding: 6px 16px; }

/* buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--border); color: var(--text); transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--on-lime); border-color: var(--on-lime); }
.btn-line { background: transparent; }
.btn-ink { background: var(--solid-bg); color: var(--solid-text); border-color: var(--solid-bg); }

/* hero */
.hero { background-color: var(--bg); border-bottom: 2px solid var(--border); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 56px 0 64px; }
.hero-copy { background: var(--bg); padding: 28px; border: 2px solid var(--border); box-shadow: 8px 8px 0 var(--shadow); }
.h-kicker { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(1rem, 2vw, 1.25rem); letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text); }
.h-main { display: inline; font-size: clamp(1.9rem, 4.6vw, 3.3rem); font-weight: 800; background: linear-gradient(transparent 55%, var(--hl) 55%); }
.hero-en { font-family: var(--display); font-weight: 700; color: var(--muted); margin: 8px 0 20px; }
.facts { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 6px; }
.facts li { display: grid; grid-template-columns: 90px 1fr; gap: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.facts b { color: var(--accent-text); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art img { border: 2px solid var(--border); box-shadow: -8px 8px 0 var(--lime); }
.status { display: inline-flex; align-items: center; gap: 8px; background: #111114; color: var(--lime); border: 1px solid var(--border); font-weight: 700; padding: 4px 14px; border-radius: 999px; margin: 0 0 14px; font-size: .9rem; }
.status.live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* bands & sections */
.sec { padding: 72px 0; }
.sec-tint { background: var(--surface-2); }
.band-ink { background: var(--band); color: var(--band-text); padding: 48px 0; }
.band-indigo { background-color: var(--indigo); color: var(--on-indigo); }
.eyebrow { font-family: var(--display); font-weight: 800; font-size: .9rem; letter-spacing: .03em; color: var(--accent-text); margin: 0 0 6px; }
.eyebrow-lime { color: var(--lime); }
.lead { font-size: 1.08rem; color: inherit; max-width: 70ch; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-head h2 { margin: 0; }
.more { color: var(--lime); font-weight: 700; text-decoration: none; }

/* latest rail: arrows instead of a scrollbar */
.rail-tools { display: flex; align-items: center; gap: 10px; }
.rail-btn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--band-line); background: transparent; color: var(--band-text);
  display: inline-grid; place-items: center; cursor: pointer; padding: 0; transition: background .15s, color .15s, border-color .15s, opacity .15s; }
.rail-btn svg { width: 18px; height: 18px; }
.rail-btn:hover:not(:disabled) { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.rail-btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.rail-btn:disabled { opacity: .3; cursor: default; }
.rail-tools.no-scroll .rail-btn { display: none; }
.rail-tools .more { margin-right: 6px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 0 6px; }
.rail::-webkit-scrollbar { display: none; }
.rail .card { scroll-snap-align: start; }
.band-ink .card { background: var(--band-surface); color: var(--band-text); border-color: var(--band-line); }
.band-ink .card:hover { box-shadow: 6px 6px 0 var(--lime); }
.band-ink .card .img { border-color: var(--band-line); }
.band-ink .card .meta, .band-ink .card p { color: var(--band-muted); }
.rail-dots { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.rail-dots span { width: 6px; height: 6px; border-radius: 999px; background: var(--band-line); transition: width .2s, background .2s; }
.rail-dots span.on { width: 22px; background: var(--lime); }
@media (max-width: 960px) { .rail { grid-auto-columns: calc((100% - 16px) / 2.15); } }
@media (max-width: 560px) { .rail { grid-auto-columns: 82%; } .rail-btn { width: 38px; height: 38px; } }

/* about */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--surface); border: 2px solid var(--border); padding: 20px; }
.stat:nth-child(odd) { background: var(--lime); color: var(--on-lime); border-color: var(--on-lime); }
.stat b { display: block; font-family: var(--display); font-size: 2.6rem; font-weight: 900; line-height: 1; color: var(--accent-text); }
.stat:nth-child(odd) b { color: var(--indigo); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.pillar { border-top: 3px solid var(--accent-text); padding-top: 8px; }
.pillar b { display: block; color: var(--accent-text); font-size: 1.15rem; }
.pillar span { color: var(--muted); font-size: .9rem; }

/* tracks */
.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.track { background: var(--surface); border: 2px solid var(--border); padding: 22px; }
.track:nth-child(2) { background: var(--indigo); color: var(--on-indigo); border-color: var(--indigo); }
.track:nth-child(2) .torg { color: var(--lime); }
.track h3 { font-size: 1.15rem; }
.track ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.track .torg { display: block; font-family: var(--display); font-weight: 800; font-size: .82rem; color: var(--accent-text); }
.track li { font-size: .95rem; line-height: 1.6; }

/* agenda */
.tabs { display: inline-flex; border: 2px solid var(--border); border-radius: 999px; overflow: hidden; margin: 12px 0 24px; }
.tabs button { font: inherit; font-weight: 700; padding: 8px 20px; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--solid-bg); color: var(--solid-text); }
.day-head { margin-bottom: 12px; }
.day-head b { font-family: var(--display); font-weight: 900; font-size: 1.3rem; }
.day-head span { display: block; color: var(--muted); font-family: var(--display); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.slot { display: grid; grid-template-columns: 130px 1fr auto; gap: 16px; align-items: center; padding: 14px 12px; border-top: 1px solid var(--line); }
.slot time { font-family: var(--display); font-weight: 800; color: var(--accent-text); }
.slot .t { font-weight: 700; }
.slot .by { display: block; font-family: var(--display); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.slot.break { color: var(--muted); }
.slot.break .t { font-weight: 400; }
.slot.hl { background: var(--lime); color: var(--on-lime); border: 2px solid var(--on-lime); }
.slot.hl time, .slot.hl .by { color: var(--indigo-deep); }
.slot .go { font-size: .85rem; font-weight: 700; text-decoration: none; background: var(--solid-bg); color: var(--solid-text); padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.slot.hl .go { background: var(--indigo); color: #fff; }
.d2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.d2 .box { border: 2px solid var(--indigo); padding: 22px; background: var(--surface); }
.d2 .box:nth-child(1), .d2 .box:nth-child(4) { background: var(--indigo); color: var(--on-indigo); }
.d2 .k { font-family: var(--display); font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.d2 .box:nth-child(1) .k, .d2 .box:nth-child(4) .k { color: var(--lime); }
.d2 h3 { font-size: 1.5rem; margin: 6px 0; }

/* chips + grid */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.chip { font: inherit; font-weight: 700; font-size: .9rem; padding: 6px 16px; border-radius: 999px; border: 2px solid var(--border); background: transparent; color: var(--text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--solid-bg); color: var(--solid-text); border-color: var(--solid-bg); }
.chip small { opacity: .7; margin-left: 4px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--surface); color: var(--text); border: 2px solid var(--border); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--shadow); }
.card .img { aspect-ratio: 4 / 5; overflow: hidden; border-bottom: 2px solid var(--border); background: var(--surface-2); }
.rail .card .img { aspect-ratio: 16 / 10; }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 1.05rem; line-height: 1.5; margin: 0; }
.card p { margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.65; }
.meta { font-size: .82rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag { font-family: var(--display); font-weight: 800; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 2px; background: var(--lav-soft); color: var(--indigo-deep); }
.tag.recap { background: var(--lime); color: var(--on-lime); }
.tag.espresso { background: var(--indigo); color: #fff; }

/* espresso */
.eps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.ep { background: var(--bg); color: var(--text); border: 2px solid var(--border); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.ep .n { font-family: var(--display); font-weight: 900; font-size: 2rem; color: var(--accent-text); line-height: 1; }
.ep .g { font-weight: 800; font-size: 1.1rem; }
.ep .p { font-size: .85rem; color: var(--muted); }
.ep .soon { margin-top: auto; align-self: flex-start; font-size: .8rem; font-weight: 700; background: var(--lime); color: var(--on-lime); padding: 2px 10px; border-radius: 999px; }
.ep a.soon { text-decoration: none; background: var(--solid-bg); color: var(--solid-text); }

/* people */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 24px 0 32px; }
.person { border-left: 4px solid var(--lavender); background: var(--surface); padding: 14px 16px; }
.person b { display: block; }
.person span { font-size: .88rem; color: var(--muted); line-height: 1.5; display: block; }
.orgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0; border-top: 2px solid var(--border); }
.org { padding: 16px 4px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; }
.org-logo { height: 52px; display: flex; align-items: center; justify-content: center; }
.org-logo img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; filter: var(--logo-filter); }
.org-text { display: grid; gap: 2px; }
.org b { font-family: var(--display); font-weight: 800; }
.org span { font-size: .88rem; color: var(--muted); }

/* gallery */
.gallery { columns: 3 260px; column-gap: 12px; margin-top: 24px; }
.gallery button { all: unset; cursor: zoom-in; display: block; margin-bottom: 12px; break-inside: avoid; border: 2px solid var(--border); }
.gallery button:focus-visible { outline: 3px solid var(--indigo); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,14,.94); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 82vh; width: auto; border: 2px solid #fff; }
.lb-cap { color: #fff; text-align: center; }
.lb-close { position: absolute; top: 12px; right: 16px; font-size: 2rem; background: none; border: 0; color: #fff; cursor: pointer; }

/* booth */
.booth { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: center; }
.booth img { border: 2px solid var(--border); }

/* faq */
details { background: var(--surface); border: 2px solid var(--border); margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; font-family: var(--display); font-weight: 900; }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 18px 16px; }
.venue { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 2px solid var(--border); padding-top: 18px; }
.venue p { margin: 0; }

/* partners */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.pgroup h3 { font-family: var(--display); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.pgroup ul { margin: 0; padding: 0; list-style: none; }
.pgroup li { padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 500; }

/* article */
.article { padding: 40px 0 80px; }
.article .wrap { width: min(760px, 100% - 32px); }
.back { display: inline-block; font-weight: 700; text-decoration: none; margin-bottom: 20px; }
.article h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
.article .sess { background: var(--lime); color: var(--on-lime); border: 2px solid var(--on-lime); padding: 12px 16px; margin: 16px 0; }
.article .sess b { display: block; }
.article .sess span { font-size: .9rem; }
.article figure { margin: 24px 0; }
.article figure img { border: 2px solid var(--border); width: 100%; }
.article .content h2 { font-size: 1.3rem; margin-top: 1.6em; padding-left: 12px; border-left: 5px solid var(--accent-text); }
.article .content ul { padding-left: 1.2em; }
.article .content li { margin-bottom: 6px; }
.article blockquote { margin: 1.4em 0; padding: 18px 22px; background: var(--indigo); color: #fff; font-size: 1.15rem; font-weight: 700; line-height: 1.6; }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 24px 0; }
.album img { border: 2px solid var(--border); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.share { display: flex; gap: 10px; flex-wrap: wrap; margin: 32px 0; padding-top: 20px; border-top: 2px solid var(--border); }
.related { margin-top: 40px; }
.related .grid { grid-template-columns: repeat(2, 1fr); }

/* footer */
.footer { background: var(--band); color: var(--band-text); padding: 40px 0; }
.foot-in { display: grid; gap: 6px; }
.footer .small { font-size: .85rem; color: var(--band-muted); }

/* responsive */
@media (max-width: 960px) {
  .hero-in, .about, .booth { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
  .booth img { max-width: 360px; }
  .tracks, .eps, .partners { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .menu-btn { display: block; }
  .brand { gap: 8px; }
  .brand .logo-event { height: 32px; }
  .brand .logo-muan { height: 29px; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 2px solid var(--border); padding: 8px 16px 16px; flex-direction: column; }
  .nav.open { display: flex; }
  .hero-in { padding: 28px 0 40px; gap: 28px; }
  .hero-copy { padding: 20px; box-shadow: 5px 5px 0 var(--shadow); }
  .grid, .related .grid, .d2 { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .slot { grid-template-columns: 1fr; gap: 4px; }
  .slot .go { justify-self: start; }
  .sec { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
