/* ===========================================================
   Entelix Health - shared styles
   Design: spare, confident, institutional. Inspired by a16z
   restraint, not a copy. Near-monochrome, high contrast,
   generous negative space, one warm gold accent.
   No em dashes anywhere in content.
   =========================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #0E1116;
  --ink-2: #161A20;
  --navy: #1F3A5F;         /* brand Ink Navy (logo) */
  --paper: #FAF8F3;        /* brand Warm Paper */
  --gold: #C9A227;         /* brand Arete Gold (logo dot) */
  --gold-deep: #9c7b1e;    /* deeper gold for text/links on light */
  --muted-dark: #A8A29A;   /* muted text on dark */
  --muted-light: #6b6760;  /* muted text on light */
  --rule-light: rgba(14, 17, 22, 0.12);
  --rule-dark: rgba(247, 246, 243, 0.16);
  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 3px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; margin: 0; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); position: relative; }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* Prominent brand mark on the right of a page's lead section */
.sec-mark {
  position: absolute; top: clamp(1.5rem, 3vw, 2.75rem); right: var(--pad);
  width: clamp(96px, 13vw, 168px); height: auto; opacity: 0.95; pointer-events: none;
}
@media (max-width: 960px) { .sec-mark { display: none; } }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
}

/* Section theming */
.bg-paper { background: var(--paper); color: var(--ink); }
.bg-ink   { background: var(--ink);   color: var(--paper); }
.bg-ink .eyebrow { color: var(--muted-dark); }
.bg-paper .eyebrow { color: var(--gold-deep); }
.bg-ink a { color: var(--gold); }
.bg-ink .lede, .bg-ink p { color: rgba(247,246,243,0.86); }
.bg-paper .lede { color: var(--ink); }

.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55; max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.btn--outline { background: transparent; color: var(--gold); }
.btn--outline:hover { background: var(--gold); color: var(--ink); }
.bg-paper .btn--outline { color: var(--gold-deep); border-color: var(--gold-deep); }
.bg-paper .btn--outline:hover { background: var(--gold-deep); color: var(--paper); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,246,243,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule-light);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-size: 1.18rem; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 30px; width: auto; }

.nav__links { display: flex; align-items: center; gap: 1.15rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--sans); font-size: 0.88rem; font-weight: 500;
  color: var(--ink); letter-spacing: 0.01em; white-space: nowrap;
}
.nav__links a:hover { color: var(--gold-deep); text-decoration: none; }
.nav__links a.active { color: var(--gold-deep); }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.4rem; line-height: 1; color: var(--ink); padding: 0.3rem;
}

@media (max-width: 1024px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule-light);
    padding: 0.5rem var(--pad) 1.25rem;
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 0.7rem 0; width: 100%; border-bottom: 1px solid var(--rule-light); }
  .nav__links li:last-child a { border-bottom: 0; }
}

/* ---------- Hero (Home) ---------- */
.hero {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--paper);
  min-height: calc(100vh - 64px);
  display: flex; align-items: center;
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 12vh, 9rem) var(--pad); width: 100%; display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__text { min-width: 0; }
.hero__mark { justify-self: end; }
.hero__mark img { width: clamp(180px, 26vw, 360px); height: auto; opacity: 0.97; }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__mark { justify-self: start; order: -1; margin-bottom: 1rem; }
  .hero__mark img { width: clamp(120px, 30vw, 180px); }
}
.hero__eyebrow { font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-dark); margin: 0 0 1.8rem; font-weight: 600; }
.hero__line {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.08; letter-spacing: -0.02em;
  color: var(--paper); max-width: 16ch; margin: 0;
}
.hero__line .accent { color: var(--gold); }
.hero__support { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted-dark); max-width: 44ch; margin: 1.9rem 0 0; line-height: 1.5; }
.hero__cta { margin-top: 2.6rem; }

/* ---------- Generic page header ---------- */
.page-head { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; }
.display { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 20ch; }

/* ---------- Prose / manifesto ---------- */
.prose p { max-width: 60ch; margin: 0 0 1.3rem; }
.manifesto p { font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.5; max-width: 30ch; margin: 0 0 1.6rem; font-family: var(--serif); font-weight: 400; }
.manifesto .small { font-family: var(--sans); font-size: 1.05rem; line-height: 1.6; max-width: 56ch; color: rgba(247,246,243,0.82); }
.manifesto .kicker { font-family: var(--serif); font-style: italic; color: var(--gold); }

/* ---------- Capability list (Home, five capabilities) ---------- */
.caps { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.caps li { border-top: 1px solid var(--rule-light); padding: 1.4rem 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0.5rem 1.5rem; align-items: baseline; }
.bg-ink .caps li { border-top-color: var(--rule-dark); }
.caps li:last-child { border-bottom: 1px solid var(--rule-light); }
.bg-ink .caps li:last-child { border-bottom-color: var(--rule-dark); }
.caps__name { font-family: var(--serif); font-size: 1.45rem; }
.caps__name .gold { color: var(--gold-deep); }
.bg-ink .caps__name .gold { color: var(--gold); }
.caps__desc { font-size: 1rem; color: var(--muted-light); max-width: 52ch; }
.bg-ink .caps__desc { color: rgba(247,246,243,0.78); }
.caps__tag { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); white-space: nowrap; }
.bg-ink .caps__tag { color: var(--gold); }
@media (max-width: 640px) {
  .caps li { grid-template-columns: 1fr; }
  .caps__tag { order: -1; }
}

