/*
 * About page: "Who we are", "About KSATRIA" (mission / vision / history)
 * and "Our core services". Scoped to .ks-who, .ks-story and .ks-svc so the
 * theme's crp-* rules elsewhere on the page stay untouched.
 */

.ks-who,
.ks-story,
.ks-svc {
  --ks-ink: #17312f;
  --ks-green: #2e4b3c;
  --ks-green-rich: #2f5d45;
  --ks-night: #10221a;
  --ks-lime: #e9ff48;
  --ks-yellow: #fbea6e;
  --ks-mist: #eef3e4;
  --ks-cream: #f4f8ea;
  --ks-line: rgba(46, 75, 60, 0.16);
  --ks-muted: rgba(23, 49, 47, 0.76);
  --ks-ease: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  color: var(--ks-ink);
  font-family: var(--tp-ff-body, "Inter", sans-serif);
}

.ks-who ::selection,
.ks-story ::selection,
.ks-svc ::selection {
  background: var(--ks-lime);
  color: var(--ks-ink);
}

.ks-who p,
.ks-story p,
.ks-svc p {
  margin: 0;
}

/* Shared label: a dot and a few words, sentence case. */
.ks-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ks-ink);
}

.ks-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ks-green);
  box-shadow: 0 0 0 4px var(--ks-lime);
}

/* ------------------------------------------------------------ who we are */

.ks-who {
  padding: clamp(80px, 10vw, 140px) 0 clamp(72px, 8vw, 120px);
}

.ks-who__top {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 32px;
  align-items: start;
}

.ks-who__top > .ks-label {
  margin-top: 0.9em;
}

.ks-who__title {
  max-width: 14em;
  margin: 0;
  font-family: var(--tp-ff-teko, "Teko", sans-serif);
  font-size: clamp(46px, 5.6vw, 84px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.005em;
  color: var(--ks-green);
  text-wrap: balance;
}

.ks-who__lead {
  max-width: 60ch;
  margin-top: clamp(20px, 2.4vw, 30px) !important;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ks-muted);
}

.ks-who__lead span {
  color: inherit;
}

/* Pill button: arrow in a filled circle on the left. */
.ks-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(28px, 3vw, 40px);
  padding: 6px 26px 6px 6px;
  border-radius: 999px;
  background: var(--ks-green);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.35s var(--ks-ease);
}

.ks-pill__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ks-lime);
  color: var(--ks-ink);
  transition: transform 0.45s var(--ks-ease);
}

.ks-pill:hover,
.ks-pill:focus-visible {
  background: var(--ks-night);
  color: #fff;
}

.ks-pill:hover .ks-pill__icon,
.ks-pill:focus-visible .ks-pill__icon {
  transform: rotate(45deg);
}

.ks-pill:focus-visible {
  outline: 2px solid var(--ks-green);
  outline-offset: 4px;
}

/* Three cards */
.ks-who__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(56px, 7vw, 96px);
}

.ks-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
  padding: clamp(26px, 2.6vw, 36px);
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
}

.ks-card__body {
  position: relative;
  z-index: 1;
}

.ks-card__title {
  max-width: 13em;
  margin: 0 0 12px;
  font-family: var(--tp-ff-teko, "Teko", sans-serif);
  font-size: clamp(30px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 0.98;
  color: inherit;
  text-wrap: balance;
}

.ks-card__text {
  max-width: 34ch;
  font-size: 15.5px;
  line-height: 1.6;
}

.ks-card--dark {
  background: var(--ks-night);
  color: var(--ks-cream);
}

.ks-card--dark .ks-card__text {
  color: rgba(244, 248, 234, 0.74);
}

/* Soft light streak: a blurred diagonal band with a crisp core line. */
.ks-card__streak {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ks-card__streak::before,
.ks-card__streak::after {
  content: "";
  position: absolute;
  left: -30%;
  width: 160%;
  transform: rotate(-32deg);
}

.ks-card__streak::before {
  top: 22%;
  height: 120px;
  background: linear-gradient(90deg, transparent 8%, rgba(233, 255, 72, 0.16) 46%, rgba(244, 248, 234, 0.22) 54%, transparent 88%);
  filter: blur(26px);
}

.ks-card__streak::after {
  top: calc(22% + 58px);
  height: 1px;
  background: linear-gradient(90deg, transparent 20%, rgba(244, 248, 234, 0.42) 50%, transparent 80%);
}

.ks-card--green {
  background: var(--ks-green-rich);
  color: var(--ks-cream);
}

.ks-card--green .ks-card__text {
  color: rgba(244, 248, 234, 0.8);
}

.ks-card__art {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  width: 104%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -13%);
  pointer-events: none;
}

.ks-card--light {
  justify-content: space-between;
  background: var(--ks-mist);
  color: var(--ks-ink);
}

.ks-card__figure {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--tp-ff-teko, "Teko", sans-serif);
  color: var(--ks-green);
}

