/* ==========================================================================
   Keshav Chemicals — home.css
   ========================================================================== */

/* ---------- Hero ---------- */
/* Until main.js starts the intro, keep animated parts hidden so they don't flash.
   If the script never runs, they appear on their own after 2.5s. */
body:not(.intro-ready) .hero__head,
body:not(.intro-ready) .hero [data-intro],
body:not(.intro-ready).has-overlay-header .site-header {
  opacity: 0;
  animation: kc-failsafe 0s linear 2.5s forwards;
}
@keyframes kc-failsafe { to { opacity: 1; } }

.hero {
  --slant: clamp(2.5rem, 6vw, 6rem);
  --slant-k: 1;                 /* 0 = flat base, 1 = full diagonal (animated on load) */
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: max(42rem, 100svh);
  padding-top: calc(var(--header-h) + 5rem);
  padding-bottom: calc(var(--space-8) + var(--slant));
  background: var(--kc-navy);
  overflow: hidden;
  /* Diagonal base, taken from the brochure's angled panels */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant) * var(--slant-k)), 0 100%);
}
/* ---------- Hero slider ---------- */
.hero__slides {
  position: absolute; z-index: -3;
  inset: -4%;                   /* bleed so pointer parallax never shows an edge */
  overflow: hidden;
  will-change: transform;
}
.hero__slide {
  position: absolute; inset: 0;
  margin: 0;
  visibility: hidden;
}
.hero__slide.is-active { visibility: visible; z-index: 1; }
.hero__slide img,
.hero__strip img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
}
.hero__slide:nth-child(1) { --focus: 46% 50%; }
.hero__slide:nth-child(2) { --focus: 78% 50%; }
@media (max-width: 700px) {
  .hero__slide:nth-child(1) { --focus: 20% 50%; }
  .hero__slide:nth-child(2) { --focus: 72% 50%; }
}
.hero__slide.is-active img { animation: kc-drift 9s linear both; }
@keyframes kc-drift {
  from { transform: scale(1.1); }
  to   { transform: scale(1.02); }
}

/* Diagonal strips that carry the next slide in (built by main.js) */
.hero__veil {
  position: absolute; inset: 0;
  z-index: 2;
  background: var(--kc-navy);
  pointer-events: none;
}
.hero__strip {
  position: absolute; inset: 0;
  z-index: 3;
  overflow: hidden;
  will-change: clip-path;
}
.hero__strip img { will-change: transform; }

/* A thin light edge that leads the strips across */
.hero__blade {
  position: absolute; top: -10%; bottom: -10%;
  left: 0;
  width: 7rem;
  z-index: 4;
  background: linear-gradient(90deg, rgba(97, 207, 245, 0) 0%, rgba(97, 207, 245, .55) 70%, rgba(255, 255, 255, .95) 96%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-14deg);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(22, 33, 74, .92) 0%, rgba(22, 33, 74, .72) 40%, rgba(22, 33, 74, .2) 100%),
    linear-gradient(0deg, rgba(22, 33, 74, .78) 0%, rgba(22, 33, 74, 0) 50%),
    linear-gradient(180deg, rgba(22, 33, 74, .55) 0%, rgba(22, 33, 74, 0) 28%);
}
/* Zinc oxide "dust": a canvas of fine white particles that part around the cursor */
.hero__dust {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(17rem, 1fr);
  grid-template-areas:
    "title title"
    "lede  finder";
  gap: var(--space-7) var(--space-8);
  align-items: end;
}
.hero__head { grid-area: title; }
/* Company name above the headline; each letter drops in (main.js) */
.hero__brand {
  margin-bottom: var(--space-4);
  font-size: clamp(1.25rem, .7rem + 1.7vw, 2.25rem);
  font-stretch: 125%;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .04em;
  color: var(--kc-sky);
}
.hero__brand .bchar { display: inline-block; white-space: pre; will-change: transform, opacity; }
.hero__title {
  font-size: clamp(2.625rem, .6rem + 5.4vw, 6rem);
  font-stretch: 125%;
  font-weight: 760;
  line-height: .96;
  letter-spacing: -.035em;
}
.hero__title .line { display: block; padding-bottom: .07em; margin-bottom: -.07em; }
.hero__title .line > span { display: block; }
.hero__title .word { display: inline-block; white-space: nowrap; }
.hero__title .char { display: inline-block; will-change: transform, filter, opacity; }
.hero__aside {
  grid-area: lede;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-7);
}
.hero__lede {
  color: #DCE3F3;
  max-width: 31em;
}

