/* ===========================================================
   COSURGE — Design System
   Palette: Ink Navy / Graphite / Brass / Paper / Slate
   Display: Source Serif 4 | Body: Inter | Utility: JetBrains Mono
   =========================================================== */

:root {
  --ink: #0B1B2B;
  --ink-soft: #142A40;
  --graphite: #1F2937;
  --brass: #A67C3D;
  --brass-light: #C9A368;
  --paper: #F7F5F0;
  --paper-deep: #EFEBE2;
  --slate: #64748B;
  --slate-light: #94A3B8;
  --white: #FFFFFF;
  --line: rgba(11, 27, 43, 0.12);
  --line-soft: rgba(11, 27, 43, 0.07);

  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;

  --max: 1240px;
  --pad: clamp(24px, 5vw, 80px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--graphite);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--brass-light); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

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

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.06; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.14; }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; }

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--slate);
  font-weight: 400;
  max-width: 640px;
}

/* ---------- Header / Nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.logo span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--brass);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

nav.primary { display: flex; align-items: center; gap: 36px; }
nav.primary > ul { display: flex; gap: 36px; align-items: center; }

nav.primary a.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--graphite);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
nav.primary a.nav-link:hover { color: var(--brass); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--white);
  border: 1px solid var(--line);
  min-width: 240px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
  box-shadow: 0 18px 40px rgba(11,27,43,0.1);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--graphite);
  border-radius: 4px;
}
.dropdown a:hover { background: var(--paper); color: var(--brass); }
.dropdown a .dsub { display:block; font-size: 12px; color: var(--slate); margin-top:2px; font-weight:400;}

.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: transparent; border-color: rgba(247,245,240,0.4); color: var(--paper); }
.btn-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.menu-toggle { display: none; }

/* ---------- Site-wide header: dark navy band on every page (matches homepage hero) ---------- */
header.site {
  background: var(--ink);
  border-bottom: none;
}
header.site .logo-img { height: 72px; display: block; }
header.site .logo { color: var(--paper); }
header.site nav.primary a.nav-link { color: rgba(247,245,240,0.86); }
header.site nav.primary a.nav-link:hover { color: var(--brass); }
header.site .dropdown a { color: var(--graphite); }
header.site .dropdown a:hover { background: var(--paper); color: var(--brass); }
header.site .btn-primary { background: var(--brass); border-color: var(--brass); color: var(--white); }
header.site .btn-primary:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--ink); }
header.site .menu-toggle span { background: var(--paper); }
@media (max-width: 768px) {
  header.site nav.primary.open { background: var(--ink); }
  header.site nav.primary.open a.nav-link { color: rgba(247,245,240,0.86); border-color: rgba(247,245,240,0.14); }
  header.site nav.primary.open > ul > li { border-color: rgba(247,245,240,0.14); }
}

/* ---------- Homepage-only footer logo sizing ---------- */
footer.site .logo-img { height: 54px; display: block; }

/* ---------- 5Cs values strip (homepage) ---------- */
.fivecs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.fivecs-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 14px 18px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fivecs-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10,31,68,0.08); }
.fivecs-letter {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 34px;
  color: var(--brass);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}
