/* Tinh Hà "Say Hi" - one subject --u (1 design px of the 1440×900 artboard; phone column 464.29) */
:root {
  --vw: 100vw;
  --u: min(calc(var(--vw) / 1440), calc(100vh / 900), 1.4px);
  --u: min(calc(var(--vw) / 1440), calc(100svh / 900), 1.4px);   /* svh: the height without the phone's toolbars, so it never jumps */
  --frame: calc(1440 * var(--u));
  --gx: max(0px, calc((var(--vw) - var(--frame)) / 2));
  --pad: calc(var(--gx) + 57.5 * var(--u));
  --top: calc(26 * var(--u));

  --night: #07051a;
  --night-2: #120c2e;
  --star: #f4f1ff;
  --violet: #7b5cff;
  --pink: #ff6fb5;
  --lilac: #e8e2ff;
  --ink: #140d33;
  --dim: rgba(244, 241, 255, .62);
  --line: rgba(244, 241, 255, .18);

  --t-2xs: calc(10 * var(--u));
  --t-xs: calc(11 * var(--u));
  --t-sm: calc(13 * var(--u));
  --t-md: calc(16 * var(--u));
  --t-lg: calc(22 * var(--u));
  --t-xl: calc(40 * var(--u));
  --ctl: calc(44 * var(--u));

  /* display scale by role: the same token on every breakpoint, only its value changes */
  --d-index: calc(300 * var(--u));
  --d-hero: calc(250 * var(--u));
  --d-date: calc(150 * var(--u));
  --d-head: calc(120 * var(--u));
  --d-name: calc(104 * var(--u));
  --d-wall: calc(92 * var(--u));
  --d-h2: calc(64 * var(--u));
  --d-item: calc(46 * var(--u));
  --d-row: calc(36 * var(--u));
  /* line height: solo = one line, never wraps; stack = may wrap, room for Vietnamese marks */
  --lh-solo: .86;
  --lh-stack: 1.06;
  --s-2: calc(6 * var(--u));
  --s-3: calc(10 * var(--u));
  --s-4: calc(14 * var(--u));
  --s-5: calc(20 * var(--u));
  --s-6: calc(28 * var(--u));
  --s-8: calc(48 * var(--u));
  --s-10: calc(80 * var(--u));
  --s-12: calc(128 * var(--u));
}
@media (max-width: 1151px) {
  :root {
    /* the whole 464.29 × 1005 column fits the screen: on a short phone it scales down instead of losing its top */
    --u: min(calc(var(--vw) / 464.29), calc(100vh / 1005), 1.4px);
    --u: min(calc(var(--vw) / 464.29), calc(100svh / 1005), 1.4px);
    --frame: calc(464.29 * var(--u));
    --pad: calc(var(--gx) + 23.75 * var(--u));
    --top: calc(18 * var(--u));
    --t-2xs: calc(11 * var(--u));
    --t-xs: calc(12 * var(--u));
    --ctl: calc(54 * var(--u));
    --t-xl: calc(26 * var(--u));
    --d-hero: calc(118 * var(--u));
    --d-date: calc(110 * var(--u));
    --d-head: calc(76 * var(--u));
    --d-name: calc(52 * var(--u));
    --d-wall: calc(46 * var(--u));
    --d-h2: calc(44 * var(--u));
    --d-item: calc(30 * var(--u));
    --d-row: calc(28 * var(--u));
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--night); color: var(--star); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: var(--t-md);
  line-height: 1.5;
  background: var(--night);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: var(--t-xs); letter-spacing: .04em; text-transform: uppercase; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .foot { position: relative; z-index: 1; }

/* ---------- intro: one star flares, then the page ---------- */
#intro { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--night); pointer-events: none; }
#intro .flare { width: calc(120 * var(--u)); height: calc(120 * var(--u)); fill: var(--star); filter: drop-shadow(0 0 calc(24 * var(--u)) rgba(123, 92, 255, .9)); transform: scale(0); }
body:not(.is-loading) #intro { display: none; }

/* ---------- bar ---------- */
.bar {
  position: fixed; z-index: 30; left: 0; right: 0; top: 0;
  display: flex; align-items: center; gap: var(--s-6);
  padding: var(--top) var(--pad);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
/* past the stream the bar gets the night behind it, so it reads over the lilac line-up and the photo */
.bar::before { content: ''; position: absolute; inset: 0; background: rgba(7, 5, 26, .9); opacity: 0; transition: opacity .35s; z-index: -1; pointer-events: none; }
.bar.solid::before { opacity: 1; }
.mark { display: flex; align-items: center; gap: var(--s-3); font-weight: 700; font-size: var(--t-md); font-stretch: 88%; letter-spacing: -.01em; }
.mark svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); fill: currentColor; }
.mark i { font-style: italic; font-weight: 400; }
.links { display: flex; gap: var(--s-6); margin-left: calc(80 * var(--u)); }
.links a { font-size: var(--t-sm); opacity: .7; transition: opacity .3s; }
.links a:hover { opacity: 1; }
.tix {
  margin-left: auto; display: flex; align-items: center; gap: var(--s-3);
  height: var(--ctl); padding: 0 calc(18 * var(--u)) 0 calc(6 * var(--u));
  border-radius: 999px; background: var(--pink); color: var(--ink);
  font-size: var(--t-sm); font-weight: 600;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.tix b { display: grid; place-items: center; height: calc(var(--ctl) - 12 * var(--u)); padding: 0 calc(12 * var(--u)); border-radius: 999px; background: var(--ink); color: var(--pink); font-weight: 700; }
.tix:hover { transform: translateY(calc(-2 * var(--u))); }
.burger { display: none; }
.sheet { display: none; }

/* ---------- 1. river ---------- */
.river { position: relative; }
.river-view { position: relative; height: 100svh; overflow: hidden; }
.river .bg { position: absolute; inset: 0; }
.river .bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); }
.river .bg::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--night) 0, rgba(7, 5, 26, .82) calc(var(--gx) + 520 * var(--u)), rgba(7, 5, 26, .35) 100%),
  linear-gradient(0deg, var(--night) 0, transparent 40%); }
