/*
Theme Name: Kalm Minds
Theme URI: https://kalmpsych.com/
Author: Kalm Minds Psychiatry
Author URI: https://kalmpsych.com/
Description: Custom psychiatry-practice theme for Kalm Minds. Phase 1 ships a brand-locked coming-soon landing page with full policy pages while the full site is in development.
Version: 0.7.6
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: Proprietary
License URI: https://kalmpsych.com/
Text Domain: kalm-minds
Tags: custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

/* === Design tokens (CSS custom properties; mirror theme.json) === */
:root {
 --km-lavender:  #e5c3e5;
 --km-ember:     #ff671e;
 --km-sky:       #bad9eb;
 --km-forest:    #164734;
 --km-paper:     #ffffff;
 --km-mulberry:  #44101f;

 --km-gradient-hero: linear-gradient(135deg, #ff671e 0%, #e5c3e5 50%, #bad9eb 100%);
 --km-gradient-soft: radial-gradient(circle at 30% 30%, #e5c3e5 0%, #bad9eb 70%);

 --km-font-serif: "Source Serif 4", "Source Serif Pro", "Kepler Std", Georgia, "Times New Roman", serif;
 --km-font-sans:  "Inter", "Interstate", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

 --km-radius-card: 24px;
 --km-radius-pill: 999px;

 --km-shadow-card:    0 8px 24px rgba(22, 71, 52, 0.08);
 --km-shadow-card-hover: 0 16px 40px rgba(22, 71, 52, 0.16);

 --km-ease-pop: cubic-bezier(0.2, 0.8, 0.2, 1);
 --km-dur-fast: 180ms;
 --km-dur-base: 240ms;
 --km-dur-slow: 480ms;

 --km-content-w: 1180px;
 --km-content-narrow: 720px;
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--km-font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--km-mulberry);
  background: var(--km-paper);
 -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--km-forest); text-decoration: none; transition: color var(--km-dur-fast) var(--km-ease-pop); }
a:hover, a:focus-visible { color: var(--km-ember); }
a:focus-visible { outline: 2px solid var(--km-ember); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--km-font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--km-forest);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
p  { margin: 0 0 1em; }

.km-eyebrow {
  font-family: var(--km-font-sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--km-ember);
}

/* === Layout helpers === */
.km-wrap { max-width: var(--km-content-w); margin: 0 auto; padding: 0 24px; }
.km-narrow { max-width: var(--km-content-narrow); margin: 0 auto; padding: 0 24px; }
.km-section { padding: clamp(40px, 5.5vw, 80px) 0; }

/* === Header === */
.km-site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.0);
  backdrop-filter: blur(0);
  transition: background var(--km-dur-base) var(--km-ease-pop), backdrop-filter var(--km-dur-base) var(--km-ease-pop), box-shadow var(--km-dur-base) var(--km-ease-pop);
}
.km-site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 2px 16px rgba(22, 71, 52, 0.08);
}
/* 3-zone grid: brand left, "coming soon" centered, nav right.
   Equal 1fr outer columns balance the centered indicator regardless
   of brand or nav widths. */
.km-site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  /* Preserve horizontal padding from .km-wrap (same element); only override vertical */
  padding-top: 18px;
  padding-bottom: 18px;
}
/* Vertical stack: wordmark on top, locale eyebrow below it. The grid
   container's align-items: center keeps this two-line column visually
   centered against the rest of the header (soon, nav). */
.km-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  justify-self: start;
}
.km-soon { justify-self: center; }
.km-nav  { justify-self: end; }
.km-wordmark {
  display: inline-flex; align-items: center;
  text-decoration: none;
  line-height: 0;
  transition: transform var(--km-dur-base) var(--km-ease-pop);
}
.km-wordmark img {
  height: 32px; width: auto;
  display: block;
  /* Transparent PNG; no rounded plate. */
  border-radius: 0;
}
.km-wordmark:hover { transform: translateY(-1px); }
.km-site-footer .km-wordmark img { height: 48px; }

