/* KlarWork — shared styles
   Design: original KlarWork brand system — black & white, one grotesque
   sans throughout, square-cornered black buttons, black footer. */

:root {
  --paper:      #FFFFFF;
  --surface:    #FFFFFF;
  --ink:        #101113;
  --muted:      #5B6470;
  --line:       #E3E3E0;
  --accent:     #101113;   /* monochrome brand — no colour accent */
  --accent-ink: #000000;
  --focus:      #101113;

  --wrap: 1120px;
  --measure: 62ch;

  --step--1: clamp(0.92rem, 0.9rem + 0.1vw, 1rem);
  --step-0:  clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --step-1:  clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
  --step-2:  clamp(1.7rem, 1.5rem + 1vw, 2.3rem);
  --step-3:  clamp(2.3rem, 1.9rem + 2vw, 3.4rem);
  --step-4:  clamp(2.6rem, 2rem + 3vw, 4.2rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Jost", "Century Gothic", "Futura", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .brand, .nav a, .btn, .eyebrow, .checks li, .field label, .sub {
  font-family: "Jost", "Century Gothic", "Futura", "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3 {
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.005em; }

p { margin: 0 0 1.1em; max-width: var(--measure); }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--muted); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 1.75rem; min-height: 56px; }
.brand { display: inline-flex; align-items: baseline; gap: 0.4rem; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.005em; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand .mark { display: none; }
.brand .tagline { font-weight: 500; color: var(--muted); font-size: 0.92rem; }
.brand:hover { color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 1.85rem); list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.98rem; font-weight: 500; padding-block: 0.4rem; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }

.nav-toggle { display: none; }