.art { position: absolute; left: var(--gx); top: 50%; width: var(--frame); height: calc(900 * var(--u)); transform: translateY(-50%); perspective: calc(1400 * var(--u)); }

.title {
  position: absolute; left: 0; right: 0; top: calc(120 * var(--u));
  font-weight: 800; font-stretch: 112%; font-size: var(--d-hero); line-height: var(--lh-solo); letter-spacing: -.035em;
  text-transform: uppercase; pointer-events: none; z-index: 2;
}
.title span { position: absolute; display: block; white-space: nowrap; will-change: transform, opacity; }
.title .t1 { left: calc(57.5 * var(--u)); top: 0; }
.title .t2 { left: calc(250 * var(--u)); top: calc(225 * var(--u)); }
.lede { position: absolute; left: calc(57.5 * var(--u)); top: calc(660 * var(--u)); width: calc(360 * var(--u)); font-size: var(--t-lg); line-height: 1.3; font-stretch: 92%; }
.when { position: absolute; left: calc(57.5 * var(--u)); top: calc(770 * var(--u)); display: flex; gap: var(--s-5); color: var(--dim); }

.stream { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.card {
  position: absolute; left: calc(840 * var(--u)); top: calc(190 * var(--u));
  width: calc(390 * var(--u)); height: calc(520 * var(--u));
  border-radius: calc(4 * var(--u)); overflow: hidden;
  background: var(--night-2);
  box-shadow: 0 calc(40 * var(--u)) calc(80 * var(--u)) rgba(0, 0, 0, .55);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.card img { width: 100%; height: 100%; object-fit: cover; }
.card::after { content: ''; position: absolute; inset: 0; background: var(--night); opacity: var(--shade, 0); pointer-events: none; }
.card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.card video.on { opacity: 1; }

.focus { position: absolute; left: calc(57.5 * var(--u)); top: calc(190 * var(--u)); width: calc(720 * var(--u)); height: calc(520 * var(--u)); pointer-events: none; display: flex; flex-direction: column; align-items: flex-start; gap: calc(22 * var(--u)); }
.focus .idx {
  position: absolute; left: 0; bottom: calc(-40 * var(--u));
  font-weight: 200; font-stretch: 62%; font-size: var(--d-index); line-height: var(--lh-solo); letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(244, 241, 255, .35);
}
.focus .role { color: var(--pink); }
.focus .name {
  width: calc(720 * var(--u));
  font-weight: 800; font-stretch: 100%; font-size: var(--d-name); line-height: var(--lh-stack); letter-spacing: -.03em; text-transform: uppercase;
}
.focus .name .w { display: inline-block; white-space: nowrap; margin-right: .22em; }
.focus .name .c { display: inline-block; }
.focus .song { width: calc(500 * var(--u)); margin-top: calc(10 * var(--u)); font-size: var(--t-xl); font-weight: 300; font-style: italic; font-stretch: 90%; line-height: 1.05; }
.focus .song::before { content: '♪ '; font-style: normal; color: var(--pink); }
.hint { position: absolute; left: calc(57.5 * var(--u)); bottom: calc(40 * var(--u)); color: var(--dim); }

/* ---------- 2. line-up wall: a lilac panel rises over the night ---------- */
.wall {
  position: relative; z-index: 2;
  background: var(--lilac); color: var(--ink);
  border-radius: calc(36 * var(--u)) calc(36 * var(--u)) 0 0;
  padding: var(--s-12) var(--pad) var(--s-12);
  overflow: hidden;
}
.wall-head { display: grid; grid-template-columns: calc(640 * var(--u)) 1fr; align-items: end; gap: var(--s-6); margin-bottom: var(--s-10); }
.wall-head h2 { font-weight: 800; font-stretch: 125%; font-size: var(--d-head); line-height: var(--lh-solo); white-space: nowrap; letter-spacing: -.04em; text-transform: uppercase; }
.wall-head p { max-width: calc(360 * var(--u)); font-size: var(--t-md); }
.names { display: flex; flex-direction: column; align-items: center; }
.row { display: flex; justify-content: center; white-space: nowrap; font-size: var(--d-wall); }
.nm {
  font-weight: 800; font-stretch: 72%; font-size: 1em; line-height: var(--lh-stack); letter-spacing: -.02em;
  text-transform: uppercase; cursor: default; transition: color .25s, -webkit-text-stroke-color .25s;
}
.nm.c1 { color: var(--ink); }
.nm.c2 { color: var(--violet); }
.nm.c3 { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.nm.c4 { color: var(--pink); }
.nm[data-k]:hover { color: var(--ink); -webkit-text-stroke-color: transparent; }
.sticker {
  position: absolute; left: 0; top: 0; width: calc(200 * var(--u)); height: calc(266 * var(--u)); object-fit: cover;
  border: calc(6 * var(--u)) solid #fff; border-radius: calc(4 * var(--u));
  box-shadow: 0 calc(18 * var(--u)) calc(40 * var(--u)) rgba(20, 13, 51, .3);
  pointer-events: none; opacity: 0; transform: scale(.6);
  z-index: 3;
}

/* ---------- 3. night: the stage rises as a curtain, the seam is the title row ---------- */
.night { position: relative; z-index: 2; background: var(--night); padding-bottom: var(--s-12); }
.curtain { position: relative; height: 100svh; overflow: hidden; clip-path: inset(45% 0 0 0); }
.curtain img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
.curtain .cap { position: absolute; z-index: 1; right: var(--pad); top: calc(90 * var(--u)); color: var(--dim); }
.curtain::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 5, 26, .9) 0, transparent 45%); }
.seam {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: calc(60 * var(--u));
  display: grid; grid-template-columns: calc(620 * var(--u)) 1fr; align-items: end;
  padding: 0 var(--pad); padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.seam h2 { font-weight: 300; font-stretch: 90%; font-size: var(--d-h2); line-height: var(--lh-stack); letter-spacing: -.02em; }
.seam ul { list-style: none; display: flex; justify-content: space-between; color: var(--dim); }
.setlist { padding: var(--s-10) var(--pad) 0; }
.sl-note { max-width: calc(420 * var(--u)); color: var(--dim); margin-left: calc(620 * var(--u)); margin-bottom: var(--s-8); }
#setlist { list-style: none; }
#setlist li {
  position: relative; display: grid; grid-template-columns: calc(620 * var(--u)) 1fr calc(220 * var(--u)); align-items: baseline;
  padding: var(--s-5) 0;
}
#setlist li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform: scaleX(var(--ln, 0)); transform-origin: 0 0; }
#setlist .sg { font-size: var(--d-row); font-weight: 600; font-stretch: 88%; line-height: 1.1; letter-spacing: -.01em; }
#setlist .who { font-size: var(--t-sm); color: var(--dim); padding-right: var(--s-6); }
#setlist .tag { justify-self: end; color: var(--pink); }
#setlist li:hover .sg { color: var(--pink); }

