/* ==========================================================================
   KALI AI — Stylesheet v2 ("The Quiet Foundation", designed pass)
   Signature: the recurring "support layer" — soft layered bands that echo
   the brand's core idea (AI as a quiet layer beneath the real work).
   A deliberately distinct sub-brand: not the kAlI Cipher identity.
   ========================================================================== */

/* -------------------- Design tokens -------------------- */
:root {
  --cream:        #F8F4EA;
  --cream-deep:   #F1E8D6;
  --cream-warm:   #FBF8F1;
  --white:        #FFFFFF;
  --ink:          #212E32;
  --ink-soft:     #52616B;
  --border:       rgba(33, 46, 50, 0.14);
  --border-soft:  rgba(33, 46, 50, 0.07);

  --sage-700:     #3E5836;
  --sage-600:     #4C6B41;
  --sage-500:     #5C7A4E;
  --sage-400:     #7C9A6C;
  --sage-200:     #C3D3B4;
  --sage-100:     #E4EBDD;
  --sage-50:      #EFF3EA;

  --clay-600:     #8C6740;
  --clay-400:     #B98E5E;
  --clay-300:     #C7A87E;
  --clay-100:     #ECDCC6;

  --teal-600:     #3D6260;
  --teal-200:     #BFDAD8;

  --lavender-700: #4A3F63;
  --lavender-600: #5B4E77;
  --lavender-200: #E9E2F3;
  --lavender-100: #F1ECF8;

  --gold-600:     #8C6A2E;
  --gold-400:     #C2A24E;
  --gold-300:     #D9BD8A;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --max-wide:     1140px;
  --max-read:     760px;
  --radius:       10px;
  --radius-lg:    18px;
  --radius-sm:    6px;

  --shadow-sm:    0 1px 2px rgba(33,46,50,0.04), 0 2px 8px rgba(33,46,50,0.05);
  --shadow-md:    0 4px 12px rgba(33,46,50,0.06), 0 12px 32px rgba(33,46,50,0.07);
  --shadow-lg:    0 8px 24px rgba(33,46,50,0.08), 0 24px 60px rgba(33,46,50,0.10);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
ul, ol { padding-left: 1.25em; }
a { color: var(--sage-600); text-decoration-thickness: 1.5px; text-underline-offset: 0.15em; transition: color 0.15s var(--ease); }
a:hover { color: var(--ink); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--sage-600);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--ink); color: var(--cream);
  padding: 0.75em 1.25em; z-index: 1000; border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; top: 0; }

/* -------------------- Type scale -------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 460;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.4rem, 1.5rem + 3.7vw, 4rem); font-weight: 440; }
h2 { font-size: clamp(1.8rem, 1.35rem + 1.9vw, 2.6rem); }
h3 {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
p { margin: 0 0 1.15em; }
.lede {
  font-size: clamp(1.12rem, 1.02rem + 0.5vw, 1.4rem);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 44ch;
}
small, .caption { font-size: 0.875rem; color: var(--ink-soft); }

/* -------------------- Layout utilities -------------------- */
.wrap { max-width: var(--max-wide); margin-inline: auto; padding-inline: 1.75rem; }
.wrap-read { max-width: var(--max-read); margin-inline: auto; padding-inline: 1.75rem; }
.section { padding-block: clamp(3.5rem, 2.5rem + 5vw, 6.5rem); position: relative; }

.section--deep   { background: var(--cream-deep); }
.section--warm   { background: var(--cream-warm); }
.section--sage   { background: var(--sage-50); }
.section--ink    { background: var(--ink); color: var(--cream); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--cream); }

.stack { display: flex; flex-direction: column; }
.gap-sm { gap: 0.75rem; } .gap-md { gap: 1.5rem; } .gap-lg { gap: 2.5rem; }

/* Eyebrow — small structural label with a leading tick */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body); font-weight: 650;
  font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--sage-600); margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--clay-400); border-radius: 2px;
}
.section--ink .eyebrow { color: var(--sage-200); }
.section--ink .eyebrow::before { background: var(--gold-400); }

