/* =========================================================================
   Kouvel - Marketing site
   Foundations + marketing UI, single stylesheet.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* Color: warm neutrals */
  --cream:        #FAF7F2;
  --cream-deep:   #F3EDE3;
  --sand:         #E8DFCE;
  --sand-deep:    #D9CDB6;
  --ink:          #1A1714;
  --ink-soft:     #3A332D;
  --ink-mute:     #6B5F54;
  --ink-faint:    #A89B8C;
  --hairline:     #D9CDB6;

  /* Color: single accent (terracotta) */
  --rust:         #C65D3A;
  --rust-deep:    #A84A2C;
  --rust-soft:    #E9C9B8;

  /* Color: dark inversion */
  --ink-bg:       #1A1714;
  --ink-bg-soft:  #2A241F;
  --on-dark:      #F3EDE3;
  --on-dark-mute: #A89B8C;

  /* Type families */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "DM Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
}

/* Paper-grain texture (cream backgrounds) */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.10 0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.42'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.035;
}

/* Motion primitives */
@keyframes kv-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(198, 93, 58, 0.45); }
  50%      { box-shadow: 0 0 0 8px rgba(198, 93, 58, 0); }
}
@keyframes kv-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes kv-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes kv-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.kv-reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-out);
  transition-delay: var(--kv-reveal-delay, 0ms);
  will-change: opacity, transform;
}
.kv-reveal.is-visible {
  opacity: 1; transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .kv-reveal,
  .kv-reveal.is-visible { transition: none; transform: none; opacity: 1; }
  .kv-hero-card::before,
  .kv-demo-card-tag,
  .kv-demo-cursor,
  .kv-status-dot { animation: none !important; }
}

/* Reset + base */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
:where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
:where(p) { margin: 0 0 1em 0; text-wrap: pretty; max-width: 65ch; }
::selection { background: var(--rust-soft); color: var(--ink); }

/* Container */
.kv-container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .kv-container { padding: 0 22px; } }

/* Logo */
.kv-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.8px;
  color: var(--ink);
}

/* Header */
.kv-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 247, 242, 0.86);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.kv-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
  gap: 24px;
}
.kv-nav { display: flex; gap: 32px; }
.kv-nav a {
  font-size: 15px; color: var(--ink-soft);
  transition: color var(--dur-fast) var(--ease-out);
}
.kv-nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .kv-nav { display: none; } }
@media (max-width: 480px) {
  .kv-header-inner { padding-top: 14px; padding-bottom: 14px; gap: 12px; }
  .kv-logo { font-size: 22px; }
}

/* Header status pill + actions */
.kv-header-actions { display: flex; align-items: center; gap: 18px; }
.kv-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-mute); letter-spacing: 0.04em;
  padding: 6px 12px;
  border: 1px solid var(--hairline); border-radius: 999px;
  background: rgba(243, 237, 227, 0.5);
}
.kv-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2EB37C;
  animation: kv-pulse-green 2.4s var(--ease-out) infinite;
}
@keyframes kv-pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 179, 124, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(46, 179, 124, 0); }
}
@media (max-width: 880px) { .kv-status { display: none; } }

/* Hamburger menu toggle (mobile only) */
.kv-menu-toggle {
  display: none;
  background: transparent; border: 0;
  padding: 8px; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
}
.kv-menu-bar {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
.kv-menu-toggle.is-open .kv-menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kv-menu-toggle.is-open .kv-menu-bar:nth-child(2) { opacity: 0; }
.kv-menu-toggle.is-open .kv-menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.kv-mobile-menu {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 22px 24px;
  background: rgba(250, 247, 242, 0.98);
  border-top: 1px solid var(--hairline);
}
.kv-mobile-menu[hidden] { display: none; }
.kv-mobile-nav { display: flex; flex-direction: column; }
.kv-mobile-nav a {
  font-family: var(--font-display); font-weight: 500;
  font-size: 20px; letter-spacing: -0.3px;
  color: var(--ink); padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.kv-mobile-nav a:last-child { border-bottom: 0; }
.kv-mobile-cta { margin-top: 12px; justify-content: center; }

/* Mobile menu backdrop scrim */
.kv-menu-scrim {
  position: fixed; inset: 0;
  background: rgba(26, 23, 20, 0.45);
  z-index: 15;
  animation: kv-scrim-in 200ms var(--ease-out);
}
.kv-menu-scrim[hidden] { display: none; }
@keyframes kv-scrim-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 720px) {
  .kv-menu-toggle { display: inline-flex; }
  .kv-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
  }
  .kv-menu-toggle { justify-self: start; }
  .kv-logo { justify-self: center; }
  .kv-header-actions { display: none; }
}

/* Buttons */
.kv-btn {
  font-family: var(--font-body); font-weight: 500; font-size: 15px; line-height: 1;
  border-radius: 4px; border: 1px solid transparent;
  padding: 14px 22px; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  display: inline-flex; align-items: center; gap: 8px;
}
.kv-btn-primary { background: var(--rust); color: var(--cream); }
.kv-btn-primary:hover { background: var(--rust-deep); }
.kv-btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.kv-btn-secondary:hover { background: var(--ink); color: var(--on-dark); }
.kv-btn-ghost { background: transparent; color: var(--ink-soft); }
.kv-btn-ghost:hover { background: var(--cream-deep); color: var(--ink); }
.kv-btn-sm { padding: 10px 16px; font-size: 14px; }
.kv-btn-link {
  color: var(--rust); font-weight: 500; font-size: 15px;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.kv-btn-link:hover { color: var(--rust-deep); }

/* Inputs */
.kv-input {
  width: 100%; box-sizing: border-box;
  font-family: var(--font-body); font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--sand-deep); border-radius: 6px;
  background: var(--cream); color: var(--ink); outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.kv-input::placeholder { color: var(--ink-faint); }
.kv-input:focus { border-color: var(--rust); box-shadow: 0 0 0 3px rgba(198,93,58,0.22); }

/* Eyebrow */
.kv-eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute);
}
.kv-eyebrow-dark { color: var(--on-dark-mute); }
.kv-eyebrow-rust { color: var(--rust); }