/* ---------- 4. dates ---------- */
.dates { position: relative; z-index: 2; background: var(--night); padding: var(--s-10) var(--pad) var(--s-12); }
.dates-title { font-weight: 300; font-stretch: 90%; font-size: var(--d-h2); line-height: var(--lh-stack); letter-spacing: -.02em; margin-bottom: var(--s-8); }
.stop {
  display: grid; grid-template-columns: calc(620 * var(--u)) 1fr calc(260 * var(--u)); align-items: center;
  padding: var(--s-6) 0; border-top: 1px solid var(--line);
}
.stop:last-child { border-bottom: 1px solid var(--line); }
.stop .d { display: flex; align-items: baseline; font-weight: 800; font-stretch: 62%; font-size: var(--d-date); line-height: var(--lh-solo); letter-spacing: -.03em; }
.stop .d i { font-style: normal; font-weight: 200; margin: 0 .04em; }
.stop .d span { font-size: var(--t-lg); font-weight: 500; font-stretch: 100%; letter-spacing: 0; margin-left: var(--s-3); }
.stop h3 { font-size: var(--t-xl); font-weight: 600; font-stretch: 90%; line-height: 1; margin-bottom: var(--s-3); }
.stop .where p { max-width: calc(380 * var(--u)); color: var(--dim); font-size: var(--t-sm); }
.buy {
  justify-self: end; display: inline-flex; align-items: center; height: var(--ctl); padding: 0 calc(22 * var(--u));
  border-radius: 999px; background: var(--pink); color: var(--ink); font-size: var(--t-sm); font-weight: 600;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.buy:hover { transform: translateY(calc(-2 * var(--u))); }
.buy.ghost { background: transparent; color: var(--star); box-shadow: inset 0 0 0 1px var(--line); }
.buy.done { background: transparent; color: var(--dim); }
.stop.is-next .d { color: var(--pink); }
.stop.is-past { opacity: .55; }

/* ---------- footer ---------- */
.foot { background: var(--night); }
.band { background: var(--violet); color: var(--star); overflow: hidden; padding: var(--s-3) 0; }
.band-run { display: flex; width: max-content; font-weight: 800; font-stretch: 112%; font-size: var(--d-item); line-height: 1.1; text-transform: uppercase; letter-spacing: -.01em; }
.band-run span { display: flex; align-items: center; gap: calc(28 * var(--u)); padding-right: calc(28 * var(--u)); }
.band-run svg { width: calc(30 * var(--u)); height: calc(30 * var(--u)); fill: var(--pink); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-6); padding: var(--s-6) var(--pad); color: var(--dim); font-size: var(--t-sm); }
.foot-row p { max-width: calc(640 * var(--u)); }

