/* PHP/HTML portability layer for FMC */
:root {
  color-scheme: dark;
}

[data-theme="light"] {
  color-scheme: light;
  --lg-bg: #f4f2ea;
  --lg-bg-deep: #ebe8df;
  --lg-surface: #ffffff;
  --lg-surface-2: #e8e6de;
  --lg-text: #151714;
  --lg-text-soft: rgba(21,23,20,.68);
  --lg-text-faint: rgba(21,23,20,.46);
  --lg-glass: rgba(255,255,255,.7);
  --lg-glass-strong: rgba(255,255,255,.86);
  --lg-border: rgba(21,23,20,.15);
  --lg-shadow: 0 30px 90px rgba(7,63,52,.12);
  --lg-shadow-soft: 0 18px 55px rgba(7,63,52,.1);
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at 14% 8%, rgba(200,166,83,.12), transparent 24%),
    radial-gradient(circle at 88% 26%, rgba(7,63,52,.08), transparent 27%),
    var(--lg-bg-deep);
}

[data-theme="light"] .site-header.fmc-header .fmc-header-shell {
  color: #151714;
  background: rgba(244,242,234,.78);
}

[data-theme="light"] .fmc-brand strong,
[data-theme="light"] .fmc-primary-nav a,
[data-theme="light"] .liquid-header-login {
  color: #151714;
}

[hidden] { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.site-flash {
  position: fixed;
  z-index: 900;
  top: 96px;
  left: 50%;
  width: min(620px, calc(100% - 32px));
  padding: 14px 18px;
  border: 1px solid var(--lg-border);
  border-radius: 16px;
  color: var(--lg-text);
  background: rgba(4,17,13,.94);
  box-shadow: var(--lg-shadow-soft);
  transform: translateX(-50%);
}
.site-flash.error { border-color: rgba(217,99,89,.65); }

.php-page-hero {
  min-height: 68vh;
  display: grid;
  align-items: end;
  padding: clamp(150px, 20vw, 260px) 0 clamp(80px, 10vw, 140px);
  background:
    radial-gradient(circle at 80% 28%, rgba(216,180,90,.15), transparent 22%),
    linear-gradient(135deg, #061b14, #03100c);
}
.php-page-hero h1 {
  max-width: 1100px;
  font-family: inherit;
  font-size: clamp(3.8rem, 9vw, 8.5rem);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .9;
}
.php-page-hero p:last-child {
  max-width: 760px;
  color: var(--lg-text-soft);
}

.php-content-grid-section {
  padding: clamp(70px, 10vw, 150px) 0;
  background: var(--lg-bg);
}
.php-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.php-content-card {
  min-height: 320px;
  padding: clamp(28px, 4vw, 60px);
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius-card);
  background:
    linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.035)),
    var(--lg-glass);
  box-shadow: var(--lg-shadow-soft);
  backdrop-filter: blur(22px);
}
.php-content-card > span {
  color: var(--lg-gold-hi);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.php-content-card h2 {
  margin: 70px 0 18px;
  color: var(--lg-text);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1;
}
.php-content-card p { color: var(--lg-text-soft); }

.php-page-cards,
.php-blog-index { padding-top: clamp(80px, 10vw, 150px); }
.php-blog-index .liquid-insight-card h2 {
  color: var(--lg-text);
  font-size: clamp(2rem, 3vw, 3.2rem);
  letter-spacing: -.045em;
  line-height: 1;
}

.php-founder {
  min-height: 760px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #061b14;
}
.php-founder-media { min-height: 700px; overflow: hidden; }
.php-founder-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(.75) contrast(1.05);
  transition: filter .7s ease, transform 1s cubic-bezier(.2,.8,.2,1);
}
.php-founder-media:hover img { filter: saturate(1); transform: scale(1.015); }
.php-founder-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(50px, 8vw, 130px);
}
.php-founder-copy h2 {
  margin: 8px 0 24px;
  color: var(--lg-text);
  font-size: clamp(3rem, 6vw, 7rem);
  font-weight: 500;
  letter-spacing: -.07em;
  line-height: .9;
}
.php-founder-copy p:not(.eyebrow) { max-width: 620px; color: var(--lg-text-soft); }
.php-founder-inner { border-top: 1px solid var(--lg-border); }

