/* Katapult hub — page styles built on colors_and_type.css */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--fg1);
  background: var(--bg1);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* =========================================================================
   NAV
   ========================================================================= */
.kh-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              backdrop-filter var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.kh-nav--solid {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom-color: var(--border-subtle);
}
.kh-nav__logo { display: flex; align-items: center; }
.kh-nav__logo img { height: 28px; width: auto; transition: opacity var(--dur-base) var(--ease-out); }
.kh-nav__logo .is-white { position: absolute; opacity: 0; }
.kh-nav:not(.kh-nav--solid) .is-blue { opacity: 0; }
.kh-nav:not(.kh-nav--solid) .is-white { opacity: 1; }
.kh-nav__right { display: flex; align-items: center; gap: 28px; }
.kh-nav__links { display: flex; gap: 28px; }
.kh-nav__links a {
  font-size: 14px; font-weight: var(--fw-regular); letter-spacing: -0.005em;
  text-decoration: none; color: inherit; opacity: 0.9;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.kh-nav__links a:hover { opacity: 1; }
.kh-nav:not(.kh-nav--solid) .kh-nav__links a { color: var(--k-white); }
.kh-nav:not(.kh-nav--solid) .k-btn--ghost {
  color: var(--k-white); border-color: rgba(255,255,255,0.4);
}
.kh-nav:not(.kh-nav--solid) .k-btn--ghost:hover {
  border-color: var(--k-white); background: rgba(255,255,255,0.08);
}
@media (max-width: 720px) { .kh-nav__links { display: none; } }

/* =========================================================================
   HERO
   ========================================================================= */
.kh-hero {
  position: relative;
  min-height: 100vh;
  display: grid; align-items: end;
  color: var(--fg-inverse);
  overflow: hidden;
  padding-bottom: clamp(60px, 10vh, 120px);
}
.kh-hero__bg {
  position: absolute; inset: 0;
  background-image: url('assets/images/hero/hero-main.jpg');
  background-size: cover; background-position: center 35%;
  filter: saturate(0.85) brightness(0.78);
  transform: scale(1.02);
}
.kh-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,18,101,0.55) 0%, rgba(13,18,101,0.25) 35%, rgba(13,18,101,0.75) 100%);
}
.kh-hero__inner {
  position: relative; z-index: 2;
  max-width: var(--max-w-wide);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: end;
}
@media (min-width: 960px) {
  .kh-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 80px; }
}
.kh-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}
.kh-hero__eyebrow::before {
  content: ""; width: 32px; height: 1px; background: rgba(255,255,255,0.7);
}
.kh-hero h1 {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: clamp(2.75rem, 5.2vw, 5rem);
  line-height: 1.02; letter-spacing: -0.03em;
  margin: 0 0 28px; text-wrap: balance;
}
.kh-hero h1 em {
  font-style: italic; font-weight: 300;
  color: rgba(255,255,255,0.85);
}
.kh-hero__right { align-self: end; }
.kh-hero__right p {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.55; color: rgba(255,255,255,0.88);
  margin: 0 0 24px; max-width: 42ch; text-wrap: pretty;
}
.kh-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
/* Ghost button on dark hero — invert colors */
.kh-hero__ctas .k-btn--ghost {
  color: var(--k-white);
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
}
.kh-hero__ctas .k-btn--ghost:hover {
  color: var(--k-white);
  border-color: var(--k-white);
  background: rgba(255, 255, 255, 0.1);
}

/* Six-dot mark echo (logo motif) */
.kh-hero__dots {
  position: absolute; z-index: 1;
  right: clamp(20px, 5vw, 80px);
  top: clamp(120px, 18vh, 180px);
  display: grid;
  grid-template-columns: repeat(3, 10px);
  gap: 22px;
  opacity: 0.8;
}
.kh-hero__dots span {
  width: 10px; height: 10px; border-radius: 9999px;
  background: var(--k-brand-blue);
  box-shadow: 0 0 20px rgba(80,99,255,0.45);
}
.kh-hero__dots span:nth-child(4) { grid-column-start: 2; } /* offset leg */
.kh-hero__dots span:nth-child(5) { grid-column-start: 3; }
.kh-hero__dots span:nth-child(6) { grid-column-start: 4; }
@media (max-width: 760px) { .kh-hero__dots { display: none; } }

/* Big circle echoing logo dots */
.kh-hero::before {
  content: ""; position: absolute; z-index: 1;
  width: min(70vw, 720px); height: min(70vw, 720px);
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.10);
  right: -18vw; bottom: -32vh;
  pointer-events: none;
}

.kh-scroll {
  position: absolute; z-index: 2;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.7); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none;
}
.kh-scroll svg { width: 22px; height: 22px; animation: kh-bob 2.2s ease-in-out infinite; }
@keyframes kh-bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(6px);} }

/* =========================================================================
   INTRO (manifesto strip)
   ========================================================================= */