/* "Coming soon" rendered as a typing indicator. No pill, no border;
   just small-caps text followed by three dots that pulse left-to-right
   to signal active progress on the build. */
.km-soon {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--km-font-sans);
  white-space: nowrap;
}
.km-soon__label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--km-forest);
  opacity: .65;
  transition: opacity var(--km-dur-base) var(--km-ease-pop);
}
.km-brand:hover .km-soon__label { opacity: 1; }
.km-soon__dots {
  display: inline-flex; align-items: baseline; gap: 4px;
  position: relative;
  top: -1px;
}
.km-soon__dots i {
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--km-ember);
  opacity: .25;
  animation: km-soon-pulse 1.6s ease-in-out infinite;
}
.km-soon__dots i:nth-child(1) { animation-delay: 0s; }
.km-soon__dots i:nth-child(2) { animation-delay: .25s; }
.km-soon__dots i:nth-child(3) { animation-delay: .5s; }
@keyframes km-soon-pulse {
  0%, 70%, 100% { opacity: .25; transform: translateY(0); }
  35%           { opacity: 1;   transform: translateY(-2px); }
}
@media (max-width: 540px) {
  .km-soon { display: none; }
}
.km-nav { display: flex; align-items: center; gap: 28px; }
.km-nav a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--km-forest);
}
.km-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: var(--km-radius-pill);
  background: var(--km-forest);
  color: var(--km-paper) !important;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  transition: transform var(--km-dur-base) var(--km-ease-pop), background var(--km-dur-base) var(--km-ease-pop);
}
.km-pill:hover { background: var(--km-ember); transform: translateY(-1px); color: var(--km-paper) !important; }
.km-pill::before {
  content: "";
  width: 8px; height: 8px; border-radius: 999px; background: var(--km-ember);
  box-shadow: 0 0 0 0 rgba(255, 103, 30, .55);
  animation: km-pulse 2.4s var(--km-ease-pop) infinite;
}
.km-pill:hover::before { background: var(--km-paper); }
@keyframes km-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 103, 30, .55); }
  60%  { box-shadow: 0 0 0 8px rgba(255, 103, 30, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 103, 30, 0); }
}

/* === Hero (team-as-hero) ====================================================
   Sean and Jahanzeb are the primary above-the-fold composition. The hero is a
   centered vertical stack: head (eyebrow + wordmark + tagline), team grid,
   CTA. Mosaic / who-we-help / standalone editorial bios were consolidated. */
.km-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--km-mulberry);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 103, 30, .22), transparent 55%),
    linear-gradient(95deg, #f6c8c5 0%, #efc6e1 28%, #e5c3e5 52%, #d3cce4 74%, #bad9eb 100%);
  background-size: 100% 100%, 220% 100%;
  animation: km-gradient-shift 26s ease-in-out infinite;
  padding: clamp(28px, 4vh, 56px) 0 clamp(64px, 7vh, 104px);
  min-height: auto;
  overflow: hidden;
  gap: 0;
}
@keyframes km-gradient-shift {
  0%, 100% { background-position: 50% 0%, 0% 50%; }
  50%      { background-position: 50% 0%, 100% 50%; }
}

.km-hero__head {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: 100%;
  padding: 0 24px clamp(20px, 3vh, 40px);
}
/* Glass eyebrow pill -- matches the team-band wash + CTA pill aesthetic.
   Translucent white with backdrop-blur, hairline forest border, inset
   highlight; reads as the same surface vocabulary as the cards below. */
.km-hero__eyebrow {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--km-radius-pill);
  background: rgba(255, 255, 255, .42);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid rgba(22, 71, 52, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
  color: var(--km-forest);
  font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
/* Locale eyebrow stacked under the wordmark in the header. Plain text
   small-caps -- no pill, no border, no fill. Centered horizontally
   beneath the wordmark via the parent .km-brand's align-items: center. */
.km-header__eyebrow {
  font-family: var(--km-font-sans);
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--km-forest);
  opacity: .65;
  white-space: nowrap;
}
/* Primary H1 -- replaces the wordmark image + tagline as the page
   anchor. Was previously the "meet the team" intro heading; now it
   carries the hero on its own. */
