/* ------------------------------------------------------------------
   Kigumi Capital — landing page
   Palette: warm paper, ink charcoal, muted indigo (藍) accent
------------------------------------------------------------------- */

:root {
  --paper: #f4f0e8;
  --paper-soft: #ece6da;
  --ink: #1a1a18;
  --ink-soft: #4a4843;
  --line: #d6cfc0;
  --accent: #3a4a5a;        /* muted indigo-slate */
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
  margin: 0 0 1.4rem;
}

/* ----------------------------- header ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.4rem, 5vw, 4rem);
  background: rgba(244, 240, 232, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}
.brand-mark { display: inline-flex; color: var(--accent); }
.brand-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.site-nav a { color: var(--ink-soft); transition: color 0.25s var(--ease); }
.site-nav a:hover { color: var(--ink); }
.nav-cta {
  border: 1px solid var(--ink);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  color: var(--ink) !important;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; }

/* ------------------------------ hero ------------------------------ */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 9rem) clamp(1.4rem, 5vw, 4rem) clamp(3rem, 9vh, 7rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
}
.hero-inner { max-width: 36rem; }

h1 {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  margin-bottom: 1.6rem;
}
h1 .accent {
  display: block;
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 0 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.hero-motif {
  color: var(--accent);
  opacity: 0.5;
  justify-self: end;
  width: 100%;
  max-width: 340px;
}
.hero-motif svg { width: 100%; height: auto; }
.hero-motif rect, .hero-motif path { vector-effect: non-scaling-stroke; }

/* ------------------------------ ethos ----------------------------- */
.ethos {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}
.ethos-text {
  max-width: 50rem;
  margin: 0 auto;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
}
.ethos-text em { color: var(--accent); font-style: italic; }
.kanji {
  display: block;
  font-size: 1.4em;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

/* ---------------------------- sections ---------------------------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 7rem) clamp(1.4rem, 5vw, 4rem);
}
.ethos { max-width: none; padding-left: clamp(1.4rem, 5vw, 4rem); padding-right: clamp(1.4rem, 5vw, 4rem); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 3rem;
}
.section-index {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.section h2 { font-size: clamp(2rem, 4vw, 3rem); }

/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2rem 1.8rem 2.2rem;
  background: var(--paper);
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 26px; height: 26px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px -28px rgba(26, 26, 24, 0.5);
}
.card h3 { font-size: 1.6rem; margin-bottom: 0.8rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* contact */
.contact {
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact-inner { max-width: 40rem; margin: 0 auto; }
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1.2rem; }
.contact .lede { margin-left: auto; margin-right: auto; }
.contact-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.6rem;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.contact-email:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
}

/* ----------------------------- footer ----------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-soft);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem clamp(1.4rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.footer-copy { font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.02em; }

/* --------------------------- reveal anim -------------------------- */
.section, .hero-inner, .ethos-text { --d: 0ms; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s var(--ease) var(--d), transform 0.7s var(--ease) var(--d);
  }
}

/* --------------------------- responsive --------------------------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-motif { display: none; }
  .cards { grid-template-columns: 1fr; }
  .site-nav a:not(.nav-cta) { display: none; }
}
