/* ==========================================================================
   Nam Bình Xuyên Green Park — live event programme
   --------------------------------------------------------------------------
   Design note: this reads as a printed ceremony programme, not a SaaS page.
   Editorial serif for anything that is *said aloud* (titles, times, figures),
   a Vietnamese-drawn sans for anything that is *operated* (labels, controls).
   Colour comes from the brand mark itself — deep teal ground, lime accent —
   sitting on warm paper rather than another shade of the same green.
   ========================================================================== */

@import url("fonts.css");

/* ---------------------------------------------------------------- tokens */

:root {
  /* Sampled straight from the corporate mark on greenparkvp.vn */
  --teal-950: #01201F;
  --teal-900: #002E31;   /* the brand's own dark panel */
  --teal-800: #05403F;
  --teal-700: #0A676D;   /* wordmark teal */
  --teal-600: #0E7E82;
  --teal-500: #1D979B;
  --teal-300: #7FBDBF;
  --teal-100: #D3E6E5;
  --teal-050: #EDF5F4;

  --lime-700: #58821F;
  --lime-600: #6FA22F;
  --lime-500: #8DC441;   /* wordmark lime */
  --lime-400: #A6D95E;
  --lime-100: #E8F4D5;

  /* Warm paper keeps the page from reading as one flat green wash */
  --bg: #F7F5EF;
  --bg-2: #F0EDE4;
  --surface: #FFFDF9;
  --surface-2: #F8F6F0;
  --ink: #16211F;
  --ink-2: #3E4B48;
  --muted: #74807C;
  --line: rgba(22, 33, 31, .13);
  --line-2: rgba(22, 33, 31, .07);
  --rule: rgba(22, 33, 31, .22);

  --live: #C0442C;       /* terracotta — warmer and less alarming than pure red */
  --live-soft: rgba(192, 68, 44, .12);

  --shadow-sm: 0 1px 2px rgba(0, 46, 49, .05);
  --shadow-md: 0 2px 6px rgba(0, 46, 49, .06), 0 12px 28px rgba(0, 46, 49, .07);
  --shadow-lg: 0 8px 24px rgba(0, 46, 49, .12), 0 28px 70px rgba(0, 46, 49, .18);
  --glass: rgba(250, 248, 243, .82);

  /* Small radii read as printed matter; large ones read as an app template. */
  --r-xs: 3px;
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;

  --ease: cubic-bezier(.2, .6, .35, 1);
  --spring: cubic-bezier(.34, 1.38, .5, 1);

  --wrap: 760px;
  --pad: clamp(18px, 5vw, 32px);
  --rail: 62px;          /* the time gutter of the running order */
  --rail-gap: 20px;

  --font-ui: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI",
             "Hiragino Sans", "Yu Gothic UI", "Meiryo",
             "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR",
             "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
             Roboto, Arial, sans-serif;
  --font-display: "Playfair Display", ui-serif, Georgia, Cambria,
             "Hiragino Mincho ProN", "Yu Mincho", "Songti SC", serif;
}

html[data-theme="dark"] {
  --bg: #071716;
  --bg-2: #0A201F;
  --surface: #0D2726;
  --surface-2: #113230;
  --ink: #E8F1EF;
  --ink-2: #C2D4D1;
  --muted: #8CA3A0;
  --line: rgba(206, 235, 232, .14);
  --line-2: rgba(206, 235, 232, .07);
  --rule: rgba(206, 235, 232, .26);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, .5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .68);
  --glass: rgba(13, 39, 38, .8);
  --teal-050: rgba(29, 151, 155, .13);
  --teal-100: #2C5654;
  --lime-100: rgba(141, 196, 65, .16);
  --live: #E2664C;
  --live-soft: rgba(226, 102, 76, .16);
}

/* ---------------------------------------------------------------- reset */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, ol, ul, dl, dd, dt, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 3px; border-radius: 4px; }

.ic, .i-sun, .i-moon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Letterspaced caps do the work that a coloured pill would do elsewhere. */
.eyebrow {
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------------- boot */

.boot {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--teal-900);
  transition: opacity .55s var(--ease), visibility .55s;
}
.boot.is-done { opacity: 0; visibility: hidden; }
.boot__mark { display: grid; justify-items: center; gap: 18px; }
.boot__logo { width: 148px; opacity: .95; }
.boot__bar {
  width: 108px; height: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, .16); overflow: hidden;
}
.boot__bar span {
  display: block; width: 40%; height: 100%; border-radius: 2px;
  background: var(--lime-500);
  animation: bootSweep 1.15s var(--ease) infinite;
}
@keyframes bootSweep {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(360%); }
}

