/* Kompetitive page sections: everything below the first screen.
   Companion to _shared/kx-header (same tokens, same button family). Portable
   across the GI fleet: each build sets only --kx-* tokens and emits the markup
   in README.md. Nothing here invents a colour: every hue is the build's
   --kx-brand mixed with white or with its own text colour.
   Load order: build CSS, kx-header.css, kx-sections.css.
   Defaults sit under :where(:root) (zero specificity), so a build's own
   :root { --kx-* } always wins. */

:where(:root) {
  --kx-text: #141210;                 /* all body text: black, never grey */
  --kx-ground: #ffffff;               /* plain sections */
  --kx-tint: color-mix(in srgb, var(--kx-brand) 5%, #ffffff);   /* tinted sections */
  --kx-card: #ffffff;
  --kx-card-line: color-mix(in srgb, var(--kx-text) 15%, #ffffff);
  --kx-card-line-hover: var(--kx-brand);
  --kx-grid-line: color-mix(in srgb, var(--kx-brand) 7%, transparent);
  --kx-heading: var(--kx-text);
  --kx-h-weight: 600;                 /* display headings; builds with light display type set 400 */
  --kx-radius: 18px;
  --kx-wrap: 1200px;
  --kx-gutter: 24px;
  --kx-sec: 96px;                     /* section rhythm: one scale */
  --kx-sec-s: 72px;
  --kx-measure: 68ch;
  --kx-foot-dark: var(--kx-ink);      /* .kxf.is-dark ground: the build's own brand dark, else its ink; white on it must pass 4.5:1 */
  --kxs-ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 760px) {
  :where(:root) { --kx-sec: 64px; --kx-sec-s: 48px; --kx-gutter: 20px; }
}

/* ------------------------------------------------- 1. readability floor --- */

body.kxs-page {
  font-size: 17px; line-height: 1.6; color: var(--kx-text);
  background: var(--kx-ground);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (max-width: 399px) { body.kxs-page { font-size: 16px; } }
.kxs-page main { overflow-wrap: break-word; }

.kxs-wrap { width: 100%; max-width: var(--kx-wrap); margin-inline: auto; padding-inline: var(--kx-gutter); }
.kxs-wrap.is-narrow { max-width: calc(var(--kx-measure) + 2 * var(--kx-gutter) + 80px); }

/* --------------------------------------------------- 2. section rhythm --- */

.kxs { position: relative; isolation: isolate; padding-block: var(--kx-sec); background: var(--kx-ground); }
.kxs.is-tight { padding-block: var(--kx-sec-s); }
.kxs.is-top-0 { padding-top: 0; }
.kxs.is-bottom-0 { padding-bottom: 0; }
.kxs.kxs-tint { background: var(--kx-tint); }

/* Hairline grid: 1px brand lines at 7%, 42px squares, opacity .5, dissolving
   at the edges. On tinted sections and inner-page heroes only. */
.kxs-tint::before, .kxs-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--kx-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--kx-grid-line) 1px, transparent 1px);
  background-size: 42px 42px; background-position: 50% 0;
  -webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 42%, #000 28%, transparent 78%);
          mask-image: radial-gradient(ellipse 72% 78% at 50% 42%, #000 28%, transparent 78%);
}

.kxs-head { max-width: 780px; margin: 0 0 44px; }
.kxs-head.is-center { margin-inline: auto; text-align: center; }
.kxs-h2, .kxs-head h2 {
  margin: 0; font-family: var(--kx-font-display); font-weight: var(--kx-h-weight);
  font-size: clamp(30px, 3.3vw, 44px); line-height: 1.12; letter-spacing: -.02em;
  color: var(--kx-heading); text-wrap: balance;
}
.kxs-lead { margin: 16px 0 0; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--kx-text); }
.kxs-head.is-center .kxs-lead { margin-inline: auto; max-width: 62ch; }
.kxs-note {
  margin: 28px 0 0; max-width: var(--kx-measure); font-size: 16px; line-height: 1.6; color: var(--kx-text);
}
.kxs-note.is-center { margin-inline: auto; text-align: center; }
.kxs-sub-h {
  margin: 48px 0 18px; font-family: var(--kx-font-display); font-weight: var(--kx-h-weight);
  font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.01em; color: var(--kx-heading);
}
.kxs-sub-h:first-child { margin-top: 0; }