.fivecs-word {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  display: block;
}
@media (max-width: 768px) {
  .fivecs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Hero ---------- */
.hero {
  padding: 128px 0 112px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 80px;
  align-items: end;
}
.hero h1 { margin-bottom: 28px; font-size: clamp(36px, 4.5vw, 62px); line-height: 1.08; letter-spacing: -0.02em; }
.hero .lede { margin-bottom: 0; font-size: 17px; line-height: 1.72; max-width: 480px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-side {
  border-left: 1px solid var(--ink);
  padding-left: 40px;
}
.hero-side p {
  font-size: 15.5px;
  color: var(--slate);
  line-height: 1.76;
}

/* ---------- Credentials ledger (signature element) ---------- */
.ledger {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}
.ledger-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ledger-item {
  padding: 30px var(--pad);
  border-right: 1px solid var(--line);
  font-family: var(--mono);
}
.ledger-item:last-child { border-right: none; }
.ledger-num {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.ledger-label {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- Homepage-only: dark navy ledger band ---------- */
#pg-home .ledger {
  background: var(--ink);
  border-top-color: var(--ink);
  border-bottom-color: var(--ink);
}
#pg-home .ledger-item { border-right-color: rgba(247,245,240,0.14); }
#pg-home .ledger-num { color: var(--brass-light); }
#pg-home .ledger-label { color: rgba(247,245,240,0.72); }

/* ---------- Section scaffolding ---------- */
section { padding: 100px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 64px;
  flex-wrap: nowrap;
}
.section-head > div:first-child { flex: 1 1 auto; min-width: 0; }
.section-head .lede { flex: 0 1 420px; margin-bottom: 0; }
@media (max-width: 768px) {
  .section-head { flex-wrap: wrap; }
  .section-head .lede { flex-basis: 100%; }
}

.dark { background: var(--ink); color: var(--paper); }
.dark h2, .dark h3, .dark h4 { color: var(--paper); }
.dark .lede { color: var(--slate-light); }
.dark .eyebrow { color: var(--brass-light); }
.dark .eyebrow::before { background: var(--brass-light); }

.moments-band { background: var(--ink-soft) !important; border-top: 3px solid var(--brass); border-bottom: 1px solid rgba(247,245,240,0.1); }

.deep { background: var(--paper-deep); }

/* ---------- Service index (numbered, meaningful — real sequence of offerings) ---------- */
.service-index { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.3fr 160px;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.service-row:hover { background: rgba(166,124,61,0.05); }
.service-row .si-num {
  font-family: var(--mono);
  color: var(--brass);
  font-size: 15px;
}
.service-row h3 { margin: 0; }
.service-row p { color: var(--slate); font-size: 15px; margin: 0; }
.service-row .si-link {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  color: var(--ink);
}
.service-row:hover .si-link { color: var(--brass); }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.card {
  background: var(--paper);
  padding: 44px 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -16px rgba(11,27,43,0.18); z-index: 1; }
.dark .card:hover { box-shadow: 0 20px 40px -16px rgba(0,0,0,0.5); }
.dark .grid-3, .dark .grid-2 { background: rgba(247,245,240,0.12); }
.dark .card { background: var(--ink); }
.card .card-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brass);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  display: block;
}
.card h4 { font-size: 19px; margin-bottom: 12px; }
.card p { color: var(--slate); font-size: 15px; }
.dark .card p { color: var(--slate-light); }

/* ---------- Service intro panel + six-box grid (IPO Advisory page) ---------- */
.service-feature-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-intro-panel {
  background: var(--ink);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-intro-panel .eyebrow { color: var(--brass-light); margin-bottom: 18px; }
.service-intro-panel .eyebrow::before { background: var(--brass-light); }
.service-intro-panel h2 { color: var(--paper); font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 26px; }
.service-intro-panel p { color: var(--slate-light); font-size: 15.5px; line-height: 1.7; max-width: 420px; }

.service-box-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.service-box {
  background: var(--paper-deep);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.service-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--brass);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
}
.service-box:hover {
  background: var(--paper);
  transform: translateY(-5px);
  box-shadow: 0 20px 36px -16px rgba(11,27,43,0.18);
  z-index: 1;
}
.service-box:hover::before { transform: scaleY(1); }
.service-box .card-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brass);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
  transition: transform 0.35s ease, color 0.35s ease;
}
.service-box:hover .card-num { color: var(--ink); transform: translateX(4px); }
.service-box h4 { font-size: 16.5px; margin-bottom: 10px; line-height: 1.3; transition: color 0.3s ease; }
.service-box:hover h4 { color: var(--ink); }
.service-box p { color: var(--slate); font-size: 13.5px; line-height: 1.6; }

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