.php-final-cta {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 26px;
  padding: clamp(80px, 10vw, 150px) max(28px, calc((100vw - 1240px) / 2));
  background:
    radial-gradient(circle at 72% 26%, rgba(216,180,90,.15), transparent 25%),
    #020806;
}
.php-final-cta h2 {
  max-width: 1100px;
  margin: 0;
  color: var(--lg-text);
  font-size: clamp(4rem, 9vw, 10rem);
  font-weight: 500;
  letter-spacing: -.08em;
  line-height: .82;
}
.php-final-cta small { max-width: 720px; color: var(--lg-text-faint); }
.php-final-cta-compact { min-height: 55vh; }
.php-final-cta-compact h2 { font-size: clamp(3.5rem, 7vw, 8rem); }

.legal-content { color: var(--lg-text); }
.legal-content h2 { color: var(--lg-text); }
.legal-content p,
.legal-content li { color: var(--lg-text-soft); }
.legal-content blockquote { color: var(--lg-gold-hi); }

.php-contact-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, .7fr);
  gap: clamp(40px, 8vw, 120px);
  padding: clamp(80px, 10vw, 150px) max(28px, calc((100vw - 1240px) / 2));
  background: var(--lg-bg);
}
.php-contact-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.php-contact-copy h2 {
  margin: 0 0 40px;
  color: var(--lg-text);
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 500;
  letter-spacing: -.07em;
  line-height: .9;
}
.php-contact-copy a {
  width: 100%;
  padding: 20px 0;
  border-bottom: 1px solid var(--lg-border);
  color: var(--lg-text);
}

.php-form,
.glass-form {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius-card);
  background: var(--lg-glass);
  box-shadow: var(--lg-shadow-soft);
  backdrop-filter: blur(28px);
}
.php-form label,
.member-auth-card label,
.member-connect-card label,
.journal-dialog label {
  display: grid;
  gap: 8px;
  color: var(--lg-text-soft);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.php-form input,
.php-form textarea,
.member-auth-card input,
.member-connect-card input,
.journal-dialog input,
.journal-dialog select,
.journal-dialog textarea,
.journal-filters input,
.journal-filters select {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid var(--lg-border);
  border-radius: 14px;
  color: var(--lg-text);
  background: rgba(255,255,255,.055);
  outline: none;
}
.php-form textarea,
.journal-dialog textarea { min-height: 100px; resize: vertical; }
.php-form input:focus,
.php-form textarea:focus,
.member-auth-card input:focus,
.member-connect-card input:focus,
.journal-dialog input:focus,
.journal-dialog textarea:focus,
.journal-dialog select:focus { border-color: var(--lg-gold); }
.form-status { min-height: 1.6em; margin: 0; color: var(--lg-text-soft); }
.form-status.error { color: #f1a29a; }
.form-status.success { color: #9de5be; }

.member-auth-alert {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(216,180,90,.35);
  border-radius: 14px;
  color: var(--lg-text-soft);
  background: rgba(216,180,90,.08);
}
.member-auth-card form { display: grid; gap: 16px; }
.member-auth-card .member-google-form { margin-bottom: 0; }
.member-auth-card > small {
  display: block;
  margin-top: 22px;
  color: var(--lg-text-faint);
}
.member-legal-check {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.55;
}
.member-legal-check input { width: 20px !important; min-height: 20px !important; margin-top: 2px; }
.member-legal-check a { color: var(--lg-gold-hi); text-decoration: underline; }

.member-page-shell { padding-bottom: 120px; }
.member-dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-end;
  margin-bottom: 38px;
}
.member-dashboard-header h1 {
  margin: 0 0 16px;
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .88;
}
.member-dashboard-header p:not(.eyebrow) { max-width: 720px; color: var(--lg-text-soft); }
.member-connect-card {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 70px);
}
.member-connect-card h2 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  letter-spacing: -.055em;
}
.member-connect-card form { display: grid; gap: 18px; margin-top: 30px; }

.member-connection-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 1px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--lg-border);
  border-radius: 24px;
  background: var(--lg-border);
}
.member-connection-strip > div {
  display: grid;
  gap: 3px;
  padding: 22px;
  background: rgba(255,255,255,.045);
}
.member-connection-strip span,
.member-connection-strip small {
  color: var(--lg-text-faint);
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.member-connection-strip strong { color: var(--lg-text); }
.member-connection-actions {
  display: flex !important;
  gap: 8px !important;
  align-items: center;
}
.member-connection-actions button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--lg-border);
  border-radius: 999px;
  color: var(--lg-text);
  background: rgba(255,255,255,.06);
  cursor: pointer;
}