/* Slider controls: progress bars + pause */
.slider-controls { display: flex; align-items: center; gap: var(--space-4); }
.slider-controls__dots { display: flex; gap: var(--space-2); }
.slider-controls__dot {
  position: relative;
  width: 3.5rem; height: 2.75rem;      /* tall hit area, thin visible bar */
  padding: 0; border: 0; background: none; cursor: pointer;
}
.slider-controls__dot::before,
.slider-controls__fill {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 3px; margin-top: -1.5px;
  border-radius: 2px;
}
.slider-controls__dot::before { background: rgba(255, 255, 255, .28); }
.slider-controls__fill {
  background: var(--kc-white);
  transform: scaleX(0);
  transform-origin: left center;
}
.slider-controls__dot.is-done .slider-controls__fill { transform: scaleX(1); }
.slider-controls__dot:hover::before { background: rgba(255, 255, 255, .5); }
.slider-controls__pause {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--kc-white);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.slider-controls__pause:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .6); }
/* Pause icon: two bars; play icon: triangle */
.slider-controls__icon {
  width: 10px; height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.slider-controls__pause.is-paused .slider-controls__icon {
  width: 0; height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
  margin-left: 3px;
}

/* Application finder: frosted glass over the photo */
.finder {
  --mx: 50%;
  --my: 0%;
  position: relative;
  grid-area: finder;
  justify-self: end;
  width: 100%;
  max-width: 21.5rem;
  padding: var(--space-5);
  color: var(--kc-white);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 100%),
    rgba(16, 26, 64, .42);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 6px;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    0 30px 60px -28px rgba(6, 12, 36, .75);
  overflow: hidden;
}
/* Light that follows the pointer across the glass */
.finder::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(97, 207, 245, .22), transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.finder:hover::before,
.finder:focus-within::before { opacity: 1; }
.finder > * { position: relative; }

.finder__label {
  display: block;
  margin-bottom: var(--space-3);
  font-size: var(--step-1);
  font-stretch: 118%;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.finder .select {
  min-height: 2.75rem;
  padding-block: .55rem;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--kc-white);
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23FFFFFF' stroke-width='2'/%3E%3C/svg%3E");
}
.finder .select:hover { border-color: rgba(255, 255, 255, .6); }
.finder .select:focus { border-color: var(--kc-sky); box-shadow: 0 0 0 3px rgba(97, 207, 245, .3); }
.finder .select option { color: var(--kc-ink); background: var(--kc-white); }
.finder__panels {
  display: grid;
  margin-block: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.finder__panel { grid-area: 1 / 1; }          /* panels share one cell, so height doesn't jump */
.finder__panel[hidden] { display: block; visibility: hidden; }
.finder__role { font-size: .9375rem; line-height: 1.55; color: #E4EAF7; }
.finder__dose {
  margin-top: var(--space-2);
  font-size: .875rem;
  font-weight: 650;
  color: var(--kc-sky);
}
.finder__submit { width: 100%; min-height: 2.75rem; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .finder { background: rgba(26, 38, 84, .9); }
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 4.5rem); }
  .hero__inner { grid-template-columns: 1fr; grid-template-areas: "title" "lede" "finder"; gap: var(--space-6); }
  .hero__aside { gap: var(--space-5); }
  .finder { justify-self: start; max-width: 26rem; }
  .hero__shade {
    background: linear-gradient(0deg, rgba(22, 33, 74, .95) 0%, rgba(22, 33, 74, .8) 55%, rgba(22, 33, 74, .5) 100%);
  }
}
@media (max-width: 560px) {
  .hero { padding-top: calc(var(--header-h) + 3rem); }
}

/* ---------- Product ---------- */
.product__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-8) clamp(3rem, 2rem + 4vw, 7rem);
  align-items: start;
}
.product__figure { position: relative; margin-bottom: 0; }
.product__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #E3E7EE; }

