/* ==========================================================================
   fin.associates — component styles
   Implements the fin. associates Design System. Every value resolves to a token
   in tokens.css; nothing here is a literal colour, font or size.

   Brand rules enforced in this file:
   · Four colours only. Teal is the dot, hairlines, arcs and small tracked
     labels — never a background, never body copy. Primary actions are charcoal.
   · Serif (Cormorant Garamond) for display and headings; never letterspaced,
     never uppercase, never body copy.
   · Sans (Hanken Grotesk) 300 for body; uppercase is reserved for sans labels.
   · No rounded corners anywhere except the wordmark dot. No gradients except
     the warm-white image fade. No icons, swooshes or decoration.
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--fa-bg);
  color: var(--fa-ink-muted);              /* body copy is grey, per spec */
  font-family: var(--fa-font-body);
  font-size: var(--fa-text-base);
  font-weight: var(--fa-weight-body);
  line-height: var(--fa-leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--fa-font-display);
  font-weight: var(--fa-weight-heading);
  color: var(--fa-ink-strong);
  line-height: var(--fa-leading-tight);
  letter-spacing: var(--fa-tracking-tight);   /* 0 — the serif is never tracked */
  text-transform: none;                        /* nor uppercased */
  margin: 0 0 var(--fa-space-5);
  text-wrap: pretty;
}
h1 { font-size: var(--fa-text-3xl); }
h2 { font-size: var(--fa-text-2xl); }
h3 { font-size: var(--fa-text-xl); }
h4 { font-size: var(--fa-text-lg); }
p  { margin: 0 0 var(--fa-space-5); text-wrap: pretty; }

/* Links: charcoal with a hairline underline; teal only on interaction. */
a { color: var(--fa-ink-strong); text-decoration: none; }
.article-body a, .prose a {
  border-bottom: 1px solid var(--fa-line-strong);
  transition: color var(--fa-transition), border-color var(--fa-transition);
}
.article-body a:hover, .prose a:hover { color: var(--fa-accent); border-bottom-color: var(--fa-accent); }

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

img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--fa-line); margin: var(--fa-space-7) 0; }

blockquote {
  margin: var(--fa-space-6) 0;
  padding-left: var(--fa-space-5);
  border-left: var(--rule-h) solid var(--rule-accent);
  font-family: var(--fa-font-display);
  font-size: var(--fa-text-xl);
  line-height: var(--fa-leading-snug);
  color: var(--fa-ink-strong);
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }

.skip { position: absolute; left: -9999px; background: var(--fa-action); color: var(--fa-ink-inverse); padding: var(--fa-space-3) var(--fa-space-5); z-index: 100; }
.skip:focus { left: var(--fa-space-5); top: var(--fa-space-5); }

/* --- Layout --------------------------------------------------------------- */
.wrap { max-width: var(--fa-wrap); margin-inline: auto; padding-inline: var(--fa-gutter); }
.band { padding-block: var(--fa-band-y); }
.band--surface { background: var(--fa-surface); border-top: 1px solid var(--fa-line); }
.band--deep {
  background: var(--fa-surface-deep); color: var(--text-on-dark-muted);
  position: relative; overflow: hidden;
}
.band--deep h1, .band--deep h2, .band--deep h3, .band--deep a { color: var(--text-on-dark); }
.prose { max-width: var(--fa-wrap-narrow); }
.prose > :last-child { margin-bottom: 0; }

.lede {
  font-family: var(--fa-font-display);
  font-size: var(--fa-text-xl);
  font-weight: var(--fa-weight-display);
  line-height: var(--fa-leading-snug);
  color: var(--fa-ink-strong);
}
.band--deep .lede { color: var(--text-on-dark); }

/* --- Brand devices -------------------------------------------------------- */

