/* K2 on phones. Portrait up to 760px wide, landscape phones up to 500px tall.
   Options for the board: html.svc-b (accordion), html.svc-c (swipe rows), html.tr-b (tiles), html.tr-c (swipe cards). */
.mbtn{display:none}

/* ---------- Shared phone rules (portrait and landscape) ---------- */
@media (max-width:760px), (max-height:500px) and (orientation:landscape) and (max-width:1000px){
  html.k2m{--gut:18px}
  /* menu bar: wordmark, Contact Us, menu */
  .k2m .tb7{height:56px!important;padding:0 var(--gut)!important}
  .k2m .tb7 .n8_line{display:none!important}
  .k2m .tb7 .right{gap:8px!important}
  .k2m .tb7 .dl.cta{height:32px!important;font-size:12.5px!important;padding:0 11px!important}
  .k2m .mbtn{display:inline-grid;place-content:center;gap:5px;width:32px;height:32px;border-radius:999px;border:1px solid rgba(15,15,15,.14);background:transparent;cursor:pointer;padding:0}
  .k2m .mbtn i{display:block;width:13px;height:1.5px;background:currentColor;border-radius:2px}
  .k2m .tb7:not(.is_solid) .mbtn{border-color:rgba(255,255,255,.55);color:#fff}
  .k2m .lpill{top:12px!important;right:calc(var(--gut) + 40px)!important;height:32px!important;font-size:12.5px!important;padding:0 11px!important}
  .k2m .mbtn_h{position:fixed;z-index:126;top:12px;right:var(--gut);color:#fff;border-color:rgba(255,255,255,.55);transition:opacity .3s}
  body:has(.tb7.is_solid) .mbtn_h{opacity:0;pointer-events:none}
  .k2m .menu{z-index:300}
  .k2m .menu nav a{font-size:34px;padding:12px 0}
  /* landing */
  .k2m .hA .c4.shint{display:none!important}
  .k2m .hA .c1{top:18px!important;font-size:12px}
  .k2m .hA .c3{font-size:12px;bottom:22px!important;max-width:62%}
  .k2m .hA .lv_btn{left:auto!important;right:var(--gut)!important;bottom:22px!important;transform:none!important}
  /* rhythm */
  .k2m main>section:not(.hA):not(.ft){padding-left:var(--gut)!important;padding-right:var(--gut)!important;padding-bottom:44px!important}
  .k2m .z7_h2,.k2m .h6,.k2m .t2 .h{font-size:30px!important;line-height:1.05!important}
  .k2m .z7_blurb{font-size:26px!important;line-height:1.1!important}
  .k2m .tg7.plus{margin-bottom:0}
  /* hover only bits off on touch */
  .k2m .r.plus .pm_t .pics,.k2m .mix7 .mpx{display:none!important}
}

/* ---------- Portrait ---------- */
@media (max-width:760px){
  /* Trusted by, option A (default): labels, then artists, two compact columns each */
  .k2m #clients .cl7{grid-template-columns:1fr!important;gap:30px!important;margin-top:24px!important}
  .k2m #clients .cl7>div+div{border-left:0!important;padding-left:0!important}
  .k2m #clients .cl7>div{padding:0!important}
  .k2m #clients .cla_cols{gap:0 14px!important}
  .k2m #clients .cla_cols .r{min-height:50px!important;gap:10px!important;padding:8px 0!important;grid-template-columns:32px minmax(0,1fr)!important}
  .k2m #clients .cla_cols .r i{width:32px!important;height:32px!important}
  .k2m #clients .cla_cols .r span{font-size:13.5px!important;line-height:1.2}
  .k2m #clients .cla_cols .r.plus i{font-size:16px}
  .k2m #clients .cl7>div:first-child::before,.k2m #clients .cl7>div+div::before{display:block;margin-bottom:8px;font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:#9B9B9B}
  .k2m #clients .cl7>div:first-child::before{content:'Labels and platforms'}
  .k2m #clients .cl7>div+div::before{content:'Artists and talent'}

  /* Trusted by, option B: tiles. Logos three across, faces three across, names under faces */
  .k2m.tr-b #clients .cla_cols{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  .k2m.tr-b #clients .cla_cols>div{display:contents}
  .k2m.tr-b #clients .cla_cols .r{display:flex!important;flex-direction:column;align-items:stretch;gap:6px!important;padding:0!important;border:0!important;min-height:0!important}
  .k2m.tr-b #clients .cla_cols .r i{width:100%!important;height:auto!important;aspect-ratio:1;border-radius:0}
  .k2m.tr-b #clients [data-lrows] .r span{display:none}
  .k2m.tr-b #clients [data-lrows] .r i.lg .logo_img{max-width:62%!important;max-height:34%!important}
  .k2m.tr-b #clients [data-cla] .r span{font-size:12px!important}
  .k2m.tr-b #clients .cla_cols .r.plus i{border:1px solid #D8D8D8}
  .k2m.tr-b #clients [data-lrows] .r.plus span{display:block;font-size:12px!important}

  /* Trusted by, option C: swipe cards */
  .k2m.tr-c #clients .cla_cols{display:flex!important;overflow-x:auto;gap:10px!important;margin-right:calc(var(--gut) * -1);padding-right:var(--gut);scrollbar-width:none;scroll-snap-type:x mandatory}
  .k2m.tr-c #clients .cla_cols::-webkit-scrollbar{display:none}
  .k2m.tr-c #clients .cla_cols>div{display:contents}
  .k2m.tr-c #clients .cla_cols .r{flex:none;width:132px;display:flex!important;flex-direction:column;align-items:stretch;gap:8px!important;padding:0!important;border:0!important;scroll-snap-align:start}
  .k2m.tr-c #clients .cla_cols .r i{width:132px!important;height:132px!important;border-radius:0}
  .k2m.tr-c #clients [data-lrows] .r i.lg .logo_img{max-width:62%!important;max-height:30%!important}
  .k2m.tr-c #clients .cla_cols .r span{font-size:13px!important}

  /* Services, option A (default): name, then every pill wrapping underneath. Rows light up as they pass the middle of the screen */
  .k2m .k2s .r{grid-template-columns:1fr!important;gap:12px!important;padding:18px 0!important}
  .k2m .k2s .r b{font-size:24px!important}
  .k2m .k2s .px2{display:flex!important;flex-wrap:wrap;gap:6px}
  .k2m .k2s .px{display:contents!important}
  .k2m .k2s .px i{height:30px!important;padding:0 12px!important;font-size:13px!important}
  .k2m .k2s .r .px2{opacity:.38;transition:opacity .5s cubic-bezier(.16,1,.3,1)}
  .k2m .k2s .r.on .px2{opacity:1}
  .k2m .k2s .r .px{opacity:1!important}

  /* Services, option B: accordion, tap a name to open its pills */
  .k2m.svc-b .k2s .r{cursor:pointer;position:relative}
  .k2m.svc-b .k2s .r b{display:flex;justify-content:space-between;align-items:center}
  .k2m.svc-b .k2s .r b::after{content:'+';font-weight:300;font-size:26px;transition:transform .4s}
  .k2m.svc-b .k2s .r.open b::after{transform:rotate(45deg)}
  .k2m.svc-b .k2s .r .px2{display:none!important;opacity:1}
  .k2m.svc-b .k2s .r.open .px2{display:flex!important}

  /* Services, option C: keeps the desktop idea, one swipeable strip of pills per row */
  .k2m.svc-c .k2s .px2{display:block!important;overflow-x:auto;margin-right:calc(var(--gut) * -1);padding-right:var(--gut);scrollbar-width:none;opacity:1;-webkit-mask-image:linear-gradient(90deg,#000 80%,transparent);mask-image:linear-gradient(90deg,#000 80%,transparent)}
  .k2m.svc-c .k2s .px2::-webkit-scrollbar{display:none}
  .k2m.svc-c .k2s .px{display:flex!important;flex-wrap:nowrap!important;width:max-content;gap:6px}
  .k2m.svc-c .k2s .px+.px{margin-top:6px}

  /* Worldwide */
  .k2m .t2{grid-template-columns:1fr!important;gap:22px!important}
  .k2m .t2 .rows b{font-size:34px!important}
  .k2m .t2 .p{font-size:14px}

  /* Case studies: faces swipe in one row, password full width underneath */
  .k2m .kcs_row{flex-direction:column!important;align-items:stretch!important;flex-wrap:nowrap!important;gap:26px!important}
  .k2m .kcs_row .mix7{overflow-x:auto;flex-wrap:nowrap!important;margin-right:calc(var(--gut) * -1)!important;padding-right:var(--gut);scrollbar-width:none;gap:8px!important}
  .k2m .kcs_row .mix7::-webkit-scrollbar{display:none}
  .k2m .kcs_row .mix7 figure{width:58px!important;flex:none}
  .k2m .kcs_row .mix7 .mp{flex:none}
  .k2m .k2pw{margin-left:0!important;width:100%;padding-top:18px}
  .k2m .kcs_row .k2pw .pw{width:100%!important}

  /* Contact */
  .k2m #contact .ask7_g{grid-template-columns:1fr!important;gap:26px!important}
  .k2m #contact .ask7_h{font-size:40px!important}
  .k2m .ask7_side:has(.k1row){margin-top:0!important}
  .k2m .k1row{flex-direction:column;align-items:flex-start!important;gap:14px!important}
  .k2m .k1row .btn7{transform:none!important;margin-right:0!important}
  .k2m .k1row .alt a{font-size:17px!important}

  /* Footer: two by two */
  .k2m .ft7{grid-template-columns:1fr 1fr!important;gap:30px 18px!important}
}

/* ---------- Landscape phones ---------- */
@media (max-height:500px) and (orientation:landscape) and (max-width:1000px){
  .k2m .hA_word{font-size:64px!important}
  .k2m .z7_h2,.k2m .h6,.k2m .t2 .h{font-size:28px!important}
  .k2m main>section:not(.hA):not(.ft){padding-bottom:36px!important}
  /* Trusted by: both lists side by side, as on desktop, tighter rows */
  .k2m #clients .cl7{margin-top:20px!important}
  .k2m #clients .cla_cols .r{min-height:40px!important;padding:5px 0!important;gap:8px!important;grid-template-columns:26px minmax(0,1fr)!important}
  .k2m #clients .cla_cols .r i{width:26px!important;height:26px!important}
  .k2m #clients .cla_cols .r span{font-size:12.5px!important;line-height:1.2}
  /* Services: name column, pills wrap to the right */
  .k2m .k2s .r{grid-template-columns:200px minmax(0,1fr)!important;padding:12px 0!important}
  .k2m .k2s .r b{font-size:20px!important}
  .k2m .k2s .px2{display:flex!important;flex-wrap:wrap;gap:5px}
  .k2m .k2s .px{display:contents!important}
  .k2m .k2s .px i{height:26px!important;font-size:12px!important;padding:0 10px!important}
  .k2m .k2s .r .px2{opacity:.38;transition:opacity .5s}
  .k2m .k2s .r.on .px2{opacity:1}
  /* Worldwide */
  .k2m .t2 .rows div{padding:9px 0!important}
  .k2m .t2 .rows b{font-size:28px!important}
  /* Case studies */
  .k2m .kcs_row .mix7 figure{width:44px!important}
  .k2m .kcs_row .mix7{gap:6px!important}
  .k2m .kcs_row .k2pw .pw{width:240px!important}
  /* Contact */
  .k2m #contact .ask7_g{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
  .k2m #contact .ask7_h{font-size:36px!important}
  .k2m .ft7{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media (max-height:500px) and (orientation:landscape) and (max-width:1000px){
  .k2m .hA{min-height:0!important;height:100svh!important}
  .k2m .hA .c1{top:14px!important}
}
@media (max-width:760px){ .k2m .hA{min-height:0!important;height:100svh!important} }
/* fixes */
@media (max-width:760px), (max-height:500px) and (orientation:landscape) and (max-width:1000px){
  .k2m #clients .cl7{grid-template-columns:minmax(0,1fr)!important}
  .k2m #clients .cl7>div{min-width:0}
  .k2m #clients .cl7>div+div{border-left:0!important;padding-left:0!important}
  .k2m #clients .cl7>div:first-child::before,.k2m #clients .cl7>div+div::before{display:block;margin-bottom:8px;font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:#9B9B9B}
  .k2m #clients .cl7>div:first-child::before{content:'Labels and platforms'}
  .k2m #clients .cl7>div+div::before{content:'Artists and talent'}
  .k2m #contact.zx{display:block!important}
  .k2m #contact .ask7_g{margin-top:14px!important}
  html.k2m,html.k2m body{overflow-x:hidden}
}
@media (max-height:500px) and (orientation:landscape) and (max-width:1000px){
  .k2m #clients .cl7{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:28px!important}
  .k2m #contact .ask7_g{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)!important}
}
.k2m .menu_foot nav{display:flex;gap:18px;align-self:auto}
.k2m .menu_foot nav a{font-size:14px!important;padding:0!important;border:0!important;transform:none!important;opacity:1!important;display:inline-flex!important;gap:6px;letter-spacing:0!important;font-weight:400!important;color:#5C5C5C}
.k2m .menu_foot nav a .ico{width:14px;height:14px}
@media (max-width:760px),(max-height:500px) and (orientation:landscape) and (max-width:1000px){.k2m .ov_ix .ix_hq{bottom:22px!important;max-width:62%}}
@media (max-width:760px){.k2m .hA .c3,.k2m .ov_ix .ix_hq{white-space:normal!important;max-width:calc(100% - 130px)!important}.k2m .hA .c3 br,.k2m .ov_ix .ix_hq br{display:none}}

/* Clients panel open: the top bar stays white with dark type */
html.k2m.cp_open .tb7{background:#fff!important;box-shadow:0 1px 0 #ECECEC!important}html.k2m.cp_open .tb7 .wm,html.k2m.cp_open .tb7 .dl{color:#0F0F0F!important}html.k2m.cp_open .tb7 .dl.cta{background:transparent!important}