/* ---------------------------------------------------------------- logo */

.logo {
  height: 26px; width: auto; flex: none;
  object-fit: contain; object-position: left center;
}
.logo--lg { height: 34px; }

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px var(--pad);
  padding-top: max(11px, env(safe-area-inset-top));
  background: transparent;
  transform: translateY(-102%);
  transition: transform .45s var(--ease), background .3s, box-shadow .3s;
}
.topbar.is-shown {
  transform: none;
  background: var(--glass);
  backdrop-filter: saturate(1.5) blur(18px);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  box-shadow: 0 1px 0 var(--line-2), var(--shadow-sm);
}
.topbar__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar__logo { height: 22px; }
html[data-theme="dark"] .topbar__logo { filter: brightness(0) invert(1); opacity: .92; }

.topbar__right { display: flex; align-items: center; gap: 8px; flex: none; }

.iconbtn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: var(--r-sm); font-size: 18px;
  background: transparent; border: 1px solid var(--line);
  color: var(--ink-2);
  transition: transform .2s var(--spring), background .2s, border-color .2s;
}
.iconbtn:active { transform: scale(.92); }
@media (hover: hover) { .iconbtn:hover { background: var(--surface); border-color: var(--rule); } }
.i-moon { display: none; }
html[data-theme="dark"] .i-sun { display: none; }
html[data-theme="dark"] .i-moon { display: block; }

.langbtn {
  height: 36px; display: flex; align-items: center; gap: 8px;
  padding: 0 13px; border-radius: var(--r-sm);
  background: transparent; border: 1px solid var(--line);
  font-weight: 600; font-size: 12px; letter-spacing: .1em;
  color: var(--ink-2);
  transition: transform .2s var(--spring), background .2s, border-color .2s;
}
.langbtn:active { transform: scale(.94); }
@media (hover: hover) { .langbtn:hover { background: var(--surface); border-color: var(--rule); } }
.langbtn__flag { font-size: 15px; line-height: 1; letter-spacing: 0; }

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

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: grid; align-items: center;
  padding: calc(84px + env(safe-area-inset-top)) var(--pad) 104px;
  color: #EDF3F1;
  background: var(--teal-900);
}

/* The aerial view of the park. Desaturated toward the brand teal so it sits
   under the wordmark as ground, not as a stock render dropped behind type. */
.hero__photo { position: absolute; inset: 0; z-index: -4; overflow: hidden; }
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 58%;
  filter: saturate(.38) contrast(1.12) brightness(.86);
  animation: heroSettle 18s var(--ease) both;
}
/* A slow drift, far below the threshold where it reads as an effect. */
@keyframes heroSettle {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

/* One cool light source, kept teal so the panel never drifts toward generic
   emerald — the lime only touches the very top edge. */
.hero__light {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(52% 42% at 18% 6%, rgba(141, 196, 65, .11), transparent 70%),
    radial-gradient(75% 55% at 82% 92%, rgba(14, 126, 130, .40), transparent 72%);
}

/* Two scrims: a vertical one that buries the photo behind the type block, and
   the original vignette that closes the corners. */
.hero__vignette {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg,
      rgba(1, 32, 31, .88) 0%,
      rgba(1, 32, 31, .70) 24%,
      rgba(1, 32, 31, .80) 58%,
      rgba(1, 32, 31, .96) 100%),
    radial-gradient(115% 85% at 50% 40%, transparent 20%, rgba(1, 32, 31, .85) 100%);
}

/* Fine grain stops the flat fill from looking synthetic. */
.hero__grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .28; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.hero__inner { width: min(100%, 620px); margin-inline: auto; text-align: center; }

.hero__logo { height: 46px; width: auto; margin: 0 auto 30px; }

.hero__kicker {
  font-size: 10.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--lime-400); margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(27px, 5.6vw, 43px);
  font-weight: 500; line-height: 1.24; letter-spacing: -.005em;
  color: #FFFFFF; text-wrap: balance;
}

/* Hairline + centred diamond: a printed-invitation divider. */
.hero__div {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 24px auto; width: min(100%, 260px);
}
.hero__div::before, .hero__div::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34));
}
.hero__div::after { background: linear-gradient(270deg, transparent, rgba(255, 255, 255, .34)); }
.hero__div span {
  width: 5px; height: 5px; flex: none;
  background: var(--lime-500); transform: rotate(45deg);
}

.hero__tagline {
  font-size: clamp(12.5px, 3.2vw, 14px);
  color: rgba(237, 243, 241, .68); letter-spacing: .02em;
}

