@import "tailwindcss";

:root {
  --background: #050708;
  --foreground: #f3f4ef;
  --primary: #f3f4ef;
  --secondary: #b8bfbd;
  --accent: #62e6ea;
  --muted: #717977;
  --glow: rgba(98, 230, 234, .34);
  --story-accent: var(--accent);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--background); scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { color: inherit; font: inherit; }
::selection { background: var(--story-accent); color: #050708; }

.concert-story {
  container-type: inline-size;
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: clip;
  background: #050708;
}
.scene {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  padding: max(24px, env(safe-area-inset-top)) 24px max(26px, env(safe-area-inset-bottom));
}
.eyebrow {
  font-size: .75rem;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.memory-copy { margin: 0; white-space: normal; }
.memory-copy span { display: block; }
.copy-display { font-size: clamp(2.4rem, 12cqw, 3.4rem); font-weight: 850; line-height: 1.08; letter-spacing: -.06em; }
.copy-short { font-size: clamp(1.3rem, 6.5cqw, 1.85rem); font-weight: 680; line-height: 1.45; letter-spacing: -.025em; }
.copy-editorial { font-size: clamp(1rem, 4.35cqw, 1.18rem); line-height: 1.82; letter-spacing: .012em; }

/* Cover */
.cover-scene { grid-template-rows: auto 1fr auto; background: #050708; }
.cover-photo-bg { position: absolute; inset: -32px; z-index: -4; opacity: .42; filter: blur(32px) saturate(.75); transform: scale(1.14); }
.cover-photo-bg img { object-fit: cover; object-position: center; }
.cover-photo-main { position: absolute; z-index: -2; top: 13%; left: 0; width: 100%; height: 43%; }
.cover-photo-main img { object-fit: contain; object-position: center; }
.cover-photo-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2,4,5,.7), rgba(2,4,5,.04) 20%, rgba(2,4,5,.08) 48%, rgba(2,4,5,.96) 72%), linear-gradient(90deg, rgba(2,4,5,.24), transparent 22%, transparent 78%, rgba(2,4,5,.24)); }
.cover-scene::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: .13; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.cover-meta { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 16px; color: rgba(243,244,239,.75); }
.cover-title { position: absolute; z-index: 2; left: 24px; top: 54%; margin: 0; font-size: clamp(3.25rem, 16.5cqw, 4.15rem); font-weight: 900; line-height: .78; letter-spacing: -.085em; text-transform: uppercase; }
.cover-title span { display: block; }
.cover-title span:nth-child(2) { color: transparent; -webkit-text-stroke: 1px rgba(243,244,239,.72); transform: translateX(4cqw); }
.cover-title span:nth-child(3) { color: var(--story-accent); font-size: .78em; }
.cover-footer { position: relative; z-index: 2; display: grid; gap: 18px; }
.cover-footer p { margin: 0; max-width: 17rem; font-size: 1rem; line-height: 1.7; letter-spacing: .05em; }
.replay-cue { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.35); }
.replay-cue .arrow { font-size: 1.4rem; animation: drift 1.8s ease-in-out infinite; }

