/* Metaverse911 kit. Web standard, plan section 11: see plan-2026-11b/web-standard.md.
   Opt-in: only pages whose <main> has class "kx" use these rules, and only pages that link this file load it. Every rule starts with .kx, so old pages cannot change.
   Colours come from the tokens in style.css. Five card types only: picture card, person card, industry tile, text card, record row. */
.kx { --kx-sec: 88px; --kx-gap: 24px; --kx-r: 12px; --kx-shade: 10,13,18; font-size: 16px; }
@media (max-width: 760px) { .kx { --kx-sec: 60px; --kx-gap: 16px; } }

/* Type: H1 59, H2 38, H3 22, H4 18, body 16, small 14, tag 12 */
.kx h1 { font-size: clamp(2.25rem, 4.4vw, 3.6875rem); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 16px; color: inherit; }
.kx h2 { font-size: clamp(1.75rem, 2.8vw, 2.375rem); font-weight: 700; line-height: 1.14; letter-spacing: -.02em; margin: 0 0 12px; color: inherit; }
.kx h3 { font-size: 1.375rem; font-weight: 700; line-height: 1.22; letter-spacing: -.01em; margin: 0 0 8px; color: inherit; }
.kx h4 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; margin: 0 0 6px; color: inherit; }
:where(.kx) p { margin: 0 0 1em; }
:where(.kx) p:last-child { margin-bottom: 0; }
.kx-tag { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 10px; }
.kx-small { font-size: .875rem; color: var(--muted); }

/* Sections */
.kx > section { content-visibility: visible; contain-intrinsic-size: none; }
.kx-sec { padding: var(--kx-sec) 0; }
.kx-sec--soft { background: var(--bg-soft); }
.kx-sec--tight { padding: 28px 0; }
.kx-head { max-width: 780px; margin: 0 0 36px; }
.kx-head p:not(.kx-tag) { color: var(--ink-2); }
.kx-more { margin: 32px 0 0; font-weight: 600; }
.kx-link { font-weight: 600; color: var(--brand-ink); display: inline-flex; align-items: center; gap: 8px; }
.kx-link::after { content: "\2192"; }

