/* melchiorlarere.com · modern product-site style */

:root {
  --ink: #0a0a12;
  --ink-2: #14141f;
  --bg: #ffffff;
  --soft: #f4f5fa;
  --border: #e6e8f0;
  --border-dark: rgba(255, 255, 255, 0.12);
  --muted: #5b6070;
  --muted-dark: rgba(255, 255, 255, 0.66);
  --accent: #5b4bff;
  --accent-2: #1fa2ff;
  --accent-3: #21d4b4;
  --radius: 22px;
  --radius-sm: 14px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0rem;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

section { padding: 104px 0; scroll-margin-top: 72px; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 44px; }
h3 { font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.3; }

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.kicker {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--accent); margin-bottom: 14px;
}
.dark .kicker { color: #9c92ff; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 18, 0.86);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border-dark);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; gap: 22px;
}
.wordmark { color: #fff; font-weight: 800; letter-spacing: -0.03em; font-size: 1.02rem; flex-shrink: 0; }
.nav-links { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-links a[aria-current] { color: #fff; background: rgba(255, 255, 255, 0.12); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.94rem; letter-spacing: -0.01em;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-pill {
  background: #fff; color: var(--ink); padding: 9px 18px; font-size: 0.88rem; flex-shrink: 0;
}
.btn-pill:hover { background: #e9e9f5; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e9e9f5; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: 84px 0 56px;
}
.hero-bg {
  position: absolute; inset: -20% -10% auto -10%; height: 130%;
  background:
    radial-gradient(46% 46% at 18% 12%, rgba(91, 75, 255, 0.55), transparent 70%),
    radial-gradient(40% 40% at 82% 8%, rgba(31, 162, 255, 0.42), transparent 68%),
    radial-gradient(38% 38% at 62% 78%, rgba(33, 212, 180, 0.26), transparent 70%);
  filter: blur(10px);
}
.hero-inner {
  position: relative;
  display: flex; align-items: center; gap: 56px;
  padding-bottom: 60px;
}
.hero-copy { flex: 1 1 auto; }
.hero h1 { margin-bottom: 12px; }
.hero-role {
  font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em;
  color: #fff; margin-bottom: 20px;
}
.hero-lede { max-width: 52ch; color: var(--muted-dark); font-size: 1.08rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-portrait {
  width: 260px; height: 320px; object-fit: cover; object-position: center 18%;
  border-radius: var(--radius); flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

/* ---------- metrics ---------- */
.metrics {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.metrics > div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.metrics dt {
  font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(100deg, #fff, #b9b2ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metrics dd { font-size: 0.86rem; color: var(--muted-dark); margin-top: 8px; font-weight: 500; }

/* ---------- companies band ---------- */
.band { background: var(--ink-2); padding: 26px 0; }
.companies { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 46px; align-items: baseline; justify-content: space-between; }
.companies li { display: flex; flex-direction: column; gap: 3px; }
.co { color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.co-meta { color: rgba(255, 255, 255, 0.5); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; }

/* ---------- sections ---------- */
.soft { background: var(--soft); }
.dark { background: var(--ink); color: #fff; }
.dark h2 { color: #fff; }

/* ---------- groups + hits ---------- */
.group { margin-bottom: 44px; }
.group:last-child { margin-bottom: 0; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.group-head h3 { font-size: 1.3rem; }
.group-head p { font-size: 0.86rem; color: var(--muted); font-weight: 600; }

.hits { list-style: none; }
.hits li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 15px 0; border-top: 1px solid var(--border);
}
.hits li:last-child { border-bottom: 1px solid var(--border); }
.hits span { font-weight: 600; letter-spacing: -0.01em; }
.hits b {
  flex-shrink: 0; font-size: 0.82rem; font-weight: 700; white-space: nowrap;
  color: var(--accent); background: rgba(91, 75, 255, 0.09);
  padding: 5px 12px; border-radius: 999px;
}
.soft .hits li { border-color: #e2e4ee; }

/* ---------- cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px;
}
.dark .card { background: rgba(255, 255, 255, 0.05); border-color: var(--border-dark); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.94rem; color: var(--muted); }
.dark .card p { color: var(--muted-dark); }
.card p.card-num {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 14px;
  background: linear-gradient(100deg, #a99fff, #6ec8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.card-link { position: relative; transition: border-color 0.15s ease, transform 0.15s ease; }
.card-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-link h3 a { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li {
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
  border: 1px solid var(--border); padding: 5px 11px; border-radius: 999px;
}
.go { display: inline-block; margin-top: 18px; font-size: 0.84rem; font-weight: 700; color: var(--accent); }

/* ---------- feature card ---------- */
.feature {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 38px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.feature-main h3 { font-size: 1.45rem; }
.feature-main p { margin-top: 12px; font-size: 0.98rem; color: var(--muted); }
.feature-main .btn { margin-top: 24px; }
.feature-hits li:first-child { border-top: none; padding-top: 0; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); color: #fff; }

/* ---------- venture ---------- */
.venture { display: grid; grid-template-columns: 1fr 220px; gap: 44px; align-items: start; }
.venture-lede { font-size: 1.05rem; color: var(--muted); margin-bottom: 26px; max-width: 56ch; }
.metrics-vert { grid-template-columns: 1fr; }
.soft .metrics > div { background: #fff; border-color: var(--border); }
.soft .metrics dt { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.soft .metrics dd { color: var(--muted); }

/* ---------- links list ---------- */
.links { list-style: none; }
.links a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 20px;
  padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.links a:hover { border-color: var(--accent); background: var(--soft); }
.link-title { font-weight: 800; letter-spacing: -0.02em; font-size: 1.08rem; }
.link-meta { grid-column: 1; font-size: 0.88rem; color: var(--muted); font-weight: 500; }
.links .go { grid-row: 1 / span 2; grid-column: 2; margin: 0; font-size: 1.1rem; }

/* ---------- case studies ---------- */
.case { padding: 68px 0 104px; }
.case .wrap { max-width: 880px; }
.case-kicker {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted); margin-bottom: 18px;
}
.case-kicker a { color: var(--accent); }
.case h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
.case .page-lede { font-size: 1.12rem; max-width: 64ch; }
.case-tiles { margin-top: 22px; grid-template-columns: repeat(4, 1fr); }
.case-tiles-3 { grid-template-columns: repeat(3, 1fr); }
.case-tiles > div { background: var(--soft); border-color: var(--border); }
.case-tiles dt { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case-tiles dd { color: var(--muted); }

.case-block { padding: 0; margin-top: 44px; scroll-margin-top: 0; }
.case-block h2 {
  font-size: 1.28rem; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.case-block > p { font-size: 1rem; color: #33353f; max-width: 70ch; }
.case-block .hits { margin-top: 4px; }
.case-note { margin-top: 14px; font-size: 0.88rem; color: var(--muted); }

/* three-phase comparison cards */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.phase {
  border: 1px solid var(--border); border-radius: 16px; background: var(--bg);
  padding: 20px 22px;
}
.phase-num {
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted); margin-bottom: 6px;
}
.phase h3 { font-size: 1.15rem; margin-bottom: 12px; }
.phase-row {
  font-size: 0.88rem; color: var(--muted); padding: 6px 0;
  border-top: 1px solid var(--border);
}
.phase-row span {
  display: inline-block; min-width: 34px; font-weight: 800; color: var(--ink);
}
.phase-on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 75, 255, 0.08); }
.phase-on .phase-num { color: var(--accent); }

/* numbered journey */
.steps { list-style: none; counter-reset: step; margin-top: 20px; }
.steps li {
  counter-increment: step; position: relative;
  padding: 18px 0 18px 52px; border-top: 1px solid var(--border);
}
.steps li:last-child { border-bottom: 1px solid var(--border); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 17px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 0.9rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { font-size: 1.05rem; }
.steps p { margin-top: 4px; font-size: 0.95rem; color: var(--muted); }

/* ownership grid */
.owned { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
.owned article {
  border: 1px solid var(--border); border-radius: 16px; background: var(--soft);
  padding: 20px 22px;
}
.owned h3 { font-size: 1.05rem; }
.owned p { margin-top: 6px; font-size: 0.92rem; color: var(--muted); }

/* horizontal step flow, scrolls on narrow screens */
.flow {
  display: flex; align-items: stretch; gap: 8px;
  margin: 22px 0 4px; padding-bottom: 6px; overflow-x: auto;
}
.step {
  flex-shrink: 0; display: flex; flex-direction: column; justify-content: center;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg);
  padding: 12px 14px; min-width: 120px;
}
.step strong { font-size: 0.9rem; font-weight: 700; letter-spacing: -0.01em; }
.step span { margin-top: 3px; font-size: 0.76rem; color: var(--muted); font-weight: 500; }
.step-on { border-color: var(--accent); background: rgba(91, 75, 255, 0.06); }
.flow .arrow { align-self: center; flex-shrink: 0; color: var(--muted); }

/* ---------- blog ---------- */
.more { margin-top: 26px; font-weight: 700; }
.more a { color: var(--accent); }
.dark .more a { color: #a99fff; }

.page-head { padding: 76px 0 20px; }
.page-head .wrap, .page-body .wrap { max-width: 860px; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page-lede { margin-top: 16px; font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.page-body { padding: 24px 0 104px; }

.post { padding: 68px 0 104px; }
.post .wrap { max-width: 760px; }
.post-date {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted); margin-bottom: 18px;
}
.post-date a { color: var(--accent); }
.post h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); }
.post .page-lede { font-size: 1.15rem; }

.post-body { margin-top: 40px; font-size: 1.08rem; line-height: 1.78; color: #23242e; }
.post-body > * + * { margin-top: 1.15em; }
.post-body h2 { font-size: 1.62rem; margin-top: 2.1em; }
.post-body h3 { font-size: 1.22rem; margin-top: 1.7em; }
.post-body h4, .post-body h5 { font-size: 1.05rem; margin-top: 1.5em; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body strong { font-weight: 800; }
.post-body ul, .post-body ol { padding-left: 1.25em; }
.post-body li + li { margin-top: 0.45em; }
.post-body blockquote {
  border-left: 3px solid var(--accent); padding: 2px 0 2px 20px;
  color: var(--muted); font-weight: 600;
}
.post-body img { max-width: 100%; height: auto; border-radius: 14px; display: block; }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 2.2em 0; }
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em;
  background: rgba(91, 75, 255, 0.09); color: #3d2fd6; padding: 2px 7px; border-radius: 6px;
}
.post-body pre {
  background: var(--ink); color: #e9e9f7; padding: 20px 22px; border-radius: 14px;
  overflow-x: auto; font-size: 0.9rem; line-height: 1.6;
}
.post-body pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.post-back { margin-top: 52px; font-weight: 700; }
.post-back a { color: var(--accent); }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact h2 { margin-bottom: 14px; }
.contact-lede { color: var(--muted-dark); font-size: 1.05rem; }
.contact .hero-cta { justify-content: center; margin-top: 34px; }
.credentials {
  margin-top: 54px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5);
  max-width: 70ch; margin-left: auto; margin-right: auto; font-weight: 500;
}

/* ---------- footer ---------- */
footer { background: var(--ink); padding: 22px 0; border-top: 1px solid var(--border-dark); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
footer p { color: rgba(255, 255, 255, 0.45); font-size: 0.82rem; font-weight: 600; }

/* ---------- responsive ---------- */
/* nav only: keep it on one clean row by shrinking and dropping the two longest
   labels (their sections stay reachable by scrolling) */
@media (max-width: 1040px) {
  .nav-links { gap: 2px; }
  .nav-links a { font-size: 0.84rem; padding: 6px 10px; }
  .nav-links a[href*="entrepreneurship"], .nav-links a[href*="articles"] { display: none; }
}

@media (max-width: 900px) {
  .metrics, .case-tiles { grid-template-columns: repeat(2, 1fr); }
  .phases { grid-template-columns: 1fr; }
  .owned { grid-template-columns: 1fr; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .venture { grid-template-columns: 1fr; gap: 28px; }
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 28px 26px; }
  .metrics-vert { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { gap: 36px; }
  .hero-portrait { width: 200px; height: 250px; }
}
@media (max-width: 680px) {
  section { padding: 72px 0; }
  .hero { padding-top: 56px; }
  .hero-inner { flex-direction: column-reverse; align-items: flex-start; padding-bottom: 44px; }
  .hero-portrait { width: 132px; height: 132px; border-radius: 20px; }
  .companies { gap: 16px 28px; }
  .co { font-size: 1.05rem; }
  .hits li { flex-direction: column; gap: 8px; }
  .hits b { align-self: flex-start; }
  .wordmark { font-size: 0.94rem; }
  .nav-inner { gap: 12px; padding: 11px 16px; }
  .nav-links { display: none; }
  .links a { grid-template-columns: 1fr; }
  .links .go { grid-row: auto; grid-column: 1; }
  .metrics dt { font-size: 1.55rem; }
  .metrics > div { padding: 16px 16px; }
  h1 { font-size: clamp(2.1rem, 10vw, 3rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card-link, .links a { transition: none; }
}