.km-hero__heading {
  margin: 0;
  max-width: 28ch;
  text-align: center;
  font-family: var(--km-font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--km-forest);
  text-wrap: balance;
}
.km-hero__lede {
  margin: clamp(10px, 1.6vh, 18px) 0 0;
  max-width: 56ch;
  text-align: center;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.55;
  color: var(--km-mulberry);
  opacity: .82;
  text-wrap: pretty;
}
/* Section-break label. Bolder, larger, flanked by hairline ember rules
   so "Meet the team" reads as a confident editorial chapter mark sitting
   on the warm-grey wash. */
.km-team-hero__label {
  align-self: center;
  position: relative;
  z-index: 3;
  margin: clamp(40px, 6vh, 80px) 0 clamp(16px, 2.5vh, 32px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--km-font-sans);
  font-size: clamp(.82rem, 1.1vw, .98rem);
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--km-ember);
}
.km-team-hero__label::before,
.km-team-hero__label::after {
  content: "";
  width: clamp(28px, 4vw, 64px);
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(255, 103, 30, .55) 100%);
}
.km-team-hero__label::after {
  background: linear-gradient(to right, rgba(255, 103, 30, .55) 0%, transparent 100%);
}
/* Primary CTA in the hero head -- glassy translucent forest pill,
   shares the visual language of the seam CTA but flows in normal
   document order so it lands above the fold. */
.km-hero__cta--head {
  margin-top: clamp(8px, 1.6vh, 18px);
  background:
    linear-gradient(180deg, rgba(34, 88, 65, .82) 0%, rgba(22, 71, 52, .9) 100%);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(0, 0, 0, .12),
    0 18px 38px rgba(22, 71, 52, .28);
}
.km-hero__cta--head:hover {
  background:
    linear-gradient(180deg, rgba(255, 130, 60, .92) 0%, rgba(255, 103, 30, .96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 -1px 0 rgba(0, 0, 0, .12),
    0 22px 48px rgba(255, 103, 30, .34);
}
@media (max-width: 480px) {
  .km-hero__heading { font-size: 1.3rem; }
}
.km-hero__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px;
  background: var(--km-forest);
  color: var(--km-paper) !important;
  font-weight: 600; letter-spacing: .02em;
  border-radius: var(--km-radius-pill);
  box-shadow: 0 16px 36px rgba(22, 71, 52, .25);
  text-decoration: none;
  transition: transform var(--km-dur-base) var(--km-ease-pop), background var(--km-dur-base) var(--km-ease-pop), box-shadow var(--km-dur-base) var(--km-ease-pop);
}
.km-hero__cta:hover { background: var(--km-ember); transform: translateY(-3px); box-shadow: 0 22px 44px rgba(255, 103, 30, .32); color: var(--km-paper) !important; }
.km-hero__cta::after { content: "→"; transition: transform var(--km-dur-base) var(--km-ease-pop); }
.km-hero__cta:hover::after { transform: translateX(4px); }

/* === Team-hero grid =========================================================
   Two provider panels meet edge-to-edge (zero gap, no rounded corners). Each
   side has its own brand-tinted background. The CTA pill straddles the seam
   between them as connective tissue. Compact: drops the previous portrait
   boxes -- the giant initial (Inter 800) becomes the visual anchor. */
/* Outer wrapper: flex column so the "Meet the team" label sits cleanly
   above the two-card grid without fighting the cards' grid placement. */
.km-team-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  isolation: isolate;
}
.km-team-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
@media (max-width: 720px) {
  .km-team-hero__grid { grid-template-columns: 1fr; }
}