/* Long-form text: about 68 characters a line. */
.kxs-prose { max-width: var(--kx-measure); color: var(--kx-text); }
.kxs-prose.is-center { margin-inline: auto; }
.kxs-prose > * + * { margin-top: 1em; }
.kxs-prose p, .kxs-prose li { line-height: 1.68; }
.kxs-prose .kxs-lead-p { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; }
.kxs-prose h2 {
  margin-top: 1.9em; margin-bottom: -.25em; font-family: var(--kx-font-display); font-weight: var(--kx-h-weight);
  font-size: clamp(24px, 2.3vw, 30px); line-height: 1.2; letter-spacing: -.01em; color: var(--kx-heading);
}
.kxs-prose h2:first-child { margin-top: 0; }
.kxs-prose h3 { margin-top: 1.6em; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--kx-heading); }
.kxs-prose ul, .kxs-prose ol { padding-left: 1.35em; }
.kxs-prose li + li { margin-top: .4em; }
.kxs-prose a { color: var(--kx-brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.kxs-prose a:hover { text-decoration-thickness: 2px; }
/* Buttons inside prose keep the button look (no underline, their own colours). */
.kxs-prose a.kx-btn, .kxs-prose a.kx-btn:hover { text-decoration: none; font-weight: 700; }
.kxs-prose a.kx-btn-line { color: var(--kx-text); }
.kxs-prose a.kx-btn-line:hover { color: var(--kx-brand); }
.kxs-prose .kxs-actions { margin-top: 1.6em; }
.kxs-prose .kxs-box {
  border: 1px solid var(--kx-card-line); border-radius: var(--kx-radius); padding: 22px 26px; background: var(--kx-card);
}
.kxs-prose .kxs-box h3 { margin-top: 0; }

/* ---------------------------------------------------- 7. inner-page hero --- */

.kxs-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--kx-tint); padding: 44px 0 68px;
}
.kxs-hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 56px; align-items: center; }
.kxs-hero.has-media .kxs-hero-in { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.kxs-crumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0;
  font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--kx-text);
}
.kxs-crumbs li { display: inline-flex; align-items: center; }
.kxs-crumbs li + li::before {
  content: ""; width: 6px; height: 6px; margin: 0 12px 0 10px; flex: none;
  border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: rotate(45deg);
}
.kxs-crumbs a { display: inline-block; padding: 4px 0; color: var(--kx-brand); text-decoration: none; }
.kxs-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kxs-hero-title {
  margin: 16px 0 0; max-width: 20ch; font-family: var(--kx-font-display); font-weight: var(--kx-h-weight);
  font-size: clamp(36px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -.025em;
  color: var(--kx-heading); text-wrap: balance;
}
.kxs-hero:not(.has-media) .kxs-hero-title { max-width: 26ch; }
.kxs-hero-title .kxs-sm { font-size: .56em; letter-spacing: 0; font-weight: 600; white-space: nowrap; }
.kxs-hero-lead { margin: 18px 0 0; max-width: 60ch; font-size: clamp(18px, 1.55vw, 21px); line-height: 1.55; color: var(--kx-text); }
.kxs-hero-lead a { color: var(--kx-brand); font-weight: 700; text-decoration: none; display: inline-block; padding: 2px 0; }
.kxs-hero-lead a:hover { text-decoration: underline; }
.kxs-hero-facts { margin: 18px 0 0; display: grid; gap: 6px; font-size: 18px; line-height: 1.5; font-style: normal; }
.kxs-hero-facts a { color: var(--kx-brand); font-weight: 700; text-decoration: none; display: inline-block; padding: 2px 0; }
.kxs-hero-facts a:hover { text-decoration: underline; }
.kxs-hero .kxs-actions { margin-top: 28px; }
.kxs-hero-media {
  position: relative; margin: 0; border-radius: calc(var(--kx-radius) + 6px); overflow: hidden;
  aspect-ratio: 4 / 3; max-height: 440px; width: 100%; background: var(--kx-card);
  border: 1px solid var(--kx-card-line);
}
.kxs-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--kxs-focus, 50% 40%); display: block; }
.kxs-hero-media.is-portrait { aspect-ratio: 4 / 5; max-width: 380px; max-height: none; justify-self: end; }
.kxs-hero-media.is-portrait img { object-position: 50% var(--kxs-face, 15%); }

