/* ==========================================================================
   DUPM & Co. — Design Tokens
   ========================================================================== */

:root {
  /* Color */
  --ink: #131F30;          /* deep indigo-navy — institutional */
  --ink-soft: #1C2C44;
  --paper: #F3EEE1;        /* warm bone paper */
  --paper-dim: #EAE3D2;
  --ochre: #B8763A;        /* clay/savanna accent — used sparingly */
  --ochre-soft: #D79A5C;
  --verdigris: #2F6E5C;    /* growth / agriculture accent */
  --line: #C9C0AC;         /* hairline on paper */
  --line-dark: #3A4A63;    /* hairline on ink */
  --white: #FFFFFF;
  --ink-70: rgba(19, 31, 48, 0.7);
  --ink-50: rgba(19, 31, 48, 0.5);
  --paper-70: rgba(243, 238, 225, 0.7);
  --paper-50: rgba(243, 238, 225, 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: 1220px;
  --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 { 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(--ochre);
  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(--ochre);
}

section { position: relative; }

.on-ink { background: var(--ink); color: var(--paper); }
.on-ink .tick-index { color: var(--ochre-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); }

/* Blueprint grid backdrop, used sparingly on ink sections */
.grid-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(201, 192, 172, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201, 192, 172, 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: 14px;
}
.brand-logo {
  height: 58px;
  width: auto;
  flex-shrink: 0;
  border-radius: 4px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark span { color: var(--ochre); }

.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, color 0.15s ease;
}
.nav-links a:hover { border-bottom-color: var(--ochre); }

.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(--verdigris); }

.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 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding-bottom: clamp(40px, 6vw, 64px);
  }
  .stack { max-width: 320px; margin: 0; }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  max-width: 30ch;
}
html[data-lang="fr"] .hero h1 {
  font-size: clamp(25px, 2.9vw, 36px);
  max-width: 31ch;
}

.hero p.lede {
  margin-top: 24px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--paper-70);
  max-width: 46ch;
  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(--ochre);
  color: var(--ink);
}
.btn-primary:hover { background: var(--ochre-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); }

/* Hero diagram */
.stack {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin-left: auto;
}
.stack svg { width: 100%; height: auto; }

/* ==========================================================================
   Who / What / How triptych
   ========================================================================== */

.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.triptych-item {
  padding: 40px var(--gutter);
  border-right: 1px solid var(--line);
}
.triptych-item:last-child { border-right: none; }
.triptych .tick-index { display: block; margin-bottom: 14px; }
.triptych h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 12px;
}
.triptych p { color: var(--ink-70); font-size: 15px; }

@media (max-width: 780px) {
  .triptych { grid-template-columns: 1fr; }
  .triptych-item { border-right: none; border-bottom: 1px solid var(--line); padding-left: var(--gutter); padding-right: var(--gutter); }
  .triptych-item:last-child { border-bottom: none; }
}

/* ==========================================================================
   Vision band
   ========================================================================== */

.vision-band {
  background: var(--verdigris);
  color: var(--paper);
  padding: 34px 0;
}
.vision-band .wrap {
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
}
.vision-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(243, 238, 225, 0.75);
}
.vision-band p {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.9vw, 21px);
}

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

.section-head {
  max-width: 720px;
  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: 56ch;
}
.on-ink .section-head p { color: var(--paper-70); }

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

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.pillar {
  background: var(--ink);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
}
.pillar-name {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  margin-bottom: 14px;
}
.pillar-desc {
  color: var(--paper-70);
  font-size: 14.5px;
  margin-bottom: 24px;
}
.pillar-sub {
  margin-top: auto;
  border-top: 1px solid var(--line-dark);
  padding-top: 18px;
}
.pillar-sub-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ochre-soft);
  margin-bottom: 10px;
}
.pillar-sub ul li {
  font-size: 14px;
  padding: 5px 0;
  color: var(--paper);
  border-top: 1px dotted var(--line-dark);
}
.pillar-sub ul li:first-child { border-top: none; }

@media (max-width: 880px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Detail sections (Capital Intelligence / Institutional Transformation / Strategy)
   ========================================================================== */

.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
}

.service-list {
  border-top: 1px solid var(--line);
}
.service-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.service-list li .n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ochre);
  min-width: 22px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.chip {
  border: 1px solid var(--ink);
  padding: 7px 14px;
  font-size: 13px;
  border-radius: var(--radius);
}

.aside-card {
  background: var(--ink);
  color: var(--paper);
  padding: 32px;
  border-radius: var(--radius);
}
.aside-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 14px;
}
.aside-card p { font-size: 14.5px; color: var(--paper-70); }

.subsplit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 640px) {
  .subsplit, .detail-grid { grid-template-columns: 1fr; }
}
.subsplit-item h4 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 10px;
}
.subsplit-item ul li {
  font-size: 14.5px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-70);
}
.subsplit-item ul li:first-child { border-top: none; }

/* ==========================================================================
   Venture Hub
   ========================================================================== */

.hub-verticals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}
.hub-card {
  border: 1px solid var(--line);
  padding: 26px 22px;
  background: var(--white);
  color: var(--ink);
}
.hub-card .hub-index {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ochre);
  margin-bottom: 16px;
}
.hub-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.25;
}
.hub-card p { font-size: 13.5px; color: var(--ink-70); }

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

.framework-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.framework-head h3 {
  font-family: var(--font-display);
  font-size: 24px;
}
.framework-head span.tm { font-size: 14px; vertical-align: super; color: var(--ochre); }

.framework-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.step {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 18px 26px;
}
.step .n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ochre);
  display: block;
  margin-bottom: 30px;
}
.step h5 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 8px;
}
.step p { font-size: 12.5px; color: var(--ink-70); }

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

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

.sectors-band { background: var(--paper-dim); }
.sector-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.sector-chips .chip { background: var(--paper); }

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about-copy p { font-size: 16.5px; color: var(--ink-70); margin-bottom: 18px; max-width: 52ch; }
.about-copy p:last-child { margin-bottom: 0; }

.footprint {
  display: flex;
  flex-direction: column;
}
.footprint-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.footprint-row:last-child { border-bottom: 1px solid var(--line); }
.footprint-region {
  font-family: var(--font-display);
  font-size: 17px;
}
.footprint-desc { font-size: 14px; color: var(--ink-70); }

.differentiator {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.differentiator p {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.4;
  max-width: 62ch;
}

/* ==========================================================================
   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(30px, 4.2vw, 48px);
  font-weight: 600;
  max-width: 14ch;
  line-height: 1.1;
}
.cta-inner p {
  color: var(--paper-70);
  margin-top: 14px;
  font-size: 16px;
  max-width: 40ch;
}
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
}
.cta-email {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ochre-soft);
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 10px;
}

/* ==========================================================================
   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: 46ch;
}
.footer-meta {
  display: flex;
  gap: 24px;
  font-size: 13px;
}
.footer-meta a:hover { color: var(--paper); }

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

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; line-height: 1.22; }
  html[data-lang="fr"] .hero h1 { font-size: 23px; line-height: 1.26; }
  .hero p.lede { font-size: 15.5px; }
  .brand-logo { height: 40px; }
  .wordmark { font-size: 17px; }
}