/* Days later */
.days-later-scene { grid-template-rows: 1fr auto auto; background: #ece8df; color: #090909; }
.days-number { position: absolute; top: -.14em; right: -.07em; color: transparent; font-size: 88cqw; font-weight: 900; line-height: 1; letter-spacing: -.12em; -webkit-text-stroke: 1px rgba(10,10,10,.12); }
.days-content { position: relative; z-index: 1; align-self: end; display: grid; gap: 30px; padding-bottom: 8vh; }
.days-content > .eyebrow { color: #62605b; }
.days-content .memory-copy span:nth-last-child(-n+2) { font-weight: 780; }
.scene-index { align-self: end; border-top: 1px solid rgba(0,0,0,.25); padding-top: 14px; color: #65615b; }

/* Shared media */
.memory-media { position: relative; overflow: hidden; background: #111; }
.memory-media img { object-fit: cover; }
.memory-media.is-placeholder { background: radial-gradient(circle at 66% 32%, color-mix(in srgb, var(--story-accent) 38%, transparent), transparent 18%), linear-gradient(145deg, #181818, #050505 72%); }
.media-orbit { position: absolute; width: 70%; aspect-ratio: 1; left: 15%; top: 15%; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; }
.media-label { position: absolute; left: 20px; bottom: 18px; color: rgba(255,255,255,.66); }
.viewport-video { position: relative; overflow: hidden; background: #020303; }
.viewport-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #020303; }
.sound-toggle { position: absolute; right: 14px; bottom: 14px; z-index: 3; appearance: none; border: 1px solid rgba(255,255,255,.35); background: rgba(3,5,6,.62); padding: 10px 12px; backdrop-filter: blur(12px); cursor: pointer; }

/* Journey */
.journey-scene { padding: 0; background: #081012; }
.journey-scene > .memory-media { position: absolute; inset: 0; }
.journey-scene > .memory-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.08) 46%, rgba(2,4,5,.94)); }
.journey-overlay { position: relative; z-index: 2; display: flex; flex-direction: column; min-height: 100dvh; padding: max(24px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom)); }
.journey-time { display: flex; justify-content: space-between; align-items: baseline; }
.journey-time > span:first-child { font-size: clamp(4rem, 22cqw, 6rem); font-weight: 900; line-height: .9; letter-spacing: -.08em; }
.journey-time .eyebrow { color: var(--story-accent); }
.journey-title { margin: auto 0 18px; max-width: 18rem; color: var(--story-accent); font-size: .78rem; font-weight: 800; line-height: 1.5; letter-spacing: .17em; }
.journey-overlay .memory-copy { padding-bottom: 2vh; }

/* Ticket */
.ticket-scene { grid-template-rows: auto 1fr auto; gap: 22px; background: linear-gradient(160deg, #142025, #050708 62%); }
.ticket-kicker { color: var(--story-accent); }
.ticket { align-self: center; color: #0a0a0a; background: #e9e5dc; transform: rotate(-1.8deg); box-shadow: 0 28px 70px rgba(0,0,0,.5); }
.ticket-head { position: relative; display: flex; flex-direction: column; padding: 24px; border-bottom: 1px dashed rgba(0,0,0,.4); text-transform: uppercase; }
.ticket-head > span:first-child { font-size: clamp(2.2rem, 12cqw, 3.3rem); font-weight: 900; line-height: .8; letter-spacing: -.06em; }
.ticket-head strong { color: transparent; font-size: clamp(3.2rem, 18cqw, 5rem); font-weight: 900; line-height: .85; letter-spacing: -.08em; -webkit-text-stroke: 1px #0a0a0a; }
.ticket-code { position: absolute; right: 22px; top: 22px; font-size: .63rem; font-weight: 700; writing-mode: vertical-rl; letter-spacing: .15em; }
.ticket-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; padding: 25px 24px 28px; }
.ticket-fields div:nth-child(2), .ticket-fields div:nth-child(5) { grid-column: span 2; }
.ticket-fields dt { color: #68645e; font-size: .65rem; }
.ticket-fields dd { margin: 7px 0 0; overflow-wrap: anywhere; font-size: clamp(.9rem, 4cqw, 1.08rem); font-weight: 800; line-height: 1.12; text-transform: uppercase; }
.ticket-stub { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 18px 24px; border-top: 1px dashed rgba(0,0,0,.4); }
.barcode { width: 42%; height: 34px; background: repeating-linear-gradient(90deg, #0a0a0a 0 2px, transparent 2px 4px, #0a0a0a 4px 5px, transparent 5px 8px); }
.ticket-copy { color: rgba(243,244,239,.82); font-size: 1rem; line-height: 1.55; }

/* Before show */
.before-show-scene { grid-template-rows: auto minmax(260px, 42dvh) 1fr; gap: 22px; background: #071012; }
.before-show-bg { position: absolute; inset: -30px; z-index: -2; opacity: .34; filter: blur(30px) brightness(.68); transform: scale(1.15); }
.before-show-bg img { object-fit: cover; }
.before-show-scene::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3,5,6,.26), #050708 76%); }
.before-show-head { display: flex; justify-content: space-between; gap: 18px; color: var(--story-accent); }
.before-show-head span:last-child { color: rgba(255,255,255,.62); text-align: right; }
.before-show-photo { position: relative; margin-inline: -24px; }
.before-show-photo img { object-fit: contain; }
.before-show-copy { align-self: center; }
.before-show-copy h2 { margin: 0 0 16px; font-size: clamp(2.2rem, 12cqw, 3.4rem); line-height: .98; letter-spacing: -.06em; }

/* Lights off + opening */
.lights-off-scene { grid-template-rows: 1fr auto; background: #000; }
.lights-time { align-self: center; margin: 0; color: rgba(255,255,255,.9); font-size: clamp(5.8rem, 30cqw, 8rem); font-weight: 250; line-height: 1; letter-spacing: -.08em; }
.lights-off-scene > div { padding-bottom: 8vh; }
.lights-off-scene .eyebrow { color: var(--story-accent); }
.lights-off-scene h2 { margin: 16px 0 0; font-size: clamp(2.6rem, 14cqw, 3.8rem); letter-spacing: -.06em; }
.opening-scene { grid-template-rows: minmax(360px, 58dvh) 1fr; gap: 22px; background: #020405; padding-inline: 0; }
.opening-video { margin-top: calc(-1 * max(24px, env(safe-area-inset-top))); }
.opening-copy { align-self: center; padding: 0 24px max(12px, env(safe-area-inset-bottom)); }
.opening-copy > .eyebrow { color: var(--story-accent); }
.opening-copy h2 { margin: 12px 0 18px; color: transparent; font-size: clamp(3rem, 16cqw, 4.5rem); line-height: .88; letter-spacing: -.07em; -webkit-text-stroke: 1px rgba(255,255,255,.82); }

/* Performance moments */
.video-moment-scene { grid-template-rows: auto minmax(320px, 55dvh) 1fr; gap: 18px; background: #050708; }
.video-moment-scene header, .ending-video-scene header { display: flex; justify-content: space-between; gap: 18px; color: rgba(255,255,255,.62); }
.video-moment-scene header span:last-child { color: var(--story-accent); }
.video-moment-scene .viewport-video { margin-inline: -24px; }
.video-moment-copy { align-self: center; }
.video-moment-copy > .eyebrow { margin: 0 0 9px; color: var(--story-accent); }
.video-moment-copy h2 { margin: 0 0 12px; font-size: clamp(2rem, 11cqw, 3.2rem); line-height: .98; letter-spacing: -.055em; }
.video-moment-2 { background: #e9e5dc; color: #080a0b; }
.video-moment-2 .sound-toggle { color: #fff; }
.video-moment-2 header { color: rgba(0,0,0,.56); }
.video-moment-3 { background: linear-gradient(180deg, #071012, #050708); }
.video-moment-4 { background: #161011; }
.video-moment-4 .video-moment-copy h2 { color: var(--story-accent); font-size: clamp(2.8rem, 15cqw, 4rem); }

/* Ending */
.ending-video-scene { grid-template-rows: auto minmax(300px, 48dvh) 1fr; gap: 18px; background: #080708; }
.ending-video-scene header span:first-child { color: var(--story-accent); }
.ending-video-scene .viewport-video { margin-inline: -24px; }
.ending-copy { align-self: center; }
.ending-copy h2 { margin: 0 0 16px; font-size: clamp(1.9rem, 9cqw, 2.65rem); line-height: 1.1; letter-spacing: -.045em; }
.reflection-scene { grid-template-rows: auto 1fr; background: #ece8df; color: #080909; }
.reflection-scene > .eyebrow { color: #67645e; }
.reflection-scene .memory-copy { position: relative; z-index: 2; align-self: center; padding: 4vh 0; font-size: clamp(1.02rem, 4.4cqw, 1.17rem); line-height: 1.72; }
.reflection-mark { position: absolute; right: -8cqw; bottom: -12cqw; margin: 0; color: transparent; font-size: 70cqw; font-weight: 900; line-height: 1; -webkit-text-stroke: 1px rgba(0,0,0,.12); }

/* After */
.after-scene { grid-template-rows: auto 1fr auto; background: radial-gradient(circle at 50% 15%, #17252a, #050708 54%); }
.route-line { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; font-size: .75rem; font-weight: 800; letter-spacing: .16em; }
.route-line i { height: 1px; background: linear-gradient(90deg, var(--story-accent), rgba(255,255,255,.28)); }
.after-content { align-self: center; }
.after-content > .eyebrow { color: var(--story-accent); }
.after-content h2 { margin: 14px 0 24px; font-size: clamp(3rem, 17cqw, 4.5rem); line-height: .9; letter-spacing: -.07em; }
.after-whisper { margin: 0; color: rgba(255,255,255,.58); font-size: .9rem; line-height: 1.7; }

/* Final */
.final-memory-scene { grid-template-rows: auto 1fr auto; background: var(--story-accent); color: #031012; }
.final-memory-scene .memory-copy { align-self: center; font-size: clamp(1.15rem, 5.25cqw, 1.4rem); font-weight: 640; line-height: 1.74; }
.final-next { margin: 0; font-size: clamp(2.8rem, 15cqw, 4rem); font-weight: 900; line-height: .86; letter-spacing: -.07em; }
.final-photo-scene { grid-template-rows: 1fr auto auto; gap: 18px; background: #030405; padding-inline: 0; }
.final-photo { position: relative; width: 100%; min-height: 52dvh; }
.final-photo img { object-fit: contain; object-position: center; }
.final-photo-copy { padding: 0 24px; }
.final-photo-copy .eyebrow { color: var(--story-accent); }
.final-photo-copy h2 { margin: 12px 0 8px; font-size: clamp(3rem, 16cqw, 4.5rem); line-height: .9; letter-spacing: -.075em; }
.final-photo-copy > p:last-child { margin: 0; font-size: 1rem; line-height: 1.65; }
.replay-link { display: flex; justify-content: space-between; margin: 0 24px max(4px, env(safe-area-inset-bottom)); padding-top: 14px; border-top: 1px solid rgba(255,255,255,.3); text-decoration: none; }

/* Legacy optional scenes */
.first-memory-scene { grid-template-rows: auto minmax(260px,48dvh) 1fr; gap: 22px; background: #070707; }
.scene-time { display:flex; align-items:baseline; justify-content:space-between; }
.scene-time > span:first-child { font-size:clamp(3.8rem,20cqw,5.4rem); font-weight:900; line-height:.9; letter-spacing:-.08em; }
.first-memory-scene .memory-media { margin-inline:-24px; }
.venue-scene { padding:0; background:#050505; }
.venue-scene > .memory-media { position:absolute; inset:0; }
.venue-overlay { position:relative; z-index:1; display:flex; flex-direction:column; justify-content:space-between; min-height:100dvh; padding:max(24px,env(safe-area-inset-top)) 24px max(26px,env(safe-area-inset-bottom)); }
.venue-time { margin:0; font-size:clamp(5.2rem,27cqw,7.4rem); font-weight:900; line-height:.85; letter-spacing:-.09em; }
.venue-name { border-top:1px solid rgba(255,255,255,.32); padding-top:14px; }

@keyframes drift { 50% { transform: translateY(-7px); } }
@media (min-width: 700px) {
  body { background: #15191a; }
  .concert-story { max-width: 430px; margin-inline: auto; box-shadow: 0 0 90px rgba(0,0,0,.72); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