.km-team-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 3vw, 56px);
  align-items: start;
  padding: clamp(44px, 5vw, 88px) clamp(32px, 3.6vw, 72px) clamp(56px, 6vw, 96px);
  text-align: left;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  transition: filter var(--km-dur-base) var(--km-ease-pop);
  z-index: 3;
}
/* Merged aesthetic. Panels are mostly transparent so the hero gradient flows
   continuously through the team area; a barely-there column wash hints at
   each provider's accent without breaking the atmosphere. The S/J containers
   feel like part of the gradient, not solid blocks pasted on top. */
.km-team-card--sean {
  background:
    radial-gradient(140% 110% at 14% 30%, rgba(186, 217, 235, .18) 0%, rgba(186, 217, 235, .06) 50%, transparent 90%),
    transparent;
  color: var(--km-forest);
}
.km-team-card--jahanzeb {
  background:
    radial-gradient(140% 110% at 86% 30%, rgba(229, 195, 229, .20) 0%, rgba(229, 195, 229, .06) 50%, transparent 90%),
    transparent;
  color: var(--km-forest);
}
.km-team-card:hover { filter: brightness(1.02); }

/* Soft vertical seam between the panels - a hairline gradient echoing the
   surrounding hero colors instead of a hard border. Hidden when the panels
   stack on mobile. */
.km-team-hero::before {
  content: "";
  position: absolute;
  top: 8%; bottom: 8%;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(22, 71, 52, .14) 25%,
    rgba(22, 71, 52, .14) 75%,
    transparent 100%);
  z-index: 2;
  pointer-events: none;
}
@media (max-width: 720px) {
  .km-team-hero::before { display: none; }
}

/* Neutral wash with feathered edges. The mask-image gates both the
   warm-grey color AND the backdrop-filter, so saturation and alpha
   fade in together across the top ~14% of the team band. The colorful
   hero gradient above bleeds visibly into the grey instead of meeting
   it at a hard horizontal line. */
.km-team-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(241, 240, 236, .82);
  backdrop-filter: saturate(.55) blur(.5px);
  -webkit-backdrop-filter: saturate(.55) blur(.5px);
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0, 0, 0, 0)   0%,
    rgba(0, 0, 0, 1)  14%,
    rgba(0, 0, 0, 1)  86%,
    rgba(0, 0, 0, 0) 100%);
          mask-image: linear-gradient(to bottom,
    rgba(0, 0, 0, 0)   0%,
    rgba(0, 0, 0, 1)  14%,
    rgba(0, 0, 0, 1)  86%,
    rgba(0, 0, 0, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Faint dot motif. Same atmospheric feel - thinner alpha so they read as
   ambient sparkle on the gradient rather than panel decoration. */
.km-team-card::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 92% 14%, rgba(22, 71, 52, .14)    0 4px, transparent 4px),
    radial-gradient(circle at 8% 88%,  rgba(255, 255, 255, .55) 0 5px, transparent 5px);
}
.km-team-card--jahanzeb::after {
  background-image:
    radial-gradient(circle at 92% 14%, rgba(22, 71, 52, .14)   0 4px, transparent 4px),
    radial-gradient(circle at 8% 88%,  rgba(229, 195, 229, .5) 0 5px, transparent 5px);
}

/* Initial as anchor: Inter 800 (sans, no swirly serif tails). Drops in
   the top-left of each panel; the body content flows to its right. */
.km-team-card__initial {
  position: relative;
  z-index: 1;
  font-family: var(--km-font-sans);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(3.6rem, 6.4vw, 5.6rem);
  line-height: .85;
  letter-spacing: -0.06em;
  color: var(--km-forest);
  align-self: start;
  margin-top: -.04em;
}
.km-team-card--jahanzeb .km-team-card__initial { color: var(--km-forest); }

