/* KITE layout block. Responsive through container queries: the layout reacts to the width of its own box,
   so the Studio device preview and a real phone behave the same. Sizes are authored in desktop px and shrink with clamp(). */
.kite-sec.layout { padding: 0; }
.kl { position: relative; overflow: hidden; width: 100%; container-type: inline-size; isolation: isolate; }
.kl-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.kl-bg img, .kl-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.kl-ov { position: absolute; inset: 0; }
.kl-inner { position: relative; z-index: 1; width: 100%; margin: 0 auto; display: flex; flex-direction: column; box-sizing: border-box; }
.kl-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); width: 100%; }
.kl-tall .kl-grid { flex: 1 1 auto; }
.kl-col { position: relative; min-width: 0; display: flex; overflow: hidden; }
.kl-col > .kl-bg { z-index: 0; }
.kl-cc { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; min-width: 0; box-sizing: border-box; }
.kl-s1 { grid-column: span 1; } .kl-s2 { grid-column: span 2; } .kl-s3 { grid-column: span 3; } .kl-s4 { grid-column: span 4; }
.kl-s5 { grid-column: span 5; } .kl-s6 { grid-column: span 6; } .kl-s7 { grid-column: span 7; } .kl-s8 { grid-column: span 8; }
.kl-s9 { grid-column: span 9; } .kl-s10 { grid-column: span 10; } .kl-s11 { grid-column: span 11; } .kl-s12 { grid-column: span 12; }

/* elements (specific enough to beat the generic .kite-sec p / h1 rules) */
.kl .kl-t { max-width: none; margin-top: 0; margin-bottom: 0; white-space: pre-line; overflow-wrap: break-word; hyphens: auto; box-sizing: border-box; }
.kl .kl-hl { background: linear-gradient(transparent 62%, var(--hl, #ffca1c) 62%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .12em; }
.kl-img { margin: 0; min-width: 0; }
.kl-img img { display: block; width: 100%; height: auto; }
.kl-img.fill { flex: 1 1 auto; position: relative; min-height: clamp(220px, 40cqw, 560px); }
.kl-img.fill img { position: absolute; inset: 0; height: 100%; }
.kl-vid { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.kl-vid iframe, .kl-vid video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kl-btn { display: inline-block; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
a.kl-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.kl-spacer { width: 100%; }
.kl-mq { overflow: hidden; white-space: nowrap; }
.kl .kl-mq { white-space: nowrap; }
.kl-mq-track { display: inline-flex; width: max-content; animation: kl-marquee var(--mq, 30s) linear infinite; }
.kl-mq-item { padding-right: .5em; }
.kl-mq-track { align-items: center; }
.kl-mq-img { display: block; flex: none; width: auto; max-width: none; margin-right: .5em; object-fit: contain; -webkit-text-fill-color: initial; }
@keyframes kl-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .kl-mq-track { animation: none; } }
.kl-empty { display: grid; place-items: center; min-height: 140px; background: repeating-linear-gradient(45deg, #f3f3f6, #f3f3f6 12px, #ebebf0 12px, #ebebf0 24px); color: #8a8a99; font: 500 14px/1 system-ui, sans-serif; text-align: center; }
.kl-imgph { aspect-ratio: 4 / 3; width: 100%; }

/* tablet: three or more columns go two-up (a lone last one spans the row) */
@container (max-width: 1024px) {
  .kl-grid.kl-n3 > .kl-col, .kl-grid.kl-n4 > .kl-col, .kl-grid.kl-n5 > .kl-col, .kl-grid.kl-n6 > .kl-col { grid-column: span 6; }
  .kl-grid.kl-n3 > .kl-col:last-child { grid-column: span 12; }
  .kl-grid.kl-n5 > .kl-col:last-child { grid-column: span 12; }
}
/* phone: everything stacks */
@container (max-width: 700px) {
  .kl-grid > .kl-col { grid-column: 1 / -1; }
  .kl-rev .kl-grid { display: flex; flex-direction: column-reverse; }
  .kl-img.fill { min-height: 56cqw; }
  .kl-grid { row-gap: clamp(14px, 5cqw, 28px) !important; }
}

/* ---- video player: clean autoplay video with small round pause + sound buttons (bottom right) ---- */
.kp { position: relative; width: 100%; background: #0b0b0b; overflow: hidden; line-height: 0; }
.kp video { display: block; width: 100%; height: auto; max-height: 100svh; object-fit: cover; cursor: pointer; }
.kp-bleed { width: 100%; }
.kp-embed .kite-embed { position: relative; }
.kp-shield { position: absolute; inset: 0; z-index: 3; cursor: default; } /* blocks clicks reaching YouTube/Vimeo's own UI */
.kp-c { position: absolute; right: clamp(10px, 1.6cqw, 22px); bottom: clamp(10px, 1.6cqw, 22px); z-index: 4; display: flex; align-items: center; gap: 10px; line-height: 0; }
.kp-c .kp-b { width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .45)); transition: transform .15s ease; }
.kp-c .kp-b:hover { transform: scale(1.12); }
.kp-c .kp-b:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.kp-c svg { width: 28px; height: 28px; display: block; }
.kp-c .i-play, .kp-c .i-sound { display: none; }
.kp-c.is-paused .i-pause { display: none; }
.kp-c.is-paused .i-play { display: block; }
.kp-c.is-sound .i-muted { display: none; }
.kp-c.is-sound .i-sound { display: block; }
.kl-col > .kp-c, .kl > .kp-c { right: clamp(10px, 1.6cqw, 22px); }
.kite-spacer { width: 100%; pointer-events: none; }
.kite-sec .kp { margin: 0; }
