/**
 * km-redesign.css  —  MUHIZI Designing & Construction
 * Complete overhaul v3. Loaded last — wins all specificity.
 *
 * NEW PALETTE
 *   Charcoal  #1c1c1e   deep backgrounds, text
 *   Sand      #e8dcc8   warm neutral surface, cards
 *   Terracotta #c05a2f  primary accent, CTAs
 *   Rust-light #e07a52  hover / lighter accent
 *   Ivory     #f8f4ee   page background
 *   White     #ffffff   cards, contrast
 *   Stone     #6b5e52   muted body text
 *
 * No section-index numbers anywhere.
 */

/* ══════════════════════════════════════════════════════════
   GLOBAL FULL-WIDTH OVERRIDE
   Make every .container behave like .container-fluid so all
   sections stretch edge-to-edge. Side padding is kept for
   readability.
══════════════════════════════════════════════════════════ */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl {
  max-width: 100% !important;
  width: 100% !important;
  padding-left:  clamp(1rem, 4vw, 3rem) !important;
  padding-right: clamp(1rem, 4vw, 3rem) !important;
}

/* Strip explicit max-width caps on every custom grid/head */
.km-stat-ribbon__grid,
.km-services-strip__head,
.km-services-grid,
.km-projects-gallery__head,
.km-projects-gallery__grid,
.km-projects-gallery__more,
.km-featured-slider-section .container,
.km-values-section__head,
.km-values-grid,
.km-about-pillars__grid,
.page-architecture .km-arch-gallery-section .container,
.km-materials-grid {
  max-width: 100% !important;
  padding-left:  0 !important;
  padding-right: 0 !important;
}

/* Hero heading containers stay readable — cap the text block, not the bg */
.km-page-hero .container,
.km-subpage-hero .container {
  max-width: 100% !important;
}

/* ── Token reset ─────────────────────────────────────────── */
:root {
  --r-charcoal:      #1c1c1e;
  --r-charcoal-80:   rgba(28,28,30,0.80);
  --r-sand:          #e8dcc8;
  --r-sand-light:    #f2ece0;
  --r-terra:         #c05a2f;
  --r-terra-light:   #e07a52;
  --r-terra-pale:    rgba(192,90,47,0.10);
  --r-ivory:         #f8f4ee;
  --r-white:         #ffffff;
  --r-stone:         #6b5e52;
  --r-stone-light:   rgba(107,94,82,0.45);

  /* keep legacy vars mapped so old CSS doesn't break */
  --km-gold:         var(--r-terra);
  --km-gold-light:   var(--r-terra-light);
  --km-gold-muted:   var(--r-terra-pale);
  --km-navy:         var(--r-charcoal);
  --km-navy-deep:    #111113;
  --km-cream:        var(--r-sand);
  --km-cream-soft:   var(--r-sand-light);
  --km-white:        var(--r-white);

  --r-radius:        20px;
  --r-radius-sm:     12px;
  --r-radius-pill:   100px;

  --r-ease:          cubic-bezier(0.22,1,0.36,1);
  --r-ease-spring:   cubic-bezier(0.34,1.56,0.64,1);

  --r-shadow:        0 6px 32px rgba(28,28,30,0.10), 0 2px 8px rgba(28,28,30,0.06);
  --r-shadow-raise:  0 20px 56px rgba(28,28,30,0.18), 0 4px 16px rgba(28,28,30,0.10);

  --km-section-pad:  clamp(5rem,10vw,8rem);
}

/* Nuke the old section-index class so even if spans remain they're invisible */
.km-section-index { display: none !important; }

/* ── Page background ─────────────────────────────────────── */
body { background: var(--r-ivory); }
body.page-home, body.page-site { background: var(--r-ivory); }

/* ── Global kicker ───────────────────────────────────────── */
.md-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--md-font-body), sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--r-terra);
  margin-bottom: 0.85rem;
}
.md-kicker::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--r-terra);
  flex-shrink: 0;
}
/* Override for dark sections */
.km-ceo-section .md-kicker,
.km-home-contact .md-kicker {
  color: var(--r-sand) !important;
}
.km-ceo-section .md-kicker::before,
.km-home-contact .md-kicker::before {
  background: var(--r-sand) !important;
}

/* ── Global section title ────────────────────────────────── */
.md-section-title {
  font-family: var(--md-font-display), serif;
  font-weight: 800;
  font-size: clamp(2rem,4.5vw,3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--r-charcoal);
  margin: 0 0 1.25rem;
}
.md-section-title .md-section-title__accent {
  color: var(--r-terra);
  display: block;
}