/* ---------- What We Do groups ---------- */
.wwd { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 4vw, 3.5rem); margin-top: 2.5rem; }
.wwd__group h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.wwd__services { list-style: none; margin: 0; padding: 0; }
.wwd__services li { padding: 0.55rem 0; border-bottom: 1px solid var(--rule-light); font-size: 0.98rem; color: var(--ink); }
.wwd__services li:last-child { border-bottom: 0; }
@media (max-width: 720px) { .wwd { grid-template-columns: 1fr; } }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.founder__name { font-size: clamp(2rem, 4vw, 2.9rem); }
.founder__role { font-family: var(--serif); font-style: italic; color: var(--gold-deep); font-size: 1.2rem; margin-top: 0.6rem; }
.founder__photo { width: 100%; aspect-ratio: 4/5; background: var(--ink); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--muted-dark); font-family: var(--serif); font-size: 1rem; overflow: hidden; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } .founder__photo { max-width: 340px; } }

/* ---------- Insights themes ---------- */
.themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 2.5rem; border-top: 1px solid var(--rule-light); }
.themes a, .themes div { padding: 1.5rem 0; border-bottom: 1px solid var(--rule-light); }
.theme { display: block; }
.theme:hover { text-decoration: none; }
.theme__title { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
.theme:hover .theme__title { color: var(--gold-deep); }
.theme__meta { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-light); margin-top: 0.4rem; }
.themes > * { padding-right: clamp(1rem, 4vw, 3rem); }
.themes > *:nth-child(odd) { border-right: 1px solid var(--rule-light); padding-left: 0; }
.themes > *:nth-child(even) { padding-left: clamp(1rem, 4vw, 3rem); }
@media (max-width: 640px) {
  .themes { grid-template-columns: 1fr; }
  .themes > *:nth-child(odd) { border-right: 0; }
  .themes > *:nth-child(even) { padding-left: 0; }
}

/* ---------- Capability hub (What We Do) ---------- */
.cap-hub { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 3rem; }
.cap-card {
  display: block; padding: 2.3rem 2rem 2rem; position: relative;
  border: 1px solid var(--rule-dark); border-radius: var(--radius);
  background: transparent; transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.cap-card:hover { border-color: var(--gold); transform: translateY(-3px); text-decoration: none; background: rgba(201,162,39,0.04); }
.cap-card__num { font-family: var(--serif); font-size: 0.95rem; color: var(--gold); letter-spacing: 0.04em; }
.cap-card__tag {
  position: absolute; top: 2.3rem; right: 2rem;
  font-family: var(--sans); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.cap-card__tag--soon { color: var(--muted-dark); }
.cap-card__title { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--paper); margin: 0.7rem 0 0.6rem; line-height: 1.1; }
.cap-card__desc { color: rgba(247,246,243,0.8); font-size: 1.02rem; line-height: 1.55; max-width: 40ch; margin: 0; }
.cap-card__more { display: inline-block; margin-top: 1.5rem; font-family: var(--sans); font-size: 0.9rem; font-weight: 600; color: var(--gold); }
.cap-card:hover .cap-card__more { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .cap-hub { grid-template-columns: 1fr; } .cap-card__tag { position: static; display: block; margin-bottom: 0.3rem; } }

/* ---------- Coming soon panel ---------- */
.soon-panel { border: 1px solid var(--rule-light); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); margin-top: 2.5rem; max-width: 60ch; }
.soon-panel .tag { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.soon-panel h2 { font-size: 1.5rem; margin: 0.6rem 0 0.8rem; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); margin-top: 3rem; }
.two-up h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 0 0 0.6rem; }
.two-up .lbl { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.two-up p { color: var(--muted-light); max-width: 42ch; }
@media (max-width: 720px) { .two-up { grid-template-columns: 1fr; } }

/* ---------- Convene ---------- */
.convene-pts { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.convene-pts li { border-top: 1px solid var(--rule-dark); padding-top: 1.1rem; font-size: 1rem; color: rgba(247,246,243,0.85); }
.convene-pts .n { display: block; font-family: var(--serif); color: var(--gold); font-size: 1.2rem; margin-bottom: 0.4rem; }
@media (max-width: 720px) { .convene-pts { grid-template-columns: 1fr; } }

/* ---------- Contact form ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-light); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--rule-light); border-radius: var(--radius);
  padding: 0.8rem 0.9rem; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,73,0.15); }
.field textarea { min-height: 140px; resize: vertical; }
.form__note { font-size: 0.9rem; color: var(--muted-light); margin-top: 0.4rem; }
.form__confirm {
  display: none; padding: 1.2rem 1.3rem; border: 1px solid var(--gold);
  border-left: 3px solid var(--gold); border-radius: var(--radius);
  background: rgba(176,141,73,0.07); color: var(--ink); font-size: 1.02rem;
}
.form__confirm.show { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--muted-dark); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer__top { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer__brand { font-family: var(--serif); font-size: 1.2rem; color: var(--paper); }
.footer__nav { list-style: none; display: flex; flex-wrap: wrap; gap: 1.3rem; margin: 0; padding: 0; }
.footer__nav a { color: var(--muted-dark); font-size: 0.9rem; }
.footer__nav a:hover { color: var(--gold); text-decoration: none; }
.footer__rule { height: 1px; background: var(--rule-dark); margin: 2.2rem 0 1.5rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; justify-content: space-between; font-size: 0.8rem; color: var(--muted-dark); }
.footer__confidential { max-width: 70ch; line-height: 1.6; }

/* ---------- Utility ---------- */
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
