/* Kimkie — styles
   Spacing scale: 4 8 12 16 24 32 48 64 96 128.
   Breakpoints (mobile first): 600px, 900px, 1200px. */

:root {
  --bg: #fafaf8;
  --paper: #ffffff;
  --sand: #f0efea;
  --ink: #111111;
  --muted: #55555a;
  --line: #dcdbd5;
  --accent: #d9542b;
  --accent-soft: #f2a183;
  --night: #111111;
  --night-2: #1b1b1d;
  --on-night: #d6d6d2;

  --max: 1180px;
  --gutter: clamp(16px, 5vw, 48px);
  --section: clamp(64px, 9vw, 128px);
  --radius: 14px;
  --header-h: 61px;           /* sticky header height, used to offset anchors */

  --text: 1.0625rem;          /* 17px */
  --small: 0.9375rem;         /* 15px */
  --h1: clamp(2.4rem, 1.4rem + 4.6vw, 5rem);
  --h2: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem);
  --h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, ul, figure { margin: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }
p { text-wrap: pretty; }
a { text-decoration: none; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
section[id], h3[id] { scroll-margin-top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -80px; background: var(--paper); color: var(--ink); padding: 8px 14px; z-index: 10; }
.skip-link:focus { top: 12px; }

/* Header (sticky; the light background stays readable over the dark sections) */
.site-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px max(var(--gutter), calc((100% - var(--max)) / 2));
  background: rgba(250, 250, 248, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-logo { width: 24px; height: auto; flex: 0 0 auto; }
.brand-name { font-weight: 780; font-size: 1.25rem; letter-spacing: -0.03em; }
.site-header nav { display: flex; align-items: center; gap: 28px; font-size: var(--small); }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a:not(.nav-contact) { display: none; }
.site-header nav .nav-contact {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border-radius: 8px; background: var(--ink); color: #fff; font-weight: 700;
}
.site-header nav .nav-contact:hover { background: #000; color: #fff; }

/* Type helpers */
.eyebrow, .label {
  color: var(--accent); font-weight: 750; font-size: 0.8125rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px;
}
.section h2 { font-size: var(--h2); max-width: 24ch; }
.section h2 br { display: none; }
.intro { max-width: 62ch; margin-top: 20px; color: var(--muted); }
h3 { font-size: var(--h3); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 8px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 720; font-size: 1rem; width: 100%;
}
.button:hover { background: #000; }
.button.light { background: #fff; color: var(--ink); }
.button.light:hover { background: var(--sand); }
.button.outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.button.outline:hover { background: rgba(255,255,255,.08); }
.text-link { color: var(--ink); font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--accent); }
.section-cta { margin-top: 32px; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 104px) 0 var(--section); }
.hero h1 { font-size: var(--h1); max-width: 17ch; letter-spacing: -0.045em; }
.hero h1 br { display: none; }
.lead { max-width: 58ch; margin-top: 24px; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.55; }
.actions { display: flex; flex-direction: column; align-items: stretch; gap: 16px; margin-top: 32px; }
.actions .text-link { text-align: center; padding: 8px 0; }
.proof { max-width: 62ch; margin-top: 40px; padding-left: 16px; border-left: 2px solid var(--accent); color: var(--muted); font-size: var(--small); }

/* Sections */
.section { padding-block: var(--section); }
.tint { background: var(--sand); }
.tint + .tint { border-top: 1px solid var(--line); }  /* two tinted sections in a row (case study hidden) */
.closing { max-width: 62ch; margin-top: 40px; font-size: 1.125rem; font-weight: 650; }

/* Cards (constat, méthode) */
.cards { display: grid; gap: 16px; margin-top: 40px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: var(--small); color: #2a2a2e; }
.card-num { display: block; color: var(--accent); font-weight: 800; font-size: var(--small); margin-bottom: 12px; }
.principles .card { background: var(--sand); border-color: transparent; }

/* Offer */
.offers { display: grid; gap: 16px; margin-top: 40px; }
.offer { display: flex; flex-direction: column; background: var(--paper); border: 1px solid transparent; border-radius: var(--radius); padding: 28px 24px; }
.offer .label { margin-bottom: 8px; }
.offer h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); margin-bottom: 12px; }
.offer > p:not(.label):not(.price) { font-size: var(--small); color: #2a2a2e; }
.offer ul { flex: 1; margin: 20px 0 24px; padding-left: 18px; font-size: var(--small); }
.offer li + li { margin-top: 8px; }
.price { padding-top: 16px; border-top: 1px solid var(--line); font-weight: 720; font-size: var(--small); }
.between { max-width: 62ch; margin: 32px 0 24px; }

/* Steps (ce que nous installons) and studio references */
.steps, .references { display: grid; gap: 32px; margin-top: 40px; }
.steps span { display: block; color: var(--accent); font-weight: 800; font-size: var(--small); margin-bottom: 8px; }
.steps h3, .references h3 { margin-bottom: 8px; }
.steps p { font-size: var(--small); color: #2a2a2e; }

/* Client case */
.case { display: grid; gap: 40px; }
.case h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem) !important; max-width: 22ch; }
.case-meta { margin-top: 16px; color: var(--muted); font-size: var(--small); }
.case-body { display: grid; gap: 24px; }
.case-body h3 { font-size: 1.0625rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.case-body p { font-size: var(--small); color: #2a2a2e; }

/* Dark studio section */
.dark { background: var(--night); color: #fff; }
.dark .eyebrow, .dark .label { color: var(--accent-soft); }
.dark .intro { color: var(--on-night); }
.references article { border-top: 1px solid #4a4a4e; padding-top: 20px; }
.references p { font-size: var(--small); color: var(--on-night); }
.references p + p { margin-top: 12px; }
.references a { color: #fff; font-weight: 700; }

/* About */
.profile-intro { display: grid; gap: 32px; }
.profile-copy .intro + .intro { margin-top: 16px; }
.profile-photo { width: min(64vw, 240px); aspect-ratio: 1; overflow: hidden; border-radius: 18px; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ */
.faq-wrap { display: grid; gap: 32px; }
.faq-wrap h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem) !important; }
.faq article { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.faq article + article { margin-top: 24px; }
.faq h3 { margin-bottom: 8px; }
.faq p { font-size: var(--small); color: #2a2a2e; }

/* Contact */
.contact { background: var(--night-2); color: #fff; padding-block: var(--section); }
.contact .eyebrow { color: var(--accent-soft); }
.contact h2 { font-size: var(--h2); max-width: 18ch; }
.contact-inner > p:not(.eyebrow):not(.chat-note) { max-width: 58ch; margin-top: 20px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: #ececea; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.chat-note { max-width: 62ch; margin-top: 20px; font-size: var(--small); color: var(--on-night); }

footer { background: #000; color: #bdbdb8; font-size: 0.875rem; }
footer .wrap { display: flex; flex-direction: column; gap: 4px; padding-block: 24px; }

/* Deliverables tags (offer cards) */
.deliverables { padding-top: 16px; border-top: 1px solid var(--line); }
.deliverables-title { font-size: 0.75rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.tag { display: inline-block; margin: 0 4px 6px 0; padding: 4px 10px; border-radius: 999px; background: var(--sand); font-size: 0.875rem; font-weight: 650; }

/* Deliverable mockups */
.mockups { display: grid; gap: 32px; margin-top: 40px; max-width: 560px; }
.mockup figcaption { margin-top: 14px; font-size: var(--small); color: var(--muted); max-width: 46ch; }
.mockup figcaption b { color: var(--ink); }
.doc { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -24px rgba(0,0,0,.25); overflow: hidden; font-size: 0.8125rem; line-height: 1.5; }
.doc-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f6f5f1; }
.doc-bar span { width: 8px; height: 8px; border-radius: 50%; background: #d4d2cb; }
.doc-bar b { margin-left: 8px; font-size: 0.75rem; color: var(--muted); font-weight: 650; }
.doc-body { padding: 18px 18px 20px; }
.doc-kicker { font-size: 0.6875rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.doc-h { font-weight: 750; font-size: 0.9375rem; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 8px; }
.doc-p { color: #3a3a3e; }
.src { display: inline-block; padding: 0 6px; border-radius: 4px; background: #fbe6dd; color: #9c3a1b; font-size: 0.6875rem; font-weight: 650; }
.doc-table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 0.75rem; }
.doc-table th { text-align: left; color: var(--muted); font-weight: 650; border-bottom: 1px solid var(--line); padding: 4px 6px 4px 0; }
.doc-table td { border-bottom: 1px solid #eeede8; padding: 5px 6px 5px 0; }
.maturity { display: flex; align-items: center; gap: 5px; margin-top: 14px; font-size: 0.75rem; color: var(--muted); }
.maturity span { margin-right: 4px; }
.maturity i { width: 18px; height: 6px; border-radius: 3px; background: #e4e2dc; }
.maturity i.on { background: var(--accent); }
.maturity b { margin-left: 6px; color: var(--ink); }
.doc-list { padding-left: 16px; color: #3a3a3e; }
.doc-list li + li { margin-top: 6px; }
.doc-code { margin-top: 12px; padding: 6px 8px; border-radius: 6px; background: #f3f2ee; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.6875rem; color: var(--muted); overflow-wrap: anywhere; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpis div { padding: 10px; border: 1px solid #eeede8; border-radius: 8px; }
.kpis p { font-size: 0.6875rem; color: var(--muted); line-height: 1.3; min-height: 2.6em; }
.kpis b { display: block; font-size: 1.25rem; letter-spacing: -0.02em; margin-top: 4px; }
.kpis span { font-size: 0.6875rem; font-weight: 700; }
.kpis .down, .kpis .up { color: #1f7a4d; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: 14px; }
.bars i { flex: 1; background: linear-gradient(var(--accent), #eea184); border-radius: 3px 3px 0 0; }
.doc-note { margin-top: 6px; font-size: 0.6875rem; color: var(--muted); }
.mockup-note { margin-top: 24px; font-size: 0.8125rem; color: var(--muted); }

/* Kit (compact list, one line per tool) */
.kit { list-style: none; margin: 24px 0 0; padding: 0; max-width: 880px; border-bottom: 1px solid #4a4a4e; }
.kit li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid #4a4a4e; }
.kit span { font-size: var(--small); color: var(--on-night); }

/* Engagement timeline */
.timeline { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 0; counter-reset: none; }
.timeline li { position: relative; padding: 0 0 28px 52px; }
.timeline li::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li > span { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 750; font-size: var(--small); }
.timeline h3 { margin: 6px 0 6px; }
.timeline p { font-size: var(--small); color: #2a2a2e; }
.needs { margin-top: 24px; padding: 24px; border-radius: var(--radius); background: var(--sand); }
.needs h3 { margin-bottom: 12px; }
.needs ul { padding-left: 18px; font-size: var(--small); }
.needs li + li { margin-top: 8px; }

/* Augmented studio */
.augmented { display: grid; gap: 16px; margin-top: 40px; }
.augmented > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.augmented > div:first-child { background: var(--ink); color: #fff; border-color: var(--ink); }
.augmented > div:first-child li { color: var(--on-night); }
.augmented > div:first-child b { color: #fff; }
.augmented h3 { margin-bottom: 12px; }
.augmented ul { padding-left: 18px; font-size: var(--small); }
.augmented li + li { margin-top: 8px; }
.dark .augmented > div, .dark .augmented > div:first-child { background: var(--night-2); border-color: #2e2e31; color: #fff; }
.dark .augmented li { color: var(--on-night); }
.dark .augmented b { color: #fff; }
.dark .closing { color: #fff; }
.sub-title { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); margin-top: 64px; }
.sub-title + .intro { margin-top: 12px; }
.dark .sub-title + .references { margin-top: 24px; }

/* CEO line under the constat */
.ceo-line { max-width: 62ch; margin-top: 12px; color: var(--muted); }

/* Agent-Ready levels */
.levels { margin-top: 32px; }
.levels-title { font-size: 0.8125rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.levels ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.levels li { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.levels li b { font-size: var(--small); }
.levels li span { font-size: 0.875rem; color: var(--muted); line-height: 1.45; }

/* Figures band */
.stats { display: grid; gap: 16px; margin-bottom: 64px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column; gap: 6px; }
.stats b { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.1; letter-spacing: -0.035em; }
.stats span { font-size: var(--small); color: var(--muted); max-width: 30ch; }

.profile-links { margin-top: 20px; }
.profile-links a, .contact-direct a, .legal a { font-weight: 700; color: inherit; }
.profile-links a:hover, .legal a:hover { color: var(--accent); }
.references a:hover, .contact-direct a:hover { color: var(--accent-soft); }
.contact-direct { margin-top: 12px; font-size: var(--small); color: var(--on-night); }
.contact-direct a { color: #fff; }
.tint .principles .card { background: var(--paper); }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: #fff; }

/* Legal page */
.legal .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.legal h1 { font-size: var(--h2); }
.legal h2 { font-size: var(--h3); margin: 40px 0 12px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 18px; margin-top: 12px; }
.legal li + li { margin-top: 6px; }
.placeholder { background: #fff3b0; padding: 0 4px; border-radius: 3px; }

/* Team and founder card */
.team { display: grid; gap: 32px; }
.founder { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.founder-head { display: flex; align-items: center; gap: 16px; }
.founder-head img { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.founder-head h3 { margin: 0; }
.founder-head p { color: var(--muted); font-size: var(--small); }
.founder ul { margin: 20px 0 0; padding-left: 18px; font-size: var(--small); color: #2a2a2e; }
.founder li + li { margin-top: 8px; }
.founder-link { display: inline-block; margin-top: 20px; font-weight: 700; color: var(--ink); font-size: var(--small); }
.founder-link:hover { color: var(--accent); }

/* ≥ 600px: two-column cards, inline buttons */
@media (min-width: 600px) {
  .button { width: auto; }
  .actions, .contact-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .actions { gap: 28px; }
  .actions .text-link { padding: 0; }
  .two-up, .augmented, .stats { grid-template-columns: repeat(2, 1fr); }
  .stats { gap: 32px; }
  .kit li { grid-template-columns: 19rem minmax(0, 1fr); gap: 24px; align-items: baseline; }
  .needs { padding: 28px 32px; }
  .cards { gap: 20px; }
  .card { padding: 28px; }
  .profile-intro { grid-template-columns: minmax(0, 1fr) 200px; align-items: center; gap: 40px; }
  .profile-photo { width: 100%; }
  footer .wrap { flex-direction: row; justify-content: space-between; }
}

/* ≥ 900px: full navigation, three columns */
@media (min-width: 900px) {
  :root { --header-h: 69px; }
  .site-header { padding-block: 12px; }
  .site-header nav a:not(.nav-contact) { display: inline; }
  .hero h1 br, .section h2 br { display: inline; }
  .hero h1 { max-width: none; }
  .steps, .references { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .timeline li { padding: 52px 0 0 0; }
  .timeline li::before { left: 44px; right: -20px; top: 17px; bottom: auto; width: auto; height: 2px; }
  .case { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .faq-wrap { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .profile-intro { grid-template-columns: minmax(0, 1fr) 260px; gap: 80px; }
  .team { grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; }
  .founder { padding: 28px; }
}

/* ≥ 1024px: three offers side by side */
@media (min-width: 1024px) {
  .offers { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .offer { padding: 32px 28px; }
  .mockups { grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: none; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .levels ol { grid-template-columns: repeat(5, 1fr); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