/* ── Hero CTA pill ───────────────────────────────────────── */
.km-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--md-font-body), sans-serif;
  font-weight: 700;
  font-size: clamp(0.78rem,1.5vw,0.9rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--r-white) !important;
  background: var(--r-terra);
  border-radius: var(--r-radius-pill);
  padding: 0.88rem 2.4rem;
  text-decoration: none !important;
  transition: background 0.3s ease, transform 0.3s var(--r-ease), box-shadow 0.3s ease;
  box-shadow: 0 4px 24px rgba(192,90,47,0.42);
}
.km-hero-cta::after { content: "→"; display: inline-block; transition: transform 0.3s var(--r-ease); }
.km-hero-cta:hover  { background: var(--r-terra-light); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(192,90,47,0.55); }
.km-hero-cta:hover::after { transform: translateX(4px); }

/* ── Carousel indicators ─────────────────────────────────── */
.page-home #carousel .carousel-indicators { bottom: 2.5rem; margin: 0; gap: 0.45rem; display: flex; align-items: center; justify-content: center; }
.page-home #carousel .carousel-indicators li { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.45); border: none; margin: 0; opacity: 1; transition: width 0.4s var(--r-ease), background 0.4s ease; }
.page-home #carousel .carousel-indicators li.active { width: 26px; border-radius: 3px; background: var(--r-terra); }

/* ── Scroll hint ─────────────────────────────────────────── */
.km-hero-scroll-hint { position: absolute; bottom: clamp(1.5rem,4vh,3rem); left: 50%; transform: translateX(-50%); z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; text-decoration: none !important; opacity: 0.9; transition: opacity 0.3s ease, transform 0.3s var(--r-ease); }
.km-hero-scroll-hint:hover { opacity: 1; transform: translateX(-50%) translateY(4px); }
.km-hero-scroll-hint__label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.km-hero-scroll-hint__icon { color: var(--r-terra-light); animation: r-scroll-bounce 2.2s ease-in-out infinite; }
@keyframes r-scroll-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ── Marquee ─────────────────────────────────────────────── */
.md-marquee {
  position: relative;
  background: var(--r-charcoal);
  padding: 0.85rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.md-marquee::before, .md-marquee::after { content: ""; position: absolute; top: 0; width: 80px; height: 100%; z-index: 2; pointer-events: none; }
.md-marquee::before { left: 0; background: linear-gradient(to right, var(--r-charcoal), transparent); }
.md-marquee::after  { right: 0; background: linear-gradient(to left, var(--r-charcoal), transparent); }
.md-marquee__track { display: flex; animation: r-marquee 28s linear infinite; width: max-content; }
.md-marquee__track span { display: inline-flex; align-items: center; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); padding: 0 2.5rem; white-space: nowrap; }
.md-marquee__track span::before { content: "◆"; font-size: 0.42rem; color: var(--r-terra-light); margin-right: 2.5rem; opacity: 0.9; }
@keyframes r-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.md-marquee:hover .md-marquee__track { animation-play-state: paused; }

/* ══════════════════════════════════════════════════════════
   § STAT RIBBON
══════════════════════════════════════════════════════════ */
.km-stat-ribbon {
  background: var(--r-charcoal);
  padding: clamp(2.5rem,5vw,3.5rem) 0;
}
.km-stat-ribbon__grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem,4vw,2.5rem);
}
@media (min-width:768px) { .km-stat-ribbon__grid { grid-template-columns: repeat(4,1fr); } }
.km-stat-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1rem clamp(0.5rem,2.5vw,1.5rem); border-right: 1px solid rgba(255,255,255,0.08); transition: transform 0.3s var(--r-ease); }
.km-stat-item:last-child { border-right: none; }
@media (max-width:767px) { .km-stat-item:nth-child(2) { border-right: none; } .km-stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.08); } .km-stat-item:nth-child(3), .km-stat-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.08); } }
.km-stat-item:hover { transform: translateY(-3px); }
.km-stat-item__number { font-family: var(--md-font-display), serif; font-weight: 800; font-size: clamp(2.2rem,5vw,3.4rem); line-height: 1; color: var(--r-white); letter-spacing: -0.04em; margin-bottom: 0.35rem; }
.km-stat-item__number span { color: var(--r-terra-light); }
.km-stat-item__label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); }

