/* Stylesheet entry point. The build inlines these imports, in this order, into one file. */
/*
 * Design tokens. Components reference these semantic names only, never raw values.
 * Breakpoints (CSS cannot use variables in media queries): 1080px tablet, 720px mobile.
 */
:root {
  /* Surfaces & text */
  --background: oklch(0.995 0.001 300);
  --foreground: oklch(0.24 0.026 320);
  --muted: oklch(0.975 0.004 320);
  --muted-foreground: oklch(0.47 0.016 320);
  --secondary: oklch(0.96 0.011 320);
  --accent: oklch(0.94 0.03 185);
  --accent-foreground: oklch(0.37 0.067 190);
  --border: oklch(0.9 0.007 320);
  --input: oklch(0.82 0.01 320);
  --ring: oklch(0.58 0.09 185);

  /* Brand */
  --primary: oklch(0.36 0.095 325);
  --primary-hover: oklch(0.31 0.09 325);
  --primary-foreground: oklch(0.99 0.003 300);
  --brand-deep: oklch(0.22 0.06 325);
  --brand-muted: oklch(0.84 0.018 325);
  --on-brand: oklch(1 0 0);
  --line-on-brand: color-mix(in oklch, var(--on-brand) 18%, transparent);
  --teal: oklch(0.47 0.083 189);
  --teal-bright: oklch(0.82 0.116 185);
  /* Indicator direction (Signals) */
  --signal-up: var(--teal);
  --signal-down: oklch(0.52 0.14 35);
  --signal-flat: var(--muted-foreground);
  /* Draft and preview notices */
  --notice: oklch(0.93 0.08 85);
  --notice-foreground: oklch(0.38 0.08 70);
  /* Behind client logos, whose files have white backgrounds */
  --logo-surface: oklch(1 0 0);

  /* Effects */
  --hero-shade: linear-gradient(90deg, oklch(0.17 0.05 325 / 96%) 0%, oklch(0.2 0.055 325 / 86%) 48%, oklch(0.2 0.04 325 / 45%) 100%);
  --hero-shade-mobile: linear-gradient(180deg, oklch(0.17 0.05 325 / 88%) 0%, oklch(0.18 0.05 325 / 96%) 100%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 5%);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%);
  --shadow-card: 0 12px 32px oklch(0.25 0.04 325 / 10%);
  --shadow-menu: 0 16px 48px oklch(0.2 0.02 325 / 14%);

  /* Shape */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  /* Type */
  --font-sans: 'Manrope', system-ui, sans-serif;
  --font-display: 'Source Serif 4', Georgia, serif;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 21px;
  --display-sm: 26px;
  --display-md: 34px;
  --display-lg: 44px;
  --display-xl: 60px;

  /* Layout */
  --content-width: 1240px;
  --gutter: 48px;
  --header-height: 76px;
  --section-space: 96px;
}

/* The site supports both schemes; browsers then leave it alone instead of darkening it themselves. */
:root { color-scheme: light dark; }

/* Dark theme: same semantic names, values tuned for contrast on a deep plum background. */
@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.17 0.018 320);
    --foreground: oklch(0.95 0.006 320);
    --muted: oklch(0.21 0.02 320);
    --muted-foreground: oklch(0.75 0.014 320);
    --secondary: oklch(0.23 0.028 320);
    --accent: oklch(0.3 0.05 185);
    --accent-foreground: oklch(0.9 0.08 185);
    --border: oklch(0.32 0.02 320);
    --input: oklch(0.45 0.02 320);
    --ring: oklch(0.75 0.11 185);

    /* Brand purple lightens so text and buttons stay readable; buttons take dark text. */
    --primary: oklch(0.78 0.1 320);
    --primary-hover: oklch(0.84 0.08 320);
    --primary-foreground: oklch(0.2 0.05 325);
    --brand-deep: oklch(0.23 0.06 325);
    --teal: oklch(0.8 0.11 185);
    --signal-down: oklch(0.74 0.14 35);
    --notice: oklch(0.36 0.07 80);
    --notice-foreground: oklch(0.93 0.07 85);

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 30%);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 40%), 0 1px 2px -1px rgb(0 0 0 / 40%);
    --shadow-card: 0 12px 32px rgb(0 0 0 / 35%);
    --shadow-menu: 0 16px 48px rgb(0 0 0 / 50%);
  }
}

@media (max-width: 1080px) {
  :root { --gutter: 32px; --display-xl: 50px; --display-lg: 38px; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --header-height: 64px; --section-space: 64px; --display-xl: 38px; --display-lg: 31px; --display-md: 28px; --display-sm: 23px; }
}

/* Reset and element defaults. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
[hidden] { display: none !important; }

html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body { background-color: var(--background); color: var(--foreground); font-family: var(--font-sans); font-size: var(--text-base); -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; letter-spacing: 0; }
a { color: inherit; text-decoration: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; background: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; }
table { border-collapse: collapse; }
fieldset { min-width: 0; }
::selection { background: var(--teal-bright); color: var(--brand-deep); }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 50; padding: 12px 16px; background: var(--primary); color: var(--primary-foreground); border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 700; }
.skip-link:focus { top: 16px; }

/* Icons: <svg class="icon"><use href="/assets/icons.svg#name"/></svg>, rendered by the `icon` template helper. */
.icon { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--xxs { width: 12px; height: 12px; }
.icon--xs { width: 14px; height: 14px; }
.icon--sm { width: 16px; height: 16px; }
.icon--md { width: 22px; height: 22px; stroke-width: 1.75; }
.icon--lg { width: 28px; height: 28px; stroke-width: 1.6; }

/* Hidden visually but still read by screen readers (e.g. form labels shown as placeholders). */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Shared button component: .btn + one variant + optional size. Works on <a> and <button>. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 10px 18px; white-space: nowrap;
  border-radius: var(--radius-sm); font-size: var(--text-sm); line-height: 20px; font-weight: 700;
  cursor: pointer; transition: color 150ms, background-color 150ms, border-color 150ms, box-shadow 150ms;
}
.btn:disabled { pointer-events: none; opacity: 0.5; }
.btn .icon { pointer-events: none; flex-shrink: 0; }
.btn { max-width: 100%; }