/* Facts read as an invitation's ruled block, not as a row of chips. */
.hero__facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin: 34px auto 0; width: min(100%, 480px);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .20);
}
/* Glass rather than a solid plate, so the aerial keeps running underneath. */
.hero__facts > div {
  background: rgba(1, 32, 31, .62);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  padding: 14px 12px;
  display: grid; gap: 5px; justify-items: center;
}
/* The venue string is long in every language — it gets the full width rather
   than a third of it, which is why this is 2+1 and not three equal cells. */
.hero__facts > div:last-child { grid-column: 1 / -1; }
.hero__facts dt {
  font-size: 9.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(237, 243, 241, .5);
}
.hero__facts dd {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 500; line-height: 1.35; color: #fff;
  text-wrap: balance;
}
.hero__facts .num { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

.hero__cta { margin-top: 34px; }
.hero__note {
  margin-top: 18px; font-size: 12px; color: rgba(237, 243, 241, .5);
  max-width: 36ch; margin-inline: auto; text-wrap: balance; line-height: 1.6;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 13.5px; letter-spacing: .02em;
  transition: transform .2s var(--spring), box-shadow .25s, background .2s, border-color .2s;
}
.btn:active { transform: scale(.96); }
.btn--primary {
  background: var(--lime-500); color: var(--teal-950);
  box-shadow: 0 2px 0 var(--lime-700);
}
@media (hover: hover) { .btn--primary:hover { background: var(--lime-400); } }
.btn--primary .ic { animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.btn--ghost {
  background: transparent; border: 1px solid var(--line); color: var(--ink-2);
  padding: 10px 16px; font-size: 12.5px;
}
@media (hover: hover) { .btn--ghost:hover { border-color: var(--rule); background: var(--surface); } }
.btn[disabled] { opacity: .32; pointer-events: none; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 30px; translate: -50% 0;
  width: 1px; height: 46px; background: rgba(255, 255, 255, .18); overflow: hidden;
}
.hero__scroll span {
  position: absolute; inset: 0; display: block;
  background: var(--lime-500);
  animation: scrollTrace 2.1s var(--ease) infinite;
}
@keyframes scrollTrace {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

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

.section { padding: clamp(54px, 9vw, 88px) var(--pad); }
.section--alt { background: var(--bg-2); }

.section__head {
  width: min(100%, var(--wrap)); margin: 0 auto clamp(26px, 5vw, 38px);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 1px solid var(--rule);
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(23px, 4.6vw, 31px); font-weight: 500;
  letter-spacing: -.01em; line-height: 1.2;
}
.section__title small {
  display: block; margin-bottom: 7px;
  font-family: var(--font-ui);
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--lime-600);
}
html[data-theme="dark"] .section__title small { color: var(--lime-400); }

/* follow switch */
.switch {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; color: var(--muted);
  padding-bottom: 3px;
}
.switch__track {
  width: 40px; height: 22px; border-radius: 999px; padding: 3px;
  background: var(--line); transition: background .28s var(--ease); flex: none;
  display: block;
}
.switch__thumb {
  display: block; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .32s var(--spring);
}
.switch[aria-checked="true"] { color: var(--teal-700); }
html[data-theme="dark"] .switch[aria-checked="true"] { color: var(--teal-300); }
.switch[aria-checked="true"] .switch__track { background: var(--teal-700); }
.switch[aria-checked="true"] .switch__thumb { transform: translateX(18px); }

/* ---------------------------------------------------------------- place plate */

.plate { position: relative; background: var(--teal-950); }
.plate img {
  /* height:auto first — the width/height attributes are a presentational hint,
     and a specified height would make aspect-ratio a no-op. */
  width: 100%; height: auto; aspect-ratio: 2.55 / 1;
  object-fit: cover; object-position: 50% 46%;
  filter: saturate(.68) contrast(1.04) brightness(.82);
}
/* The gradient stays full-bleed; only the text lines up with the page column. */
.plate figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 42px var(--pad) 16px;
  background: linear-gradient(180deg, transparent, rgba(1, 32, 31, .92) 62%);
  color: #EDF3F1;
}
.plate figcaption > * {
  display: block; width: min(100%, var(--wrap)); margin-inline: auto;
}
.plate figcaption strong {
  font-family: var(--font-display);
  font-size: clamp(14px, 3.4vw, 17px); font-weight: 500; line-height: 1.3;
  margin-bottom: 3px;
}
.plate figcaption span {
  font-size: clamp(11px, 2.8vw, 12.5px); line-height: 1.5;
  color: rgba(237, 243, 241, .62); text-wrap: balance;
}
@media (min-width: 720px) { .plate img { aspect-ratio: 3.4 / 1; } }

/* ---------------------------------------------------------------- plan banner */

/* Only raised for the wet-weather running order, so it may sit louder than the
   rest of the page without competing with anything on a normal day. */
.planbanner {
  width: min(100%, var(--wrap)); margin: 0 auto 22px;
  display: flex; gap: 14px; align-items: center;
  padding: 14px 18px; border-radius: var(--r-lg);
  background: var(--teal-050); border: 1px solid var(--teal-100);
  box-shadow: var(--shadow-sm);
}
.planbanner[hidden] { display: none; }
.planbanner__icon { font-size: 26px; line-height: 1; flex: none; }
.planbanner__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.planbanner__body strong { font-size: .96rem; font-weight: 600; color: var(--teal-800); }
.planbanner__body small { font-size: .82rem; color: var(--ink-2); }

html[data-theme="dark"] .planbanner {
  background: rgba(29, 151, 155, .12); border-color: rgba(127, 189, 191, .28);
}
html[data-theme="dark"] .planbanner__body strong { color: var(--teal-300); }

/* ---------------------------------------------------------------- timeline */

.timeline { width: min(100%, var(--wrap)); margin-inline: auto; position: relative; }

/* The spine sits on the right edge of the time gutter. */
.timeline::before {
  content: ""; position: absolute; left: var(--rail); top: 4px; bottom: 4px; width: 1px;
  background: var(--line);
}
.timeline::after {
  content: ""; position: absolute; left: var(--rail); top: 4px; width: 1px;
  height: var(--progress, 0px);
  background: var(--teal-600);
  transition: height .9s var(--ease);
}

/* chapter divider — cuts across the spine like a section rule in a booklet */
.chapter {
  position: relative; z-index: 1;
  margin: 40px 0 20px; padding: 12px 0;
  background: var(--bg);
  display: flex; align-items: baseline; gap: 14px;
}
.section--alt .chapter { background: var(--bg-2); }
.chapter h3 {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600; letter-spacing: .01em; color: var(--ink);
  flex: none;
}
.chapter small {
  font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums;
  letter-spacing: .04em; flex: none;
}
.chapter::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* node = one row of the running order */
.node {
  position: relative;
  display: grid; grid-template-columns: var(--rail) 1fr; column-gap: var(--rail-gap);
  margin-bottom: 4px; padding: 10px 0;
}

.node__rail {
  text-align: right; padding-right: 16px; padding-top: 2px;
  display: grid; gap: 3px; align-content: start;
}
.node__time {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; line-height: 1.1;
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
  color: var(--ink);
}
.node__dur {
  font-size: 9.5px; font-weight: 500; letter-spacing: .06em;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.node__dot {
  position: absolute; left: var(--rail); top: 15px; translate: -50% 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--rule);
  transition: border-color .3s, background .3s, transform .3s var(--spring);
  z-index: 2;
}
.section--alt .node__dot { background: var(--bg-2); }

.card {
  position: relative; width: 100%; text-align: left;
  display: block; padding: 15px 17px;
  border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease),
              border-color .28s, background .28s;
}
.card::before {
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 2px;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  background: var(--teal-600); opacity: 0;
  transition: opacity .3s;
}
@media (hover: hover) {
  .card:hover { border-color: var(--rule); box-shadow: var(--shadow-md); transform: translateY(-1px); }
}
.card:active { transform: scale(.992); }