.member-metric-grid {
  overflow: hidden;
  border: 1px solid var(--lg-border);
  border-radius: 24px;
}
.member-metric-grid article { background: rgba(255,255,255,.045); }
.member-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.member-panel {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--lg-border);
  border-radius: 24px;
}
.member-panel > header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding: 26px;
  border-bottom: 1px solid var(--lg-border);
}
.member-panel > header h2 { margin: 0; font-size: 1.8rem; }
.member-panel > header small { color: var(--lg-text-faint); }
.member-table-wrap { width: 100%; overflow-x: auto; }
.member-table-wrap table { width: 100%; border-collapse: collapse; }
.member-table-wrap th,
.member-table-wrap td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--lg-border);
  color: var(--lg-text-soft);
  font-size: .8rem;
  text-align: left;
  white-space: nowrap;
}
.member-table-wrap th {
  color: var(--lg-text-faint);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.member-deals-panel { margin-top: 20px; }
.member-data-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}
.member-data-controls form { margin: 0; }
.danger-button {
  color: #ffd3cf;
  border-color: rgba(217,99,89,.55);
  background: rgba(160,55,47,.18);
}

.php-journal {
  min-height: 100vh;
  padding: 140px max(24px, calc((100vw - 1440px) / 2)) 110px;
  background:
    radial-gradient(circle at 80% 8%, rgba(216,180,90,.11), transparent 22%),
    var(--lg-bg-deep);
}
.journal-hero {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: flex-end;
  padding-bottom: 40px;
}
.journal-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(4.8rem, 10vw, 10rem);
  font-weight: 500;
  letter-spacing: -.085em;
  line-height: .8;
}
.journal-hero p:not(.eyebrow) { max-width: 680px; color: var(--lg-text-soft); }
.journal-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.journal-import { cursor: pointer; }
.journal-import input { display: none; }
.journal-metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  overflow: hidden;
  margin: 18px 0;
  border: 1px solid var(--lg-border);
  border-radius: 24px;
}
.journal-metrics article {
  display: grid;
  gap: 7px;
  padding: 26px;
  border-right: 1px solid var(--lg-border);
  background: rgba(255,255,255,.045);
}
.journal-metrics article:last-child { border-right: 0; }
.journal-metrics span,
.journal-metrics small { color: var(--lg-text-faint); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; }
.journal-metrics strong { font-size: 2rem; }
.journal-evidence {
  overflow: hidden;
  margin: 18px 0;
  border: 1px solid var(--lg-border);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(216,180,90,.075), transparent 40%),
    rgba(255,255,255,.035);
}
.journal-evidence > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 40px;
  align-items: end;
  padding: clamp(28px, 4vw, 54px);
  border-bottom: 1px solid var(--lg-border);
}
.journal-evidence > header h2 {
  max-width: 900px;
  margin: 0 0 14px;
  font-size: clamp(2.8rem, 6vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .87;
}
.journal-evidence > header p:not(.eyebrow),
.journal-workspace > header p {
  max-width: 760px;
  margin: 0;
  color: var(--lg-text-soft);
}
.journal-confidence {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(216,180,90,.32);
  border-radius: 18px;
  background: rgba(216,180,90,.075);
}
.journal-confidence strong {
  color: var(--lg-gold);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.journal-confidence span { color: var(--lg-text-soft); font-size: .75rem; line-height: 1.5; }
.journal-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.journal-evidence-grid > article {
  position: relative;
  min-height: 420px;
  padding: clamp(28px, 4vw, 50px);
  border-right: 1px solid var(--lg-border);
  border-bottom: 1px solid var(--lg-border);
}
.journal-evidence-grid > article:nth-child(2) { border-right: 0; }
.journal-evidence-grid h3 {
  max-width: 650px;
  margin: 42px 0 24px;
  font-size: clamp(1.8rem, 3.3vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .98;
}
.journal-evidence-index {
  position: absolute;
  top: 24px;
  right: 28px;
  color: var(--lg-text-faint);
  font-size: .68rem;
  letter-spacing: .12em;
}
.journal-pattern-list,
.journal-playbook-columns ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.journal-pattern-list li,
.journal-playbook-columns li {
  display: grid;
  gap: 5px;
  padding: 15px 16px;
  border: 1px solid var(--lg-border);
  border-radius: 14px;
  color: var(--lg-text-soft);
  background: rgba(255,255,255,.035);
  font-size: .74rem;
}
.journal-pattern-list strong,
.journal-playbook-columns strong { color: var(--lg-text); }
.journal-pattern-list span,
.journal-playbook-columns span { color: var(--lg-text-faint); line-height: 1.45; }
.journal-evidence-grid .journal-playbook-card {
  grid-column: 1 / -1;
  min-height: 0;
  border-right: 0;
}
.journal-playbook-card > p:not(.eyebrow) { max-width: 900px; color: var(--lg-text-soft); }
.journal-playbook-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.journal-playbook-columns > div {
  padding: 22px;
  border: 1px solid var(--lg-border);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}
.journal-playbook-columns > div > strong {
  display: block;
  margin-bottom: 14px;
  color: var(--lg-gold);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.journal-evidence > footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 20px clamp(28px, 4vw, 50px);
  color: var(--lg-text-faint);
  font-size: .68rem;
}
.journal-evidence > footer strong { color: var(--lg-text-soft); text-transform: uppercase; }
.journal-workspace {
  overflow: hidden;
  border: 1px solid var(--lg-border);
  border-radius: 28px;
  background: rgba(255,255,255,.035);
}
.journal-workspace > header {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
  padding: 28px;
  border-bottom: 1px solid var(--lg-border);
}
.journal-workspace h2 { margin: 0; font-size: 2rem; }
.journal-workspace > header p { margin-top: 8px; font-size: .72rem; }
.journal-filters { display: flex; gap: 10px; }
.journal-table-wrap { overflow-x: auto; }
.journal-table-wrap table { width: 100%; border-collapse: collapse; }
.journal-table-wrap th,
.journal-table-wrap td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--lg-border);
  color: var(--lg-text-soft);
  text-align: left;
  white-space: nowrap;
}
.journal-table-wrap th { color: var(--lg-text-faint); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.journal-table-wrap td small {
  display: block;
  margin-top: 4px;
  color: var(--lg-text-faint);
  font-size: .55rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.journal-context-summary { display: flex; flex-wrap: wrap; gap: 5px; max-width: 360px; }
.journal-context-chip,
.journal-context-missing {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid rgba(216,180,90,.3);
  border-radius: 999px;
  color: var(--lg-text-soft);
  background: rgba(216,180,90,.06);
  font-size: .58rem;
}
.journal-context-missing { border-color: var(--lg-border); color: var(--lg-text-faint); background: transparent; }
.journal-row-actions { display: flex; gap: 8px; }
.journal-row-actions button {
  padding: 6px 10px;
  border: 1px solid var(--lg-border);
  border-radius: 999px;
  color: var(--lg-text);
  background: transparent;
}
.journal-dialog {
  width: min(1120px, calc(100% - 32px));
  max-height: calc(100vh - 36px);
  padding: 0;
  border: 1px solid var(--lg-border);
  border-radius: 28px;
  color: var(--lg-text);
  background: #081710;
  box-shadow: var(--lg-shadow);
}
.journal-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.journal-dialog form { display: grid; gap: 18px; max-height: calc(100vh - 36px); overflow-y: auto; padding: 30px; }
.journal-dialog header,
.journal-dialog footer { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.journal-dialog header h2 { margin: 0; font-size: 2.4rem; }
.journal-dialog header > button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--lg-border);
  border-radius: 50%;
  color: var(--lg-text);
  background: transparent;
}
.journal-form-intro {
  margin: 0;
  padding: 14px 16px;
  border-left: 2px solid var(--lg-gold);
  color: var(--lg-text-soft);
  background: rgba(216,180,90,.06);
  font-size: .75rem;
}
.journal-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.journal-context-fields,
.journal-mistake-fields {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--lg-border);
  border-radius: 18px;
}
.journal-context-fields legend,
.journal-mistake-fields legend {
  padding: 0 8px;
  color: var(--lg-gold);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.journal-mistake-fields > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.journal-mistake-fields label {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--lg-border);
  border-radius: 12px;
  color: var(--lg-text-soft);
  background: rgba(255,255,255,.03);
  font-size: .62rem;
  letter-spacing: .04em;
  text-transform: none;
}
.journal-mistake-fields input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--lg-gold);
}
.journal-notice { max-width: 900px; margin: 20px 0 0; color: var(--lg-text-faint); font-size: .75rem; }