/* ---------- Homepage masthead (logo lockup + social row) ---------- */
.masthead { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.masthead .wrap { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.logo-lockup { width: 128px; height: auto; flex: none; }
.social-row { display: flex; align-items: center; gap: 0.6rem; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff;
}
.social-row a svg { width: 18px; height: 18px; fill: #fff; }
.social-row a:hover { background: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.95rem 1.7rem; border-radius: 0;
  text-decoration: none; cursor: pointer; border: 2px solid var(--ink);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Layout helpers ---------- */
main { display: block; }
section { padding-block: clamp(3.2rem, 7vw, 6rem); }
.section-tight { padding-block: clamp(2.2rem, 4vw, 3.4rem); }

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

.eyebrow { font-size: var(--step--1); font-weight: 700; color: var(--ink); letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 1rem; }

.lead { font-size: var(--step-1); line-height: 1.4; color: var(--ink); max-width: 34ch; }
.sub { color: var(--muted); font-weight: 500; font-size: var(--step-1); line-height: 1.35; max-width: 44ch; }

.prose p { color: var(--ink); }
.prose .muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 7vw, 5.5rem);
  position: relative; overflow: clip;
  background: linear-gradient(color-mix(in srgb, #fff 82%, transparent), color-mix(in srgb, #fff 82%, transparent)), var(--surface);
}
.hero h1 { max-width: 20ch; }
.hero .sub { margin-top: 1.2rem; color: var(--ink); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-line { display: none; }

/* ---------- Columns (feature band) ---------- */
.feature-band { background: var(--ink); padding-block: clamp(2.5rem, 6vw, 4rem); }
.cols { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(3, 1fr); }
.cols .col { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.cols .col h3 { margin-bottom: 0.75rem; }
.cols .col-icon { display: none; }

.feature-band .cols { gap: clamp(1.25rem, 3vw, 2rem); }
.feature-band .cols .col { padding: clamp(1.5rem, 3vw, 2.25rem); background: #fff; border-top: none; }
.feature-band .cols .col-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }
.feature-band .cols .col-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; background: var(--ink); flex: none; margin-bottom: 0;
}
.feature-band .cols .col-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; }
.feature-band .cols .col h3 { margin-bottom: 0; }

.two { display: grid; gap: clamp(1.5rem, 5vw, 4rem); grid-template-columns: 1fr 1fr; align-items: start; }
.two--split { grid-template-columns: 0.85fr 1.15fr; }

/* ---------- Check lists ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.checks li { position: relative; padding-left: 1.6rem; font-family: "Jost", "Century Gothic", "Futura", sans-serif; font-weight: 400; color: var(--ink); line-height: 1.45; }
.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.bullets li { position: relative; padding-left: 1.2rem; font-family: "Jost", "Century Gothic", "Futura", sans-serif; font-weight: 400; color: var(--ink); line-height: 1.45; }
.bullets li::before { content: "\2022"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--ink); }
.checks li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  font-weight: 700; color: var(--ink);
}

/* ---------- Offerings (services / scenarios) ---------- */
.stack { display: grid; gap: 0; }
.entry { padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.entry:first-child { border-top: 0; }
.entry .two { align-items: start; }
.entry h3 { max-width: 20ch; }
.entry .gain { margin-top: 1rem; padding-left: 1.1rem; border-left: 2px solid var(--ink); color: var(--muted); font-style: normal; }

.meta-list { list-style: none; margin: 1rem 0 0; padding: 0; color: var(--muted); display: grid; gap: 0.35rem; font-family: "Jost", "Century Gothic", "Futura", sans-serif; font-size: 0.95rem; }

/* ---------- Contact / forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: 34rem; margin-top: 1.5rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 0; padding: 0.7rem 0.8rem; width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid transparent; }
.hp { position: absolute; left: -9999px; }

.email-big { font-family: "Jost", "Century Gothic", "Futura", sans-serif; font-size: var(--step-2); font-weight: 700; letter-spacing: -0.01em; }
.email-big a { color: var(--ink); text-decoration: none; box-shadow: inset 0 -2px 0 var(--ink); }
.email-big a:hover { color: var(--muted); }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.portrait-photo { width: 100%; max-width: 320px; aspect-ratio: 4/5; object-fit: cover; border-radius: 0; }
.portrait-float { float: right; display: block; width: 140px; margin: 0 0 1rem 1.5rem; }
.portrait-float .portrait-photo { width: 140px; max-width: 140px; }
.portrait-float .signature { width: 140px; margin: 0.6rem 0 0; }
.signature { width: 160px; height: auto; margin: 0.75rem 0 1.25rem; display: block; }
.founder--compact { gap: 1.25rem; }
.founder--compact .portrait-photo { max-width: 200px; }
.founder--compact .signature { width: 110px; }
@media (min-width: 700px) {
  .founder--compact { grid-template-columns: 200px 1fr; }
}

/* ---------- Tools formats ---------- */
.formats { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3rem); }
.format { padding: clamp(1.4rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: 0; }
.format h3 { margin-bottom: 0.4rem; }
.link-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; }

.link-list a {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; font-family: "Jost", "Century Gothic", "Futura", sans-serif;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 0.85rem 1.1rem; border: 2px solid var(--ink); text-decoration: none;
  background: transparent; color: var(--ink);
  transition: background-color .18s ease, color .18s ease;
}
.link-list a:hover { background: var(--ink); color: #fff; }
.link-list a.link-list__featured { background: var(--ink); color: #fff; font-size: 0.95rem; }
.link-list a.link-list__featured:hover { background: transparent; color: var(--ink); }

.tool-media { width: 100%; margin: 0 0 1.25rem; }
.tool-media img, .tool-media video { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.tool-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0 0 1.25rem; }
.tool-media-grid img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.video-wrap { max-width: 720px; }
.video-wrap video { width: 100%; height: auto; display: block; background: #000; border: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding-block: clamp(2.5rem, 5vw, 4rem); margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { font-family: "Jost", "Century Gothic", "Futura", sans-serif; font-size: var(--step-3); text-transform: none; letter-spacing: -0.01em; color: #fff; margin: 0 0 1.1rem; font-weight: 700; line-height: 1.08; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: #C9CCD1; }
.site-footer .muted { color: #C9CCD1 !important; }
.site-footer .brand { color: #fff; }
.colophon { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.2); color: #C9CCD1; font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.colophon a { color: #C9CCD1; text-decoration: underline; }
.colophon a:hover { color: #fff; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 0.6rem; background: var(--ink); color: #fff; padding: 0.5rem 0.9rem; border-radius: 0; z-index: 100; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .cols { grid-template-columns: 1fr; }
  .two, .two--split, .formats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .masthead .wrap { flex-direction: column; align-items: flex-start; }

  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--line); border-radius: 0;
    width: 42px; height: 38px; cursor: pointer;
  }
  .nav-toggle svg { width: 20px; height: 20px; }
  .nav-links {
    position: absolute; top: 56px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 0.5rem clamp(1.25rem, 5vw, 3rem) 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--ink); font-weight: 700; }
}

@media (min-width: 700px) {
  .founder { grid-template-columns: 320px 1fr; align-items: start; }
}

@media (max-width: 480px) {
  .portrait-float { float: none; width: 140px; margin: 0 0 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