/* ══════════════════════════════════════════════════════════
   § VALUES  (bento grid) — backgrounds & tokens
══════════════════════════════════════════════════════════ */
.modern-values-section {
  padding: var(--km-section-pad) 0;
  background: var(--r-ivory);
  position: relative;
  overflow: hidden;
}
.modern-values-section::after {
  content: "";
  position: absolute;
  bottom: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(192,90,47,0.06) 0%, transparent 65%);
  pointer-events: none;
}
/* Bento grid layout */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.85rem,1.8vw,1.2rem);
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(1rem,4vw,2.5rem);
  position: relative;
  z-index: 1;
}
@media (min-width:992px) {
  .bento-grid { grid-template-columns: repeat(12,1fr); grid-auto-rows: minmax(340px,auto); }
  .bento-card--large  { grid-column: span 7; }
  .bento-card--medium { grid-column: span 5; }
  .bento-card--half   { grid-column: span 6; }
  .bento-card--wide   { grid-column: span 12; flex-direction: row; }
}
.bento-card {
  position: relative;
  border-radius: var(--r-radius);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 340px;
  background: var(--r-charcoal);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.5s var(--r-ease), box-shadow 0.5s var(--r-ease), border-color 0.35s ease;
  will-change: transform;
}
.bento-card:hover { transform: translateY(-6px) scale(1.007); box-shadow: var(--r-shadow-raise); border-color: rgba(192,90,47,0.35); }
.bento-card::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: linear-gradient(90deg, var(--r-terra), var(--r-terra-light)); transition: width 0.5s var(--r-ease); z-index: 10; }
.bento-card:hover::after { width: 100%; }
.bento-card--wide { min-height: auto; }
.bento-bg-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; z-index: 0; transition: opacity 0.7s ease, transform 1.1s var(--r-ease); }
.bento-card:hover .bento-bg-image { opacity: 0.3; transform: scale(1.06); }
.bento-gradient-overlay { position: absolute; inset: 0; background: linear-gradient(165deg, rgba(28,28,30,0.15) 0%, rgba(28,28,30,0.55) 50%, rgba(28,28,30,0.92) 100%); z-index: 1; pointer-events: none; }
.bento-eyebrow { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--r-terra-light); background: rgba(192,90,47,0.12); border: 1px solid rgba(192,90,47,0.28); border-radius: var(--r-radius-pill); padding: 0.25rem 0.8rem; margin-bottom: 0.75rem; transition: background 0.3s ease; }
.bento-eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--r-terra-light); flex-shrink: 0; }
.bento-card:hover .bento-eyebrow { background: rgba(192,90,47,0.22); }
.bento-content { position: relative; z-index: 2; padding: clamp(1.5rem,3vw,2.25rem); flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.bento-title { font-family: var(--md-font-display), serif; font-weight: 800; font-size: clamp(1.2rem,2.5vw,1.75rem); line-height: 1.15; letter-spacing: -0.02em; color: #fff; margin: 0 0 0.6rem; }
.bento-text { font-size: clamp(0.85rem,1.3vw,0.93rem); line-height: 1.72; color: rgba(255,255,255,0.65); margin: 0; max-width: 44ch; }
.bento-wide-content { flex: 1; padding: clamp(1.5rem,3.5vw,2.5rem); display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
@media (min-width:992px) { .bento-wide-content { border-right: 1px solid rgba(255,255,255,0.07); max-width: 46%; } }
@media (max-width:991px) { .bento-wide-content { border-bottom: 1px solid rgba(255,255,255,0.07); } }
.bento-features { display: grid; grid-template-columns: repeat(2,1fr); flex: 1; gap: 1px; background: rgba(255,255,255,0.07); position: relative; z-index: 2; }
@media (min-width:680px) { .bento-features { grid-template-columns: repeat(4,1fr); } }
.bento-feature { background: var(--r-charcoal); padding: clamp(1.25rem,2.5vw,1.75rem) clamp(1rem,2vw,1.5rem); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; transition: background 0.3s ease; }
.bento-feature::before { content: ""; position: absolute; top: 0; left: 0; width: 2px; height: 0; background: var(--r-terra); transition: height 0.4s var(--r-ease); }
.bento-feature:hover::before { height: 100%; }
.bento-feature:hover { background: rgba(28,28,30,0.7); }
.bento-feature h4 { font-family: var(--md-font-display), serif; font-size: clamp(0.92rem,1.6vw,1.05rem); font-weight: 700; color: #fff; margin: 0 0 0.3rem; }
.bento-feature p { font-size: 0.74rem; color: rgba(255,255,255,0.45); margin: 0; }
@media (max-width:767px) { .bento-card { min-height: 280px; } .bento-features { grid-template-columns: repeat(2,1fr); } }

/* ══════════════════════════════════════════════════════════
   § SERVICES STRIP
══════════════════════════════════════════════════════════ */
.km-services-strip {
  padding: var(--km-section-pad) 0;
  background: var(--r-sand-light);
  position: relative;
}
.km-services-strip__head {
  max-width: 1360px; margin: 0 auto;
  padding: 0 clamp(1rem,4vw,2.5rem) clamp(2.5rem,5vw,3.5rem);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap;
}
.km-services-strip__head .md-kicker { color: var(--r-terra) !important; }
.km-services-strip__head .md-kicker::before { background: var(--r-terra) !important; }
.km-services-strip__head .md-section-title { color: var(--r-charcoal); }
.km-services-strip__cta-link {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--r-charcoal) !important; text-decoration: none !important;
  display: inline-flex; align-items: center; gap: 0.45rem;
  border-bottom: 2px solid var(--r-terra); padding-bottom: 0.18rem;
  transition: gap 0.25s var(--r-ease), color 0.25s ease; white-space: nowrap;
}
.km-services-strip__cta-link:hover { color: var(--r-terra) !important; gap: 0.8rem; }
.km-arrow { display: inline-block; transition: transform 0.3s var(--r-ease); }
.km-services-strip__cta-link:hover .km-arrow { transform: translateX(4px); }
.km-services-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: clamp(0.85rem,1.8vw,1.2rem);
  max-width: 1360px; margin: 0 auto;
  padding: 0 clamp(1rem,4vw,2.5rem);
}
@media (min-width:640px) { .km-services-grid { grid-template-columns: repeat(3,1fr); } }
.km-service-tile {
  background: var(--r-white);
  border-radius: var(--r-radius);
  padding: clamp(1.25rem,2.5vw,1.75rem) clamp(1rem,2vw,1.25rem);
  border: 1px solid rgba(28,28,30,0.07);
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.85rem;
  text-decoration: none !important; color: var(--r-charcoal) !important;
  transition: transform 0.38s var(--r-ease), box-shadow 0.38s ease, border-color 0.3s ease;
  position: relative; overflow: hidden;
}
.km-service-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(192,90,47,0.05) 0%, transparent 60%); opacity: 0; transition: opacity 0.35s ease; }
.km-service-tile:hover::before { opacity: 1; }
.km-service-tile:hover { transform: translateY(-5px); box-shadow: var(--r-shadow-raise); border-color: rgba(192,90,47,0.35); }
.km-service-tile__icon { width: 46px; height: 46px; border-radius: 13px; background: rgba(28,28,30,0.07); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--r-charcoal); transition: background 0.3s ease, color 0.3s ease; flex-shrink: 0; }
.km-service-tile:hover .km-service-tile__icon { background: var(--r-terra); color: #fff; }
.km-service-tile__name { font-family: var(--md-font-display), serif; font-size: clamp(0.85rem,1.4vw,0.96rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }

/* ══════════════════════════════════════════════════════════
   § CEO / LEADERSHIP SECTION
══════════════════════════════════════════════════════════ */
.km-ceo-section {
  position: relative;
  padding: var(--km-section-pad) 0;
  background: var(--r-charcoal);
  color: #fff;
  overflow: hidden;
}
.km-ceo-section::before { content: ""; position: absolute; top: -10%; right: -5%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(192,90,47,0.12) 0%, transparent 60%); pointer-events: none; z-index: 0; }
.km-ceo-section__bg { position: absolute; inset: 0; background: radial-gradient(ellipse 55% 40% at 90% 15%, rgba(192,90,47,0.10) 0%, transparent 55%), radial-gradient(ellipse 45% 35% at 5% 85%, rgba(232,220,200,0.05) 0%, transparent 50%); pointer-events: none; z-index: 0; }
.km-ceo-card { position: relative; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--r-radius); padding: clamp(2rem,5vw,3.5rem); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); height: 100%; display: flex; flex-direction: column; justify-content: center; transition: border-color 0.35s ease; overflow: hidden; }
.km-ceo-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04), transparent); pointer-events: none; }
.km-ceo-card:hover { border-color: rgba(192,90,47,0.22); }
.km-ceo-section__title { font-family: var(--md-font-display), serif; font-weight: 800; font-size: clamp(2rem,4.8vw,3.2rem); line-height: 1.08; letter-spacing: -0.03em; color: #fff; margin: 0 0 1.5rem; }
.km-ceo-section__title span { display: block; font-family: var(--md-font-body), sans-serif; font-size: 0.3em; font-weight: 600; letter-spacing: 0.22em; color: rgba(255,255,255,0.5); margin-top: 0.6rem; text-transform: uppercase; }
.km-ceo-section__quote { position: relative; font-family: var(--md-font-display), serif; font-size: clamp(1rem,1.8vw,1.22rem); line-height: 1.58; font-weight: 600; font-style: italic; color: var(--r-terra-light); padding: 1.25rem 1.5rem 1.25rem 3rem; margin: 0 0 1.75rem; background: rgba(192,90,47,0.06); border-radius: 12px; border-left: 3px solid var(--r-terra); }
.km-ceo-section__quote .fa-quote-left { position: absolute; top: 1rem; left: 0.85rem; font-size: 1.3rem; color: var(--r-terra); opacity: 0.6; }
.km-ceo-section__quote .fa-quote-right { display: none; }
.km-ceo-section__body { font-size: clamp(0.88rem,1.5vw,1rem); line-height: 1.8; color: rgba(255,255,255,0.60); }
.km-ceo-section__body p { margin-bottom: 1rem; }
.km-ceo-section__body p:last-child { margin-bottom: 0; }
.km-ceo-portrait-card { position: relative; border-radius: var(--r-radius); overflow: hidden; margin: 0; transition: transform 0.5s var(--r-ease); }
@media (min-width:992px) { .km-ceo-portrait-card:hover { transform: scale(1.022); } }
.km-ceo-portrait-card img { display: block; width: 100%; height: min(430px,56vw); object-fit: cover; object-position: center top; }
@media (max-width:991px) { .km-ceo-portrait-card img { height: 250px; } }
.km-ceo-portrait__meta { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.25rem 1.5rem 1.4rem; background: linear-gradient(to top, rgba(22,20,18,0.96) 0%, rgba(22,20,18,0.5) 55%, transparent 100%); display: flex; flex-direction: column; gap: 0.2rem; }
.km-ceo-signature__name { font-family: var(--md-font-display), serif; font-weight: 700; font-size: 0.98rem; color: #fff; letter-spacing: 0.05em; }
.km-ceo-signature__role { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--r-terra-light); }
.km-ceo-pillars-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.6rem; flex: 1; }
.km-ceo-pillar-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); border-radius: 16px; padding: 1.1rem 0.75rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; cursor: default; transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--r-ease); }
.km-ceo-pillar-card:hover { background: rgba(192,90,47,0.10); border-color: rgba(192,90,47,0.32); transform: translateY(-3px); }
.km-ceo-pillar-card i { font-size: 1.35rem; color: var(--r-terra-light); transition: transform 0.3s var(--r-ease-spring); }
.km-ceo-pillar-card:hover i { transform: scale(1.18) rotate(-5deg); }
.km-ceo-pillar-card span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.62); }
.km-ceo-right-column { display: flex; flex-direction: column; height: 100%; gap: 0.75rem; }
@media (max-width:575px) { .km-ceo-pillars-grid { grid-template-columns: repeat(4,1fr); } }