/* ---------- People / leadership ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}
.person-card {
  background: var(--paper);
  padding: 44px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
}
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 4px;
  background: linear-gradient(155deg, var(--ink) 0%, var(--ink-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 34px;
  color: var(--brass-light);
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.person-name { font-size: 24px; margin-bottom: 4px; font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }
.person-role {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
  display: block;
}
.person-card p.bio { font-size: 14.5px; color: var(--slate); }
.person-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.person-social { margin-top: 18px; display: flex; }
.person-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.person-social a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.person-social svg { width: 16px; height: 16px; fill: currentColor; }
.tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 3px;
}

/* ---------- Advisor strip (board advisors) ---------- */
.advisor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.advisor-card {
  background: var(--paper);
  padding: 36px 28px;
}
.advisor-card .avatar { width: 64px; height: 64px; font-size: 20px; margin-bottom: 22px; }
.advisor-card .person-name { font-size: 17px; }
.advisor-card .person-role { font-size: 10.5px; }
.advisor-card p.bio { font-size: 13.5px; }

/* ---------- Quote / pull ---------- */
.pull {
  border-left: 3px solid var(--brass);
  padding-left: 32px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--ink);
  line-height: 1.45;
  font-weight: 500;
}
.dark .pull { color: var(--paper); border-left-color: var(--brass-light); }

/* ---------- Stat band ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
}
.value-card {
  background: var(--paper);
  padding: 36px 24px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.value-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -16px rgba(11,27,43,0.18); z-index: 1; }
.value-card:hover::before { transform: scaleX(1); }
.value-card h4 { font-size: 19px; margin-bottom: 10px; }
.value-card h4 .drop-c {
  font-size: 46px;
  color: var(--brass);
  font-weight: 700;
  line-height: 0.7;
  display: inline-block;
  vertical-align: -8px;
  margin-right: 1px;
}
.value-card .value-tagline { font-size: 13.5px; color: var(--ink); font-weight: 600; margin-bottom: 8px; line-height: 1.45; min-height: 40px; }
.value-card p { font-size: 13.5px; color: var(--slate); }

/* ---------- Insights ---------- */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.insight-card {
  border-top: 2px solid var(--line);
  padding-top: 32px;
  transition: border-color 0.25s;
}
.insight-card:hover { border-top-color: var(--brass); }
.insight-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brass);
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
}
.insight-card h3 { font-size: 21px; margin-bottom: 12px; }
.insight-card p { color: var(--slate); font-size: 14.5px; margin-bottom: 18px; }
.insight-read {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.insight-card:hover .insight-read { color: var(--brass); }

.insight-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 50px;
  margin-bottom: 70px;
}
.insight-featured .visual {
  aspect-ratio: 4/3;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: #EFEDE6;
  border-top: 1px solid var(--line);
  padding: 88px 0;
  text-align: center;
}
.cta-band .wrap {
  max-width: 1040px;
  background: var(--ink);
  border-radius: 20px;
  padding: 56px 64px;
  box-shadow: 0 30px 70px -24px rgba(11,27,43,0.38);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 40px;
  text-align: left;
}
.cta-band h2 { grid-column: 1; grid-row: 1; color: var(--paper); margin-bottom: 0; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.01em; line-height: 1.28; }
.cta-band p { grid-column: 1; grid-row: 2; color: rgba(247,245,240,0.66); max-width: 440px; margin: 0; font-size: 15px; line-height: 1.68; }
.cta-actions { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-light { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.cta-band .btn-light:hover { background: transparent; color: var(--paper); border-color: rgba(247,245,240,0.5); }
@media (max-width: 760px) {
  .cta-band { padding: 64px 0; }
  .cta-band .wrap { grid-template-columns: 1fr; text-align: center; padding: 48px 32px; border-radius: 18px; justify-items: center; }
  .cta-band h2 { grid-column: 1; grid-row: 1; }
  .cta-band p { grid-column: 1; grid-row: 2; max-width: 100%; margin: 0 auto; }
  .cta-actions { grid-column: 1; grid-row: 3; justify-content: center; margin-top: 8px; }
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: var(--slate-light);
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(247,245,240,0.12);
}
footer.site .logo { color: var(--paper); margin-bottom: 18px; }
footer.site .footer-desc { font-size: 14px; max-width: 320px; line-height: 1.7; }
footer.site h5 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 20px;
}
footer.site ul li { margin-bottom: 12px; }
footer.site a { font-size: 14.5px; transition: color 0.2s; }
footer.site a:hover { color: var(--brass-light); }
.footer-contact-list li { font-size: 14.5px; line-height: 1.6; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.social-row { display: flex; gap: 18px; }

.header-social { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--graphite);
  transition: color 0.2s, background 0.2s;
}
.header-social a svg { width: 16px; height: 16px; fill: currentColor; }
.header-social a:hover { color: var(--brass); background: rgba(166,124,61,0.1); }
header.site .header-social a { color: rgba(247,245,240,0.86); }
header.site .header-social a:hover { color: var(--brass-light); background: rgba(247,245,240,0.08); }
@media (max-width: 900px) {
  .header-social { display: none; }
}

/* ---------- Page hero (service/about pages — smaller, with breadcrumb) ---------- */
.page-hero {
  padding: 70px 0 70px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--slate);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--brass); }