/* Variants */
.btn--primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--hero { background: var(--teal-bright); color: var(--brand-deep); }
.btn--hero:hover { background: color-mix(in oklch, var(--teal-bright) 85%, var(--on-brand)); }
.btn--hero-outline { border: 1px solid color-mix(in oklch, var(--on-brand) 55%, transparent); color: var(--on-brand); }
.btn--hero-outline:hover { background: color-mix(in oklch, var(--on-brand) 10%, transparent); }
.btn--outline { border: 1px solid var(--input); background: var(--background); color: var(--foreground); box-shadow: var(--shadow-sm); }
.btn--outline:hover, .btn--ghost:hover { background: var(--accent); color: var(--accent-foreground); border-color: var(--accent); }
.btn--nav { min-height: 0; padding: 0; color: var(--foreground); font-weight: 600; }
.btn--nav:hover { color: var(--teal); }
.btn--link { min-height: 0; padding: 0; color: var(--primary); text-underline-offset: 4px; }
.btn--link:hover { text-decoration: underline; }

/* Sizes */
.btn--sm { min-height: 34px; padding: 6px 12px; font-size: var(--text-xs); }
.btn--lg { min-height: 50px; padding: 13px 24px; }
.btn--icon { width: 42px; padding: 0; }
.btn--spread { justify-content: space-between; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Touch screens: text-style links get a comfortable tap height, and long labels wrap instead of overflowing. */
@media (max-width: 1080px) {
  .btn--link { min-height: 36px; }
}

@media (max-width: 720px) {
  .btn { white-space: normal; text-align: center; }
}

/* Page scaffolding, section variants and shared typography. */
.wrap { max-width: var(--content-width); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-space); }
.section--tint { background: var(--muted); }
.section--dark { background: var(--brand-deep); color: var(--on-brand); }
.section--narrow .wrap { max-width: calc(820px + 2 * var(--gutter)); }

.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.eyebrow { font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.eyebrow--bright { color: var(--teal-bright); }
.eyebrow--muted { color: var(--muted-foreground); }
.section-title { font-family: var(--font-display); font-size: var(--display-md); line-height: 1.18; font-weight: 600; max-width: 30ch; }
.eyebrow + .section-title, .eyebrow + h1 { margin-top: 14px; }
.lead { font-size: var(--text-xl); line-height: 1.55; color: var(--foreground); }
.body-copy { font-size: var(--text-base); line-height: 1.75; color: var(--muted-foreground); }
.section--dark .body-copy { color: var(--brand-muted); }
.lead + .lead, .lead + .body-copy, .body-copy + .body-copy, .section-title + .lead, .section-title + .body-copy { margin-top: 16px; }
.fine-print { font-size: 13px; line-height: 1.65; color: var(--muted-foreground); max-width: 80ch; }
.fine-print--page { padding-block: 32px; border-top: 1px solid var(--border); }

.section-head { margin-bottom: 44px; }
.section-head.split { align-items: end; }
.section-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }
.section-foot .fine-print { flex: 1 1 320px; }
.section-action { margin-top: 28px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.split--media { align-items: center; }

/* Interior page hero */
.page-hero { padding-block: 72px 80px; background: var(--secondary); }
.page-hero .display { font-size: var(--display-lg); line-height: 1.12; max-width: 24ch; }
.page-hero .lead { margin-top: 22px; max-width: 46ch; }
.page-hero .body-copy { margin-top: 14px; max-width: 62ch; }
.page-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--muted-foreground); margin-bottom: 28px; }
.breadcrumbs a:hover { color: var(--primary); }

/* Numbered process timeline */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; counter-reset: step; }
.process__step { position: relative; padding-top: 22px; border-top: 2px solid var(--border); }
.process__number { font-family: var(--font-display); font-size: var(--display-sm); font-weight: 600; color: var(--teal); }
.process__step h3 { font-size: var(--text-lg); font-weight: 700; margin-top: 8px; }
.process__step p { font-size: var(--text-base); line-height: 1.65; color: var(--muted-foreground); margin-top: 8px; }

/* Checklists */
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; font-size: var(--text-lg); line-height: 1.5; }
.checklist .icon { color: var(--teal); margin-top: 4px; }
.checklist--compact li { font-size: var(--text-base); }

@media (max-width: 1080px) {
  .breadcrumbs a { padding-block: 8px; }
  .split { gap: 40px; }
  .page-hero__inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .page-hero { padding-block: 44px 52px; }
  .lead { font-size: var(--text-lg); }
  .section-head { margin-bottom: 32px; }
  .checklist li { font-size: var(--text-base); }
}

/* Site header, brand mark, solutions dropdown and mobile panel. */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in oklch, var(--background) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 30px; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { width: auto; height: 42px; }
.site-footer .brand-logo { height: 46px; }

.desktop-nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 600; }
.desktop-nav .btn--nav { font-size: inherit; gap: 4px; }
.nav-item { transition: color 150ms; }
.nav-item:hover, .nav-item[aria-current='page'], .desktop-nav .btn--nav.is-current { color: var(--teal); }

.nav-dropdown { position: relative; }
/* Padding (not a gap) separates the panel from the trigger, so the pointer stays inside the dropdown. */
.nav-dropdown__panel { position: absolute; top: 100%; left: -24px; padding-top: 22px; z-index: 1; }
.solutions-menu { width: 400px; padding: 10px; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-menu); }
.solutions-menu a { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: var(--radius-sm); }
.solutions-menu a:hover, .solutions-menu a[aria-current='page'] { background: var(--muted); }
.solutions-menu strong { display: block; font-size: var(--text-sm); color: var(--foreground); }
.solutions-menu small { display: block; font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--muted-foreground); margin-top: 2px; }
.solutions-menu__icon { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--secondary); color: var(--primary); }
.solutions-menu__links { display: grid; margin-top: 6px; border-top: 1px solid var(--border); }
.solutions-menu .solutions-menu__all { align-items: center; justify-content: space-between; border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-size: var(--text-sm); color: var(--primary); }

.mobile-menu, .mobile-panel { display: none; }
.mobile-menu__close { display: none; }
[aria-expanded='true'] > .mobile-menu__open { display: none; }
[aria-expanded='true'] > .mobile-menu__close { display: block; }

@media (max-width: 1080px) {
  .desktop-nav { gap: 22px; font-size: var(--text-sm); }
}

@media (max-width: 860px) {
  .brand-logo { height: 34px; }
  .desktop-nav, .header-cta { display: none; }
  .mobile-menu { display: flex; gap: 8px; align-items: center; }
  .mobile-panel { border-top: 1px solid var(--border); padding: 8px var(--gutter) 20px; display: flex; flex-direction: column; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; }
  .mobile-panel a { padding-block: 12px; font-size: var(--text-base); font-weight: 600; border-bottom: 1px solid var(--border); }
  .mobile-panel .mobile-panel__sub { padding-left: 16px; font-weight: 500; color: var(--muted-foreground); }
}

