/* Channel page design version B, "Áp phích chiến dịch" (kenh-vus.html, was kenh-vus-b.html; the client approved it 2026-11-16), 2026-11-13. On top of the homepage's CSS, site-kenh.css
   (crumbs, format tags, the two-channel block) and kenh-spots.css (the sample ads). Behaviour: js/kenh-b.js. Hidden or moving
   starting states only under html.kb-fx, which the script sets when motion is allowed. */

.kb-cam { position: absolute; inset: 0; }
.kb-cam > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ================================================ 01 hero: poster type on white, a red block, the standee across its edge */
html body main > section.kb-hero { overflow: hidden; background: var(--p-bg); }
html body main > section.section.kb-hero > .wrap.kb-hero__wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-6); align-items: stretch; padding-top: clamp(84px, 11svh, 120px); }
.kb-hero__text { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--s-5); min-width: 0; }
.kb-hero__text > * { margin: 0; }
.kb-hero h1 { font-size: clamp(64px, 8.6vw, 144px); line-height: .9; letter-spacing: -0.045em; font-weight: 500; font-stretch: 112%; max-width: none; margin-left: -0.04em; }
.kb-hero h1 .v2-line { display: block; white-space: nowrap; }
.kb-hero h1 .v2-line:last-child { color: var(--p-action); }
.kb-hero__lead { max-width: 46ch; font-size: var(--t-lead, 18px); line-height: 1.55; color: var(--p-muted); }
.kb-hero .btn-row { flex-wrap: wrap; gap: var(--s-3); }
.kb-hero__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); width: 100%; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.kb-brands { display: flex; align-items: center; gap: var(--s-5); margin: 0; padding: 0; list-style: none; }
.kb-brands img { display: block; width: auto; height: 34px; }
.kb-brands li + li img { height: 24px; }
.kb-hero .spot-pause { margin-left: auto; background: var(--p-surface); color: var(--p-ink); }
.kb-hero .spot-pause:hover { background: #e6e6e6; }

/* the red block runs from the stage's middle to the screen's right edge, top to bottom */
.kb-hero__stage { position: relative; display: grid; place-items: end center; min-height: 0; padding-bottom: var(--s-4); }
.kb-hero__stage::before { content: ""; position: absolute; z-index: 0; left: 64%; right: -50vw; top: -300px; bottom: -300px; background: var(--p-action); }
.kb-hero__tag { position: absolute; z-index: 1; top: 0; right: 0; margin: 0; writing-mode: vertical-rl; font-size: var(--t-label); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgb(255 255 255 / .85); }

/* the roll-up standee: a rail on top, the printed face, a metal cassette at the foot, a shadow on the floor */
.kb-standee { position: relative; z-index: 1; width: clamp(180px, 16vw, 260px); display: grid; justify-items: center; }
.kb-standee__mast { position: relative; width: 100%; aspect-ratio: 360 / 830; overflow: hidden; }
.kb-standee__sheet { position: absolute; inset: 0; }
.kb-standee__rail { position: absolute; z-index: 2; left: -3%; right: -3%; top: 0; height: 10px; border-radius: 5px; background: linear-gradient(#e8e8e8, #9a9a9a); box-shadow: 0 2px 4px rgb(0 0 0 / .3); }
.kb-standee__face { position: absolute; left: 0; right: 0; top: 5px; bottom: 0; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .45); background: #d92b21; }
.kb-standee__base { position: relative; z-index: 2; width: 116%; height: 20px; margin-top: -4px; border-radius: 4px 4px 8px 8px; background: linear-gradient(#f4f4f4, #b8b8b8 55%, #8a8a8a); box-shadow: 0 6px 10px -4px rgb(0 0 0 / .4); }
.kb-standee__base::before, .kb-standee__base::after { content: ""; position: absolute; bottom: -8px; width: 26%; height: 8px; border-radius: 0 0 4px 4px; background: #7a7a7a; }
.kb-standee__base::before { left: 6%; }
.kb-standee__base::after { right: 6%; }
.kb-standee__shadow { width: 150%; height: 26px; margin-top: 2px; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / .35), rgb(0 0 0 / 0)); }
/* rising out of the cassette, once */
html.kb-fx .kb-standee__sheet { animation: kb-unroll 1500ms 300ms cubic-bezier(.6, 0, .2, 1) both; }
@keyframes kb-unroll { from { transform: translateY(100%); } to { transform: none; } }
html.kb-fx .kb-hero__text > * { animation: kb-rise 900ms cubic-bezier(.2, .7, .2, 1) both; }
html.kb-fx .kb-hero h1 .v2-line { display: block; animation: kb-slide 1000ms cubic-bezier(.2, .8, .2, 1) both; }
html.kb-fx .kb-hero h1 .v2-line:last-child { animation-delay: 120ms; }
html.kb-fx .kb-hero__text > :nth-child(4) { animation-delay: 300ms; }
html.kb-fx .kb-hero__text > :nth-child(5) { animation-delay: 380ms; }
html.kb-fx .kb-hero__text > :nth-child(6) { animation-delay: 460ms; }
html.kb-fx .kb-hero__stage::before { animation: kb-block 1100ms cubic-bezier(.7, 0, .2, 1) both; }
@keyframes kb-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes kb-slide { from { opacity: 0; transform: translateX(-6%); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes kb-block { from { transform: translateX(100%); } to { transform: none; } }

/* ================================================ 02 audience: the photo full bleed, the deck's four words very large */
html body main > section.kb-moment { position: relative; overflow: hidden; background: #141414; color: #fff; }
.kb-moment__photo { position: absolute; inset: 0; }
.kb-moment__photo::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(90deg, rgb(20 20 20 / .92) 0%, rgb(20 20 20 / .7) 35%, rgb(20 20 20 / .1) 70%), linear-gradient(0deg, rgb(20 20 20 / .8) 0%, rgb(20 20 20 / 0) 30%); }
html body main > section.section.kb-moment > .wrap.kb-moment__wrap { position: relative; z-index: 4; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); }
.kb-moment__head > * { margin: 0; }
.kb-moment .v2-eyebrow { color: var(--p-inv-accent); margin-bottom: var(--s-3); }
.kb-moment h2 { color: #fff; max-width: 18ch; }
.kb-words { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.kb-words li { overflow: hidden; font: 500 clamp(44px, 6.6vw, 108px)/1.02 var(--font-display); font-stretch: 112%; letter-spacing: -0.04em; }
.kb-words li span { display: inline-block; }
.kb-words li:nth-child(even) span { color: var(--p-inv-accent); }
html.kb-fx .kb-words li span { transform: translateY(105%); transition: transform 900ms cubic-bezier(.2, .8, .2, 1); }
html.kb-fx .kb-moment.is-in .kb-words li span { transform: none; }
html.kb-fx .kb-moment.is-in .kb-words li:nth-child(2) span { transition-delay: 220ms; }
html.kb-fx .kb-moment.is-in .kb-words li:nth-child(3) span { transition-delay: 440ms; }
html.kb-fx .kb-moment.is-in .kb-words li:nth-child(4) span { transition-delay: 660ms; }
.kb-traits { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-8); margin: 0; padding-top: var(--s-4); border-top: 1px solid rgb(255 255 255 / .2); }
.kb-traits > div { display: flex; flex-direction: column; gap: 2px; }
.kb-traits dt { font-size: var(--t-small); color: rgb(255 255 255 / .65); }
.kb-traits dd { margin: 0; font-size: clamp(17px, 1.3vw, 20px); font-weight: 500; }

/* ================================================ 03 figures: a red poster, white type, a black ticker at the foot */
html body main > section.kb-stats { position: relative; overflow: hidden; background: var(--p-action); color: #fff; padding-bottom: 0; }
html body main > section.section.kb-stats > .wrap.kb-stats__wrap { display: flex; flex-direction: column; justify-content: center; gap: var(--s-6); padding-bottom: calc(var(--s-8) + 64px); }
.kb-stats__head > * { margin: 0; }
.kb-stats .v2-eyebrow { color: #fff; margin-bottom: var(--s-3); }
.kb-stats .v2-eyebrow::before { background: #fff; }
.kb-stats h2 { color: #fff; }
.kb-stats__big { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-5); margin: 0; }
.kb-stats__big span { font: 500 clamp(72px, 12.4vw, 210px)/.9 var(--font-display); font-stretch: 112%; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kb-stats__big small { font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; }
.kb-stats__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 2px solid #fff; }
.kb-stats__row > div { display: flex; flex-direction: column; gap: 4px; padding: var(--s-4) var(--s-4) 0 0; }
.kb-stats__row > div + div { padding-left: var(--s-4); border-left: 1px solid rgb(255 255 255 / .45); }
.kb-stats__row dd { order: -1; margin: 0; font: 500 clamp(36px, 4.2vw, 68px)/1 var(--font-display); font-stretch: 110%; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kb-stats__row dt { color: rgb(255 255 255 / .88); }
.kb-ticker { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 64px; display: flex; align-items: center; overflow: hidden; background: #141414; color: #fff; }
.kb-ticker__run { display: flex; flex: none; white-space: nowrap; }
.kb-ticker__run span { display: inline-flex; align-items: center; gap: var(--s-6); padding-right: var(--s-6); font-size: 20px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.kb-ticker__run span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--p-action); }
html.kb-fx .kb-ticker__run { animation: kb-tick 36s linear infinite; }
html.ads-paused .kb-ticker__run { animation-play-state: paused; }
@keyframes kb-tick { to { transform: translateX(-50%); } }

/* ================================================ 04 placements: a wall of four frames, two narrow and two wide */
.kb-wall { flex: 1 0 auto; display: grid; grid-template-columns: .8fr 1.25fr .8fr 1.25fr; gap: var(--s-4); margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.kb-format { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.kb-format__photo { position: relative; flex: 1 0 auto; min-height: clamp(280px, 100svh - 440px, 560px); overflow: hidden; border-radius: var(--r-md); background: var(--p-surface); cursor: pointer; }
.kb-format__photo .kb-cam { transition: transform 700ms var(--ease); }
.kb-format:hover .kb-cam { transform: scale(1.03); }
.kb-format__photo::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--p-action); transition: box-shadow 300ms var(--ease); }
.kb-format:hover .kb-format__photo::after { box-shadow: inset 0 0 0 4px var(--p-action); }
.kb-format h3 { min-height: 2.5em; display: flex; align-items: baseline; gap: var(--s-2); margin: 0; font-size: clamp(17px, 1.4vw, 21px); font-weight: 500; line-height: 1.25; }
.kb-format h3 span { font-size: var(--t-label); font-weight: 600; letter-spacing: .08em; color: var(--v3-rust); }
html.kb-fx .kb-format { opacity: 0; transform: translateY(40px); transition: opacity 700ms ease, transform 900ms cubic-bezier(.2, .8, .2, 1); }
html.kb-fx .kb-formats.is-in .kb-format { opacity: 1; transform: none; }
html.kb-fx .kb-formats.is-in .kb-format:nth-child(2) { transition-delay: 120ms; }
html.kb-fx .kb-formats.is-in .kb-format:nth-child(3) { transition-delay: 240ms; }
html.kb-fx .kb-formats.is-in .kb-format:nth-child(4) { transition-delay: 360ms; }

/* ================================================ 05 reasons: a poster list beside a red duotone photo */
html body main > section.section.kb-results > .wrap.kb-results__wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: stretch; }
.kb-results__text { display: flex; flex-direction: column; justify-content: center; gap: var(--s-4); }
.kb-results__text > * { margin: 0; }
.kb-reasons { display: grid; margin: var(--s-2) 0 0; padding: 0; list-style: none; counter-reset: r; border-top: 2px solid var(--p-ink); }
.kb-reasons li { position: relative; counter-increment: r; display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); column-gap: var(--s-4); padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--line-strong);
  background: linear-gradient(var(--p-action), var(--p-action)) 0 0 / 0 100% no-repeat; transition: background-size 500ms cubic-bezier(.2, .8, .2, 1), color 300ms ease; }
.kb-reasons li::before { content: "0" counter(r); grid-row: 1 / 3; align-self: center; font: 500 clamp(34px, 3vw, 48px)/1 var(--font-display); font-stretch: 112%; letter-spacing: -0.03em; color: var(--p-action); transition: color 300ms ease; }
.kb-reasons h3 { margin: 0; font-size: clamp(19px, 1.6vw, 24px); font-weight: 500; line-height: 1.2; }
.kb-reasons p { margin: 2px 0 0; color: var(--p-muted); transition: color 300ms ease; }
.kb-reasons li:hover { background-size: 100% 100%; color: #fff; }
.kb-reasons li:hover::before, .kb-reasons li:hover p { color: #fff; }
.kb-duo { position: relative; min-height: 420px; overflow: hidden; border-radius: var(--r-lg); background: var(--p-action); isolation: isolate; }
.kb-duo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(1.05); mix-blend-mode: multiply; }
.kb-duo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 20 20 / 0) 55%, rgb(20 20 20 / .55)); mix-blend-mode: multiply; }
html.kb-fx .kb-results.is-in .kb-duo img { animation: kb-zoom 12s ease-out both; }
@keyframes kb-zoom { from { transform: scale(1.15); } to { transform: scale(1); } }

/* ================================================ 06 photos: a poster wall, drifting with the pointer (js/kenh-b.js sets --dx, --dy) */
.kb-gallery .section-head { margin-bottom: var(--s-6); }
.kb-posters { flex: 1 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 0.8fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--s-3); min-height: clamp(360px, 100svh - 330px, 640px); margin: 0; padding: 0; list-style: none; }
.kb-posters li { position: relative; min-height: 0; overflow: hidden; border-radius: var(--r-md); background: var(--p-surface);
  transform: translate(calc(var(--dx, 0) * var(--d, 1) * 1px), calc(var(--dy, 0) * var(--d, 1) * 1px)); transition: transform 600ms cubic-bezier(.2, .8, .2, 1); }
.kb-posters li:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.kb-posters li:nth-child(2) { grid-column: 2; grid-row: 1; }
.kb-posters li:nth-child(3) { grid-column: 3; grid-row: 1 / 3; }
.kb-posters li:nth-child(4) { grid-column: 2; grid-row: 2; }
.kb-posters li:nth-child(5) { grid-column: 4; grid-row: 1 / 3; }
.kb-posters img { position: absolute; inset: -12px; width: calc(100% + 24px); max-width: none; height: calc(100% + 24px); object-fit: cover;
  transform: translate(calc(var(--dx, 0) * var(--d, 1) * -0.6px), calc(var(--dy, 0) * var(--d, 1) * -0.6px)) scale(1); transition: transform 700ms cubic-bezier(.2, .8, .2, 1); }
.kb-posters li:hover img { transform: translate(calc(var(--dx, 0) * var(--d, 1) * -0.6px), calc(var(--dy, 0) * var(--d, 1) * -0.6px)) scale(1.03); }

/* ================================================ tablets */
@media (max-width: 1023px) {
  html body main > section.section.kb-hero > .wrap.kb-hero__wrap { grid-template-columns: minmax(0, 1fr) auto; }
  .kb-hero h1 { font-size: clamp(56px, 10vw, 96px); }
  .kb-standee { width: clamp(150px, 24vw, 220px); }
  html body main > section.section.kb-results > .wrap.kb-results__wrap { grid-template-columns: minmax(0, 1fr); }
  .kb-duo { min-height: clamp(260px, 40svh, 440px); order: -1; }
  .kb-wall { grid-template-columns: 1fr 1fr; }
  .kb-format__photo { min-height: clamp(220px, 34svh, 380px); }
  .kb-stats__row { grid-template-columns: minmax(0, 1fr); }
  .kb-stats__row > div { flex-direction: row; align-items: baseline; gap: var(--s-3); }
  .kb-stats__row > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgb(255 255 255 / .45); }
}
/* phones: the standee under the words on the red block, which then runs full width */
@media (max-width: 639px) {
  html body main > section.section.kb-hero > .wrap.kb-hero__wrap { grid-template-columns: minmax(0, 1fr); padding-top: 96px; }
  .kb-hero h1 { font-size: clamp(52px, 16vw, 72px); }
  .kb-hero__stage { min-height: 520px; padding-top: var(--s-6); }
  .kb-hero__stage::before { left: calc(-1 * var(--gut, 16px)); right: calc(-1 * var(--gut, 16px)); top: 0; bottom: -200px; background: #141414; }
  .kb-hero__tag { right: 0; top: var(--s-4); }
  .kb-standee { width: 180px; }
  .kb-hero .spot-pause { margin-left: 0; }
  .kb-words li { font-size: clamp(40px, 12vw, 56px); }
  .kb-wall { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .kb-format__photo { min-height: 240px; }
  .kb-posters { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 160px; min-height: 0; }
  .kb-posters li:nth-child(n) { grid-column: auto; grid-row: auto; }
  .kb-posters li:nth-child(1) { grid-column: 1 / -1; }
  .kb-ticker__run span { font-size: 16px; }
  html body main > section.section:is(.kb-moment, .kb-stats, .kb-formats, .kb-results, .kb-gallery) { min-height: 0; }
}