.kh-intro {
  position: relative;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--gutter) clamp(60px, 10vh, 120px);
}
.kh-intro__grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  align-items: start;
}
@media (min-width: 880px) {
  .kh-intro__grid { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 80px; }
}
.kh-intro__eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg2);
  padding-top: 8px;
}
.kh-intro__eyebrow::before {
  content: ""; display: block; width: 40px; height: 1px;
  background: var(--k-near-black); margin-bottom: 20px; opacity: 0.6;
}
.kh-intro__body p {
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  font-weight: var(--fw-light); line-height: 1.35;
  color: var(--fg1); margin: 0 0 24px; text-wrap: pretty;
  letter-spacing: -0.015em;
}
.kh-intro__body p:last-child { margin-bottom: 0; }
.kh-intro__body b {
  font-weight: var(--fw-bold); color: var(--k-brand-blue);
  font-style: normal;
}

/* =========================================================================
   STATS BAND
   ========================================================================= */
.kh-stats {
  background: var(--k-navy);
  color: var(--fg-inverse);
  padding: clamp(64px, 10vh, 120px) var(--gutter);
  position: relative; overflow: hidden;
}
.kh-stats__circle {
  position: absolute; pointer-events: none;
  border-radius: 9999px; border: 1px solid rgba(255,255,255,0.07);
}
.kh-stats__circle--a { width: 420px; height: 420px; right: -80px; top: -180px; }
.kh-stats__circle--b { width: 280px; height: 280px; left: -140px; bottom: -120px;
  background: rgba(80,99,255,0.10); border: none; }
.kh-stats__inner {
  max-width: var(--max-w-wide); margin: 0 auto;
  position: relative; z-index: 1;
}
.kh-stats__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  margin-bottom: 56px;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.kh-stats__eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.kh-stats__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--fw-bold); letter-spacing: -0.02em;
  max-width: 640px; margin: 12px 0 0; line-height: 1.15;
  text-wrap: balance;
}
.kh-stats__grid {
  display: grid; grid-template-columns: 1fr; gap: 48px;
}
@media (min-width: 720px) { .kh-stats__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.kh-stat__n {
  font-weight: var(--fw-bold);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 0.95; letter-spacing: -0.04em;
  display: flex; align-items: baseline; gap: 6px;
}
.kh-stat__n sup {
  font-size: 0.3em; font-weight: var(--fw-regular);
  color: var(--k-brand-blue); letter-spacing: 0;
  transform: translateY(-0.2em);
}
.kh-stat__rule {
  width: 40px; height: 1px; background: var(--k-brand-blue);
  margin: 24px 0 18px;
}
.kh-stat__label {
  font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.78);
  max-width: 22ch;
}

/* =========================================================================
   ECOSYSTEM
   ========================================================================= */
.kh-eco {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--gutter);
}
.kh-eco__head {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  margin-bottom: 56px; align-items: end;
}
@media (min-width: 880px) {
  .kh-eco__head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 80px; }
}
.kh-eco__eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg2); margin-bottom: 16px;
}
.kh-eco h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: var(--fw-bold); letter-spacing: -0.025em;
  margin: 0; line-height: 1.02; text-wrap: balance;
}
.kh-eco h2 em { font-style: italic; font-weight: 300; color: var(--fg2); }
.kh-eco__sub {
  color: var(--fg2); font-size: 1.0625rem; line-height: 1.6;
  max-width: 42ch; margin: 0;
}
.kh-eco__grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .kh-eco__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .kh-eco__grid { grid-template-columns: repeat(6, 1fr); } }

.kh-card {
  position: relative; isolation: isolate;
  background: var(--bg1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--accent, var(--k-brand-blue));
  padding: 32px 28px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
  text-decoration: none; color: inherit;
  min-height: 280px;
  overflow: hidden;
}
@media (min-width: 1080px) {
  /* 6-col feature layout: first card spans 3, last one spans 3, middle three take 2 each */
  .kh-card:nth-child(1) { grid-column: span 3; min-height: 340px; }
  .kh-card:nth-child(2) { grid-column: span 3; min-height: 340px; }
  .kh-card:nth-child(3) { grid-column: span 2; }
  .kh-card:nth-child(4) { grid-column: span 2; }
  .kh-card:nth-child(5) { grid-column: span 2; }
}
.kh-card::after {
  /* corner-glow from accent */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at 100% 0%, color-mix(in srgb, var(--accent, #5063FF) 9%, transparent), transparent 50%);
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
  pointer-events: none; z-index: -1;
}
.kh-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.kh-card:hover::after { opacity: 1; }

.kh-card__top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.kh-card__tag {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.kh-card__num {
  font-size: 11px; font-weight: 500; color: var(--fg2);
  letter-spacing: 0.08em; font-variant-numeric: tabular-nums;
}
.kh-card__name {
  font-size: clamp(1.375rem, 1.8vw, 1.75rem);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em; margin: 0; line-height: 1.1;
}
.kh-card__desc {
  font-size: 15px; line-height: 1.55; color: var(--fg2);
  margin: 0; flex: 1; text-wrap: pretty;
}
.kh-card__visit {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: var(--fw-bold); font-size: 14px;
  color: var(--accent); align-self: flex-start;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--accent);
  transition: gap var(--dur-base) var(--ease-out);
}
.kh-card:hover .kh-card__visit { gap: 12px; }

/* dot motif in top-right of featured cards */
.kh-card__mark {
  position: absolute; top: 28px; right: 28px;
  display: grid; grid-template-columns: repeat(2, 6px); gap: 6px;
  opacity: 0.22;
}
.kh-card__mark span {
  width: 6px; height: 6px; border-radius: 9999px;
  background: var(--accent);
}

/* =========================================================================
   PHILOSOPHY — pull quote
   ========================================================================= */
.kh-philos {
  background: var(--k-off-white);
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  position: relative; overflow: hidden;
}
.kh-philos::before {
  content: ""; position: absolute;
  width: 640px; height: 640px; border-radius: 9999px;
  border: 1px solid rgba(80,99,255,0.12);
  left: -240px; top: -240px;
  pointer-events: none;
}
.kh-philos__inner {
  max-width: 960px; margin: 0 auto;
  position: relative;
}
.kh-philos__eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg2); margin-bottom: 32px;
}
.kh-philos blockquote {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: var(--fw-light);
  line-height: 1.25; letter-spacing: -0.02em;
  margin: 0 0 40px; text-wrap: balance; color: var(--fg1);
}
.kh-philos blockquote b {
  font-weight: var(--fw-bold); color: var(--k-brand-blue);
  font-style: normal;
}
.kh-philos__meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 14px; color: var(--fg2);
  padding-top: 28px; border-top: 1px solid var(--border-subtle);
}
.kh-philos__meta strong {
  font-weight: var(--fw-bold); color: var(--fg1);
}

