/* Homepage: hero, stats, challenges, proof, 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; 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 { display: block; 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-note { max-width: 54ch; margin-top: 14px; font-size: var(--text-sm); line-height: 1.6; color: var(--brand-muted); }


.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: var(--weight-heading); 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); }
.stat-date { margin-top: 14px; font-size: var(--text-xs); color: var(--brand-muted); }
.about-stats .stat-date { 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; }
/* A last card alone on its row spans the row (desktop, three columns). */
@media (min-width: 1081px) { .challenge-grid > :last-child:nth-child(3n+1) { grid-column: 1 / -1; } }
.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; }
.challenge-grid--compact .challenge-card { gap: 18px; }
.challenge-grid--compact .challenge-card__quote { font-size: var(--text-xl); }
.challenge-card__link { margin-top: auto; align-self: flex-start; }

/* 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%; aspect-ratio: 4 / 3; 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); }

/* Proof (homepage): client logos, testimonials and a one-line institutional note */
.proof-testimonials { margin-top: 48px; }
.proof-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.proof-note .btn { flex-shrink: 0; }

/* 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: var(--weight-heading); }
.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) {
  .hero-grid { padding-top: 64px; }
  .challenge-grid, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

@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); }
  .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 */
/* Industry tabs (scripts/tabs.js): the bar stays in view below the header while a panel is read. */
.industry-tabs__bar { position: sticky; top: var(--header-height); z-index: 30; padding-block: 16px; background: color-mix(in oklch, var(--background) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.tab-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tab { padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--background); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
.tab:hover { border-color: var(--teal); color: var(--teal); }
.tab:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.tab[aria-selected='true'] { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.industry-tabs.is-tabbed .industry-section { border-top: 0; }
.industry-section { scroll-margin-top: calc(var(--header-height) + 72px); }
@media (max-width: 720px) {
  /* Phones: one row of tabs that scrolls sideways instead of several wrapped rows. */
  .tab-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
}
.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): one strip that scrolls continuously. Two identical tracks
   each move by their own width, so the loop has no visible seam. */
.logo-strip { position: relative; }
.logo-strip__viewport { display: flex; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.logo-strip__track { display: flex; flex-shrink: 0; align-items: center; gap: 20px; padding-right: 20px; animation: logo-strip 150s linear infinite; }
.logo-strip__track li { display: grid; place-items: center; flex-shrink: 0; height: 64px; padding: 10px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--logo-surface); }
.logo-strip__track img { width: auto; height: 36px; max-width: 150px; object-fit: contain; }
.logo-strip:hover .logo-strip__track, .logo-strip:focus-within .logo-strip__track, .logo-strip.is-paused .logo-strip__track { animation-play-state: paused; }
.logo-strip__toggle { margin-top: 16px; }
.logo-strip__toggle[aria-pressed='true'] .logo-strip__pause, .logo-strip__toggle[aria-pressed='false'] .logo-strip__play { display: none; }
.logo-strip__toggle > span { display: inline-flex; align-items: center; gap: 6px; }
@keyframes logo-strip { to { transform: translateX(-100%); } }

/* Reduced motion: no animation; the strip scrolls by hand and the duplicate copy is dropped. */
@media (prefers-reduced-motion: reduce) {
  .logo-strip__viewport { overflow-x: auto; mask-image: none; }
  .logo-strip__track { animation: none; }
  .logo-strip__track[aria-hidden='true'] { display: none; }
}

@media (max-width: 720px) {
  .logo-strip__track { gap: 12px; padding-right: 12px; }
  .logo-strip__track li { height: 54px; padding: 8px 14px; }
  .logo-strip__track img { height: 30px; max-width: 120px; }
}
