/* ============================================================
   Lekke Logic — shared styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&display=swap');

:root {
  /* Palette */
  --paper: #FFFFFF;
  --paper-2: #F5F3EE;
  --ink: #0A0A0A;
  --ink-2: #1A1A1A;
  --muted: #6E6E6E;
  --muted-2: #9A9A9A;
  --rule: rgba(10, 10, 10, 0.10);
  --rule-strong: rgba(10, 10, 10, 0.22);
  --accent: #FF5B1F;
  --accent-2: #FFE0CF;
  --accent-ink: #0A0A0A;
  --green: #1F6B3A;
  --card: #FAFAF7;

  /* Type */
  --display: "Bricolage Grotesque", "Helvetica Neue", system-ui, sans-serif;
  --sans: "Geist", "Helvetica Neue", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Density */
  --section-y: clamp(72px, 9vw, 140px);
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --col-narrow: 720px;
}

[data-density="compact"] {
  --section-y: clamp(48px, 6vw, 96px);
  --gutter: clamp(16px, 3vw, 40px);
}

[data-display-font="grotesk"] {
  --display: "Geist", "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02", "cv11";
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--accent); color: var(--paper); }

/* ============================================================
   Layout primitives
   ============================================================ */

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

.wrap-narrow {
  width: 100%;
  max-width: var(--col-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--rule);
}

.section:first-of-type { border-top: none; }

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

.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: 1px;
}

/* ============================================================
   Typography
   ============================================================ */

.display {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 96, "wght" 600;
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.display .italic {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

h1.display { font-size: clamp(56px, 10vw, 156px); }
h2.display { font-size: clamp(40px, 6.5vw, 96px); }
h3.display { font-size: clamp(28px, 3.6vw, 52px); }

[data-display-font="serif"] {
  --display: "Instrument Serif", "Times New Roman", serif;
}
[data-display-font="serif"] .display {
  font-weight: 400;
  font-variation-settings: normal;
  line-height: 0.96;
  letter-spacing: -0.02em;
}
[data-display-font="serif"] .display .italic { font-style: italic; font-weight: 400; }

.kicker {
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 56ch;
  text-wrap: pretty;
  margin: 0;
}

.lead {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "opsz" 24, "wght" 500;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: var(--ink-2);
  max-width: 32ch;
  text-wrap: balance;
  margin: 0;
}
[data-display-font="serif"] .lead { font-style: italic; font-weight: 400; font-variation-settings: normal; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.body-lg { font-size: 19px; line-height: 1.6; color: var(--ink-2); }

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.brand-mark {
  /* Two interlocking L's — black + orange. They share edges but don't overlap,
     so each L stays clearly readable as its own shape. */
  width: 34px; height: 30px;
  border-radius: 0;
  background: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 64'><path d='M8 4 L24 4 L24 44 L48 44 L48 60 L8 60 Z' fill='%230A0A0A'/><path d='M64 60 L48 60 L48 20 L24 20 L24 4 L64 4 Z' fill='%23FF5B1F'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  /* Hide the legacy "L" character that lives inside the span on every page. */
  color: transparent;
  font-size: 0;
  line-height: 0;
  display: inline-block;
}
.foot-grid .brand-mark { width: 40px; height: 36px; }
.brand-word { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--sans);
  font-size: 14px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  transition: background .18s, color .18s;
}
.nav-links a:hover { background: rgba(22,20,15,0.06); color: var(--ink); }
.nav-links a.current { color: var(--ink); }
.nav-links a.current::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 6px;
  vertical-align: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .18s, background .18s;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--accent-ink); }
.nav-cta .arrow { transition: transform .2s; }
.nav-cta:hover .arrow { transform: translate(2px, -2px); }

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .18s ease, background .2s, color .2s, border-color .2s;
  cursor: pointer;
  background: none;
  color: inherit;
  text-decoration: none;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-1px); background: #000; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { transform: translateY(-1px); background: #ff6f3a; }
.btn-ghost { border-color: var(--rule-strong); color: var(--ink); }
.btn-ghost:hover { background: rgba(22,20,15,0.05); border-color: var(--ink); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translate(2px, -2px); }

/* ============================================================
   Hairline rule with label
   ============================================================ */

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--ink);
  padding-top: 16px;
  position: relative;
}
.section-head .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 28px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-2px); border-color: var(--rule-strong); }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Footer
   ============================================================ */

.foot {
  border-top: 1px solid var(--rule);
  background: var(--paper);
  padding: 80px 0 32px;
  margin-top: 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 820px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
.foot-tag {
  font-family: var(--display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-top: 16px;
  max-width: 14ch;
}
[data-display-font="serif"] .foot-tag { font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.foot-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 16px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--ink-2); }
.foot-col a:hover { color: var(--accent); }

.foot-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   Big display word with accent
   ============================================================ */

.accent-word {
  position: relative;
  display: inline-block;
}
.accent-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.04em;
  height: 0.18em;
  background: var(--accent);
  z-index: -1;
  opacity: 0.85;
}

/* ============================================================
   Pill / tag
   ============================================================ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(22,20,15,0.06);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}
.pill.accent { background: var(--accent); color: var(--ink); }
.pill.outline { background: transparent; border: 1px solid var(--rule-strong); }

/* ============================================================
   Marquee logos
   ============================================================ */

.logo-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.logo-cell {
  padding: 28px 16px;
  text-align: center;
  border-right: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 24px;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 88px;
}
.logo-cell:last-child { border-right: none; }
.logo-cell .lc-mark {
  width: 18px; height: 18px;
  display: inline-block;
}
@media (max-width: 820px) {
  .logo-row { grid-template-columns: repeat(2, 1fr); }
  .logo-cell:nth-child(2n) { border-right: none; }
  .logo-cell { border-bottom: 1px solid var(--rule); }
}

/* ============================================================
   Metric callout
   ============================================================ */

.metric {
  display: grid;
  gap: 6px;
}
.metric .n {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.metric .n .accent-c { color: var(--accent); }
.metric .l {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ============================================================
   Inline link
   ============================================================ */

.ilink {
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.ilink:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   Forms
   ============================================================ */

.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  font: inherit;
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  color: var(--ink);
  transition: border-color .2s, background .2s;
  outline: none;
  width: 100%;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--ink);
  background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }

/* ============================================================
   Misc
   ============================================================ */

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

.kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--rule-strong);
  border-radius: 5px;
  background: var(--paper-2);
}