/* Closing CTA band and site footer. */
.cta-band { background: var(--brand-deep); color: var(--on-brand); padding-block: 80px; }
.cta-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.cta-inner h2 { font-size: var(--display-lg); line-height: 1.15; margin-top: 14px; max-width: 18ch; }
.cta-inner p { color: var(--brand-muted); font-size: var(--text-lg); line-height: 1.6; margin-top: 14px; max-width: 60ch; }
.cta-inner p + p { margin-top: 6px; }
.cta-inner .cta-tagline { color: var(--teal-bright); font-weight: 700; margin-top: 20px; }

.site-footer { padding: 64px 0 28px; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { font-size: var(--text-sm); color: var(--muted-foreground); line-height: 1.7; margin-top: 18px; max-width: 30ch; }
.footer-heading { font-size: var(--text-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; font-size: var(--text-sm); color: var(--muted-foreground); }
.footer-links a:hover { color: var(--primary); }
.footer-social { display: flex; align-items: center; gap: 8px; }
.footer-newsletter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; margin-bottom: 28px; padding: 24px 28px; border-radius: var(--radius-lg); background: var(--secondary); }
.footer-newsletter .footer-heading { margin-bottom: 6px; }
.footer-newsletter p { font-size: var(--text-sm); line-height: 1.6; color: var(--muted-foreground); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding-top: 24px; color: var(--muted-foreground); font-size: 13px; }
.footer-bottom__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.footer-bottom__links a, .footer-bottom__button { color: inherit; font-size: inherit; font-weight: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom__links a:hover, .footer-bottom__button:hover { color: var(--primary); }

/* Analytics consent banner (partials/cookie-banner.html), pinned to the bottom of the viewport until the visitor chooses. */
.cookie-banner { position: fixed; inset: auto 0 0; z-index: 45; padding-block: 20px; border-top: 1px solid var(--border); background: var(--background); box-shadow: var(--shadow-menu); }
.cookie-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 40px; }
.cookie-banner__title { font-size: var(--text-base); font-weight: 800; }
.cookie-banner__text p { margin-top: 4px; max-width: 70ch; font-size: var(--text-sm); line-height: 1.6; color: var(--muted-foreground); }
.cookie-banner__text a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }

@media (max-width: 1080px) {
  /* Comfortable tap targets; the extra padding replaces most of the gap. */
  .footer-links { gap: 2px; }
  .footer-links a { padding-block: 8px; }
}

@media (max-width: 860px) {
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  /* Contact details and social icons need the full width on small screens. */
  .footer-main > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions .btn { flex: 1 1 200px; }
}

@media (max-width: 720px) {
  .cta-band { padding-block: 60px; }
  .cta-inner p { font-size: var(--text-base); }
}

/* Homepage: hero, stats, challenges, advantage band, industries; plus About page media. */
.home-hero { position: relative; overflow: hidden; background: var(--brand-deep); color: var(--on-brand); }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center 55%; }
.hero-shade { background: var(--hero-shade); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: end; padding-block: 88px 56px; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; }
.hero-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hero-title { font-size: var(--display-xl); line-height: 1.06; margin-top: 22px; max-width: 19ch; }
.hero-title .highlight { color: var(--teal-bright); }
.hero-copy { max-width: 54ch; font-size: var(--text-lg); line-height: 1.7; color: var(--brand-muted); margin-top: 26px; }
.home-hero .hero-actions { margin-top: 34px; }

.hero-questions { padding: 28px; border: 1px solid var(--line-on-brand); border-radius: var(--radius-lg); background: color-mix(in oklch, var(--brand-deep) 55%, transparent); backdrop-filter: blur(6px); }
.hero-questions p { font-size: var(--text-base); line-height: 1.6; color: var(--brand-muted); }
.hero-questions ul { margin-top: 18px; display: grid; gap: 4px; }
.hero-questions li { padding-block: 12px; border-top: 1px solid var(--line-on-brand); font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.35; }

.hero-stats { position: relative; padding-bottom: 48px; }
.stat-bar { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-on-brand); }
.stat { display: flex; flex-direction: column-reverse; gap: 4px; padding: 22px 24px 0 0; }
.stat-number { font-family: var(--font-display); font-size: var(--display-md); font-weight: 600; line-height: 1.1; }
.stat-label { font-size: var(--text-sm); color: var(--brand-muted); }
.home-hero .stat-number { color: var(--on-brand); }
.about-stats { padding-block: 40px; }
.about-stats .stat-bar { border-top-color: var(--border); }
.about-stats .stat-number { color: var(--primary); }
.about-stats .stat-label { color: var(--muted-foreground); }

/* Challenge cards: the visitor's question first, the matching solution second. */
.challenge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.challenge-card { display: flex; flex-direction: column; padding: 28px; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 200ms, box-shadow 200ms, transform 200ms; }
.challenge-card:hover { border-color: var(--teal); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.challenge-card__quote { font-family: var(--font-display); font-size: var(--display-sm); line-height: 1.25; font-weight: 500; }
.challenge-card__text { margin-top: 14px; font-size: var(--text-base); line-height: 1.65; color: var(--muted-foreground); }
.challenge-card__answer { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--border); }
.challenge-card__text + .challenge-card__answer { margin-top: 24px; }
.challenge-card__tagline { margin-block: 6px 14px; font-size: var(--text-lg); font-weight: 700; }

/* The Kasi advantage */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.pillar { padding-top: 24px; border-top: 1px solid var(--line-on-brand); }
.pillar .icon { color: var(--teal-bright); }
.pillar h3 { margin-top: 16px; font-size: var(--text-lg); font-weight: 700; }
.pillar p { margin-top: 8px; font-size: var(--text-base); line-height: 1.6; color: var(--brand-muted); }
.formula { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding: 22px 26px; border: 1px solid var(--line-on-brand); border-radius: var(--radius-lg); }
.formula__terms { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: var(--text-lg); font-weight: 600; }
.formula__op { color: var(--teal-bright); }
.formula__term--result { padding: 6px 14px; border-radius: 999px; background: var(--teal-bright); color: var(--brand-deep); font-weight: 800; }

/* Industries */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.industry-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 200ms; }
.industry-card:hover { border-color: var(--teal); }
.industry-card__head { display: flex; align-items: center; gap: 12px; color: var(--primary); }
.industry-card h3 { font-size: var(--text-lg); font-weight: 700; color: var(--foreground); }
.industry-card p { font-size: var(--text-base); line-height: 1.6; color: var(--muted-foreground); font-style: italic; }
.industry-card--photo { padding-top: 0; overflow: hidden; }
.industry-card__image { width: calc(100% + 52px); max-width: none; margin-inline: -26px; aspect-ratio: 5 / 3; object-fit: cover; }
.industry-section__image { width: 100%; margin-bottom: 24px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.industry-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: var(--text-sm); font-weight: 700; color: var(--primary); }

