/* ==========================================================================
   KAIRO — LIQUID GLASS DESIGN SYSTEM
   Shared by every page on kairoscales.com (React app + static pages).
   Bright white base, layered frosted glass, coastal blue / green / sand /
   lime accents, graphite ink. Poppins throughout.
   ========================================================================== */

:root {
  --background: #FFFFFF;
  --ink: #12191D;
  --muted: #687278;
  --line: rgba(18, 25, 29, 0.12);
  --lime: #AAF238;
  --lime-dark: #2D7A43;
  --lime-deep: #4E9A0C;   /* darkest lime, only inside liquid text gradients */
  --lime-pale: #D9FF8F;
  --coastal-blue: #75C9EF;
  --warm-sand: #F0D7AA;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.74);
  --glass-green: rgba(212, 245, 234, 0.38);
  --soft-shadow: 0 24px 70px rgba(25, 52, 58, 0.12);
  --lime-glow: 0 0 40px rgba(170, 242, 56, 0.55);

  --font: "Poppins", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.22, 1.42, 0.36, 1);
  --gutter: 24px;
  --maxw: 1240px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: #FFFFFF;
}

body.kg {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 4% 84%, rgba(240, 215, 170, 0.54), transparent 25%),
    radial-gradient(circle at 97% 78%, rgba(117, 201, 239, 0.34), transparent 27%),
    radial-gradient(circle at 83% 17%, rgba(170, 242, 56, 0.13), transparent 20%),
    #FFFFFF;
  background-attachment: fixed;
}

.kg img { max-width: 100%; display: block; }
.kg { -webkit-tap-highlight-color: transparent; }
.kg a { color: inherit; text-decoration: none; }
.kg button { font-family: inherit; }
.kg p { margin: 0; }
.kg h1, .kg h2, .kg h3, .kg h4 { margin: 0; font-family: var(--font); }

.kg ::selection { background: rgba(170, 242, 56, 0.55); color: var(--ink); }

.kg :focus { outline: none; }
.kg :focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(170, 242, 56, 0.45);
  border-radius: 999px;
}

.kg .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Ambient circles fixed behind the page */
.kg-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.kg-ambient::before,
.kg-ambient::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.25;
}
.kg-ambient::before {
  width: 620px; height: 620px;
  top: -180px; left: -160px;
  background: radial-gradient(circle, var(--coastal-blue), rgba(212, 245, 234, 0.6) 60%, transparent 72%);
}
.kg-ambient::after {
  width: 680px; height: 680px;
  bottom: -240px; right: -200px;
  background: radial-gradient(circle, var(--lime), rgba(240, 215, 170, 0.7) 58%, transparent 72%);
}

.kg-page { position: relative; z-index: 1; }

.kg-container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.kg-narrow { max-width: 820px; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.kg-display {
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.075em;
  word-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.kg-h1 { font-size: clamp(2.7rem, 4.6vw, 4.6rem); }
.kg-h1-sub {
  display: block;
  margin-top: 0.42em;
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  word-spacing: 0.12em;
}
.kg-h2 { font-size: clamp(2.2rem, 4.4vw, 4.2rem); }
.kg-h3 {
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 0.92;
}
/* Liquid lime text: glassy lime gradient with a slow moving sheen */
.kg-accent,
.kg-h1-sub {
  color: var(--lime-deep);
  background-image: linear-gradient(
    100deg,
    #4E9A0C 0%,
    #74C21B 18%,
    #9BE22E 32%,
    #E4FFB0 44%,
    #9BE22E 56%,
    #74C21B 72%,
    #4E9A0C 100%
  );
  background-size: 260% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(18, 25, 29, 0.14))
    drop-shadow(0 6px 18px rgba(170, 242, 56, 0.35));
  animation: kg-liquid-text 7s ease-in-out infinite alternate;
}
@keyframes kg-liquid-text {
  from { background-position: 100% 50%; }
  to   { background-position: 0% 50%; }
}

/* Small-text highlight: graphite on a lime glass highlighter stroke */
.kg-hl {
  color: var(--ink);
  font-weight: 600;
  background: linear-gradient(transparent 56%, rgba(170, 242, 56, 0.55) 56%, rgba(214, 255, 150, 0.6) 92%, transparent 92%);
  border-radius: 3px;
  padding: 0 2px;
}

.kg-lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
}
.kg-lede strong, .kg-copy strong { color: var(--ink); font-weight: 600; }

.kg-italic {
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--muted);
}

.kg-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Stacked short lines of copy */
.kg-copy { display: grid; gap: 14px; color: var(--muted); }
.kg-copy p { max-width: 62ch; }
.kg-copy .kg-punch { color: var(--ink); font-weight: 600; }
.kg-copy-center { justify-items: center; text-align: center; }
.kg-copy-center p { margin-inline: auto; }