/* -------------------- The signature: layered-band motif -------------------- */
/* A soft stack of translucent bands evoking "a support layer beneath" */
.layerband {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.layerband span {
  position: absolute; left: -10%; right: -10%; height: 40%;
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(6px);
}
.layerband span:nth-child(1) { bottom: -18%; background: var(--sage-100); opacity: 0.55; }
.layerband span:nth-child(2) { bottom: -26%; background: var(--clay-100); opacity: 0.4; }
.layerband span:nth-child(3) { bottom: -34%; background: var(--sage-50); opacity: 0.6; }
.section > .wrap, .section > .wrap-read { position: relative; z-index: 1; }

/* Thin layered divider used between some sections */
.layer-divider { height: 3px; border: none; margin: 0;
  background: linear-gradient(90deg, transparent, var(--clay-300) 20%, var(--sage-400) 50%, var(--clay-300) 80%, transparent);
  opacity: 0.6;
}

/* -------------------- Header / nav -------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 244, 234, 0.82);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(248,244,234,0.94); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 3rem); padding-block: 1.05rem;
}

.logo {
  display: inline-flex; align-items: center; gap: 0.62rem;
  text-decoration: none; flex: none; white-space: nowrap; color: var(--ink);
}
.logo__mark {
  width: 34px; height: 34px; flex: none; display: block;
  border-radius: 9px; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out);
}
.logo:hover .logo__mark { transform: translateY(-1px) rotate(-3deg); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 560;
  letter-spacing: -0.02em; color: var(--ink);
}
.logo__sub {
  font-family: var(--font-body); font-size: 0.6rem; font-weight: 650;
  letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--sage-600); margin-top: 0.34em;
}
.logo:hover .logo__name { color: var(--ink); }

.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.primary-nav__list { display: flex; list-style: none; margin: 0; padding: 0; gap: 1.4rem; }
.primary-nav__list a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.94rem;
  padding: 0.4rem 0.15rem; position: relative; white-space: nowrap;
}
.primary-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--sage-500); border-radius: 2px; transition: right 0.25s var(--ease-out);
}
.primary-nav__list a:hover::after, .primary-nav__list a[aria-current="page"]::after { right: 0; }
.primary-nav__list a[aria-current="page"] { color: var(--sage-600); }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm); padding: 0.55rem 0.7rem; cursor: pointer;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  display: block; width: 20px; height: 2px; background: var(--ink); position: relative;
  transition: transform 0.2s var(--ease);
}
.nav-toggle__bar::before { content: ""; position: absolute; top: -6px; }
.nav-toggle__bar::after { content: ""; position: absolute; top: 6px; }


/* -------------------- Navigation: menu takes over before it can crowd -------------------- */
.nav-item-cta { display: none; }

@media (max-width: 1080px) {
  .primary-nav__list {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0; padding: 0.75rem 1.75rem 1.5rem;
    display: none; box-shadow: var(--shadow-lg);
  }
  .primary-nav__list.is-open {
    display: flex;
    animation: navDrop 0.26s var(--ease-out) both;
  }
  .primary-nav__list a {
    display: block; padding: 0.95rem 0; font-size: 1.05rem;
    border-bottom: 1px solid var(--border-soft);
  }
  .primary-nav__list a::after { display: none; }
  .primary-nav__list a[aria-current="page"] { color: var(--sage-600); font-weight: 600; }
  .primary-nav__list li:nth-last-child(2) a { border-bottom: none; }

  .nav-item-cta { display: block; margin-top: 1rem; }
  .nav-item-cta a {
    background: var(--sage-600); color: var(--white); text-align: center;
    border-radius: 999px; padding: 0.85rem 1.4rem; font-weight: 600;
    border-bottom: none; box-shadow: var(--shadow-sm);
  }
  .nav-item-cta a:hover { background: var(--sage-700); color: var(--white); }

  .primary-nav .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav .nav-cta { display: none; }
}

@media (max-width: 560px) {
  .logo { gap: 0.5rem; }
  .logo__mark { width: 29px; height: 29px; border-radius: 8px; }
  .logo__name { font-size: 1.18rem; }
  .logo__sub { font-size: 0.55rem; letter-spacing: 0.16em; }
}
@media (max-width: 380px) {
  .logo__name { font-size: 1.06rem; }
  .logo__sub { font-size: 0.5rem; }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .primary-nav__list.is-open { animation: none; }
}

/* Toggle becomes a close button when the menu is open */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { transform: translateY(-6px) rotate(-45deg); }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 0.92em 1.7em; border-radius: 999px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.18s var(--ease-out), background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.2s var(--ease);
  min-height: 46px; line-height: 1.2; white-space: nowrap;
}
.btn--primary { background: var(--sage-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--sage-700); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--secondary { background: transparent; color: var(--ink); border-color: rgba(33,46,50,0.3); }
.btn--secondary:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: translateY(-2px); }
.section--ink .btn--secondary { color: var(--cream); border-color: rgba(248,244,234,0.4); }
.section--ink .btn--secondary:hover { background: var(--cream); color: var(--ink); }
.btn--ghost {
  background: transparent; color: var(--sage-600); padding: 0.3em 0; border: none;
  border-radius: 0; font-weight: 600; position: relative; gap: 0.4em;
}
.btn--ghost::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px;
  background: var(--sage-400); transform-origin: left; transition: transform 0.25s var(--ease-out), background 0.2s;
}
.btn--ghost:hover { color: var(--ink); }
.btn--ghost:hover::after { background: var(--ink); transform: scaleX(1.0); }
.btn--ghost .arrow { transition: transform 0.2s var(--ease-out); display: inline-block; }
.btn--ghost:hover .arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* -------------------- Hero -------------------- */
.hero { padding-block: clamp(4rem, 3rem + 5vw, 7rem) clamp(3rem, 2.5rem + 3vw, 5rem); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: 0.55em; }
.hero .lede { max-width: 50ch; margin-bottom: 2em; }
.hero__eyebrow { margin-bottom: 1.4rem; }

