/* Brand colours from logo/kalvelio-logo-smith.svg (ink + bronze) and brand/BRAND.md (paper, slate). */
:root {
  --ink: #23292C;
  --bronze: #AF804E;
  --paper: #FAFAF8;
  --slate: #6B7280;
  --line: #E6E4DF;
  --surface: #FFFFFF;
}

* { box-sizing: border-box; }

/* overflow-x: clip keeps the full-width band art (100vw, which counts a desktop scrollbar) from adding a sideways scroll. */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; }

/* Faint drafting art behind the content: a compass at the top, construction circles and a golden section at the bottom. The
   layer covers the whole page behind everything (z-index -1, the ink band paints over it) and clips the art that
   bleeds past the edges, so it never causes a sideways scroll. */
body { position: relative; }

.drafting {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.drafting img { position: absolute; height: auto; }
.drafting-top { top: -90px; right: -70px; width: min(1100px, 110vw); opacity: 0.08; }
.drafting-bottom { bottom: 0; left: 50%; transform: translateX(-50%); width: max(1400px, 100vw); opacity: 0.07; }

.top, main, .foot {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 20px;
  padding-bottom: 20px;
}

.top-link {
  color: var(--slate);
  text-decoration: none;
  font-size: 15px;
}
.top-link:hover { color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0 72px;
}

.hero-logo { width: 100%; height: auto; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--bronze);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 32px;
  color: var(--slate);
  font-size: 19px;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.button:hover { background: #111517; }

section { padding: 56px 0; border-top: 1px solid var(--line); }
.hero { border-top: 0; }

h2 {
  margin: 0 0 28px;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  color: var(--bronze);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--slate); font-size: 16px; }

/* "How it works" is a page-wide ink band: the background bleeds to the viewport edges while the content keeps the
   page column (the shadow paints the bleed, the clip-path keeps it from spilling above and below). */
.how {
  background: var(--ink);
  box-shadow: 0 0 0 100vmax var(--ink);
  clip-path: inset(0 -100vmax);
  border-top: 0;
  padding: 72px 0;
  color: var(--paper);
}
.how + section { border-top: 0; }
/* The band's own faint drawing: abstract construction geometry across the full width. clip-path makes .how a stacking context,
   so z-index -1 lands above the band colour but below the cards. */
.how { position: relative; }
.how-art {
  position: absolute;
  z-index: -1;
  top: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}
.how .steps li { background: #2C3337; border-color: #3A4246; }
.how .steps p { color: #B8BEC2; }

.who p, .contact p { max-width: 680px; margin: 0 0 24px; color: var(--slate); }
.who p { margin-bottom: 0; }

.foot {
  padding-top: 32px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 14px;
}
.foot p { margin: 0 0 4px; }
.foot strong { color: var(--ink); font-weight: 600; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .top, main, .foot { padding-left: 16px; padding-right: 16px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 24px 0 48px; }
  .hero-logo { max-width: 260px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .drafting-top { width: 210vw; right: -75vw; top: 40px; }
  section { padding: 44px 0; }
}