/* Label / eyebrow — the ONLY place uppercase is permitted, and sans only. */
.eyebrow {
  font-family: var(--fa-font-body);
  font-size: var(--fa-text-xs);
  font-weight: var(--fa-weight-label);
  letter-spacing: var(--fa-tracking-wide);
  text-transform: uppercase;
  color: var(--fa-accent);
  margin: 0 0 var(--fa-space-6);
}
.eyebrow--muted { color: var(--fa-ink-muted); }
.band--deep .eyebrow { color: var(--fa-accent); }

/* Thin teal rule: 2px high, 34–64px wide. */
.rule { display: block; width: var(--rule-w-l); height: var(--rule-h); background: var(--rule-accent); border: 0; margin: var(--fa-space-6) 0; }
.rule--s { width: var(--rule-w-s); }
.rule--m { width: var(--rule-w-m); }

/* Subtle teal arc: large circle outline bleeding off the corner. */
.arc { position: absolute; border-radius: 50%; border: 1px solid var(--arc-stroke); pointer-events: none; }

/* Wordmark: "fin" serif 600 + oversized teal dot; "associates" sans 300 tracked. */
.wordmark { display: inline-block; line-height: 1; }
.wordmark-fin {
  display: flex; align-items: baseline;
  font-family: var(--fa-font-display); font-weight: 600;
  font-size: var(--wm-size, 30px); line-height: .9; color: var(--fa-ink-strong);
}
.wordmark-dot {
  display: inline-block;
  width: calc(var(--wm-size, 30px) * .27); height: calc(var(--wm-size, 30px) * .27);
  border-radius: 50%;                       /* the one rounded thing in the system */
  background: var(--teal);                  /* the dot NEVER changes colour */
  margin-left: calc(var(--wm-size, 30px) * .11);
  transform: translateY(calc(var(--wm-size, 30px) * -.03));
}
.wordmark-associates {
  font-family: var(--fa-font-body); font-weight: 300;
  font-size: calc(var(--wm-size, 30px) * .24);
  letter-spacing: var(--wordmark-tracking);
  color: var(--fa-ink-strong);
  margin-top: calc(var(--wm-size, 30px) * .08);
}
.wordmark--reversed .wordmark-fin,
.wordmark--reversed .wordmark-associates { color: var(--text-on-dark); }

/* Tagline + locations lockup. Never reworded or restyled. */
.tagline {
  font-family: var(--fa-font-body); font-weight: var(--fa-weight-label);
  font-size: var(--fa-text-lg); letter-spacing: var(--fa-tracking-wide);
  text-transform: uppercase; color: var(--fa-ink-strong); line-height: 1.9; margin: 0;
}
.locations {
  font-family: var(--fa-font-body); font-weight: var(--fa-weight-label);
  font-size: var(--fa-text-sm); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fa-ink-muted); margin: 0;
}
.locations .sep { color: var(--teal); margin: 0 var(--fa-space-3); }

/* --- Buttons — charcoal, never teal, never rounded ------------------------ */
.btn {
  display: inline-block; padding: 14px var(--fa-space-6);
  font-family: var(--fa-font-body); font-size: var(--fa-text-xs);
  font-weight: var(--fa-weight-label); letter-spacing: var(--fa-tracking-wide);
  text-transform: uppercase; border-radius: var(--fa-radius);
  border: 1px solid var(--fa-action); text-decoration: none;
  transition: background var(--fa-transition), color var(--fa-transition), border-color var(--fa-transition);
}
.btn--primary { background: var(--fa-action); color: var(--fa-ink-inverse); }
.btn--primary:hover { background: var(--fa-action-hover); color: var(--fa-ink-inverse); }
.btn--ghost { background: transparent; color: var(--fa-ink-strong); border-color: var(--fa-line-strong); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.band--deep .btn--ghost { color: var(--text-on-dark); border-color: var(--hairline-on-dark); }
.band--deep .btn--ghost:hover { border-color: var(--teal); color: var(--teal); }

/* --- Header / nav — tracked caps, right aligned --------------------------- */
.site-header { background: var(--fa-bg); border-bottom: 1px solid var(--fa-line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--fa-space-6); min-height: 96px; }
.brand { --wm-size: 30px; text-decoration: none; }

.site-nav ul { display: flex; align-items: center; gap: var(--fa-space-6); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--fa-font-body); font-size: var(--fa-text-xs);
  font-weight: var(--fa-weight-label); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fa-ink-muted); transition: color var(--fa-transition);
}
.site-nav a:hover { color: var(--teal); }
.site-nav .is-current > a { color: var(--fa-ink-strong); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: var(--fa-space-3); }
.nav-burger span { display: block; width: 22px; height: 1px; background: var(--fa-ink-strong); }