/* Headline entrance, the same rise as the home hero (word by word when the
   builder wraps words in .w, else the whole line). CSS only: no JS needed. */
.kxs-hero-title .w, .kxs-hero-title:not(:has(.w)) {
  display: inline-block; animation: kxs-rise 1.05s var(--kxs-ease) both;
  animation-delay: calc(.08s + var(--i, 0) * .06s);
}
.kxs-hero-title:not(:has(.w)) { display: block; }
.kxs-hero-in > div > :not(.kxs-hero-title), .kxs-hero-media {
  animation: kxs-up .9s var(--kxs-ease) both; animation-delay: .3s;
}
.kxs-hero-media { animation-delay: .15s; }
@keyframes kxs-rise { from { opacity: 0; filter: blur(12px); transform: translateY(.42em); } to { opacity: 1; filter: none; transform: none; } }
@keyframes kxs-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------- 9. buttons, controls --- */
/* One family: the header's .kx-btn. These add the two shapes it lacks outside
   the menu sheet; single-class selectors so the header's own sheet rules win. */

.kxs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.kxs-actions.is-center { justify-content: center; }
.kx-btn-line {
  background: transparent; color: var(--kx-text);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--kx-text) 30%, transparent);
}
.kx-btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--kx-brand); color: var(--kx-brand); transform: translateY(-1px); }
.kx-btn-light { background: #ffffff; color: var(--kx-brand); box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .5); }
.kx-btn-light:hover, .kx-btn-light:visited { color: var(--kx-brand); }
.kx-btn-light:hover { transform: translateY(-1px); background: #ffffff; }
.kx-btn-line:visited { color: var(--kx-text); }
.kx-btn-line:hover:visited { color: var(--kx-brand); }
.kx-btn.is-wide { width: 100%; }
.kxs .kx-btn, .kxs-hero .kx-btn, .kxf .kx-btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; }

.kxs-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 0;
  font-weight: 700; font-size: 16px; line-height: 1.35; color: var(--kx-brand); text-decoration: none;
}
.kxs-link svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--kxs-ease); }
.kxs-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.kxs-link:hover svg, .kxs-link:focus-visible svg { transform: translateX(4px); }

.kxs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kxs-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--kx-text); text-decoration: none; background: var(--kx-card);
  box-shadow: inset 0 0 0 1px var(--kx-card-line); transition: box-shadow .25s, color .25s;
}
.kxs-chip:hover { box-shadow: inset 0 0 0 1.5px var(--kx-brand); color: var(--kx-brand); }
.kxs-label { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--kx-text); }

/* ------------------------------------------------------------ 4. cards --- */

.kxs-grid {
  --n: 3; --gap: 24px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: var(--gap);
}
.kxs-grid > * { flex: 0 0 calc((100% - (var(--n) - 1) * var(--gap)) / var(--n)); min-width: 0; }
.kxs-grid.is-start { justify-content: flex-start; }
.kxs-grid.is-4 { --n: 4; }
.kxs-grid.is-2 { --n: 2; }
@media (max-width: 1100px) { .kxs-grid.is-4 { --n: 3; } }
@media (max-width: 900px)  { .kxs-grid.is-3 { --n: 2; } }
@media (max-width: 800px)  { .kxs-grid.is-4 { --n: 2; --gap: 16px; } }
@media (max-width: 700px)  { .kxs-grid.is-2 { --n: 1; } }
@media (max-width: 620px)  { .kxs-grid.is-3 { --n: 1; } .kxs-grid { --gap: 16px; } }
@media (max-width: 520px)  { .kxs-grid.is-4 { --n: 1; --gap: 12px; } }