/* ══════════════════════════════════════════════════════════
   § PROJECTS GALLERY
══════════════════════════════════════════════════════════ */
.km-projects-gallery {
  padding: var(--km-section-pad) 0;
  background: var(--r-white);
  position: relative;
}
.km-projects-gallery__head {
  max-width: 1360px; margin: 0 auto;
  padding: 0 clamp(1rem,4vw,2.5rem) clamp(2.5rem,5vw,3.5rem);
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.km-projects-gallery__more { max-width: 1360px; margin: clamp(2.5rem,5vw,3.5rem) auto 0; padding: 0 clamp(1rem,4vw,2.5rem); text-align: center; }
.km-projects-gallery__more-link.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 700; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff !important; background: var(--r-charcoal); border: none;
  border-radius: var(--r-radius-pill); padding: 0.85rem 2.4rem;
  text-decoration: none !important;
  transition: background 0.3s ease, transform 0.3s var(--r-ease), box-shadow 0.3s ease;
  box-shadow: 0 4px 18px rgba(28,28,30,0.22);
}
.km-projects-gallery__more-link.btn:hover { background: var(--r-terra); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(192,90,47,0.38); }

/* ══════════════════════════════════════════════════════════
   § FEATURED SLIDER
══════════════════════════════════════════════════════════ */
.km-featured-slider-section { padding: 0 0 var(--km-section-pad); background: var(--r-white); }
.km-featured-slider-section .container { max-width: 1360px; }
.modern-carousel-item { border-radius: var(--r-radius) !important; overflow: hidden; margin: 0 0.5rem; }
.modern-carousel-item .img-fluid, .modern-carousel-item .custom-img { width: 100% !important; height: 100% !important; object-fit: cover; }
.modern-carousel-item .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,28,30,0.55) 0%, transparent 50%); transition: background 0.4s ease; }
.modern-carousel-item:hover .overlay { background: linear-gradient(to top, rgba(28,28,30,0.72) 0%, rgba(28,28,30,0.08) 60%, transparent 100%); }