.km-team-card__body {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  gap: 10px;
  min-width: 0;
  max-width: 52ch;
}
.km-team-card__body .km-eyebrow {
  font-size: .64rem; letter-spacing: .2em; margin: 0;
  color: var(--km-ember); opacity: .85;
}
.km-team-card__name {
  margin: 0;
  font-family: var(--km-font-serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: inherit;
}
.km-team-card--sean .km-team-card__name { color: var(--km-forest); }
.km-team-card--jahanzeb .km-team-card__name { color: var(--km-forest); }
.km-team-card__role {
  margin: 0 0 4px;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--km-mulberry);
}
.km-team-card--jahanzeb .km-team-card__role { color: var(--km-mulberry); }
.km-team-card__lead {
  margin: 8px 0 0;
  font-family: var(--km-font-serif);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.4;
  color: inherit;
  opacity: .92;
}
.km-team-card__bio {
  margin: 0;
  font-size: .92rem;
  color: inherit;
  line-height: 1.5;
  opacity: .82;
}
/* Editorial caption -- replaces the previous status pill. Reads as a
   magazine deck or chapter marker: a hairline rule fades into quiet
   small-caps text, no fill, no border. The "·" dot interrupts the rule
   to feel like a typesetter's mark rather than a UI badge. */
.km-team-card__meta {
  margin: 16px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.km-team-card__meta::before {
  content: "";
  flex: 0 0 auto;
  width: 32px;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(22, 71, 52, .45) 100%);
}
.km-team-card__meta::after {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(22, 71, 52, .55);
  order: 0;
}
.km-team-card__meta em {
  order: 1;
  font-family: var(--km-font-sans);
  font-style: normal;
  font-weight: 500;
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(22, 71, 52, .72);
  background: transparent;
  border: 0;
  padding: 0;
  white-space: nowrap;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* === Mobile === */
@media (max-width: 720px) {
  /* Header: drop the 3-column grid (brand + soon + nav cells were fighting
     for 1fr space and clipping the logo). Use flex space-between so brand
     and pill take their natural width; soon (if visible) sits in the middle. */
  .km-site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    /* keep horizontal padding from .km-wrap; only override vertical */
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .km-brand,
  .km-soon,
  .km-nav { justify-self: auto; }
  .km-brand { flex: 0 0 auto; min-width: 0; }
  .km-nav   { flex: 0 0 auto; }

  /* Nav text links hidden, only the "Now scheduling" pill survives.
     Pre-launch site has no real navigation; the pill is the single CTA. */
  .km-nav a:not(.km-pill) { display: none; }
  .km-nav { gap: 0; }
  .km-wordmark img { height: 26px; }
  .km-header__eyebrow { font-size: .52rem; letter-spacing: .2em; }

  /* Team-hero label: shorter flanking dashes so it doesn't overflow */
  .km-team-hero__label {
    gap: 10px;
    font-size: .78rem;
    letter-spacing: .22em;
  }
  .km-team-hero__label::before,
  .km-team-hero__label::after { width: 22px; }

  /* Cards (single-column already via .km-team-hero__grid mobile rule) */
  .km-team-card { padding: 24px 22px 28px; gap: 16px; }
  .km-team-card__initial { font-size: 4.2rem; }
  .km-team-card__name { font-size: 1.55rem; }
  .km-team-card__lead { font-size: 1rem; }
  .km-team-card__bio  { font-size: .9rem; }
}
@media (max-width: 540px) {
  /* Tighten the "Now scheduling" pill so the brand stack
     (wordmark + locale eyebrow) has room to breathe. */
  .km-pill { padding: 6px 12px; font-size: .78rem; gap: 6px; }
  .km-pill::before { width: 6px; height: 6px; }
}
@media (max-width: 480px) {
  .km-hero { padding: 16px 0 0; }
  .km-hero__head { padding: 0 18px 18px; }
  .km-hero__heading { font-size: clamp(1.55rem, 6.5vw, 1.95rem); }
  .km-hero__lede { font-size: .96rem; }
  .km-team-card { padding: 22px 18px 24px; }
  .km-team-card__initial { font-size: 3.8rem; }
  /* Locale eyebrow stays visible -- shrinks slightly to fit the
     compact brand stack on phone screens. */
  .km-header__eyebrow { font-size: .48rem; letter-spacing: .18em; }
  .km-pill { padding: 5px 11px; font-size: .74rem; }
}


/* === Coming-soon banner === */
.km-banner {
  background: var(--km-forest);
  color: var(--km-paper);
}
.km-banner__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0;
  font-size: .98rem;
}
.km-banner__inner strong { color: var(--km-paper); }
.km-banner__inner .km-banner__cta {
  display: inline-flex; gap: 8px; align-items: center;
  color: var(--km-paper); font-weight: 600; letter-spacing: .02em;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 2px;
}
.km-banner__inner .km-banner__cta:hover { color: var(--km-ember); border-color: var(--km-ember); }