/* Short negative/positive lists ("No hiring.", "You don't need…") */
.kg-ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.kg-ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-weight: 500;
}
.kg-ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #FFFFFF 0 18%, transparent 40%),
    radial-gradient(circle, var(--lime) 0 55%, rgba(170, 242, 56, 0.25) 56% 100%);
  box-shadow: 0 0 12px rgba(170, 242, 56, 0.55), inset 0 1px 1px #FFFFFF;
  animation: kg-drop 4.5s ease-in-out infinite;
}
.kg-ticks li:nth-child(2n)::before { animation-delay: -1.5s; }
.kg-ticks li:nth-child(3n)::before { animation-delay: -3s; }
@keyframes kg-drop {
  0%, 100% { border-radius: 50%; transform: scale(1); box-shadow: 0 0 12px rgba(170, 242, 56, 0.55), inset 0 1px 1px #FFFFFF; }
  33%      { border-radius: 56% 44% 52% 48% / 46% 54% 46% 54%; transform: scale(1.08); box-shadow: 0 0 18px rgba(170, 242, 56, 0.8), inset 0 1px 1px #FFFFFF; }
  66%      { border-radius: 45% 55% 47% 53% / 55% 45% 55% 45%; transform: scale(0.96); }
}

/* --------------------------------------------------------------------------
   Glass primitives
   -------------------------------------------------------------------------- */

.kg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow:
    0 10px 30px rgba(39, 66, 72, 0.08),
    inset 0 0 0 1px rgba(17, 25, 28, 0.06);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.3;
}
.kg-dot {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(170, 242, 56, 0.25), 0 0 12px rgba(170, 242, 56, 0.9);
  animation: kg-pulse 2.4s ease-in-out infinite;
}
@keyframes kg-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(170, 242, 56, 0.25), 0 0 12px rgba(170, 242, 56, 0.9); }
  50%      { box-shadow: 0 0 0 6px rgba(170, 242, 56, 0.08), 0 0 20px rgba(170, 242, 56, 0.6); }
}

.kg-panel {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(229, 247, 244, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 27px;
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
  box-shadow:
    0 24px 70px rgba(25, 52, 58, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 0 22px rgba(255, 255, 255, 0.30);
}
.kg-panel-pad { padding: clamp(26px, 3.4vw, 44px); }

/* Lime-tinted panel for the guarantee / emphasis blocks */
.kg-panel-lime {
  background:
    radial-gradient(circle at 88% 12%, rgba(170, 242, 56, 0.45), transparent 38%),
    radial-gradient(circle at 8% 92%, rgba(117, 201, 239, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(225, 246, 230, 0.5));
}
.kg-panel-lime { overflow: hidden; isolation: isolate; }
.kg-panel-lime::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 55%;
  aspect-ratio: 1;
  right: -12%;
  top: -22%;
  background: radial-gradient(circle, rgba(214, 255, 150, 0.7), rgba(170, 242, 56, 0.28) 45%, transparent 70%);
  filter: blur(20px);
  animation: kg-liquid 18s ease-in-out infinite;
  pointer-events: none;
}
.kg-panel-sand {
  background:
    radial-gradient(circle at 10% 10%, rgba(240, 215, 170, 0.55), transparent 42%),
    radial-gradient(circle at 92% 88%, rgba(117, 201, 239, 0.22), transparent 40%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(247, 240, 226, 0.5));
}

.kg-card {
  position: relative;
  padding: 24px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow:
    0 16px 45px rgba(39, 72, 78, 0.08),
    inset 0 0 0 1px rgba(17, 25, 28, 0.04);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

/* Liquid core: a lime blob drifting inside glass, shared by buttons, icons, bubbles */
@keyframes kg-liquid {
  0%   { transform: translate(-18%, -12%) rotate(0deg) scale(1);    border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; }
  33%  { transform: translate(14%, -4%)  rotate(120deg) scale(1.12); border-radius: 58% 42% 44% 56% / 55% 60% 40% 45%; }
  66%  { transform: translate(4%, 16%)   rotate(240deg) scale(0.94); border-radius: 48% 52% 60% 40% / 40% 52% 48% 60%; }
  100% { transform: translate(-18%, -12%) rotate(360deg) scale(1);   border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; }
}
@keyframes kg-wobble {
  0%, 100% { border-radius: 50%; }
  25% { border-radius: 52% 48% 49% 51% / 48% 52% 48% 52%; }
  50% { border-radius: 48% 52% 53% 47% / 53% 47% 51% 49%; }
  75% { border-radius: 51% 49% 47% 53% / 49% 53% 49% 51%; }
}

/* Icon bubble used on cards */
.kg-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 18px;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 20%, rgba(170, 242, 56, 0.55), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(212, 245, 234, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(37, 74, 79, 0.12), inset 0 1px 1px #FFFFFF;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.kg-icon::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 70%; height: 70%;
  right: -10%; top: -12%;
  background: radial-gradient(circle at 40% 40%, rgba(214, 255, 150, 0.95), rgba(170, 242, 56, 0.55) 45%, transparent 72%);
  filter: blur(2px);
  animation: kg-liquid 9s ease-in-out infinite;
}
.kg-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.85) 0 18%, transparent 40%);
}
.kg-icon svg { width: 24px; height: 24px; position: relative; }
.kg-grid-2 > :nth-child(2n) .kg-icon::before,
.kg-grid-3 > :nth-child(2n) .kg-icon::before { animation-delay: -3s; }
.kg-grid-3 > :nth-child(3n) .kg-icon::before { animation-delay: -6s; }