.kxs-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--kx-card); color: var(--kx-text); text-decoration: none;
  border: 1px solid var(--kx-card-line); border-radius: var(--kx-radius);
  padding: 30px 28px; min-width: 0;
  transition: border-color .3s var(--kxs-ease);
}
.kxs-card:hover, .kxs-card:focus-within { border-color: var(--kx-card-line-hover); }
a.kxs-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--kx-brand) 55%, transparent); outline-offset: 3px; }
.kxs-card.is-media { padding: 0; overflow: hidden; }
.kxs-card.is-center { align-items: center; text-align: center; }
.kxs-card-ico {
  display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 22px; flex: none;
  border-radius: 18px; background: var(--kx-tint); color: var(--kx-brand);
}
.kxs-card-ico img { width: 40px; height: 40px; object-fit: contain; }
.kxs-card-ico svg { width: 30px; height: 30px; }
.kxs-card-title {
  margin: 0 0 10px; font-family: var(--kx-font-display); font-size: 22px; font-weight: 600;
  line-height: 1.25; letter-spacing: -.01em; color: var(--kx-heading);
}
.kxs-card p { margin: 0; line-height: 1.6; }
.kxs-card p + p { margin-top: .6em; }
.kxs-more {
  margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: var(--kx-brand);
}
.kxs-more svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--kxs-ease); }
.kxs-card:hover .kxs-more svg, .kxs-card:focus-visible .kxs-more svg { transform: translateX(4px); }
.kxs-card .kxs-links { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.kxs-card.is-center .kxs-links { justify-content: center; }

/* Rows: a list of documents or payments, one flat row each. */
.kxs-rows { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.kxs-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  min-height: 64px; padding: 12px 20px; border: 1px solid var(--kx-card-line); border-radius: 16px;
  background: var(--kx-card); color: var(--kx-text); text-decoration: none; font-weight: 600; line-height: 1.4;
  transition: border-color .3s var(--kxs-ease);
}
.kxs-row:hover, .kxs-row:focus-visible { border-color: var(--kx-card-line-hover); }
.kxs-row-tag {
  display: grid; place-items: center; min-width: 46px; height: 34px; padding: 0 8px; border-radius: 10px;
  background: var(--kx-tint); color: var(--kx-text); font-size: 14px; font-weight: 700; letter-spacing: .04em;
}
.kxs-row-act { display: inline-flex; align-items: center; gap: 8px; color: var(--kx-brand); font-size: 15px; font-weight: 700; white-space: nowrap; }
.kxs-row-act svg { width: 18px; height: 18px; transition: transform .35s var(--kxs-ease); }
.kxs-row:hover .kxs-row-act svg { transform: translateX(4px); }
@media (max-width: 420px) {
  .kxs-row { gap: 12px; padding: 12px 14px; }
  .kxs-row-act span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* --------------------------------------------- 5. providers (people) --- */

.kxs-person { padding: 0; overflow: hidden; }
.kxs-person-photo {
  display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--kx-tint); flex: none;
}
.kxs-person-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--kxs-face, 15%);
  transition: transform .8s var(--kxs-ease);
}
.kxs-person:hover .kxs-person-photo img { transform: scale(1.03); }
.kxs-person-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 18px 20px 20px; }
.kxs-person-name {
  font-family: var(--kx-font-display); font-size: 20px; font-weight: 600; line-height: 1.25;
  letter-spacing: -.005em; color: var(--kx-heading);
}
.kxs-person-cred { font-weight: 600; white-space: nowrap; }
.kxs-person-role { font-size: 16px; line-height: 1.45; }
.kxs-person-meta { display: flex; align-items: flex-start; gap: 7px; margin-top: 4px; font-size: 15px; font-weight: 500; line-height: 1.45; }
.kxs-person-meta svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--kx-brand); }
.kxs-person .kxs-more { padding-top: 14px; }
/* One column on phones: portrait beside the words so a long roster stays scannable. */
@media (max-width: 520px) {
  .kxs-grid.is-4 > .kxs-person { flex-direction: row; }
  .kxs-grid.is-4 > .kxs-person .kxs-person-photo { width: 116px; align-self: stretch; aspect-ratio: auto; min-height: 145px; }
  .kxs-grid.is-4 > .kxs-person .kxs-person-body { padding: 14px 16px 16px; }
  .kxs-grid.is-4 > .kxs-person .kxs-person-name { font-size: 19px; }
  .kxs-grid.is-4 > .kxs-person .kxs-more { padding-top: 8px; }
}

/* ------------------------------------------------- 6. places (offices) --- */