/* Institutional credibility */
.channel-panel { padding: 30px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--muted); }
.channel-panel ul { margin-block: 18px 22px; display: grid; gap: 12px; }
.channel-panel li { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: var(--display-sm); font-weight: 600; }
.channel-panel .icon { color: var(--teal); }

.about-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); }

@media (max-width: 1080px) {
  /* Small laptops and landscape tablets keep the questions beside the headline. */
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 32px; padding-top: 64px; }
  .hero-questions li { font-size: var(--text-lg); }
  .challenge-grid, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-questions { max-width: 560px; }
}

@media (max-width: 720px) {
  .hero-shade { background: var(--hero-shade-mobile); }
  .hero-image { object-position: 66% center; }
  .hero-grid { padding-block: 48px 36px; }
  .hero-copy { font-size: var(--text-base); }
  .hero-questions { padding: 20px; }
  .hero-questions li { font-size: var(--text-lg); }
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: var(--display-sm); }
  .challenge-grid, .industry-grid, .pillars { grid-template-columns: 1fr; }
  .challenge-card, .industry-card { padding: 22px; }
  .industry-card--photo { padding-top: 0; }
  .industry-card__image { width: calc(100% + 44px); margin-inline: -22px; }
}

/* Industries page */
.jump-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.jump-links a { padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--background); font-size: var(--text-sm); font-weight: 600; }
.jump-links a:hover { border-color: var(--teal); color: var(--teal); }
.industry-section--ruled { border-top: 1px solid var(--border); }
.industry-section__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: var(--radius); background: var(--secondary); color: var(--primary); }

/* Client logos (partials/clients.html) */
.client-groups { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.client-group { grid-column: span 2; padding: 22px 24px 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); }
/* Desktop: the two largest groups get more room, as on the client deck; seven groups fill 3 + 3, 2 + 2 + 2, then 3 + 3. */
@media (min-width: 1081px) {
  .client-group:nth-child(1), .client-group:nth-child(2) { grid-column: span 3; }
  .client-group:nth-child(6):nth-last-child(2), .client-group:nth-child(7):last-child { grid-column: span 3; }
}
.client-group__label { font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); }
.client-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 18px; }
.client-logos li { padding: 6px 10px; border-radius: var(--radius-sm); background: var(--logo-surface); }
.client-logos img { width: auto; height: 38px; max-width: 150px; object-fit: contain; }

@media (max-width: 1080px) {
  .client-groups { grid-template-columns: 1fr 1fr; }
  .client-group { grid-column: auto; }
}

@media (max-width: 720px) {
  .client-groups { grid-template-columns: 1fr; }
  .client-logos { gap: 12px 20px; }
  .client-logos img { height: 32px; max-width: 128px; }
}

/* Solutions list, solution page blocks (glance card, tiers, cards, flow, chips, callout), access list. */
.solution-list { display: grid; border-top: 1px solid var(--border); }
.solution-row { display: grid; grid-template-columns: 250px minmax(0, 1fr) 260px; gap: 32px; align-items: center; padding-block: 28px; border-bottom: 1px solid var(--border); }
.solution-row__name { display: flex; align-items: center; gap: 14px; }
.solution-row__name h3 { font-size: var(--text-xl); font-weight: 800; }
.solution-row__icon, .glance__icon, .icon-card__icon { display: grid; place-items: center; flex-shrink: 0; border-radius: var(--radius); background: var(--secondary); color: var(--primary); }
.solution-row__icon { width: 44px; height: 44px; }
.solution-row__headline { font-family: var(--font-display); font-size: var(--display-sm); line-height: 1.25; font-weight: 500; }
.solution-row__summary { margin-top: 8px; font-size: var(--text-base); line-height: 1.65; color: var(--muted-foreground); }
.solution-row__buy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.solution-row__price { font-size: var(--text-base); font-weight: 800; color: var(--primary); }

/* At-a-glance card in the solution hero */
.glance { padding: 28px; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.glance__icon { width: 52px; height: 52px; }
.glance__price { margin-top: 18px; font-family: var(--font-display); font-size: var(--display-sm); font-weight: 600; line-height: 1.2; color: var(--primary); }
.glance ul { margin-top: 18px; }
.glance a { display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; border-top: 1px solid var(--border); font-size: var(--text-sm); }
.glance a span:first-child { font-weight: 700; }
.glance a span:last-child { color: var(--muted-foreground); text-align: right; }
.glance a:hover span:first-child { color: var(--teal); }

/* Tier cards */
.section-title + .tier-grid, .section-title + .icon-card-grid, .section-title + .flow, .section-title + .chips, .section-title + .process, .section-title + .access-list { margin-top: 40px; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.tier-grid:has(> .tier-card:only-child) { grid-template-columns: minmax(0, 680px); }
.tier-card { display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); scroll-margin-top: calc(var(--header-height) + 24px); }
.tier-card:target { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in oklch, var(--teal) 25%, transparent); }
.tier-card h3 { font-family: var(--font-display); font-size: var(--display-sm); font-weight: 600; }
.tier-card .eyebrow { margin-top: 8px; }
.tier-card__quote { margin-top: 16px; padding-left: 14px; border-left: 3px solid var(--teal); font-size: var(--text-lg); line-height: 1.5; font-style: italic; }
.tier-card__description { margin-top: 16px; font-size: var(--text-base); line-height: 1.65; }
.tier-card__detail { margin-top: 12px; font-size: var(--text-sm); line-height: 1.6; color: var(--muted-foreground); }
.tier-card__detail strong { color: var(--foreground); }
.tier-card__buy { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; }
.tier-card__price { font-family: var(--font-display); font-size: var(--display-sm); font-weight: 600; color: var(--primary); }
.tier-card__timing { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); font-weight: 600; color: var(--teal); }
.tier-card .btn { margin-top: 8px; }
/* The middle option anchors the range: give it more presence. */
.tier-card:nth-child(2):nth-last-child(2) { border-color: var(--primary); box-shadow: var(--shadow-card); }

/* Icon cards (data assets, applications, research questions) */
.icon-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.icon-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--background); }
.icon-card__icon { width: 44px; height: 44px; margin-bottom: 18px; }
.icon-card h3 { font-size: var(--text-lg); font-weight: 700; line-height: 1.35; }
.icon-card p { margin-top: 8px; font-size: var(--text-base); line-height: 1.6; color: var(--muted-foreground); }
.icon-card .icon-card__quote { font-family: var(--font-display); font-size: var(--text-lg); font-style: italic; color: var(--foreground); }