@media (max-width: 62rem) {
  .nav-burger { display: flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--fa-bg); border-bottom: 1px solid var(--fa-line); }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--fa-space-4) var(--fa-gutter); }
  .site-nav li { border-bottom: 1px solid var(--fa-line); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a { display: block; padding: var(--fa-space-5) 0; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(72px, 11vw, 160px); }
.hero-inner { position: relative; z-index: 2; max-width: 620px; }
.hero .wordmark { --wm-size: clamp(64px, 9vw, 128px); }
.hero h1 { font-size: var(--fa-text-4xl); font-weight: var(--fa-weight-display); max-width: 14ch; }
.hero .lede { max-width: 46ch; margin-top: var(--fa-space-6); }

/* Right-hand editorial photograph, blended into the page with the warm-white
   fade. Renders only when --hero-image is set on .hero. */
.hero-image { position: absolute; inset: 0 0 0 auto; width: 62%; overflow: hidden; z-index: 1; }
.hero-image::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--hero-image, none); background-size: cover; background-position: center;
}
.hero-image::after { content: ''; position: absolute; inset: 0; background: var(--image-fade); }
@media (max-width: 62rem) { .hero-image { display: none; } }

.hero-slot {
  position: absolute; inset: 0 0 0 auto; width: 62%; z-index: 1;
  display: grid; place-items: center; border-left: 1px solid var(--fa-line);
  font-size: var(--fa-text-xs); letter-spacing: var(--fa-tracking-wide);
  text-transform: uppercase; color: var(--fa-ink-muted); text-align: center; padding: var(--fa-space-6);
}
@media (max-width: 62rem) { .hero-slot { display: none; } }

/* --- Hairline rows (Expertise pattern) ------------------------------------ */
.rows { border-top: 1px solid var(--fa-line); }
.row {
  display: grid; grid-template-columns: 80px minmax(0, 320px) 1fr;
  gap: var(--fa-space-6); align-items: baseline;
  padding: var(--fa-space-6) 0; border-bottom: 1px solid var(--fa-line);
  text-decoration: none;
}
.row-num { font-size: var(--fa-text-xs); letter-spacing: 0.2em; color: var(--teal); }
.row-title { font-family: var(--fa-font-display); font-weight: var(--fa-weight-heading); font-size: var(--fa-text-xl); color: var(--fa-ink-strong); transition: color var(--fa-transition); }
.row:hover .row-title { color: var(--teal); }
.row-desc { color: var(--fa-ink-muted); max-width: 60ch; margin: 0; }
@media (max-width: 62rem) {
  .row { grid-template-columns: 48px 1fr; }
  .row-desc { grid-column: 2 / -1; }
}

/* --- Columns (Approach / Offices) ----------------------------------------- */
.cols { display: grid; gap: var(--fa-space-7); }
.cols--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.cols--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.col-title { font-family: var(--fa-font-display); font-weight: var(--fa-weight-heading); font-size: var(--fa-text-xl); color: var(--fa-ink-strong); margin: 0; }
.band--deep .col-title { color: var(--text-on-dark); }
.col-desc { margin: 0; }
.band--deep .col-desc { color: var(--text-on-dark-muted); }
.col-region { font-size: var(--fa-text-xs); letter-spacing: 0.22em; text-transform: uppercase; color: var(--fa-ink-muted); margin: var(--fa-space-3) 0 var(--fa-space-4); }