/* Grids: 2, 3, 4, 6 or 8. Never one card alone */
.kx-grid { display: grid; gap: var(--kx-gap); list-style: none; margin: 0; padding: 0; grid-template-columns: minmax(0, 1fr); }
.kx-grid > * { min-width: 0; }
@media (min-width: 761px) {
  .kx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kx-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1025px) { .kx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .kx-grid--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Top picture. One shade: dark at 80% on the text side. The picture never goes wider than its sharp width (--sharp) */
.kx-top { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.kx-top .crumbs, .kx-top .crumbs a { color: rgba(255,255,255,.85); }
.kx-top .crumbs { margin-bottom: 18px; }
.kx-top .lead { color: #e8ebf1; font-size: 1.125rem; line-height: 1.55; margin: 0 0 22px; max-width: 34em; }
.kx-kicker { font-size: .875rem; font-weight: 600; color: #fff; margin: 0 0 12px; }
.kx-top-text { position: relative; z-index: 2; }
.kx-top-cap { position: absolute; z-index: 2; right: 16px; bottom: 12px; font-size: .75rem; color: #fff; background: rgba(var(--kx-shade), .72); padding: 4px 10px; border-radius: 6px; max-width: 60%; }
.kx-top-pic { display: block; }
.kx-top-pic picture { display: contents; }
.kx-top-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center); }
.kx-top-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 22px 0 0; padding: 0; list-style: none; }
.kx-top-facts b { display: block; font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
.kx-top-facts span { font-size: .875rem; color: #e8ebf1; }
@media (min-width: 761px) {
  .kx-top--full .kx-top-pic { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--sharp); }
  .kx-top--full .kx-top-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--kx-shade), .8) 0%, rgba(var(--kx-shade), .8) 48%, rgba(var(--kx-shade), .12) 86%); }
  .kx-top--full.kx-top--right .kx-top-pic::after { background: linear-gradient(270deg, rgba(var(--kx-shade), .8) 0%, rgba(var(--kx-shade), .8) 52%, rgba(var(--kx-shade), .12) 86%); }
  .kx-top--full .kx-top-in { position: relative; min-height: 540px; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 28px; padding-bottom: 56px; }
  .kx-top--full .kx-top-text { max-width: 600px; }
  .kx-top--full.kx-top--right .kx-top-text { margin-left: auto; }
  .kx-top--full.kx-top--right .kx-top-cap { right: auto; left: 16px; }
  .kx-top--card .kx-top-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--col, 560px)); gap: 48px; align-items: center; padding-top: 28px; padding-bottom: 56px; }
  .kx-top--wide { --col: 680px; }
}
@media (min-width: 1701px) { .kx-top--1700 .kx-top-pic { -webkit-mask-image: linear-gradient(90deg, transparent, #000 90px, #000 calc(100% - 90px), transparent); mask-image: linear-gradient(90deg, transparent, #000 90px, #000 calc(100% - 90px), transparent); } }
@media (min-width: 1201px) { .kx-top--1200 .kx-top-pic { -webkit-mask-image: linear-gradient(90deg, transparent, #000 90px, #000 calc(100% - 90px), transparent); mask-image: linear-gradient(90deg, transparent, #000 90px, #000 calc(100% - 90px), transparent); } }
@media (max-width: 760px) {
  .kx-top--full .kx-top-pic { aspect-ratio: 16 / 10; }
  .kx-top-in { padding-top: 20px; padding-bottom: 36px; }
  .kx-top .crumbs { margin-bottom: 12px; }
  .kx-top-cap { position: static; display: block; max-width: none; border-radius: 0; background: rgba(255,255,255,.08); padding: 6px 16px; }
  .kx-top--card .kx-top-side { margin-top: 20px; }
}
.kx-top--card .kx-top-side { position: relative; z-index: 2; }
.kx-top--card .kx-top-side img { display: block; width: 100%; max-width: var(--sharp); height: auto; border-radius: var(--kx-r); margin-inline: auto; }
.kx-top--card figure { margin: 0; }
.kx-top--card figcaption { font-size: .875rem; color: #e8ebf1; margin-top: 8px; text-align: center; }

/* Picture card: 16:9, or portrait for tall pictures; label, title, one line, link */
.kx-pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--kx-r); overflow: hidden; color: inherit; height: 100%; }
a.kx-pcard:hover { text-decoration: none; border-color: var(--brand-ink); }
.kx-pcard-pic { position: relative; aspect-ratio: 16 / 9; background: var(--dark); margin: 0; overflow: hidden; }
.kx-pcard-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kx-pcard--fit .kx-pcard-pic img { object-fit: contain; margin-inline: auto; }
.kx-pcard-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.kx-pcard-body p { color: var(--ink-2); }
.kx-pcard-cap { font-size: .875rem; color: var(--muted); margin: 0 0 10px; }
.kx-pcard-go { margin-top: auto; padding-top: 6px; }
.kx-when { font-size: .875rem; font-weight: 600; color: var(--brand-ink); display: block; margin: 0 0 6px; }

/* Date card: fills a picture's place when no photo is on file. Never a borrowed picture */
.kx-datecard { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; width: 100%; height: 100%; min-height: 220px; padding: 24px; background: var(--dark-2); color: #fff; border-radius: 0; border-top: 3px solid var(--brand); }
.kx-datecard b { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
.kx-datecard span { font-size: .875rem; color: #d3d8e2; }
.kx-top-side .kx-datecard, .kx-eventpics .kx-datecard { border-radius: var(--kx-r); }
.kx-top-side .kx-datecard { background: rgba(255,255,255,.07); min-height: 280px; }

/* Split: half-width picture beside text. Zones on the Center page, until the shoot */
.kx-split { display: grid; gap: 28px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.kx-split + .kx-split { margin-top: 56px; }
.kx-split-pic { margin: 0; }
.kx-split-pic img { display: block; width: 100%; height: auto; border-radius: var(--kx-r); margin-inline: auto; }
.kx-split-pic figcaption, .kx-film figcaption, .kx-gal figcaption { font-size: .875rem; color: var(--muted); margin-top: 8px; }
.kx-split-text p { color: var(--ink-2); }
@media (min-width: 761px) {
  .kx-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
  .kx-split--flip .kx-split-pic { order: 2; }
  .kx-split--portrait { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
  .kx-split--portrait.kx-split--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
}

/* Numbers, and text cards: 3 or 4 short facts */
.kx-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--kx-gap); margin: 0; }
.kx-stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--kx-r); padding: 20px; }
.kx-stats dt { font-size: .875rem; color: var(--muted); margin: 0; order: 2; }
.kx-stats dd { font-size: 2.375rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 4px; order: 1; color: var(--ink); }
.kx-stats > div { display: flex; flex-direction: column; }
@media (max-width: 760px) { .kx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kx-stats > div:last-child { grid-column: 1 / -1; } .kx-stats dd { font-size: 1.875rem; } }
.kx-source { font-size: .875rem; color: var(--muted); margin: 16px 0 0; }
.kx-tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--kx-r); padding: 22px 24px; height: 100%; }
.kx-tcard p { color: var(--ink-2); }
.kx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--kx-r); overflow: hidden; margin: 0; }
.kx-facts > div { background: var(--surface); padding: 16px 18px; }
.kx-facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.kx-facts dd { margin: 0; font-weight: 600; line-height: 1.4; color: var(--ink); }
@media (max-width: 560px) { .kx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kx-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Person card */
.kx-person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--kx-r); padding: 22px; height: 100%; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; }
.kx-avatar { width: 96px; aspect-ratio: 4 / 5; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; overflow: hidden; }
.kx-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kx-person h3 a { color: inherit; }
.kx-role { display: block; font-size: .875rem; font-weight: 600; color: var(--brand-ink); margin: 0 0 8px; }
.kx-person p { color: var(--ink-2); font-size: .9375rem; line-height: 1.55; }

/* Industry tile: picture with shade, title on picture, logos, link */
.kx-tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--kx-r); overflow: hidden; color: inherit; height: 100%; }
a.kx-tile:hover { text-decoration: none; border-color: var(--brand-ink); }
.kx-tile-pic { position: relative; aspect-ratio: 1 / 1; margin: 0; background: var(--dark); }
.kx-tile-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kx-tile-pic::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(0deg, rgba(var(--kx-shade), .92) 0%, rgba(var(--kx-shade), .8) 45%, rgba(var(--kx-shade), 0) 100%); }
.kx-tile-name { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; color: #fff; font-size: 1.125rem; font-weight: 700; line-height: 1.22; margin: 0; }
.kx-tile-body { padding: 12px 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.kx-tile-line { font-size: .875rem; line-height: 1.45; color: var(--ink-2); margin: 0; }
.kx-tile-cap { font-size: .75rem; line-height: 1.35; color: var(--muted); margin: 0; }
@media (max-width: 760px) { .kx-tile-name { font-size: 1rem; left: 10px; right: 10px; bottom: 8px; } .kx-tile-body { padding: 10px; } }

/* Logo row */
.kx-logos { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; align-items: center; }
.kx-logos a, .kx-logos > li > span { display: flex; align-items: center; justify-content: center; height: 48px; min-width: 64px; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: #10131a; font-size: .875rem; font-weight: 600; }
.kx-logos a:hover { text-decoration: none; border-color: var(--brand-ink); }
.kx-logos img { display: block; height: 28px; width: auto; max-width: 104px; object-fit: contain; }
.kx-logos--small { gap: 6px; }
.kx-logos--small > li > span, .kx-logos--small a { height: 30px; min-width: 0; padding: 4px 8px; font-size: .75rem; }
.kx-logos--small img { height: 20px; max-width: 72px; }
.kx-pcard-logos { margin: 0 0 10px; }

/* Record row: thumbnail, date, name, facts, arrow */
.kx-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.kx-rows > li { border-bottom: 1px solid var(--line); }
.kx-row { display: grid; grid-template-columns: 112px 100px minmax(0, 1fr) 24px; gap: 8px 20px; align-items: center; padding: 16px 0; color: inherit; }
a.kx-row:hover { text-decoration: none; }
a.kx-row:hover .kx-row-name { color: var(--brand-ink); }
.kx-row-thumb { display: flex; align-items: center; justify-content: center; height: 48px; padding: 6px 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: #10131a; font-size: .75rem; font-weight: 600; text-align: center; line-height: 1.2; }
.kx-row-thumb img { height: 30px; width: auto; max-width: 92px; object-fit: contain; display: block; }
.kx-row-date { font-size: .875rem; color: var(--muted); }
.kx-row-name { display: block; font-weight: 600; line-height: 1.35; }
.kx-row-line { display: block; font-size: .875rem; color: var(--ink-2); line-height: 1.45; margin-top: 2px; }
.kx-badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); margin-right: 6px; white-space: nowrap; }
.kx-badge--release { background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line-strong); }
.kx-row-go { color: var(--brand-ink); font-size: 1.125rem; }
@media (max-width: 760px) {
  .kx-row { grid-template-columns: 92px minmax(0, 1fr); }
  .kx-row-thumb { grid-row: span 2; }
  .kx-row-go { display: none; }
  .kx-row-date { grid-column: 2; }
  .kx-row-main { grid-column: 1 / -1; }
}

/* Featured press card */
.kx-quote { font-size: 1.125rem; line-height: 1.45; font-weight: 500; color: var(--ink); margin: 0 0 12px; }
.kx-sum { color: var(--ink-2); margin: 0 0 12px; }

/* Gallery: captioned pictures, never above their own size */
.kx-gal { display: grid; gap: var(--kx-gap); list-style: none; margin: 0; padding: 0; grid-template-columns: minmax(0, 1fr); }
.kx-gal figure { margin: 0; }
.kx-gal img { display: block; width: 100%; height: auto; border-radius: 10px; }
.kx-gal figcaption { margin-top: 6px; }
@media (min-width: 561px) { .kx-gal--2, .kx-gal--3, .kx-gal--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .kx-gal--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kx-gal--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 561px) and (max-width: 899px) { .kx-gal--3 > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.kx-gal--pair { align-items: stretch; }
.kx-eventpics { display: grid; gap: var(--kx-gap); grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.kx-eventpics figure { margin: 0; }
.kx-eventpics img { display: block; width: 100%; height: auto; border-radius: var(--kx-r); }
.kx-eventpics figcaption { font-size: .875rem; color: var(--muted); margin-top: 6px; }
@media (min-width: 761px) { .kx-eventpics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Event body */
.kx-prose { max-width: 780px; }
.kx-prose p { color: var(--ink-2); }
.kx-prose ul { color: var(--ink-2); margin: 0 0 1em; }
.kx-prose h2 { font-size: clamp(1.375rem, 2vw, 1.625rem); margin: 28px 0 8px; }
.kx-prose h2:first-child { margin-top: 0; }
.kx-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.kx-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 8px; font-weight: 600; font-size: .875rem; color: var(--ink); }
.kx-chips a:hover { text-decoration: none; border-color: var(--brand-ink); color: var(--brand-ink); }
.kx-chips a::after { content: "\2192"; color: var(--brand-ink); }
.kx-band { background: var(--bg-soft); border-radius: var(--kx-r); padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.kx-band p { margin: 0; max-width: 40em; color: var(--ink-2); }
.kx-pager { border-top: 1px solid var(--line); padding: 20px 0; }
.kx-pager .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; }
.kx-pager a { color: inherit; font-size: .875rem; }
.kx-pager span { display: block; font-size: .75rem; color: var(--muted); }
.kx-pager b { font-weight: 600; color: var(--brand-ink); }
.kx-pager a:last-child { text-align: right; }
.kx-pager-all { font-weight: 600; color: var(--brand-ink) !important; }
@media (max-width: 560px) { .kx-pager .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .kx-pager-all { grid-row: 2; grid-column: 1 / -1; text-align: center; } }

/* Office cards: a picture only when it is truly that place */
.kx-office { background: var(--surface); border: 1px solid var(--line); border-radius: var(--kx-r); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.kx-office-pic { position: relative; aspect-ratio: 16 / 10; margin: 0; background: var(--dark-2); }
.kx-office-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kx-office-inset { position: absolute; right: 10px; bottom: 10px; width: 34%; border: 2px solid #fff; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; }
.kx-office-none { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; height: 100%; padding: 16px; color: #fff; border-top: 3px solid var(--brand); }
.kx-office-none svg { width: 24px; height: 24px; }
.kx-office-none b { font-size: 1.375rem; font-weight: 700; line-height: 1.15; }
.kx-office-none span { font-size: .75rem; color: #d3d8e2; }
.kx-office-body { padding: 14px 16px 18px; flex: 1; }
.kx-office-body h3 { font-size: 1.125rem; }
.kx-office-body p { font-size: .875rem; line-height: 1.5; color: var(--ink-2); margin: 0 0 6px; }
.kx-office-cap { font-size: .75rem !important; color: var(--muted) !important; }

/* Map block: static map from OpenStreetMap data; Google loads only on click */
.kx-map { position: relative; border-radius: var(--kx-r); overflow: hidden; background: #10141c; aspect-ratio: 16 / 9; min-height: 300px; }
.kx-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kx-map-cover { position: absolute; inset: 0; display: block; padding: 0; margin: 0; background: transparent; border: 0; }
.kx-map-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kx-map-pin { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -100%); color: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; }
.kx-map-pin svg { width: 36px; height: 36px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.kx-map-pin span { background: #fff; color: #10131a; font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.kx-map-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; background: rgba(var(--kx-shade), .9); color: #e8ebf1; font-size: .75rem; line-height: 1.4; }
.kx-map-bar a { color: #fff; text-decoration: underline; }
.kx-map-bar p { margin: 0; flex: 1 1 240px; }
.kx-map-bar .btn { color: #fff; border-color: #fff; background: transparent; padding: 8px 14px; font-size: .875rem; }
@media (max-width: 560px) { .kx-map { aspect-ratio: auto; height: 400px; } }

/* Film block: cover first, plays only when asked, keyboard reach from the browser's own controls */
.kx-film { margin: 0; }
.kx-film video { display: block; width: 100%; height: auto; background: var(--dark); border-radius: var(--kx-r); }
.kx-film--portrait video { max-height: 640px; aspect-ratio: 9 / 16; width: auto; margin-inline: auto; max-width: 100%; }
.kx-films { display: grid; gap: 36px; max-width: 960px; }
.kx-visit-media { display: grid; gap: var(--kx-gap); grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
@media (min-width: 761px) { .kx-visit-media { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }

/* Details beside a form */
.kx-form-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 901px) { .kx-form-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.kx-details { margin: 0; }
.kx-details > div { padding: 14px 0; border-top: 1px solid var(--line); }
.kx-details > div:first-child { border-top: 1px solid var(--line-strong); }
.kx-details dt { font-size: .875rem; font-weight: 600; color: var(--muted); margin: 0 0 2px; }
.kx-details dd { margin: 0; color: var(--ink); line-height: 1.5; }
.kx-details dd a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.kx-side-pic { margin: 20px 0 0; }
.kx-side-pic img { display: block; width: 100%; height: auto; border-radius: 10px; }
.kx-side-pic figcaption { font-size: .875rem; color: var(--muted); margin-top: 6px; }

/* Release D roll-out: older page parts on migrated pages. Every rule stays inside .kx, so pages not yet moved cannot change. */
/* Rows fill. A last card alone becomes a wide card; two left over share the row */
.kx .grid.grid-2 > *, .kx .grid.grid-3 > *, .kx .grid.grid-4 > * { flex: 1 1 calc((100% - (var(--cols) - 1) * 24px) / var(--cols)); max-width: none; }
.kx .grid.grid-4.kx-four { --cols: 4; }
.kx .grid.kx-two { --cols: 2; }
@media (max-width: 1024px) { .kx .grid.grid-4.kx-four { --cols: 2; } }
@media (max-width: 600px) { .kx .grid.kx-two, .kx .grid.grid-4.kx-four { --cols: 1; } }
@media (min-width: 1025px) {
  /* A count of 3n+1 makes the last row four across, so nothing sits alone */
  .kx .grid.grid-3 > :nth-child(3n+1):nth-last-child(4), .kx .grid.grid-3 > :nth-child(3n+1):nth-last-child(4) ~ * { flex-basis: calc(25% - 18px); }
  .kx .grid.grid-3 > a.card:only-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; align-content: start; }
  .kx .grid.grid-3 > a.card:only-child > .card-media, .kx .grid.grid-3 > a.card:only-child > .sol-card-media { grid-column: 1; grid-row: 1 / span 8; margin: 0; }
  .kx .grid.grid-3 > a.card:only-child > :not(.card-media):not(.sol-card-media) { grid-column: 2; }
}
@media (min-width: 601px) and (max-width: 1024px) {
  .kx .grid.grid-3 > a.card:last-child:nth-child(odd) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-content: start; }
  .kx .grid.grid-3 > a.card:last-child:nth-child(odd) > .card-media, .kx .grid.grid-3 > a.card:last-child:nth-child(odd) > .sol-card-media { grid-column: 1; grid-row: 1 / span 8; margin: 0; width: 100%; }
  .kx .grid.grid-3 > a.card:last-child:nth-child(odd) > :not(.card-media):not(.sol-card-media) { grid-column: 2; }
}
/* Phone: card pictures stay full width */
@media (max-width: 600px) {
  .kx .grid > a.card { display: flex !important; flex-direction: column; }
  .kx .grid > a.card .card-media, .kx .grid > a.card .sol-card-media { width: 100% !important; aspect-ratio: 16 / 9; margin: 0 0 12px !important; grid-row: auto; }
}
.kx .app-grid.kx-apps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 901px) { .kx .app-grid.kx-apps3 > :last-child:nth-child(3n+1) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); column-gap: 24px; align-content: start; } .kx .app-grid.kx-apps3 > :last-child:nth-child(3n+1) > .kx-tpic { grid-row: 1 / span 4; margin: -22px 0 -22px -22px; aspect-ratio: auto; height: auto; min-height: 225px; border-radius: 14px 0 0 14px; } .kx .app-grid.kx-apps3 > :last-child:nth-child(3n+1) > :not(.kx-tpic) { grid-column: 2; margin-top: 0; } }
@media (max-width: 900px) { .kx .app-grid.kx-apps3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kx .app-grid.kx-apps3 { grid-template-columns: minmax(0, 1fr); } }
/* Picture at the head of an older tile */
.kx-tpic { display: block; margin: -22px -22px 14px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dark); border-radius: 14px 14px 0 0; }
.kx-tpic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kx .card > .kx-tpic { margin: 0 0 14px; border-radius: 10px; }
.kx-shown { display: block; font-size: .75rem; line-height: 1.35; color: var(--muted); margin: -8px 0 8px; }
/* Text-led card in place of a picture, when no real picture is on file */
.kx-noimg { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px 16px; background: var(--dark-2); color: #fff; font-weight: 700; font-size: 1.125rem; line-height: 1.2; border-top: 3px solid var(--brand); }
/* Illustration label */
.kx-illus { position: absolute; z-index: 2; left: 8px; top: 8px; font-size: .75rem; font-weight: 600; line-height: 1.3; padding: 2px 8px; border-radius: 6px; color: #fff; background: rgba(var(--kx-shade), .78); }
.kx .prose-fig { position: relative; }
.kx .prose-fig figcaption.kx-cap, .kx-float figcaption, .kx-duo figcaption { font-size: .875rem; color: var(--muted); margin-top: 8px; text-align: left; }
/* Top section with a picture beside the text */
@media (min-width: 901px) {
  .kx .kx-hero-pic > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px; align-items: center; }
}
.kx .kx-hero-pic figure { margin: 18px 0 0; }
.kx .kx-hero-pic figure img { display: block; width: 100%; height: auto; border-radius: var(--kx-r); }
.kx .kx-hero-pic figcaption { font-size: .875rem; color: #d3d8e2; margin-top: 8px; }
.kx .banner-bg.kx-bg-cap { left: 50%; right: auto; width: 100%; max-width: var(--sharp); transform: translateX(-50%); }
/* Next step: one band with a picture. The site-wide band in the footer steps aside */
:has(.kx .next-step) .footer-cta { display: none; }
@media (min-width: 901px) { .kx .cta-band.kx-band-has { grid-template-columns: minmax(0, 300px) minmax(0, 1.4fr) minmax(0, 1fr); } }
.kx-band-pic { position: relative; z-index: 1; margin: 0; }
.kx-band-pic img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.kx-band-pic figcaption { font-size: .75rem; color: var(--on-dark-2); margin-top: 6px; }
/* Quote cards: a project photo with each quote */
.kx-qs-pic { display: block; margin: -24px -24px 16px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px 16px 0 0; background: var(--dark); }
.kx-qs-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Film chapters: one strip, all in one row on wide screens (plan 9.4) */
.kx .reel-beats { max-width: none; }
.kx .reel-beats ol { display: flex; gap: 0; counter-reset: ch; border-top: 2px solid var(--brand); }
.kx .reel-beats li { flex: 1 1 0; min-width: 0; counter-increment: ch; position: relative; padding: 14px 16px 4px 0; background: none; border: 0; box-shadow: none; font-size: .875rem; color: var(--ink-2); }
.kx .reel-beats li::before { content: counter(ch, decimal-leading-zero); display: block; font-size: .75rem; font-weight: 700; color: var(--brand-ink); margin-bottom: 4px; }
.kx .reel-beats li b { display: block; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 760px) { .kx .reel-beats ol { flex-direction: column; border-top: 0; border-left: 2px solid var(--brand); } .kx .reel-beats li { padding: 8px 0 10px 14px; flex: none; } }
/* Talk films: full column (plan 9.5) */
.kx .pg-spk .spk-film, .kx .pg-spk .spk-film-player { max-width: none; width: 100%; }
/* Talk record card: a labelled portrait */
.kx .spk-card-portrait { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; position: relative; }
.kx .spk-card-portrait img { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; flex: none; }
.kx .spk-card-portrait figcaption { font-size: .75rem; line-height: 1.35; color: #d3d8e2; }
/* A picture floated beside a solution or project in long text */
.kx-float { float: right; width: 38%; margin: 4px 0 14px 28px; position: relative; }
.kx-float img { display: block; width: 100%; height: auto; border-radius: 10px; }
.kx .prose h4.as-h3, .kx .prose h3.as-h2 { clear: both; }
.kx .prose::after { content: ""; display: block; clear: both; }
@media (max-width: 600px) { .kx-float { float: none; width: 100%; margin: 8px 0 14px; } }
/* Two project photos in a row */
.kx-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--kx-gap); margin: 28px 0; }
.kx-duo figure { margin: 0; }
.kx-duo img { display: block; width: 100%; height: auto; border-radius: 10px; }
@media (max-width: 560px) { .kx-duo { grid-template-columns: minmax(0, 1fr); } }
/* Dojo diagram */
.kx-dojo { display: block; width: 100%; max-width: 860px; height: auto; margin: 16px auto 24px; color: var(--ink); }
.kx-dojo-box { fill: var(--surface); stroke: var(--line-strong); }
.kx-dojo-hub { fill: var(--brand); }
/* Spec table */
.kx-spec { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: .9375rem; }
.kx-spec th, .kx-spec td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kx-spec th { width: 34%; font-weight: 600; color: var(--ink); }
/* Press cards, framed figures */
.kx .press-slide-title { font-family: inherit; }
.kx .fig-framed { aspect-ratio: auto; display: block !important; }
.kx .prose-fig.fig-framed::before { display: none; }
.kx .why.kx-why-pic { display: block; padding: 22px; overflow: hidden; }

/* Release D Stage 11: label on a top picture, picture beside text on a text-only top section, flow diagrams */
.kx-illus.kx-illus-hero { left: auto; right: 12px; top: auto; bottom: 12px; }
.kx .banner-solid.kx-hero-pic figure img { max-height: 420px; object-fit: contain; }
@media (max-width: 900px) { .kx .banner-solid.kx-hero-pic .banner-content { display: block; } .kx .banner-solid.kx-hero-pic figure { max-width: 100%; margin-top: 24px; } .kx .banner-solid.kx-hero-pic figure img { width: 100%; height: auto; } }
.kx .banner-solid.kx-hero-pic figcaption { color: #d3d8e2; }
@media (max-width: 600px) { .kx .banner-bg.kx-bg-fit img { height: 800px !important; max-height: 800px; } }
.kx-fig { margin: 24px auto; }
.kx-fig img { display: block; width: 100%; height: auto; border-radius: 10px; }
.kx-fig figcaption { font-size: .875rem; color: var(--muted); margin-top: 8px; }
.kx-diagram { margin: 16px 0 28px; }
.kx-diagram svg { display: block; width: 100%; height: auto; color: var(--ink); }
.kx-diagram .kx-dg-narrow { display: none; max-width: 460px; margin-inline: auto; }
@media (max-width: 640px) { .kx-diagram .kx-dg-wide { display: none; } .kx-diagram .kx-dg-narrow { display: block; } }
.kx-dg-box { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.kx-dg-hub { fill: var(--brand); stroke: none; }
.kx-dg-arrow { stroke: var(--brand); stroke-width: 2.5; fill: none; }
.kx-dg-head { fill: var(--brand); stroke: none; }
.kx-diagram figcaption { font-size: .875rem; color: var(--muted); margin-top: 8px; text-align: left; }

/* Release E: fixes from the independent technical check, 5 Nov 2026 */
/* F3 the old counter in style.css prints 00 beside the kit's chapter number */
.kx .reel-beats li b::before { content: none; }
/* F7 the line above the home headline, on a phone */
@media (max-width: 760px) { .hero-eyebrow { display: inline-block; padding: 4px 10px; border-radius: 6px; background: rgba(8, 10, 20, .72); color: #fff; } }
/* F10 leftover cards */
@media (min-width: 601px) and (max-width: 1024px) {
  .why-grid > :last-child:nth-child(odd), .kx .app-grid > :last-child:nth-child(odd), .showreel-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pg-spk .spk-topics > :last-child:nth-child(odd), .pg-spk .spk-sel > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kx-facts > :last-child:nth-child(4n+1) { grid-column: 1 / -1; }
}
@media (min-width: 601px) and (max-width: 1000px) {
  .hb-certs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hb-certs li { grid-column: span 2; }
  .hb-certs li:nth-last-child(-n+2) { grid-column: span 3; }
}
@media (max-width: 600px) { .hb-certs li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.banner-strip .wrap > .banner-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.logo-grid.logo-grid-even { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 600px) { .logo-grid.logo-grid-even { grid-template-columns: repeat(2, 1fr); } }
/* five real room pictures on the home row */
@media (min-width: 1101px) { .zone-row.zone-row-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* F11 */
.kx .page-hero:not(.banner-solid) .hero-text .lead a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .hub-jump a { color: #c4b5fd; }
.pg-spk .spk-kit-text span { font-weight: 600; }