/* Flow: compact horizontal process */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.flow li { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius); background: var(--background); border: 1px solid var(--border); font-size: var(--text-base); font-weight: 700; line-height: 1.4; }
.flow__number { font-family: var(--font-display); font-size: var(--text-xl); color: var(--teal); }
.flow__tagline { margin-top: 32px; font-family: var(--font-display); font-size: var(--display-sm); font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { padding: 10px 18px; border-radius: 999px; background: var(--background); border: 1px solid var(--border); font-size: var(--text-base); font-weight: 600; }

.callout { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; padding: 44px; border-radius: var(--radius-lg); background: var(--secondary); }
.callout > div:first-child { flex: 1 1 420px; }

/* Ways to work with Kasi (access-list partial) */
.access-list { border-top: 1px solid var(--border); }
.access-list a { display: grid; grid-template-columns: 300px 1fr auto; gap: 24px; align-items: center; padding-block: 22px; border-bottom: 1px solid var(--border); transition: color 150ms; }
.access-list a:hover { color: var(--primary); }
.access-list__name { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: var(--display-sm); font-weight: 600; }
.access-list__name .icon { color: var(--teal); }
.access-list__text { font-size: var(--text-base); line-height: 1.6; color: var(--muted-foreground); }

/* Check lists on dark sections */
.wont-list { display: grid; gap: 18px; }
.wont-list li { display: flex; gap: 14px; font-size: var(--text-xl); line-height: 1.5; }
.wont-list .icon { color: var(--teal-bright); margin-top: 6px; }

@media (max-width: 1080px) {
  .solution-row { grid-template-columns: 220px minmax(0, 1fr); }
  .solution-row__buy { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (max-width: 720px) {
  .solution-row { grid-template-columns: 1fr; gap: 14px; padding-block: 24px; }
  .solution-row__buy { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .tier-card, .callout { padding: 24px; }
  .access-list a { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .access-list__text { grid-column: 1; }
  .wont-list li { font-size: var(--text-lg); }
}

/* Brochure-derived blocks: card intro/outro and notes, tier detail, comparison table */
.section-title + .section-intro { margin-top: 18px; max-width: 60ch; }
.section-intro + .icon-card-grid { margin-top: 32px; }
.section-outro { margin-top: 28px; max-width: 70ch; font-size: var(--text-lg); font-weight: 700; line-height: 1.5; }
.icon-card .eyebrow + h3, .icon-card .eyebrow + .icon-card__quote, .icon-card .eyebrow + p { margin-top: 10px; }
.icon-card .icon-card__note { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--muted); font-size: var(--text-sm); color: var(--foreground); }
.icon-card__note strong { color: var(--teal); }

.tier-card__example { margin-top: 18px; padding: 16px; border-radius: var(--radius); background: var(--secondary); }
.tier-card__example p { margin-top: 8px; font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.45; font-style: italic; }
.tier-card__more { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.tier-card__more summary { cursor: pointer; padding-block: 8px; font-size: var(--text-sm); font-weight: 700; color: var(--primary); }
.tier-card__more ul { display: grid; gap: 8px; margin-block: 14px; }
.tier-card__more li { display: flex; gap: 10px; font-size: var(--text-sm); line-height: 1.5; }
.tier-card__more li .icon { color: var(--teal); margin-top: 3px; }
.tier-card__more p { margin-top: 10px; font-size: var(--text-sm); line-height: 1.6; color: var(--muted-foreground); }
.tier-card__more strong { color: var(--foreground); }

.compare { margin-top: 40px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); }
.compare table { width: 100%; min-width: 720px; text-align: left; }
.compare th, .compare td { padding: 16px 20px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: var(--text-base); line-height: 1.5; }
.compare thead th { background: var(--secondary); }
.compare tbody th { width: 22%; font-size: var(--text-sm); font-weight: 700; color: var(--muted-foreground); }
.compare tr:last-child > * { border-bottom: 0; }
.compare__name { display: block; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; }
.compare__tagline { display: block; margin-top: 2px; font-size: var(--text-sm); font-weight: 600; color: var(--teal); }
.compare__price td { font-family: var(--font-display); font-size: var(--display-sm); font-weight: 600; color: var(--primary); }
.compare:focus-visible { outline: 2px solid var(--ring); }

/* Samples: public previews and material available on request */
.section-title + .sample-grid { margin-top: 40px; }
.sample-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.sample-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); }
.sample-card__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: var(--radius); background: var(--secondary); color: var(--primary); }
.sample-card h3 { font-family: var(--font-display); font-size: var(--display-sm); font-weight: 600; }
.sample-card__format { margin-top: 6px; font-size: var(--text-sm); font-weight: 700; color: var(--teal); }
.sample-card__text { margin-top: 12px; margin-bottom: 24px; font-size: var(--text-base); line-height: 1.6; color: var(--muted-foreground); }
.sample-card .btn { margin-top: auto; }

/* Our Intelligence, How Kasi Works and Industries page blocks, plus shared editorial helpers. */
.statement { margin-top: 24px; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; line-height: 1.45; }
.statement--accent { color: var(--teal); }
.section--dark .statement--accent { color: var(--teal-bright); }
.page-hero .statement { margin-top: 22px; color: var(--primary); }
.subsection-title { margin-block: 56px 24px; font-size: var(--text-xl); font-weight: 800; }
.subsection-title--flush { margin-top: 0; }
.split--spaced { margin-top: 48px; align-items: center; }

/* Notes and callout panels */
.note-panel { margin-top: 48px; padding: 32px; border-radius: var(--radius-lg); background: var(--secondary); }
.note-panel--flush { margin-top: 0; }
.note-panel h3 { font-family: var(--font-display); font-size: var(--display-sm); font-weight: 600; }
.note-panel p { margin-top: 12px; max-width: 80ch; line-height: 1.7; color: var(--muted-foreground); }
.note-panel .note-panel__close { font-weight: 700; color: var(--primary); }
.note-panel .btn { margin-top: 20px; }

/* Intelligence asset figures */
.section-title + .asset-grid { margin-top: 40px; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.asset { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.asset__value { order: -1; font-family: var(--font-display); font-size: var(--display-md); font-weight: 600; line-height: 1.1; color: var(--primary); }
.asset__label { margin-top: 8px; font-weight: 700; }
.asset__text { margin-top: 8px; font-size: var(--text-sm); line-height: 1.6; color: var(--muted-foreground); }

/* Evidence examples (shown once real charts are supplied) */
.evidence-grid { display: grid; gap: 24px; margin-block: 40px; }
.evidence-example { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.evidence-example h3 { margin-block: 10px 20px; font-family: var(--font-display); font-size: var(--display-sm); font-weight: 600; }
.evidence-example figcaption { margin-top: 16px; }

.quality-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.quality-notes > div { padding: 28px; border-radius: var(--radius-lg); background: var(--background); border: 1px solid var(--border); }
.quality-notes h3 { font-family: var(--font-display); font-size: var(--display-sm); font-weight: 600; }
.quality-notes p { margin-top: 12px; line-height: 1.7; color: var(--muted-foreground); }

/* How Kasi Works: engine, approach, examples */
.pillars--three { grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
.formula-note { margin-top: 20px; max-width: 70ch; }
.approach { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--border); }
.approach__step { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; padding-block: 36px; border-bottom: 1px solid var(--border); }
.approach__head { display: flex; gap: 18px; align-items: baseline; }
.approach__head h3 { font-size: var(--text-xl); font-weight: 800; }
.approach__question { margin-top: 6px; font-family: var(--font-display); font-size: var(--text-lg); font-style: italic; color: var(--muted-foreground); }
.approach__body .body-copy + .body-copy { margin-top: 12px; }
.approach__output { margin-top: 18px; padding: 12px 16px; border-left: 3px solid var(--teal); background: var(--muted); font-size: var(--text-base); }
.reframe { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 20px; }
.reframe > div { padding: 18px; border-radius: var(--radius); background: var(--secondary); }
.reframe p { margin-top: 8px; font-family: var(--font-display); font-size: var(--text-lg); font-style: italic; line-height: 1.45; }
.reframe__arrow { color: var(--teal); }
.chips--compact { margin-top: 18px; gap: 8px; }
.chips--compact li { padding: 6px 14px; font-size: var(--text-sm); }
.distinctions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.distinctions > div { padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); }
.distinctions h4 { font-weight: 800; color: var(--primary); }
.distinctions p { margin-top: 6px; font-size: var(--text-sm); line-height: 1.6; color: var(--muted-foreground); }
.example-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.example-card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg); background: var(--background); border: 1px solid var(--border); }
.example-card dl { margin-block: 16px 20px; }
.example-card dt { margin-top: 14px; font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }
.example-card dd { margin-top: 4px; line-height: 1.6; }
.example-card .example-card__question { font-family: var(--font-display); font-size: var(--text-lg); font-style: italic; }
.example-card .btn { margin-top: auto; justify-content: flex-start; white-space: normal; text-align: left; }
.checklist--questions .icon { color: var(--teal); }
.checklist--questions { margin-block: 18px 22px; }

/* Industries */
.scenario-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-block: 28px; max-width: 900px; }
.scenario-list li { padding: 16px 18px; border-radius: var(--radius); background: var(--background); font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.4; }
.industry-section__intro { align-items: end; }
.industry-section__intro:has(.industry-section__image) { align-items: start; }
.question-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.question-group { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); }
.question-group h4 { font-weight: 800; color: var(--primary); }
.question-group ul { margin-top: 12px; display: grid; gap: 10px; }
.question-group li { padding-left: 16px; border-left: 2px solid var(--accent); line-height: 1.5; }
.industry-section__foot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; margin-top: 48px; align-items: start; }
.engagement { padding: 28px; border-radius: var(--radius-lg); background: var(--secondary); }
.engagement blockquote { margin-top: 12px; font-family: var(--font-display); font-size: var(--display-sm); line-height: 1.3; font-weight: 500; }
.engagement p { margin-top: 12px; line-height: 1.65; color: var(--muted-foreground); }
.engagement .engagement__solution { color: var(--foreground); }
.engagement__solution a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.engagement .engagement__note { font-size: var(--text-sm); }
.compare--matrix table { min-width: 560px; }
.compare--matrix td:first-child { font-family: var(--font-display); font-size: var(--text-lg); font-style: italic; }
.compare--matrix a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary); }