.diff-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 20px; }
.diff-item { display: flex; gap: 16px; align-items: flex-start; }
.diff-mark {
  width: 28px; height: 28px;
  border: 1px solid var(--brass);
  color: var(--brass);
  font-family: var(--mono);
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.diff-item h4 { font-size: 16px; margin-bottom: 6px; }
.diff-item p { font-size: 14px; color: var(--slate); }

.related-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.related-card {
  background: var(--paper);
  padding: 28px 24px;
  font-size: 14px;
}
.related-card.active { background: var(--ink); }
.related-card.active a { color: var(--brass-light); }
.related-card a { color: var(--graphite); font-weight: 600; }
.related-card a:hover { color: var(--brass); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

header.site.scrolled { box-shadow: 0 2px 24px rgba(11,27,43,0.07); }

.menu-toggle {
  width: 28px; height: 20px;
  position: relative;
  background: none; border: none; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.menu-toggle span {
  display: block; height: 2px; width: 100%; background: var(--ink);
  transition: all 0.25s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 768px) {
  nav.primary.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 73px; left: 0; right: 0; bottom: 0;
    background: var(--paper);
    padding: 20px var(--pad) 40px;
    align-items: flex-start;
    gap: 0;
    z-index: 99;
    overflow-y: auto;
  }
  nav.primary.open > ul { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  nav.primary.open > ul > li { width: 100%; border-bottom: 1px solid var(--line); }
  nav.primary.open a.nav-link { display: block; padding: 16px 0; }
  nav.primary.open .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0 0 10px 16px; display: block;
  }
  nav.primary.open .btn { margin-top: 24px; width: 100%; justify-content: center; }
}

/* ---------- Article page ---------- */
.article-hero { padding: 60px 0 50px; border-bottom: 1px solid var(--line); }
.article-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 70px var(--pad);
}
.article-body p { font-size: 17px; color: var(--graphite); margin-bottom: 26px; line-height: 1.8; }
.article-body h2 { font-size: 28px; margin: 50px 0 20px; }
.article-body h3 { font-size: 21px; margin: 36px 0 16px; }
.article-body .pull { margin: 44px 0; }
.article-body ul { margin: 0 0 26px 0; }
.article-body ul li {
  font-size: 16px; color: var(--graphite); line-height: 1.7;
  padding-left: 24px; position: relative; margin-bottom: 12px;
}
.article-body ul li::before {
  content: '—'; position: absolute; left: 0; color: var(--brass);
}
.article-author {
  display: flex; align-items: center; gap: 16px;
  padding-top: 36px; margin-top: 50px; border-top: 1px solid var(--line);
}
.article-author .avatar { width: 56px; height: 56px; font-size: 16px; border-radius: 50%; }
.article-author .a-name { font-weight: 600; color: var(--ink); font-size: 15px; }
.article-author .a-role { font-size: 13px; color: var(--slate); }

/* ---------- Contact page: inquiry form + info panel ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 44px;
}
.contact-form-card .form-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 8px;
}
.contact-form-card .form-sub {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 30px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--graphite);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field select { appearance: none; cursor: pointer; }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--slate-light); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brass);
  background: var(--white);
}
.contact-info-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-info-item:first-child { padding-top: 0; }
.ci-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 8px;
}
.ci-value {
  display: block;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}
.ci-value a:hover { color: var(--brass); }

/* =====================================================
   HOME PAGE — PREMIUM REDESIGN
   ===================================================== */

/* ---------- Section 2: Ledger — always 4-col horizontal ---------- */
.ledger-centered .ledger-item {
  text-align: center;
  padding: 44px 32px;
}
.ledger-centered .ledger-num {
  display: block;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.01em;
}
.ledger-centered .ledger-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.09em;
}