/* ══════════════════════════════════════════════════════════
   § CONTACT SECTION
══════════════════════════════════════════════════════════ */
.km-home-contact {
  position: relative;
  padding: var(--km-section-pad) 0;
  background: var(--r-charcoal);
  color: #fff;
  overflow: hidden;
}
.km-home-contact::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; z-index: 0; }
.km-home-contact::after { content: ""; position: absolute; bottom: -15%; left: -8%; width: 550px; height: 550px; background: radial-gradient(circle, rgba(192,90,47,0.09) 0%, transparent 60%); pointer-events: none; z-index: 0; }
.km-home-contact__bg { display: none; }
.km-home-contact .container { position: relative; z-index: 1; }
.km-home-contact__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem,6vw,5rem); align-items: start; }
@media (min-width:900px) { .km-home-contact__grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.km-home-contact__headline { font-family: var(--md-font-display), serif; font-weight: 800; font-size: clamp(2rem,4.5vw,3rem); line-height: 1.1; letter-spacing: -0.025em; color: #fff; margin: 0 0 1.25rem; }
.km-home-contact__headline em { font-style: normal; color: var(--r-terra-light); }
.km-home-contact__lede { font-size: clamp(0.9rem,1.5vw,0.97rem); line-height: 1.76; color: rgba(255,255,255,0.58); margin-bottom: 1rem; }
.km-home-contact__lede a { color: var(--r-terra-light) !important; font-weight: 600; border-bottom: 1px solid rgba(192,90,47,0.35); text-decoration: none !important; transition: border-color 0.25s ease; }
.km-home-contact__lede a:hover { border-bottom-color: var(--r-terra-light); }
.km-home-contact__card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--r-radius); padding: clamp(1.75rem,4vw,3rem); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.km-home-contact__card-title { font-family: var(--md-font-display), serif; font-size: clamp(1.15rem,2vw,1.45rem); font-weight: 700; color: #fff; margin: 0 0 1.5rem; }
.km-home-contact__form .form-control { background: rgba(255,255,255,0.065); border: 1px solid rgba(255,255,255,0.12); border-radius: 11px; color: #fff !important; padding: 0.85rem 1.1rem; font-size: 0.9rem; transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease; margin-bottom: 0.9rem; outline: none; }
.km-home-contact__form .form-control::placeholder { color: rgba(255,255,255,0.35); }
.km-home-contact__form .form-control:focus { border-color: var(--r-terra); background: rgba(255,255,255,0.09); box-shadow: 0 0 0 3px rgba(192,90,47,0.15); outline: none; }
.km-home-contact__form textarea.form-control { min-height: 120px; resize: vertical; border-radius: 13px; }
.km-home-contact__submit { width: 100%; padding: 0.9rem 2rem; background: var(--r-terra); color: #fff !important; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; border: none; border-radius: var(--r-radius-pill); cursor: pointer; transition: background 0.3s ease, transform 0.3s var(--r-ease), box-shadow 0.3s ease; box-shadow: 0 4px 20px rgba(192,90,47,0.40); margin-top: 0.5rem; }
.km-home-contact__submit:hover { background: var(--r-terra-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(192,90,47,0.52); }

/* ══════════════════════════════════════════════════════════
   § FOOTER
══════════════════════════════════════════════════════════ */
.km-site-footer { background: #111113; color: rgba(255,255,255,0.65); }
.km-site-footer__cta { background: var(--r-charcoal); border-bottom: 1px solid rgba(255,255,255,0.06); text-align: center; padding: clamp(3.5rem,8vw,6rem) 0; position: relative; overflow: hidden; }
.km-site-footer__cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(192,90,47,0.09), transparent 60%); pointer-events: none; }
.km-site-footer__cta-word { font-family: var(--md-font-display), serif; font-weight: 800; font-size: clamp(5rem,18vw,13rem); line-height: 0.85; letter-spacing: -0.04em; background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(192,90,47,0.65) 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent; margin: 0; position: relative; z-index: 1; }
.km-site-footer__cta-sub { font-size: clamp(0.82rem,1.8vw,1rem); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.50); margin: 0.7rem 0 0; position: relative; z-index: 1; }
.km-site-footer__main { padding: clamp(3rem,7vw,5rem) 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.km-site-footer__logo-link { display: flex; flex-direction: column; align-items: center; gap: 0.65rem; text-decoration: none !important; margin-bottom: 1.5rem; }
.km-site-footer__logo { width: 68px; height: 68px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.82; transition: opacity 0.3s ease; }
.km-site-footer__logo-link:hover .km-site-footer__logo { opacity: 1; }
.km-site-footer__brand { font-family: var(--md-font-display), serif; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.52); }
.km-site-footer__brand strong { color: rgba(255,255,255,0.82); }
.km-site-footer__contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.45rem; }
.km-site-footer__contact-list a, .km-site-footer__location-link { color: rgba(255,255,255,0.48) !important; font-size: 0.82rem; text-decoration: none !important; transition: color 0.25s ease; display: flex; align-items: center; gap: 0.45rem; }
.km-site-footer__contact-list a:hover, .km-site-footer__location-link:hover { color: var(--r-terra-light) !important; }
.km-site-footer__contact-list i { color: var(--r-terra-light); font-size: 0.78rem; width: 1rem; text-align: center; }
.km-site-footer__badges { display: flex; flex-direction: column; gap: 0.55rem; align-items: flex-start; }
@media (max-width:991px) { .km-site-footer__badges { flex-direction: row; flex-wrap: wrap; justify-content: center; } }
.km-site-footer__badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-radius-pill); padding: 0.32rem 0.9rem; transition: border-color 0.3s ease, color 0.3s ease; }
.km-site-footer__badge::before { content: "✓"; color: var(--r-terra-light); font-size: 0.72rem; }
.km-site-footer__badge:hover { border-color: rgba(192,90,47,0.35); color: rgba(255,255,255,0.72); }
.km-site-footer__social { display: flex; gap: 0.6rem; justify-content: flex-end; }
@media (max-width:991px) { .km-site-footer__social { justify-content: center; } }
.km-site-footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.50) !important; text-decoration: none !important; font-size: 0.88rem; transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--r-ease); }
.km-site-footer__social a:hover { background: var(--r-terra); border-color: var(--r-terra); color: #fff !important; transform: translateY(-3px); }
.km-site-footer__bar { padding: 1.5rem 0; }
.km-site-footer__bar .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.65rem; }
.km-site-footer__bar p { font-size: 0.75rem; color: rgba(255,255,255,0.32); margin: 0; }
.km-site-footer__bar a { color: rgba(255,255,255,0.38) !important; text-decoration: none !important; transition: color 0.25s ease; }
.km-site-footer__bar a:hover { color: var(--r-terra-light) !important; }
.km-site-footer__dev-cta { border-bottom: 1px solid rgba(255,255,255,0.16); padding-bottom: 0.1rem; }
.km-site-footer__center { text-align: center; }