.card__top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.card__no {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.card__title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600; line-height: 1.32; letter-spacing: -.005em;
  color: var(--ink); text-wrap: balance;
}
.card__sub {
  margin-top: 5px; font-size: 12px; color: var(--teal-700); font-weight: 500;
  line-height: 1.5;
}
html[data-theme="dark"] .card__sub { color: var(--teal-300); }
.card__summary {
  margin-top: 7px; font-size: 13px; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line-2);
}
.card__venue {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .02em;
}
.card__venue .ic { font-size: 13px; opacity: .7; }

.stack { display: flex; align-items: center; }
.stack .av { margin-left: -7px; box-shadow: 0 0 0 2px var(--surface); }
.stack .av:first-child { margin-left: 0; }
.stack__more {
  margin-left: -7px; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 999px; display: grid; place-items: center;
  background: var(--bg-2); box-shadow: 0 0 0 2px var(--surface);
  font-size: 10px; font-weight: 600; color: var(--muted);
}

/* status variants */
.node--done .card { opacity: .55; }
.node--done .node__dot { background: var(--rule); border-color: var(--rule); }
.node--done .node__rail { opacity: .55; }

.node--live .node__dot {
  background: var(--live); border-color: var(--live); transform: translate(-50%, 0) scale(1.3);
  animation: ring 2s var(--ease) infinite;
}
@keyframes ring {
  0%   { box-shadow: 0 0 0 0 rgba(192, 68, 44, .45); }
  70%  { box-shadow: 0 0 0 11px rgba(192, 68, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(192, 68, 44, 0); }
}
.node--live .card {
  border-color: rgba(192, 68, 44, .34);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.node--live .card::before { background: var(--live); opacity: 1; width: 3px; }
.node--live .node__time { color: var(--live); }

.node--next .node__dot { border-color: var(--teal-600); }
.node--next .card { border-color: var(--teal-100); }
.node--next .card::before { opacity: .5; }

/* "move" rows are logistics, not programme — they stay quiet */
.node--move .card {
  padding: 11px 15px; background: transparent;
  border-style: dashed; border-color: var(--line);
}
.node--move .card__title { font-size: 13.5px; font-weight: 500; color: var(--ink-2); font-family: var(--font-ui); }
.node--move .card__summary, .node--move .card__no { display: none; }
.node--move .card__foot { margin-top: 9px; padding-top: 8px; }
.node--move .node__time { font-family: var(--font-ui); font-size: 12.5px; font-weight: 500; color: var(--muted); }

.badge-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px 3px 7px; border-radius: 3px;
  background: var(--live); color: #fff;
  font-size: 9.5px; font-weight: 600; letter-spacing: .14em;
}
.badge-live i {
  width: 4px; height: 4px; border-radius: 50%; background: #fff;
  animation: blink 1.5s var(--ease) infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

.badge-next {
  padding: 3px 9px; border-radius: 3px;
  background: transparent; border: 1px solid var(--teal-100); color: var(--teal-700);
  font-size: 9.5px; font-weight: 600; letter-spacing: .12em;
}
html[data-theme="dark"] .badge-next { color: var(--teal-300); }

/* ---------------------------------------------------------------- avatars */

.av {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden;
  font-size: 9px; font-weight: 600; letter-spacing: -.02em; color: #fff;
  background: var(--teal-700);
  object-fit: cover;
}
.av--lg { width: 46px; height: 46px; font-size: 14px; }
.av--xl { width: 58px; height: 58px; font-size: 18px; }

/* ---------------------------------------------------------------- people */

.pgroup { width: min(100%, var(--wrap)); margin: 0 auto 36px; }
.pgroup__title {
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.pgrid { display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pgrid { grid-template-columns: 1fr 1fr; column-gap: 28px; } }

.person {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line-2);
  transition: opacity .25s var(--ease);
}
.person__body { min-width: 0; }
.person__name {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; letter-spacing: -.005em; line-height: 1.3;
  display: flex; align-items: center; gap: 7px;
}
.person__flag { font-size: 12px; }
.person__role { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 3px; }

/* ---------------------------------------------------------------- info */

.info { width: min(100%, var(--wrap)); margin-inline: auto; display: grid; gap: 30px; }

/* The hotline is the only thing on this page a guest can act on, so it is the
   only thing here that looks like a control. */
.calline {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 24px; flex-wrap: wrap;
  padding: 21px 22px; border-radius: var(--r-sm);
  background: var(--teal-900); color: #EDF3F1;
  transition: transform .2s var(--spring), box-shadow .25s;
}
.calline:active { transform: scale(.99); }
@media (hover: hover) { .calline:hover { box-shadow: var(--shadow-md); } }
.calline__body { display: grid; gap: 8px; min-width: 0; }
.calline .eyebrow { color: rgba(237, 243, 241, .55); }
.calline__num {
  font-family: var(--font-display);
  font-size: clamp(27px, 7.4vw, 34px); font-weight: 600; line-height: 1.05;
  letter-spacing: .01em; font-variant-numeric: tabular-nums; color: #fff;
}
.calline__go {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  padding: 11px 17px; border-radius: var(--r-xs);
  background: var(--lime-500); color: var(--teal-950);
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
}
.calline__go .ic { font-size: 15px; stroke-width: 1.8; }
/* Once it wraps under the number it may as well be a full-width tap target. */
@media (max-width: 520px) { .calline__go { width: 100%; justify-content: center; } }

/* Credits, set the way a printed programme sets its colophon. */
.colophon {
  display: grid; gap: 22px 40px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
@media (min-width: 560px) { .colophon { grid-template-columns: 1.7fr 1fr; } }
.colophon > div { display: grid; gap: 9px; align-content: start; }
.colophon dd {
  font-family: var(--font-display);
  font-size: 15.5px; font-weight: 500; line-height: 1.45; letter-spacing: -.005em;
}
.colophon__mc { display: flex; align-items: center; gap: 11px; }
.colophon__mc .av { width: 32px; height: 32px; font-size: 11px; }

/* A ruled aside rather than a fourth tile — it is a caution, not a fact. */
.notice {
  display: grid; gap: 8px;
  padding-left: 16px; border-left: 2px solid var(--lime-500);
}
.notice > span:last-child { font-size: 13px; line-height: 1.75; color: var(--ink-2); }

.footnote {
  width: min(100%, var(--wrap)); margin: 26px auto 0;
  font-size: 11.5px; color: var(--muted); text-align: center; text-wrap: balance;
  line-height: 1.7;
}

.footer {
  padding: 44px var(--pad) calc(124px + env(safe-area-inset-bottom));
  text-align: center; display: grid; justify-items: center; gap: 12px;
  border-top: 1px solid var(--line); background: var(--bg-2);
}
.footer__logo { height: 30px; width: auto; opacity: .75; }
html[data-theme="dark"] .footer__logo { filter: brightness(0) invert(1); opacity: .6; }
.footer small { font-size: 11px; color: var(--muted); letter-spacing: .05em; }

/* ---------------------------------------------------------------- live pill */

.livepill {
  position: fixed; z-index: 80;
  left: 50%; bottom: calc(20px + env(safe-area-inset-bottom));
  translate: -50% 0;
  width: min(calc(100vw - 2 * var(--pad)), 440px);
  display: flex; align-items: center; gap: 13px;
  padding: 11px 15px; border-radius: var(--r-sm); text-align: left;
  background: var(--teal-900); color: #EDF3F1;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow-lg);
  animation: pillIn .5s var(--spring) both;
}
.livepill[hidden] { display: none; }
@keyframes pillIn { from { opacity: 0; transform: translateY(24px) scale(.95); } }
.livepill:active { transform: scale(.98); }
.livepill__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none;
  animation: ring 2s var(--ease) infinite;
}
.livepill--idle .livepill__dot { background: var(--lime-500); animation: none; }
.livepill__text { min-width: 0; flex: 1; display: grid; gap: 2px; }
.livepill__text small {
  font-size: 9.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: #EE9A85;
}
.livepill--idle .livepill__text small { color: var(--lime-400); }
.livepill__text strong {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600; letter-spacing: -.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.livepill .ic { font-size: 17px; color: rgba(237, 243, 241, .5); flex: none; }

/* ---------------------------------------------------------------- sheet */

.sheet { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet__scrim {
  position: absolute; inset: 0; background: rgba(1, 32, 31, .55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: fade .35s var(--ease) both;
}
@keyframes fade { from { opacity: 0; } }

.sheet__panel {
  position: relative; z-index: 1;
  width: min(100%, 660px); max-height: 92svh;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-lg);
  animation: sheetUp .48s var(--spring) both;
  overflow: hidden;
}
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet.is-closing .sheet__panel { animation: sheetDown .3s var(--ease) both; }
.sheet.is-closing .sheet__scrim { animation: fadeOut .3s var(--ease) both; }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes fadeOut { to { opacity: 0; } }

@media (min-width: 720px) {
  .sheet { align-items: center; padding: 24px; }
  .sheet__panel { border-radius: var(--r-md); max-height: 88svh; animation: sheetPop .42s var(--spring) both; }
  @keyframes sheetPop { from { transform: translateY(28px) scale(.97); opacity: 0; } }
  .sheet__grab { display: none; }
}

.sheet__grab { padding: 10px 0 2px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet__grab span { width: 36px; height: 3px; border-radius: 3px; background: var(--line); }

/* The sheet head carries the ceremony's dark brand tone. */
.sheet__head {
  position: relative; padding: 18px var(--pad) 20px;
  background: var(--teal-900); color: #EDF3F1;
}
.sheet__head--sm { padding-bottom: 16px; }
.sheet__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 3px;
  font-size: 10px; font-weight: 600; letter-spacing: .12em;
  background: rgba(255, 255, 255, .09); color: rgba(237, 243, 241, .8);
}
.pill--time { font-variant-numeric: tabular-nums; letter-spacing: .06em; color: #fff; }
.pill--live { background: var(--live); color: #fff; letter-spacing: .14em; }
.pill--live i { width: 4px; height: 4px; border-radius: 50%; background: #fff; animation: blink 1.5s var(--ease) infinite; }
.pill[hidden] { display: none; }

.sheet__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 4.4vw, 26px); font-weight: 600; letter-spacing: -.01em;
  line-height: 1.3; padding-right: 44px; text-wrap: balance; color: #fff;
}
.sheet__sub {
  margin-top: 8px; font-size: 12.5px; color: var(--lime-400); font-weight: 500;
  padding-right: 44px; line-height: 1.55;
}
.sheet__sub:empty { display: none; }
.sheet__close {
  position: absolute; top: 14px; right: var(--pad);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: #EDF3F1; font-size: 16px;
  transition: transform .2s var(--spring), background .2s;
}
.sheet__close:active { transform: scale(.9) rotate(90deg); }
@media (hover: hover) { .sheet__close:hover { background: rgba(255, 255, 255, .18); } }

.sheet__body {
  padding: 24px var(--pad) 26px;
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.sheet__foot {
  display: flex; gap: 10px; justify-content: space-between;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--surface-2);
}

/* ---------------------------------------------------------------- blocks */

.blk { animation: blkIn .5s var(--ease) both; }
@keyframes blkIn { from { opacity: 0; transform: translateY(10px); } }

.blk-p { font-size: 14.5px; line-height: 1.78; color: var(--ink-2); margin-bottom: 15px; }
.blk-p:last-child { margin-bottom: 0; }

.blk-h {
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin: 30px 0 14px;
  display: flex; align-items: center; gap: 12px;
}
.blk-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.blk-h:first-child { margin-top: 0; }

/* MC copy is read aloud — set it in the display face, like a script. */
.blk-mc {
  position: relative; margin: 0 0 18px; padding: 4px 0 4px 22px;
  border-left: 2px solid var(--lime-500);
  font-family: var(--font-display);
  font-size: 16px; line-height: 1.68; color: var(--ink); font-style: italic;
}
.blk-mc::before {
  content: "MC"; display: block; margin-bottom: 7px;
  font-family: var(--font-ui); font-style: normal;
  font-size: 9.5px; font-weight: 600; letter-spacing: .2em; color: var(--lime-600);
}
html[data-theme="dark"] .blk-mc::before { color: var(--lime-400); }

.blk-cue {
  display: flex; gap: 11px; align-items: flex-start;
  margin: 0 0 16px; padding: 10px 13px; border-radius: var(--r-xs);
  background: var(--surface-2); border-left: 2px solid var(--line);
  font-size: 12.5px; color: var(--muted); line-height: 1.65; font-style: italic;
}
.blk-cue::before { content: "▸"; color: var(--teal-600); font-size: 11px; line-height: 1.6; font-style: normal; }

.blk-note {
  margin: 0 0 18px; padding: 16px 18px; border-radius: var(--r-xs);
  background: var(--lime-100); border-left: 3px solid var(--lime-500);
  font-size: 14px; line-height: 1.7; font-weight: 500; color: var(--ink);
}
html[data-theme="dark"] .blk-note { color: var(--ink); }

.blk-list { margin: 0 0 18px; display: grid; gap: 11px; }
.blk-list li {
  display: flex; gap: 13px; align-items: flex-start;
  font-size: 14px; line-height: 1.7; color: var(--ink-2);
}
.blk-list li::before {
  content: ""; width: 5px; height: 5px; flex: none; margin-top: .62em;
  background: var(--lime-500); transform: rotate(45deg);
}

.blk-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0; margin: 0 0 22px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat {
  padding: 18px 14px; text-align: center;
  border-left: 1px solid var(--line-2);
}
.stat:first-child { border-left: 0; }
.stat__v {
  font-family: var(--font-display);
  font-size: clamp(22px, 5.4vw, 27px); font-weight: 600; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; line-height: 1.15;
  color: var(--teal-700);
}
html[data-theme="dark"] .stat__v { color: var(--teal-300); }
.stat__l {
  margin-top: 7px; font-size: 10px; color: var(--muted); line-height: 1.45;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
}

.blk-roster { margin: 0 0 20px; display: grid; gap: 0; }
.rperson {
  display: flex; gap: 14px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line-2);
}
.rperson:first-child { border-top: 1px solid var(--line); }
.rperson__i {
  width: 18px; flex: none; text-align: right;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums;
}
.rperson__body { min-width: 0; }
.rperson__name {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 7px;
  letter-spacing: -.005em; line-height: 1.3;
}
.rperson__role { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.rperson__co {
  display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 3px;
  font-size: 10px; font-weight: 600; letter-spacing: .06em;
  background: var(--teal-050); color: var(--teal-700);
}
html[data-theme="dark"] .rperson__co { color: var(--teal-300); }

.blk-cos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.cotag {
  padding: 7px 13px; border-radius: var(--r-xs);
  font-size: 12px; font-weight: 500; letter-spacing: .01em;
  background: transparent; border: 1px solid var(--line); color: var(--ink-2);
}

/* speaker hero inside sheet */
.spk {
  display: flex; align-items: center; gap: 16px;
  padding: 0 0 20px; margin: 0 0 22px;
  border-bottom: 1px solid var(--line);
}
.spk__body { min-width: 0; }
.spk__label {
  font-size: 9.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--lime-600); margin-bottom: 5px;
}
html[data-theme="dark"] .spk__label { color: var(--lime-400); }
.spk__name {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.28;
}
.spk__role { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 4px; }

.hl { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 22px; }
.hl span {
  padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 500;
  background: var(--teal-050); color: var(--teal-700);
}
html[data-theme="dark"] .hl span { color: var(--teal-300); }

/* language list */
.langrow {
  display: flex; align-items: center; gap: 15px; width: 100%;
  padding: 14px 4px; border-bottom: 1px solid var(--line-2);
  background: transparent;
  transition: background .2s var(--ease);
}
.langrow:active { background: var(--surface-2); }
.langrow.is-on .langrow__name { color: var(--teal-700); }
html[data-theme="dark"] .langrow.is-on .langrow__name { color: var(--teal-300); }
.langrow__flag { font-size: 24px; line-height: 1; }
.langrow__name {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600; flex: 1; text-align: left;
}
.langrow__check { font-size: 16px; color: var(--lime-600); opacity: 0; transition: opacity .2s; }
.langrow.is-on .langrow__check { opacity: 1; }

/* ---------------------------------------------------------------- toasts */

.toasts {
  position: fixed; z-index: 150; left: 50%; translate: -50% 0;
  top: calc(12px + env(safe-area-inset-top));
  width: min(calc(100vw - 24px), 420px);
  display: grid; gap: 8px; pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 15px; border-radius: var(--r-sm);
  background: var(--teal-900); color: #EDF3F1;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow-lg);
  animation: toastIn .45s var(--spring) both;
}
.toast.is-out { animation: toastOut .3s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-18px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-14px) scale(.96); } }
.toast__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); margin-top: 7px; flex: none; }
.toast__body { min-width: 0; }
.toast__k {
  font-size: 9.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: #EE9A85;
}
.toast__t {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500; line-height: 1.45; margin-top: 2px;
}
.toast--info .toast__dot { background: var(--lime-500); }
.toast--info .toast__k { color: var(--lime-400); }

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