.ks-card__num {
  position: relative;
  font-size: clamp(120px, 11vw, 168px);
  font-weight: 600;
  line-height: 0.78;
}

.ks-card__num::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -6%;
  left: -18%;
  width: 0.82em;
  height: 0.82em;
  border-radius: 50%;
  background: var(--ks-yellow);
}

.ks-card__unit {
  font-size: clamp(34px, 3vw, 44px);
  font-weight: 500;
  line-height: 1;
}

.ks-card__caption {
  max-width: 18em;
  margin-top: 14px !important;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ks-ink);
}

.ks-card__foot {
  padding-top: 22px;
  border-top: 1px solid var(--ks-line);
}

.ks-card__closing {
  max-width: 36ch;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ks-muted);
}

/* ----------------------------------------------------------- story / tabs */

.ks-story {
  padding: 0 0 clamp(96px, 11vw, 160px);
}

.ks-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 5.5vw, 88px);
  align-items: stretch;
}

.ks-story__media {
  margin: 0;
  min-height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--ks-green);
}

.ks-story__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center 60%;
}

.ks-story__content {
  align-self: center;
  padding: clamp(0px, 1vw, 12px) 0;
}

.ks-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--ks-line);
  border-radius: 999px;
  background: var(--ks-mist);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ks-green);
}

.ks-story__title {
  max-width: 14em;
  margin: 22px 0 0;
  font-family: var(--tp-ff-teko, "Teko", sans-serif);
  font-size: clamp(44px, 4.8vw, 72px);
  font-weight: 500;
  line-height: 0.94;
  color: var(--ks-green);
  text-wrap: balance;
}

.ks-story__text {
  max-width: 58ch;
  margin-top: 20px !important;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ks-muted);
}

.ks-story__row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--ks-line);
}

.ks-stat {
  padding: 20px;
  border-radius: 22px;
  background: var(--ks-green);
  color: var(--ks-cream);
}

.ks-stat__label {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(244, 248, 234, 0.82);
}

.ks-stat__art {
  margin: 14px 0 16px;
  padding: 8px 6px 2px;
  border-radius: 14px;
  background: rgba(244, 248, 234, 0.08);
}

.ks-stat__art img {
  display: block;
  width: 100%;
  height: auto;
}

.ks-stat__num {
  font-family: var(--tp-ff-teko, "Teko", sans-serif);
  font-size: 76px;
  font-weight: 600;
  line-height: 0.8;
  color: var(--ks-lime);
}

.ks-stat__caption {
  margin-top: 10px !important;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(244, 248, 234, 0.82);
}

.ks-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ks-tabs__tab {
  padding: 12px 18px;
  border: 1px solid var(--ks-line);
  border-radius: 999px;
  background: transparent;
  color: var(--ks-green);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s var(--ks-ease), border-color 0.3s var(--ks-ease), color 0.3s var(--ks-ease);
}

.ks-tabs__tab:hover {
  border-color: var(--ks-green);
}

.ks-tabs__tab[aria-selected="true"] {
  border-color: var(--ks-green);
  background: var(--ks-green);
  color: #fff;
}

.ks-tabs__tab:focus-visible,
.ks-tabs__panel:focus-visible {
  outline: 2px solid var(--ks-green);
  outline-offset: 3px;
}

/* Panels share one grid cell so switching never shifts the checklist. */
.ks-tabs__panels {
  display: grid;
  margin-top: 22px;
}

.ks-tabs__panel {
  grid-area: 1 / 1;
  border-radius: 6px;
  transition: opacity 0.4s var(--ks-ease);
}