.kxs-place { padding: 0; overflow: hidden; }
.kxs-place-photo { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--kx-tint); flex: none; }
.kxs-place-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--kxs-focus, 50% 50%); transition: transform .8s var(--kxs-ease); }
.kxs-place:hover .kxs-place-photo img { transform: scale(1.03); }
.kxs-place-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 22px 24px 24px; }
.kxs-place.is-center .kxs-place-body { align-items: center; text-align: center; }
.kxs-place-name {
  margin: 0; font-family: var(--kx-font-display); font-size: 21px; font-weight: 600; line-height: 1.25;
  letter-spacing: -.01em; color: var(--kx-heading);
}
.kxs-place-name a { color: inherit; text-decoration: none; display: inline-block; padding: 2px 0; }
.kxs-place-name a:hover { color: var(--kx-brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.kxs-place-sub { margin: 0; font-size: 16px; font-weight: 600; }
.kxs-place address { font-style: normal; line-height: 1.5; }
.kxs-place-lines { margin: 0; display: grid; gap: 2px; line-height: 1.5; }
.kxs-place-lines a { color: var(--kx-brand); font-weight: 700; text-decoration: none; display: inline-block; padding: 2px 0; }
.kxs-place-lines a:hover { text-decoration: underline; }
.kxs-place .kx-btn { margin-top: 14px; }
.kxs-place .kxs-links { padding-top: 10px; }

/* Photos and a text-beside-photo split. */
.kxs-photo { margin: 0; border-radius: var(--kx-radius); overflow: hidden; border: 1px solid var(--kx-card-line); background: var(--kx-tint); }
.kxs-photo img { display: block; width: 100%; height: 100%; aspect-ratio: var(--kxs-ratio, 3 / 2); object-fit: cover; object-position: var(--kxs-focus, 50% 50%); }
.kxs-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px 72px; align-items: start; }
.kxs-split > .kxs-photo { position: sticky; top: calc(var(--kx-h-small, 66px) + 32px); --kxs-ratio: 4 / 5; }
@media (max-width: 860px) {
  .kxs-split { grid-template-columns: minmax(0, 1fr); }
  .kxs-split > .kxs-photo { position: static; --kxs-ratio: 3 / 2; }
}

/* ---------------------------------------------- photo feature panels --- */
/* The build's own photo as a rounded panel inside the page width, a veil only
   as dark as white text needs, their words centred on it. */
.kxs-feature {
  position: relative; isolation: isolate; overflow: hidden; border-radius: calc(var(--kx-radius) + 10px);
  padding: clamp(56px, 7.5vw, 104px) clamp(22px, 6vw, 80px); text-align: center; color: #ffffff;
  background-color: #141414; background-size: cover; background-position: var(--kxs-pos, 50% 50%);
}
.kxs-feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--kxs-veil, rgba(10, 10, 10, .6));
}
.kxs-feature h2 {
  margin: 0 auto; max-width: 22ch; color: #ffffff; font-family: var(--kx-font-display);
  font-weight: 700; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance;
}
.kxs-feature p { margin: 18px auto 0; max-width: 62ch; color: #ffffff; font-size: clamp(18px, 1.5vw, 20px); font-weight: 500; line-height: 1.6; }
.kxs-feature .kxs-actions { justify-content: center; margin-top: 30px; }
.kxs-feature .kx-btn { min-height: 56px; padding-inline: 30px; font-size: 16.5px; }

/* --------------------------------------------------------- 8. footer --- */

.kxf {
  --kxf-bg: var(--kx-tint); --kxf-ink: var(--kx-text); --kxf-line: color-mix(in srgb, var(--kxf-ink) 16%, transparent);
  position: relative; background: var(--kxf-bg); color: var(--kxf-ink);
  padding: clamp(56px, 7vw, 88px) 0 0; font-size: 16px; line-height: 1.55;
}
.kxf.is-dark { --kxf-bg: var(--kx-foot-dark); --kxf-ink: #ffffff; --kxf-line: rgba(255, 255, 255, .2); }
.kxf a { color: inherit; text-decoration: none; }
.kxf a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kxf .kx-btn:hover { text-decoration: none; }
.kxf .kx-btn-light, .kxf .kx-btn-light:hover { color: var(--kx-brand); }
.kxf .kx-btn-brand { color: var(--kx-on-brand); }
.kxf-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); gap: 48px 64px; }
.kxf-logo { display: inline-block; }
.kxf-logo img { display: block; width: 220px; max-width: 100%; height: auto; }
.kxf-brand p { margin: 18px 0 0; max-width: 36ch; }
.kxf-brand .kxs-actions { margin-top: 24px; }
.kxf.is-dark .kx-btn-line { color: #ffffff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.kxf.is-dark .kx-btn-line:hover { color: #ffffff; box-shadow: inset 0 0 0 1.5px #ffffff; }
.kxf-util { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 20px 0 0; padding: 0; font-weight: 600; }
.kxf-util a, .kxf-list a, .kxf-office a { display: inline-block; padding: 4px 0; }
.kxf-h {
  margin: 0 0 14px; font-family: var(--kx-font); font-size: 14px; font-weight: 700; line-height: 1.4;
  letter-spacing: .08em; text-transform: uppercase; color: inherit;
}
.kxf-offices { display: grid; gap: 36px; }
.kxf-office-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; list-style: none; margin: 0; padding: 0; }
.kxf-office { font-size: 15.5px; line-height: 1.5; }
.kxf-office strong { display: block; font-size: 16px; font-weight: 700; }
.kxf-office strong a { padding: 2px 0; }
.kxf-rule { height: 1px; border: 0; margin: 48px 0; background: var(--kxf-line); }
.kxf-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px 40px; }
.kxf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.kxf-list a { line-height: 1.4; }
.kxf-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  margin-top: 48px; padding: 22px 0 28px; font-size: 15px; font-weight: 500;
  border-top: 0; position: relative;
}
.kxf-base::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--kxf-line); }
.kxf-base p { margin: 0; }
@media (max-width: 1020px) {
  .kxf-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .kxf-office-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kxf-rule { margin: 36px 0; }
  .kxf-base { margin-top: 36px; padding-bottom: 104px; }   /* clear of the floating assistant button */
}
@media (max-width: 480px) {
  .kxf-office-grid { grid-template-columns: minmax(0, 1fr); }
  .kxf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
}
@media (max-width: 340px) { .kxf-cols { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------- 3. scroll-in reveal --- */
/* The hidden state exists only once kx-sections.js adds .kxs-r, and only to
   things below the first screen; the script reveals everything on load + 2 s
   regardless. No JS, or reduced motion: nothing is ever hidden. */
.kxs-r { opacity: 0; transform: translate3d(0, 15px, 0); filter: blur(7px); }
.kxs-r.is-in {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity .85s var(--kxs-ease), transform .85s var(--kxs-ease), filter .85s var(--kxs-ease);
  transition-delay: calc(var(--kxs-i, 0) * 80ms);
}

/* ---------------------------------------------------------- responsive --- */

@media (max-width: 860px) {
  .kxs-hero { padding: 32px 0 52px; }
  .kxs-hero.has-media .kxs-hero-in { grid-template-columns: minmax(0, 1fr); }
  .kxs-hero-media { aspect-ratio: 16 / 10; max-height: 320px; }
  .kxs-hero-media.is-portrait { aspect-ratio: 4 / 5; max-width: 260px; max-height: none; justify-self: start; order: -1; }
  .kxs-head { margin-bottom: 32px; }
}
@media (max-width: 560px) {
  .kxs-hero-title { font-size: clamp(32px, 9vw, 42px); }
  .kxs-card { padding: 24px 22px; }
  .kxs-card.is-media, .kxs-person, .kxs-place { padding: 0; }
  .kxs-place-body { padding: 20px 20px 22px; }
  .kxs-feature { border-radius: var(--kx-radius); }
  .kxs-actions > .kx-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .kxs-r, .kxs-r.is-in { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .kxs-hero-title .w, .kxs-hero-title, .kxs-hero-in > div > *, .kxs-hero-media { animation: none !important; opacity: 1; filter: none; transform: none; }
  .kxs-card, .kxs-row, .kxs-link svg, .kxs-more svg, .kxs-person-photo img, .kxs-place-photo img, .kx-btn { transition: none !important; }
  .kxs-person:hover .kxs-person-photo img, .kxs-place:hover .kxs-place-photo img { transform: none; }
}

@media print {
  .kxs-r { opacity: 1 !important; transform: none !important; filter: none !important; }
  .kxs-tint::before, .kxs-hero::before { display: none; }
}