/* Hero */
.kv-hero { padding: 72px 0 56px; }
.kv-hero-eyebrow { margin-bottom: 32px; }
.kv-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px; align-items: start;
}
.kv-hero-aside {
  display: flex; align-items: stretch;
  margin-top: -120px;
}
.kv-hero-aside .kv-hero-card { width: 100%; }
@media (max-width: 960px) {
  .kv-hero-aside { margin-top: 0; }
}
.kv-hero-main { min-width: 0; }
.kv-display {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.15; letter-spacing: -1.2px;
  color: var(--ink); margin: 0 0 24px;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  max-width: 28ch;
}
.kv-hero-kicker {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35; letter-spacing: -0.4px;
  color: var(--ink-soft); margin: 0 0 40px;
  max-width: 50ch;
  font-variation-settings: "opsz" 96, "SOFT" 30;
}
.kv-hero-lead {
  font-size: 19px; line-height: 1.6; color: var(--ink-soft);
  margin: 0 0 20px; max-width: 50ch;
}
.kv-hero-proof {
  font-size: 16px; line-height: 1.55; color: var(--ink-soft);
  margin: 0 0 32px; max-width: 54ch;
  padding: 14px 18px;
  background: var(--cream-deep);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--rust);
  border-radius: 6px;
}
.kv-hero-proof a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rust);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.kv-hero-proof a:hover { color: var(--rust-deep); }
.kv-flagship-proof {
  font-family: var(--font-sans); font-weight: 400;
  font-size: 16px; line-height: 1.6; letter-spacing: 0;
  color: var(--ink-soft); max-width: 44ch;
  margin: -16px 0 28px;
}
.kv-hero-ctas { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.kv-hero-altcta {
  margin: 24px 0 0; font-size: 15px; color: var(--ink-mute); line-height: 1.55;
}
.kv-hero-altcta a {
  color: var(--rust); border-bottom: 1px solid currentColor;
  transition: color var(--dur-fast) var(--ease-out);
}
.kv-hero-altcta a:hover { color: var(--rust-deep); }

/* Hero callout card */
.kv-hero-aside-wrap { position: relative; padding-top: 8px; }
.kv-hero-card {
  background: var(--cream-deep);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 28px 28px 24px;
  position: relative;
  box-shadow: 0 1px 0 rgba(26,23,20,0.02), 0 12px 32px -20px rgba(26,23,20,0.18);
}
.kv-hero-card::before {
  content: "";
  position: absolute; top: 18px; right: 22px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rust);
  animation: kv-pulse 2.4s var(--ease-out) infinite;
}
.kv-hero-card-eyebrow {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--rust);
  margin: 0 0 22px;
}
.kv-hero-card-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid rgba(217, 205, 182, 0.6);
  border-bottom: 1px solid rgba(217, 205, 182, 0.6);
}
.kv-hero-card-steps li {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 10px;
  padding: 18px 14px 16px;
  position: relative;
}
.kv-hero-card-steps li + li {
  border-left: 1px solid rgba(217, 205, 182, 0.6);
}
.kv-step-icon {
  width: 30px; height: 30px;
  color: var(--rust);
  display: inline-flex; align-items: center; justify-content: center;
}
.kv-step-icon svg { width: 100%; height: 100%; }
.kv-hero-card-steps li:hover .kv-step-icon svg {
  animation: kv-icon-tilt 600ms var(--ease-out);
}
@keyframes kv-icon-tilt {
  0%   { transform: rotate(0); }
  35%  { transform: rotate(-8deg) translateY(-1px); }
  70%  { transform: rotate(4deg); }
  100% { transform: rotate(0); }
}
.kv-step-label {
  font-family: var(--font-display); font-weight: 600;
  font-size: 17px; color: var(--ink); letter-spacing: -0.2px;
  line-height: 1;
}
.kv-step-meta {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ink-mute); letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kv-hero-card-foot {
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kv-hero-rule {
  height: 1px; background: var(--hairline);
  max-width: 1180px; margin: 48px auto 0; padding: 0; width: calc(100% - 64px);
}
@media (max-width: 960px) {
  .kv-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .kv-hero-aside { max-width: 480px; }
}
@media (max-width: 720px) {
  .kv-hero { padding: 48px 0 40px; }
  .kv-hero-rule { margin-top: 56px; }
}
@media (max-width: 480px) {
  .kv-hero-card { padding: 22px 18px; }
  .kv-hero-card-steps li { padding: 16px 8px 14px; gap: 8px; }
  .kv-step-label { font-size: 15px; white-space: nowrap; }
  .kv-step-meta { font-size: 9.5px; letter-spacing: 0.1em; }
  .kv-step-icon { width: 26px; height: 26px; }
  .kv-hero-card-foot { font-size: 10px; letter-spacing: 0.04em; }
}

/* Industries marquee */
.kv-industries {
  background: var(--cream);
  padding: 40px 0 48px;
  border-top: 1px solid transparent;
}
.kv-industries-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; margin-bottom: 28px;
}
.kv-industries-note {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 16px; color: var(--ink-mute); letter-spacing: -0.1px;
  text-align: right; max-width: 42ch;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .kv-industries-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .kv-industries-note { text-align: left; }
}
.kv-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.kv-marquee-track {
  display: flex; width: max-content;
  animation: kv-marquee 38s linear infinite;
}
.kv-marquee-track:hover { animation-play-state: paused; }
.kv-marquee-group {
  display: flex; align-items: center; gap: 44px;
  padding-right: 44px;
}
.kv-marquee-item {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1;
  letter-spacing: -0.5px; color: var(--ink);
  white-space: nowrap;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.kv-marquee-item .kv-glyph {
  width: 32px; height: 32px; color: var(--rust);
  flex-shrink: 0;
}
.kv-marquee-sep {
  color: var(--rust); font-size: 14px;
  letter-spacing: 0;
}
@keyframes kv-marquee {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .kv-marquee-track { animation: none; }
}

/* Section heading */
.kv-h-section {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 4.5vw, 60px); line-height: 1.15; letter-spacing: -1.2px;
  color: var(--ink); margin: 18px 0 48px; max-width: 18ch;
}
.kv-h-section-dark { color: var(--on-dark); }