@media (max-width: 1080px) {
  .pillars--three, .example-grid, .question-groups, .distinctions { grid-template-columns: 1fr; }
  .approach__step, .industry-section__foot { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 720px) {
  .quality-notes, .scenario-list { grid-template-columns: 1fr; }
  .reframe { grid-template-columns: 1fr; }
  .reframe__arrow { transform: rotate(90deg); justify-self: center; }
  .note-panel { padding: 24px; }
}

/* Signals: monthly indicator readings */
.signal-meta { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: var(--text-sm); font-weight: 700; color: var(--teal); }
.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.signal { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--border); border-top: 3px solid var(--signal-tone, var(--border)); border-radius: var(--radius); background: var(--background); }
.signal--up { --signal-tone: var(--signal-up); }
.signal--down { --signal-tone: var(--signal-down); }
.signal--flat { --signal-tone: var(--signal-flat); }
.signal--pending { border-style: dashed; border-top-width: 1px; background: transparent; }
.signal h3 { font-size: var(--text-lg); font-weight: 800; line-height: 1.35; }
.signal__text { margin-top: 8px; margin-bottom: 20px; font-size: var(--text-base); line-height: 1.6; color: var(--muted-foreground); }
.signal__reading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: auto; }
.signal__value { font-family: var(--font-display); font-size: var(--display-md); font-weight: 600; line-height: 1; color: var(--foreground); }
.signal__status { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--signal-tone); }
.signal__scope { margin-top: 6px; font-size: var(--text-sm); color: var(--muted-foreground); }
.signal--pending .btn { margin-top: auto; justify-content: flex-start; }

/* Kasi Terminal promotion */
.terminal-panel { padding: 32px; border-radius: var(--radius-lg); background: var(--brand-deep); color: var(--on-brand); }
.terminal-panel__intro { display: flex; align-items: center; gap: 16px; }
.terminal-panel__icon { display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0; border-radius: var(--radius); background: var(--line-on-brand); color: var(--teal-bright); }
.terminal-panel__status { font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-bright); }
.terminal-panel h3 { margin-top: 2px; font-family: var(--font-display); font-size: var(--display-sm); font-weight: 600; }
.terminal-panel__text { margin-top: 16px; line-height: 1.65; color: var(--brand-muted); }
.terminal-panel .checklist { margin-block: 20px 24px; }
.terminal-panel .checklist .icon { color: var(--teal-bright); }