.compact-chat { position: fixed; z-index: 800; right: 22px; bottom: 22px; }
.chat-panel { position: absolute; right: 0; bottom: 76px; width: min(390px, calc(100vw - 30px)); overflow: hidden; }
.chat-messages { max-height: 280px; overflow-y: auto; }
.chat-messages p { max-width: 88%; padding: 10px 12px; border-radius: 14px; }
.chat-messages .assistant { color: var(--lg-text-soft); background: rgba(255,255,255,.07); }
.chat-messages .user { margin-left: auto; color: #11170f; background: var(--lg-gold); }
.chat-cta { padding: 14px; }
.chat-cta a { display: inline-flex; margin: 4px; padding: 8px 10px; border: 1px solid var(--lg-border); border-radius: 999px; }

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .75s ease, transform .85s cubic-bezier(.2,.8,.2,1);
}
[data-reveal].revealed { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .php-content-grid,
  .php-founder,
  .php-contact-section,
  .member-data-grid { grid-template-columns: 1fr; }
  .php-founder-media { min-height: 600px; }
  .member-connection-strip { grid-template-columns: repeat(2, 1fr); }
  .journal-hero { align-items: flex-start; flex-direction: column; }
  .journal-metrics { grid-template-columns: repeat(3, 1fr); }
  .journal-metrics article:nth-child(3n) { border-right: 0; }
  .journal-evidence > header { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .php-page-hero { min-height: 72vh; padding-top: 150px; }
  .php-page-hero h1 { font-size: clamp(3.3rem, 17vw, 6rem); }
  .php-content-card { min-height: 260px; }
  .php-content-card h2 { margin-top: 45px; }
  .php-founder-media { min-height: 520px; }
  .php-founder-copy { padding: 55px 24px; }
  .php-contact-section { grid-template-columns: 1fr; padding-inline: 20px; }
  .member-signin-shell,
  .member-auth-shell { width: calc(100% - 24px); grid-template-columns: 1fr; }
  .member-signin-copy,
  .member-signin-boundary { padding: 30px; border-radius: 28px; }
  .member-dashboard-header { align-items: flex-start; flex-direction: column; }
  .member-connection-strip { grid-template-columns: 1fr; }
  .member-connection-actions { flex-direction: column; align-items: stretch !important; }
  .member-metric-grid,
  .journal-metrics { grid-template-columns: 1fr; }
  .journal-metrics article { border-right: 0; border-bottom: 1px solid var(--lg-border); }
  .journal-workspace > header { align-items: flex-start; flex-direction: column; }
  .journal-filters { width: 100%; flex-direction: column; }
  .journal-form-grid { grid-template-columns: 1fr; }
  .journal-evidence-grid,
  .journal-playbook-columns,
  .journal-mistake-fields > div { grid-template-columns: 1fr; }
  .journal-evidence-grid > article { min-height: 0; border-right: 0; }
  .journal-evidence-grid .journal-playbook-card { grid-column: auto; }
  .journal-evidence > footer { align-items: flex-start; flex-direction: column; }
  .php-journal { padding-inline: 14px; }
  .php-final-cta { padding-inline: 24px; }
  .compact-chat { right: 12px; bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Site-wide readability and mobile usability pass */
:root {
  --lg-text-soft: rgba(247,249,248,.84);
  --lg-text-faint: rgba(247,249,248,.7);
  --lg-border: rgba(255,255,255,.24);
}

[data-theme="light"] {
  --lg-text-soft: #454b46;
  --lg-text-faint: #5d655f;
  --lg-gold-hi: #735714;
  --lg-border: rgba(21,23,20,.24);
}

/* These panels are intentionally dark in both colour modes. Keep their
   typography independent from the light-page variables. */
.liquid-hero,
.liquid-paths,
.liquid-services,
.liquid-learning,
.liquid-journal,
.liquid-insights,
.liquid-about,
.liquid-partnership,
.liquid-community,
.liquid-faq,
.liquid-final-cta,
.liquid-partner-process,
.page-hero.fmc-page-hero,
.php-page-hero,
.article-hero,
.deep-section,
.photo-band,
.trade-course-map,
.trade-guide,
.cta-band,
.fmc-menu-panel,
.site-footer.fmc-footer,
.journal-dialog,
.chat-panel,
.member-connect-card,
.member-readonly-explainer,
.member-panel,
.member-activation-notice,
.member-awaiting-card {
  --lg-text: #f7f9f8;
  --lg-text-soft: rgba(247,249,248,.84);
  --lg-text-faint: rgba(247,249,248,.7);
  --lg-gold-hi: #f1d58a;
  --lg-border: rgba(255,255,255,.24);
  color: var(--lg-text);
}

.liquid-hero h1,
.liquid-paths h2,
.liquid-path-card h3,
.liquid-services h2,
.liquid-service-card h3,
.liquid-learning h2,
.liquid-learning h3,
.liquid-journal h2,
.liquid-insights h2,
.liquid-insight-card h3,
.liquid-about h2,
.liquid-partnership h2,
.liquid-partnership h3,
.liquid-community h2,
.liquid-faq h2,
.liquid-final-cta h2,
.page-hero.fmc-page-hero h1,
.php-page-hero h1,
.fmc-footer h2 {
  color: var(--lg-text);
}

.liquid-path-card p,
.liquid-service-card p,
.liquid-learning p,
.liquid-journal p,
.liquid-journal li,
.liquid-insight-card p,
.liquid-about p,
.liquid-partnership p,
.liquid-community p,
.liquid-faq p,
.liquid-final-cta p,
.page-hero.fmc-page-hero .page-hero-copy,
.page-hero.fmc-page-hero p:last-child {
  color: var(--lg-text-soft);
}

.eyebrow {
  font-size: .78rem;
  line-height: 1.45;
  letter-spacing: .1em;
}

.liquid-button,
.button,
.member-header-actions button,
.member-header-actions a,
.member-panel button,
.member-panel > a {
  min-height: 50px;
  font-size: .76rem;
}

.menu-open .compact-chat {
  display: none;
}

.liquid-hero-label,
.liquid-hero-compliance,
.liquid-path-card > div > span,
.liquid-service-card > span,
.liquid-service-card b,
.liquid-learning-steps > a > span,
.liquid-journal-copy > small,
.liquid-insight-card footer,
.liquid-partnership-track article > span,
.liquid-community-rail figcaption,
.liquid-final-cta small,
.fmc-footer-column > p,
.fmc-footer-legal > span,
.fmc-footer-bottom,
.journal-metrics span,
.journal-metrics small,
.journal-table-wrap th,
.journal-notice {
  font-size: .72rem;
  line-height: 1.55;
}

.liquid-service-card p,
.liquid-learning-steps p,
.liquid-journal-copy li,
.liquid-insight-card > p,
.liquid-partnership-track p,
.liquid-faq .faq-item p,
.fmc-footer-column a,
.member-connect-card label > small,
.member-fine-print {
  font-size: .9rem;
  line-height: 1.65;
}

.journal-confidence strong,
.journal-playbook-columns > div > strong {
  color: var(--lg-gold-hi);
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 84px;
    text-size-adjust: 100%;
  }

  body {
    padding-bottom: 88px;
    font-size: 16px;
    line-height: 1.65;
  }

  .container {
    width: min(100% - 32px, 1240px);
  }

  p,
  li {
    text-wrap: pretty;
  }

  input,
  select,
  textarea {
    min-height: 52px;
    font-size: 16px;
  }

  textarea {
    min-height: 112px;
  }

  .site-header.fmc-header {
    top: max(8px, env(safe-area-inset-top));
  }

  .fmc-header-shell {
    width: calc(100% - 20px);
    min-height: 58px;
  }

  .fmc-menu-panel {
    top: max(8px, env(safe-area-inset-top));
    bottom: max(8px, env(safe-area-inset-bottom));
    overflow-y: auto;
    border-radius: 26px;
  }

  .fmc-menu-heading {
    padding-bottom: 14px;
  }

  .fmc-menu-links a {
    min-height: 58px;
    padding: 10px 8px;
  }

  .fmc-menu-links a span {
    font-size: .68rem;
  }

  .fmc-menu-links a strong {
    font-size: clamp(1.3rem, 6.2vw, 1.9rem);
    line-height: 1;
  }

  .fmc-menu-contact {
    padding-top: 18px;
  }

  .fmc-menu-contact a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: .78rem;
  }

  /* The header menu already provides complete navigation. Removing the
     second fixed navigation bar prevents it from covering content and chat. */
  .liquid-mobile-dock {
    display: none !important;
  }

  .compact-chat {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .chat-launcher {
    min-height: 52px;
    padding: 12px 17px;
  }

  .chat-panel {
    bottom: 64px;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    border-radius: 22px;
  }

  .chat-messages {
    max-height: 32dvh;
  }

  .chat-suggestions button,
  .chat-cta a {
    min-height: 44px;
    font-size: .82rem;
  }

  .liquid-hero {
    gap: 34px;
    min-height: auto;
    padding: 108px 18px 52px;
  }

  .liquid-hero-copy {
    min-height: auto;
  }

  .liquid-hero-label {
    gap: 8px;
    margin-bottom: 34px;
    font-size: .72rem;
  }

  .liquid-hero h1 {
    font-size: clamp(3.2rem, 14.5vw, 4.5rem);
    letter-spacing: -.065em;
    line-height: .88;
  }

  .liquid-hero-copy > p:not(.eyebrow) {
    margin-top: 24px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .liquid-hero-actions {
    gap: 10px;
    margin-top: 26px;
  }

  .liquid-hero-compliance {
    gap: 8px 16px;
    margin-top: 32px;
    font-size: .72rem;
    line-height: 1.45;
  }

  .liquid-hero-scene {
    min-height: 470px;
  }

  .liquid-orbit,
  .liquid-sphere,
  .liquid-float-chip {
    display: none;
  }

  .liquid-bull-mark {
    top: 1%;
    width: 145px;
  }

  .liquid-dashboard {
    bottom: 8px;
  }

  .liquid-dashboard > header,
  .liquid-dashboard-metrics span,
  .liquid-dashboard > footer,
  .liquid-chart-zone,
  .liquid-chart-risk {
    font-size: .65rem;
  }

  .liquid-paths,
  .liquid-services,
  .liquid-insights,
  .liquid-partnership,
  .liquid-community,
  .liquid-faq,
  .liquid-learning,
  .liquid-journal,
  .liquid-partner-process,
  .cta-band,
  .fmc-footer-cta {
    margin: 8px;
    border-radius: 26px;
  }

  .liquid-paths,
  .liquid-services,
  .liquid-insights,
  .liquid-partnership,
  .liquid-community,
  .liquid-faq,
  .liquid-learning,
  .liquid-journal {
    padding: 58px 20px;
  }

  .liquid-section-heading {
    gap: 20px;
    margin-bottom: 38px;
  }

  .liquid-section-heading h2,
  .liquid-learning h2,
  .liquid-journal h2,
  .liquid-about h2,
  .liquid-faq h2,
  .liquid-partner-process h2,
  .liquid-due-diligence h2 {
    font-size: clamp(2.65rem, 12.5vw, 4rem);
    letter-spacing: -.065em;
    line-height: .92;
  }

  .liquid-section-heading > p:last-child,
  .liquid-learning-copy > p,
  .liquid-journal-copy > p,
  .liquid-about-copy > p,
  .liquid-faq-copy > p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .liquid-path-grid,
  .liquid-service-grid,
  .liquid-principle-grid {
    grid-template-columns: 1fr;
  }

  .liquid-path-card {
    min-height: 480px;
    border-radius: 22px;
  }

  .liquid-path-card > div {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .liquid-path-card > div > span {
    font-size: .72rem;
  }

  .liquid-path-card h3 {
    margin: 14px 0;
    font-size: clamp(2.2rem, 10vw, 3.2rem);
    line-height: .94;
  }

  .liquid-path-card p {
    font-size: .95rem;
    line-height: 1.55;
  }

  .liquid-path-card b {
    margin-top: 20px;
    font-size: .75rem;
  }

  .liquid-service-card {
    min-height: 310px;
    padding: 22px;
    border-radius: 22px;
  }

  .liquid-service-icon {
    width: 62px;
    height: 62px;
    margin: 28px 0 34px;
    border-radius: 18px;
  }

  .liquid-service-card h3 {
    font-size: 2rem;
    line-height: 1;
  }

  .liquid-service-card p {
    font-size: .96rem;
  }

  .liquid-service-card b {
    font-size: .75rem;
  }

  .liquid-learning {
    gap: 38px;
  }

  .liquid-learning-steps > a {
    grid-template-columns: 28px 1fr;
    gap: 12px;
    padding: 24px 0;
  }

  .liquid-learning-steps h3 {
    font-size: 1.75rem;
    line-height: 1;
  }

  .liquid-learning-steps p {
    font-size: .94rem;
  }

  .liquid-journal-device {
    width: 100%;
  }

  .liquid-insight-card {
    min-height: 360px;
  }

  .liquid-about {
    padding: 8px;
  }

  .liquid-about-media {
    min-height: 430px;
  }

  .liquid-about-copy {
    padding: 52px 20px;
  }

  .liquid-community-rail figure {
    flex-basis: min(84vw, 360px);
  }

  .liquid-community-rail figcaption {
    font-size: .72rem;
  }

  .liquid-faq .faq-item summary {
    min-height: 58px;
    font-size: 1.08rem;
    line-height: 1.4;
  }

  .liquid-faq .faq-item p {
    font-size: .96rem;
  }

  .liquid-final-cta {
    min-height: auto;
    padding: 68px 20px;
  }

  .liquid-final-cta h2 {
    font-size: clamp(3.2rem, 14vw, 4.6rem);
    line-height: .86;
  }

  .page-hero.fmc-page-hero {
    min-height: auto;
    padding: 112px 0 64px;
  }

  .fmc-page-hero h1 {
    font-size: clamp(3rem, 13.5vw, 4.4rem);
    line-height: .92;
  }

  .fmc-page-hero .page-hero-meta,
  .breadcrumbs {
    margin-bottom: 28px;
    font-size: .72rem;
    line-height: 1.5;
  }

  .fmc-page-hero .page-hero-copy,
  .page-hero p:last-child {
    font-size: 1rem;
    line-height: 1.65;
  }

  .php-page-hero {
    min-height: auto;
    padding: 120px 18px 68px;
  }

  .php-page-hero h1 {
    font-size: clamp(3rem, 13.5vw, 4.5rem);
    line-height: .92;
  }

  .php-content-grid-section {
    padding: 56px 0;
  }

  .php-content-card {
    min-height: auto;
    padding: 24px;
  }

  .php-content-card h2 {
    margin-top: 34px;
    font-size: 2.25rem;
  }

  .member-page-shell,
  .member-signin-shell {
    padding-top: 88px;
  }

  .member-app-header {
    gap: 20px;
    padding-inline: 2px;
  }

  .member-app-header h1,
  .member-dashboard-header h1 {
    font-size: clamp(2.6rem, 12.5vw, 4rem);
    line-height: .95;
  }

  .member-connect-card,
  .member-readonly-explainer,
  .member-panel,
  .member-activation-notice,
  .member-awaiting-card {
    padding: 22px;
    border-radius: 22px;
  }

  .member-section-heading h2,
  .member-readonly-explainer h2,
  .member-panel h2 {
    font-size: 1.8rem;
    line-height: 1.08;
  }

  .member-security-rail {
    font-size: .76rem;
    line-height: 1.45;
  }

  .member-connect-card > label,
  .member-danger-zone label,
  .member-primary-action {
    font-size: .78rem;
  }

  .php-journal {
    padding: 108px 12px 72px;
  }

  .journal-hero {
    gap: 24px;
    padding-bottom: 24px;
  }

  .journal-hero h1 {
    font-size: clamp(3.4rem, 15vw, 4.6rem);
    line-height: .9;
  }

  .journal-hero p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.65;
  }

  .journal-hero-actions,
  .journal-hero-actions > * {
    width: 100%;
  }

  .journal-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 20px;
  }

  .journal-metrics article {
    min-height: 112px;
    padding: 18px;
    border-right: 1px solid var(--lg-border);
    border-bottom: 1px solid var(--lg-border);
  }

  .journal-metrics article:nth-child(odd) {
    border-right: 1px solid var(--lg-border);
  }

  .journal-metrics article:nth-child(even) {
    border-right: 0;
  }

  .journal-metrics article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .journal-metrics span,
  .journal-metrics small {
    font-size: .7rem;
  }

  .journal-metrics strong {
    font-size: 1.65rem;
  }

  .journal-evidence,
  .journal-workspace {
    border-radius: 22px;
  }

  .journal-evidence > header,
  .journal-evidence-grid > article,
  .journal-workspace > header {
    padding: 24px;
  }

  .journal-evidence > header h2 {
    font-size: 2.65rem;
    line-height: .95;
  }

  .journal-evidence-grid h3 {
    margin: 34px 0 18px;
    font-size: 1.85rem;
    line-height: 1;
  }

  .journal-pattern-list li,
  .journal-playbook-columns li {
    font-size: .88rem;
    line-height: 1.55;
  }

  .journal-playbook-columns > div {
    padding: 16px;
  }

  .journal-filters input,
  .journal-filters select {
    width: 100%;
  }

  .journal-table-wrap th,
  .journal-table-wrap td {
    padding: 14px 16px;
    font-size: .84rem;
  }

  .journal-dialog {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 22px;
  }

  .journal-dialog form {
    max-height: calc(100dvh - 12px);
    gap: 16px;
    padding: 20px;
  }

  .journal-dialog header,
  .journal-dialog footer {
    position: sticky;
    z-index: 2;
    padding: 10px 0;
    background: #081710;
  }

  .journal-dialog header {
    top: -20px;
  }

  .journal-dialog footer {
    bottom: -20px;
    align-items: stretch;
    flex-direction: column;
  }

  .journal-dialog header h2 {
    font-size: 2rem;
  }

  .journal-context-fields,
  .journal-mistake-fields {
    padding: 16px;
  }

  .journal-mistake-fields label {
    min-height: 50px;
    font-size: .84rem;
    line-height: 1.4;
  }

  .journal-notice {
    font-size: .78rem;
    line-height: 1.6;
  }

  .fmc-footer-cta,
  .fmc-footer-main,
  .fmc-footer-bottom {
    padding-inline: 20px;
  }

  .fmc-footer-cta h2 {
    font-size: clamp(2.5rem, 11vw, 3.5rem);
    line-height: .95;
  }

  .fmc-footer-main {
    grid-template-columns: 1fr;
  }

  .fmc-footer-brand,
  .fmc-footer-legal {
    grid-column: auto;
  }

  .fmc-footer-column a {
    min-height: 42px;
    display: flex;
    align-items: center;
  }
}