.countdown {
  position: fixed; inset: 0; z-index: 190; display: grid; place-items: center;
  background: radial-gradient(ellipse at center, rgba(0, 46, 49, .94), rgba(1, 32, 31, .98));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade .3s var(--ease) both;
}
.countdown[hidden] { display: none; }
.countdown__num {
  font-family: var(--font-display);
  font-size: clamp(110px, 44vw, 280px); font-weight: 600; letter-spacing: -.04em;
  line-height: 1; color: #fff;
  text-shadow: 0 0 90px rgba(141, 196, 65, .45);
}
.countdown__num.tick { animation: tick .92s var(--ease) both; }
@keyframes tick {
  0%   { opacity: 0; transform: scale(2); filter: blur(12px); }
  22%  { opacity: 1; transform: scale(1); filter: blur(0); }
  78%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.72); }
}
.countdown__num.go {
  font-size: clamp(32px, 10vw, 68px); letter-spacing: -.01em;
  text-wrap: balance; text-align: center; padding: 0 24px;
  color: var(--lime-400);
  animation: go 2.4s var(--spring) both;
}
@keyframes go {
  0%   { opacity: 0; transform: scale(.6); }
  14%  { opacity: 1; transform: scale(1); }
  84%  { opacity: 1; }
  100% { opacity: 0; }
}

.confetti { position: fixed; inset: 0; z-index: 185; pointer-events: none; }
.confetti[hidden] { display: none; }

/* ---------------------------------------------------------------- conn */

.conn {
  position: fixed; z-index: 95; left: 50%; translate: -50% 0;
  bottom: calc(88px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .03em;
}
.conn[hidden] { display: none; }
.conn i { width: 5px; height: 5px; border-radius: 50%; background: var(--lime-600); animation: blink 1.3s var(--ease) infinite; }
.conn.is-off i { background: var(--muted); animation: none; }

/* ---------------------------------------------------------------- reveal */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------------------------------------------------------------- narrow */

@media (max-width: 400px) {
  :root { --rail: 52px; --rail-gap: 14px; }
  .card { padding: 13px 14px; }
  .card__title { font-size: 15.5px; }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__facts > div:last-child { grid-column: auto; }
}

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