/* Full-width variant (DataHub page): checklist beside the introduction */
@media (min-width: 900px) {
  .terminal-section .terminal-panel { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 56px; padding: 44px; }
  .terminal-section .terminal-panel > * { grid-column: 1; }
  .terminal-section .terminal-panel .checklist { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
  .terminal-section .terminal-panel .button-row { margin-top: 24px; }
}

@media (max-width: 1080px) {
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .signal-grid { grid-template-columns: 1fr; }
  .terminal-panel { padding: 24px; }
}

/* Testimonials (partials/testimonials.html) */
.section-title + .testimonial-grid, .section-head + .testimonial-grid { margin-top: 40px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
/* Next to a video card, text cards keep their natural height instead of stretching. */
.testimonial-grid:has(.testimonial--video) { align-items: start; }
.testimonial { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); }
.testimonial__quote p { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.45; }
.testimonial__source { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); font-size: var(--text-sm); line-height: 1.45; color: var(--muted-foreground); }
.testimonial__source > span { display: grid; }
.testimonial__source strong { font-size: var(--text-base); color: var(--foreground); }
.testimonial__logo { width: auto; max-width: 96px; height: 32px; object-fit: contain; }
.testimonial__transcript summary { cursor: pointer; font-size: var(--text-sm); font-weight: 700; color: var(--primary); }
.testimonial__transcript p { margin-top: 10px; font-size: var(--text-sm); line-height: 1.6; color: var(--muted-foreground); }
.industry-testimonials { margin-top: 48px; }
.ask-aside .testimonial-grid { margin-block: 28px; grid-template-columns: 1fr; }
.ask-aside .testimonial__quote p { font-size: var(--text-lg); }

/* Click-to-play video: poster first, player on demand */
.video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 0; border-radius: var(--radius); background: var(--brand-deep); }
.video-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms; }
.video-facade:hover img { transform: scale(1.03); }
.video-facade__play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--teal-bright); color: var(--brand-deep); box-shadow: var(--shadow-card); }
.video-facade__play .icon { margin-left: 3px; fill: currentColor; }
.video-facade__duration { position: absolute; right: 12px; bottom: 12px; padding: 2px 8px; border-radius: var(--radius-sm); background: color-mix(in oklch, var(--brand-deep) 80%, transparent); font-size: var(--text-xs); font-weight: 700; color: var(--on-brand); }
.video-facade:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }

/* Team (About page) */
.team-group + .team-group { margin-top: 56px; }
.team-group .subsection-title { margin-top: 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.team-member { position: relative; display: flex; flex-direction: column; align-items: center; padding: 28px 20px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); text-align: center; }
.team-member img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: var(--secondary); }
.team-member h4 { margin-top: 16px; font-size: var(--text-lg); font-weight: 800; line-height: 1.3; }
.team-member__role { margin-top: 6px; font-size: var(--text-sm); font-weight: 600; line-height: 1.45; color: var(--primary); }
.team-member__focus { margin-top: 4px; font-size: var(--text-sm); line-height: 1.45; color: var(--muted-foreground); }
/* LinkedIn buttons line up at the bottom of each card, whatever the length of the title. */
.team-member p:last-of-type { margin-bottom: 16px; }
.team-member__link { display: grid; place-items: center; width: 36px; height: 36px; margin-top: auto; border: 1px solid var(--border); border-radius: 50%; color: var(--primary); }
.team-member__link:hover { border-color: var(--teal); color: var(--teal); }

/* Insights: listing, article cards and article reading layout. */
.section-head--split { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.section-title + .article-grid { margin-top: 40px; }
.article-card { display: flex; flex-direction: column; }
.article-card__image { display: block; margin-bottom: 18px; overflow: hidden; border-radius: var(--radius); }
.article-card__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 300ms; }
.article-card:hover .article-card__image img { transform: scale(1.03); }
.article-card h3 { margin-top: 8px; font-family: var(--font-display); font-size: var(--display-sm); font-weight: 600; line-height: 1.25; }
.article-card h3 a:hover { color: var(--primary); }
.article-card__summary { margin-top: 10px; font-size: var(--text-base); line-height: 1.6; color: var(--muted-foreground); }
.article-meta { font-size: var(--text-sm); font-weight: 600; color: var(--muted-foreground); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.article-tags li { padding: 4px 12px; border-radius: 999px; background: var(--secondary); font-size: var(--text-xs); font-weight: 700; color: var(--primary); }

.article-lead { display: grid; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--border); }
.article-lead--image { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.article-lead__image { display: block; overflow: hidden; border-radius: var(--radius-lg); }
.article-lead__image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.article-lead__title { margin-top: 10px; font-family: var(--font-display); font-size: var(--display-md); font-weight: 600; line-height: 1.15; }
.article-lead__title a:hover { color: var(--primary); }
.article-lead .article-meta { margin-top: 14px; }
.article-lead .lead { margin-top: 16px; }

/* Article page: a comfortable reading measure */
.article-wrap { max-width: calc(760px + 2 * var(--gutter)); }
.article-title { max-width: none; }
.article-meta--byline { margin-top: 24px; }
.article-meta--byline strong { color: var(--foreground); }
.article-wrap--image { margin-top: 48px; }
.article-image { width: 100%; border-radius: var(--radius-lg); }
.prose { padding-block: 56px 24px; font-size: var(--text-lg); line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-family: var(--font-display); font-size: var(--display-sm); font-weight: 600; line-height: 1.25; }
.prose h3 { margin-top: 1.8em; font-size: var(--text-xl); font-weight: 800; line-height: 1.35; }
.prose h4 { margin-top: 1.6em; font-size: var(--text-lg); font-weight: 800; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { padding-left: 22px; border-left: 3px solid var(--teal); font-family: var(--font-display); font-size: var(--text-xl); font-style: italic; color: var(--foreground); }
.prose figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.prose figcaption { margin-top: 10px; font-size: var(--text-sm); line-height: 1.5; color: var(--muted-foreground); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin-block: 2.2em; }
.prose code { padding: 2px 6px; border-radius: var(--radius-sm); background: var(--muted); font-size: 0.9em; }
.article-footer { padding-bottom: 40px; }
.article-related { display: flex; gap: 20px; margin-top: 36px; padding: 28px; border-radius: var(--radius-lg); background: var(--secondary); }
.article-related__icon { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: var(--radius); background: var(--background); color: var(--primary); }
.article-related h2 { margin-top: 6px; font-family: var(--font-display); font-size: var(--display-sm); font-weight: 600; line-height: 1.25; }
.article-related p:not(.eyebrow) { margin-top: 10px; line-height: 1.6; color: var(--muted-foreground); }
.article-related .button-row { margin-top: 20px; }

@media (max-width: 1080px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .article-lead--image { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-lead__title { font-size: var(--display-sm); }
  .prose { padding-top: 40px; font-size: var(--text-base); }
  .article-related { flex-direction: column; padding: 22px; }
}

/* Local preview only (npm run preview): marks draft and scheduled articles. */
.draft-badge { display: inline-block; margin-bottom: 14px; padding: 3px 10px; border-radius: var(--radius-sm); background: var(--notice); font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--notice-foreground); }
.article-meta .draft-badge { margin: 0 6px 0 0; }

/* Case studies (Industries page, solution pages and case study pages) */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.section-title + .case-grid, .filter-bar + .case-grid { margin-top: 32px; }
.case-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); }
.case-card[hidden] { display: none; }
.case-card .eyebrow { margin-bottom: 8px; }
.case-card h3 { font-family: var(--font-display); font-size: var(--display-sm); font-weight: 600; line-height: 1.25; }
.case-card h3 a:hover { color: var(--primary); }
.case-card__client { margin-top: 6px; font-size: var(--text-sm); font-weight: 700; color: var(--muted-foreground); }
.case-card__facts { display: grid; gap: 14px; margin-block: 20px; }
.case-card__facts dt, .case-facts dt { font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }
.case-card__facts dd { margin-top: 4px; line-height: 1.55; }
.case-card__solution { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; width: 100%; border-top: 1px solid var(--border); font-size: var(--text-sm); font-weight: 700; color: var(--primary); }
.case-card .btn--link { margin-top: 14px; }
.industry-case-studies { margin-top: 48px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filter-bar[hidden] { display: none; }
.filter-chip { padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--background); font-size: var(--text-sm); font-weight: 700; cursor: pointer; }
.filter-chip:hover { border-color: var(--teal); }
.filter-chip[aria-pressed='true'] { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.filter-chip:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.case-facts dl { display: grid; gap: 16px; }
.case-facts dd { margin-top: 4px; line-height: 1.5; }
.case-facts a { display: inline; padding: 0; border: 0; font-size: inherit; color: var(--primary); font-weight: 700; }
.section--compact { padding-block: 56px 0; }
.case-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.case-results li { display: flex; gap: 12px; padding: 18px 20px; border-radius: var(--radius); background: var(--secondary); font-weight: 700; line-height: 1.45; }
.case-results .icon { flex-shrink: 0; margin-top: 3px; color: var(--teal); }
.case-quote { padding-bottom: 16px; }

/* Newsletter sign-up panel (partials/newsletter.html) */
.newsletter-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); }
.newsletter-panel > div { flex: 1 1 280px; }
.newsletter-panel__icon { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: var(--radius); background: var(--secondary); color: var(--primary); }
.newsletter-panel h2 { font-family: var(--font-display); font-size: var(--display-sm); font-weight: 600; line-height: 1.25; }
.newsletter-panel p { margin-top: 6px; line-height: 1.6; color: var(--muted-foreground); }
.article-newsletter { padding-bottom: 72px; }

