/* FinTech Advisors - site styles. ASCII only. */

/* ---------- Fonts: IBM Plex, self-hosted, SIL Open Font License 1.1 ---------- */
/* Subset to Basic Latin + Latin-1 Supplement + Latin Extended-A + typographic
   punctuation, so German and French set correctly without a system fallback. */
@font-face {
  font-family: "IBM Plex Serif";
  src: url("../fonts/plexserif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("../fonts/plexserif-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/plexsans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/plexsans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/plexsans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* WCAG 2.2 AA compliant palette. Navy and text grey are web-specific; gold, steel from the brand. */
  --ink: #0f1b2d;        /* dark navy. Digital ground. Logo and print use #223555 */
  --brass: #967741;      /* brand gold. CMYK 36/45/80/23, as printed on the business cards */
  --steel: #4f6f96;      /* steel blue, as in the logo */
  --paper: #f6f4ef;
  --paper-2: #ffffff;
  --ink-deep: #0f1b2d;
  --brass-2: #b39b6c;    /* light gold. Text on dark grounds, gold button fill, hover label. Web only. */
  --muted: #6d7071;   /* darkened from the logo grey #7e8283 to clear 4.5:1 on cream */
  --line: #d8d3c8;
  --line-dark: #4f6f96;
  --maxw: 1120px;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}

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

h1 { font-size: 2.15rem; }
h2 { font-size: 1.62rem; }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.1em 0; max-width: 68ch; }

a { color: var(--ink); text-decoration-color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); }

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

img, svg { max-width: 100%; height: auto; }

ul { margin: 0 0 1.1em 0; padding-left: 1.1em; }
li { margin-bottom: 0.35em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
}
.skip:focus { left: 12px; top: 12px; z-index: 50; }

.lead { font-size: 1.12rem; color: var(--muted); }
.lede-dark { color: #ffffff; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
/* Keep anchor targets clear of the fixed top bar. */
html { scroll-padding-top: 100px; }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: 84px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { width: 216px; display: block; }

.nav { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--brass); }
.nav a.active { color: var(--ink); border-bottom-color: var(--brass); }

.nav-toggle {
  display: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 9px 14px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 13px 22px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
}
.btn:hover, .btn:focus-visible { text-decoration: none; }
/* Primary button: the lighter gold carries a navy label at 7.27:1. The 1px brand-gold
   border gives the button an edge that clears 3:1 on the cream ground, where the fill
   alone reaches only 2.16:1. */
.btn-primary { background: var(--brass-2); border-color: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--ink); border-color: var(--brass); color: var(--brass-2); }
.btn-ghost { border-color: var(--line-dark); color: var(--paper); }
.btn-ghost:hover { border-color: var(--brass-2); color: var(--brass-2); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--brass); color: var(--ink); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 76px 0 84px;
}
.hero h1 { color: var(--paper); max-width: 21ch; }
.hero .eyebrow {
  font-size: 1rem;
  color: var(--brass-2);
  margin-bottom: 18px;
  max-width: 52ch;
}
.hero p.lead { color: #ffffff; }
.hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 46px;
  align-items: center;
}
.hero-grid > div { flex: 1 1 420px; min-width: 0; }
.hero-grid > .hero-figure { flex: 1 1 360px; min-width: 0; margin: 0; }
.hero-figure figcaption {
  font-size: 0.86rem;
  color: #ffffff;
  margin-top: 12px;
}

.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 62px 0 66px;
}
.page-hero h1 { color: var(--paper); margin-bottom: 0.35em; }
.page-hero p { color: #ffffff; max-width: 62ch; }
.page-hero .eyebrow { color: var(--brass-2); margin-bottom: 14px; }

/* ---------- Sections ---------- */
.section { padding: 68px 0; }
.section-tight { padding: 48px 0; }
.section-paper2 { background: var(--paper-2); }
.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-head p { color: var(--muted); }

.rule {
  width: 54px;
  height: 3px;
  background: var(--brass);
  border: 0;
  margin: 0 0 22px 0;
}

/* ---------- Two-axis lists ---------- */
.axes {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
}
.axis { flex: 1 1 340px; min-width: 0; }
.axis h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 14px;
}
.axis ul { list-style: none; padding: 0; margin: 0; }
.axis ul.plain li { font-size: 1rem; font-weight: 400; padding: 9px 0; }
.axis li {
  border-top: 1px solid var(--line);
  padding: 13px 0;
  font-size: 1.05rem;
  font-weight: 500;
}
.axis li span { display: block; font-size: 0.93rem; font-weight: 400; color: var(--muted); }
.axis li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- Lens grid ---------- */
.lenses { display: flex; flex-wrap: wrap; gap: 26px; }
.lens { flex: 1 1 210px; min-width: 0; }
.lens h3 { font-size: 1.05rem; margin-bottom: 8px; }
.lens p { font-size: 0.95rem; color: var(--muted); margin: 0; }
.lens { border-top: 3px solid var(--brass); padding-top: 14px; }