/* === Sections === */
.km-section--lavender { background: var(--km-lavender); }
/* Animated sky wash. Echoes the hero's km-gradient-shift drift but
   anchored to sky with a soft lavender corner glow, ~30s cycle. */
.km-section--sky {
  background:
    radial-gradient(ellipse at 88% 110%, rgba(229, 195, 229, .42), transparent 58%),
    linear-gradient(105deg, #cee3f0 0%, #bad9eb 48%, #d6cee5 100%);
  background-size: 100% 100%, 220% 100%;
  animation: km-gradient-shift 30s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .km-section--sky { animation: none; }
}
.km-section--ember    { background: var(--km-ember); color: var(--km-paper); }
.km-section--ember h2, .km-section--ember h3 { color: var(--km-paper); }
.km-section--forest   { background: var(--km-forest); color: var(--km-paper); }
.km-section--forest h2, .km-section--forest h3 { color: var(--km-paper); }

.km-section__head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.km-section__head p + p { margin-top: .6em; }
.km-section h2 { text-wrap: balance; }
.km-section p { text-wrap: pretty; }

/* === Contact CTA === */
.km-contact { text-align: center; }
.km-contact__methods { display: flex; flex-wrap: wrap; gap: 36px; justify-content: center; margin-top: 28px; }
.km-contact__method { font-size: 1.05rem; }
.km-contact__method strong { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--km-paper); opacity: .7; margin-bottom: 6px; }
.km-contact__method a { color: var(--km-paper); border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 2px; }
.km-contact__method a:hover { color: var(--km-lavender); border-color: var(--km-lavender); }

/* === Footer === */
.km-site-footer {
  background: var(--km-forest);
  color: rgba(255,255,255,.78);
  padding: 64px 0 28px;
  font-size: .92rem;
}
.km-site-footer h4 { color: var(--km-paper); font-family: var(--km-font-sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.km-site-footer ul { list-style: none; margin: 0; padding: 0; }
.km-site-footer li { margin-bottom: 8px; }
.km-site-footer a { color: rgba(255,255,255,.78); }
.km-site-footer a:hover { color: var(--km-paper); }
.km-footer__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 880px) { .km-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .km-footer__cols { grid-template-columns: 1fr; } }
.km-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: .84rem; opacity: .7; }
.km-footer__bottom a { color: inherit; }

/* === Policy page === */
.km-policy {
  padding: clamp(56px, 8vw, 96px) 0 96px;
}
.km-policy__draft {
  background: #fff7ed;
  border: 1px solid #ffd7b8;
  color: var(--km-mulberry);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 0 0 40px;
  font-size: .92rem;
  line-height: 1.5;
}
.km-policy__draft strong {
  color: var(--km-ember);
  font-weight: 700;
  margin-right: 4px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}
