/* ==========================================================================
   LF Holdings, LLC — Design Tokens
   ========================================================================== */

:root {
  /* Color */
  --ink: #15181D;          /* graphite — holding-company gravity */
  --ink-soft: #1E232B;
  --paper: #EFEBE0;        /* stone paper */
  --paper-dim: #E6DFCE;
  --brass: #A8873B;        /* institutional brass — capital, governance */
  --brass-soft: #C7A968;
  --steel: #3C5A73;        /* infrastructure / technology accent */
  --steel-soft: #5C7C97;
  --line: #C7BEA9;
  --line-dark: #333A43;
  --white: #FFFFFF;
  --ink-70: rgba(21, 24, 29, 0.7);
  --ink-50: rgba(21, 24, 29, 0.5);
  --paper-70: rgba(239, 235, 224, 0.7);
  --paper-50: rgba(239, 235, 224, 0.5);

  /* Type */
  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Layout */
  --max-w: 1240px;
  --gutter: clamp(24px, 5vw, 72px);
  --radius: 2px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

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

/* ==========================================================================
   Language toggling
   ========================================================================== */

.lang-fr, .lang-en { display: none; }
html[data-lang="en"] .lang-en { display: revert; }
html[data-lang="fr"] .lang-fr { display: revert; }
html[data-lang="en"] span.lang-en,
html[data-lang="fr"] span.lang-fr { display: inline; }
html[data-lang="en"] li.lang-en,
html[data-lang="fr"] li.lang-fr { display: list-item; }

/* ==========================================================================
   Utility
   ========================================================================== */

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.tick-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--brass);
}

section { position: relative; }

.on-ink { background: var(--ink); color: var(--paper); }
.on-ink .tick-index { color: var(--brass-soft); }

.section-pad { padding: clamp(64px, 9vw, 120px) 0; }

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}
.on-ink .rule { border-top-color: var(--line-dark); }

.grid-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(199, 190, 169, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(199, 190, 169, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brandmark {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 44px;
  width: 44px;
  flex-shrink: 0;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark span { color: var(--brass); }
.wordmark small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink-70);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
}
.nav-links a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.nav-links a:hover { border-bottom-color: var(--brass); }

.nav-right { display: flex; align-items: center; gap: 18px; }

.lang-switch {
  display: flex;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.lang-switch button {
  background: transparent;
  border: none;
  padding: 7px 12px;
  color: var(--ink);
}
.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  font-size: 14px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--steel); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  padding: 8px 10px;
  border-radius: var(--radius);
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px 0; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  body.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  body.nav-open .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.hero-grid {
  padding-top: clamp(56px, 8vw, 88px);
  padding-bottom: clamp(40px, 6vw, 64px);
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brass-soft);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
html[data-lang="fr"] .hero h1 {
  font-size: clamp(26px, 4.1vw, 51px);
}

.hero p.lede {
  margin-top: 26px;
  font-size: clamp(16.5px, 1.4vw, 18.5px);
  color: var(--paper-70);
  max-width: 80ch;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  font-size: 14.5px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-soft); }
.btn-outline { border-color: var(--line-dark); color: var(--paper); }
.btn-outline:hover { border-color: var(--paper); }
.on-paper.btn-outline { border-color: var(--ink); color: var(--ink); }
.on-paper.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* Negation strip */
.negation-strip { background: var(--ink-soft); border-top: 1px solid var(--line-dark); }
.negation-inner {
  padding: 26px 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.9vw, 21px);
}
.negation-inner .resolve { color: var(--paper); font-weight: 600; }

/* ==========================================================================
   Mission / Vision
   ========================================================================== */

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.mv-item {
  padding: 48px var(--gutter);
  border-right: 1px solid var(--line);
}
.mv-item:last-child { border-right: none; }
.mv-item .tick-index { display: block; margin-bottom: 14px; }
.mv-item p.statement {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.4;
  max-width: 34ch;
}
@media (max-width: 780px) {
  .mv-grid { grid-template-columns: 1fr; }
  .mv-item { border-right: none; border-bottom: 1px solid var(--line); }
  .mv-item:last-child { border-bottom: none; }
}

/* ==========================================================================
   Section heads
   ========================================================================== */