/* ---------- Service blocks ---------- */
.service {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}
.service > .service-intro { flex: 1 1 300px; min-width: 0; }
.service > div:not(.service-intro) { flex: 1.4 1 380px; min-width: 0; }
.service:last-of-type { border-bottom: 1px solid var(--line); }
.service h3 { margin-bottom: 10px; }
.service .service-intro p { color: var(--muted); margin-bottom: 0; }
.service ul { margin: 0; padding-left: 1.05em; }
.service li { font-size: 0.98rem; }

.note {
  font-size: 0.92rem;
  color: var(--muted);
  border-left: 3px solid var(--brass);
  padding: 4px 0 4px 14px;
  margin: 14px 0 0 0;
  max-width: 62ch;
}

/* ---------- Flow / sector chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 9px 14px;
  font-size: 0.93rem;
  margin: 0;
}
.chips li b { font-weight: 600; }

/* ---------- Quote band ---------- */
.band {
  background: var(--ink-deep);
  color: var(--paper);
  padding: 58px 0;
}
.band blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.35;
  max-width: 30ch;
}
.band p { color: #ffffff; margin-top: 18px; }

/* ---------- Approach loop ---------- */
.loop-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  align-items: center;
}
.loop-grid > div { flex: 1 1 380px; min-width: 0; }
.loop-grid > figure { flex: 1 1 360px; min-width: 0; margin: 0; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  border-top: 1px solid var(--line);
  padding: 16px 0 16px 46px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brass);
}
.steps li b { display: block; font-size: 1.05rem; }
.steps li span { color: var(--muted); font-size: 0.96rem; }

/* ---------- Leadership bio ---------- */
.bio { display: flex; flex-wrap: wrap; gap: 38px; align-items: flex-start; }
.bio-photo { flex: 0 1 260px; }
.bio-photo img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.bio-text { flex: 3 1 420px; min-width: 0; }
.bio-text h3 { margin-bottom: 4px; }
.bio-text .lead { color: var(--steel); margin-bottom: 18px; }
.bio-link { margin: 0 0 22px 0; }

/* ---------- Contact ---------- */
.contact-grid { display: flex; flex-wrap: wrap; gap: 44px; }
.contact-grid > div { flex: 1 1 340px; min-width: 0; }
.reveal-row { border-top: 1px solid var(--line); padding: 20px 0; }
.reveal-row:last-child { border-bottom: 1px solid var(--line); }
.reveal-label {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 8px 0;
}
.reveal-value { font-size: 1.1rem; font-weight: 500; margin: 0; }
.reveal-value a { text-decoration: none; }
.hint { font-size: 0.88rem; color: var(--muted); margin: 6px 0 0 0; }

/* ---------- Approach: working modes row ---------- */
/* Box shrinks to the first line; the second line wraps inside it; the row spans the same width. */
.hero-modes { width: fit-content; max-width: 100%; }
.hero-modes p + p { width: 0; min-width: 100%; }
.modes {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0 0;
}
.modes li { color: #ffffff; font-weight: 500; }

/* ---------- CTA ---------- */
.cta { background: var(--paper-2); border-top: 1px solid var(--line); padding: 62px 0; }
.cta h2 { max-width: 20ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #ffffff;
  padding: 46px 0 34px;
  font-size: 0.93rem;
}
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: var(--brass-2); }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.footer-grid > div { flex: 1 1 230px; min-width: 0; }
.footer-grid > div:first-child { flex: 1.4 1 280px; }
.footer-logo img { width: 208px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  margin-top: 34px;
  padding-top: 18px;
  font-size: 0.85rem;
  color: #ffffff;
}
.footer-bottom p { max-width: none; margin: 0 0 6px 0; }

/* ---------- Hero diagram animation ---------- */
.net-line {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 1.1s ease-out forwards;
}
.net-line.d2 { animation-delay: 0.18s; }
.net-line.d3 { animation-delay: 0.36s; }
.net-line.d4 { animation-delay: 0.54s; }
.net-node { opacity: 0; animation: fade 0.5s ease-out forwards; animation-delay: 0.5s; }
.net-node.n2 { animation-delay: 0.66s; }
.net-node.n3 { animation-delay: 0.8s; }
.net-node.n4 { animation-delay: 0.94s; }
.net-label { opacity: 0; animation: fade 0.6s ease-out forwards; animation-delay: 1s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .net-line, .net-node, .net-label {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* ---------- Type scale steps (explicit, not clamp) ---------- */
@media (min-width: 821px) {
  .nav { flex-wrap: nowrap; }
}

@media (min-width: 700px) {
  h1 { font-size: 2.9rem; }
  h2 { font-size: 2.05rem; }
  .band blockquote { font-size: 1.68rem; }
}

@media (min-width: 1080px) {
  h1 { font-size: 3.45rem; }
  .hero h1 { font-size: 3.05rem; }
  h2 { font-size: 2.3rem; }
  .band blockquote { font-size: 1.85rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .loop-grid, .contact-grid, .axes { gap: 32px; }
  .service { gap: 16px; }
}

@media (max-width: 820px) {
  .nav {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 18px;
    z-index: 30;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: inline-block; }
  .hero { padding: 54px 0 60px; }
  .section { padding: 52px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-logo img { width: 178px; }
}

@media print {
  .site-header, .site-footer, .btn-row, .nav-toggle { display: none; }
  body { background: #ffffff; color: #0f1b2d; }
}