/* animated entrance */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* -------------------- Hero art: the "support layer" scene -------------------- */
.hero-art {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 5 / 4.4; box-shadow: var(--shadow-lg);
  background: linear-gradient(165deg, #FBF8F1 0%, #F3E9D7 45%, #E8DFC8 100%);
  isolation: isolate;
}
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-art figcaption, .hero-art__note {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 3.5rem 1.4rem 1.15rem;
  font-size: 0.88rem; line-height: 1.5; color: #FFFFFF; font-weight: 500;
  background: linear-gradient(to top, rgba(20,30,24,0.82) 0%, rgba(20,30,24,0.55) 45%, rgba(20,30,24,0) 100%);
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.hero-art__dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage-200); margin-right: 0.55em; vertical-align: 0.12em;
}

/* -------------------- Cards / grids -------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card {
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 2rem 1.9rem; position: relative;
  box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  background: var(--sage-400); transform: scaleX(1); transform-origin: left;
}
.card--accent-clay::before { background: var(--clay-400); }
.card--accent-teal::before { background: var(--teal-600); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 0.55em; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 1.2rem; background: var(--sage-50); color: var(--sage-600);
}
.card--accent-clay .card__icon { background: var(--clay-100); color: var(--clay-600); }
.card--accent-teal .card__icon { background: var(--teal-200); color: var(--teal-600); }
.card__icon svg { width: 24px; height: 24px; }

/* -------------------- Process steps -------------------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.process__step { position: relative; padding-top: 1.25rem; }
.process__step::before {
  content: ""; position: absolute; top: 0; left: 0; width: 34px; height: 3px;
  background: var(--clay-400); border-radius: 3px;
}
.process__num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 420; color: var(--sage-500);
  display: block; margin-bottom: 0.4rem; line-height: 1;
}
.process__step h3 { margin-bottom: 0.4em; }
.process__step p { margin-bottom: 0; font-size: 0.98rem; }

/* -------------------- Diagram -------------------- */
.diagram-frame {
  background: linear-gradient(160deg, var(--white), var(--cream-warm));
  border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2.75rem); box-shadow: var(--shadow-md);
}
.diagram-frame svg { width: 100%; height: auto; }
.diagram-layer { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.diagram-layer.will-animate { opacity: 0; transform: translateY(10px); }
.diagram-layer.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .diagram-layer { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* -------------------- Pills -------------------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.pill {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.5em 1.1em; font-size: 0.92rem; color: var(--ink-soft);
  font-weight: 500; box-shadow: var(--shadow-sm); transition: transform 0.18s var(--ease-out), border-color 0.2s;
}
.pill:hover { transform: translateY(-2px); border-color: var(--sage-400); }

/* -------------------- Two-column content -------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split--top { align-items: start; }

/* Media panel art (approach section etc.) */
.media-art {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3.2; position: relative;
  background: linear-gradient(150deg, #EFF3EA, #E4EBDD 60%, #D6E0CB);
}
.media-art svg { width: 100%; height: 100%; }
.media-art--clay { background: linear-gradient(150deg, #FBF6EE, #ECDCC6 60%, #DFC9AA); }

/* -------------------- Photography -------------------- */
.photo {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  background: var(--sage-50); margin: 0; position: relative;
}
.photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.85s var(--ease-out);
}
.photo:hover img { transform: scale(1.035); }
.photo--split { aspect-ratio: 4 / 3.2; }
.photo--band  { border-radius: 0; box-shadow: none; }
.photo--wide  { aspect-ratio: 21 / 9; }
.photo--tall  { aspect-ratio: 4 / 3.6; }
.photo__caption {
  display: block; font-size: 0.86rem; color: var(--ink-soft);
  padding-top: 0.85rem; line-height: 1.5; max-width: 46ch;
}
.section--ink .photo__caption { color: rgba(248,244,234,0.7); }

/* -------------------- Founder -------------------- */
.founder {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.founder__quote {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.2rem, 1rem + 0.85vw, 1.65rem); line-height: 1.45; color: var(--ink);
  border-left: 3px solid var(--sage-400); padding-left: clamp(1.1rem, 2vw, 1.75rem);
  margin: 0;
}
.founder__quote cite {
  display: block; font-family: var(--font-body); font-style: normal;
  font-size: 0.92rem; font-weight: 550; color: var(--ink-soft);
  margin-top: 1.1rem; letter-spacing: 0.01em;
}
.beliefs { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.beliefs li {
  background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 1.05rem 1.3rem 1.05rem 3.1rem; position: relative;
  box-shadow: var(--shadow-sm); color: var(--ink); line-height: 1.55;
  transition: transform 0.18s var(--ease-out), border-color 0.2s;
}
.beliefs li:hover { transform: translateY(-2px); border-color: var(--sage-200); }
.beliefs li::before {
  content: ""; position: absolute; left: 1.3rem; top: 1.45em; width: 0.8em; height: 0.8em;
  border-radius: 50%; border: 2px solid var(--sage-400); background: var(--sage-50);
}
.bio-card {
  background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm);
}
.bio-card h3 { margin-bottom: 0.6em; }
.bio-card p:last-child { margin-bottom: 0; }

/* -------------------- FAQ (accordion) -------------------- */
.faq-list { border-top: 1px solid var(--border); margin-top: 0.5rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.5rem 0; display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1.5rem; font-family: var(--font-body);
  font-weight: 640; font-size: 1.12rem; color: var(--ink); line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .marker {
  flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--sage-500);
  display: grid; place-items: center; color: var(--sage-600); transition: transform 0.25s var(--ease-out), background 0.2s;
  margin-top: 0.1em;
}
.faq-item summary .marker::before { content: "+"; font-size: 1.1rem; line-height: 1; }
.faq-item[open] summary .marker { transform: rotate(45deg); background: var(--sage-50); }
.faq-item__body { padding: 0 0 1.6rem; color: var(--ink-soft); max-width: 60ch; }
.faq-item__body p:last-child { margin-bottom: 0; }

/* -------------------- Checklist -------------------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.5em; }
.checklist li { position: relative; padding-left: 2.1em; margin-bottom: 0.9em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.15em; width: 1.35em; height: 1.35em;
  border-radius: 50%; background: var(--sage-50); border: 1.5px solid var(--sage-400);
}
.checklist li::after {
  content: ""; position: absolute; left: 0.42em; top: 0.42em; width: 0.5em; height: 0.28em;
  border-left: 2px solid var(--sage-600); border-bottom: 2px solid var(--sage-600);
  transform: rotate(-45deg);
}

/* -------------------- Big rule -------------------- */
.rule { border: none; border-top: 1px solid var(--border); margin: 0; }

/* -------------------- Form -------------------- */
.form-card {
  background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem); box-shadow: var(--shadow-md);
}
.form-field { margin-bottom: 1.4rem; display: flex; flex-direction: column; gap: 0.45rem; }
.form-field label { font-weight: 640; font-size: 0.92rem; }
.form-field input, .form-field textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 0.85em 1em;
  border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--cream-warm);
  color: var(--ink); min-height: 46px; transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--sage-500); background: var(--white); box-shadow: 0 0 0 4px rgba(92,122,78,0.1);
}
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.6rem; }
.form-optional { font-weight: 400; color: var(--ink-soft); font-size: 0.85em; }
.form-status {
  margin-top: 1rem; margin-bottom: 0; padding: 0.85rem 1.1rem;
  border-radius: var(--radius); font-size: 0.94rem; font-weight: 500;
  border-left: 3px solid transparent;
}
.form-status--ok  { background: var(--sage-50); color: var(--sage-700); border-left-color: var(--sage-500); }
.form-status--err { background: var(--clay-100); color: var(--clay-600); border-left-color: var(--clay-400); }
.form-status[hidden] { display: none; }

