/* Kênh LED Lớn Miền Tây, version 2 "Hành trình QL1A" (kenh-led-2.html), 2026-11-16. On top of the homepage's CSS, site-kenh.css
   (crumbs) and led-spots.css (the sample ads). Behaviour: js/led-2.js. Moving starting states only under html.l2-fx, which the
   script sets when motion is allowed. */

/* ================================================ 01 hero: the key visual on the right, the words and the route on the left */
html body main > section.l2-hero { position: relative; overflow: hidden; padding: 0; background: radial-gradient(120% 90% at 70% 30%, #3a1a10 0%, #1a1210 45%, #121212 100%); color: #fff; }
.l2-hero__photo { position: absolute; inset: 0 0 0 auto; width: 56%; }
.l2-hero__photo > img { object-position: 50% 40%; }
.l2-hero__photo::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: linear-gradient(90deg, #161210 0%, rgb(22 18 16 / .7) 14%, rgb(22 18 16 / 0) 38%), linear-gradient(0deg, rgb(18 18 18 / .9) 0%, rgb(18 18 18 / 0) 26%); }
html body main > section.l2-hero > .wrap.l2-hero__wrap { position: relative; z-index: 7; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); padding-top: clamp(112px, 16svh, 160px); padding-bottom: var(--s-6); }
.l2-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); max-width: 560px; margin-block: auto; }
.l2-hero__text > * { margin: 0; }
.l2-hero .kv-crumbs ol, .l2-hero .kv-crumbs [aria-current] { color: rgb(255 255 255 / .72); }
.l2-hero .kv-crumbs a:hover { color: #fff; }
.l2-hero .kv-crumbs li + li::before { color: rgb(255 255 255 / .35); }
.l2-hero .v2-eyebrow { color: var(--p-inv-accent) !important; }
.l2-hero h1 { font-size: clamp(50px, 5.6vw, 92px); line-height: .96; letter-spacing: -0.035em; color: #fff; max-width: none; }
.l2-hero h1 .v2-line { white-space: nowrap; }
.l2-hero h1 .v2-line:last-child { color: #ffb162; }
.l2-hero__lead { max-width: 44ch; font-size: var(--t-lead, 18px); line-height: 1.55; color: rgb(255 255 255 / .82); }
.l2-hero .btn-row { flex-wrap: wrap; gap: var(--s-3); }
html body .l2-hero .btn.btn--secondary { background: rgb(255 255 255 / .12); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }
html body .l2-hero .btn.btn--secondary:hover { background: rgb(255 255 255 / .2); }
/* the route: six areas on one line, the screen count over each */
.l2-route { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; max-width: 760px; }
.l2-route::before { content: ""; position: absolute; left: 6px; right: 6px; top: 46px; height: 2px; background: linear-gradient(90deg, #ffb162, #ff5a4f); opacity: .7; }
.l2-route li { position: relative; display: flex; flex-direction: column; gap: 22px; font-size: var(--t-small); color: rgb(255 255 255 / .72); }
.l2-route li::before { content: ""; position: absolute; left: 0; top: 41px; width: 12px; height: 12px; border-radius: 50%; background: #121212; box-shadow: inset 0 0 0 3px #ffb162; }
.l2-route b { font: 500 clamp(24px, 2.2vw, 34px)/1 var(--font-display); font-stretch: 110%; color: #fff; }
.l2-hero__pause { position: absolute; right: var(--wrap-pad, 24px); bottom: var(--s-6); }
html.l2-fx .l2-hero__photo > img { animation: l2-push 10s cubic-bezier(.2, .6, .2, 1) both; }
@keyframes l2-push { from { transform: scale(1.12); } to { transform: none; } }
html.l2-fx .l2-route li::before { animation: l2-dot 600ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(600ms + var(--n, 0) * 120ms); }
@keyframes l2-dot { from { transform: scale(0); } to { transform: none; } }

/* ================================================ 02 the trip. Without the script the stops stack; pinned (.is-pinned) the stage
   stays on screen for one screen per stop (--l2-stops, set by js/led-2.js; six on this page) and the track slides one stop per screen. */
html body main > section.l2-trip { position: relative; padding: 0; background: #f2f2f2; }
.l2-trip__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6); align-items: end; padding-top: clamp(96px, 13svh, 128px); }
.l2-trip__head h2 { margin: 0; font-size: clamp(30px, 3vw, 44px); }
.l2-trip__head .v2-eyebrow { margin-bottom: var(--s-2); }
.l2-road { position: relative; padding-bottom: 6px; }
.l2-road__line { position: relative; display: block; height: 4px; margin: 0 8px; border-radius: 4px; background: rgb(20 20 20 / .12); overflow: hidden; }
.l2-road__line i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--trip, 0)); background: var(--p-action); }
.l2-road__stops { display: flex; justify-content: space-between; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--p-muted); }
.l2-road__stops li { position: relative; flex: 1; text-align: center; }
.l2-road__stops li:first-child { text-align: left; } .l2-road__stops li:last-child { text-align: right; }
.l2-road__stops li.is-on { color: var(--p-ink); font-weight: 600; }
.l2-road__car { position: absolute; top: -8px; left: calc(8px + var(--trip, 0) * (100% - 16px)); width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--p-action); box-shadow: 0 0 0 5px rgb(217 43 33 / .2); }

.l2-track { display: grid; gap: var(--s-8); padding-block: var(--s-7) var(--s-8); }
.l2-stop__wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: center; }
.l2-stop__text { display: grid; gap: var(--s-3); }
.l2-stop__text > * { margin: 0; }
.l2-stop__km { font-size: var(--t-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--v3-rust, var(--p-accent)); }
.l2-stop h3 { font: 500 clamp(52px, 6vw, 96px)/.95 var(--font-display); font-stretch: 110%; letter-spacing: -0.035em; }
.l2-stop__n { font-size: clamp(18px, 1.4vw, 21px); color: var(--p-muted); }
.l2-stop__n b { font: 500 clamp(28px, 2.4vw, 36px)/1 var(--font-display); font-stretch: 110%; color: var(--p-action); margin-right: 6px; }
.l2-sites { display: grid; margin: var(--s-2) 0 0 !important; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.l2-sites li { display: flex; justify-content: space-between; gap: var(--s-4); padding: 12px 0; border-bottom: 1px solid var(--line); }
.l2-sites span { font-weight: 500; }
.l2-sites em { font-style: normal; font-size: var(--t-small); color: var(--p-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.l2-stop__note { color: var(--p-muted); max-width: 46ch; }
.l2-stop__pics { position: relative; padding: 0 0 12% 0; }
.l2-pic { border-radius: var(--r-lg); background: #141414; box-shadow: 0 40px 80px -40px rgb(0 0 0 / .45); }
.l2-pic--main { aspect-ratio: 467 / 300; width: 88%; margin-left: auto; }
.l2-pic--side { position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 467 / 300; box-shadow: 0 0 0 6px #f2f2f2, 0 30px 60px -30px rgb(0 0 0 / .5); }
.l2-pic > img { transition: transform 700ms var(--ease); }
.l2-pic:hover > img { transform: scale(1.03); }
.l2-pic__place { position: absolute; right: -14px; top: -28px; z-index: 7; width: 108px; height: 108px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px #f2f2f2, 0 20px 40px -20px rgb(0 0 0 / .5); }
.l2-stop__pics:not(:has(.l2-pic--side)) { padding-bottom: 0; }
.l2-stop__pics:not(:has(.l2-pic--side)) .l2-pic--main { width: 100%; }

html body main > section.l2-trip.is-pinned { height: calc(var(--l2-stops, 6) * 100vh); height: calc(var(--l2-stops, 6) * 100svh); }
.l2-trip.is-pinned .l2-trip__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.l2-trip.is-pinned .l2-track { flex: 1 1 auto; display: flex; gap: 0; padding: 0; width: max-content; transform: translateX(calc(var(--trip, 0) * (1 - var(--l2-stops, 6)) * 100vw)); will-change: transform; }
.l2-trip.is-pinned .l2-stop { flex: none; width: 100vw; display: grid; align-content: center; }
html.l2-fx .l2-trip.is-pinned .l2-stop h3 { transition: opacity 600ms ease, translate 600ms cubic-bezier(.2, .8, .2, 1); }
html.l2-fx .l2-trip.is-pinned .l2-stop:not(.is-on) h3 { opacity: .15; translate: 0 18px; }
html.l2-fx .l2-trip.is-pinned .l2-stop .l2-pic__place { transition: scale 700ms cubic-bezier(.2, .8, .2, 1); }
html.l2-fx .l2-trip.is-pinned .l2-stop:not(.is-on) .l2-pic__place { scale: 0; }

/* ================================================ 03 the divider poles: one row into the distance, an ad rippling along it */
html body main > section.l2-row { background: #121212; color: #fff; overflow: hidden; }
html body main > section.section > .wrap.l2-row__wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr auto; gap: var(--s-7) var(--s-8); align-items: center; }
.l2-row__head { display: grid; gap: var(--s-4); }
.l2-row__head > * { margin: 0; }
.l2-row .v2-eyebrow { color: var(--p-inv-accent) !important; }
.l2-row h2 { color: #fff; }
.l2-row__head p:last-child { color: rgb(255 255 255 / .72); max-width: 46ch; }
.l2-street { position: relative; height: clamp(300px, 46svh, 420px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
.l2-street__row { position: absolute; left: 0; right: 0; bottom: 22%; display: flex; align-items: flex-end; gap: 0; }
.l2-pole { flex: none; display: flex; flex-direction: column; align-items: center; width: calc(70px * var(--k)); margin-right: calc(18px * var(--k)); margin-bottom: calc(var(--i) * 4.2px); }
.l2-pole .spot-frame { width: 100%; aspect-ratio: 360 / 500; border-radius: 3px; box-shadow: 0 0 0 calc(4px * var(--k)) #2b2b2b, 0 0 calc(40px * var(--k)) rgb(255 255 255 / .12); }
.l2-pole > span { width: calc(10px * var(--k)); height: calc(90px * var(--k)); background: linear-gradient(90deg, #1f6e3a, #2fa158 50%, #1f6e3a); }
.l2-street__road { position: absolute; left: -10%; right: -10%; bottom: 0; height: 26%; background: linear-gradient(178deg, transparent 0 18%, #262626 18.5% 100%); }
.l2-street__road::after { content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 3px; background: repeating-linear-gradient(90deg, rgb(255 255 255 / .5) 0 40px, transparent 40px 80px); transform: rotate(-2.6deg); transform-origin: 0 0; }
.l2-roads { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin: 0; padding-top: var(--s-5); border-top: 1px solid rgb(255 255 255 / .16); }
.l2-roads > div { display: flex; flex-direction: column; gap: 4px; }
.l2-roads dd { order: -1; margin: 0; font: 500 clamp(36px, 3.4vw, 54px)/1 var(--font-display); font-stretch: 110%; letter-spacing: -0.02em; color: #ffb162; }
.l2-roads dt { color: rgb(255 255 255 / .72); font-size: var(--t-small); }

/* ================================================ 04 the gateways */
.l2-gate__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s-6); align-items: end; margin-bottom: var(--s-6); }
.l2-gate__head h2 { margin: 0; }
.l2-gate__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin: 0; }
.l2-gate__facts > div { display: flex; flex-direction: column; gap: 4px; padding-top: var(--s-3); border-top: 2px solid var(--p-ink); }
.l2-gate__facts dt { order: 2; font-size: var(--t-small); color: var(--p-muted); }
.l2-gate__facts dd { margin: 0; font: 500 clamp(20px, 1.8vw, 28px)/1.1 var(--font-display); font-stretch: 110%; }
.l2-gate__pics { flex: 1 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--s-3); min-height: clamp(340px, 100svh - 420px, 520px); }
.l2-gate__pic { border-radius: var(--r-lg); background: #141414; }
.l2-gate__pic > img { transition: transform 700ms var(--ease); }
.l2-gate__pic:hover > img { transform: scale(1.03); }
html body main > section.l2-gate > .wrap { display: flex; flex-direction: column; }

/* ================================================ tablets: no pinning; the stops stack */
@media (max-width: 1023px) {
  .l2-hero__photo { width: 100%; }
  .l2-hero__photo::after { background: linear-gradient(0deg, #121212 0%, rgb(18 18 18 / .85) 42%, rgb(18 18 18 / .1) 75%); }
  .l2-trip__head, .l2-stop__wrap, html body main > section.section > .wrap.l2-row__wrap, .l2-gate__head { grid-template-columns: minmax(0, 1fr); }
  .l2-road { display: none; }
  .l2-gate__pics { grid-template-columns: 1fr 1fr; }
  .l2-gate__pic:first-child { grid-column: 1 / -1; min-height: 300px; }
}
@media (max-width: 639px) {
  .l2-hero__photo { inset: 0 0 auto 0; height: 52svh; }
  .l2-hero__photo::after { background: linear-gradient(0deg, #121212 0%, rgb(18 18 18 / 0) 40%); }
  html body main > section.l2-hero > .wrap.l2-hero__wrap { padding-top: calc(52svh - 30px); }
  .l2-hero h1 { font-size: clamp(42px, 12.5vw, 60px); }
  .l2-route { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-4); }
  .l2-route::before, .l2-route li::before { display: none; }
  .l2-route li { gap: 4px; }
  .l2-hero__pause { position: static; align-self: flex-start; }
  .l2-sites li { flex-direction: column; gap: 2px; }
  .l2-pic__place { width: 76px; height: 76px; right: -4px; top: -20px; }
  .l2-pole:nth-child(n + 13) { display: none; }
  .l2-pole { width: calc(70px * var(--k)); margin-right: calc(16px * var(--k)); }
  .l2-roads { grid-template-columns: 1fr 1fr; }
  .l2-gate__facts { grid-template-columns: minmax(0, 1fr); }
  .l2-gate__pics { grid-template-columns: minmax(0, 1fr); }
  .l2-gate__pic { min-height: 220px; }
  html body main > section.section:is(.l2-row, .l2-gate) { min-height: 0; }
}

/* ================================================ short screens (small laptops, browser bars, 2026-11-16): the pinned stop fits under its heading
   The pictures are sized from the height left under the heading and the road (their block is about 0.69 of its width tall),
   the type and the site list tighten, and the stop keeps room above for the area photo's circle so it never covers the road. */
@media (min-width: 1024px) {
  .l2-trip.is-pinned .l2-stop { padding-block: 36px 20px; }
  .l2-trip.is-pinned .l2-stop__pics { width: min(100%, (100svh - 300px) / .69); margin-left: auto; }
}
@media (min-width: 1024px) and (max-height: 820px) {
  .l2-trip.is-pinned .l2-trip__head { padding-top: clamp(84px, 12svh, 104px); }
  .l2-trip.is-pinned .l2-trip__head h2 { font-size: clamp(26px, 2.4vw, 36px); }
  .l2-trip.is-pinned .l2-stop__text { gap: var(--s-2); }
  .l2-trip.is-pinned .l2-stop h3 { font-size: clamp(44px, 9svh, 72px); }
  .l2-trip.is-pinned .l2-stop__n b { font-size: clamp(24px, 4svh, 32px); }
  .l2-trip.is-pinned .l2-sites li { padding: 8px 0; }
  .l2-trip.is-pinned .l2-stop__note { font-size: var(--t-small); }
  .l2-trip.is-pinned .l2-stop__pics { width: min(100%, (100svh - 260px) / .69); }
}
@media (min-width: 1024px) and (max-height: 660px) {
  .l2-trip.is-pinned .l2-trip__head { padding-top: 80px; }
  .l2-trip.is-pinned .l2-trip__head .v2-eyebrow { margin-bottom: 4px; }
  .l2-trip.is-pinned .l2-stop { padding-block: 30px 12px; }
  .l2-trip.is-pinned .l2-stop h3 { font-size: clamp(40px, 8svh, 52px); }
  .l2-trip.is-pinned .l2-sites li { padding: 6px 0; }
  .l2-trip.is-pinned .l2-sites span, .l2-trip.is-pinned .l2-sites em { font-size: var(--t-small); }
  .l2-trip.is-pinned .l2-stop__pics { width: min(100%, (100svh - 240px) / .69); }
}
/* very short windows (under 560px tall, e.g. a small laptop with a docked console or a half-height window): still pinned, smaller still */
@media (min-width: 1024px) and (max-height: 559px) {
  .l2-trip.is-pinned .l2-trip__head { padding-top: 74px; gap: var(--s-5); }
  .l2-trip.is-pinned .l2-trip__head .v2-eyebrow { font-size: 11px; margin-bottom: 2px; }
  .l2-trip.is-pinned .l2-trip__head h2 { font-size: clamp(20px, 1.8vw, 26px); }
  .l2-trip.is-pinned .l2-road__stops { margin-top: 8px; font-size: 12px; }
  .l2-trip.is-pinned .l2-stop { padding-block: 22px 8px; }
  .l2-trip.is-pinned .l2-stop__text { gap: 6px; }
  .l2-trip.is-pinned .l2-stop__km { font-size: 11px; }
  .l2-trip.is-pinned .l2-stop h3 { font-size: clamp(28px, 7svh, 38px); }
  .l2-trip.is-pinned .l2-stop__n { font-size: 14px; }
  .l2-trip.is-pinned .l2-stop__n b { font-size: 20px; }
  .l2-trip.is-pinned .l2-sites li { padding: 4px 0; }
  .l2-trip.is-pinned .l2-sites span, .l2-trip.is-pinned .l2-sites em { font-size: 12px; }
  .l2-trip.is-pinned .l2-stop__note { font-size: 12px; line-height: 1.45; }
  .l2-trip.is-pinned .l2-stop__pics { width: min(100%, (100svh - 200px) / .69); }
  .l2-trip.is-pinned .l2-pic__place { width: 64px; height: 64px; right: -8px; top: -18px; }
}