/* Spec sheet: a small frosted-glass label sitting on the product photo */
.spec-label {
  position: absolute;
  right: clamp(-1.75rem, -1.5vw, -.75rem);
  bottom: 1.5rem;
  width: min(19rem, 80%);
  color: var(--kc-white);
  font-size: .8125rem;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .05) 100%),
    rgba(18, 28, 70, .64);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 10px;
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    0 24px 50px -24px rgba(8, 14, 40, .7);
  overflow: hidden;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .spec-label { background: rgba(26, 38, 84, .92); }
}
.spec-label__head {
  padding: .85rem 1rem .75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.spec-label__maker {
  font-size: .6875rem;
  font-weight: 650;
  font-stretch: 125%;
  color: var(--kc-sky);
}
.spec-label__name {
  margin-top: .15rem;
  font-size: 1.125rem;
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.spec-label__cas { margin-top: .2rem; font-size: .6875rem; color: rgba(255, 255, 255, .7); }
.spec-label__table th,
.spec-label__table td {
  padding: .4rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  vertical-align: top;
}
.spec-label__table th { text-align: left; font-weight: 450; color: rgba(255, 255, 255, .78); }
.spec-label__table td { text-align: right; font-weight: 650; white-space: nowrap; }
.spec-label__table tr:last-child th,
.spec-label__table tr:last-child td { border-bottom: 0; }
.spec-label__foot {
  padding: .55rem 1rem;
  background: rgba(8, 14, 40, .25);
  font-size: .6875rem;
  color: rgba(255, 255, 255, .72);
}

.product__content { padding-top: var(--space-6); }
.product__lede { margin-top: var(--space-5); }
.benefits {
  margin-block: var(--space-7);
  border-top: 2px solid var(--kc-ink);
}
.benefits__item {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: var(--space-2) var(--space-6);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--kc-line);
}
.benefits dt {
  font-size: var(--step-1);
  font-stretch: 112%;
  font-weight: 680;
  line-height: 1.25;
}
.benefits dd { color: var(--kc-steel); }

@media (max-width: 900px) {
  .product__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .product__figure { margin-bottom: 0; }
  .product__img { aspect-ratio: 4 / 5; max-height: 34rem; }
  .spec-label {
    right: .75rem; bottom: .75rem;
    width: min(16rem, calc(100% - 1.5rem));
  }
  .product__content { padding-top: 0; }
}
@media (max-width: 560px) {
  .benefits__item { grid-template-columns: 1fr; }
}

/* ---------- Applications ----------
   Blue panel of pills (left) switches a stack of phone-shaped image cards (right). */
.apps2__head { max-width: 44rem; }
.apps2__frame {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: 40rem;
  border-radius: clamp(3rem, 2rem + 4vw, 7rem) 1.5rem 1.5rem 1.5rem;
  overflow: hidden;
  box-shadow: 0 40px 80px -50px rgba(14, 22, 56, .55);
}
.apps2__panel {
  display: flex;
  align-items: center;
  padding: clamp(2rem, 1rem + 4vw, 5rem) clamp(1.5rem, 1rem + 3vw, 4.5rem);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(97, 207, 245, .35) 0%, rgba(97, 207, 245, 0) 55%),
    linear-gradient(160deg, #2B5BD8 0%, var(--kc-royal) 55%, #133A9E 100%);
}
.apps2__list { display: grid; gap: .875rem; justify-items: start; }
.apps2__pill {
  display: inline-flex; align-items: center; gap: .9rem;
  padding: .95rem 1.6rem .95rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .72);
  font-size: var(--step-1);
  font-stretch: 110%;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease),
              box-shadow .4s var(--ease), transform .4s var(--ease);
}
.apps2__pill svg { flex: none; width: 1.4rem; height: 1.4rem; }
.apps2__pill:hover { color: var(--kc-white); border-color: rgba(255, 255, 255, .6); }
.apps2__pill[aria-selected="true"] {
  background: var(--kc-white);
  border-color: var(--kc-white);
  color: var(--kc-royal);
  box-shadow: 0 14px 30px -12px rgba(8, 20, 70, .55);
  transform: translateX(.5rem);
}
.apps2__pill:focus-visible { outline: 3px solid var(--kc-sky); outline-offset: 3px; }