/* ---------- Section 3: What We Believe ---------- */
.belief-band {
  background: var(--graphite);
  padding: 108px 0;
}
.belief-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.belief-heading { padding-top: 6px; }
.belief-heading h2 {
  color: var(--paper);
  line-height: 1.15;
  margin-top: 16px;
  font-size: clamp(28px, 3.2vw, 44px);
}
.belief-heading .eyebrow { color: var(--brass-light); }
.belief-body {
  padding-top: 12px;
  border-top: 1px solid rgba(247,245,240,0.15);
}
.belief-body p {
  color: rgba(247,245,240,0.78);
  font-size: 16.5px;
  line-height: 1.78;
}
.belief-body p + p { margin-top: 22px; }
@media (max-width: 860px) {
  .belief-inner { grid-template-columns: 1fr; gap: 40px; }
  .belief-body { border-top: none; border-left: 3px solid rgba(247,245,240,0.2); padding: 0 0 0 24px; }
}

/* ---------- Section 4: Capabilities — premium card grid ---------- */
.cap-section { padding: 108px 0 120px; }
.cap-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 72px;
}
.cap-header h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.15; margin-top: 14px; }
.cap-header-right { padding-bottom: 6px; }
.cap-header-right p {
  font-size: 16.5px;
  color: var(--slate);
  line-height: 1.76;
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.cap-card {
  padding: 40px 32px 36px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--paper);
  transition: background 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.cap-card:last-child { border-right: none; }
.cap-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.cap-card:hover { background: #fff; box-shadow: 0 8px 32px rgba(11,27,43,0.08); }
.cap-card:hover::after { transform: scaleX(1); }
.cap-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--brass);
  margin-bottom: 24px;
  display: block;
}
.cap-card h4 {
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 16px;
  font-weight: 600;
}
.cap-card p {
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.7;
  flex: 1;
  min-height: 70px;
  margin: 0 0 28px;
}
.cap-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cap-link::after { content: '→'; font-family: var(--mono); }
.cap-card:hover .cap-link { color: var(--brass); }
@media (max-width: 1100px) {
  .cap-grid { grid-template-columns: repeat(3, 1fr); }
  .cap-card:nth-child(3) { border-right: none; }
  .cap-card:nth-child(4), .cap-card:nth-child(5) { border-top: 1px solid var(--line); }
  .cap-header { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 700px) {
  .cap-grid { grid-template-columns: 1fr; }
  .cap-card { border-right: none; border-bottom: 1px solid var(--line); }
  .cap-card:last-child { border-bottom: none; }
  .cap-card:nth-child(n) { border-right: none; border-top: none; }
}

/* ---------- Section 5: The Cosurge Advantage ---------- */
.advantage-section { padding: 108px 0; }
.accent-e {
  color: var(--brass-light);
  font-weight: 700;
}
.advantage-intro {
  max-width: 680px;
  color: rgba(247,245,240,0.74);
  font-size: 16.5px;
  line-height: 1.78;
  margin: 32px 0 64px;
}
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(247,245,240,0.08);
}
.advantage-card {
  background: rgba(11,27,43,0.95);
  padding: 52px 44px;
  position: relative;
  border-top: 2px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.advantage-card:hover {
  background: rgba(247,245,240,0.03);
  border-top-color: var(--brass);
}
.advantage-pillar {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--brass-light);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.advantage-card h4 {
  color: var(--paper);
  margin-bottom: 20px;
  font-size: 20px;
  line-height: 1.25;
}
.advantage-card p { color: rgba(247,245,240,0.68); font-size: 15px; line-height: 1.76; }
@media (max-width: 860px) {
  .advantage-grid { grid-template-columns: 1fr; }
}

/* ---------- Section 6: Founders — full-width elegant layout ---------- */
.founders-section {
  padding: 108px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.founders-intro { margin-bottom: 64px; }
.founders-intro h2 { font-size: clamp(28px, 3vw, 40px); margin-top: 14px; }
.founders-intro .lede {
  max-width: 680px;
  margin-top: 24px;
  font-size: 16.5px;
  color: var(--slate);
  line-height: 1.76;
}
.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
}
.founder-card {
  background: var(--paper);
  display: flex;
  gap: 0;
  flex-direction: column;
}
.founder-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink);
}
.founder-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
  filter: grayscale(100%) contrast(1.08) brightness(1.03);
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.founder-card:hover .founder-photo-wrap img { transform: scale(1.045); }
.founder-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(11,27,43,0.62) 0%, rgba(166,124,61,0.30) 55%, rgba(11,27,43,0.08) 100%);
  mix-blend-mode: multiply;
}
.founder-meta-text {
  padding: 32px 48px 0;
}
.founder-meta-text h4 { margin: 0 0 6px; font-size: 30px; font-weight: 700; color: var(--ink); font-family: var(--serif); letter-spacing: -0.01em; }
.founder-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}
.founder-bio { padding: 18px 48px 52px; font-size: 15px; color: var(--slate); line-height: 1.76; }
@media (max-width: 860px) {
  .founders-grid { grid-template-columns: 1fr; }
  .founder-photo-wrap { aspect-ratio: 16 / 11; }
  .founder-meta-text { padding: 28px 32px 0; }
  .founder-bio { padding: 16px 32px 40px; }
}

