/* Capewise preview — premium interim consulting */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,300;1,9..144,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #f4efe6;
  --bg-alt: #ebe4d6;
  --ink: #14171a;
  --ink-2: #3c3f44;
  --muted: #7a7a73;
  --line: #d9d2c2;
  --accent: #1e3a34;
  --brass: #a47c48;
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 144;
}

h1 { font-size: clamp(44px, 6.4vw, 104px); }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.01em; }
h4 { font-size: 18px; font-family: var(--sans); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-2); }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* HEADER */
.preview-banner {
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
  font-weight: 500;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 230, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.02em;
  font-weight: 500;
  line-height: 1;
}
.brand em { font-style: italic; color: var(--brass); font-weight: 300; }
.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}
nav.primary { display: flex; gap: 36px; align-items: center; }
nav.primary a {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 400;
  position: relative;
  transition: color .2s ease;
}
nav.primary a:hover, nav.primary a.is-active { color: var(--ink); }
nav.primary a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--ink);
}
.nav-cta {
  font-size: 13px !important;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--bg) !important; }
.nav-cta::after { display: none !important; }
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
}
@media (max-width: 860px) {
  nav.primary { display: none; }
  nav.primary.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
  }
  nav.primary.open a {
    padding: 16px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  nav.primary.open .nav-cta {
    margin-top: 18px;
    border: 1px solid var(--ink);
    padding: 12px 20px;
    width: auto;
  }
  .menu-toggle { display: inline-flex; }
}

/* HERO */
.hero {
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 9vw, 120px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: 1040px; }
.hero .eyebrow { margin-bottom: 28px; display: inline-block; }
.hero h1 { max-width: 14ch; margin-bottom: 32px; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 300; }
.hero-lead {
  max-width: 58ch;
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 44px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: transform .2s ease, background .2s ease;
}
.hero-cta:hover { background: var(--accent); transform: translateY(-1px); }
.hero-cta .arrow { transition: transform .2s ease; }
.hero-cta:hover .arrow { transform: translateX(4px); }
.hero-meta {
  display: flex;
  gap: 56px;
  margin-top: 88px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  letter-spacing: 0.02em;
}
.hero-meta div { max-width: 28ch; }
.hero-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

/* PAGE HEAD */
.page-head {
  padding: clamp(72px, 10vw, 140px) 0 clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.page-head .eyebrow { margin-bottom: 22px; display: inline-block; }
.page-head h1 {
  max-width: 20ch;
  margin-bottom: 28px;
  font-size: clamp(36px, 5vw, 76px);
}
.page-head h1 em { font-style: italic; color: var(--accent); font-weight: 300; }
.page-head .lead {
  max-width: 62ch;
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--ink-2);
  line-height: 1.55;
}

/* SECTIONS */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-title { max-width: 38ch; margin-bottom: 56px; }
.section-title h2 em { font-style: italic; color: var(--accent); font-weight: 300; }

/* SERVICES GRID */
.services-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.services-intro h2 { max-width: 22ch; }
.services-intro h2 em { font-style: italic; color: var(--accent); font-weight: 300; }
.services-intro .aside { max-width: 38ch; color: var(--muted); font-size: 15px; }

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service {
  background: var(--bg);
  padding: 40px 32px 36px;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  transition: background .25s ease;
}
.service:hover { background: var(--bg-alt); }
.service .num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--brass);
  letter-spacing: 0.04em;
  margin-bottom: 48px;
}
.service h3 { margin-bottom: 20px; max-width: 14ch; }
.service p { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin-bottom: auto; }
.service .more {
  margin-top: 32px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.service .more .arrow { transition: transform .2s ease; }
.service:hover .more .arrow { transform: translateX(4px); }

@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service { min-height: 320px; }
  .service .num { margin-bottom: 32px; }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .service { min-height: 0; }
}