.apps2__stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(24, 67, 184, .35) 0%, rgba(24, 67, 184, 0) 70%),
    #111A3E;
  perspective: 1400px;
}
.app-card {
  position: absolute; left: 50%; top: 50%;
  width: min(21rem, 56%);
  aspect-ratio: 9 / 12.5;
  margin: 0;
  border: 7px solid #0B1230;
  border-radius: 2.25rem;
  overflow: hidden;
  background: #0B1230;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7);
  transform: translate(-50%, -50%);
  will-change: transform, filter, opacity;
}
.app-card[hidden] { display: block; }       /* JS manages visibility; see below for no-JS */
.app-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 40, .45) 0%, rgba(8, 14, 40, 0) 28%, rgba(8, 14, 40, 0) 50%, rgba(8, 14, 40, .88) 100%);
  pointer-events: none;
}
.app-card__tag {
  position: absolute; left: 1.4rem; top: 1.3rem; z-index: 1;
  display: flex; align-items: center; gap: .6rem;
  color: var(--kc-white);
  font-size: .875rem;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: .02em;
}
.app-card__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--kc-sky);
  box-shadow: 0 0 0 0 rgba(97, 207, 245, .7);
  animation: kc-pulse 2s ease-out infinite;
}
@keyframes kc-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(97, 207, 245, .7); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(97, 207, 245, 0); }
}
.app-card__caption {
  position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.4rem; z-index: 1;
  color: #E6ECF8;
  font-size: .9375rem;
  line-height: 1.5;
}

/* Static stack (no JS): active card centred, neighbours peek out grey */
.app-card:not(.is-active) .app-card__caption,
.app-card:not(.is-active) .app-card__tag { opacity: 0; }
.app-card.is-prev,
.app-card.is-next { filter: grayscale(1) brightness(.55); z-index: 1; }
.app-card.is-prev { transform: translate(-50%, -50%) translateX(-58%) scale(.84); }
.app-card.is-next { transform: translate(-50%, -50%) translateX(58%) scale(.84); }
.app-card.is-active { z-index: 3; }
.app-card[hidden]:not(.is-prev):not(.is-next) { display: none; }

@media (max-width: 900px) {
  .apps2__frame { grid-template-columns: 1fr; min-height: 0; border-radius: 3rem 1.25rem 1.25rem 1.25rem; }
  .apps2__stage { order: -1; height: 30rem; }
  .app-card { width: min(17rem, 62%); }
  .apps2__list { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: stretch; gap: .6rem; width: 100%; }
  .apps2__pill { font-size: .9375rem; padding: .8rem 1rem; gap: .6rem; }
  .apps2__pill svg { width: 1.15rem; height: 1.15rem; }
  .apps2__pill[aria-selected="true"] { transform: none; }
}
@media (max-width: 480px) {
  .apps2__list { grid-template-columns: 1fr; }
  .apps2__stage { height: 27rem; }
}

/* ---------- Our strength ----------
   Default (mobile, reduced motion, no JS): a vertical timeline.
   .is-horizontal (added by main.js on wide screens): pinned horizontal track. */
.strength {
  --str-accent: var(--kc-sky);
  position: relative;
  background: var(--kc-navy);
  overflow: hidden;
}
.strength__pin { padding-block: var(--space-9); }
.strength__track {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.strength__media {
  margin: 0 0 var(--space-7);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  background: #2A3A73;
}
.strength__media img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 40%; }