/* ══════════════════════════════════════════════════════════
   § BACK-TO-TOP
══════════════════════════════════════════════════════════ */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 42px; height: 42px; background: var(--r-charcoal); border: 1px solid rgba(255,255,255,0.14); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.65) !important; text-decoration: none !important; font-size: 0.8rem; z-index: 9990; visibility: hidden; opacity: 0; transform: translateY(10px); transition: opacity 0.35s ease, transform 0.35s var(--r-ease), background 0.3s ease; box-shadow: 0 4px 14px rgba(28,28,30,0.3); }
.back-to-top.active { visibility: visible; opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--r-terra); border-color: var(--r-terra); color: #fff !important; }

/* ══════════════════════════════════════════════════════════
   § FULLMENU OVERLAY
══════════════════════════════════════════════════════════ */
.km-fullmenu { position: fixed; inset: 0; z-index: 10050; display: none; align-items: center; justify-content: center; background: rgba(10,10,10,0.88); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.km-fullmenu.is-open { display: flex; }
.km-fullmenu__topbar { display: none !important; }
.km-fullmenu__close {
  position: absolute;
  top: clamp(1rem,2.5vw,1.4rem);
  right: clamp(1rem,2.5vw,1.4rem);
  padding: 0.5rem 1.1rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--r-radius-pill);
  cursor: pointer; z-index: 2;
  transition: background 0.2s ease, color 0.2s ease;
}
.km-fullmenu__close:hover { color: #fff; background: rgba(255,255,255,0.14); outline: none; }
.km-fullmenu__cta { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff !important; background: var(--r-terra); border-radius: var(--r-radius-pill); padding: 0.75rem 1.9rem; text-decoration: none !important; transition: background 0.3s ease; margin-bottom: 2rem; }
.km-fullmenu__cta:hover { background: var(--r-terra-light); }
.km-fullmenu__nav { display: flex; flex-direction: column; gap: 0.2rem; }
.km-fullmenu__nav a { font-family: var(--md-font-display), serif; font-weight: 800; font-size: clamp(1.8rem,5vw,3.5rem); letter-spacing: -0.03em; color: rgba(255,255,255,0.72) !important; text-decoration: none !important; line-height: 1.2; transition: color 0.25s ease, transform 0.3s var(--r-ease); display: inline-block; }
.km-fullmenu__nav a:hover { color: var(--r-terra-light) !important; transform: translateX(12px); }

/* ══════════════════════════════════════════════════════════
   § BLUR ORBS
══════════════════════════════════════════════════════════ */
.km-blur-orb-container { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.km-blur-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15; }
.km-blur-orb--primary { width: 500px; height: 500px; background: var(--r-charcoal); }
.km-blur-orb--accent { width: 420px; height: 420px; background: var(--r-terra); opacity: 0.10; }
.km-blur-orb--quaternary { width: 360px; height: 360px; background: var(--r-sand); opacity: 0.08; }

/* ══════════════════════════════════════════════════════════
   § IMAGE SHIMMER
══════════════════════════════════════════════════════════ */
.km-image-shimmer-wrapper { position: relative; overflow: hidden; }
.km-image-shimmer-wrapper::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,28,30,0.10) 0%, rgba(28,28,30,0.05) 40%, rgba(28,28,30,0.10) 80%); background-size: 200% 100%; animation: r-shimmer 1.8s ease-in-out infinite; z-index: 1; pointer-events: none; opacity: 1; transition: opacity 0.4s ease; }
.km-image-shimmer-wrapper.is-loaded::before { opacity: 0; }
@keyframes r-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.km-image-shimmer-wrapper img { opacity: 0; transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1); }
.km-image-shimmer-wrapper.is-loaded img { opacity: 1; }