/* Frame around video embeds */
.kg-frame {
  padding: 10px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(229, 247, 244, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--soft-shadow), inset 0 1px 0 #FFFFFF;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}
.kg-frame > .kg-frame-inner {
  border-radius: 21px;
  overflow: hidden;
  background: #E9F1EF;
}
.kg-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.kg-ratio-16x9 { aspect-ratio: 16 / 9; }

/* Edge-to-edge video: full viewport width, glass lines top and bottom */
.kg-bleed {
  position: relative;
  width: 100%;
  padding: 1px 0;
  background: linear-gradient(90deg, rgba(170, 242, 56, 0.1), rgba(214, 255, 150, 0.85), rgba(170, 242, 56, 0.1));
  box-shadow: 0 30px 80px rgba(25, 52, 58, 0.16), 0 0 50px rgba(170, 242, 56, 0.18);
}
.kg-bleed-inner { background: #0E1417; }
.kg-bleed-inner wistia-player { display: block; width: 100%; }
/* Desktop: stop growing at 1180px and become a rounded glass slab */
.kg-bleed { max-width: 1180px; margin: 0 auto; }
@media (min-width: 1181px) {
  .kg-bleed {
    padding: 1px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(214, 255, 150, 0.9), rgba(255, 255, 255, 0.9) 45%, rgba(170, 242, 56, 0.6));
  }
  .kg-bleed-inner { border-radius: 27px; overflow: hidden; }
}
.kg-ratio-9x16 { aspect-ratio: 9 / 16; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.kg-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 15px 28px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  color: #12191D;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  cursor: pointer;
  background:
    radial-gradient(circle at 86% 20%, rgba(170, 242, 56, 0.3), transparent 33%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(225, 246, 238, 0.42));
  -webkit-backdrop-filter: blur(20px) saturate(155%);
  backdrop-filter: blur(20px) saturate(155%);
  box-shadow:
    0 15px 38px rgba(35, 75, 79, 0.13),
    0 0 28px rgba(170, 242, 56, 0.42),
    inset 0 1px 1px #FFFFFF;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}
.kg-btn::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 44%;
  height: 100%;
  right: 4%;
  top: 0;
  background: radial-gradient(closest-side, rgba(214, 255, 150, 0.85), rgba(170, 242, 56, 0.45) 55%, transparent 100%);
  filter: blur(8px);
  animation: kg-btn-liquid 7s ease-in-out infinite;
  pointer-events: none;
  transition: opacity 0.35s ease, filter 0.35s ease;
}
.kg-btn:hover::before { filter: blur(6px) saturate(140%); }
@keyframes kg-btn-liquid {
  0%, 100% { transform: translateX(0) scale(1, 1);       border-radius: 50%; }
  33%      { transform: translateX(-40%) scale(1.2, 0.9); border-radius: 58% 42% 46% 54% / 50%; }
  66%      { transform: translateX(-12%) scale(0.9, 1.1); border-radius: 44% 56% 54% 46% / 50%; }
}
.kg-btn-quiet::before { opacity: 0.45; }
.kg-btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  transform: translateX(0) skewX(-18deg);
  transition: transform 0.75s var(--ease-out);
  pointer-events: none;
}
.kg-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 20px 44px rgba(35, 75, 79, 0.16),
    0 0 46px rgba(170, 242, 56, 0.68),
    inset 0 1px 1px #FFFFFF;
}
.kg-btn:hover::after { transform: translateX(420%) skewX(-18deg); }
.kg-btn:active { transform: translateY(-1px); }
.kg-btn .kg-arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}
.kg-btn:hover .kg-arrow { transform: translateX(5px); }

.kg-btn-lg { min-height: 62px; padding: 18px 34px; font-size: 1.05rem; }
.kg-btn-sm { min-height: 48px; padding: 11px 20px; font-size: 0.9rem; }

/* Primary CTA: dark graphite liquid glass so it pops on the white page */
.kg-btn:not(.kg-btn-quiet) {
  color: #FFFFFF;
  border-color: rgba(214, 255, 150, 0.38);
  background:
    radial-gradient(circle at 88% 18%, rgba(170, 242, 56, 0.34), transparent 38%),
    linear-gradient(135deg, rgba(38, 50, 55, 0.96), rgba(16, 22, 26, 0.94));
  box-shadow:
    0 16px 36px rgba(18, 25, 29, 0.28),
    0 0 30px rgba(170, 242, 56, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -10px 22px rgba(170, 242, 56, 0.14);
}
.kg-btn:not(.kg-btn-quiet)::before {
  opacity: 0.75;
  mix-blend-mode: screen;
}
.kg-btn:not(.kg-btn-quiet)::after {
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.32), transparent);
}
.kg-btn:not(.kg-btn-quiet) .kg-arrow { color: var(--lime); }
.kg-btn:not(.kg-btn-quiet):hover {
  box-shadow:
    0 20px 44px rgba(18, 25, 29, 0.32),
    0 0 50px rgba(170, 242, 56, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -10px 22px rgba(170, 242, 56, 0.2);
}
.kg-btn:not(.kg-btn-quiet):focus-visible { outline-color: var(--lime); }

/* Secondary: quieter glass with no lime glow */
.kg-btn-quiet {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(240, 246, 245, 0.45));
  box-shadow: 0 12px 30px rgba(35, 75, 79, 0.1), inset 0 1px 1px #FFFFFF, inset 0 0 0 1px rgba(17, 25, 28, 0.06);
}
.kg-btn-quiet:hover {
  box-shadow: 0 16px 36px rgba(35, 75, 79, 0.14), 0 0 26px rgba(170, 242, 56, 0.35), inset 0 1px 1px #FFFFFF;
}

.kg-btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.kg-btn-row-center { justify-content: center; }

.kg-textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  background:
    linear-gradient(90deg, #9BE22E, #E4FFB0, #9BE22E) 0 100% / 200% 3px no-repeat;
  border: 0;
  padding: 0 0 4px;
  cursor: pointer;
  font-size: 0.98rem;
  animation: kg-underline 5s ease-in-out infinite alternate;
  transition: background-size 0.35s ease;
}
.kg-textlink:hover { background-size: 200% 5px; }
@keyframes kg-underline { from { background-position: 0 100%; } to { background-position: 100% 100%; } }
.kg-textlink .kg-arrow { transition: transform 0.3s var(--ease-out); }
.kg-textlink:hover .kg-arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Floating navigation
   -------------------------------------------------------------------------- */