.strength__board { display: flex; flex-direction: column; }
.strength__certs { order: 3; }
.strength__line { display: none; }
.strength__sub { margin-top: var(--space-4); font-size: var(--step-1); color: #C3CBE0; max-width: 26em; }

.strength .strength__items {
  position: relative;
  margin-top: var(--space-7);
  padding-left: var(--space-6);
  border-left: 1px solid rgba(97, 207, 245, .5);
}
.str-item { position: relative; padding-block: var(--space-4) var(--space-5); }
.str-item__stem { position: absolute; left: calc(var(--space-6) * -1); top: calc(var(--space-4) + 1.5rem); }
.str-item__dot {
  position: absolute; left: 0; top: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--str-accent);
  box-shadow: 0 0 0 5px rgba(97, 207, 245, .16);
  transform: translate(-50%, -50%);
}
.str-item__icon {
  display: inline-grid; place-items: center;
  width: 3rem; height: 3rem;
  margin-bottom: var(--space-3);
  border: 1px solid rgba(97, 207, 245, .45);
  border-radius: 50%;
  color: var(--str-accent);
  background: rgba(97, 207, 245, .07);
}
.str-item__svg { width: 1.5rem; height: 1.5rem; }
.str-item__title {
  font-size: var(--step-2);
  font-stretch: 118%;
  font-weight: 700;
  color: var(--kc-white);
}
.str-item__text { margin-top: var(--space-2); color: #C3CBE0; max-width: 30em; }

.strength__certs {
  display: flex; flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.strength__certs li {
  display: grid;
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(97, 207, 245, .45);
  border-radius: 4px;
}
.certs__code { font-weight: 700; font-stretch: 118%; color: var(--kc-sky); font-size: .9375rem; }
.certs__name { font-size: .8125rem; color: #C3CBE0; }

/* ----- Horizontal, pinned (desktop with motion) ----- */
.strength.is-horizontal .strength__pin {
  height: 100vh;
  height: 100svh;
  padding-block: calc(var(--header-h) + 2.5rem) var(--space-6);
  display: flex;
  align-items: center;
}
.strength.is-horizontal .strength__track {
  display: flex;
  align-items: stretch;
  gap: 5vw;
  width: max-content;
  max-width: none;
  height: clamp(30rem, 36vw, 42rem);
  max-height: 100%;
  margin: 0;
  padding-inline: 5vw 24vw;
  will-change: transform;
}
.strength.is-horizontal .strength__media {
  flex: none;
  width: 28vw;
  height: 100%;
  margin: 0;
  aspect-ratio: auto;
  border-radius: .8vw;
}
.strength.is-horizontal .strength__board {
  position: relative;
  display: grid;
  grid-template-columns: 21vw auto;
  grid-template-rows: 1fr 1fr;
  height: 100%;
}
.strength.is-horizontal .strength__line {
  position: absolute; left: 0; right: 0; top: 50%;
  display: flex; align-items: center;
  transform: translateY(-50%);
}
.strength__cap {
  flex: none;
  width: .7vw; height: .7vw; min-width: 9px; min-height: 9px;
  border-radius: 50%;
  background: var(--str-accent);
}
.strength__rule {
  flex: 1;
  height: 1px;
  background: var(--str-accent);
  transform-origin: left center;
}
.strength.is-horizontal .strength__intro { grid-column: 1; grid-row: 1; align-self: start; padding-top: 1.5vw; }
.strength.is-horizontal .strength__intro h2 { font-size: clamp(2.25rem, 3.4vw, 3.75rem); }
.strength.is-horizontal .strength__certs {
  grid-column: 1; grid-row: 2; align-self: end;
  flex-direction: column; align-items: flex-start;
  margin: 0; padding-bottom: .5vw;
}
.strength.is-horizontal .strength__items {
  grid-column: 2; grid-row: 1 / 3;
  display: flex;
  height: 100%;
  margin: 0; padding: 0;
  border: 0;
}
.strength.is-horizontal .str-item {
  flex: none;
  position: relative;
  width: 25vw;
  height: 100%;
  margin-right: -7vw;              /* top and bottom points interleave */
  padding: 0;
}
.strength.is-horizontal .str-item:last-child { margin-right: 0; }
.strength.is-horizontal .str-item__stem {
  position: absolute; left: 0;
  width: 1px; height: 50%;
  background: var(--str-accent);
}
.strength.is-horizontal .str-item--top .str-item__stem { top: 0; transform-origin: center bottom; }
.strength.is-horizontal .str-item--bottom .str-item__stem { top: 50%; transform-origin: center top; }
.strength.is-horizontal .str-item__dot {
  width: 1vw; height: 1vw; min-width: 12px; min-height: 12px;
  left: 50%;
}
.strength.is-horizontal .str-item--top .str-item__dot { top: 0; }
.strength.is-horizontal .str-item--bottom .str-item__dot { top: 100%; }
.strength.is-horizontal .str-item__body {
  position: absolute; left: 0; right: 0;
  height: 50%;
  display: flex; flex-direction: column;
  padding-inline: 2vw 1vw;
}
.strength.is-horizontal .str-item--top .str-item__body { top: 0; justify-content: flex-start; margin-top: -.6vw; padding-bottom: 2vw; }
.strength.is-horizontal .str-item--bottom .str-item__body { bottom: 0; justify-content: flex-end; margin-bottom: -.4vw; padding-top: 2vw; }
.strength.is-horizontal .str-item__icon { width: 3.2vw; height: 3.2vw; min-width: 2.75rem; min-height: 2.75rem; margin-bottom: 1vw; }
.strength.is-horizontal .str-item__svg { width: 1.6vw; height: 1.6vw; min-width: 1.25rem; min-height: 1.25rem; }
.strength.is-horizontal .str-item__title { font-size: clamp(1.25rem, 1.75vw, 2rem); line-height: 1.1; }
.strength.is-horizontal .str-item__text { font-size: clamp(.9375rem, 1.05vw, 1.125rem); line-height: 1.45; max-width: 19vw; }

/* ---------- Quality ---------- */
.quality__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--space-8) clamp(3rem, 2rem + 4vw, 7rem);
  align-items: center;
}
.quality__figure img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; background: #E3E7EE; }
.quality__content > .lede { margin-top: var(--space-5); }

.steps { margin-top: var(--space-7); counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  column-gap: var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid var(--kc-line);
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: var(--step-3);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1;
  color: var(--kc-royal);
}
.steps h3 { font-size: var(--step-1); }
.steps p { margin-top: var(--space-1); color: var(--kc-steel); }

@media (max-width: 900px) {
  .quality__grid { grid-template-columns: 1fr; }
  .quality__figure img { aspect-ratio: 16 / 10; }
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8) clamp(3rem, 2rem + 4vw, 7rem);
  align-items: center;
}
.about__media {
  position: relative;
  padding-bottom: 7rem;               /* room for the vision card to hang below */
}
/* Photo with the brochure's chevron cut on the top-right corner */
.about__photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #E3E7EE;
  clip-path: polygon(0 0, 72% 0, 100% 16%, 100% 100%, 0 100%);
}
.about__photo img {
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 76% 50%;
  transform: scale(1.04);
}
.vision {
  position: absolute;
  right: clamp(-2.5rem, -2vw, -1rem);
  bottom: 0;
  width: min(25rem, 86%);
  margin: 0;
  padding: var(--space-6);
  background: var(--kc-navy);
  color: var(--kc-white);
  border-top: 3px solid var(--kc-sky);
  box-shadow: 0 30px 60px -30px rgba(14, 22, 56, .6);
}
.vision__mark { width: 6.5rem; height: auto; margin-bottom: var(--space-5); opacity: .95; }
.vision blockquote p {
  font-size: clamp(1.1875rem, .9rem + .9vw, 1.5rem);
  font-stretch: 110%;
  font-weight: 520;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.vision figcaption {
  margin-top: var(--space-4);
  font-size: .9375rem;
  font-weight: 650;
  color: var(--kc-sky);
}

.about__lede { margin-top: var(--space-5); }
.about__text { margin-top: var(--space-4); color: var(--kc-steel); max-width: var(--measure); }

.about__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--space-7);
  border-top: 2px solid var(--kc-ink);
}
.about__facts > div {
  padding: var(--space-4) var(--space-4) var(--space-4) 0;
  border-bottom: 1px solid var(--kc-line);
}
.about__facts > div:nth-child(even) { padding-left: var(--space-5); border-left: 1px solid var(--kc-line); }
.about__facts dt { font-size: .875rem; color: var(--kc-steel); }
.about__facts dd {
  margin-top: var(--space-1);
  font-size: var(--step-1);
  font-stretch: 112%;
  font-weight: 680;
  line-height: 1.25;
}