.km-policy__head { text-align: center; margin-bottom: 56px; }
.km-policy__head .km-eyebrow { color: var(--km-ember); }
.km-policy__body {
  font-size: 1.02rem;
  color: var(--km-mulberry);
}
.km-policy__body h2 { font-size: 1.6rem; margin-top: 2.2em; color: var(--km-forest); }
.km-policy__body h3 { font-size: 1.2rem; margin-top: 1.8em; color: var(--km-forest); font-family: var(--km-font-sans); font-weight: 600; }
.km-policy__body ul { padding-left: 1.4em; }
.km-policy__body li { margin-bottom: .4em; }
.km-policy__body a { color: var(--km-ember); }
.km-policy__body a:hover { color: var(--km-mulberry); }

/* === Contact modal === */
.km-modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 5vh 16px;
  overflow-y: auto;
}
.km-modal.is-open { display: flex; animation: km-modal-fade var(--km-dur-base) var(--km-ease-pop); }
@keyframes km-modal-fade { from { opacity: 0; } to { opacity: 1; } }

.km-modal__backdrop {
  position: fixed; inset: 0;
  background: rgba(22, 71, 52, 0.62);
  backdrop-filter: saturate(140%) blur(6px);
}
.km-modal__panel {
  position: relative;
  width: min(640px, 100%);
  background: var(--km-paper);
  border-radius: var(--km-radius-card);
  box-shadow: 0 30px 80px rgba(22, 71, 52, 0.32);
  overflow: hidden;
  animation: km-modal-rise var(--km-dur-slow) var(--km-ease-pop);
}
@keyframes km-modal-rise {
  from { transform: translateY(20px) scale(.98); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}
.km-modal__close {
  position: absolute; top: 14px; right: 18px; z-index: 2;
  background: rgba(255,255,255,.18);
  color: var(--km-paper);
  border: 0;
  width: 36px; height: 36px;
  border-radius: 999px;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  transition: background var(--km-dur-fast) var(--km-ease-pop), transform var(--km-dur-fast) var(--km-ease-pop);
}
.km-modal__close:hover { background: rgba(255,255,255,.32); transform: rotate(90deg); }
.km-modal__head {
  background: var(--km-gradient-hero);
  background-size: 220% 220%;
  animation: km-gradient-shift 24s ease-in-out infinite;
  color: var(--km-paper);
  padding: 36px 40px 30px;
}
.km-modal__head h2 { color: var(--km-paper); margin: 6px 0 12px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.km-modal__head p  { color: rgba(255,255,255,.92); margin: 0; max-width: 48ch; }

/* === Form === */
.km-form { padding: 28px 40px 32px; }
.km-form__row { display: grid; gap: 14px; margin-bottom: 14px; }
.km-form__row--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) {
  .km-form__row--2 { grid-template-columns: 1fr; }
  .km-modal__head, .km-form { padding-left: 24px; padding-right: 24px; }
}

.km-field { display: block; margin-bottom: 14px; position: relative; }
.km-field > span,
.km-field > legend {
  display: block; padding: 0;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: var(--km-forest);
  margin-bottom: 6px;
}
.km-field > span small { font-weight: 400; color: var(--km-mulberry); opacity: .55; letter-spacing: 0; }
.km-field input[type=text],
.km-field input[type=email],
.km-field input[type=tel],
.km-field select,
.km-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e8d8e8;
  border-radius: 12px;
  background: #faf8fb;
  font: inherit;
  color: var(--km-mulberry);
  transition: border-color var(--km-dur-fast) var(--km-ease-pop), background var(--km-dur-fast) var(--km-ease-pop), box-shadow var(--km-dur-fast) var(--km-ease-pop);
}
.km-field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.km-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--km-forest) 50%), linear-gradient(135deg, var(--km-forest) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.km-field input:focus,
.km-field select:focus,
.km-field textarea:focus {
  outline: none;
  border-color: var(--km-ember);
  background: var(--km-paper);
  box-shadow: 0 0 0 4px rgba(255, 103, 30, .15);
}
/* fieldset has min-width: min-content by default which makes it wider
   than a sibling <label> in a grid row -- forces visual misalignment.
   Reset to 0 so both sides of the row track the grid column width. */
.km-field--radio {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  min-width: 0;
}
.km-field--radio > legend {
  /* legend has special rendering -- normalize to behave like a span */
  float: left;
  width: 100%;
  padding: 0;
}
.km-field--radio label {
  display: inline-flex; align-items: center; gap: 6px;
  margin-right: 14px; margin-bottom: 6px;
  font-size: .94rem; color: var(--km-mulberry);
  cursor: pointer;
}
/* clear after the floated legend so radio rows lay out below it */
.km-field--radio::after {
  content: "";
  display: table;
  clear: both;
}
.km-field--radio input[type=radio] { accent-color: var(--km-ember); }
.km-field--check {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: #fbf3f3;
  border-left: 3px solid var(--km-ember);
  border-radius: 8px;
  margin: 18px 0 8px;
}
.km-field--check input[type=checkbox] {
  margin-top: 4px; accent-color: var(--km-ember); flex-shrink: 0;
}
.km-field--check span {
  font-size: .88rem; line-height: 1.5; color: var(--km-mulberry); margin: 0;
  font-weight: 400; letter-spacing: 0; text-transform: none;
}
.km-field__err {
  display: block; margin-top: 4px;
  color: #c2410c;
  font-size: .82rem; font-style: normal;
  min-height: 0; transition: min-height var(--km-dur-fast);
}
.km-field--error input,
.km-field--error select,
.km-field--error textarea {
  border-color: #c2410c;
  background: #fff7ed;
}

.km-honeypot {
  position: absolute !important;
  left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;
}

.km-form__actions {
  display: flex; gap: 12px; align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.km-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px;
  border-radius: var(--km-radius-pill);
  border: 0;
  font: inherit; font-weight: 600; letter-spacing: .02em;
  cursor: pointer;
  transition: transform var(--km-dur-base) var(--km-ease-pop), background var(--km-dur-base) var(--km-ease-pop), box-shadow var(--km-dur-base) var(--km-ease-pop), color var(--km-dur-base) var(--km-ease-pop);
}
.km-btn--primary {
  background: var(--km-ember); color: var(--km-paper);
  box-shadow: 0 8px 22px rgba(255, 103, 30, .28);
}
.km-btn--primary:hover { background: var(--km-mulberry); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(68, 16, 31, .35); }
.km-btn--primary:disabled { opacity: .7; cursor: progress; transform: none; }
.km-btn--ghost {
  background: transparent; color: var(--km-forest);
  border: 1.5px solid #e8d8e8;
}
.km-btn--ghost:hover { background: #faf8fb; }
.km-btn__spin {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: var(--km-paper);
  border-radius: 999px;
  animation: km-spin .8s linear infinite;
}
.km-btn.is-loading .km-btn__spin { display: inline-block; }
.km-btn.is-loading .km-btn__label { opacity: .7; }
@keyframes km-spin { to { transform: rotate(360deg); } }

.km-form__msg {
  margin-top: 14px;
  font-size: .92rem;
  min-height: 1em;
}
.km-form__msg--err { color: #c2410c; }
.km-form__msg--ok  { color: var(--km-forest); }

.km-form__success {
  padding: 56px 40px;
  text-align: center;
}
.km-form__success-mark {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  background: var(--km-forest); color: var(--km-paper);
  border-radius: 999px;
  font-size: 32px;
  animation: km-pop var(--km-dur-slow) var(--km-ease-pop);
}
@keyframes km-pop {
  0%   { transform: scale(.4); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.km-form__success h3 { margin: 0 0 8px; }
.km-form__success p  { color: var(--km-mulberry); max-width: 38ch; margin: 0 auto 24px; }

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .km-hero__taglines span { opacity: 1; }
  .km-hero__taglines span:not(:first-child) { display: none; }
}

/* === Mobile === */
@media (max-width: 720px) {
  .km-nav { gap: 16px; }
  .km-nav a:not(.km-pill) { display: none; }
  .km-hero__inner { padding: 96px 18px 64px; }
}