/* ---------- phone column ---------- */
@media (max-width: 1151px) {
  .links, .tix span { display: none; }
  .tix { padding: 0 calc(6 * var(--u)); margin-left: auto; }
  .burger { display: grid; gap: calc(5 * var(--u)); place-content: center; width: var(--ctl); height: var(--ctl); border-radius: 50%; background: rgba(244, 241, 255, .1); }
  .burger i { display: block; width: calc(18 * var(--u)); height: 2px; background: currentColor; transition: transform .3s; }
  .bar.open .burger i:nth-child(1) { transform: translateY(calc(7 * var(--u))) rotate(45deg); }
  .bar.open .burger i:nth-child(2) { opacity: 0; }
  .bar.open .burger i:nth-child(3) { transform: translateY(calc(-7 * var(--u))) rotate(-45deg); }
  .sheet {
    position: fixed; inset: 0; z-index: 29; display: flex; flex-direction: column; justify-content: center; gap: var(--s-3);
    padding: 0 var(--pad); background: var(--night);
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .sheet a { font-weight: 800; font-stretch: 100%; font-size: var(--d-item); text-transform: uppercase; line-height: var(--lh-stack); }
  .sheet.open { opacity: 1; pointer-events: auto; }

  .art { height: calc(1005 * var(--u)); }
  .river-view { height: 100svh; }
  .title { top: calc(540 * var(--u)); }
  .title .t1 { left: calc(23.75 * var(--u)); top: 0; }
  .title .t2 { left: calc(110 * var(--u)); top: calc(106 * var(--u)); }
  .lede { top: calc(790 * var(--u)); width: calc(416 * var(--u)); left: calc(23.75 * var(--u)); font-size: var(--t-lg); }
  .when { top: calc(872 * var(--u)); left: calc(23.75 * var(--u)); }
  .card { left: calc(82 * var(--u)); top: calc(100 * var(--u)); width: calc(300 * var(--u)); height: calc(400 * var(--u)); }
  .focus { left: calc(23.75 * var(--u)); top: calc(540 * var(--u)); width: calc(416 * var(--u)); height: calc(300 * var(--u)); }
  .focus .idx { display: none; }
  .focus { gap: calc(12 * var(--u)); }
  .focus .name { width: calc(416 * var(--u)); }
  .focus .song { width: calc(416 * var(--u)); margin-top: 0; }
  .hint { left: calc(23.75 * var(--u)); bottom: auto; top: calc(940 * var(--u)); }
  .river .bg::after { background: linear-gradient(0deg, var(--night) 0, rgba(7, 5, 26, .75) 55%, rgba(7, 5, 26, .45) 100%); }

  .wall { padding: var(--s-10) var(--pad); border-radius: calc(24 * var(--u)) calc(24 * var(--u)) 0 0; }
  .wall-head { grid-template-columns: 1fr; margin-bottom: var(--s-8); }
  .sticker { width: calc(140 * var(--u)); height: calc(186 * var(--u)); }

  .curtain .cap { left: var(--pad); right: var(--pad); top: calc(84 * var(--u)); }
  .seam { grid-template-columns: 1fr; gap: var(--s-4); bottom: calc(40 * var(--u)); }
  .seam ul { flex-wrap: wrap; gap: var(--s-2) var(--s-5); justify-content: start; }
  .setlist { padding-top: var(--s-8); }
  .sl-note { margin-left: 0; }
  #setlist li { grid-template-columns: 1fr; gap: var(--s-2); }
  #setlist .tag { justify-self: start; }

  .stop { grid-template-columns: 1fr; gap: var(--s-4); }
  .buy { justify-self: start; }
  .band-run svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
  .foot-row { flex-direction: column; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .curtain { clip-path: none; }
}
