/* Fix Your Firm stylesheet. The homepage and the Capacity Check.
   Calm layout: Manrope for text, Gabarito for the logo only, no uppercase labels. */
:root {
  --ink: #0a2540; --ink-soft: #1c3a5e; --forest: #1f4d3a; --mint: #d4f4dd; --mint-bright: #a8e6b8;
  --cream: #f6f2ea; --paper: #fdfbf6; --muted: #6f6a60; --rule: #e6e0d4;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-logo: 'Gabarito', 'Arial', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
ul { list-style: none; }
a { color: var(--forest); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
p, li { text-wrap: pretty; }
svg { flex: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 4px; z-index: 200; }
.skip-link:focus { left: 8px; }

/* ---- Layout ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container { padding: 0 22px; } }
section { padding: 96px 0; }
@media (max-width: 760px) { section, .team-section { padding-top: 64px; padding-bottom: 64px; } }
.cream { background: var(--cream); }

/* ---- Type ---- */
h1, h2, h3 { font-weight: 700; color: var(--ink); text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(42px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 26px; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; margin-bottom: 20px; }
h3 { font-size: 21px; line-height: 1.3; margin-bottom: 8px; }
h1 em, h2 em { font-style: italic; color: var(--forest); }
p { max-width: 60ch; }
p + p { margin-top: 16px; }

/* ---- Buttons and links ---- */
.button { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); text-decoration: none; padding: 16px 26px; font-size: 16px; font-weight: 600; border-radius: 999px; transition: background 200ms ease, transform 200ms ease; }
.button:hover { background: var(--forest); }
.button-small { padding: 10px 18px; font-size: 14px; }
.button-light { background: var(--mint-bright); color: var(--ink); }
.button-light:hover { background: var(--mint); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--forest); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(31,77,58,0.3); padding-bottom: 2px; transition: border-color 200ms ease; }
.text-link:hover { border-color: var(--forest); }
.final-section .text-link { color: var(--mint-bright); border-color: rgba(168,230,184,0.4); }
.final-section .text-link:hover { border-color: var(--mint-bright); }
.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); text-decoration: none; padding: 16px 26px; font-size: 16px; font-weight: 600; border-radius: 999px; transition: background 200ms ease; border: none; cursor: pointer; font-family: var(--font-body); }
.btn-primary:hover { background: var(--forest); }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(253,251,246,0.92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--rule); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 32px; }
@media (max-width: 640px) { .nav-wrap { padding: 12px 22px; } }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.fyf-logo-mark { color: var(--ink); }
.fyf-logo-accent { fill: var(--forest); } .fyf-logo-rule { stroke: var(--forest); }
.fyf-logo-wordmark { font-family: var(--font-logo); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.fyf-logo-wordmark em { font-style: normal; color: var(--forest); }
.site-header nav { display: flex; gap: 28px; margin-left: auto; }
.site-header nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-header nav a:hover { color: var(--forest); }
@media (max-width: 760px) { .site-header nav { display: none; } .fyf-logo-wordmark { display: none; } }
.nav-burger { display: none; background: transparent; border: 1px solid var(--ink); border-radius: 999px; padding: 9px 11px; cursor: pointer; color: var(--ink); line-height: 0; }
.mobile-menu { display: none; }
@media (max-width: 760px) {
  .nav-burger { display: inline-flex; align-items: center; }
  .mobile-menu.open { display: block; border-top: 1px solid var(--rule); padding: 4px 22px 10px; background: var(--paper); }
  .mobile-menu a { display: block; padding: 12px 2px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; }
  .mobile-menu a:last-child { border-bottom: 0; }
}

/* ---- Hero ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero-description { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; font-weight: 500; max-width: 30ch; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 32px; }
.report-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.report-note { font-size: 14px; color: var(--muted); align-self: flex-start; }
.report { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 26px 28px 20px; box-shadow: 0 24px 60px rgba(10,37,64,0.10); }
.report-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--forest); margin-bottom: 18px; }
.report-firm { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.report h2 { font-size: 27px; margin-bottom: 6px; }
.report-subtitle { font-size: 14px; color: var(--muted); }
.report-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.report-stats strong { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 4px; }
.report-stats span { font-size: 13px; color: var(--muted); }
.report-priority { background: var(--cream); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.report-priority > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.report-priority h3 { font-size: 18px; margin-bottom: 4px; }
.report-priority p { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.report-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 11px 2px; border-top: 1px solid var(--rule); font-size: 15px; }
.report-row span { font-size: 13px; color: var(--muted); }
.report-row svg { color: var(--forest); }
.report-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
.report-caption { font-size: 14px; color: var(--muted); text-align: center; max-width: 36ch; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; } .report-stage { align-items: flex-start; } .report-caption { text-align: left; } }
@media (max-width: 760px) { .hero { padding-top: 48px; padding-bottom: 64px; } }

/* ---- Section headings ---- */
.section-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: end; margin-bottom: 48px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { color: var(--muted); max-width: 40ch; }
@media (max-width: 760px) { .section-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; } }
.section-divided { border-top: 1px solid var(--rule); padding-top: 56px; }
@media (max-width: 760px) { .section-divided { padding-top: 40px; } }