/* Problem (centered) */
.kv-problem { padding: 80px 0 80px; }
.kv-problem-centered {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.kv-problem-h {
  margin: 18px auto 24px;
  max-width: 22ch;
}
.kv-problem-body {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; letter-spacing: -0.2px;
  color: var(--ink-soft); max-width: 38ch; margin: 0 auto;
}

/* Flagship (ClinchCall spotlight) */
.kv-flagship { background: var(--cream-deep); padding: 120px 0 96px; }
.kv-flagship-lede {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
}
.kv-flagship-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px; align-items: start;
}
.kv-flagship-detail { min-width: 0; }
.kv-flagship-h {
  font-size: clamp(56px, 7vw, 104px);
  line-height: 1.05; letter-spacing: -2.5px;
  margin: 18px 0 24px;
  max-width: none;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.kv-flagship-sub {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; letter-spacing: -0.3px;
  color: var(--ink-soft); margin: 0 auto; max-width: 36ch;
}
.kv-flagship-line {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4;
  letter-spacing: -0.4px; color: var(--ink);
  margin: 0 0 32px; max-width: 28ch;
}
.kv-flagship-quote {
  margin: 0; padding: 20px 0 20px 22px;
  border-left: 2px solid var(--rust);
  max-width: 56ch;
}
.kv-flagship-quote p {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(19px, 2vw, 23px); line-height: 1.45;
  letter-spacing: -0.3px; color: var(--ink);
  margin: 0 0 12px;
  font-style: italic;
}
.kv-flagship-quote footer {
  font-family: var(--font-body); font-size: 14px; line-height: 1.4;
  color: var(--ink-mute);
  font-style: normal;
}
.kv-disqualifier {
  font-size: 15px !important;
  color: var(--ink-mute) !important;
  margin-top: 28px;
}
.kv-flagship-ctas { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.kv-flagship-stats {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  margin: 0 0 36px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--ink-mute); letter-spacing: 0.04em;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.kv-flagship-stats strong {
  font-family: var(--font-display); font-weight: 600;
  font-size: 17px; color: var(--ink); letter-spacing: -0.2px;
  margin-right: 4px;
}
.kv-flagship-stat-sep { color: var(--hairline); }
@media (max-width: 880px) {
  .kv-flagship-grid { grid-template-columns: 1fr; gap: 40px; }
  .kv-flagship-lede { margin-bottom: 48px; }
  .kv-flagship-detail { padding-bottom: 0; }
}
@media (max-width: 560px) {
  .kv-flagship { padding: 64px 0 56px; }
  .kv-flagship-h { font-size: 64px; letter-spacing: -1.5px; margin: 12px 0 18px; }
  .kv-flagship-sub { font-size: 22px; }
  .kv-flagship-line { font-size: 22px; max-width: none; margin-bottom: 24px; }
  .kv-flagship-stats { gap: 10px 12px; padding: 14px 0; margin: 0 0 24px; }
  .kv-flagship-stats strong { font-size: 16px; }
  .kv-flagship-ctas { gap: 16px; }
}

/* Case study / Live demo (chains under Flagship) */
.kv-case { background: var(--cream-deep); padding: 56px 0 96px; }
.kv-case-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px; align-items: center;
}
.kv-case-lede { min-width: 0; }
.kv-case-detail { min-width: 0; }
.kv-case-h {
  margin: 18px 0 28px;
  max-width: none;
  font-size: clamp(36px, 4.2vw, 56px);
}
.kv-demo-sub {
  font-family: var(--font-body); font-size: 19px; line-height: 1.6;
  color: var(--ink-soft); max-width: none; margin: 0;
}
@media (max-width: 880px) {
  .kv-case-inner { grid-template-columns: 1fr; gap: 40px; align-items: start; }
}

/* Demo placeholder card - number is going live soon */
.kv-demo-card {
  display: flex; flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 36px 44px 28px;
  margin: 0 0 16px;
  position: relative;
  width: 100%;
  box-shadow: 0 1px 0 rgba(26,23,20,0.02), 0 18px 40px -28px rgba(26,23,20,0.2);
}
.kv-demo-card-tag {
  position: absolute; top: -12px; left: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rust); color: var(--cream);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 12px 5px 10px; border-radius: 4px;
}
.kv-demo-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cream);
  animation: kv-pulse-cream 1.6s var(--ease-out) infinite;
}
@keyframes kv-pulse-cream {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243, 237, 227, 0.7); opacity: 1; }
  50%      { box-shadow: 0 0 0 5px rgba(243, 237, 227, 0); opacity: 0.6; }
}
.kv-wave {
  display: flex; align-items: center; gap: 4px;
  height: 36px;
  padding: 8px 0 12px;
  margin-top: 4px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 16px;
}
.kv-wave span {
  flex: 1;
  background: var(--rust);
  border-radius: 2px;
  height: 30%;
  transform-origin: center;
  opacity: 0.85;
  animation: kv-wave-bar 1.6s ease-in-out infinite;
}
.kv-wave span:nth-child(1)  { animation-delay: -1.50s; }
.kv-wave span:nth-child(2)  { animation-delay: -1.40s; }
.kv-wave span:nth-child(3)  { animation-delay: -1.30s; }
.kv-wave span:nth-child(4)  { animation-delay: -1.20s; }
.kv-wave span:nth-child(5)  { animation-delay: -1.10s; }
.kv-wave span:nth-child(6)  { animation-delay: -1.00s; }
.kv-wave span:nth-child(7)  { animation-delay: -0.90s; }
.kv-wave span:nth-child(8)  { animation-delay: -0.80s; }
.kv-wave span:nth-child(9)  { animation-delay: -0.70s; }
.kv-wave span:nth-child(10) { animation-delay: -0.60s; }
.kv-wave span:nth-child(11) { animation-delay: -0.50s; }
.kv-wave span:nth-child(12) { animation-delay: -0.40s; }
.kv-wave span:nth-child(13) { animation-delay: -0.30s; }
.kv-wave span:nth-child(14) { animation-delay: -0.20s; }
.kv-wave span:nth-child(15) { animation-delay: -0.10s; }
.kv-wave span:nth-child(16) { animation-delay: -0.00s; }
.kv-wave span:nth-child(17) { animation-delay: -0.05s; }
.kv-wave span:nth-child(18) { animation-delay: -0.15s; }
.kv-wave span:nth-child(19) { animation-delay: -0.25s; }
.kv-wave span:nth-child(20) { animation-delay: -0.35s; }
.kv-wave span:nth-child(21) { animation-delay: -0.45s; }
.kv-wave span:nth-child(22) { animation-delay: -0.55s; }
.kv-wave span:nth-child(23) { animation-delay: -0.65s; }
.kv-wave span:nth-child(24) { animation-delay: -0.75s; }
.kv-wave span:nth-child(25) { animation-delay: -0.85s; }
@keyframes kv-wave-bar {
  0%, 100% { height: 18%; opacity: 0.55; }
  50%      { height: 90%; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .kv-wave span { animation: none; height: 50%; }
}

.kv-demo-cursor {
  display: inline-block;
  width: 0.08em;
  height: 0.85em;
  margin-left: 0.08em;
  background: var(--rust);
  vertical-align: -0.05em;
  animation: kv-blink 1.05s steps(1, end) infinite;
}
.kv-demo-number {
  display: block;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 4vw, 52px); line-height: 1;
  letter-spacing: 0.5px; color: var(--ink);
  margin: 14px 0 26px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
  transition: color var(--dur-base) var(--ease-out);
}
a.kv-demo-card {
  text-decoration: none;
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  cursor: pointer;
}
a.kv-demo-card:hover {
  border-color: var(--rust);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(26,23,20,0.02), 0 22px 44px -24px rgba(198,93,58,0.35);
}
a.kv-demo-card:hover .kv-demo-number { color: var(--rust); }
.kv-demo-card-note {
  display: block;
  font-family: var(--font-body); font-size: 14px;
  color: var(--ink-mute);
  padding-top: 16px; border-top: 1px solid var(--hairline);
}
.kv-demo-card-note a {
  color: var(--rust); font-weight: 500;
  border-bottom: 1px solid currentColor;
  transition: color var(--dur-fast) var(--ease-out);
}
.kv-demo-card-note a:hover { color: var(--rust-deep); }
.kv-demo-foot {
  font-family: var(--font-body); font-size: 14px;
  color: var(--ink-mute); letter-spacing: 0;
}
@media (max-width: 720px) {
  .kv-flagship { padding: 64px 0 40px; }
  .kv-case { padding: 36px 0 64px; }
  .kv-demo-card { padding: 28px 24px 20px; }
}

