/* LamThem by VNDC Technology, built by Nguyễn Minh Danh.
   LamThem landing (3D hero + scroll story). Reused from the earlier landing build, content rewritten for the app. A calmer "Giờ xanh" (misty sky, ice, slate navy, lots of white).
   Night = the network and live things. Day sheet = where you read and decide. */
:root {
  --night: #155787; --night-deep: #0B2F52; --night-up: #1B6F9F; --street: #0B2F52; --ink-night: #08233F;
  --night-line: rgba(196, 218, 240, .22); --on-night-2: #C2E2F2;
  --amber: #FF8E1E;                       /* sodium: live / current state only */
  --haze: #F4F8FC; --haze-2: #E3EDF6; --ink: #0E2A47; --ink-2: #475A70; --line: #D5E2EE;
  --leaf: #147A4E; --leaf-night: #3DBE84;  /* released money (day / night) */
  --coral: #FF7A6B; --sky: #22D3EE; --mint: #38DDB0; --lilac: #B79CFF; /* one hue per chapter, never decoration */
  --teal-deep: #0A3A52; --plum: #2A1769; --plum-deep: #1A0F4C;
  --peach: #FFF1E4; --peach-line: #EBD3BD; --foam: #E4F6F6; --foam-line: #BFDDE0;
  --display: 'Saira Variable', 'Saira', 'Be Vietnam Pro', system-ui, sans-serif;
  --text: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gut: clamp(16px, 4vw, 56px); --edge: max(var(--gut), calc((100vw - 1440px) / 2 + var(--gut))); --ease: cubic-bezier(.2, .7, .2, 1);
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cpath d='M0 0L96 96M96 0L0 96' stroke='%23155787' stroke-width='2.5'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; color-scheme: dark; touch-action: manipulation; }
body { font: 400 17px/1.6 var(--text); color: #fff; background: var(--night-deep); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gut); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 10px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 99; padding: 12px 16px; border-radius: 12px; background: var(--haze); color: var(--night); font-weight: 600; }
.skip:focus { top: 12px; }

.display { font-family: var(--display); font-stretch: 88%; font-weight: 650; letter-spacing: -.012em; line-height: 1.06; font-variant-numeric: tabular-nums; text-wrap: balance; }
.money { font-family: var(--display); font-stretch: 88%; font-weight: 650; font-variant-numeric: tabular-nums; }
.ch-t { font-size: clamp(34px, 4.6vw, 64px); max-width: 15ch; }
.t { display: block; font: 600 21px/1 var(--display); font-stretch: 88%; font-variant-numeric: tabular-nums; color: var(--on-night-2); margin-bottom: 16px; }
.lead { font-size: clamp(19px, 1.2vw + 8px, 24px); color: var(--on-night-2); max-width: 46ch; margin-top: 18px; }
.note { font-size: 17px; color: var(--on-night-2); max-width: 52ch; margin-top: 16px; }

/* buttons: night fill on day, haze fill on night (as in the app) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; font-weight: 600; font-size: 17px; line-height: 1.2; white-space: nowrap; background: var(--night); color: #fff; transition: background .2s, scale .2s var(--ease); }
.btn:hover { background: var(--night-up); }
.btn:active { scale: .98; } /* independent of the reveal transform */
.btn-haze { background: var(--haze); color: var(--night); }
.btn-haze:hover { background: #fff; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(194, 226, 242, .55); }
.btn-ghost:hover { background: rgba(194, 226, 242, .1); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 12px; }

/* header */
/* header: motion.js writes the tone of whatever chapter colour is under it */
.hd { --hbg: #0B2F52; --hink: #fff; position: fixed; inset: 0 0 auto; z-index: 50; background: color-mix(in srgb, var(--hbg) 72%, transparent); color: var(--hink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background .35s, color .35s; }
.hd .btn-haze { background: var(--hink); color: var(--hbg); transition: background .35s, color .35s, scale .2s var(--ease); }
.hd :focus-visible { outline-color: var(--hink); }
.hbar { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 700 21px/1 var(--display); font-stretch: 92%; }
.logo svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 15.5px; font-weight: 500; transition: background .2s; }
.nav a:hover { background: color-mix(in srgb, var(--hink) 14%, transparent); }
.hbar > .btn { margin-left: 8px; }
@media (max-width: 1000px) { .nav { display: none; } .hbar > .btn { margin-left: auto; } }

/* ================= 0. hero (kept story, Giờ xanh palette) ================= */
.story { position: relative; background: var(--night-deep); }
.pin { position: relative; background: var(--sbg, var(--night-deep)); overflow: hidden; }
#gl { display: none; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.streets, .hint { display: none; }
.illus { position: relative; z-index: 5; padding: 0 var(--edge) 20px; font-size: 12.5px; color: var(--on-night-2); }
.story.live .illus { position: absolute; left: var(--gut); right: var(--gut); bottom: 10px; padding: 0; font-size: 11.5px; opacity: calc(1 - var(--st, 0)); pointer-events: none; }
/* static fallback: CSS planet on the right edge, like the hero pose */
.story:not(.live) .pin::before { content: ""; position: absolute; z-index: 1; right: max(-30vw, -420px); top: 50%; width: min(70vw, 900px); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle at 30% 40%, rgba(255, 142, 30, .95) 0 3px, rgba(255, 142, 30, .25) 4px 12px, transparent 13px),
    radial-gradient(rgba(200, 224, 244, .4) 1.1px, transparent 1.8px) 0 0 / 10px 10px,
    radial-gradient(circle at 36% 30%, #12568E, #0B2F52 70%);
  box-shadow: 0 0 0 1px rgba(200, 224, 244, .28), 0 0 90px 10px rgba(160, 200, 236, .18); }
.panels { position: relative; z-index: 5; padding: 120px var(--edge) 64px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.panel { background: rgba(21, 87, 135, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 22px; padding: 24px; box-shadow: inset 0 0 0 1px var(--night-line); }
.panel:first-child { grid-column: 1 / -1; background: none; backdrop-filter: none; box-shadow: none; padding: 24px 0 40px; max-width: 680px; }
.panel h1 { font-size: clamp(38px, 5.2vw, 84px); }
.panel h2 { font-size: clamp(26px, 3.2vw, 46px); }
.panel h1, .panel h2 { margin: 0 0 14px; }
.panel p { color: var(--on-night-2); max-width: 46ch; }
.ask { display: flex; gap: 8px; margin-top: 20px; padding: 6px; border-radius: 18px; background: var(--haze); max-width: 600px; }
.ask input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 14px; min-height: 48px; color: var(--ink); font-size: 16px; }
.ask input::placeholder { color: var(--ink-2); }
.ask input:focus { outline: none; }
.ask:focus-within { box-shadow: 0 0 0 3px var(--amber); }
.ask .btn { min-height: 48px; border-radius: 13px; }

.story.live { height: 320vh; }
.story.live .pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
.story.live #gl { display: block; }
.story.live .pin { touch-action: pan-y; cursor: grab; } /* horizontal drag spins the globe, vertical swipe still scrolls */
.story.live .pin.drag { cursor: grabbing; }
.story.live .pin::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: var(--st, 0); background: linear-gradient(180deg, transparent 25%, var(--street) 88%); }
.story.live .streets { display: block; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: var(--st, 0); background: var(--tile) 0 100% / 96px 96px repeat; }
.story.live .panels { position: absolute; inset: auto auto 0 0; display: block; height: min(66svh, 540px); width: min(540px, 100%); padding: 0 var(--gut) clamp(16px, 5svh, 48px); }
.story.live .panel { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(16px, 5svh, 48px); opacity: 0; transform: translateY(28px) scale(.98); pointer-events: none; visibility: hidden; transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .6s; background: rgba(19, 34, 63, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--night-line); padding: 20px; max-width: none; }
.story.live .panel.on { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.orbit { display: none; }
.story.live .orbit { display: block; position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.oc { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; width: max-content; max-width: 250px; padding: 9px 16px 9px 9px; background: rgba(244, 248, 252, .96); color: var(--ink); border-radius: 16px; box-shadow: 0 18px 40px -16px rgba(6, 24, 44, .7); opacity: 0; will-change: transform, opacity; line-height: 1.3; }
.oc img, .oc .ic { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
.oc .ic { display: grid; place-items: center; background: var(--haze-2); color: var(--night); }
.oc .ic.lock { background: var(--night-deep); color: var(--amber); }
.oc b { display: block; font-size: 13.5px; font-weight: 600; color: var(--night); }
.oc span { display: block; color: var(--ink-2); font-size: 12px; }
@media (max-width: 700px) { .oc { max-width: 156px; padding: 6px 10px 6px 6px; gap: 7px; } .oc img, .oc .ic { width: 34px; height: 34px; border-radius: 10px; } .oc .i { width: 17px; height: 17px; } .oc b { font-size: 12px; } .oc span { font-size: 11px; } }
.story.live .panels, .story.live .hint { z-index: 5; }
.story.live .hint { opacity: calc(1 - var(--st, 0)); display: flex; position: absolute; right: clamp(28px, 5vw, 64px); bottom: 22px; align-items: center; font-size: 13px; font-weight: 600; color: var(--on-night-2); background: rgba(19, 34, 63, .7); padding: 6px 12px; border-radius: 99px; }
@media (max-width: 700px) {
  .story.live .panels { width: 100%; } .story.live .hint { display: none; }
  .story.live .panel p { font-size: 14.5px; }
  .ask { flex-direction: column; } .ask input { min-height: 44px; }
}
@media (min-width: 701px) {
  .story.live .panels { inset: 0; height: 100%; width: auto; padding: 0; pointer-events: none; }
  .story.live .panel { top: 50%; bottom: auto; left: var(--edge); right: auto; width: min(680px, 58vw); background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; padding: 0; transform: translateY(-42%); }
  .story.live .panel.on { transform: translateY(-50%); }
  .story.live .panel.cap { left: 50%; top: clamp(88px, 12svh, 116px); width: min(760px, 80vw); text-align: center; transform: translate(-50%, 16px); }
  .story.live .panel.cap.on { transform: translate(-50%, 0); }
  .story.live .panel.cap p { display: none; }
  .story.live .panel.cap h2 { text-shadow: 0 2px 28px rgba(8, 35, 63, .9); }
  .story.live .panel p { font-size: clamp(16px, 1.3vw, 19px); }
}

/* ================= after the hero: one scroll story, a new colour per chapter =================
   Each chapter names a tone; motion.js puts one fixed layer per tone behind the page and fades
   it in while the chapter arrives, so neighbours cross-fade. Without motion the chapter paints its own bg. */
/* --m1..--m4: the four colour clouds of the silk mesh (motion.js), "r g b". Light chapters: misty sky,
   faint lavender-blue, ice aqua and white over white; dark chapters: slate-blue swirls over slate navy.
   Every cloud is checked against ink / ink2 / acc at full strength (pal.py in the report). */
[data-tone=navy]   { --bg: #0B2F52; --ink: #FFFFFF; --ink2: #C2E2F2; --acc: #8CC4E8; --m1: 21 87 135; --m2: 27 111 159; --m3: 14 58 98; --m4: 18 110 158; }
[data-tone=paper]  { --bg: #FFFFFF; --ink: #0E2A47; --ink2: #475A70; --acc: #0A66A6; --amber: #A85A00; --m1: 168 212 240; --m2: 214 232 246; --m3: 200 238 244; --m4: 244 249 253; } /* white sheet: amber darkened to stay readable */
[data-tone=tang]   { --bg: #F4F8FC; --ink: #0E2A47; --ink2: #475A70; --acc: #0A66A6; --amber: #A85A00; --m1: 168 212 240; --m2: 214 232 246; --m3: 214 232 246; --m4: 255 255 255; }
[data-tone=plum]   { --bg: #E2F0FA; --ink: #0E2A47; --ink2: #475A70; --acc: #0A66A6; --amber: #A85A00; --m1: 168 212 240; --m2: 214 232 246; --m3: 246 250 254; --m4: 200 238 244; }
[data-tone=paper2] { --bg: #FFFFFF; --ink: #0E2A47; --ink2: #475A70; --acc: #0A66A6; --amber: #A85A00; --m1: 168 212 240; --m2: 200 238 244; --m3: 214 232 246; --m4: 244 249 253; }
[data-tone=paper3] { --bg: #F4F8FC; --ink: #0E2A47; --ink2: #475A70; --acc: #0A66A6; --amber: #A85A00; --m1: 178 218 242; --m2: 255 255 255; --m3: 214 232 246; --m4: 200 238 244; }
[data-tone=dusk]   { --bg: #0B2F52; --ink: #FFFFFF; --ink2: #C2E2F2; --acc: #8CC4E8; --m1: 21 87 135; --m2: 27 111 159; --m3: 14 58 98; --m4: 18 110 158; }
[data-tone] { --line: color-mix(in srgb, var(--ink) 24%, transparent); }

.tones { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.tone { position: absolute; inset: 0; background: var(--bg); opacity: 0; }
.tone[data-tone=navy] { background: var(--bg) var(--tile) 0 0 / 96px 96px repeat; } /* the hero's street lattice carries on */

/* living background (motion.js): a silk mesh gradient. One tiny canvas (1/10 of the viewport) is filled
   pixel by pixel from four drifting colour clouds with a slow sine warp, then stretched by CSS: soft
   without any blur filter. It sits above the tone layers and below the content. */
.mesh { position: absolute; inset: 0; width: 100%; height: 100%; }

.post { position: relative; overflow-x: clip; --side: max(5vw, 24px); --body: clamp(18px, 1.15vw + 8px, 26px); --pt: clamp(140px, 26vh, 300px); --pb: clamp(160px, 30vh, 340px); }
.ch { position: relative; z-index: 1; color: var(--ink); font-size: var(--body); line-height: 1.55;
  background: radial-gradient(70vw 60vh at 86% 16%, rgb(var(--m1)), transparent), radial-gradient(60vw 50vh at 8% 90%, rgb(var(--m2)), transparent),
    radial-gradient(50vw 40vh at 40% 50%, rgb(var(--m3)), transparent), var(--bg); } /* the mesh's static frame (no motion) */
.anim .ch { background: none; }
.ch :focus-visible { outline-color: var(--ink); }
.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2vw; padding-inline: var(--side); }
.g > * { grid-column: 1 / -1; }
@media (min-width: 1000px) { .g > .in2 { grid-column: 3 / -1; } }

/* the drawn thread in the left margin */
.thread { position: absolute; z-index: 0; top: 0; left: calc(var(--side) / 2 - 20px); width: 40px; height: 100%; overflow: visible; pointer-events: none; }
.thread path { fill: none; stroke: var(--thread, #8CC4E8); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke .5s; }
@media (max-width: 700px) { .thread { display: none; } }

/* type: SportO scale */
.giant { font-family: var(--display); font-stretch: 82%; font-weight: 780; font-size: clamp(46px, 8vw, 150px); line-height: .94; letter-spacing: -.02em; text-wrap: balance; max-width: 15ch; }
.mid { font-family: var(--display); font-stretch: 84%; font-weight: 720; font-size: clamp(34px, 4.6vw, 84px); line-height: 1; letter-spacing: -.015em; text-wrap: balance; }
@media (max-width: 700px) { .giant { font-size: max(46px, 13.5vw); } }
.ch .t { font: 700 clamp(28px, 2.6vw + 8px, 56px)/1 var(--display); font-stretch: 84%; color: var(--acc); margin-bottom: clamp(12px, 1.6vw, 24px); }
.ch .lead { font-size: clamp(20px, 1.7vw + 8px, 32px); line-height: 1.42; color: var(--ink); max-width: 30ch; margin-top: 0; }
.ch .note { font-size: var(--body); color: var(--ink2); max-width: 46ch; margin-top: 20px; }
.ch .money { letter-spacing: -.01em; }

/* split words (motion.js): the outer span clips only below, so diacritics on top never get cut */
.w { display: inline-block; vertical-align: top; clip-path: inset(-.5em -1em 0 -1em); padding-bottom: .12em; margin-bottom: -.12em; }
.wi { display: inline-block; }
.still *, .still *::before, .still *::after { transition: none !important; } /* ?still=1 screenshot hook */

/* buttons inside chapters take the chapter ink, never amber */
.ch .btn { min-height: 60px; padding: 0 30px; border-radius: 16px; font-size: clamp(18px, .5vw + 14px, 21px); background: var(--ink); color: var(--bg); }
.ch .btn:hover { background: color-mix(in srgb, var(--ink) 84%, var(--bg)); }
.ch .btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.ch .btn-ghost:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }

/* ================= flying cards: a collage of real app UI around a chapter heading =================
   .fhead: the heading keeps the left columns; .fly holds the cards (right columns on desktop, a short
   band under the heading on phones). .fc = position + scroll depth (motion.js), .card = flight (motion.js)
   + rest tilt (CSS rotate) + idle bob (CSS translate), so the three never fight over one transform.
   Card look: white, 18px corners, a hairline plus a two-step cool shadow; numbers in tabular figures. */
.fhead { position: relative; }
.fly { position: relative; height: 300px; margin-top: 28px; pointer-events: none; }
.fc { position: absolute; left: var(--mx, var(--x)); top: var(--my, var(--y)); }
.fc.dx { display: none; }
@media (min-width: 1000px) {
  .fhead { min-height: clamp(440px, 38vw, 580px); align-content: center; }
  .fhead > .in2 { grid-column: 3 / 9; }
  .fhead > .fly { grid-column: 9 / -1; position: absolute; inset: 0; height: auto; margin: 0; } /* abs-pos grid child: columns 9-12, full height */
  .fc { left: var(--x); top: var(--y); }
  .fc.dx { display: block; }
}
.card { display: flex; align-items: center; gap: 12px; width: max-content; max-width: 300px; padding: 12px 18px 12px 12px; border-radius: 18px;
  background: #FFFFFF; color: #0E2A47; font-size: 13.5px; line-height: 1.35; rotate: var(--r, 0deg); will-change: transform;
  box-shadow: 0 0 0 1px rgba(20, 36, 63, .06), 0 2px 6px rgba(21, 87, 135, .07), 0 16px 36px -12px rgba(21, 87, 135, .24), 0 36px 72px -32px rgba(21, 87, 135, .3); }
[data-tone=navy] .card, [data-tone=dusk] .card { background: #F6FAFE; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 18px 40px -14px rgba(6, 24, 44, .6), 0 40px 80px -36px rgba(6, 24, 44, .7); }
.card b { display: block; font-size: 15px; font-weight: 600; }
.card .k { display: block; font-size: 12.5px; color: #5F7388; font-variant-numeric: tabular-nums; }
.card .th { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
.card .av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.card .tags { display: flex; gap: 6px; margin-top: 6px; }
.card .tags span { padding: 2px 9px; border-radius: 99px; white-space: nowrap; background: #E8F2FA; color: #0A66A6; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.card .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #E8F2FA; color: #0A66A6; }
.card .ic.ok { background: #E2F3EA; color: #147A4E; }
.card .ic.amb { background: #FFF2DE; color: #A85A00; }
.card.chip { border-radius: 999px; padding: 8px 18px 8px 8px; }
.card.chip .ic { width: 32px; height: 32px; }
.card.tile { padding: 6px; border-radius: 20px; }
.card.tile img { width: clamp(120px, 11vw, 168px); aspect-ratio: 4 / 3; border-radius: 14px; object-fit: cover; }
.card.pile { padding: 8px 16px 8px 8px; border-radius: 999px; }
.pile .faces { display: flex; }
.pile .faces img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff; }
.pile .faces img + img { margin-left: -10px; }
.card.say { flex-direction: column; align-items: flex-start; gap: 8px; max-width: 250px; padding: 14px 18px; }
.say .stars { display: flex; gap: 2px; color: #D9780F; }
.say .stars .i { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.say p { font-size: 15px; font-weight: 500; }
.say .by { display: flex; align-items: center; gap: 8px; color: #5F7388; font-size: 12.5px; }
.say .by img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.card.quote-mini { flex-direction: column; align-items: stretch; gap: 10px; min-width: 236px; padding: 14px 16px; }
.quote-mini .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.quote-mini .row b { font: 720 20px/1 var(--display); font-stretch: 86%; font-variant-numeric: tabular-nums; color: #A85A00; }
.quote-mini .acts { display: flex; gap: 8px; }
.quote-mini .acts span { flex: 1; white-space: nowrap; padding-inline: 10px; padding: 8px 0; border-radius: 10px; text-align: center; font-weight: 600; background: #E8F2FA; color: #0A66A6; }
.quote-mini .acts span:first-child { background: #0E2A47; color: #fff; }
.card .i { width: 20px; height: 20px; }
/* idle bob: only while the cluster is on screen (motion.js adds .on), each card on its own beat */
@keyframes bob { to { translate: 0 -9px; } }
.fly.on .card { animation: bob 3.2s ease-in-out infinite alternate; }
.fly.on .fc:nth-child(2) .card { animation-duration: 3.9s; animation-delay: -1.2s; }
.fly.on .fc:nth-child(3) .card { animation-duration: 4.6s; animation-delay: -2.1s; }
.fly.on .fc:nth-child(4) .card { animation-duration: 3.6s; animation-delay: -.7s; }
.fly.on .fc:nth-child(5) .card { animation-duration: 4.2s; animation-delay: -1.7s; }
.still .fly .card { animation: none; }
@media (min-width: 1280px) {
  .card { max-width: 330px; padding: 14px 20px 14px 14px; gap: 14px; font-size: 14.5px; }
  .card b { font-size: 16.5px; } .card .k { font-size: 13.5px; } .card .tags span { font-size: 13px; }
  .card .th { width: 60px; height: 60px; } .card .av { width: 54px; height: 54px; } .card .ic { width: 44px; height: 44px; }
  .card.chip { padding: 9px 20px 9px 9px; } .card.chip .ic { width: 36px; height: 36px; }
  .card.say { max-width: 280px; } .say p { font-size: 16.5px; }
  .quote-mini .row b { font-size: 22px; }
}
@media (max-width: 700px) {
  .card { max-width: 232px; padding: 9px 14px 9px 9px; gap: 10px; font-size: 12.5px; }
  .card b { font-size: 13.5px; } .card .k { font-size: 11.5px; }
  .card .th, .card .av { width: 40px; height: 40px; }
  .card .ic { width: 34px; height: 34px; }
  .card.say { max-width: 210px; padding: 12px 14px; } .say p { font-size: 13.5px; }
  .card.quote-mini { min-width: 0; max-width: 210px; }
}

/* ================= 1. one ticket, start to finish: the 7-state thread ================= */
.journey { padding-top: clamp(96px, 16vh, 180px); }
.anim .journey { background: none; }
html:not(.anim) .journey { background: var(--bg) var(--tile) 0 0 / 96px 96px repeat; }
.jr-head { padding-bottom: clamp(24px, 4vh, 56px); }
.jr-stage { grid-column: 7 / -1; grid-row: 1; position: sticky; top: 0; height: 100vh; height: 100svh; align-self: start; z-index: 1; }
.jr-text { grid-column: 1 / 7; grid-row: 1; position: relative; z-index: 2; padding: 10vh 0 var(--pb); }
.jr-map { position: absolute; inset: 64px 0 0; width: 100%; height: calc(100% - 64px); }
.jr-map .track { fill: none; stroke: #28426F; stroke-width: 8; stroke-linecap: round; }
.jr-map .route { fill: none; stroke: var(--amber); stroke-width: 8; stroke-linecap: round; }
.jr-map .loop { fill: none; stroke: var(--amber); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; opacity: 0; transition: opacity .5s var(--ease); }
.jr-map .loop-head { fill: var(--amber); opacity: 0; transition: opacity .5s var(--ease); }
.jr-map .loop-t { font: 600 15px var(--text); fill: #A8D4F0; opacity: 0; transition: opacity .5s var(--ease); }
.is-6 .jr-map .loop, .is-6 .jr-map .loop-head, .is-6 .jr-map .loop-t { opacity: 1; }
.jr-map .n circle.dot { fill: #0B2F52; stroke: #4F7FAE; stroke-width: 4; transition: fill .4s, stroke .4s; }
.jr-map .n .halo { fill: rgba(255, 142, 30, .22); opacity: 0; transform-box: fill-box; transform-origin: center; }
.jr-map .n .num { font: 760 26px var(--display); font-stretch: 84%; fill: #C2E2F2; text-anchor: middle; dominant-baseline: central; transition: fill .4s; }
.jr-map .n .a { font: 700 27px var(--display); font-stretch: 86%; fill: #fff; }
.jr-map .n .b { font: 500 17px var(--text); fill: #A8D4F0; }
.jr-map .n .lab { opacity: .42; transition: opacity .4s; }
.jr-map .n.lit circle.dot { fill: var(--amber); stroke: var(--amber); }
.jr-map .n.lit .num { fill: #0B2F52; }
.jr-map .n.lit .lab { opacity: 1; }
.jr-map .n.now .halo { opacity: 1; animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(2); } }
.jr-now { position: absolute; right: clamp(16px, 4vw, 40px); top: 50%; transform: translateY(-50%); max-width: 52%; text-align: right; display: none; text-shadow: 0 2px 18px rgba(8, 35, 63, .9); }
.jr-now b { display: block; font: 780 clamp(30px, 8vw, 52px)/1 var(--display); font-stretch: 82%; }
.jr-now span { font-size: 16px; color: var(--ink2); }
.beat { min-height: 56vh; padding-right: 2vw; }
.beat .st { display: inline-flex; align-items: center; gap: 12px; font: 780 clamp(28px, 3vw, 52px)/1 var(--display); font-stretch: 82%; color: var(--ink2); margin-bottom: 14px; transition: color .3s; }
.beat .st i { font-style: normal; opacity: .7; }
.anim .beat.now .st { color: var(--acc); }
.anim .beat.now .st::before { content: ""; width: .22em; height: .22em; border-radius: 50%; background: currentColor; }
.beat h3 { margin-bottom: 18px; max-width: 16ch; font-size: clamp(30px, 3.4vw, 60px); }
.beat p { color: var(--ink2); max-width: 36ch; }
@media (max-width: 999px) {
  .jr-stage { grid-column: 1 / -1; grid-row: 1; z-index: 3; top: 64px; height: 44svh; margin-inline: calc(var(--side) * -1); background: var(--bg) var(--tile) 0 0 / 96px 96px repeat; box-shadow: 0 1px 0 var(--line); }
  .jr-map { inset: 0; height: 100%; }
  .jr-map .lab, .jr-map .loop-t { display: none; }
  .jr-now { display: block; }
  .jr-text { grid-column: 1 / -1; grid-row: 2; padding: 32px 0 14vh; }
  .beat { min-height: 46svh; padding-right: 0; }
}

/* ================= 2. two technicians press "Nhận việc" at once (pinned, scrubbed) ================= */
.race-track { color: var(--ink); }
.anim .race-track { height: 260vh; }
.race-pin { min-height: 100svh; display: flex; align-items: center; padding: 96px 0 48px; }
.anim .race-track .race-pin { position: sticky; top: 0; height: 100svh; }
.race-pin > .g { width: 100%; }
.gh { font-size: clamp(40px, 5.4vw, 100px); max-width: 18ch; }
.duel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(12px, 2vw, 28px); align-items: stretch; margin-top: clamp(20px, 4vh, 48px); max-width: 1180px; }
.dtech, .dticket { border-radius: 24px; padding: clamp(16px, 1.8vw, 26px); display: grid; gap: 12px; align-content: center; justify-items: center; text-align: center; }
.dtech { background: #fff; color: #0E2A47; box-shadow: 0 0 0 1px rgba(20, 36, 63, .08), 0 18px 40px -24px rgba(21, 87, 135, .4); }
.dtech .av { width: clamp(48px, 5vw, 72px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #E8F2FA; color: #0A66A6; }
.dtech .av .i { width: 52%; height: 52%; }
.dtech b { font: 740 clamp(18px, 1.5vw, 26px)/1.15 var(--display); font-stretch: 86%; }
.dbtn { width: 100%; min-height: 52px; display: grid; place-items: center; border-radius: 14px; background: #0E2A47; color: #fff; font-weight: 600; font-size: 17px; transition: transform .25s var(--ease), background .35s; }
.is-press .dbtn { transform: scale(.94); }
.dout { min-height: 56px; display: grid; align-content: center; font-weight: 600; font-size: clamp(15px, 1vw + 8px, 20px); line-height: 1.3; }
.dout span { display: none; align-items: center; justify-content: center; gap: 8px; }
.dout .i { width: 1.2em; height: 1.2em; }
.dtech.a .win { color: #147A4E; }
.dtech.b .lose { color: #A85A00; }
.is-done .dtech.a .win, .is-done .dtech.b .lose { display: inline-flex; }
.is-done .dtech.a { box-shadow: 0 0 0 3px #147A4E, 0 18px 40px -24px rgba(20, 122, 78, .5); }
.is-done .dtech.b { opacity: .78; }
.is-done .dtech.b .dbtn { background: #7C8FA3; }
.dticket { background: #0E2A47; color: #fff; box-shadow: 0 30px 60px -30px rgba(8, 35, 63, .6); }
.dticket img { width: clamp(64px, 7vw, 104px); aspect-ratio: 1; border-radius: 16px; object-fit: cover; }
.dticket .k { font-size: 14px; color: #A8D4F0; }
.dticket b { font: 740 clamp(20px, 1.8vw, 30px)/1.15 var(--display); font-stretch: 86%; }
.stat { display: inline-grid; align-items: center; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; background: #FF8E1E; color: #0B2F52; }
.stat > * { grid-area: 1 / 1; text-align: center; transition: opacity .3s; }
.stat .s-done { opacity: 0; }
.is-done .stat { background: #3DBE84; }
.is-done .stat .s-open { opacity: 0; }
.is-done .stat .s-done { opacity: 1; }
.race-why { padding-block: clamp(56px, 8vh, 96px) clamp(72px, 10vh, 120px); row-gap: 40px; color: var(--ink); background: var(--bg); }
.race-why p { grid-column: span 4; border-top: 4px solid var(--ink); padding-top: 20px; max-width: 34ch; color: var(--ink2); }
.race-why b { display: block; margin-bottom: 8px; color: var(--ink); font: 720 clamp(26px, 2.2vw, 40px)/1.05 var(--display); font-stretch: 84%; }
.anim .race-why { background: none; }
@media (max-width: 760px) {
  .duel { grid-template-columns: 1fr 1fr; }
  .dticket { grid-column: 1 / -1; grid-row: 1; grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 14px; }
  .dticket img { grid-row: span 3; width: 64px; }
  .dbtn { min-height: 44px; font-size: 15px; }
  .race-why p { grid-column: 1 / -1; }
  .race-pin { padding-top: 84px; }
}

/* ================= 3. photos before and after, and the report ================= */
.bench { padding: var(--pt) 0 var(--pb); }
.bench-grid { margin-top: clamp(40px, 6vw, 96px); row-gap: 40px; align-items: center; }
.frame { grid-column: 1 / 8; position: relative; overflow: hidden; }
.frame img { width: 100%; aspect-ratio: 1400 / 934; object-fit: cover; }
.probe { position: absolute; left: 6%; bottom: 8%; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: rgba(18, 34, 64, .9); color: #fff; font-size: clamp(15px, .6vw + 11px, 20px); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 142, 30, .6); transition: opacity .4s, transform .4s var(--ease); }
.anim .frame:not(.open) .probe { opacity: 0; transform: translateY(10px); }
.dot-live { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.bench-text { grid-column: 8 / -1; }
.report { margin-top: 28px; }
.report > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 16px 0; border-bottom: 2px solid var(--line); }
.report dt { font-weight: 700; }
.report dd { color: var(--ink2); }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.shot { aspect-ratio: 4 / 3; border-radius: 18px; border: 2px dashed var(--line); display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--ink2); font-weight: 600; font-size: 16px; }
.shot .i { width: 34px; height: 34px; color: var(--acc); }
@media (max-width: 999px) { .frame, .bench-text { grid-column: 1 / -1; } .frame { margin-inline: calc(var(--side) * -1); } }

/* ================= 4. notifications and the log: facts in big type ================= */
.know { padding: var(--pt) 0 clamp(120px, 20vh, 220px); }
.know-grid { margin-top: clamp(40px, 6vw, 88px); align-items: start; }
.face { grid-column: 1 / 3; display: grid; gap: 14px; justify-items: start; padding-top: clamp(22px, 2.4vw, 36px); color: var(--ink2); font-size: var(--body); line-height: 1.3; }
.orb { width: clamp(96px, 8.5vw, 148px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: var(--ink); box-shadow: 0 0 0 3px var(--ink); }
.orb .i { width: 46%; height: 46%; stroke-width: 1.6; }
.face b { display: block; color: var(--ink); font-weight: 700; }
.facts { grid-column: 3 / -1; }
.facts li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 3vw; row-gap: 12px; align-items: baseline; padding: clamp(22px, 2.4vw, 36px) 0; border-top: 2px solid var(--line); }
.facts .big { font: 760 clamp(32px, 3.5vw, 64px)/1.02 var(--display); font-stretch: 84%; letter-spacing: -.015em; text-wrap: balance; }
.facts li > p:not(.big) { color: var(--ink2); max-width: 34ch; }
.facts .logs, .facts .note { grid-column: 1 / -1; }
.logs { max-width: 920px; margin-top: 8px; }
.logs > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.logs dt { font-weight: 600; }
.logs dd { font-weight: 700; color: var(--acc); }
.facts .note { margin-top: 4px; }
@media (max-width: 999px) {
  .face { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; padding-top: 0; margin-bottom: 28px; }
  .facts { grid-column: 1 / -1; }
  .facts li { grid-template-columns: minmax(0, 1fr); }
}

/* ================= 5. four roles ================= */
.morning { padding: clamp(80px, 14vh, 160px) 0 clamp(96px, 16vh, 180px); }
.roles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(32px, 5vw, 72px); }
.role { display: grid; gap: 12px; align-content: start; padding: clamp(20px, 2vw, 32px); border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px rgba(20, 36, 63, .08), 0 18px 40px -24px rgba(21, 87, 135, .35); }
.role .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #E8F2FA; color: #0A66A6; }
.role .ic .i { width: 28px; height: 28px; }
.role h3 { font: 760 clamp(24px, 2vw, 34px)/1.1 var(--display); font-stretch: 84%; }
.role p { color: var(--ink2); font-size: calc(var(--body) * .9); }
.join { grid-column: 1 / -1; counter-reset: j; margin: clamp(32px, 5vw, 64px) 0 0; max-width: 920px; }
.join li { counter-increment: j; position: relative; padding: 18px 0 18px 72px; border-bottom: 2px solid var(--line); color: var(--ink2); }
.join li::before { content: counter(j); position: absolute; left: 0; top: 16px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font: 780 24px/1 var(--display); }
.join b { color: var(--ink); font-weight: 700; display: block; }
@media (max-width: 1199px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .roles { grid-template-columns: minmax(0, 1fr); } }

/* ================= 4b. questions ================= */
.faq { padding: clamp(80px, 14vh, 160px) 0 clamp(96px, 14vh, 160px); } /* short gap: motion.js fades these rows out while the dusk tone arrives */
.qa { margin-top: clamp(40px, 6vw, 88px); max-width: 1120px; }
.qa details { border-bottom: 2px solid var(--line); }
.qa details:first-child { border-top: 2px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; padding: 18px 0; cursor: pointer; list-style: none; font: 700 clamp(22px, 1.8vw + 8px, 38px)/1.2 var(--display); font-stretch: 90%; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 24px; height: 24px; background: linear-gradient(var(--acc), var(--acc)) 50% / 100% 4px no-repeat, linear-gradient(var(--acc), var(--acc)) 50% / 4px 100% no-repeat; transition: transform .3s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 0 28px; color: var(--ink2); max-width: 52ch; }

/* ================= 5. tonight: the planet's edge at sunset ================= */
.tonight { overflow: hidden; padding: clamp(120px, 18vh, 200px) 0 clamp(260px, 26vw, 380px); }
.limb { --w: max(1500px, 150vw); position: absolute; left: 50%; bottom: calc(clamp(170px, 20vw, 290px) - var(--w)); width: var(--w); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background:
    radial-gradient(circle at 50% 1.6%, rgba(255, 142, 30, .95) 0 3px, rgba(255, 142, 30, .22) 4px 16px, transparent 17px),
    radial-gradient(circle at 46.4% 2.4%, rgba(255, 142, 30, .8) 0 2px, transparent 9px),
    radial-gradient(circle at 54.6% 2.1%, rgba(255, 142, 30, .8) 0 2px, transparent 9px),
    radial-gradient(circle at 41% 4.3%, rgba(255, 142, 30, .6) 0 2px, transparent 8px),
    radial-gradient(rgba(200, 224, 244, .36) 1.1px, transparent 1.8px) 0 0 / 11px 11px,
    radial-gradient(circle at 50% 8%, #12568E, #0B2F52 40%);
  box-shadow: 0 0 0 2px rgba(194, 226, 242, .4), 0 -20px 90px 0 rgba(160, 200, 236, .22); }
.tn { position: relative; z-index: 1; }
.tn .giant { max-width: 14ch; }
.tn .lead { margin-top: clamp(24px, 3vw, 40px); max-width: 40ch; }
.ch .btn[disabled] { opacity: .78; cursor: not-allowed; }
.ch .btn[disabled]:active { scale: 1; }
.btn small { font-weight: 500; font-size: .82em; opacity: .85; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.ft { position: relative; z-index: 1; background: var(--ink-night); color: var(--on-night-2); padding: 36px 0 44px; font-size: 16.5px; }
.ft-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.ft .logo { color: #fff; }
.ft-nav { display: flex; flex-wrap: wrap; gap: 0 8px; margin-right: auto; }
.ft-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.ft-nav a:hover { color: #fff; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