.section-head { max-width: 740px; margin-bottom: 56px; }
.section-head .tick-index { display: block; margin-bottom: 16px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.section-head p { margin-top: 16px; font-size: 16.5px; color: var(--ink-70); max-width: 58ch; }
.on-ink .section-head p { color: var(--paper-70); }

/* ==========================================================================
   Four Pillars
   ========================================================================== */

.pillars4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar4 {
  background: var(--white);
  padding: 30px 26px 32px;
  display: flex;
  flex-direction: column;
}
.pillar4-index { font-family: var(--font-mono); font-size: 11.5px; color: var(--brass); margin-bottom: 16px; }
.pillar4-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 6px; }
.pillar4-subtitle { font-size: 12.5px; color: var(--steel); margin-bottom: 14px; line-height: 1.4; }
.pillar4-desc { font-size: 13.5px; color: var(--ink-70); margin-bottom: 20px; }
.pillar4-list { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.pillar4-list-label { font-family: var(--font-mono); font-size: 10.5px; color: var(--brass); margin-bottom: 8px; }
.pillar4-list ul li {
  font-size: 12.8px;
  padding: 4px 0;
  border-top: 1px dotted var(--line);
  color: var(--ink-70);
}
.pillar4-list ul li:first-child { border-top: none; }
.pillar4-link {
  margin-top: 16px;
  font-size: 12.8px;
  color: var(--steel);
  border-bottom: 1px solid var(--steel-soft);
  align-self: flex-start;
}
.pillar4-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-50);
  font-style: italic;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .pillars4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pillars4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Integrated Model — 4 domains
   ========================================================================== */

.domains {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.domain {
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 30px 24px 34px;
}
.domain .n { font-family: var(--font-mono); font-size: 11.5px; color: var(--brass-soft); display: block; margin-bottom: 24px; }
.domain h4 { font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; }
.domain p { font-size: 13.5px; color: var(--paper-70); }

@media (max-width: 900px) {
  .domains { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .domains { grid-template-columns: 1fr; }
}

.model-close {
  margin-top: 36px;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--paper);
  max-width: 62ch;
}

/* ==========================================================================
   Value Steps (Advise / Build / Connect / Execute)
   ========================================================================== */

.value-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.value-step { background: var(--paper-dim); padding: 30px 26px; }
.value-step .n { font-family: var(--font-mono); font-size: 11.5px; color: var(--brass); display: block; margin-bottom: 26px; }
.value-step h4 { font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; }
.value-step p { font-size: 13.5px; color: var(--ink-70); }

@media (max-width: 900px) {
  .value-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .value-steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Sectors
   ========================================================================== */

.sectors-band { background: var(--paper-dim); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--ink); padding: 7px 14px; font-size: 13px; border-radius: var(--radius); background: var(--paper); }

/* ==========================================================================
   Differentiators
   ========================================================================== */

.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.diff-item { border-top: 2px solid var(--ink); padding-top: 18px; }
.diff-item h4 { font-family: var(--font-display); font-size: 18px; margin-bottom: 10px; }
.diff-item p { font-size: 14px; color: var(--ink-70); }

@media (max-width: 900px) {
  .diff-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .diff-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CTA / Contact
   ========================================================================== */

.cta-section { background: var(--ink); color: var(--paper); }
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 600;
  max-width: 18ch;
  line-height: 1.15;
}
.cta-inner p { color: var(--paper-70); margin-top: 14px; font-size: 16px; max-width: 44ch; }
.cta-form { display: flex; flex-direction: column; gap: 12px; min-width: 280px; }
.cta-email {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--brass-soft);
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 10px;
}
.investor-note {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 13.5px;
  color: var(--paper-50);
  max-width: 62ch;
}

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

footer {
  background: var(--ink);
  color: var(--paper-50);
  border-top: 1px solid var(--line-dark);
  padding: 40px 0;
}
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-tag { font-size: 13px; max-width: 44ch; }

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.footer-logo { opacity: 0.92; }
.footer-email {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--brass-soft);
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 6px;
  transition: color 0.15s ease;
}
.footer-email:hover { color: var(--paper); }

.footer-meta { display: flex; gap: 24px; font-size: 13px; }
.footer-meta a:hover { color: var(--paper); }

@media (max-width: 640px) {
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .footer-contact { align-items: flex-start; }
}

/* ==========================================================================
   Mobile hero / brand tightening (kept last for cascade priority)
   ========================================================================== */

@media (max-width: 480px) {
  .hero h1 { font-size: 25px; line-height: 1.24; }
  html[data-lang="fr"] .hero h1 { font-size: 22px; line-height: 1.28; }
  .hero p.lede { font-size: 15.5px; }
  .brand-logo { height: 34px; width: 34px; }
  .wordmark { font-size: 16px; }
  .wordmark small { font-size: 9px; }
  .lang-switch button { padding: 6px 9px; }
}