/* Social proof (placeholder, hidden until first real client quote is published) */
.kv-social {
  background: var(--cream);
  padding: 56px 0 16px;
}
.kv-social-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.kv-social-quote {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}
.kv-social-text {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; letter-spacing: -0.2px;
  color: var(--ink-soft);
  margin: 0 auto 18px;
  max-width: 44ch;
}
.kv-social-attr {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rust);
}

/* Custom builds */
.kv-custom { background: var(--cream); padding: 96px 0; }
.kv-custom-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.kv-custom-h { margin: 18px auto 24px; max-width: 22ch; }
.kv-custom-intro {
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  color: var(--ink-mute); margin: 0 auto; max-width: 50ch;
}
.kv-custom-bucket {
  margin-bottom: 56px;
}
.kv-custom-bucket:last-of-type { margin-bottom: 0; }
.kv-custom-bucket-head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}
.kv-custom-bucket-num {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 12px; letter-spacing: 0.18em;
  color: var(--rust);
}
.kv-custom-bucket-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 0;
}
.kv-custom-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 80px; row-gap: 36px;
}
.kv-custom-item {
  position: relative;
  display: block;
  padding: 4px 16px 14px 62px;
  max-width: 44ch;
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
  outline: none;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.kv-custom-item:hover,
.kv-custom-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(26, 23, 20, 0.06);
}
.kv-custom-item:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 23, 20, 0.05);
}
.kv-custom-icon {
  position: absolute; top: 4px; left: 10px;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--rust);
  background: var(--cream);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}