/* ══════════════════════════════════════════════════════════
   § PRINT / SCREENSHOT REVEAL
══════════════════════════════════════════════════════════ */
@media print {
  html.km-motion-on .reveal, html.km-motion-on .reveal-left, html.km-motion-on .reveal-right, html.km-motion-on .reveal-scale, html.km-motion-on .reveal-stagger, html.km-motion-on .reveal-stagger > *, html.km-motion-on .reveal-rise-slow, html.km-motion-on .reveal-tilt, html.km-motion-on .bento-reveal, html.km-motion-on .km-about-left, html.km-motion-on .km-about-right, html.km-motion-on .km-service-card.km-service-flip, html.km-motion-on .km-contact-wrap.km-contact-spring, html.km-motion-on .km-materials-carousel-section.km-materials-slide-in, html.km-motion-on .km-gallery-grid-cell.km-gallery-zoom-blur, html.km-motion-on .km-ceo-section .km-ceo-reveal--intro, html.km-motion-on .km-ceo-section .km-ceo-reveal--portrait, html.km-motion-on .km-ceo-section .km-ceo-reveal--pillars, html.km-motion-on .km-site-footer.km-footer-reveal .km-site-footer__cta, html.km-motion-on .km-site-footer.km-footer-reveal .km-site-footer__main, html.km-motion-on .km-site-footer.km-footer-reveal .km-site-footer__bar { opacity: 1 !important; transform: none !important; filter: none !important; visibility: visible !important; transition: none !important; } }