.ks-tabs__panel[hidden] {
  display: block;
  visibility: hidden;
  opacity: 0;
}

.ks-tabs__panel p {
  max-width: 56ch;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ks-muted);
}

.ks-checks {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ks-checks__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--ks-line);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ks-ink);
}

.ks-checks__item:last-child {
  border-bottom: 1px solid var(--ks-line);
}

.ks-checks__box {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid var(--ks-green);
  border-radius: 6px;
  background: var(--ks-lime);
  color: var(--ks-green);
}

/* -------------------------------------------------------------- services */

.ks-svc {
  padding: clamp(72px, 9vw, 130px) 0;
}

.ks-svc__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.ks-svc__title {
  margin: 18px 0 0;
  font-family: var(--tp-ff-teko, "Teko", sans-serif);
  font-size: clamp(56px, 6.4vw, 100px);
  font-weight: 600;
  line-height: 0.88;
  color: var(--ks-green);
}

.ks-svc__title span {
  color: inherit;
}

.ks-svc__intro {
  max-width: 32ch;
  margin-top: 22px !important;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ks-muted);
}

.ks-svc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ks-line);
}

.ks-svc__item {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding: 36px 24px;
  border-bottom: 1px solid var(--ks-line);
  isolation: isolate;
}

/* Hover wash sits inside the hairlines so the dividers stay straight. */
.ks-svc__item::before {
  content: "";
  position: absolute;
  inset: 8px 0;
  z-index: -1;
  border-radius: 18px;
  background: var(--ks-mist);
  opacity: 0;
  transition: opacity 0.35s var(--ks-ease);
}

.ks-svc__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ks-green);
  color: var(--ks-lime);
  transition: background-color 0.35s var(--ks-ease), transform 0.45s var(--ks-ease);
}

.ks-svc__icon svg {
  width: 26px;
  height: 26px;
}

.ks-svc__name {
  margin: 4px 0 10px;
  font-family: var(--tp-ff-teko, "Teko", sans-serif);
  font-size: clamp(32px, 2.7vw, 38px);
  font-weight: 600;
  line-height: 1;
  color: var(--ks-green);
}

.ks-svc__name a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.4s var(--ks-ease);
}

.ks-svc__desc {
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ks-muted);
}

.ks-svc__more {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--ks-line);
  border-radius: 999px;
  color: var(--ks-green);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.3s var(--ks-ease), color 0.3s var(--ks-ease), border-color 0.3s var(--ks-ease);
}

.ks-svc__more svg {
  transition: transform 0.4s var(--ks-ease);
}

.ks-svc__item:hover::before,
.ks-svc__item:focus-within::before {
  opacity: 1;
}

.ks-svc__item:hover .ks-svc__icon,
.ks-svc__item:focus-within .ks-svc__icon {
  background: var(--ks-night);
  transform: rotate(-12deg);
}

.ks-svc__name a:hover,
.ks-svc__name a:focus-visible {
  background-size: 100% 2px;
  color: var(--ks-green);
}

.ks-svc__more:hover,
.ks-svc__more:focus-visible {
  border-color: var(--ks-green);
  background: var(--ks-green);
  color: #fff;
}

.ks-svc__more:hover svg,
.ks-svc__more:focus-visible svg {
  transform: translate(2px, -2px);
}

.ks-svc__name a:focus-visible,
.ks-svc__more:focus-visible {
  outline: 2px solid var(--ks-green);
  outline-offset: 3px;
  border-radius: 4px;
}

.ks-svc__more:focus-visible {
  border-radius: 999px;
}

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