.kv-custom-icon svg { width: 20px; height: 20px; }
.kv-custom-item:hover .kv-custom-icon,
.kv-custom-item:focus-visible .kv-custom-icon,
.kv-custom-item:active .kv-custom-icon {
  border-color: var(--rust);
  background: rgba(198, 93, 58, 0.12);
  transform: rotate(-4deg);
}
.kv-custom-name {
  font-family: var(--font-body); font-weight: 600;
  font-size: 18px; color: var(--ink);
  margin-bottom: 4px; letter-spacing: -0.1px;
}
.kv-custom-tagline {
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  color: var(--ink-soft); margin: 0;
}
.kv-custom-cue {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--rust);
  letter-spacing: 0.1px;
  text-align: right;
}
.kv-custom-cue-arrow {
  display: inline-block;
  margin-left: 2px;
  transition: transform var(--dur-base) var(--ease-out);
}
.kv-custom-item:hover .kv-custom-cue-arrow,
.kv-custom-item:focus-visible .kv-custom-cue-arrow,
.kv-custom-item:active .kv-custom-cue-arrow {
  transform: translateX(3px);
}
@media (hover: none) {
  .kv-custom-item:hover {
    transform: none;
    box-shadow: none;
  }
  .kv-custom-item:hover .kv-custom-icon {
    border-color: var(--hairline);
    background: var(--cream);
    transform: none;
  }
  .kv-custom-item:hover .kv-custom-cue-arrow {
    transform: none;
  }
}
.kv-custom-closer-wrap {
  margin-top: 56px;
  text-align: center;
}
.kv-custom-closer {
  margin: 0 auto 16px; max-width: 40ch;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(20px, 2.4vw, 28px); line-height: 1.3;
  letter-spacing: -0.4px;
  color: var(--ink);
}
.kv-custom-cta {
  display: inline-block;
  font-family: var(--font-body); font-size: 16px; font-weight: 500;
  color: var(--rust);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease-out);
}
.kv-custom-cta:hover { color: var(--rust-deep); }
@media (max-width: 720px) {
  .kv-custom { padding: 64px 0; }
  .kv-custom-grid { grid-template-columns: 1fr; column-gap: 0; row-gap: 28px; }
  .kv-custom-closer { margin-top: 48px; }
}

/* Process (centered dark card) */
.kv-process {
  background: var(--cream); color: var(--on-dark);
  padding: 80px 0;
}
.kv-process-card {
  background: var(--ink-bg);
  border-radius: 16px;
  padding: 72px 64px 64px;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(26,23,20,0.04), 0 30px 60px -30px rgba(26,23,20,0.4);
}
.kv-process-card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% -10%, rgba(198, 93, 58, 0.18), transparent 50%),
    radial-gradient(ellipse at 0% 110%, rgba(198, 93, 58, 0.08), transparent 50%);
  pointer-events: none;
}
.kv-process-head {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}
.kv-process-h {
  margin: 18px auto 0;
  max-width: 22ch;
}
.kv-process-list { position: relative; }
@media (max-width: 720px) {
  .kv-process { padding: 56px 0; }
  .kv-process-card { padding: 40px 22px 32px; border-radius: 12px; }
  .kv-process-step { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .kv-process-num { font-size: 36px; }
}
.kv-process-list { display: flex; flex-direction: column; gap: 8px; }
.kv-pricing-anchor {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 24px 28px;
  background: var(--cream-deep);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.kv-pricing-anchor-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
}
.kv-pricing-anchor-line {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 56ch;
}
.kv-pricing-anchor-line strong {
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 720px) {
  .kv-pricing-anchor { padding: 20px; }
}
.kv-process-step {
  display: grid; grid-template-columns: 120px 1fr; gap: 32px;
  padding: 40px 0; border-top: 1px solid rgba(243, 237, 227, 0.12);
}
.kv-process-step:last-child { border-bottom: 1px solid rgba(243, 237, 227, 0.12); }
.kv-process-num {
  font-family: var(--font-display); font-weight: 500;
  font-size: 56px; line-height: 1; letter-spacing: -1.2px;
  color: var(--rust);
}
.kv-h-step {
  font-family: var(--font-display); font-weight: 600;
  font-size: 28px; line-height: 1.15; letter-spacing: -0.4px;
  color: var(--on-dark); margin: 0 0 12px;
}
.kv-process-content p {
  font-size: 17px; line-height: 1.6; color: rgba(243,237,227,0.78);
  margin: 0; max-width: 56ch;
}
@media (max-width: 720px) {
  .kv-process-step { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .kv-process-num { font-size: 30px; }
  .kv-process { padding: 64px 0; }
  .kv-process-head { margin-bottom: 24px; }
  .kv-process-h { margin-top: 10px; }
  .kv-h-step { font-size: 22px; margin: 0 0 6px; }
  .kv-process-content p { font-size: 15.5px; line-height: 1.5; }
}

/* Founder */
.kv-founder { background: var(--cream); padding: 96px 0; }
.kv-founder-inner {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px;
  align-items: center;
}
.kv-founder-photo {
  aspect-ratio: 4 / 5;
  background: var(--cream-deep);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.kv-founder-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.kv-founder-photo::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.kv-founder-photo-label {
  position: absolute; bottom: 18px; left: 22px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  z-index: 1;
}
.kv-founder-h {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 4.6vw, 64px); line-height: 1.1; letter-spacing: -1.4px;
  color: var(--ink);
  margin: 16px 0 32px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.kv-founder-body p {
  font-family: var(--font-body); font-size: 18px; line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 18px; max-width: 52ch;
}
.kv-founder-body p:last-child { margin-bottom: 0; }
.kv-founder-ctas {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px; margin-top: 32px;
}
.kv-founder-cta-sep { color: var(--ink-mute); font-size: 16px; }
.kv-founder-cta {
  display: inline-block;
  font-family: var(--font-body); font-size: 16px; font-weight: 500;
  color: var(--rust);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease-out);
}
.kv-founder-cta:hover { color: var(--rust-deep); }
@media (max-width: 880px) {
  .kv-founder-inner { grid-template-columns: 1fr; gap: 48px; }
  .kv-founder-photo { max-width: 420px; }
  .kv-founder { padding: 80px 0; }
}
@media (max-width: 560px) {
  .kv-founder { padding: 56px 0; }
  .kv-founder-inner { text-align: center; }
  .kv-founder-photo { width: 220px; max-width: 100%; margin: 0 auto 32px; }
  .kv-founder-photo-label {
    font-size: 10px;
  }
  .kv-founder-copy { display: flex; flex-direction: column; align-items: center; }
  .kv-founder-h { font-size: 36px; margin: 12px 0 20px; }
  .kv-founder-body p { font-size: 17px; margin: 0 auto 14px; }
  .kv-founder-ctas { flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; }
  .kv-founder-cta-sep { display: none; }
}

/* FAQ */
.kv-faq {
  background: var(--cream);
  padding: 88px 0 96px;
  border-top: 1px solid var(--hairline);
}
.kv-faq-inner {
  max-width: 1040px; margin: 0 auto; padding: 0 24px;
}
.kv-faq-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.kv-faq-h {
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -1px;
  margin: 12px auto 0; max-width: 18ch;
}
.kv-faq-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--hairline);
  max-width: 880px;
  margin: 0 auto;
}
.kv-faq-item {
  border-bottom: 1px solid var(--hairline);
}
.kv-faq-item summary {
  list-style: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(20px, 2vw, 23px); line-height: 1.4; letter-spacing: -0.3px;
  color: var(--ink);
  padding: 24px 40px 24px 0;
  position: relative;
  font-variation-settings: "opsz" 96, "SOFT" 30;
}
.kv-faq-item summary::-webkit-details-marker { display: none; }
.kv-faq-item summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 400;
  font-size: 24px; color: var(--rust);
  line-height: 1; transition: transform var(--dur-fast) var(--ease-out);
}
.kv-faq-item[open] summary::after { content: "−"; }
.kv-faq-item:hover summary { color: var(--rust-deep); }
.kv-faq-body {
  padding: 0 0 22px;
}
.kv-faq-body p {
  font-family: var(--font-body); font-size: 17px; line-height: 1.7;
  color: var(--ink-soft);
  margin: 0; max-width: 78ch;
}
@media (max-width: 880px) {
  .kv-faq { padding: 72px 0 80px; }
  .kv-faq-head { margin-bottom: 40px; }
  .kv-faq-h { max-width: none; }
  .kv-faq-item summary { font-size: 18px; padding: 20px 36px 20px 0; }
  .kv-faq-body p { font-size: 15px; }
}