.about__values-title { margin-top: var(--space-7); font-size: var(--step-1); }
.about__values { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.about__values li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--kc-steel);
}
.about__values li::before {               /* small chevron, from the KC mark */
  content: "";
  position: absolute; left: 0; top: .45em;
  width: .7rem; height: .7rem;
  border-top: 2.5px solid var(--kc-royal);
  border-right: 2.5px solid var(--kc-royal);
  transform: rotate(45deg) translate(-2px, 2px);
}
.about__values strong { color: var(--kc-ink); font-weight: 650; margin-right: .35em; }
.about__cta { margin-top: var(--space-7); }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { aspect-ratio: 4 / 3; }
  .about__media { padding-bottom: 0; }
  .vision {
    position: relative; right: auto; bottom: auto;
    width: calc(100% - var(--space-5));
    margin: -2.5rem 0 0 auto;
    padding: var(--space-5);
  }
  .vision__mark { width: 5rem; margin-bottom: var(--space-4); }
}
@media (max-width: 520px) {
  .about__facts { grid-template-columns: 1fr; }
  .about__facts > div:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- Enquiry (call to action) ----------
   Dark rounded panel; a glowing dotted globe turns behind the glass form. */
.enquiry { padding-block: var(--space-8) var(--space-9); }
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 1rem + 4vw, 5.5rem);
  border-radius: clamp(1.25rem, .8rem + 1.5vw, 2rem);
  background:
    radial-gradient(60% 70% at 85% 70%, rgba(24, 67, 184, .45) 0%, rgba(24, 67, 184, 0) 70%),
    linear-gradient(160deg, #18224F 0%, #0E1533 60%, #0B1029 100%);
  color: var(--kc-white);
  box-shadow: 0 50px 90px -50px rgba(8, 14, 40, .8);
}
.cta__globe {
  position: absolute; z-index: -1;
  right: -8%; top: 3%;
  width: min(46rem, 52%);
  aspect-ratio: 1;
  pointer-events: none;
}
.cta__canvas {
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  cursor: grab;
  pointer-events: auto;
}
.cta__canvas.is-ready { opacity: 1; }
.cta__canvas:active { cursor: grabbing; }