/* =========================================================================
   CONTACT / CTA
   ========================================================================= */
.kh-cta {
  background: var(--k-brand-blue); color: var(--fg-inverse);
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  position: relative; overflow: hidden;
}
.kh-cta::before {
  content: ""; position: absolute;
  width: 520px; height: 520px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.18);
  right: -180px; top: -180px;
}
.kh-cta::after {
  content: ""; position: absolute;
  width: 360px; height: 360px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.12);
  left: -120px; bottom: -120px;
}
.kh-cta__inner {
  max-width: var(--max-w-wide); margin: 0 auto;
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 40px;
  align-items: end;
}
@media (min-width: 880px) {
  .kh-cta__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 80px; }
}
.kh-cta h2 {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: var(--fw-bold); letter-spacing: -0.03em;
  line-height: 1.02; margin: 0; text-wrap: balance;
}
.kh-cta h2 em {
  font-style: italic; font-weight: 300; color: rgba(255,255,255,0.75);
}
.kh-cta__right { display: flex; flex-direction: column; gap: 24px; }
.kh-cta__right p {
  font-size: 1.0625rem; line-height: 1.55;
  color: rgba(255,255,255,0.88); margin: 0; max-width: 38ch;
}
.kh-cta__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.kh-cta .k-btn--inverse { background: var(--k-white); color: var(--k-navy); }
.kh-cta .k-btn--inverse:hover { background: var(--k-off-white); }
.kh-cta .k-btn--ghost {
  color: var(--k-white); border-color: rgba(255,255,255,0.45);
}
.kh-cta .k-btn--ghost:hover {
  border-color: var(--k-white); background: rgba(255,255,255,0.1);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.kh-foot {
  background: var(--k-navy); color: var(--fg-inverse);
  padding: clamp(56px, 8vh, 80px) var(--gutter) 28px;
}
.kh-foot__inner {
  max-width: var(--max-w-wide); margin: 0 auto;
}
.kh-foot__top {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 720px) {
  .kh-foot__top { grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
}
.kh-foot__brand { display: flex; flex-direction: column; gap: 20px; max-width: 300px; }
.kh-foot__brand img { height: 26px; width: auto; }
.kh-foot__brand p { font-size: 14px; color: rgba(255,255,255,0.72); line-height: 1.55; margin: 0; }
.kh-foot__col h4 {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  margin: 0 0 16px;
}
.kh-foot__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.kh-foot__col a {
  color: rgba(255,255,255,0.9); text-decoration: none;
  font-size: 14px; display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--dur-fast) var(--ease-out);
}
.kh-foot__col a:hover { color: var(--k-white); }
.kh-foot__col a span { color: rgba(255,255,255,0.4); transition: transform var(--dur-base) var(--ease-out); }
.kh-foot__col a:hover span { transform: translateX(3px); color: var(--k-brand-blue); }
.kh-foot__bot {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.6);
}
.kh-foot__bot a {
  color: rgba(255,255,255,0.8); text-decoration: none;
}
.kh-foot__bot a:hover { color: var(--k-white); }
.kh-foot__addr {
  display: flex; gap: 18px; flex-wrap: wrap;
}

/* =========================================================================
   Fade-up on scroll
   ========================================================================= */
.fade-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}
.fade-up.is-in { opacity: 1; transform: none; }
.fade-up.d-1 { transition-delay: 80ms; }
.fade-up.d-2 { transition-delay: 160ms; }
.fade-up.d-3 { transition-delay: 240ms; }
.fade-up.d-4 { transition-delay: 320ms; }
.fade-up.d-5 { transition-delay: 400ms; }

/* Focus rings everywhere */
a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