.aside-card {
  background: var(--cream-warm); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.aside-card + .aside-card { margin-top: 1.25rem; }
.aside-card h3 { margin-bottom: 0.5em; }
.aside-card p:last-child { margin-bottom: 0; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--ink); color: var(--cream); padding-block: 4rem 2.25rem; position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--sage-500), var(--clay-400) 50%, var(--gold-400));
  opacity: 0.8;
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold-300); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.75rem; }
.footer-brand .logo__name { color: var(--cream); }
.footer-brand .logo__sub { color: var(--sage-200); }
.footer-brand p { max-width: 34ch; color: rgba(248,244,234,0.75); margin-top: 1rem; }
.footer-grid h2 {
  font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--clay-300); margin-bottom: 1.1rem; font-weight: 650;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.7em; }
.footer-grid a { text-decoration: none; color: rgba(248,244,234,0.85); }
.footer-grid a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(248,244,234,0.16); padding-top: 1.75rem; font-size: 0.83rem;
  color: rgba(248,244,234,0.6); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}

/* -------------------- Final CTA band -------------------- */
.cta-band { background: var(--ink); color: var(--cream); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--cream); max-width: 22ch; margin-inline: auto; }
.cta-band .lede { margin-inline: auto; text-align: center; color: rgba(248,244,234,0.8); }
.cta-band .btn-row { justify-content: center; margin-top: 2rem; }
.cta-band .layerband span:nth-child(1) { background: rgba(124,154,108,0.28); opacity: 1; }
.cta-band .layerband span:nth-child(2) { background: rgba(185,142,94,0.2); opacity: 1; }
.cta-band .layerband span:nth-child(3) { background: rgba(124,154,108,0.14); opacity: 1; }