.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas:
    "intro ."
    "form  form";
  gap: var(--space-8) clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.cta__intro { grid-area: intro; }
.cta__form { grid-area: form; }
.cta__statement {
  font-size: clamp(1.625rem, 1rem + 2vw, 2.75rem);
  font-stretch: 100%;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -.02em;
  color: #8E9AC0;
  text-wrap: pretty;
}
.cta__lead { color: var(--kc-white); font-weight: 650; }
.cta__direct {
  display: grid; grid-template-columns: repeat(2, minmax(0, auto)); justify-content: start;
  gap: var(--space-5) var(--space-8);
  margin-top: var(--space-7);
  font-size: .9375rem;
}
.cta__direct dt { font-weight: 650; color: var(--kc-sky); }
.cta__direct dd { margin-top: var(--space-1); }
.cta__direct a { color: #DCE3F3; text-decoration: none; }
.cta__direct a:hover { color: var(--kc-white); text-decoration: underline; }
.cta__origin {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: var(--space-7);
  font-size: .875rem; font-weight: 600; color: #C3CBE0;
}
.cta__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--kc-sky);
  animation: kc-pulse 2s ease-out infinite;
}

/* Glass form over the globe */
.cta__form {
  padding: clamp(1.25rem, .75rem + 2vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 1.25rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .03) 100%), rgba(14, 21, 51, .45);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cta__form { background: rgba(20, 29, 66, .94); }
}
.enquiry__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4) var(--space-5);
}
.field--full { grid-column: 1 / -1; }
.cta .field label { color: #DCE3F3; font-size: .875rem; }
.cta .input, .cta .select, .cta .textarea {
  min-height: 2.875rem;
  background-color: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .2);
  color: var(--kc-white);
}
.cta .textarea { min-height: 6rem; }
.cta .input::placeholder, .cta .textarea::placeholder { color: rgba(255, 255, 255, .45); }
.cta .input:hover, .cta .select:hover, .cta .textarea:hover { border-color: rgba(255, 255, 255, .4); }
.cta .input:focus, .cta .select:focus, .cta .textarea:focus {
  border-color: var(--kc-sky);
  box-shadow: 0 0 0 3px rgba(97, 207, 245, .25);
}
.cta .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23FFFFFF' stroke-width='2'/%3E%3C/svg%3E");
}
.cta .select option { color: var(--kc-ink); background: var(--kc-white); }
.cta__submit {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5);
  margin-top: var(--space-5);
}
.cta__submit .btn { border-radius: 999px; padding-inline: 1.75rem; }
.cta__note { font-size: .8125rem; color: rgba(255, 255, 255, .6); }

@media (max-width: 960px) {
  .cta__grid { grid-template-columns: 1fr; grid-template-areas: "intro" "form"; }
  .cta { padding-top: clamp(18rem, 12rem + 30vw, 26rem); }
  .cta__globe { right: 50%; transform: translateX(50%); top: clamp(-7rem, -4rem - 6vw, -4rem); width: min(30rem, 105%); }
  .enquiry__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .enquiry__fields { grid-template-columns: 1fr; }
  .cta__direct { grid-template-columns: 1fr; gap: var(--space-4); }
  .cta__submit .btn { width: 100%; }
}