.kg-nav-wrap {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.kg-nav {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(100%, 1060px);
  min-height: 70px;
  padding: 10px 13px 10px 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(242, 249, 247, 0.55));
  box-shadow:
    0 15px 45px rgba(30, 58, 65, 0.12),
    inset 0 1px 0 #FFFFFF;
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  backdrop-filter: blur(24px) saturate(135%);
}

.kg-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  border-radius: 14px;
}
.kg-brand img {
  width: 44px; height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) drop-shadow(0 2px 6px rgba(170, 242, 56, 0.35));
  transition: transform 0.45s var(--ease-spring);
}
.kg-brand:hover img { transform: rotate(-6deg) scale(1.05); }
.kg-brand-text { display: flex; flex-direction: column; line-height: 1; }
.kg-brand-name {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.kg-brand-sub {
  margin-top: 3px;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.kg-nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.kg-nav-item {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0.78;
  transition: opacity 0.2s ease;
}
.kg-nav-item:hover,
.kg-nav-item.is-current { opacity: 1; }
.kg-nav-item:focus-visible { outline-offset: -2px; }

/* The liquid bubble that follows the hovered link */
.kg-nav-bubble {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 0;
  height: 46px;
  width: 0;
  margin-top: -23px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 18%, rgba(170, 242, 56, 0.42), transparent 34%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.74), rgba(212, 245, 234, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow:
    0 12px 30px rgba(37, 74, 79, 0.13),
    0 0 22px rgba(170, 242, 56, 0.22),
    inset 0 1px 1px #FFFFFF;
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  transition:
    width 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.58s cubic-bezier(0.22, 1.42, 0.36, 1),
    opacity 0.2s ease;
  will-change: transform, width;
}
.kg-nav-bubble { overflow: hidden; isolation: isolate; }
.kg-nav-bubble::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 60%; height: 150%;
  right: -8%; top: -30%;
  background: radial-gradient(ellipse, rgba(214, 255, 150, 0.8), rgba(170, 242, 56, 0.4) 45%, transparent 70%);
  filter: blur(4px);
  animation: kg-liquid 7s ease-in-out infinite;
}
.kg-nav-bubble.is-visible { opacity: 1; }
.kg-nav-bubble.is-instant { transition: opacity 0.2s ease; }
.kg-nav-bubble.is-moving {
  animation: kg-bubble-morph 0.58s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 12px 30px rgba(37, 74, 79, 0.13),
    0 0 30px rgba(170, 242, 56, 0.48),
    inset 0 1px 1px #FFFFFF;
}
@keyframes kg-bubble-morph {
  0%   { border-radius: 999px; }
  30%  { border-radius: 46% 54% 58% 42% / 62% 44% 56% 38%; }
  62%  { border-radius: 56% 44% 42% 58% / 40% 60% 42% 60%; }
  100% { border-radius: 999px; }
}

.kg-nav-cta { flex: none; margin-left: auto; }
.kg-nav-links + .kg-nav-cta { margin-left: 0; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.kg-section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.kg-section-tight { padding: clamp(56px, 7vw, 90px) 0; }
.kg-section-head {
  display: grid;
  justify-items: center;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}
.kg-section-head .kg-lede { max-width: 640px; }

.kg-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 auto 26px;
  max-width: 760px;
}
.kg-divider::before,
.kg-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.kg-divider span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.kg-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.kg-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kg-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.kg-hero {
  position: relative;
  min-height: min(100vh, 980px);
  display: flex;
  align-items: center;
  padding: 132px 0 56px;
}
.kg-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  gap: 40px;
  align-items: center;
}
.kg-hero-copy { display: grid; gap: 26px; justify-items: start; }
.kg-hero-copy .kg-lede { max-width: 540px; }
.kg-qualify {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}
.kg-qualify li { display: inline-flex; align-items: center; gap: 7px; }
.kg-qualify li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0 20%, var(--lime) 45%);
  box-shadow: 0 0 10px rgba(170, 242, 56, 0.8);
  animation: kg-drop 4.5s ease-in-out infinite;
}

/* Interactive acquisition-system visual */
.kg-visual {
  position: relative;
  height: 600px;
  perspective: 1200px;
}
.kg-visual > * {
  --px: 0px; --py: 0px; --rx: 0deg; --ry: 0deg;
  position: absolute;
  transform: translate3d(var(--px), var(--py), 0) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 170ms ease-out, box-shadow 0.35s ease, border-color 0.35s ease;
  transform-style: preserve-3d;
}
.kg-halo {
  inset: 8% 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 45%, rgba(117, 201, 239, 0.45), transparent 55%),
    radial-gradient(circle at 65% 62%, rgba(170, 242, 56, 0.35), transparent 50%),
    radial-gradient(circle at 30% 75%, rgba(240, 215, 170, 0.45), transparent 50%);
  filter: blur(60px);
  opacity: 0.8;
  animation: kg-halo 16s ease-in-out infinite alternate;
}
@keyframes kg-halo {
  from { translate: -3% 2%; scale: 1; }
  to   { translate: 4% -3%; scale: 1.08; }
}

