/* Kareem xAi — homepage only. */
html:has(body.kx-home) { scroll-behavior: smooth; scroll-padding-top: 110px; background: #fff; }
body.kx-home { --kx-ink: #1d2421; --kx-muted: #616762; --kx-red: #dc2435; --kx-paper: #f6f5f1; --kx-line: #dedfd9; margin: 0; background: #fff; color: var(--kx-ink); font: 400 16px/1.65 'Manrope', sans-serif; -webkit-font-smoothing: antialiased; }
.kx-home *, .kx-home *::before, .kx-home *::after { box-sizing: border-box; }
.kx-home h1, .kx-home h2, .kx-home h3, .kx-home p, .kx-home figure { margin: 0; }
.kx-home h1, .kx-home h2, .kx-home h3 { color: var(--kx-ink); font-family: 'Manrope', sans-serif; font-weight: 600; text-transform: none; }
.kx-home a { color: inherit; text-decoration: none; }
.kx-home a:hover { text-decoration: none; }
.kx-home img { display: block; max-width: 100%; height: auto; }
.kx-home button { font: inherit; cursor: pointer; border: 0; border-radius: 0; text-transform: none; }
.kx-home button:disabled { cursor: default; }
.kx-home :focus-visible { outline: 3px solid var(--kx-red); outline-offset: 5px; }
.kx-home em { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-style: italic; }
.kx-container { width: min(1320px, calc(100% - 112px)); margin-inline: auto; }
.kx-eyebrow { font-size: 11px; font-weight: 800; line-height: 1.6; letter-spacing: .16em; text-transform: uppercase; }
.kx-skip { position: fixed; top: -100px; left: 20px; z-index: 100001; background: #fff; padding: 12px 20px; }
.kx-skip:focus { top: 12px; }
.kx-header { background: rgba(255,255,255,.97); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--kx-line); }
.admin-bar .kx-header { top: 32px; }
.kx-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; }
.kx-brand { display: block; width: 130px; flex-shrink: 0; }
.kx-brand img { width: 130px; height: auto; }
.kx-nav { display: flex; align-items: center; gap: 38px; }
.kx-nav > a { font-size: 13px; font-weight: 700; transition: color .2s; }
.kx-nav > a:hover { color: var(--kx-red); }
.kx-nav .kx-nav-cta { padding: 12px 20px; border: 1px solid var(--kx-ink); display: flex; align-items: center; gap: 34px; }
.kx-nav .kx-nav-cta:hover { background: var(--kx-ink); color: #fff; }
.kx-menu-toggle { display: none; }
.kx-hero { padding-block: 60px 54px; }
.kx-hero > .kx-eyebrow { margin-bottom: 24px; }
.kx-hero-grid { display: grid; grid-template-columns: 1fr 290px; align-items: end; gap: 52px; }
.kx-hero h1 { font-size: clamp(52px, 6.45vw, 92px); line-height: 1.04; font-weight: 500; letter-spacing: -.065em; }
.kx-hero h1 em { color: var(--kx-red); letter-spacing: -.035em; white-space: nowrap; }
.kx-hero-intro { padding-bottom: 6px; }
.kx-hero-intro > p { font-size: 16px; line-height: 1.75; color: var(--kx-muted); max-width: 295px; }
.kx-text-link { display: inline-flex; gap: 24px; align-items: center; font-size: 13px; font-weight: 800; border-bottom: 1px solid currentColor; padding: 0 0 7px; transition: color .2s, gap .2s; }
.kx-text-link:hover { color: var(--kx-red); gap: 32px; }
.kx-text-link > span { font-size: 20px; font-weight: 400; line-height: 1; }
.kx-hero-intro .kx-text-link { margin-top: 25px; }
.kx-section-line { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 19px 0; border-top: 1px solid var(--kx-line); }
.kx-section-line h2 { font-size: 11px; font-weight: 800; text-transform: uppercase; }
.kx-section-line > span { font-size: 11px; color: var(--kx-muted); }
.kx-feature-grid { display: grid; grid-template-columns: 1.52fr 1fr; gap: 28px; }
.kx-film-frame { background: #182021; position: relative; height: 100%; min-height: 240px; aspect-ratio: 16 / 9; overflow: hidden; }
.kx-feature-film { display: block; width: 100%; height: 100%; object-fit: cover; }
.kx-film-frame::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.6)); pointer-events: none; }
.kx-media-label { position: absolute; left: 20px; top: 18px; z-index: 1; color: #fff; background: rgba(15,20,18,.66); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; font-weight: 700; pointer-events: none; }
.kx-watch-film { position: absolute; bottom: 24px; left: 24px; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 0; color: #fff; background: none; font-size: 12px !important; font-weight: 600 !important; }
.kx-watch-film > span:last-child { margin-left: 10px; font-size: 20px; }
.kx-play-icon { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; display: grid; place-items: center; font-size: 10px; padding-left: 2px; transition: background .2s; }
.kx-watch-film:hover .kx-play-icon { background: var(--kx-red); border-color: var(--kx-red); }
.kx-motion-toggle { position: absolute; right: 24px; bottom: 27px; z-index: 2; background: rgba(0,0,0,.35); color: #fff; border: 1px solid rgba(255,255,255,.5) !important; padding: 5px 12px; font-size: 11px !important; min-width: 56px; min-height: 34px; }
.kx-video-fallback { position: absolute; inset: 40% 24px auto; color: white; font-size: 14px; text-align: center; z-index: 2; }
.kx-video-fallback a { text-decoration: underline; }
.kx-project { min-width: 0; display: flex; flex-direction: column; }
.kx-campaign-frame { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--kx-paper); }
.kx-campaign-frame img { width: 100%; height: 100%; object-fit: contain; }
.kx-project-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 0 8px; }
.kx-project-caption h3 { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.35; letter-spacing: -.04em; font-weight: 700; }
.kx-project-caption p { font-size: 11px; color: var(--kx-muted); margin-top: 5px; }
.kx-circle-arrow { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--kx-line); border-radius: 50%; font-size: 19px; flex-shrink: 0; transition: background .2s, color .2s; }
.kx-project-caption:hover .kx-circle-arrow { background: var(--kx-ink); color: white; }
.kx-proof-strip { display: grid; grid-template-columns: repeat(3,1fr); padding: 33px 0; border-block: 1px solid var(--kx-line); margin: 52px 0 58px; }
.kx-proof-strip > p { display: flex; gap: 24px; align-items: center; padding-left: 38px; border-left: 1px solid var(--kx-line); }
.kx-proof-strip > p:first-child { padding-left: 0; border-left: 0; }
.kx-proof-strip strong { font-size: 48px; font-weight: 500; line-height: 1; letter-spacing: -.075em; }
.kx-proof-strip strong span { color: var(--kx-red); font-size: 30px; vertical-align: top; line-height: 1.3; margin-left: 4px; }
.kx-proof-strip p > span { font-size: 11px; line-height: 1.65; color: var(--kx-muted); }
.kx-work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.kx-brand-board, .kx-social-board { position: relative; background: var(--kx-paper); height: 490px; }
.kx-board-label { position: absolute; top: 20px; left: 24px; z-index: 1; color: var(--kx-ink); font-size: 10px; }
.kx-brand-board { padding: 60px 25px 25px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.kx-logo-tile { min-height: 0; display: grid; place-items: center; background: #fff; overflow: hidden; }
.kx-logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.kx-logo-tile-yellow { background: #f5d61a; }
.kx-logo-tile-red { background: #ed332d; }
.kx-social-board { background: #f1edf6; padding: 65px 40px 26px; overflow: hidden; }
.kx-feed-pair { display: grid; grid-template-columns: 1fr 22px 1fr; gap: 15px; align-items: center; height: 100%; }
.kx-feed-pair figure { min-width: 0; }
.kx-feed-pair figcaption { text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 13px; color: #453654; }
.kx-feed-pair img { width: 100%; max-height: 350px; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(36,18,47,.08)); }
.kx-feed-arrow { text-align: center; color: #715580; font-size: 26px; }
.kx-results-project { display: grid; grid-template-columns: 1fr 1.03fr; gap: 64px; align-items: center; background: var(--kx-paper); padding: 50px; margin-top: 58px; }
.kx-results-copy h3 { font-size: clamp(28px,2.8vw,38px); line-height: 1.16; letter-spacing: -.05em; margin-block: 21px 20px; }
.kx-results-copy h3 em { color: var(--kx-red); letter-spacing: -.02em; }
.kx-results-copy > p:not(.kx-eyebrow) { max-width: 400px; font-size: 13px; color: var(--kx-muted); line-height: 1.9; }
.kx-results-copy .kx-text-link { margin-top: 24px; }
.kx-results-image { padding: 10px; background: white; box-shadow: 0 10px 32px rgba(40,42,35,.06); }
.kx-results-image img { width: 100%; height: auto; }
.kx-work-bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 36px; padding-bottom: 88px; }
.kx-work-bottom p { font-size: 12px; color: var(--kx-muted); }
.kx-button { display: inline-flex; justify-content: center; align-items: center; gap: 34px; padding: 17px 23px; background: var(--kx-red); border: 1px solid var(--kx-red); color: #fff !important; font-size: 12px; font-weight: 800; line-height: 1.4; transition: background .2s, color .2s; }
.kx-button > span { font-size: 20px; font-weight: 400; }
.kx-button:hover { background: var(--kx-ink); border-color: var(--kx-ink); }
.kx-button-outline { border-color: var(--kx-ink); color: var(--kx-ink) !important; background: transparent; }
.kx-button-outline:hover { color: #fff !important; }
.kx-about { background: var(--kx-paper); padding: 82px 0; }
.kx-about-grid { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 90px; }
.kx-about-photo img { width: 100%; height: auto; }
.kx-about-photo > p { display: flex; justify-content: space-between; font-size: 10px; font-weight: 800; margin-top: 13px; }
.kx-about-photo > p > span { color: var(--kx-muted); font-weight: 400; }
.kx-about-copy h2, .kx-expertise h2 { font-size: clamp(34px,3.5vw,50px); line-height: 1.12; letter-spacing: -.055em; margin-block: 22px 24px; }
.kx-about-copy h2 em, .kx-expertise h2 em { color: var(--kx-red); letter-spacing: -.025em; }
.kx-about-copy > p:not(.kx-eyebrow) { font-size: 13px; color: var(--kx-muted); line-height: 1.9; margin-top: 14px; }
.kx-about-copy .kx-text-link { margin-top: 25px; }
.kx-expertise { padding-block: 95px 100px; display: grid; grid-template-columns: .9fr 1.35fr; gap: 90px; }
.kx-expertise-heading .kx-text-link { margin-top: 11px; }
.kx-service-list { border-top: 1px solid var(--kx-line); }
.kx-service-list > a { display: grid; grid-template-columns: 25px 1fr 20px; gap: 18px; align-items: center; padding: 23px 0; border-bottom: 1px solid var(--kx-line); }
.kx-service-number { font-size: 10px; color: var(--kx-red); align-self: start; margin-top: 3px; }
.kx-service-list h3 { font-size: 19px; font-weight: 600; line-height: 1.4; letter-spacing: -.04em; }
.kx-service-list p { font-size: 11px; color: var(--kx-muted); margin-top: 6px; }
.kx-service-list > a > span:last-child { font-size: 22px; transition: color .2s, transform .2s; }
.kx-service-list > a:hover > span:last-child { color: var(--kx-red); transform: translate(2px,-2px); }
.kx-service-list > a:hover h3 { color: var(--kx-red); }
.kx-contact { background: #f9f0ee; padding: 68px 0 78px; border-block: 1px solid #efdfda; }
.kx-contact-grid { display: grid; grid-template-columns: 1fr 340px; align-items: end; gap: 70px; margin-top: 24px; }
.kx-contact h2 { font-size: clamp(54px,6.5vw,90px); line-height: 1.02; letter-spacing: -.06em; font-weight: 500; }
.kx-contact h2 em { color: var(--kx-red); letter-spacing: -.04em; }
.kx-contact-copy > p { font-size: 14px; color: var(--kx-muted); line-height: 1.9; }
.kx-contact-copy .kx-button { margin-top: 24px; }
.kx-email { display: block; margin-top: 17px; font-size: 13px; text-decoration: underline !important; text-underline-offset: 4px; }
.kx-email:hover { color: var(--kx-red); }
.kx-footer { padding: 28px 0; }
.kx-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 25px; font-size: 10px; color: var(--kx-muted); }
.kx-footer nav { display: flex; gap: 30px; }
.kx-footer a:hover { color: var(--kx-red); }
.kx-film-dialog { width: min(1000px, calc(100% - 36px)); max-height: calc(100dvh - 40px); padding: 18px; border: 0; background: #fff; color: var(--kx-ink); overflow: auto; }
.kx-film-dialog::backdrop { background: rgba(13,18,15,.84); }
.kx-dialog-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-bottom: 15px; }
.kx-dialog-head h2 { font-size: 15px; letter-spacing: -.02em; }
.kx-dialog-head button { display: flex; align-items: center; gap: 18px; background: var(--kx-paper); color: var(--kx-ink); font-size: 12px; padding: 8px 12px; }
.kx-dialog-head button > span { font-size: 20px; }
.kx-film-dialog video { width: 100%; display: block; max-height: 70dvh; background: #161c19; aspect-ratio: 16 / 9; }
.kx-film-dialog > p { font-size: 11px; margin-top: 13px; color: var(--kx-muted); }
.kx-film-dialog > p > a { text-decoration: underline; text-underline-offset: 3px; }
body.kx-dialog-open { overflow: hidden; }

/* Draw simple UI arrows in CSS so every device uses the same glyphs. */
.kx-home :is(.kx-nav-cta > span, .kx-watch-film > span:last-child, .kx-circle-arrow, .kx-results-copy .kx-text-link > span, .kx-button > span, .kx-about-copy .kx-text-link > span, .kx-expertise .kx-text-link > span, .kx-service-list > a > span:last-child, .kx-footer nav span) { position: relative; font-size: 0 !important; display: inline-flex; align-items: center; justify-content: center; min-width: 16px; min-height: 16px; }
.kx-home :is(.kx-nav-cta > span, .kx-watch-film > span:last-child, .kx-circle-arrow, .kx-results-copy .kx-text-link > span, .kx-button > span, .kx-about-copy .kx-text-link > span, .kx-expertise .kx-text-link > span, .kx-service-list > a > span:last-child, .kx-footer nav span)::before { content: ''; position: absolute; width: 13px; height: 1.4px; background: currentColor; transform: rotate(-45deg); }
.kx-home :is(.kx-nav-cta > span, .kx-watch-film > span:last-child, .kx-circle-arrow, .kx-results-copy .kx-text-link > span, .kx-button > span, .kx-about-copy .kx-text-link > span, .kx-expertise .kx-text-link > span, .kx-service-list > a > span:last-child, .kx-footer nav span)::after { content: ''; position: absolute; width: 9px; height: 9px; border-top: 1.4px solid currentColor; border-right: 1.4px solid currentColor; transform: translate(2px,-2px); }
.kx-home .kx-play-icon { font-size: 0; }
.kx-home .kx-play-icon::after { content: ''; border-block: 4px solid transparent; border-left: 6px solid #fff; display: block; }

@media (min-width: 1200px) { .kx-feature-grid { align-items: stretch; } .kx-film-frame { flex: 1; } }
@media (max-width: 1150px) {
    .kx-container { width: calc(100% - 72px); }
    .kx-hero-grid { grid-template-columns: 1fr 245px; gap: 30px; }
    .kx-hero h1 { font-size: 6.3vw; }
    .kx-hero-intro > p { font-size: 14px; }
    .kx-proof-strip > p { gap: 18px; padding-left: 22px; }
    .kx-proof-strip strong { font-size: 42px; }
    .kx-brand-board, .kx-social-board { height: 425px; }
    .kx-social-board { padding: 60px 24px 24px; }
    .kx-feed-pair { gap: 10px; grid-template-columns: 1fr 18px 1fr; }
    .kx-feed-pair img { max-height: 300px; }
    .kx-results-project { gap: 35px; padding: 35px; }
    .kx-about-grid, .kx-expertise { gap: 50px; }
    .kx-contact-grid { gap: 40px; grid-template-columns: 1fr 290px; }
}
@media (max-width: 850px) {
    .kx-container { width: calc(100% - 48px); }
    .kx-header-inner { min-height: 80px; }
    .kx-brand, .kx-brand img { width: 115px; }
    .kx-nav { gap: 24px; }
    .kx-nav .kx-nav-cta { gap: 20px; padding: 10px 14px; }
    .kx-hero { padding-block: 44px; }
    .kx-hero-grid { grid-template-columns: 1fr; gap: 27px; }
    .kx-hero h1 { font-size: clamp(50px, 8.5vw, 72px); }
    .kx-hero-intro { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 0; }
    .kx-hero-intro > p { max-width: 375px; }
    .kx-hero-intro .kx-text-link { margin: 0; white-space: nowrap; }
    .kx-feature-grid { gap: 20px; grid-template-columns: 1.25fr 1fr; }
    .kx-film-frame { min-height: 210px; }
    .kx-campaign-frame { gap: 6px; }
    .kx-media-label { top: 12px; left: 12px; font-size: 8px; padding: 5px 7px; }
    .kx-watch-film { bottom: 15px; left: 15px; gap: 8px; font-size: 10px !important; }
    .kx-watch-film > span:last-child { display: none; }
    .kx-motion-toggle { right: 12px; bottom: 16px; padding: 3px 7px; font-size: 9px !important; min-width: 40px; }
    .kx-proof-strip { margin-block: 36px 40px; padding-block: 28px; }
    .kx-proof-strip > p { align-items: flex-start; flex-direction: column; gap: 12px; padding-left: 25px; }
    .kx-work-grid { gap: 20px; }
    .kx-brand-board, .kx-social-board { height: 330px; }
    .kx-brand-board { padding: 48px 15px 15px; gap: 8px; }
    .kx-board-label { top: 18px; left: 16px; font-size: 8px; }
    .kx-social-board { padding: 49px 15px 15px; }
    .kx-feed-pair { gap: 5px; grid-template-columns: 1fr 16px 1fr; }
    .kx-feed-pair img { max-height: 235px; }
    .kx-feed-pair figcaption { font-size: 8px; margin-bottom: 8px; }
    .kx-feed-arrow { font-size: 20px; }
    .kx-results-project { padding: 28px; gap: 25px; margin-top: 40px; }
    .kx-results-copy h3 { font-size: 28px; }
    .kx-results-copy > p:not(.kx-eyebrow) { font-size: 12px; }
    .kx-work-bottom { padding-bottom: 60px; }
    .kx-about { padding-block: 60px; }
    .kx-about-grid { gap: 36px; grid-template-columns: 1fr 1.15fr; }
    .kx-about-copy h2, .kx-expertise h2 { font-size: 34px; }
    .kx-about-copy > p:not(.kx-eyebrow) { font-size: 12px; }
    .kx-expertise { padding-block: 65px; grid-template-columns: 1fr 1.3fr; gap: 40px; }
    .kx-service-list > a { gap: 10px; grid-template-columns: 18px 1fr 16px; }
    .kx-service-list h3 { font-size: 17px; }
    .kx-contact-grid { grid-template-columns: 1fr 260px; gap: 30px; }
    .kx-contact h2 { font-size: 52px; }
}
@media (max-width: 600px) {
    html:has(body.kx-home) { scroll-padding-top: 88px; }
    .kx-container { width: calc(100% - 40px); }
    .kx-header-inner { min-height: 76px; }
    .kx-brand, .kx-brand img { width: 105px; }
    .kx-menu-toggle { display: flex; align-items: center; gap: 20px; background: transparent; color: var(--kx-ink); padding: 10px 0 10px 10px; font-size: 12px !important; font-weight: 700 !important; }
    .kx-menu-toggle > span { font-size: 23px; line-height: 1; }
    .kx-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--kx-line); padding: 15px 20px 22px; align-items: stretch; gap: 0; }
    .kx-nav.is-open { display: flex; flex-direction: column; }
    .kx-nav > a { padding: 12px 0; }
    .kx-nav .kx-nav-cta { margin-top: 10px; justify-content: space-between; }
    .kx-hero { padding-block: 34px 32px; }
    .kx-hero > .kx-eyebrow { font-size: 8px; letter-spacing: .11em; margin-bottom: 23px; }
    .kx-hero h1 { font-size: clamp(37px,9.7vw,57px); letter-spacing: -.065em; line-height: 1.08; }
    .kx-hero h1 em { letter-spacing: -.045em; }
    .kx-hero-grid { gap: 22px; }
    .kx-hero-intro { display: block; }
    .kx-hero-intro > p { font-size: 13px; max-width: 340px; }
    .kx-hero-intro .kx-text-link { margin-top: 19px; font-size: 12px; }
    .kx-section-line { padding-block: 15px; gap: 10px; }
    .kx-section-line h2 { font-size: 9px; }
    .kx-section-line > span { font-size: 9px; }
    .kx-feature-grid { grid-template-columns: 1fr; gap: 25px; }
    .kx-film-frame { min-height: 0; aspect-ratio: 16 / 10; }
    .kx-feature-film { object-fit: contain; }
    .kx-watch-film { font-size: 11px !important; }
    .kx-motion-toggle { min-height: 36px; padding-inline: 10px; font-size: 10px !important; }
    .kx-campaign-frame { gap: 10px; }
    .kx-project-caption { padding: 15px 0 6px; }
    .kx-project-caption h3 { font-size: 18px; }
    .kx-project-caption p { font-size: 10px; }
    .kx-circle-arrow { width: 33px; height: 33px; }
    .kx-proof-strip { margin: 30px 0 36px; padding: 23px 0; gap: 8px; }
    .kx-proof-strip > p { padding-left: 13px; gap: 10px; }
    .kx-proof-strip strong { font-size: 35px; }
    .kx-proof-strip strong span { font-size: 22px; margin-left: 3px; }
    .kx-proof-strip p > span { font-size: 8px; line-height: 1.65; }
    .kx-work-grid { grid-template-columns: 1fr; gap: 28px; }
    .kx-brand-board, .kx-social-board { height: auto; min-height: 345px; }
    .kx-brand-board { aspect-ratio: 1.06; padding: 48px 18px 18px; }
    .kx-board-label { font-size: 9px; left: 18px; }
    .kx-social-board { padding: 55px 26px 25px; }
    .kx-feed-pair { gap: 10px; grid-template-columns: 1fr 20px 1fr; }
    .kx-feed-pair img { max-height: 330px; }
    .kx-feed-pair figcaption { font-size: 9px; margin-bottom: 12px; }
    .kx-results-project { grid-template-columns: 1fr; padding: 28px 23px; margin-top: 35px; gap: 30px; }
    .kx-results-copy h3 { font-size: 31px; margin-top: 18px; }
    .kx-results-copy > p:not(.kx-eyebrow) { font-size: 12px; }
    .kx-work-bottom { flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 24px; padding-bottom: 48px; }
    .kx-work-bottom p { font-size: 11px; }
    .kx-button { font-size: 11px; padding: 15px 20px; }
    .kx-about { padding-block: 44px; }
    .kx-about-grid { grid-template-columns: 1fr; gap: 34px; }
    .kx-about-copy h2, .kx-expertise h2 { font-size: 37px; margin-block: 17px 19px; }
    .kx-about-copy > p:not(.kx-eyebrow) { font-size: 13px; }
    .kx-expertise { grid-template-columns: 1fr; gap: 32px; padding-block: 48px 52px; }
    .kx-service-list > a { padding-block: 20px; gap: 12px; }
    .kx-service-list h3 { font-size: 18px; }
    .kx-service-list p { font-size: 11px; }
    .kx-contact { padding-block: 42px; }
    .kx-contact-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 18px; }
    .kx-contact h2 { font-size: clamp(48px,13vw,70px); }
    .kx-contact-copy > p { font-size: 13px; }
    .kx-contact-copy .kx-button { margin-top: 19px; }
    .kx-footer { padding-block: 24px; }
    .kx-footer-inner { flex-wrap: wrap; gap: 18px; font-size: 9px; }
    .kx-footer nav { gap: 18px; }
    .kx-footer-inner > a { flex-basis: 100%; }
    .kx-dialog-head h2 { font-size: 12px; }
    .kx-dialog-head button { font-size: 10px; gap: 10px; }
    .kx-film-dialog { padding: 12px; }
    .kx-film-dialog > p { font-size: 10px; }
}
@media (max-width: 782px) { .admin-bar .kx-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .kx-header { top: 0; } }
@media (prefers-reduced-motion: reduce) {
    html:has(body.kx-home) { scroll-behavior: auto; }
    .kx-home *, .kx-home *::before, .kx-home *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Expanded portfolio: films first, then performance, healthcare, social, and identity. */
.kx-home [hidden] { display: none !important; }
.kx-arrow { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex-shrink: 0; }
.kx-arrow::before { content: ''; position: absolute; width: 13px; height: 1.4px; background: currentColor; transform: rotate(-45deg); }
.kx-arrow::after { content: ''; position: absolute; width: 9px; height: 9px; border-top: 1.4px solid currentColor; border-right: 1.4px solid currentColor; transform: translate(2px,-2px); }
.kx-nav { gap: 29px; }
.kx-nav-dropdown { position: relative; }
.kx-nav-dropdown summary { display: flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 700; }
.kx-nav-dropdown summary::-webkit-details-marker { display: none; }
.kx-nav-dropdown summary::marker { content: ''; }
.kx-chevron { width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); margin-top: -3px; }
.kx-nav-dropdown[open] .kx-chevron { transform: rotate(225deg); margin-top: 3px; }
.kx-dropdown-panel { position: absolute; top: calc(100% + 20px); left: -20px; width: 268px; border: 1px solid var(--kx-line); background: white; box-shadow: 0 16px 34px rgba(20,28,23,.08); padding: 10px; z-index: 60; }
.kx-dropdown-panel a { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; padding: 10px 12px; }
.kx-dropdown-panel a:hover { color: var(--kx-red); background: var(--kx-paper); }
.kx-connect-dropdown .kx-dropdown-panel { left: auto; right: 0; width: 220px; }
.kx-nav-dropdown .kx-nav-cta { border: 1px solid var(--kx-ink); padding: 12px 20px; gap: 28px; }
.kx-nav-dropdown .kx-nav-cta:hover { color: var(--kx-red); }
.kx-nav-dropdown[open] > summary { color: var(--kx-red); }
.kx-cinematic { padding-bottom: 74px; }
.kx-cinema-lead { display: grid; grid-template-columns: 2.05fr 1fr; gap: 22px; }
.kx-cinema-lead > .kx-film-frame { height: auto; aspect-ratio: auto; min-height: 0; }
.kx-cinema-lead .kx-feature-film { object-fit: contain; position: absolute; inset: 0; }
.kx-cinema-lead .kx-film-frame::after { inset: 40% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.7)); }
.kx-feature-title { position: absolute; z-index: 2; left: 26px; bottom: 91px; color: #fff; }
.kx-feature-title p { font-size: 10px; text-transform: uppercase; letter-spacing: .13em; color: #e7e7e2; }
.kx-feature-title h3 { font-size: 30px; color: #fff; letter-spacing: -.04em; line-height: 1.15; margin-top: 8px; }
.kx-cinema-side { display: grid; gap: 22px; }
.kx-video-item { min-width: 0; }
.kx-video-card { display: block; position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #18201e; color: white !important; }
.kx-video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.kx-video-card::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.65)); pointer-events: none; }
.kx-video-card:hover img { transform: scale(1.025); }
.kx-video-duration { position: absolute; z-index: 2; right: 10px; top: 10px; background: rgba(10,15,11,.62); font-size: 10px; padding: 2px 6px; letter-spacing: .04em; }
.kx-video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 43px; height: 43px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(14,20,16,.2); display: grid; place-items: center; z-index: 2; transition: background .2s; }
.kx-video-play::after { content: ''; border-block: 5px solid transparent; border-left: 8px solid white; margin-left: 3px; }
.kx-video-card:hover .kx-video-play { background: var(--kx-red); border-color: var(--kx-red); }
.kx-video-action { position: absolute; z-index: 2; bottom: 14px; left: 13px; right: 13px; display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 700; }
.kx-video-side .kx-video-card { aspect-ratio: 16 / 9; }
.kx-video-side .kx-side-title { position: absolute; z-index: 2; bottom: 15px; left: 16px; right: 16px; font-size: 13px; font-weight: 700; line-height: 1.4; }
.kx-video-side .kx-video-action { display: none; }
.kx-video-side .kx-video-play { width: 38px; height: 38px; }
.kx-video-item > h3, .kx-artwork-item > h3 { font-size: 12px; font-weight: 700; line-height: 1.55; letter-spacing: -.02em; margin-top: 12px; }
.kx-film-shelf-heading { margin: 32px 0 17px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.kx-film-shelf-heading > span { font-size: 10px; color: var(--kx-muted); }
.kx-film-shelf { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 18px; }
.kx-section-end { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-top: 30px; }
.kx-section-end > p { font-size: 11px; color: var(--kx-muted); }
.kx-section-end .kx-text-link { font-size: 12px; }
.kx-portfolio-section { padding-block: 75px; }
.kx-portfolio-heading { display: grid; grid-template-columns: 1fr 390px; gap: 70px; align-items: end; margin-bottom: 32px; }
.kx-portfolio-heading h2 { font-size: clamp(34px,3.6vw,52px); font-weight: 500; line-height: 1.12; letter-spacing: -.055em; margin-top: 18px; }
.kx-portfolio-heading h2 em { color: var(--kx-red); letter-spacing: -.025em; }
.kx-section-intro > p { font-size: 13px; color: var(--kx-muted); line-height: 1.9; }
.kx-section-intro .kx-text-link { margin-top: 21px; font-size: 12px; }
.kx-performance-section { background: var(--kx-paper); }
.kx-performance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.kx-performance-grid > a { min-width: 0; background: white; padding: 14px; border: 1px solid var(--kx-line); }
.kx-performance-grid img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: contain; background: #fff; }
.kx-performance-grid > a > span { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; padding: 17px 9px 5px; }
.kx-performance-grid > a:hover > span { color: var(--kx-red); }
.kx-image-note { font-size: 10px; color: var(--kx-muted); margin-top: 15px !important; }
.kx-medical-design-section { background: var(--kx-paper); }
.kx-artwork-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 18px; }
.kx-artwork-card { position: relative; display: block; aspect-ratio: 9 / 16; }
.kx-artwork-card img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.kx-enlarge { position: absolute; bottom: 10px; right: 10px; width: 29px; height: 29px; background: rgba(255,255,255,.95); display: grid; place-items: center; color: var(--kx-ink); border-radius: 50%; }
.kx-artwork-card:hover .kx-enlarge { color: white; background: var(--kx-red); }
.kx-transformations-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.kx-transformation { background: #f2eef6; padding: 24px; }
.kx-transformation:nth-child(2) { background: #f3f1eb; }
.kx-transformation:nth-child(3) { background: #edf2f0; }
.kx-transformation > p { font-size: 9px; margin-bottom: 22px; }
.kx-before-after { display: grid; grid-template-columns: 1fr 17px 1fr; align-items: center; gap: 10px; }
.kx-before-after figure { min-width: 0; }
.kx-before-after figcaption { font-size: 10px; text-align: center; letter-spacing: .08em; font-weight: 800; margin-bottom: 12px; text-transform: uppercase; }
.kx-before-after img { width: 100%; height: auto; box-shadow: 0 5px 10px rgba(30,24,35,.07); }
.kx-before-after .kx-feed-arrow { font-size: 23px; }
.kx-logos-section { background: var(--kx-paper); }
.kx-identities-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.kx-identity-card { background: #fff; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--kx-line); }
.kx-identity-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; flex: 1; min-height: 0; }
.kx-identity-card > span { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--kx-line); font-size: 11px; font-weight: 700; }
.kx-identity-card:hover > span { color: var(--kx-red); }
.kx-film-dialog #kx-dialog-image { max-width: 100%; max-height: 72dvh; width: auto; height: auto; object-fit: contain; margin-inline: auto; }
.kx-film-dialog.is-portrait { width: min(490px,calc(100% - 30px)); }
.kx-film-dialog.is-portrait video { height: 72dvh; width: auto; max-width: 100%; aspect-ratio: auto; object-fit: contain; margin-inline: auto; }
.kx-film-dialog.is-image { width: min(650px,calc(100% - 30px)); }
@media(max-width:1150px) {
 .kx-nav { gap: 22px; } .kx-nav > a,.kx-nav-dropdown summary { font-size: 12px; }
 .kx-portfolio-heading { grid-template-columns: 1fr 320px; gap: 40px; }
 .kx-film-shelf,.kx-artwork-grid { gap: 14px; } .kx-feature-title h3 { font-size: 26px; }
 .kx-transformation { padding: 20px 16px; } .kx-before-after { gap: 7px; grid-template-columns: 1fr 14px 1fr; }
}
@media(max-width:900px) {
 .kx-nav { gap: 16px; } .kx-nav-dropdown .kx-nav-cta { padding: 10px 13px; gap: 17px; }
 .kx-cinema-lead { gap: 16px; grid-template-columns: 1.7fr 1fr; } .kx-cinema-side { gap: 16px; }
 .kx-feature-title { left: 17px; bottom: 68px; } .kx-feature-title h3 { font-size: 23px; }
 .kx-video-side .kx-side-title { font-size: 11px; bottom: 10px; left: 12px; } .kx-video-side .kx-video-play { width: 32px; height: 32px; }
 .kx-film-shelf,.kx-artwork-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 18px; }
 .kx-portfolio-heading { gap: 35px; grid-template-columns: 1fr 280px; } .kx-portfolio-heading h2 { font-size: 36px; }
 .kx-portfolio-section { padding-block: 60px; } .kx-cinematic { padding-bottom: 60px; }
 .kx-performance-grid { gap: 20px; } .kx-transformations-grid { gap: 16px; }
 .kx-transformation { padding: 20px 12px; } .kx-before-after { gap: 5px; grid-template-columns: 1fr 12px 1fr; }
 .kx-before-after .kx-feed-arrow { font-size: 17px; } .kx-before-after figcaption { font-size: 8px; } .kx-identities-grid { gap: 16px; }
}
@media(max-width:760px) {
 .kx-menu-toggle { display: flex; align-items: center; gap: 20px; background: transparent; color: var(--kx-ink); padding: 10px 0 10px 10px; font-size: 12px !important; font-weight: 700 !important; }
 .kx-menu-toggle > span { font-size: 23px; line-height: 1; }
 .kx-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--kx-line); padding: 15px 24px 22px; align-items: stretch; gap: 0; max-height: calc(100dvh - 80px); overflow: auto; }
 .kx-nav.is-open { display: flex; flex-direction: column; } .kx-nav > a,.kx-nav-dropdown summary { padding: 13px 0; font-size: 13px; }
 .kx-nav-dropdown summary { justify-content: space-between; }
 .kx-dropdown-panel { position: static; width: 100%; box-shadow: none; border: 0; border-left: 2px solid var(--kx-red); background: var(--kx-paper); margin-bottom: 10px; }
 .kx-connect-dropdown .kx-dropdown-panel { width: 100%; } .kx-nav-dropdown .kx-nav-cta { padding: 12px 14px; margin-top: 8px; }
 body.kx-menu-open { overflow: hidden; }
 .kx-portfolio-heading { grid-template-columns: 1fr; gap: 20px; } .kx-section-intro { max-width: 500px; }
 .kx-section-intro .kx-text-link { margin-top: 15px; } .kx-transformations-grid { grid-template-columns: 1fr; gap: 20px; }
 .kx-transformation { padding: 24px; } .kx-before-after { gap: 20px; grid-template-columns: 1fr 20px 1fr; max-width: 480px; margin-inline: auto; }
 .kx-before-after img { max-height: 400px; width: 100%; object-fit: contain; box-shadow: none; }
 .kx-before-after figcaption { font-size: 11px; } .kx-before-after .kx-feed-arrow { font-size: 23px; }
}
@media(max-width:600px) {
 .kx-hero h1 { font-size: clamp(37px,9.7vw,57px); }
 .kx-cinema-lead { grid-template-columns: 1fr; gap: 13px; } .kx-cinema-lead > .kx-film-frame { height: auto; aspect-ratio: 16 / 10; }
 .kx-cinema-side { grid-template-columns: 1fr 1fr; gap: 12px; } .kx-video-side .kx-video-card { aspect-ratio: 4 / 3; }
 .kx-video-side .kx-video-card img { object-fit: contain; }
 .kx-video-side .kx-side-title { font-size: 10px; left: 10px; bottom: 9px; line-height: 1.3; }
 .kx-video-side .kx-video-play { top: 43%; width: 29px; height: 29px; } .kx-video-duration { top: 7px; right: 7px; font-size: 8px; }
 .kx-feature-title { left: 15px; bottom: 61px; } .kx-feature-title p { font-size: 8px; } .kx-feature-title h3 { font-size: 21px; margin-top: 5px; }
 .kx-film-shelf-heading { margin-top: 26px; gap: 12px; } .kx-film-shelf-heading > .kx-eyebrow { font-size: 8px; } .kx-film-shelf-heading > span { display: none; }
 .kx-film-shelf,.kx-artwork-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px 14px; }
 .kx-video-item > h3,.kx-artwork-item > h3 { font-size: 11px; margin-top: 9px; }
 .kx-video-action { font-size: 9px; bottom: 11px; left: 11px; right: 11px; } .kx-video-play { width: 38px; height: 38px; }
 .kx-section-end { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 25px; } .kx-section-end > p { font-size: 10px; }
 .kx-cinematic { padding-bottom: 43px; } .kx-portfolio-section { padding-block: 43px; } .kx-portfolio-heading { margin-bottom: 25px; }
 .kx-portfolio-heading h2 { font-size: 35px; margin-top: 15px; } .kx-section-intro > p { font-size: 12px; }
 .kx-performance-grid { grid-template-columns: 1fr; gap: 20px; } .kx-performance-grid > a { padding: 10px; }
 .kx-performance-grid > a > span { font-size: 11px; padding: 13px 6px 5px; } .kx-image-note { font-size: 9px; }
 .kx-transformation { padding: 21px 18px; } .kx-before-after { gap: 10px; grid-template-columns: 1fr 16px 1fr; }
 .kx-before-after figcaption { font-size: 9px; } .kx-before-after .kx-feed-arrow { font-size: 20px; }
 .kx-identities-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; } .kx-identity-card > span { padding: 12px; font-size: 10px; gap: 5px; }
 .kx-film-dialog.is-portrait video { height: 67dvh; }
}