/* --- People --------------------------------------------------------------- */
.person-card { display: block; }
.person-photo {
  aspect-ratio: 4 / 5; border: 1px solid var(--fa-line); margin-bottom: var(--fa-space-5);
  display: grid; place-items: center; overflow: hidden;
  font-size: var(--fa-text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--fa-ink-muted);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-name { font-family: var(--fa-font-display); font-weight: var(--fa-weight-heading); font-size: var(--fa-text-xl); color: var(--fa-ink-strong); margin: 0; }
.person-name a { color: inherit; transition: color var(--fa-transition); }
.person-name a:hover { color: var(--teal); }
.person-role { font-size: var(--fa-text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); margin: 10px 0 14px; }
.person-prior { font-size: var(--fa-text-sm); color: var(--fa-ink-muted); margin: 0; }

.person-header { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: var(--fa-space-7); align-items: start; }
@media (max-width: 48rem) { .person-header { grid-template-columns: 1fr; } }
.creds { list-style: none; margin: var(--fa-space-6) 0 0; padding: 0; }
.creds li { padding: var(--fa-space-4) 0; border-top: 1px solid var(--fa-line); font-size: var(--fa-text-sm); }
.creds li:last-child { border-bottom: 1px solid var(--fa-line); }
.creds strong { font-weight: 500; color: var(--fa-ink-strong); }

/* --- Insights ------------------------------------------------------------- */
.insight-meta { font-size: var(--fa-text-xs); letter-spacing: var(--fa-tracking-wide); text-transform: uppercase; color: var(--fa-ink-muted); margin: 0 0 var(--fa-space-4); }
.article-body { max-width: var(--fa-wrap-narrow); }
.article-body h2 { margin-top: var(--fa-space-7); }
.article-body h3 { margin-top: var(--fa-space-6); }
.article-body ul, .article-body ol, .prose ul, .prose ol { padding-left: var(--fa-space-5); margin-bottom: var(--fa-space-5); }
.article-body li, .prose li { margin-bottom: var(--fa-space-3); }

/* --- Placeholder marker --------------------------------------------------- */
.todo {
  border-left: var(--rule-h) solid var(--teal);
  background: rgba(0, 151, 167, 0.06);
  padding: var(--fa-space-4) var(--fa-space-5);
  font-size: var(--fa-text-sm); color: var(--fa-ink-strong);
  margin-bottom: var(--fa-space-5);
}
.todo::before { content: 'Placeholder — '; font-weight: 500; text-transform: uppercase; font-size: var(--fa-text-xs); letter-spacing: var(--fa-tracking-wide); color: var(--teal); }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--fa-surface-deep); color: var(--text-on-dark-muted); position: relative; overflow: hidden; padding-top: 120px; margin-top: var(--fa-space-9); }
.site-footer .wordmark { --wm-size: 58px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--fa-space-7); flex-wrap: wrap; position: relative; z-index: 2; }
.footer-cols { display: flex; gap: 100px; flex-wrap: wrap; }
.site-footer .eyebrow { margin-bottom: var(--fa-space-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--fa-space-3); }
.site-footer a { color: var(--text-on-dark-muted); font-size: var(--fa-text-base); font-weight: 300; transition: color var(--fa-transition); }
.site-footer a:hover { color: var(--text-on-dark); }
.footer-bottom {
  border-top: 1px solid var(--hairline-on-dark); margin-top: 90px; padding-block: var(--fa-space-5) var(--fa-space-6);
  display: flex; justify-content: space-between; gap: var(--fa-space-5); flex-wrap: wrap;
  font-size: var(--fa-text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-on-dark-faint);
  position: relative; z-index: 2;
}
.footer-bottom p, .footer-bottom ul { margin: 0; }
.footer-bottom ul { display: flex; gap: var(--fa-space-5); }
.footer-bottom li { margin: 0; }
.footer-bottom a { font-size: var(--fa-text-xs); color: var(--text-on-dark-faint); }

/* --- Utilities ------------------------------------------------------------ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hero h1 { margin: 0; }
