/**
 * km-inner-pages.css  —  shared layer for all inner pages
 * Palette: charcoal #1c1c1e · sand #e8dcc8 · terracotta #c05a2f · ivory #f8f4ee
 * Loaded LAST on every inner page → wins all specificity battles.
 */

/* ── Page base ───────────────────────────────────────────── */
body.page-site:not(.page-home) { background: var(--r-ivory,#f8f4ee); color: var(--r-charcoal,#1c1c1e); }

/* Full-width containers on inner pages */
.page-site:not(.page-home) .container,
.page-site:not(.page-home) .container-sm,
.page-site:not(.page-home) .container-md,
.page-site:not(.page-home) .container-lg,
.page-site:not(.page-home) .container-xl {
  max-width: 100% !important;
  width: 100% !important;
  padding-left:  clamp(1rem, 4vw, 3rem) !important;
  padding-right: clamp(1rem, 4vw, 3rem) !important;
}
.km-contact-faq__grid,
.km-service-showcase__grid {
  max-width: 100% !important;
}

/* ── Global kicker overrides for inner pages ─────────────── */
.page-site:not(.page-home) .md-kicker { color: var(--r-terra,#c05a2f) !important; }
.page-site:not(.page-home) .md-kicker::before { background: var(--r-terra,#c05a2f) !important; }
.page-site:not(.page-home) .md-section-title { color: var(--r-charcoal,#1c1c1e); }
.page-site:not(.page-home) .md-section-title .md-section-title__accent { color: var(--r-terra,#c05a2f); }

/* ── DARK HERO  .km-page-hero ────────────────────────────── */
.km-page-hero {
  position: relative;
  padding: clamp(7rem,15vw,11rem) 0 clamp(4rem,8vw,6rem);
  background: var(--r-charcoal,#1c1c1e);
  color: #fff; overflow: hidden;
}
.km-page-hero::before {
  content: ""; position: absolute; top: -12%; right: -6%;
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(192,90,47,0.11) 0%, transparent 62%);
  pointer-events: none;
}
.km-page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.km-page-hero .container { position: relative; z-index: 1; max-width: 980px; }
.km-page-hero .md-kicker { color: var(--r-sand,#e8dcc8) !important; }
.km-page-hero .md-kicker::before { background: var(--r-sand,#e8dcc8) !important; }
.km-page-hero .md-section-title { color: #fff; font-size: clamp(2.4rem,6vw,4rem); margin-bottom: 1.25rem; }
.km-page-hero .md-section-title .md-section-title__accent { color: var(--r-terra-light,#e07a52); display: block; }
.km-page-hero__lead { font-size: clamp(1rem,2vw,1.16rem); line-height: 1.72; color: rgba(255,255,255,0.65); max-width: 42rem; margin: 0; }

/* ── LIGHT HERO  .km-subpage-hero ───────────────────────── */
.km-subpage-hero {
  position: relative;
  padding: clamp(6.5rem,13vw,10rem) 0 clamp(3rem,6vw,5rem);
  background: var(--r-charcoal,#1c1c1e);
  color: #fff; overflow: hidden;
}
.km-subpage-hero::before {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent 0%, rgba(192,90,47,0.45) 30%, var(--r-terra,#c05a2f) 50%, rgba(192,90,47,0.45) 70%, transparent 100%);
}
.km-subpage-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.km-subpage-hero .container { position: relative; z-index: 1; max-width: 980px; }
.km-subpage-hero .md-kicker { color: var(--r-sand,#e8dcc8) !important; }
.km-subpage-hero .md-kicker::before { background: var(--r-sand,#e8dcc8) !important; }
.km-subpage-hero .md-section-title { color: #fff; font-size: clamp(2.2rem,5.5vw,3.8rem); }
.km-subpage-hero .md-section-title .md-section-title__accent { color: var(--r-terra-light,#e07a52); }
.km-subpage-hero__lead { font-size: clamp(0.96rem,1.8vw,1.1rem); line-height: 1.72; color: rgba(255,255,255,0.62); max-width: 40rem; margin: 1rem 0 0; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.km-breadcrumb {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.32); margin-bottom: 1.5rem;
}
.km-breadcrumb a { color: rgba(255,255,255,0.32) !important; text-decoration: none !important; transition: color 0.2s ease; }
.km-breadcrumb a:hover { color: var(--r-terra-light,#e07a52) !important; }
.km-breadcrumb__sep { color: rgba(255,255,255,0.16); }

/* ── ABOUT page ──────────────────────────────────────────── */
.km-about-intro { padding: clamp(4rem,9vw,7rem) 0; background: var(--r-white,#fff); }

.km-about-intro__figure { position: relative; border-radius: var(--r-radius,20px); overflow: hidden; margin: 0; }
.km-about-intro__figure img { display: block; width: 100%; height: min(64vh,560px); object-fit: cover; transition: transform 0.7s var(--r-ease,cubic-bezier(0.22,1,0.36,1)); }
.km-about-intro__figure:hover img { transform: scale(1.04); }

/* Terracotta corner accents */
.km-about-intro__figure::before { content: ""; position: absolute; top: -2px; left: -2px; width: 72px; height: 72px; border-top: 4px solid var(--r-terra,#c05a2f); border-left: 4px solid var(--r-terra,#c05a2f); border-radius: var(--r-radius,20px) 0 0 0; z-index: 2; pointer-events: none; }
.km-about-intro__figure::after  { content: ""; position: absolute; bottom: -2px; right: -2px; width: 72px; height: 72px; border-bottom: 4px solid var(--r-terra,#c05a2f); border-right: 4px solid var(--r-terra,#c05a2f); border-radius: 0 0 var(--r-radius,20px) 0; z-index: 2; pointer-events: none; }

.km-about-intro__copy .md-kicker { color: var(--r-terra,#c05a2f) !important; }
.km-about-intro__text { font-size: clamp(0.92rem,1.5vw,1rem); line-height: 1.82; color: rgba(28,28,30,0.68); }
.km-about-intro__text p { margin-bottom: 1rem; }
.km-about-intro__pull { margin: 1.75rem 0 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--r-terra,#c05a2f); background: rgba(192,90,47,0.05); border-radius: 0 14px 14px 0; font-family: var(--md-font-display),serif; font-weight: 700; font-size: clamp(1rem,2vw,1.16rem); line-height: 1.55; color: var(--r-charcoal,#1c1c1e); }

/* Pillars grid */
.km-about-pillars { padding: clamp(3.5rem,8vw,5.5rem) 0; background: var(--r-sand-light,#f2ece0); }
.km-about-pillars__head { text-align: center; max-width: 48rem; margin: 0 auto clamp(2.5rem,5vw,4rem); }
.km-about-pillars__grid { max-width: 1360px; margin: 0 auto; padding: 0 clamp(1rem,4vw,2.5rem); }

.km-about-pillar {
  position: relative; background: var(--r-white,#fff); border-radius: var(--r-radius,20px);
  border: 1px solid rgba(28,28,30,0.08); padding: 2rem 1.5rem; height: 100%; overflow: hidden;
  transition: transform 0.4s var(--r-ease,cubic-bezier(0.22,1,0.36,1)), box-shadow 0.4s ease, border-color 0.3s ease;
}
.km-about-pillar::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: var(--r-terra,#c05a2f); transition: width 0.5s var(--r-ease,cubic-bezier(0.22,1,0.36,1)); }
.km-about-pillar:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(28,28,30,0.10); border-color: rgba(192,90,47,0.30); }
.km-about-pillar:hover::after { width: 100%; }
.km-about-pillar__icon { width: 50px; height: 50px; border-radius: 14px; background: rgba(28,28,30,0.07); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--r-charcoal,#1c1c1e); margin-bottom: 1.1rem; transition: background 0.3s ease, color 0.3s ease; }
.km-about-pillar:hover .km-about-pillar__icon { background: var(--r-terra,#c05a2f); color: #fff; }
.km-about-pillar h3 { font-family: var(--md-font-display),serif; font-weight: 800; font-size: clamp(0.96rem,1.8vw,1.08rem); color: var(--r-charcoal,#1c1c1e); margin: 0 0 0.5rem; }
.km-about-pillar p { font-size: clamp(0.85rem,1.4vw,0.92rem); line-height: 1.7; color: rgba(28,28,30,0.60); margin: 0; }

/* About CTA band */
.km-about-cta-band { padding: clamp(4rem,9vw,6rem) 0; background: var(--r-charcoal,#1c1c1e); text-align: center; position: relative; overflow: hidden; }
.km-about-cta-band::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: 56px 56px; pointer-events: none; }
.km-about-cta-band .container { position: relative; z-index: 1; }
.km-about-cta-band__title { font-family: var(--md-font-display),serif; font-weight: 800; font-size: clamp(1.8rem,4.5vw,3rem); letter-spacing: -0.025em; color: #fff; margin: 0 0 1rem; }
.km-about-cta-band__title em { font-style: normal; color: var(--r-terra-light,#e07a52); }
.km-about-cta-band__sub { font-size: clamp(0.9rem,1.5vw,0.98rem); color: rgba(255,255,255,0.55); max-width: 38rem; margin: 0 auto 2rem; line-height: 1.72; }
.km-about-cta-band__btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff !important; background: var(--r-terra,#c05a2f);
  border-radius: 100px; padding: 0.9rem 2.5rem; text-decoration: none !important;
  transition: background 0.3s ease, transform 0.3s var(--r-ease,cubic-bezier(0.22,1,0.36,1)), box-shadow 0.3s ease;
  box-shadow: 0 4px 22px rgba(192,90,47,0.45);
}
.km-about-cta-band__btn:hover { background: var(--r-terra-light,#e07a52); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(192,90,47,0.55); }

/* ── SERVICE page ────────────────────────────────────────── */
.km-service-intro-band { background: var(--r-sand-light,#f2ece0); padding: clamp(3rem,7vw,5rem) 0; border-bottom: 1px solid rgba(28,28,30,0.07); }
.km-service-intro-band h1, .km-service-intro-band h2 { font-family: var(--md-font-display),serif; font-weight: 800; font-size: clamp(1.8rem,4vw,2.8rem); letter-spacing: -0.025em; color: var(--r-charcoal,#1c1c1e); margin-bottom: 1rem; }
.km-service-intro-band h1 span, .km-service-intro-band h2 span { color: var(--r-terra,#c05a2f); }
.km-service-intro-band__lead { font-size: clamp(0.92rem,1.6vw,1.02rem); line-height: 1.8; color: rgba(28,28,30,0.62); max-width: 52rem; }
.km-service-intro-band__cta, .km-service-drift-cta-link {
  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,#c05a2f);
  border: none !important; border-radius: 100px; padding: 0.82rem 2rem;
  text-decoration: none !important;
  transition: background 0.3s ease, transform 0.3s var(--r-ease,cubic-bezier(0.22,1,0.36,1));
  box-shadow: 0 4px 18px rgba(192,90,47,0.38);
}
.km-service-intro-band__cta:hover, .km-service-drift-cta-link:hover { background: var(--r-terra-light,#e07a52); transform: translateY(-2px); }

.km-service-showcase { padding: clamp(4rem,9vw,6.5rem) 0; background: var(--r-white,#fff); position: relative; overflow: hidden; }
.km-service-showcase::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 5% 20%, rgba(192,90,47,0.04) 0%, transparent 55%), radial-gradient(ellipse 50% 40% at 95% 80%, rgba(192,90,47,0.05) 0%, transparent 50%); pointer-events: none; }
.km-service-showcase__head { text-align: center; margin: 0 auto clamp(2.5rem,5vw,4rem); position: relative; z-index: 1; }
.km-service-showcase__head .md-kicker { justify-content: center; }

.km-service-showcase__grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.25rem,2.5vw,2rem); position: relative; z-index: 1; counter-reset: svc; }
@media (min-width:768px) { .km-service-showcase__grid { grid-template-columns: repeat(2,1fr); } }

.km-service-card {
  position: relative; border-radius: var(--r-radius,20px); background: var(--r-white,#fff);
  border: 1px solid rgba(28,28,30,0.08); overflow: hidden;
  transition: transform 0.42s var(--r-ease,cubic-bezier(0.22,1,0.36,1)), box-shadow 0.42s ease, border-color 0.3s ease;
  counter-increment: svc;
}
.km-service-card::before { content: "0" counter(svc); position: absolute; bottom: 0.5rem; right: 1.25rem; font-family: var(--md-font-display),serif; font-weight: 900; font-size: clamp(5rem,10vw,7rem); color: rgba(28,28,30,0.03); line-height: 1; pointer-events: none; z-index: 0; transition: color 0.5s ease; }
.km-service-card:hover { transform: translateY(-7px); box-shadow: 0 24px 56px rgba(28,28,30,0.11); border-color: rgba(192,90,47,0.35); }
.km-service-card:hover::before { color: rgba(192,90,47,0.06); }
@media (min-width:992px) { .km-service-card:nth-child(even) { margin-top: 2.5rem; } }

.km-service-card__head { padding: 1.75rem 1.75rem 1.25rem; background: linear-gradient(135deg, rgba(28,28,30,0.04) 0%, rgba(28,28,30,0.02) 100%); border-bottom: 1px solid rgba(28,28,30,0.07); position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 1rem; }
.km-service-card__icon { width: 48px; height: 48px; border-radius: 13px; background: rgba(28,28,30,0.08); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--r-charcoal,#1c1c1e); flex-shrink: 0; transition: background 0.3s ease, color 0.3s ease; }
.km-service-card:hover .km-service-card__icon { background: var(--r-terra,#c05a2f); color: #fff; }
.km-service-card__head h3 { font-family: var(--md-font-display),serif; font-weight: 800; font-size: clamp(0.98rem,2vw,1.18rem); letter-spacing: -0.015em; color: var(--r-charcoal,#1c1c1e); margin: 0; line-height: 1.28; }
.km-service-card__accent { display: block; height: 4px; border-radius: 100px; background: linear-gradient(90deg, var(--r-terra,#c05a2f), rgba(192,90,47,0.35), var(--r-terra,#c05a2f)); background-size: 200% 100%; animation: svc-accent 6s linear infinite; margin-top: 0.85rem; }
@keyframes svc-accent { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
.km-service-card__body { position: relative; z-index: 1; padding: 1.35rem 1.75rem 1.75rem; font-size: clamp(0.86rem,1.4vw,0.95rem); line-height: 1.78; color: rgba(28,28,30,0.62); }

.km-service-cta-band { padding: clamp(4rem,9vw,6rem) 0; background: var(--r-charcoal,#1c1c1e); text-align: center; position: relative; overflow: hidden; }
.km-service-cta-band::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: 56px 56px; pointer-events: none; }

/* ── ARCHITECTURE gallery page ───────────────────────────── */
.page-architecture .km-arch-gallery-section { padding: clamp(4rem,9vw,6.5rem) 0; background: var(--r-charcoal,#1c1c1e); position: relative; }
.page-architecture .km-arch-gallery-section .container { max-width: 1360px; }
.page-architecture .km-arch-gallery-section .heading_container { text-align: center; margin-bottom: clamp(1.5rem,4vw,2.5rem); }
.page-architecture .km-arch-gallery-section .heading_container h2 { font-family: var(--md-font-display),serif; font-weight: 800; font-size: clamp(1.8rem,4vw,2.8rem); letter-spacing: -0.025em; color: #fff !important; margin: 0 0 0.65rem; }
.page-architecture .km-arch-gallery-section .heading_container h2 span { color: var(--r-terra-light,#e07a52) !important; }
.page-architecture .km-arch-gallery-section .heading_container p { font-size: clamp(0.9rem,1.6vw,1rem); color: rgba(255,255,255,0.55) !important; max-width: 44rem; margin: 0 auto; line-height: 1.72; }

.km-arch-filters { display: flex; flex-wrap: wrap; gap: 0.45rem 0.55rem; justify-content: center; margin: 0 auto clamp(2rem,5vw,3rem); max-width: 64rem; padding: 0; }
.km-arch-filters__btn { appearance: none; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.62) !important; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 100px; padding: 0.42rem 1.1rem; cursor: pointer; transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease; }
.km-arch-filters__btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(192,90,47,0.45); color: #fff !important; transform: translateY(-1px); }
.km-arch-filters__btn.is-active { background: var(--r-terra,#c05a2f); border-color: var(--r-terra,#c05a2f); color: #fff !important; }

.page-architecture .km-gallery-card__viewport { border-radius: 16px; border: 1px solid rgba(255,255,255,0.10); box-shadow: 0 12px 40px rgba(0,0,0,0.32); transition: transform 0.5s var(--r-ease,cubic-bezier(0.22,1,0.36,1)), box-shadow 0.5s ease, border-color 0.3s ease; }
.page-architecture .km-gallery-card-link:hover .km-gallery-card__viewport { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.45); border-color: rgba(192,90,47,0.40); }
.page-architecture .km-gallery-card__category { color: var(--r-terra-light,#e07a52) !important; opacity: 1; }
.page-architecture .km-gallery-card__title { color: rgba(255,255,255,0.72) !important; transition: color 0.25s ease; }
.page-architecture .km-gallery-card-link:hover .km-gallery-card__title { color: var(--r-terra-light,#e07a52) !important; }

/* ── CONTACT page ────────────────────────────────────────── */
.km-contact-wrap { padding: clamp(4rem,9vw,6.5rem) 0; background: var(--r-sand-light,#f2ece0); }
.km-contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem,3.5vw,2.5rem); align-items: stretch; }
@media (min-width:992px) { .km-contact-grid { grid-template-columns: minmax(300px,1fr) minmax(0,1.3fr); } }

/* Left dark panel */
.km-contact-panel { background: var(--r-charcoal,#1c1c1e); color: #fff; border-radius: var(--r-radius,20px); padding: clamp(2rem,4.5vw,3rem); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.km-contact-panel::before { content: ""; position: absolute; top: -8%; right: -8%; width: 350px; height: 350px; background: radial-gradient(circle, rgba(192,90,47,0.11) 0%, transparent 62%); pointer-events: none; }
.km-contact-panel::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.km-contact-panel__inner { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; }
.km-contact-panel .md-kicker { color: var(--r-sand,#e8dcc8) !important; }
.km-contact-panel .md-kicker::before { background: var(--r-sand,#e8dcc8) !important; }
.km-contact-panel__title { font-family: var(--md-font-display),serif; font-weight: 800; font-size: clamp(1.4rem,3vw,2rem); line-height: 1.12; color: #fff; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.km-contact-panel__sub { font-size: clamp(0.86rem,1.4vw,0.94rem); line-height: 1.72; color: rgba(255,255,255,0.55); margin-bottom: 2rem; }

.km-contact-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.km-contact-item:last-of-type { border-bottom: none; margin-bottom: 1.5rem; }
.km-contact-item__icon { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.10); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; color: var(--r-terra-light,#e07a52); flex-shrink: 0; transition: background 0.3s ease; }
.km-contact-item:hover .km-contact-item__icon { background: rgba(192,90,47,0.15); }
.km-contact-item h3 { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.38); margin: 0 0 0.18rem; }
.km-contact-item p { font-size: clamp(0.86rem,1.4vw,0.93rem); color: rgba(255,255,255,0.75); margin: 0; }
.km-contact-item p a { color: rgba(255,255,255,0.75) !important; text-decoration: none !important; transition: color 0.2s ease; }
.km-contact-item p a:hover { color: var(--r-terra-light,#e07a52) !important; }

.km-contact-actions { display: flex; flex-direction: column; gap: 0.65rem; margin-top: auto; }
.km-contact-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; font-weight: 700; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 100px; padding: 0.82rem 1.75rem; text-decoration: none !important; transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--r-ease,cubic-bezier(0.22,1,0.36,1)), box-shadow 0.3s ease; }
.km-contact-btn--primary { background: var(--r-terra,#c05a2f); color: #fff !important; border: none; box-shadow: 0 4px 18px rgba(192,90,47,0.40); }
.km-contact-btn--primary:hover { background: var(--r-terra-light,#e07a52); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(192,90,47,0.52); }
.km-contact-btn--ghost { background: transparent; color: rgba(255,255,255,0.68) !important; border: 1px solid rgba(255,255,255,0.20); }
.km-contact-btn--ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.38); color: #fff !important; }

/* Right form card */
.km-contact-form-card { background: var(--r-white,#fff); border-radius: var(--r-radius,20px); border: 1px solid rgba(28,28,30,0.08); padding: clamp(2rem,4.5vw,3rem); box-shadow: 0 8px 40px rgba(28,28,30,0.07); }
.km-contact-form-card__title { font-family: var(--md-font-display),serif; font-weight: 800; font-size: clamp(1.3rem,2.5vw,1.72rem); letter-spacing: -0.02em; color: var(--r-charcoal,#1c1c1e); margin: 0 0 0.4rem; }
.km-contact-form-card__sub { font-size: clamp(0.84rem,1.3vw,0.92rem); color: rgba(28,28,30,0.52); line-height: 1.7; margin-bottom: 1.75rem; }
.km-contact-form .form-control { background: var(--r-sand-light,#f2ece0); border: 1.5px solid rgba(28,28,30,0.10); border-radius: 11px; color: var(--r-charcoal,#1c1c1e) !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: 1rem; outline: none; width: 100%; }
.km-contact-form .form-control::placeholder { color: rgba(28,28,30,0.35); }
.km-contact-form .form-control:focus { border-color: var(--r-terra,#c05a2f); background: #fff; box-shadow: 0 0 0 3px rgba(192,90,47,0.12); outline: none; }
.km-contact-form textarea.form-control { min-height: 130px; resize: vertical; border-radius: 13px; }
.btn-send { width: 100%; padding: 0.9rem 2rem; background: var(--r-charcoal,#1c1c1e); color: #fff !important; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; border: none; border-radius: 100px; cursor: pointer; transition: background 0.3s ease, transform 0.3s var(--r-ease,cubic-bezier(0.22,1,0.36,1)), box-shadow 0.3s ease; box-shadow: 0 4px 18px rgba(28,28,30,0.20); margin-top: 0.5rem; }
.btn-send:hover { background: var(--r-terra,#c05a2f); color: #fff !important; transform: translateY(-2px); box-shadow: 0 8px 26px rgba(192,90,47,0.42); }

/* FAQ */
.km-contact-faq { padding: clamp(4rem,9vw,6rem) 0; background: var(--r-white,#fff); }
.km-contact-faq__head { text-align: center; max-width: 44rem; margin: 0 auto clamp(2rem,5vw,3.5rem); }
.km-contact-faq__grid { max-width: 920px; margin: 0 auto; }
.km-contact-faq details { background: var(--r-sand-light,#f2ece0); border: 1px solid rgba(28,28,30,0.09); border-radius: 16px; margin-bottom: 0.75rem; overflow: hidden; transition: box-shadow 0.3s ease, border-color 0.3s ease; }
.km-contact-faq details[open] { border-color: rgba(192,90,47,0.35); box-shadow: 0 8px 28px rgba(28,28,30,0.08); }
.km-contact-faq summary { font-family: var(--md-font-display),serif; font-weight: 700; font-size: clamp(0.94rem,1.8vw,1.04rem); letter-spacing: -0.01em; color: var(--r-charcoal,#1c1c1e); padding: 1.25rem 1.5rem; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; transition: color 0.2s ease; }
.km-contact-faq summary::-webkit-details-marker { display: none; }
.km-contact-faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; color: var(--r-terra,#c05a2f); flex-shrink: 0; transition: transform 0.3s var(--r-ease,cubic-bezier(0.22,1,0.36,1)); }
.km-contact-faq details[open] summary::after { transform: rotate(45deg); }
.km-contact-faq details[open] summary { color: var(--r-terra,#c05a2f); }
.km-contact-faq details p { padding: 0 1.5rem 1.25rem; font-size: clamp(0.86rem,1.4vw,0.93rem); line-height: 1.78; color: rgba(28,28,30,0.62); margin: 0; }

/* ── MATERIALS page ──────────────────────────────────────── */
.km-materials-carousel-section { position: relative; }
.km-materials-carousel-section .carousel-img { width: 100%; height: clamp(420px,60vh,700px); object-fit: cover; display: block; }
.km-materials-carousel-section .carousel-item::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(28,28,30,0.88) 0%, rgba(28,28,30,0.40) 55%, transparent 100%); z-index: 1; }
.km-materials-carousel__stack { position: absolute; top: 50%; left: clamp(2rem,8vw,5rem); right: 40%; transform: translateY(-50%); text-align: left; z-index: 2; }
.km-materials-carousel__kicker { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--r-terra-light,#e07a52); margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.km-materials-carousel__kicker::before { content: ""; display: block; width: 22px; height: 2px; background: var(--r-terra-light,#e07a52); }
.km-materials-carousel__title { font-family: var(--md-font-display),serif; font-weight: 800; font-size: clamp(2.2rem,6vw,4.5rem); letter-spacing: -0.03em; color: #fff; margin: 0 0 0.85rem; line-height: 1.05; }
.km-materials-carousel__lede { font-size: clamp(0.9rem,1.7vw,1.03rem); line-height: 1.72; color: rgba(255,255,255,0.68); max-width: 36rem; margin: 0; }
.km-materials-carousel-section .carousel-indicators { bottom: 1.5rem; }
.km-materials-carousel-section .carousel-indicators li { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.42); border: none; margin: 0 3px; opacity: 1; transition: width 0.4s var(--r-ease,cubic-bezier(0.22,1,0.36,1)), background 0.4s ease; }
.km-materials-carousel-section .carousel-indicators li.active { width: 24px; border-radius: 3px; background: var(--r-terra,#c05a2f); }

.km-subpage-hero--tail { background: var(--r-charcoal,#1c1c1e); padding: clamp(3.5rem,8vw,5.5rem) 0; position: relative; overflow: hidden; }
.km-subpage-hero--tail::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 90% 20%, rgba(192,90,47,0.10) 0%, transparent 55%), radial-gradient(ellipse 50% 40% at 10% 80%, rgba(232,220,200,0.05) 0%, transparent 50%); pointer-events: none; }
.km-subpage-hero--tail .container { position: relative; z-index: 1; }
.km-subpage-hero--tail h2 { font-family: var(--md-font-display),serif; font-weight: 800; font-size: clamp(1.6rem,3.5vw,2.5rem); letter-spacing: -0.025em; color: #fff; margin-bottom: 1.25rem; }
.km-subpage-hero--tail__lead { font-size: clamp(0.92rem,1.7vw,1.05rem); line-height: 1.8; color: rgba(255,255,255,0.62) !important; }
.km-subpage-hero--tail__cta { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff !important; background: var(--r-terra,#c05a2f) !important; border: none !important; border-radius: 100px; padding: 0.88rem 2.25rem; text-decoration: none !important; transition: background 0.3s ease, transform 0.3s var(--r-ease,cubic-bezier(0.22,1,0.36,1)), box-shadow 0.3s ease; box-shadow: 0 4px 20px rgba(192,90,47,0.40); }
.km-subpage-hero--tail__cta:hover { background: var(--r-terra-light,#e07a52) !important; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(192,90,47,0.52); }

.km-materials-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(1rem,2.5vw,1.5rem); margin-top: 2.5rem; max-width: 1360px; margin-left: auto; margin-right: auto; }
@media (min-width:768px) { .km-materials-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width:1100px) { .km-materials-grid { grid-template-columns: repeat(5,1fr); } }
.km-material-tile { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); border-radius: 16px; padding: 1.5rem 1.25rem; text-align: center; transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--r-ease,cubic-bezier(0.22,1,0.36,1)); }
.km-material-tile:hover { background: rgba(192,90,47,0.11); border-color: rgba(192,90,47,0.35); transform: translateY(-4px); }
.km-material-tile__icon { font-size: 1.7rem; color: var(--r-terra-light,#e07a52); margin-bottom: 0.62rem; display: block; }
.km-material-tile__name { font-family: var(--md-font-display),serif; font-weight: 700; font-size: 0.9rem; color: #fff; letter-spacing: 0.04em; }

/* ── Back to top ─────────────────────────────────────────── */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 42px; height: 42px; background: var(--r-charcoal,#1c1c1e); 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,cubic-bezier(0.22,1,0.36,1)), background 0.3s ease; box-shadow: 0 4px 14px rgba(28,28,30,0.28); }
.back-to-top.active { visibility: visible; opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--r-terra,#c05a2f); border-color: var(--r-terra,#c05a2f); color: #fff !important; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width:767px) {
  .km-contact-grid { grid-template-columns: 1fr; }
  .km-service-showcase__grid { grid-template-columns: 1fr; }
  .km-service-card:nth-child(even) { margin-top: 0; }
  .km-materials-carousel__stack { right: 5%; left: 1.5rem; }
  .km-materials-carousel__title { font-size: clamp(1.8rem,8vw,3rem); }
  .km-about-intro__figure::before, .km-about-intro__figure::after { width: 48px; height: 48px; }
}
