/* Kimura Labs — shared site styles */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #1c1b19;
  --ink-mid: #4a4740;
  --ink-faint: #6f6a5c;
  --surface: #faf9f5;
  --surface-alt: #f1efe7;
  --border: #e4e0d6;
  --border-strong: #d8d3c6;
  --accent: #1f3d2e;
  --accent-soft: #6e8a78;
  --accent-text: #527060;
  --accent-tint: #e7eee9;
  --error: #b64a35;
}

html { scroll-behavior: smooth; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--surface);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--accent-soft); outline-offset: 2px; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--surface);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Nav */

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 3rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-left { display: flex; align-items: center; gap: 40px; }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.wordmark {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--accent); }

.nav-tag {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Main content wrapper (used by inner pages) */

main {
  flex: 1;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  text-align: center;
}

.kl-mark {
  width: 44px;
  height: 44px;
  margin: 0 auto 3rem;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.1s forwards;
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.headline {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(44px, 8vw, 80px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.subline {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-mid);
  max-width: 480px;
  margin: 0 auto 3.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.35s forwards;
}

/* Page header (About / Services / Contact) */

.page-header {
  padding: 5rem 2rem 3.5rem;
  text-align: center;
}

.page-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.page-title em {
  font-style: italic;
  color: var(--accent);
}

.page-lede {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-mid);
  max-width: 560px;
  margin: 0 auto;
}

/* Body copy */

.prose { font-size: 15px; line-height: 1.75; color: var(--ink-mid); }
.prose p { margin-bottom: 1.25rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }

/* Cards */

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* Buttons / form */

.form-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  overflow: hidden;
  background: white;
}

.form-wrap:focus-within { border-color: var(--accent-soft); }

.email-input {
  flex: 1;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  border: none;
  padding: 12px 18px;
  outline: none;
  min-width: 0;
}

.email-input::placeholder { color: var(--ink-faint); }

.email-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--surface);
  background: var(--accent);
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.email-btn:hover { opacity: 0.85; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 13px 26px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}

.btn-primary { background: var(--accent); color: var(--surface); }
.btn-primary:hover { opacity: 0.85; }

.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent-soft); color: var(--accent); }

.confirm {
  display: none;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-mid);
  margin-top: 1.25rem;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
  margin-bottom: 8px;
  text-align: left;
}

.field-input,
.field-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.15s;
}

.field-input:focus,
.field-textarea:focus { border-color: var(--accent-soft); }

.field-textarea { resize: vertical; min-height: 140px; font-family: inherit; }

/* Footer */

footer {
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 0.5px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

footer p {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}

.footer-links { display: flex; align-items: center; gap: 20px; }

.footer-links a,
.footer-email {
  font-size: 11px;
  font-weight: 400;
  color: var(--accent-text);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}

.footer-links a:hover,
.footer-email:hover { color: var(--accent); }

/* Analytics consent banner */

.consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(28, 27, 25, 0.08);
  animation: fadeUp 0.5s ease both;
}

.consent[hidden] { display: none; }

.consent-text { font-size: 13px; line-height: 1.6; color: var(--ink-mid); }
.consent-text strong { color: var(--ink); font-weight: 600; }
.consent-text a { color: var(--accent); text-underline-offset: 2px; }

.consent-actions { display: flex; gap: 10px; }

.consent-btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  transition: opacity 0.15s, border-color 0.15s, color 0.15s;
}

.consent-btn:hover { border-color: var(--accent-soft); color: var(--accent); }
.consent-accept { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.consent-accept:hover { opacity: 0.85; color: var(--surface); }
.consent-btn:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

@media (max-width: 640px) {
  .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 640px) {
  nav { padding: 1.5rem; }
  .nav-left { gap: 8px 20px; flex-wrap: wrap; }
  .wordmark { white-space: nowrap; font-size: 18px; }
  .nav-links { gap: 14px; }
  footer { padding: 1.5rem; flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 8px 16px; }
}

/* Respect reduced-motion preferences. Durations are shortened rather than removed
   so elements that start hidden and fade in still end up visible. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .svc-card:hover { transform: none !important; }
}
