/* ======= Kalpana INK — Consulting practice ======= */

:root {
  /* Palette */
  --bone: #ebe5d8;          /* warm bone background */
  --bone-2: #e1dac7;        /* slightly deeper bone for tints */
  --ink: #1c1c1c;           /* soft ink black for body */
  --ink-soft: #4a4a4a;      /* secondary text */
  --indigo: #1a2c5e;        /* primary brand color — fountain pen indigo */
  --indigo-soft: #2c4382;
  --terracotta: #b15a3d;    /* accent — warm clay, slightly desaturated */
  --terracotta-soft: #d18568;
  --line: rgba(28, 28, 28, 0.12);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ===== Top navigation ===== */
.topnav {
  position: sticky;
  top: 0;
  background: rgba(235, 229, 216, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 18px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
}

.topnav .brand {
  font-size: 28px;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.topnav .brand .brand-name {
  font-family: 'Caveat', cursive;
  font-weight: 400;
  color: var(--terracotta);
  letter-spacing: -0.005em;
}

.topnav .brand .brand-ink {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.5em;
  letter-spacing: -0.02em;
  color: var(--indigo);
}

.topnav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topnav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color .15s ease;
}

.topnav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--indigo);
  transition: width .25s ease;
}

.topnav-links a:hover {
  color: var(--indigo);
}

.topnav-links a:hover::after {
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  padding: 140px 48px 100px;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.wordmark {
  font-size: clamp(80px, 14vw, 224px);
  line-height: 0.92;
  margin: 0 0 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15em; /* breathing room reduced by ~half */
}

/* "kalpana" — flowing terracotta handwritten script (lighter weight) */
.wordmark-name {
  font-family: 'Caveat', cursive;
  font-weight: 400;
  color: var(--terracotta);
  letter-spacing: -0.01em;
  display: inline-block;
  line-height: 1;
}

/* "INK" — solid indigo bold sans stamp, smaller (about the x-height of the script) */
.wordmark-ink {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 800;
  color: var(--indigo);
  letter-spacing: -0.03em;
  font-size: 0.5em; /* shrunk to roughly match the x-height of the script */
  display: inline-flex;
  align-items: baseline;
  gap: 0.1em;
}

/* Calligraphic ink flourish — follows INK; aligned so its bottom sits at the baseline */
.ink-flourish {
  width: 1em;
  height: auto;
  margin-left: 0.15em;
  color: var(--indigo);
  display: inline-block;
  vertical-align: baseline;
  overflow: visible;
  flex-shrink: 0;
}

/* Page-load draw animation — squiggle "inks itself" once on initial render */
.ink-flourish--animated path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw-ink 1.1s cubic-bezier(0.65, 0.05, 0.36, 1) 0.4s forwards;
}

@keyframes draw-ink {
  to {
    stroke-dashoffset: 0;
  }
}

/* Respect users who prefer reduced motion — show the squiggle drawn, no animation */
@media (prefers-reduced-motion: reduce) {
  .ink-flourish--animated path {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* Thesis statement — sits between wordmark and positioning */
.hero-thesis {
  font-family: 'Cormorant Garamond', 'EB Garamond', Garamond, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--indigo);
  margin: 0 0 32px;
  max-width: 880px;
}

.positioning {
  font-family: 'Inter', sans-serif;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  max-width: 760px;
  margin: 0 0 56px;
}

.positioning strong {
  color: var(--indigo);
  font-weight: 600;
}

.hero-byline {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 500;
}

.byline-name {
  color: var(--indigo);
  font-weight: 600;
}

/* ===== Sections ===== */
.section {
  padding: 120px 48px;
  border-top: 1px solid var(--line);
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--terracotta);
  margin: 0 0 28px;
}

.section h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--indigo);
  margin: 0 0 80px;
  max-width: 940px;
}

/* ===== CTA section — closing invitation to reach out ===== */
.section--cta {
  background: var(--bone-2);
  text-align: center;
  padding: 120px 48px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.section--cta .section-inner {
  max-width: 880px;
}

.cta-heading {
  font-family: 'Cormorant Garamond', 'EB Garamond', Garamond, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--indigo);
  margin: 0 0 32px;
  max-width: none;
}

.cta-body {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 auto;
  max-width: 680px;
}

.cta-link {
  color: var(--terracotta);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(177, 90, 61, 0.45);
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  transition: text-decoration-color .2s ease, color .2s ease;
}

.cta-link:hover {
  color: var(--indigo);
  text-decoration-color: var(--indigo);
}

@media (max-width: 800px) {
  .section--cta { padding: 80px 24px; }
}

/* ===== About section ===== */
.section-inner--narrow {
  max-width: 760px;
}

.about-lead {
  font-family: 'Cormorant Garamond', 'EB Garamond', Garamond, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 48px;
  max-width: 720px;
}

/* "Kalpana" and "INK" inline in the lead — styled to match the wordmark */
.about-lead .lead-kalpana {
  font-family: 'Caveat', cursive;
  font-weight: 400;
  font-style: normal;
  color: var(--terracotta);
  letter-spacing: -0.005em;
  font-size: 1.08em;
}

.about-lead .lead-ink {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-style: normal;
  color: var(--indigo);
  letter-spacing: -0.03em;
  font-size: 0.7em;
  margin: 0 0.05em;
}

.about-body {
  font-family: 'Inter', sans-serif;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 640px;
}

.about-body:last-child { margin-bottom: 0; }

.about-body strong { color: var(--indigo); font-weight: 600; }

/* ===== Engagement scope — list of what end-to-end means across models ===== */
.engagement-scope {
  max-width: 920px;
  margin: -32px 0 64px;
  padding: 32px 36px;
  background: rgba(177, 90, 61, 0.06);
  border-left: 3px solid var(--terracotta);
  border-radius: 0 8px 8px 0;
}

.engagement-scope-intro {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 18px;
}

.engagement-scope-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}

.engagement-scope-list li {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}

.engagement-scope-list li::before {
  content: '—';
  color: var(--terracotta);
  font-weight: 600;
  position: absolute;
  left: 0;
}

@media (max-width: 800px) {
  .engagement-scope { padding: 24px 22px; margin: -16px 0 48px; }
  .engagement-scope-list { grid-template-columns: 1fr; }
}

/* ===== Services grid (What I do) ===== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.service {
  padding-top: 28px;
  border-top: 2px solid var(--indigo);
  position: relative;
}

.service-num {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--terracotta);
  margin: 0 0 24px;
  line-height: 1;
}

.services h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 18px;
}

.services p {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .topnav { padding: 14px 24px; flex-wrap: wrap; gap: 14px; }
  .topnav .brand { font-size: 20px; }
  .topnav-links { gap: 20px; font-size: 12px; }

  .hero { padding: 80px 24px 60px; }
  .wordmark { gap: 0.05em; }
  .positioning { margin-bottom: 40px; }

  .section { padding: 80px 24px; }
  .section h2 { margin-bottom: 56px; }
  .services { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  .topnav { padding: 12px 20px; }
  .topnav-links { gap: 14px; }
  .hero { padding: 56px 20px 40px; }
  .section { padding: 64px 20px; }
}