/* Selected Work */
.kv-work {
  background: var(--cream);
  padding: 88px 0 96px;
  border-top: 1px solid var(--hairline);
}
.kv-work-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.kv-work-h {
  margin: 12px auto 16px;
}
.kv-work-sub {
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 58ch;
}
.kv-work-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}
.kv-work-card {
  background: var(--cream-deep);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.kv-work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26, 23, 20, 0.08);
  border-color: var(--sand-deep);
}
.kv-work-card-link {
  display: flex;
  flex-direction: row;
  text-decoration: none;
  color: inherit;
  min-height: 300px;
}
.kv-work-card-img-wrap {
  flex: 0 0 58%;
  overflow: hidden;
  background: var(--sand);
}
.kv-work-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 360ms var(--ease-out);
}
.kv-work-card:hover .kv-work-card-img {
  transform: scale(1.03);
}
.kv-work-card-body {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px;
}
.kv-work-card-meta {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.kv-work-card-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.3px; line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
}
.kv-work-card-desc {
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 20px;
  max-width: 38ch;
}
.kv-work-card-cta {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--rust);
  display: inline-flex; align-items: center; gap: 4px;
}
.kv-work-card-arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
}
.kv-work-card:hover .kv-work-card-arrow {
  transform: translateX(3px);
}
@media (max-width: 880px) {
  .kv-work { padding: 72px 0 80px; }
}
@media (max-width: 720px) {
  .kv-work-card-link {
    flex-direction: column;
    min-height: 0;
  }
  .kv-work-card-img-wrap {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
  }
  .kv-work-card-body {
    padding: 24px;
  }
  .kv-work-card-desc { max-width: none; }
  .kv-work-head { margin-bottom: 40px; }
}

/* Contact */
.kv-contact {
  background: var(--cream);
  padding: 96px 0 112px;
  border-top: 1px solid var(--hairline);
}
.kv-contact-head { text-align: center; margin: 0 auto 56px; max-width: 720px; }
.kv-contact-h { margin: 18px auto 0; max-width: 22ch; }
.kv-contact-list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.kv-contact-list-pair {
  grid-template-columns: 1.6fr 1fr;
  max-width: 880px;
  margin: 0 auto;
}
.kv-contact-item.kv-contact-item-primary {
  background: var(--ink);
  border-color: var(--ink);
  min-height: 200px;
}
.kv-contact-item.kv-contact-item-primary .kv-contact-lead { color: rgba(243, 237, 227, 0.6); }
.kv-contact-item.kv-contact-item-primary .kv-contact-action,
.kv-contact-item.kv-contact-item-primary .kv-contact-arrow { color: var(--cream); }
.kv-contact-item.kv-contact-item-primary .kv-contact-action {
  font-size: clamp(26px, 2.6vw, 34px);
}
.kv-contact-item.kv-contact-item-primary:hover {
  background: var(--rust);
  border-color: var(--rust);
}
.kv-contact-item.kv-contact-item-primary:hover .kv-contact-action,
.kv-contact-item.kv-contact-item-primary:hover .kv-contact-arrow { color: var(--cream); }
.kv-contact-item {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 160px;
  padding: 24px 24px 24px 24px;
  background: var(--cream-deep);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}