/* STEPS (Miten työskentelen) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 40px;
}
.step .num {
  font-family: var(--serif);
  font-size: 64px;
  color: var(--brass);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  font-style: italic;
}
.step h3 { margin-bottom: 14px; font-size: 22px; }
.step p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; gap: 40px; } }

/* PULL QUOTE */
.pull {
  padding: clamp(64px, 10vw, 140px) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pull blockquote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 300;
  max-width: 24ch;
  margin: 0;
  color: var(--ink);
}
.pull blockquote em { font-style: italic; color: var(--accent); }
.pull cite {
  display: block;
  margin-top: 40px;
  font-style: normal;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* DETAIL */
.detail-hero {
  padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.detail-hero .crumbs {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.detail-hero .crumbs a:hover { color: var(--ink); }
.detail-hero h1 {
  max-width: 20ch;
  font-size: clamp(36px, 5vw, 68px);
  margin-bottom: 28px;
}
.detail-hero h1 em { font-style: italic; color: var(--accent); font-weight: 300; }
.detail-hero .lead {
  max-width: 60ch;
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--ink-2);
  line-height: 1.55;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 56px;
}
.detail-col .col-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  font-family: var(--sans);
  font-weight: 500;
  margin-bottom: 20px;
}
.detail-col h3 { margin-bottom: 28px; font-size: 26px; max-width: 18ch; }
.detail-col ul { list-style: none; padding: 0; margin: 0; }
.detail-col li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
}
.detail-col li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* WHY KIMMO */
.why {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 56px 56px;
  align-items: start;
}
.why .col .col-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  margin-bottom: 16px;
}
.why .col h3 { margin-bottom: 20px; font-size: 26px; max-width: 18ch; }
.why .col p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.portrait-block {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 96px;
}
.portrait {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(244,239,230,0.25), transparent 60%),
    linear-gradient(155deg, #b8a886 0%, #1e3a34 85%);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.portrait::after {
  content: 'Kimmo Niemi';
  position: absolute;
  left: 22px;
  bottom: 18px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--bg);
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.portrait-copy h2 { max-width: 16ch; margin-bottom: 24px; }
.portrait-copy h2 em { font-style: italic; color: var(--accent); font-weight: 300; }
.portrait-copy p { color: var(--ink-2); max-width: 48ch; }
@media (max-width: 900px) {
  .why { grid-template-columns: 1fr; }
  .portrait-block { grid-template-columns: 1fr; }
  .portrait { max-width: 360px; }
}

/* CASES */
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case {
  background: var(--bg);
  padding: 48px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 340px;
  transition: background .2s ease;
}
.case:hover { background: var(--bg-alt); }
.case .tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
}
.case h3 { font-size: 28px; max-width: 22ch; }
.case p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.case .result {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.case .result strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
@media (max-width: 720px) { .cases { grid-template-columns: 1fr; } }

/* CTA BAND */
.cta-band {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(72px, 10vw, 140px) 0;
}
.cta-band .eyebrow { color: var(--brass); margin-bottom: 24px; display: inline-block; }
.cta-band h2 { color: var(--bg); max-width: 20ch; margin-bottom: 24px; }
.cta-band h2 em { color: var(--brass); font-style: italic; font-weight: 300; }
.cta-band p { color: rgba(244, 239, 230, 0.7); max-width: 54ch; font-size: 17px; margin-bottom: 40px; }
.cta-band .actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--bg);
  color: var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: transform .2s ease;
}
.btn-light:hover { transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  color: var(--bg);
  border: 1px solid rgba(244, 239, 230, 0.3);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: border-color .2s ease;
}
.btn-ghost:hover { border-color: var(--bg); }

/* FOOTER */
.site-footer {
  padding: 72px 0 36px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
}
.site-footer .row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.site-footer .brand { margin-bottom: 16px; }
.site-footer p { color: var(--muted); max-width: 34ch; font-size: 14px; }
.site-footer h5 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.site-footer .bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
  letter-spacing: 0.04em;
}
@media (max-width: 720px) {
  .site-footer .row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-footer .row { grid-template-columns: 1fr; }
}

/* ANIMATIONS */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .8s ease, transform .8s ease;
  }
  .fade-up.in { opacity: 1; transform: none; }
}

/* PROSE */
.prose p { max-width: 64ch; color: var(--ink-2); }
.prose h2 { margin-top: 56px; margin-bottom: 20px; }
.prose h3 { margin-top: 40px; margin-bottom: 14px; }