/* ---- Method ---- */
.review-note { color: var(--muted); margin-top: 16px; margin-bottom: 28px; }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.method-item { border-top: 1px solid var(--ink); padding-top: 22px; }
.method-index { display: flex; justify-content: space-between; align-items: center; color: var(--forest); font-weight: 700; font-size: 15px; margin-bottom: 26px; }
.method-item h3 { font-size: 22px; margin-bottom: 10px; }
.method-item p { font-size: 16px; color: var(--ink-soft); }
@media (max-width: 860px) { .method-grid { grid-template-columns: 1fr; gap: 24px; } .method-index { margin-bottom: 14px; } }

/* ---- Team ---- */
.team-section { padding-top: 96px; padding-bottom: 104px; }
.team-section .section-heading { grid-template-columns: 1fr; gap: 12px; align-items: start; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.portrait { border-radius: 14px; overflow: hidden; aspect-ratio: 4/5; background: var(--cream); margin-bottom: 16px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-person h3 { font-size: 19px; margin-bottom: 2px; }
/* Name and letters are each unbreakable, so a long set of letters drops to
   its own line instead of splitting the name across two. */
.person-name, .post-nominals { white-space: nowrap; }
.post-nominals { font-weight: 500; color: var(--muted); }
.team-person p + p { margin-top: 4px; }
.team-person p:last-child { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 960px) { .team-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---- Beliefs ---- */
.beliefs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 48px; margin-bottom: 64px; }
.belief { border-top: 1px solid var(--ink); padding-top: 20px; }
.belief h3 { font-size: 20px; margin-bottom: 8px; }
.belief p { font-size: 16px; color: var(--ink-soft); }
@media (max-width: 760px) { .beliefs { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; } }

/* ---- Specialties on the team cards ---- */
.specialties { font-size: 15px; color: var(--ink-soft); margin-top: 10px; line-height: 1.55; }
/* The separator is glued to the item before it with a non-breaking space, so a
   line never starts or ends with a stray dot. */
.specialties span:not(:last-child)::after { content: "\00a0\00b7  "; color: var(--muted); }
.team-person { display: flex; flex-direction: column; scroll-margin-top: 96px; }
.team-book { margin-top: auto; padding-top: 16px; }
.section-heading > p.book-help { max-width: none; }
.team-book .text-link { align-items: flex-start; }

/* ---- Final ---- */
.final-section { background: var(--ink); color: var(--paper); }
.final-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
.final-section h2 { color: var(--paper); }
.final-section h2 em { color: var(--mint-bright); }
.final-section p { color: rgba(253,251,246,0.8); }
.final-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.final-actions > p { font-size: 15px; color: rgba(253,251,246,0.6); }
@media (max-width: 860px) { .final-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---- Footer ---- */
.site-footer { background: var(--paper); border-top: 1px solid var(--rule); padding: 44px 0 32px; }
.footer-main { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 26px; flex-wrap: wrap; }
.site-footer nav a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-footer nav a:hover { color: var(--forest); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--rule); }
.footer-bottom p { font-size: 13.5px; color: var(--muted); }