.kv-contact-item:hover {
  background: var(--cream);
  border-color: var(--rust);
  transform: translateY(-2px);
}
.kv-contact-lead {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: auto;
  padding-bottom: 24px;
}
.kv-contact-action {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(20px, 2vw, 26px); line-height: 1.2; letter-spacing: -0.3px;
  color: var(--rust);
  text-wrap: balance;
}
.kv-contact-arrow {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--font-display); font-size: inherit; line-height: 1;
  color: var(--rust);
  transition: transform var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}
.kv-contact-item:hover .kv-contact-action,
.kv-contact-item:hover .kv-contact-arrow { color: var(--rust-deep); }
.kv-contact-item:hover .kv-contact-arrow { transform: translateX(4px); }
@media (max-width: 880px) {
  .kv-contact { padding: 72px 0 80px; }
  .kv-contact-h { margin-bottom: 36px; }
  .kv-contact-list,
  .kv-contact-list-pair { grid-template-columns: 1fr; max-width: 100%; }
  .kv-contact-item { min-height: 0; }
  .kv-contact-item.kv-contact-item-primary { min-height: 0; }
  .kv-contact-item-primary .kv-contact-lead { padding-bottom: 16px; }
  .kv-contact-action { font-size: 22px; }
  .kv-contact-item-primary .kv-contact-action { font-size: 26px; }
}

/* Footer */
.kv-footer { background: var(--cream); padding: 64px 0 32px; border-top: 1px solid var(--hairline); }
.kv-footer-top {
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 72px;
  padding-bottom: 48px;
}
.kv-footer-tag {
  font-size: 16px; line-height: 1.6; color: var(--ink-soft);
  max-width: 36ch; margin: 18px 0 0;
}
.kv-footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.kv-footer-cols a {
  display: block; font-size: 15px; color: var(--ink-soft);
  margin-top: 12px; transition: color var(--dur-fast);
}
.kv-footer-cols a:hover { color: var(--rust); }
.kv-footer-bottom {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--ink-mute);
  padding-top: 28px; border-top: 1px solid var(--hairline);
}
@media (max-width: 720px) {
  .kv-footer-top { grid-template-columns: 1fr; gap: 40px; }
  .kv-footer-cols { grid-template-columns: 1fr 1fr; }
  .kv-footer-bottom { flex-direction: column; gap: 8px; }
}

/* Modal */
.kv-modal-scrim {
  position: fixed; inset: 0; background: rgba(26, 23, 20, 0.32);
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding: 88px 32px 32px; z-index: 100;
}
.kv-modal-scrim[hidden] { display: none; }
.kv-modal {
  background: var(--cream); border-radius: 8px;
  padding: 24px 26px; max-width: 380px; width: 100%;
  box-shadow: 0 1px 0 rgba(26,23,20,0.05), 0 16px 40px rgba(26,23,20,0.14);
  border: 1px solid var(--hairline);
}
.kv-modal-h {
  font-family: var(--font-display); font-size: 24px; line-height: 1.15;
  letter-spacing: -0.4px; margin: 8px 0 14px; font-weight: 600;
}
.kv-modal-p {
  font-family: var(--font-body); font-size: 14px; line-height: 1.55;
  color: var(--ink-mute); margin: 0 0 18px;
}
.kv-modal-fields { display: grid; gap: 10px; }
.kv-modal-hint {
  margin: 0; font-family: var(--font-body); font-size: 13px;
  color: var(--rust); line-height: 1.4;
}
.kv-modal-actions {
  display: flex; gap: 14px; margin-top: 18px;
  justify-content: flex-end; align-items: center;
}
.kv-modal-cancel {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--rust); font-family: var(--font-body); font-size: 14px;
  font-weight: 500; text-decoration: underline; text-underline-offset: 4px;
}
.kv-modal-cancel:hover { color: var(--rust-deep); }
@media (max-width: 720px) {
  .kv-modal-scrim { align-items: center; justify-content: center; padding: 24px; }
}

/* Mobile: center headings and subheadings that are left-aligned on desktop */
@media (max-width: 720px) {
  /* Hero */
  .kv-hero .kv-container { text-align: center; }
  .kv-display { margin-left: auto; margin-right: auto; }
  .kv-hero-lead { margin-left: auto; margin-right: auto; }
  .kv-hero-ctas { justify-content: center; }

  /* Industries */
  .kv-industries-head { align-items: center; text-align: center; }
  .kv-industries-note { text-align: center; }

  /* Flagship */
  .kv-flagship-lede,
  .kv-flagship-detail { text-align: center; }
  .kv-flagship-line { margin-left: auto; margin-right: auto; }
  .kv-flagship-stats,
  .kv-flagship-ctas { justify-content: center; }

  /* Live demo */
  .kv-case-lede,
  .kv-case-detail { text-align: center; }

  /* Custom builds bucket headings */
  .kv-custom-bucket-head { justify-content: center; text-align: center; }

  /* Hero "How we work" steps card — center icon + labels */
  .kv-hero-card-steps li { align-items: center; text-align: center; }

  /* Founder */
  .kv-founder-inner { text-align: center; }
  .kv-founder-photo { max-width: 320px; margin-left: auto; margin-right: auto; }
  .kv-founder-copy { display: flex; flex-direction: column; align-items: center; }
  .kv-founder-body p { margin-left: auto; margin-right: auto; }
  .kv-founder-ctas { justify-content: center; }
}