/* Newsletter sign-up form (partials/newsletter-form.html) */
.newsletter-form { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 340px; max-width: 480px; }
.newsletter-form__label { flex-basis: 100%; font-size: var(--text-sm); font-weight: 700; color: var(--foreground); }
.newsletter-form input { flex: 1 1 220px; min-height: 42px; padding: 10px 14px; border: 1px solid var(--input); border-radius: var(--radius-sm); background: var(--background); font: inherit; font-size: var(--text-base); }
.newsletter-form input:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
.newsletter-form__message { flex-basis: 100%; min-height: 0; font-size: var(--text-sm); font-weight: 700; color: var(--teal); }
.newsletter-form__message:empty { display: none; }
.page-hero .newsletter-form { margin-top: 0; }

/* Ask Kasi page: form fields and email draft preview. */
.ask-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: start; }
.ask-form { display: grid; gap: 36px; }
.ask-form fieldset { display: grid; gap: 22px; }
.ask-form legend { margin-bottom: 18px; font-family: var(--font-display); font-size: var(--display-sm); font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: var(--text-sm); font-weight: 700; }
.field-help { margin-top: -4px; font-size: var(--text-sm); color: var(--muted-foreground); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--background); border: 1px solid var(--input); border-radius: var(--radius-sm); font-size: var(--text-base); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--ring); outline-offset: 0; border-color: var(--ring); }
.field-hint { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-foreground); font-size: var(--text-sm); font-weight: 700; }
.ask-form__submit { display: grid; gap: 12px; }

.ask-aside { position: sticky; top: calc(var(--header-height) + 24px); padding: 32px; border-radius: var(--radius-lg); background: var(--secondary); }
.ask-aside h2 { font-family: var(--font-display); font-size: var(--display-sm); font-weight: 600; }
.ask-aside .body-copy { margin-top: 12px; }
.ask-aside .checklist { margin-block: 20px; }
.ask-aside__tagline { margin-top: 20px; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--primary); }
.ask-aside a { color: var(--primary); font-weight: 700; }

.email-preview { padding: 28px; background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius); }
.email-preview h3 { font-family: var(--font-display); font-size: var(--display-sm); font-weight: 600; }
.email-preview p { font-size: var(--text-base); line-height: 1.7; margin-block: 12px 18px; color: var(--muted-foreground); }

@media (max-width: 1080px) {
  .ask-layout { grid-template-columns: 1fr; gap: 40px; }
  .ask-aside { position: static; }
}

@media (max-width: 720px) {
  .field-row { grid-template-columns: 1fr; }
  .ask-aside { padding: 24px; }
}

/* Contact details (partials/contact-details.html) */
.ask-contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--border); }
.ask-contact .body-copy { margin-top: 14px; }
.contact-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.contact-details__label { margin-bottom: 10px; font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); }
.contact-details a { display: flex; align-items: flex-start; gap: 10px; padding-block: 4px; line-height: 1.55; }
.contact-details a:hover { color: var(--primary); }
.contact-details .icon { flex-shrink: 0; margin-top: 4px; color: var(--teal); }
.contact-details small { margin-left: 4px; font-size: var(--text-sm); color: var(--muted-foreground); }
.contact-details address { font-style: normal; }
.contact-details address + address { margin-top: 10px; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; font-size: var(--text-sm); font-weight: 600; color: var(--primary); text-decoration: none; }
.social-links a:hover { border-color: var(--teal); color: var(--teal); }
.social-links .icon { margin: 0; color: inherit; }
.social-links--footer { margin-top: 4px; gap: 8px; }
.social-links--footer a { min-height: 36px; padding: 0 12px; }

@media (max-width: 1080px) {
  .ask-contact { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .contact-details { grid-template-columns: 1fr; }
}

/* Reduced-motion overrides. Keep this file last. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