/* ---------- Section 7: Perspectives ---------- */
.perspectives-section { padding: 108px 0; }
.perspectives-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}
.perspectives-head h2 { font-size: clamp(26px, 2.8vw, 38px); margin-top: 12px; }
.perspectives-intro {
  color: var(--slate);
  font-size: 15.5px;
  line-height: 1.76;
  max-width: 700px;
  margin-bottom: 56px;
}

/* ---------- Footer tagline ---------- */
.footer-tagline {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  margin: 22px 0 4px;
}
.footer-tagline-sub {
  font-size: 12.5px;
  color: rgba(247,245,240,0.5);
  margin: 0 0 16px;
  font-style: italic;
  letter-spacing: 0.01em;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-side { border-left: none; border-top: 1px solid var(--ink); padding-left: 0; padding-top: 28px; }
  .ledger-row { grid-template-columns: repeat(2, 1fr); }
  .ledger-item:nth-child(2) { border-right: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .advisor-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .insight-grid { grid-template-columns: repeat(2, 1fr); }
  .related-services { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  nav.primary { display: none; }
  .menu-toggle { display: flex; }
  .service-row { grid-template-columns: 1fr; gap: 10px; text-align: left; }
  .service-row .si-link { justify-self: start; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  .person-card { grid-template-columns: 1fr; padding: 30px; }
  .person-card .avatar { width: 96px; height: 96px; margin-bottom: 8px; }
  .advisor-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value-card h4 { white-space: nowrap; }
  .insight-grid { grid-template-columns: 1fr; }
  .insight-featured { grid-template-columns: 1fr; padding: 30px; gap: 30px; }
  .related-services { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .diff-list { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 70px 0 50px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-card { padding: 30px; }
  .form-row { grid-template-columns: 1fr; }
}

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



#scroll-top-btn {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(247,245,240,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(11,27,43,0.22);
}
#scroll-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#scroll-top-btn:hover { background: var(--brass); }
#scroll-top-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) {
  #scroll-top-btn { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}