/* ============================================================
   Agent pages
   ============================================================ */

/* Hero — centered layout, wide container, scenario callout, badges */
.kv-agent-hero { padding-top: 72px; padding-bottom: 64px; }
.kv-agent-hero .kv-container {
  max-width: 1080px;
  text-align: center;
}
.kv-agent-hero .kv-display { margin-left: auto; margin-right: auto; max-width: 22ch; }
.kv-agent-hero .kv-hero-lead { margin-left: auto; margin-right: auto; max-width: 60ch; }
.kv-agent-hero .kv-hero-ctas { justify-content: center; }
.kv-agent-scenario {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; letter-spacing: -0.1px;
  color: var(--ink-soft);
  border-left: 2px solid var(--rust);
  padding: 4px 0 4px 22px;
  max-width: 70ch;
  margin: 28px auto 0;
  text-align: left;
}
.kv-agent-tags {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 28px 0 0;
}
.kv-agent-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  letter-spacing: 0.1px;
}
.kv-agent-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rust);
}

/* Section heading shared style on agent pages */
.kv-agent-section { padding: 96px 0; }
.kv-agent-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}
.kv-agent-section-h {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 12px 0 0;
}

/* Left-aligned readable prose for "How it works" */
.kv-agent-prose {
  max-width: 64ch;
  margin: 0 auto;
}
.kv-agent-prose p {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; letter-spacing: -0.1px;
  color: var(--ink-soft);
  margin: 0 0 22px;
  position: relative;
}
.kv-agent-prose p:last-of-type { margin-bottom: 0; }
.kv-agent-prose p::first-letter { color: var(--ink); }

/* Hand-drawn-feel curved connector arrows between paragraphs.
   Alternates right / left for visual rhythm. */
.kv-agent-prose p:not(:last-of-type) { margin-bottom: 68px; }
.kv-agent-prose p:not(:last-of-type)::after {
  content: "";
  position: absolute;
  display: block;
  bottom: -56px;
  width: 60px;
  height: 46px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 46' fill='none' stroke='%23C65D3A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4 C 8 18, 18 30, 50 40'/%3E%3Cpath d='M44 35 L 50 40 L 45 43'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.55;
  pointer-events: none;
}
.kv-agent-prose p:nth-of-type(odd):not(:last-of-type)::after {
  right: 8px;
  transform: scaleX(-1);
}
.kv-agent-prose p:nth-of-type(even):not(:last-of-type)::after {
  left: 8px;
}
@media (prefers-reduced-motion: no-preference) {
  .kv-agent-prose p:not(:last-of-type)::after {
    transition: opacity var(--dur-base) var(--ease-out);
  }
}
@media (max-width: 720px) {
  .kv-agent-prose p:not(:last-of-type) { margin-bottom: 56px; }
  .kv-agent-prose p:not(:last-of-type)::after {
    bottom: -46px; width: 48px; height: 38px;
  }
}
@media (max-width: 560px) {
  .kv-agent-prose p:not(:last-of-type)::after {
    display: block;
    left: 50%; right: auto; transform: translateX(-50%);
  }
  .kv-agent-prose p:nth-of-type(odd):not(:last-of-type)::after {
    left: 50%; right: auto; transform: translateX(-50%);
  }
  .kv-agent-prose p:nth-of-type(even):not(:last-of-type)::after {
    left: 50%; right: auto; transform: translateX(-50%);
  }
}

/* Best-fit strip */
.kv-agent-bestfit {
  background: var(--cream);
  padding: 80px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.kv-agent-bestfit-inner {
  max-width: 760px; margin: 0 auto; text-align: center;
  padding: 0 24px;
}
.kv-agent-bestfit-h {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 12px 0 16px;
}
.kv-agent-bestfit-body {
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  color: var(--ink-soft); max-width: 60ch; margin: 0 auto;
}

/* Pricing card */
.kv-agent-pricing { padding: 96px 0; background: var(--cream-deep); }
.kv-agent-pricing-card {
  max-width: 720px; margin: 0 auto;
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 48px 36px;
  text-align: center;
  position: relative;
}
.kv-agent-pricing-card::before {
  content: ""; position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 4px; border-radius: 2px;
  background: var(--rust);
}
.kv-agent-pricing-h {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 3vw, 34px); line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 16px 0 16px;
}
.kv-agent-price-line {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 auto 28px;
  max-width: 50ch;
}
.kv-agent-price-line strong { color: var(--ink); font-weight: 600; }

/* Cross-links section header tweaks */
.kv-agent-related { padding: 80px 0 96px; background: var(--cream); }

@media (max-width: 720px) {
  .kv-agent-hero { padding-top: 56px; padding-bottom: 48px; }
  .kv-agent-scenario { padding-left: 16px; }
  .kv-agent-section { padding: 64px 0; }
  .kv-agent-bestfit { padding: 56px 0; }
  .kv-agent-pricing { padding: 64px 0; }
  .kv-agent-pricing-card { padding: 36px 24px; }
}

/* Channel selector (Text / Email toggle) + disclaimer */
.kv-channel-group {
  border: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.kv-channel-legend {
  font-family: var(--font-body); font-size: 13px;
  color: var(--ink-mute); padding: 0; margin-right: 4px;
}
.kv-channel-option {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  cursor: pointer;
}
.kv-channel-option input[type="radio"] {
  accent-color: var(--rust);
  margin: 0;
}
.kv-channel-disclaimer {
  margin: 0; font-family: var(--font-body); font-size: 13px;
  color: var(--ink-mute); line-height: 1.4; font-style: italic;
}
