/* JC Companies — blue-chip, Thrive-inspired.
   Ink navy + white. Serif headlines (system serif stack only — no webfont
   dependency), system sans for body copy. Generous whitespace, no gimmicks. */

:root {
  --navy: #0b1f3a;
  --navy-2: #12294a;
  --navy-3: #1a3a5f;
  --ink: #14213a;
  --body: #333d4d;
  --muted: #5b6678;
  --line: #dfe3e8;
  --line-soft: #eceff2;
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --accent: #1d4e89;
  --accent-soft: #e8eff7;
  --gold: #c9a86a;
  --gold-deep: #a8853f;
  --serif: Georgia, 'Times New Roman', 'Nimbus Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.75rem, 7.2vw, 5.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; line-height: 1.3; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.wrap--narrow { max-width: 820px; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand strong { font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }
/* The current page, marked with aria-current="page" in the HTML. */
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.nav-cta {
  border: 1px solid var(--navy);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  color: var(--navy);
  font-size: 0.95rem;
}
.nav-cta:hover { background: var(--navy); color: #fff; text-decoration: none; }

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  color: #fff;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}

.hero h1 { color: #fff; max-width: 16ch; margin-bottom: 0.5em; }
.hero__lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.5;
  color: #d7dee8;
  max-width: var(--measure);
  margin-bottom: 2rem;
}
.hero__meta {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.5rem;
  font-size: 0.95rem;
  color: #aeb9c8;
}
.hero__meta strong { display: block; color: #fff; font-weight: 600; font-size: 1rem; }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2 { color: #fff; }
.section--navy p { color: #c9d3df; }

.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section--navy .kicker { color: #8fb4dd; }

.section__intro { max-width: var(--measure); font-size: 1.15rem; color: var(--muted); }
.section--navy .section__intro { color: #c9d3df; }

/* ---------- Focus grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2.5rem;
}
.grid__item { background: var(--bg); padding: 1.75rem 1.5rem 2rem; }
.grid__item h3 { margin-bottom: 0.45em; }
.grid__item p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0; }
.grid__num {
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ---------- Backing stack ---------- */

.stack { margin-top: 2.5rem; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.stack__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  align-items: baseline;
}
.stack__row h3 { color: #fff; margin: 0; }
.stack__row p { color: #c9d3df; margin: 0; max-width: var(--measure); }

/* ---------- Firm / contact ---------- */

.firm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.firm-grid h3 { margin-bottom: 0.5em; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 0.35rem 0; border-bottom: 1px solid var(--line-soft); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list span { display: block; font-size: 0.85rem; color: var(--muted); }

/* ---------- Footer / legal ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.site-footer__main {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}
.site-footer__main .brand { font-size: 1.2rem; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: var(--ink); font-size: 0.95rem; }
.footer-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.reg-strip {
  background: var(--navy);
  color: #c9d3df;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.65rem 0;
}
.reg-strip strong { color: #fff; font-weight: 600; }

.legal {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}
.legal p { margin-bottom: 0.75em; }
.legal h2 {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

/* ---------- Auth pages ---------- */

.auth { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem); }
.auth__card {
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--bg);
}
.auth__card h1 { font-size: 2rem; margin-bottom: 0.4em; }
.auth__card > p { color: var(--muted); }

.form { margin-top: 1.75rem; }
.form__field { margin-bottom: 1.25rem; }
.form__field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.form__field input,
.form__field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  border: 1px solid #b9c1cc;
  border-radius: 2px;
  background: #fff;
}
.form__field textarea { min-height: 140px; resize: vertical; }
.form__field input:focus,
.form__field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }

.btn {
  display: inline-block;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--navy);
  padding: 0.8rem 1.75rem;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--navy-2); text-decoration: none; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }

.form-error {
  display: none;
  border: 1px solid #b3261e;
  background: #fdecea;
  color: #7a1a15;
  padding: 0.8rem 1rem;
  border-radius: 2px;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.form-error.is-visible { display: block; }

.form-note {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 0.9rem 1rem;
  border-radius: 2px;
  font-size: 0.95rem;
  margin-top: 1.25rem;
}
.form-note.is-visible { display: block; }

.auth__alt { margin-top: 1.5rem; font-size: 0.95rem; color: var(--muted); text-align: center; }

/* ---------- Portal ---------- */

.portal-head {
  background: var(--navy);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.portal-head h1 { color: #fff; font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 0.35em; }
.portal-head p { color: #c9d3df; max-width: var(--measure); }
.portal-head__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.portal-head .btn--ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.portal-head .btn--ghost:hover { background: #fff; color: var(--navy); }

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
  background: #f5c542;
  color: #3d2f00;
}

.deal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 2.5rem 0 0;
}
.deal__cell { background: var(--bg); padding: 1.5rem; }
.deal__cell span { display: block; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; }
.deal__cell strong { font-family: var(--serif); font-size: 1.75rem; font-weight: 400; color: var(--ink); }

.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; }
.portal-grid h2 { font-size: 1.6rem; }

.update { border-top: 1px solid var(--line); padding: 1.25rem 0; }
.update:first-of-type { border-top: 0; padding-top: 0.25rem; }
.update time { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.3rem; }
.update p { margin: 0; }

.doc { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; border-top: 1px solid var(--line); padding: 1rem 0; }
.doc:first-of-type { border-top: 0; }
.doc strong { font-weight: 600; color: var(--ink); }
.doc span { font-size: 0.88rem; color: var(--muted); white-space: nowrap; }

/* ---------- Model portfolio (portal pages) ---------- */
.model-note {
  color: var(--muted);
  font-size: 0.95rem;
  border-left: 3px solid var(--accent);
  padding-left: 0.9rem;
  max-width: var(--measure);
  margin-bottom: 0.5rem;
}

.portfolio-entry { border-top: 1px solid var(--line); padding: 1.5rem 0; }
.portfolio-entry:first-of-type { border-top: 0; padding-top: 0.25rem; }
.portfolio-entry__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.portfolio-entry__head h3 { margin: 0; }
.portfolio-entry__desc { color: var(--muted); margin: 0.5rem 0 0; }
.portfolio-figures { margin-top: 1rem; }

.portal-loading, .portal-error { padding: 4rem 0; text-align: center; color: var(--muted); }
.portal-error { color: #7a1a15; }

/* ---------- Founder portal: financial projections ---------- */
.proj-chart { margin: 1.5rem 0 2rem; }
.proj-chart svg { display: block; width: 100%; height: auto; }
.proj-bars { margin: 1rem 0 0.5rem; }
.proj-bars svg { display: block; width: 100%; height: auto; }
.proj-grid { stroke: var(--line); stroke-width: 1; }
.proj-baseline { stroke: var(--muted); stroke-width: 1; }
.proj-axis { font-family: var(--sans); font-size: 12px; fill: var(--muted); }
.proj-value { font-family: var(--sans); font-size: 12px; font-weight: 600; fill: var(--ink); }
#projections-section h3 { font-size: 1.35rem; margin-top: 2rem; }
#projections-section h3:first-of-type { margin-top: 1.5rem; }
#proj-table td, #proj-table th { text-align: right; white-space: nowrap; }
#proj-table th:first-child, #proj-table td:first-child { text-align: left; white-space: normal; }
#proj-assumptions { margin-top: 1rem; }
#proj-assumptions li { margin-bottom: 0.5rem; }
@media (max-width: 820px) {
  .portal-grid { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.5rem; }
}

/* ---------- Sub-pages ---------- */

/* A smaller hero for content pages (the homepage keeps the full .hero). */
.page-hero { padding: 3.5rem 0 2rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.page-hero .hero__lede { font-size: 1.25rem; color: var(--muted); }

/* Portfolio company entries. */
.company { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.company:first-of-type { border-top: 0; padding-top: 0.5rem; }
.company__meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.company__meta strong { color: var(--ink); }
.company h3 { margin-bottom: 0.5em; }
.company p { max-width: var(--measure); }
.company h4 { margin-top: 1.25rem; }

/* Co-founder profiles (Firm page). */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2rem; }
.person h3 { margin-bottom: 0.25em; }
.person__role { color: var(--accent); font-family: var(--serif); margin-bottom: 0.75rem; }

/* Contact page. */
.contact-form { margin-top: 1.75rem; max-width: 640px; }
.contact-form .form__field { margin-bottom: 1.25rem; }

/* ---------- Confirmation page ---------- */

.confirm-mark { margin: 1.5rem 0 1rem; }
.confirm-mark svg { display: block; }
/* NOTE: no `display` is set on .confirm-note — it uses the `hidden`
   attribute until the confirmation script shows it, and author
   `display` would override `hidden`. */
.confirm-note { color: var(--muted); }
.confirm-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 2rem; }
.confirm-instagram { margin-top: 1.25rem; color: var(--muted); }
.confirm-back { margin-top: 1.5rem; }

/* ---------- Robot arm ---------- */

.arm-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; margin-top: 2.5rem; }
.arm-layout--solo { grid-template-columns: 1fr; } /* WebGL unavailable: chat hidden, fallback fills the section */

.arm-stage { margin-top: 0; }

/* NOTE: no `display` is set here — the canvas uses the `hidden`
   attribute until the WebGL script shows it, and author `display`
   would override `hidden`. */
#robot-arm {
  width: 100%;
  height: auto;
  vertical-align: top;
  touch-action: none;
  cursor: grab;
}
#robot-arm:active { cursor: grabbing; }

.arm-fallback svg { display: block; width: 100%; height: auto; }

.arm-hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

/* Chat box that drives the arm (AI-native robot control demo). */
.arm-chat {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 1.25rem;
}
.arm-chat h3 { margin-bottom: 0.25rem; }
.arm-chat__status { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.45rem; }
.arm-chat__status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #b0b6bd; flex: none; }
.arm-chat__status--live { color: var(--ink); }
.arm-chat__status--live::before { background: #1e9e5a; }
.arm-chat__note { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.arm-chat__log {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.arm-chat__msg {
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.45;
}
.arm-chat__msg--user { background: var(--bg-soft); align-self: flex-end; text-align: right; }
.arm-chat__msg--arm { background: var(--navy); color: #fff; align-self: flex-start; }
.arm-chat__form { display: flex; gap: 0.5rem; }
.arm-chat__form input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  border: 1px solid #b9c1cc;
  border-radius: 2px;
  background: #fff;
}
.arm-chat__form input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.arm-chat__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.arm-chat__chips button {
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}
.arm-chat__chips button:hover { border-color: var(--ink); }

/* ---------- Quote moment ---------- */
/* A full-bleed dark passage: big serif type, generous spacing, and
   the attribution. The quote is verbatim from Zero to One (2014);
   it is attributed only — no claim of any relationship with JC. */
.quote { background: #05080f; color: #f2f4f6; padding: clamp(4rem, 10vw, 7rem) 0; }
.quote__mark { font-family: var(--serif); font-size: clamp(4rem, 10vw, 7rem); line-height: 0.5; color: #7fa8d6; margin: 0 0 2.5rem; }
.quote__text { margin: 0; }
.quote__text p { font-family: var(--serif); font-size: clamp(1.45rem, 2.6vw, 2.05rem); line-height: 1.55; color: #f2f4f6; margin: 0; }
.quote__attribution { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #26344a; font-size: 1rem; letter-spacing: 0.02em; color: #9aa7b8; }
.quote__attribution span { color: #fff; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.9rem; }

/* ---------- Events ---------- */

.events { margin-top: 2.5rem; }

.event { border-top: 1px solid var(--line); padding: 2rem 0; }
.event:first-child { border-top: 0; padding-top: 0.25rem; }
.event__date {
  font-family: var(--serif);
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.event h3 { margin-bottom: 0.4em; }
.event__desc { color: var(--muted); max-width: var(--measure); }

.event-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0 1.25rem;
  align-items: end;
  margin-top: 1.5rem;
  max-width: 820px;
}
.event-form .form__field { margin-bottom: 0; }
.event-form .btn { white-space: nowrap; }
.event-form .form-error,
.event-form .form-note { grid-column: 1 / -1; margin: 1rem 0 0; }

/* ---------- Newsletter (navy section) ---------- */

.section--navy .form__field label { color: #fff; }

/* ---------- Intranet (JC Inspire expo workspace) ---------- */

.intranet-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.intranet-head__title {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--navy);
}
.intranet-head__user {
  font-size: 0.9rem;
  color: var(--muted);
}
.btn--small { padding: 0.45rem 0.9rem; font-size: 0.9rem; }

.intranet-note {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  color: #fff;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  margin-top: 1.5rem;
}
.intranet-count { color: var(--muted); font-size: 0.95rem; }

/* Stat grid (intranet overview). */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2rem;
}
.stat { background: var(--bg); padding: 1.5rem 1.25rem; }
.stat__value {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}
.stat__label { display: block; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }

/* Filter bar (intranet lists). */
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0 1.25rem;
  align-items: end;
  margin-top: 1.75rem;
  max-width: 960px;
}
.filters .form__field { margin-bottom: 0; }
.filters select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  border: 1px solid #b9c1cc;
  border-radius: 2px;
  background: #fff;
}

/* Data tables (intranet call list + invitees). */
.table-scroll { overflow-x: auto; margin-top: 1.25rem; border: 1px solid var(--line); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.45;
  min-width: 960px;
}
.data-table th,
.data-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line-soft);
}
.data-table thead th {
  background: var(--bg-soft);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table__num { color: var(--muted); white-space: nowrap; }
.data-table__detail { color: var(--muted); max-width: 340px; }
.data-table select,
.data-table input[type="text"] {
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  border: 1px solid #b9c1cc;
  border-radius: 2px;
  background: #fff;
  padding: 0.45rem 0.6rem;
  max-width: 220px;
}
.data-table input[type="text"] { width: 200px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  .stack__row { grid-template-columns: 1fr; gap: 0.4rem; }
  .firm-grid, .portal-grid { grid-template-columns: 1fr; gap: 2rem; }
  .deal { grid-template-columns: 1fr; }
  .site-nav { gap: 1rem; }
  .site-header__inner { flex-wrap: wrap; }
  .event-form { grid-template-columns: 1fr; gap: 1rem 0; }
  .event-form .btn { justify-self: start; }
  .people { grid-template-columns: 1fr; }
  .arm-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr; gap: 1rem 0; }
}

/* Portal: contact heading spacing (was an inline style; moved here so
   the Content-Security-Policy can forbid inline styles). */
.portal-contact-heading {
  margin-top: 2.5rem;
}

/* ---------- Generated pages (build_pages.py) ---------- */
/* Grouped footer navigation. */
.site-footer__main { align-items: flex-start; }
.footer-nav { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer-nav__group { display: flex; flex-direction: column; gap: 0.45rem; min-width: 8.5rem; }
.footer-nav__group h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.2rem;
}

/* Scroll reveals: progressive enhancement — content is visible by
   default. reveal.js adds a `js` class to <html> and an
   .is-visible class when an element enters the viewport. If JS
   fails, the `js` class is never added and nothing is hidden.
   Respects prefers-reduced-motion. */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* Card grid (insights index, homepage More from JC strip). */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2.5rem;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding: 1.75rem 1.5rem 2rem;
  color: var(--body);
  text-decoration: none;
}
.card:hover { text-decoration: none; background: var(--bg-soft); }
.card h2, .card h3 { margin-bottom: 0.45em; }
.card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 1rem; }
.card span { margin-top: auto; font-weight: 600; color: var(--accent); font-size: 0.95rem; }

/* FAQ + glossary definition lists. */
.faq__item, .glossary > div { border-top: 1px solid var(--line); padding: 1.5rem 0; }
.faq__item:first-child, .glossary > div:first-child { border-top: 0; padding-top: 0.25rem; }
.faq dt, .glossary dt { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); margin-bottom: 0.5rem; }
.faq dd, .glossary dd { margin: 0; max-width: var(--measure); }

/* Principles (numbered manifesto). */
.principles { list-style: none; margin: 0; padding: 0; counter-reset: principle; }
.principles li { counter-increment: principle; border-top: 1px solid var(--line); padding: 2rem 0; }
.principles li:first-child { border-top: 0; padding-top: 0.25rem; }
.principles h2 { font-size: 1.6rem; }
.principles h2::before {
  content: counter(principle, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Founder journey (numbered steps). */
.journey { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.journey li { counter-increment: step; border-top: 1px solid var(--line); padding: 2rem 0; }
.journey li:first-child { border-top: 0; padding-top: 0.25rem; }
.journey h2 { font-size: 1.6rem; }
.journey h2::before {
  content: "Step " counter(step);
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Timeline. */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { border-top: 1px solid var(--line); padding: 2rem 0; }
.timeline li:first-child { border-top: 0; padding-top: 0.25rem; }
.timeline__date { font-family: var(--serif); color: var(--accent); margin-bottom: 0.4rem; }
.timeline h2 { font-size: 1.6rem; }

/* Bulletin items. */
.bulletin-item { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.bulletin-item:first-of-type { border-top: 0; padding-top: 0.25rem; }
.bulletin-item__source { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.5rem; }
.bulletin-item h2 { font-size: 1.6rem; }

/* Company sub-nav (company detail pages). */
.company-nav { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; }
.company-nav p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.company-nav a { display: block; padding: 0.3rem 0; }
.company-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* Fund model calculator. */
.fund-model { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2rem; }
.fund-model__results { background: var(--bg-soft); border: 1px solid var(--line); padding: 1.75rem; }
.fund-model__results h2 { font-size: 1.6rem; }
.fund-model__table { margin: 0; }
.fund-model__table > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
}
.fund-model__table > div:first-child { border-top: 0; }
.fund-model__table dt { color: var(--muted); }
.fund-model__table dd { margin: 0; font-weight: 600; color: var(--ink); white-space: nowrap; }
.fund-model__foot { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }

/* Model portfolio growth chart (index only — no currency). */
.chart { margin-top: 2.5rem; }
.chart svg { display: block; width: 100%; height: auto; }
.chart__line { fill: none; stroke: var(--accent); stroke-width: 3; }
.chart__area { fill: var(--accent-soft); }
.chart__dot { fill: var(--accent); }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__label { font-family: var(--sans); font-size: 12px; fill: var(--muted); }
.chart__value { font-family: var(--sans); font-size: 12px; font-weight: 600; fill: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .js .chart__line { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.6s ease; }
  .js .reveal.is-visible .chart__line { stroke-dashoffset: 0; }
}

@media (max-width: 820px) {
  .card-grid { grid-template-columns: 1fr; }
  .fund-model { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-nav { gap: 1.75rem; }
}

/* ==========================================================================
   Mag7-grade public chrome (28 Nov 2026 redesign)
   Sticky header, mobile navigation, site search, breadcrumbs, cookie
   notice, footer bottom bar, hero actions, card polish, print.
   No external fonts or images: system serif + system sans only, so the
   page stays fast and self-contained under the site's CSP.
   ========================================================================== */

/* Skip link: visible only on keyboard focus. */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; color: #fff; text-decoration: none; }

/* Sticky header with a soft shadow once scrolled. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 rgba(11, 31, 58, 0);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(11, 31, 58, 0.08);
}
.site-header__inner { padding-top: 0.9rem; padding-bottom: 0.9rem; }

/* Brand: gold rule under the wordmark, like a masthead. */
.brand { position: relative; padding-bottom: 0.15rem; }
.brand::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 2.25rem;
  height: 2px;
  background: var(--gold);
}

/* Header actions: search + mobile menu. */
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-search,
.nav-toggle {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}
.nav-search:hover,
.nav-toggle:hover { border-color: var(--line); background: var(--bg-soft); }
.nav-search__key {
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.05rem 0.35rem;
  margin-left: 0.35rem;
}
.nav-toggle { display: none; }
.nav-toggle__bars {
  display: inline-block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink);
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Breadcrumbs on sub-pages. */
.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden="true"] { margin: 0 0.5rem; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Hero actions + eyebrow. */
.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.hero__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 2rem 0 2.5rem; }
.hero .btn--light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}
.hero .btn--light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero .btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.hero .btn--gold:hover { background: #d6b877; border-color: #d6b877; }

/* Buttons: restrained, one gold variant for the primary action. */
.btn { transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }

/* Cards: quiet hover, gold top edge on the homepage strip. */
.card { transition: background 0.15s ease, box-shadow 0.15s ease; }
.card:hover { box-shadow: 0 10px 28px rgba(11, 31, 58, 0.1); }
.card--gold { border-top: 3px solid var(--gold); }
.grid__item { transition: background 0.15s ease; }
.grid__item:hover { background: var(--bg-soft); }

/* Section rhythm: a thin gold rule under section kickers on soft sections. */
.section { position: relative; }
.section .kicker::after {
  content: '';
  display: block;
  width: 2.25rem;
  height: 2px;
  background: var(--gold);
  margin-top: 0.6rem;
}

/* Footer bottom bar: copyright, social, back to top. */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--ink); }
.footer-bottom__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* Site search overlay. */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 31, 58, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1rem 1rem;
}
.search-overlay[hidden] { display: none; }
.search-panel {
  width: min(620px, 100%);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 24px 64px rgba(11, 31, 58, 0.35);
  padding: 1.25rem;
}
.search-panel__row { display: flex; gap: 0.75rem; align-items: center; }
.search-panel__row input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  border: 1px solid #b9c1cc;
  border-radius: 2px;
}
.search-panel__row input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.search-close {
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}
.search-results { margin-top: 1rem; max-height: 55vh; overflow-y: auto; }
.search-result {
  display: block;
  padding: 0.85rem 0.75rem;
  border-top: 1px solid var(--line-soft);
  color: var(--body);
  text-decoration: none;
}
.search-result:first-child { border-top: 0; }
.search-result:hover { background: var(--bg-soft); text-decoration: none; }
.search-result__group {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.search-result__title { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.search-result__desc { display: block; font-size: 0.92rem; color: var(--muted); }
.search-empty { color: var(--muted); padding: 0.85rem 0.75rem; margin: 0; }
.search-hint { font-size: 0.85rem; color: var(--muted); margin: 0.75rem 0 0; }
body.search-open { overflow: hidden; }

/* Cookie notice: fixed, restrained, dismissible. */
.cookie-notice {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 720px;
  margin: 0 auto;
  background: var(--navy);
  color: #d7dee8;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(11, 31, 58, 0.35);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; flex: 1; min-width: 16rem; font-size: 0.92rem; }
.cookie-notice a { color: #fff; text-decoration: underline; }
.cookie-notice .btn--gold { padding: 0.55rem 1.25rem; }

/* 404 page. */
.error-code {
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.error-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }

/* Tables: sticky header on long tables, zebra-free, Mag7 restraint. */
.data-table thead th { position: sticky; top: 0; }

/* Print: header, footer chrome and interactive widgets stay out. */
@media print {
  .site-header, .site-footer, .cookie-notice, .search-overlay, .hero__actions { display: none; }
  body { font-size: 11pt; }
  a { color: var(--ink); }
}

/* Mobile: the nav becomes a dropdown panel under the sticky header. */
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .site-header__inner { flex-wrap: nowrap; }
  .header-actions { margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(11, 31, 58, 0.12);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
  }
  .site-nav.site-nav--open { display: flex; }
  .site-nav a { padding: 0.7rem 0; border-top: 1px solid var(--line-soft); font-size: 1.05rem; }
  .site-nav a:first-child { border-top: 0; }
  .site-nav .nav-cta { margin-top: 0.75rem; text-align: center; }
  .nav-search__key { display: none; }
  .cookie-notice { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