@media (max-width: 1199px) {
  .ks-who__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ks-card--light {
    grid-column: 1 / -1;
    min-height: 0;
    gap: 36px;
  }

  .ks-story__row {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

@media (max-width: 991px) {
  .ks-who__top,
  .ks-story__grid,
  .ks-svc__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ks-who__top {
    gap: 24px;
  }

  .ks-who__top > .ks-label {
    margin-top: 0;
  }

  .ks-story {
    padding-top: 0;
  }

  .ks-story__media img {
    min-height: 0;
    aspect-ratio: 4 / 3;
    height: auto;
  }
}

@media (max-width: 767px) {
  .ks-who__cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .ks-card {
    min-height: 380px;
    border-radius: 22px;
  }

  .ks-card--light {
    min-height: 0;
  }

  .ks-card--green {
    min-height: 460px;
  }

  .ks-who__lead,
  .ks-story__text,
  .ks-svc__intro {
    font-size: 16px;
  }

  .ks-story__media {
    border-radius: 22px;
  }

  .ks-story__media img {
    aspect-ratio: 5 / 4;
  }

  .ks-story__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .ks-stat {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-areas:
      "label label"
      "art num"
      "art caption";
    column-gap: 18px;
    align-items: end;
  }

  .ks-stat__label { grid-area: label; }
  .ks-stat__art { grid-area: art; margin: 12px 0 0; align-self: stretch; display: grid; place-items: center; }
  .ks-stat__num { grid-area: num; margin-top: 12px; }
  .ks-stat__caption { grid-area: caption; }

  .ks-tabs__tab {
    padding: 11px 14px;
    font-size: 12px;
  }

  .ks-svc__item {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px 18px;
    padding: 28px 12px;
  }

  .ks-svc__item::before {
    inset: 6px 0;
    border-radius: 14px;
  }

  .ks-svc__icon {
    width: 52px;
    height: 52px;
  }

  .ks-svc__icon svg {
    width: 22px;
    height: 22px;
  }

  .ks-svc__more {
    grid-column: 2;
    justify-self: start;
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ks-pill,
  .ks-pill__icon,
  .ks-tabs__tab,
  .ks-tabs__panel,
  .ks-svc__item,
  .ks-svc__item::before,
  .ks-svc__icon,
  .ks-svc__name a,
  .ks-svc__more,
  .ks-svc__more svg {
    transition: none;
  }

  .ks-pill:hover .ks-pill__icon,
  .ks-pill:focus-visible .ks-pill__icon,
  .ks-svc__item:hover .ks-svc__icon,
  .ks-svc__item:focus-within .ks-svc__icon {
    transform: none;
  }
}

/* ------------------------------------------------------------------
 * Who we are, tightened (2026-10-17)
 * Heading left, lead + CTA right on wide screens so the old empty label
 * column is gone; cards carry illustrations of what they say instead of
 * decoration, and are shorter.
 * ------------------------------------------------------------------ */
.ks-who {
  padding: clamp(64px, 7vw, 104px) 0 clamp(56px, 6vw, 88px);
}

.ks-who__label {
  margin-bottom: 22px;
}

.ks-who__top {
  display: block;
}

.ks-who__main {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}

.ks-who__title {
  max-width: none;
}

.ks-who__aside .ks-who__lead {
  margin-top: 0 !important;
  font-size: 17px;
}

.ks-who__aside .ks-pill {
  margin-top: 24px;
}

.ks-who__cards {
  margin-top: clamp(40px, 4.5vw, 64px);
}

.ks-card {
  min-height: 0;
  justify-content: space-between;
  gap: 22px;
}

.ks-card .ks-card__art,
.ks-card--green .ks-card__art {
  position: static;
  display: block;
  width: calc(100% + clamp(26px, 2.6vw, 36px));
  max-width: none;
  height: auto;
  margin: calc(-1 * clamp(10px, 1vw, 16px)) calc(-1 * clamp(13px, 1.3vw, 18px)) 0;
  transform: none;
  aspect-ratio: 480 / 300;
}

.ks-card--light {
  gap: 22px;
}

.ks-card__products {
  padding: 18px 0;
  border-top: 1px solid rgba(46, 75, 60, 0.14);
}

.ks-card__products-label {
  margin: 0 0 12px !important;
  font-size: 13px;
  font-weight: 500;
  color: var(--ks-muted);
}

.ks-card__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ks-card__logos li {
  display: grid;
  place-items: center;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: #ffffff;
}

.ks-card__logos img {
  display: block;
  width: auto;
  height: 22px;
  max-width: 108px;
  object-fit: contain;
}

.ks-card--light .ks-card__foot {
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 991px) {
  .ks-who__main {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }
}

.ks-card__logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ks-card__logos li {
  height: 44px;
  padding: 0 8px;
}

.ks-card__logos img {
  width: 100%;
  max-width: 120px;
  height: 24px;
}