/* -------------------- Page hero (interior pages) -------------------- */
.page-hero { padding-block: clamp(3.5rem, 3rem + 4vw, 6rem) clamp(2rem, 1.5rem + 2vw, 3rem); position: relative; overflow: hidden; }
.page-hero .lede { max-width: 54ch; }

/* -------------------- Stat / callout row -------------------- */
.callout {
  background: var(--sage-50); border-left: 4px solid var(--sage-500); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem; margin: 2rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout--clay { background: var(--clay-100); border-left-color: var(--clay-400); }
.callout--lav { background: var(--lavender-100); border-left-color: var(--lavender-600); }

/* -------------------- Responsible-AI principle blocks -------------------- */
.principle { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; padding: 2rem 0; border-bottom: 1px solid var(--border); }
.principle:last-child { border-bottom: none; }
.principle__badge {
  width: 52px; height: 52px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: var(--lavender-100); color: var(--lavender-700);
}
.principle__badge svg { width: 26px; height: 26px; }
.principle h3 { margin-bottom: 0.4em; }
.principle p:last-child { margin-bottom: 0; }

/* -------------------- Responsive -------------------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; }
  .card-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .founder { grid-template-columns: 1fr; }
  .photo--wide { aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
  .principle { grid-template-columns: 1fr; gap: 1rem; }
}

/* -------------------- Polish: focus, depth, motion -------------------- */
/* Visible keyboard focus everywhere (was relying on the UA default) */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, details:focus-visible {
  outline: 2.5px solid var(--sage-600);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Illustrations: lift slightly with their container */
.media-art { transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out); }
.media-art:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.media-art svg, .hero-art svg { display: block; }

/* Full-bleed photo bands: a touch of depth against the sections above/below */
.photo--band { box-shadow: inset 0 1px 0 rgba(33,46,50,0.06), inset 0 -1px 0 rgba(33,46,50,0.06); }

/* Cards and pills settle rather than snap */
.card, .beliefs li, .aside-card, .bio-card { transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), border-color 0.22s; }
.aside-card:hover, .bio-card:hover { box-shadow: var(--shadow-md); }

@media (prefers-reduced-motion: reduce) {
  .photo img, .photo:hover img,
  .media-art, .media-art:hover,
  .card, .beliefs li, .aside-card, .bio-card {
    transition: none !important; transform: none !important;
  }
}

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