.kg-orb {
  --size: 270px;
  width: var(--size);
  height: var(--size);
  left: calc(50% - var(--size) / 2);
  top: calc(50% - var(--size) / 2 + 4px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, #FFFFFF 0 4%, rgba(255, 255, 255, 0.64) 5% 18%, transparent 32%),
    radial-gradient(circle at 68% 70%, rgba(170, 242, 56, 0.62), transparent 30%),
    radial-gradient(circle at 33% 69%, rgba(92, 192, 231, 0.56), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(224, 245, 242, 0.28));
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.95),
    inset -18px -24px 50px rgba(92, 192, 231, 0.28),
    inset 16px 20px 44px rgba(255, 255, 255, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    0 40px 60px -30px rgba(25, 52, 58, 0.35);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
  overflow: hidden;
  animation: kg-wobble 9s ease-in-out infinite, kg-bob 7s ease-in-out infinite;
}
/* swirling liquid interior: lime + coastal blue currents */
.kg-orb::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 58% 42% 50% 50% / 50% 56% 44% 50%;
  background:
    radial-gradient(circle at 70% 68%, rgba(170, 242, 56, 0.65), transparent 38%),
    radial-gradient(circle at 30% 70%, rgba(92, 192, 231, 0.5), transparent 40%),
    radial-gradient(circle at 55% 30%, rgba(255, 255, 255, 0.6), transparent 36%);
  filter: blur(10px);
  opacity: 0.9;
  animation: kg-swirl 14s linear infinite;
}
@keyframes kg-swirl {
  0%   { transform: rotate(0deg) scale(1);    border-radius: 58% 42% 50% 50% / 50% 56% 44% 50%; }
  50%  { transform: rotate(180deg) scale(1.08); border-radius: 44% 56% 46% 54% / 56% 44% 56% 44%; }
  100% { transform: rotate(360deg) scale(1);  border-radius: 58% 42% 50% 50% / 50% 56% 44% 50%; }
}
@keyframes kg-bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}
/* strong internal highlight arc */
.kg-orb::after {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background: conic-gradient(from 200deg, transparent 0 62%, rgba(255, 255, 255, 0.85) 70%, transparent 80%);
  -webkit-mask: radial-gradient(circle, transparent 64%, #000 66%, #000 70%, transparent 72%);
  mask: radial-gradient(circle, transparent 64%, #000 66%, #000 70%, transparent 72%);
  filter: blur(1.5px);
  animation: kg-spin 11s linear infinite;
}
@keyframes kg-spin { to { transform: rotate(360deg); } }
.kg-orb-shadow {
  width: 240px; height: 34px;
  left: calc(50% - 120px);
  top: calc(50% + 150px);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(25, 52, 58, 0.18), transparent 70%);
  filter: blur(8px);
  animation: kg-shadow 7s ease-in-out infinite;
}
@keyframes kg-shadow {
  0%, 100% { scale: 1; opacity: 1; }
  50%      { scale: 0.88; opacity: 0.7; }
}

/* Floating interface cards */
.kg-float {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(229, 247, 244, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 27px;
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
  box-shadow:
    0 24px 70px rgba(25, 52, 58, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 0 22px rgba(255, 255, 255, 0.30);
}
.kg-float.is-tilting {
  border-color: rgba(214, 255, 150, 0.95);
  box-shadow:
    0 28px 74px rgba(25, 52, 58, 0.14),
    0 0 34px rgba(170, 242, 56, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 0 22px rgba(255, 255, 255, 0.30);
}
.kg-float-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.kg-float .kg-icon { width: 44px; height: 44px; border-radius: 15px; }
.kg-float .kg-icon svg { width: 21px; height: 21px; }
.kg-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(17, 25, 28, 0.06);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.kg-status .kg-dot { width: 7px; height: 7px; }
.kg-status-idle .kg-dot {
  background: #C9D3D6;
  box-shadow: none;
  animation: none;
}
.kg-float-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.kg-float-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.kg-float-meta { font-size: 0.8rem; line-height: 1.45; color: var(--muted); }

.kg-float-phone,
.kg-float-email,
.kg-float-ad,
.kg-toggle { animation: kg-drift 8s ease-in-out infinite; }
.kg-float-email { animation-duration: 9.5s; animation-delay: -3s; }
.kg-float-ad    { animation-duration: 10.5s; animation-delay: -6s; }
.kg-toggle      { animation-duration: 7s; animation-delay: -2s; }
@keyframes kg-drift {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -9px; }
}
.kg-float-phone { width: 262px; top: 3%; left: 0; }
.kg-float-email { width: 244px; top: 9%; right: 0; }
.kg-float-ad    { width: 280px; bottom: 0; right: 4%; }

.kg-float-email .kg-status { transition: background 0.3s ease; }
.kg-float-email.is-off { opacity: 0.72; }

.kg-ad-preview {
  position: relative;
  height: 96px;
  margin: 4px 0 6px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(170, 242, 56, 0.55), transparent 45%),
    linear-gradient(135deg, #16242A 0%, #22402A 55%, #4E9A0C 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.kg-bars {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  height: 62px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.kg-bars span {
  flex: 1;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(214, 255, 150, 0.95), rgba(170, 242, 56, 0.55));
  box-shadow: 0 0 14px rgba(170, 242, 56, 0.45);
  transform-origin: bottom;
  animation: kg-bar-grow 1.2s var(--ease-out) both;
}
.kg-bars span:nth-child(1) { height: 30%; animation-delay: 0.3s; }
.kg-bars span:nth-child(2) { height: 48%; animation-delay: 0.42s; }
.kg-bars span:nth-child(3) { height: 70%; animation-delay: 0.54s; }
.kg-bars span:nth-child(4) { height: 96%; animation-delay: 0.66s; }
@keyframes kg-bar-grow { from { transform: scaleY(0.1); opacity: 0.4; } to { transform: scaleY(1); opacity: 1; } }

/* Small glass toggle capsule */
.kg-toggle {
  left: 5%;
  bottom: 20%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(229, 247, 244, 0.45));
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 14px 34px rgba(30, 58, 65, 0.12), inset 0 1px 0 #FFFFFF;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.kg-switch {
  position: relative;
  width: 44px; height: 26px;
  border-radius: 999px;
  background: rgba(18, 25, 29, 0.1);
  box-shadow: inset 0 1px 3px rgba(18, 25, 29, 0.12);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.kg-switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFFFF, #EEF4F3);
  box-shadow: 0 3px 8px rgba(18, 25, 29, 0.2);
  transition: transform 0.45s var(--ease-spring);
}
.kg-toggle[aria-pressed="true"] .kg-switch {
  background: linear-gradient(135deg, var(--lime), #C8FF6A, var(--lime));
  background-size: 200% 100%;
  animation: kg-liquid-text 3s ease-in-out infinite alternate;
  box-shadow: 0 0 16px rgba(170, 242, 56, 0.6);
}
.kg-toggle[aria-pressed="true"] .kg-switch::after { transform: translateX(18px); }

/* --------------------------------------------------------------------------
   Metrics strip
   -------------------------------------------------------------------------- */

.kg-metric { display: grid; gap: 6px; align-content: start; }
.kg-metric-value {
  font-weight: 800;
  font-size: clamp(2.3rem, 3.4vw, 3.1rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 4px 0 2px;
}
.kg-metric-desc { font-size: 0.92rem; line-height: 1.5; color: var(--muted); }

/* --------------------------------------------------------------------------
   Service / problem cards
   -------------------------------------------------------------------------- */

.kg-feature { display: grid; gap: 18px; align-content: start; }
.kg-feature-head { display: flex; align-items: center; gap: 14px; }
.kg-feature-num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.kg-feature-wide { grid-column: 1 / -1; }
.kg-feature-wide .kg-copy { display: block; columns: 2; column-gap: 48px; }
.kg-feature-wide .kg-copy > * { break-inside: avoid; margin-bottom: 14px; }

.kg-problem { display: grid; gap: 14px; align-content: start; }
.kg-problem h3 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.kg-problem .kg-copy { gap: 10px; font-size: 0.97rem; }

/* Split layout: sticky heading left, content right */
.kg-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.kg-sticky { position: sticky; top: 120px; display: grid; gap: 22px; justify-items: start; }
.kg-sticky .kg-h2 { font-size: clamp(2.1rem, 3.5vw, 3.5rem); }

.kg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kg-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(17, 25, 28, 0.05);
  font-weight: 600;
}
.kg-steps li span {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(170, 242, 56, 0.35);
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0 16%, rgba(170, 242, 56, 0.75) 60%);
  box-shadow: inset 0 1px 1px #FFFFFF, 0 0 12px rgba(170, 242, 56, 0.5);
}
.kg-steps li.is-you { background: rgba(170, 242, 56, 0.22); }

/* --------------------------------------------------------------------------
   Wall of success
   -------------------------------------------------------------------------- */

.kg-proof { padding: 12px; }
.kg-proof-media { border-radius: 19px; overflow: hidden; background: #EEF3F2; }
.kg-proof-media img { width: 100%; height: auto; }
.kg-proof-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 20px 14px 10px;
}
.kg-proof-title {
  font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.kg-proof-desc { flex-basis: 100%; color: var(--muted); font-size: 0.97rem; }
.kg-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(229, 250, 205, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(35, 75, 79, 0.1), 0 0 18px rgba(170, 242, 56, 0.4), inset 0 1px 1px #FFFFFF;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  white-space: nowrap;
}
.kg-pill::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 60%; height: 220%;
  left: 20%; top: -60%;
  background: radial-gradient(ellipse, rgba(170, 242, 56, 0.7), transparent 65%);
  filter: blur(4px);
  animation: kg-liquid 8s ease-in-out infinite;
}
.kg-proof-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kg-proof-pair .kg-proof-media img { height: 100%; object-fit: cover; object-position: top; }
.kg-video-card { display: grid; gap: 14px; align-content: start; }
.kg-video-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.3;
}
.kg-video-card p { font-size: 0.93rem; color: var(--muted); }
.kg-clips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kg-clips .kg-frame { padding: 7px; border-radius: 24px; }
.kg-clips .kg-frame-inner { border-radius: 18px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.kg-footer { position: relative; padding: 0 0 28px; }
.kg-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.kg-footer h4 {
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.kg-footer-links { display: grid; gap: 8px; justify-items: start; }
.kg-footer-links a,
.kg-footer-links button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 0.97rem;
  cursor: pointer;
  transition: color 0.2s ease;
}
.kg-footer-links a:hover,
.kg-footer-links button:hover { color: var(--ink); text-shadow: 0 0 14px rgba(170, 242, 56, 0.9); }
.kg-socials { display: flex; gap: 10px; margin-top: 18px; }
.kg-socials a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(229, 247, 244, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(30, 58, 65, 0.1), inset 0 1px 0 #FFFFFF;
  transition: box-shadow 0.3s ease, transform 0.3s var(--ease-out);
}
.kg-socials a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30, 58, 65, 0.12), 0 0 20px rgba(170, 242, 56, 0.45), inset 0 1px 0 #FFFFFF; }
.kg-legal {
  display: grid;
  gap: 6px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Lead capture overlay (email → Calendly)
   -------------------------------------------------------------------------- */

.kg-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(236, 244, 243, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  animation: kg-fade 0.3s ease both;
}
@keyframes kg-fade { from { opacity: 0; } to { opacity: 1; } }
.kg-modal-card {
  position: relative;
  width: min(100%, 520px);
  padding: clamp(28px, 5vw, 44px);
  overflow: hidden;
  text-align: center;
  animation: kg-rise 0.5s var(--ease-spring) both;
}
@keyframes kg-rise { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
.kg-modal-card .kg-orb-mini {
  width: 92px; height: 92px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, #FFFFFF 0 6%, rgba(255, 255, 255, 0.64) 7% 20%, transparent 34%),
    radial-gradient(circle at 68% 70%, rgba(170, 242, 56, 0.7), transparent 34%),
    radial-gradient(circle at 33% 69%, rgba(92, 192, 231, 0.6), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(224, 245, 242, 0.35));
  box-shadow: inset 0 2px 5px #FFFFFF, inset -8px -10px 22px rgba(92, 192, 231, 0.3), 0 18px 34px -14px rgba(25, 52, 58, 0.35);
  transition: transform 0.6s var(--ease-spring);
  animation: kg-wobble 6s ease-in-out infinite, kg-bob 5s ease-in-out infinite;
}
.kg-modal-title {
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}
.kg-modal-sub { margin-top: 18px; color: var(--muted); font-size: 1rem; }
.kg-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 16px rgba(30, 58, 65, 0.1);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.kg-capture {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 28px auto 0;
  padding: 7px 7px 7px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.98);
  background:
    radial-gradient(circle at 92% 20%, rgba(170, 242, 56, 0.4), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(225, 246, 238, 0.5));
  box-shadow:
    0 15px 38px rgba(35, 75, 79, 0.13),
    0 0 26px rgba(170, 242, 56, 0.3),
    inset 0 1px 1px #FFFFFF;
  -webkit-backdrop-filter: blur(20px) saturate(155%);
  backdrop-filter: blur(20px) saturate(155%);
  transition: box-shadow 0.35s ease, width 0.55s var(--ease-out), padding 0.55s var(--ease-out);
}
.kg-capture:focus-within {
  box-shadow:
    0 15px 38px rgba(35, 75, 79, 0.15),
    0 0 40px rgba(170, 242, 56, 0.55),
    inset 0 1px 1px #FFFFFF;
}
.kg-capture.has-error { box-shadow: 0 15px 38px rgba(35, 75, 79, 0.13), 0 0 0 2px rgba(214, 90, 70, 0.45), inset 0 1px 1px #FFFFFF; }
.kg-capture input {
  flex: 1;
  min-width: 0;
  height: 50px;
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
}
.kg-capture input::placeholder { color: #8C979C; }
.kg-capture input:focus-visible { outline: none; }
.kg-capture-go {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  background:
    radial-gradient(circle at 30% 25%, #FFFFFF 0 10%, transparent 40%),
    radial-gradient(circle at 70% 72%, rgba(170, 242, 56, 0.9), rgba(170, 242, 56, 0.5) 60%);
  box-shadow: 0 10px 22px rgba(35, 75, 79, 0.16), 0 0 22px rgba(170, 242, 56, 0.55), inset 0 1px 1px #FFFFFF;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s ease;
  overflow: hidden;
  isolation: isolate;
}
.kg-capture-go::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.85), transparent 45%);
  animation: kg-liquid 6s ease-in-out infinite;
}
.kg-capture-go:hover { transform: scale(1.06); box-shadow: 0 12px 26px rgba(35, 75, 79, 0.18), 0 0 32px rgba(170, 242, 56, 0.75), inset 0 1px 1px #FFFFFF; }
.kg-capture-go svg { width: 22px; height: 22px; transition: transform 0.35s var(--ease-out); }
.kg-capture-go:hover svg { transform: translateX(2px); }
.kg-capture-error { min-height: 1.4em; margin-top: 10px; font-size: 0.85rem; color: #B2452F; }
.kg-capture-note { margin-top: 4px; font-size: 0.82rem; color: var(--muted); }

/* Liquid "sent" sequence: the capsule melts into an orb, ripples, confirms */
.kg-capture.is-sending {
  width: 66px;
  padding: 5px;
  margin-left: auto;
  margin-right: auto;
}
.kg-capture.is-sending input { opacity: 0; width: 0; flex: 0; padding: 0; transition: opacity 0.2s ease; }
.kg-capture.is-sending .kg-capture-go { animation: kg-orb-breathe 1.1s ease-in-out infinite; }
@keyframes kg-orb-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 22px rgba(35, 75, 79, 0.16), 0 0 22px rgba(170, 242, 56, 0.55), inset 0 1px 1px #FFFFFF; }
  50% { transform: scale(1.08); box-shadow: 0 12px 26px rgba(35, 75, 79, 0.18), 0 0 48px rgba(170, 242, 56, 0.9), inset 0 1px 1px #FFFFFF; }
}
.kg-ripple {
  position: absolute;
  left: 50%; top: 50%;
  width: 66px; height: 66px;
  margin: -33px 0 0 -33px;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: radial-gradient(circle, rgba(170, 242, 56, 0.28), transparent 65%);
  box-shadow: 0 0 30px rgba(170, 242, 56, 0.4);
  animation: kg-ripple 1.4s var(--ease-out) forwards;
}
.kg-ripple:nth-child(2) { animation-delay: 0.22s; }
.kg-ripple:nth-child(3) { animation-delay: 0.44s; }
@keyframes kg-ripple { from { transform: scale(0.8); opacity: 0.9; } to { transform: scale(5.2); opacity: 0; } }
.kg-modal-card.is-done .kg-orb-mini { transform: scale(1.12) rotate(-8deg); }
.kg-sent {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 22px;
  animation: kg-rise 0.5s var(--ease-spring) both;
}
.kg-sent strong { font-size: 1.05rem; }
.kg-sent span { color: var(--muted); font-size: 0.92rem; }
.kg-check path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: kg-draw 0.5s 0.1s var(--ease-out) forwards;
}
@keyframes kg-draw { to { stroke-dashoffset: 0; } }

/* --------------------------------------------------------------------------
   Reveal on scroll (only when JS is running)
   -------------------------------------------------------------------------- */

.kg-js .kg-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.kg-js .kg-reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .kg-hero { min-height: 0; padding-top: 128px; }
  .kg-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .kg-hero-copy { max-width: 720px; }
  .kg-visual { width: 100%; max-width: 640px; margin: 0 auto; height: 560px; }
  .kg-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kg-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kg-split { grid-template-columns: minmax(0, 1fr); }
  .kg-sticky { position: static; }
  .kg-clips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kg-nav-item { padding: 10px 13px; font-size: 0.9rem; }
}

@media (max-width: 900px) {
  .kg-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .kg-feature-wide .kg-copy { columns: 1; }
  .kg-footer-grid { grid-template-columns: 1fr 1fr; }
  .kg-footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body.kg { font-size: 16px; }
  .kg-nav-wrap { top: 10px; padding: 0 10px; }
  .kg-nav { min-height: 62px; padding: 8px 8px 8px 18px; gap: 10px; }
  .kg-nav-links { display: none; }
  .kg-nav-cta { margin-left: auto !important; }
  .kg-nav .kg-btn-sm { min-height: 46px; padding: 10px 16px; font-size: 0.85rem; }
  .kg-brand img { width: 38px; height: 38px; }
  .kg-brand-name { font-size: 1rem; }

  .kg-hero { padding: 104px 0 36px; }
  .kg-hero-copy { gap: 20px; }
  .kg-hero-copy .kg-btn { width: 100%; }
  .kg-visual { height: 470px; max-width: 420px; }
  .kg-orb { --size: 195px; }
  .kg-orb-shadow { width: 170px; left: calc(50% - 85px); top: calc(50% + 108px); }
  .kg-float { padding: 14px 15px; gap: 5px; border-radius: 22px; }
  .kg-float .kg-icon { width: 36px; height: 36px; border-radius: 12px; }
  .kg-float .kg-icon svg { width: 18px; height: 18px; }
  .kg-float-title { font-size: 0.88rem; }
  .kg-float-meta { font-size: 0.72rem; }
  .kg-float-label { font-size: 0.6rem; }
  .kg-status { font-size: 0.58rem; padding: 4px 8px; }
  .kg-float-phone { width: 200px; top: 0; left: 0; }
  .kg-float-email { width: 182px; top: 22%; right: 0; }
  .kg-float-ad { width: 206px; right: 2%; bottom: 0; }
  .kg-ad-preview { height: 66px; border-radius: 14px; }
  .kg-bars { height: 42px; bottom: 10px; left: 12px; right: 12px; gap: 7px; }
  .kg-toggle { left: 0; bottom: 30%; font-size: 0.7rem; padding: 7px 8px 7px 12px; }

  .kg-grid-4, .kg-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .kg-clips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kg-proof-pair { grid-template-columns: minmax(0, 1fr); }
  .kg-btn-row .kg-btn { width: 100%; }
  .kg-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}

@media (max-width: 380px) {
  .kg-visual { height: 440px; }
  .kg-float-phone { width: 180px; }
  .kg-float-email { width: 164px; }
  .kg-float-ad { width: 188px; }
  .kg-brand-sub { display: none; }
}

/* Pause every loop that is scrolled out of view (set by kairo-glass.js) */
.kg-offscreen,
.kg-offscreen *,
.kg-offscreen *::before,
.kg-offscreen *::after,
.kg-offscreen::before,
.kg-offscreen::after { animation-play-state: paused !important; }

/* Phones & tablets: lighter glass so scrolling stays smooth */
@media (max-width: 760px), (hover: none) {
  body.kg { background-attachment: scroll; }
  .kg-textlink { min-height: 44px; }
  .kg-footer-links a, .kg-footer-links button { min-height: 40px; display: inline-flex; align-items: center; }
  .kg-brand { min-height: 44px; }
  .kg-pill { white-space: normal; text-align: center; line-height: 1.4; }
  .kg-legal { font-size: 0.85rem; }
  .kg-float {
    -webkit-backdrop-filter: blur(12px) saturate(135%);
    backdrop-filter: blur(12px) saturate(135%);
  }
  /* No backdrop blur on the many page panels: stacked blur layers over video
     iframes exhaust mobile Safari's memory and it reloads the tab to the top. */
  .kg-panel, .kg-card, .kg-frame {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .kg-panel { background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 249, 246, 0.8)); }
  .kg-card, .kg-frame { background: rgba(255, 255, 255, 0.86); }
  .kg-ambient::before, .kg-ambient::after { filter: blur(50px); }
  .kg-panel-lime::before { filter: blur(14px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kg *, .kg *::before, .kg *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .kg-js .kg-reveal { opacity: 1; transform: none; }
}
