/* ==========================================================
   Finance practice page - design tokens
   Deep green ink, bright green accent, mint tint,
   high-contrast serif display + neutral sans body.
   ========================================================== */
:root {
  --green-900: #00342B;
  --green-600: #00884D;
  --green-500: #009B55;
  --mint: #CCE5E1;
  --mint-50: #EEF6F4;
  --ink: var(--green-900);
  --paper: #FFFFFF;
  --rule: rgba(0, 52, 43, 0.18);
  --muted: rgba(0, 52, 43, 0.7);

  --serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --rail: 88px;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  font-variation-settings: "opsz" 144;
}
p { margin: 0; }
svg { display: inline-block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--green-900); color: #fff; padding: 10px 14px; border-radius: 4px;
}
.skip:focus { left: 8px; }

/* ---------- Brand rail (vertical wordmark, desktop) ---------- */
.rail {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail);
  display: flex; justify-content: center; align-items: flex-start;
  padding-top: 44px; z-index: 40; pointer-events: none;
}
.rail a {
  pointer-events: auto;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

/* ---------- Header / navigation ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: flex-end; gap: 28px;
  padding: 22px var(--gutter);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--rule);
  padding-top: 14px; padding-bottom: 14px;
}
.header__logo { display: none; }
.nav {
  display: flex; align-items: center; gap: 26px;
  list-style: none; margin: 0; padding: 0;
}
.nav a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--green-600); }
.nav .chev { width: 10px; height: 10px; }
.search-btn {
  background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink);
  display: inline-flex; border-radius: 50%;
}
.search-btn:hover { color: var(--green-600); }
.menu-btn { display: none; }

/* ---------- Page shell ---------- */
.page { padding-left: var(--rail); }

/* ---------- Hero ---------- */
.hero { padding: 160px var(--gutter) 80px; }
.crumb {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.crumb svg { width: 14px; height: 14px; }
.crumb:hover { color: var(--green-600); }
.hero__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  margin-top: 84px; align-items: start;
  max-width: var(--max);
}
.hero h1 {
  font-size: clamp(46px, 5.2vw, 66px);
  line-height: 1.08;
}
.hero__lede {
  border-top: 2px solid var(--green-600);
  padding-top: 28px;
  max-width: 540px;
}
.hero__lede p {
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.35;
}

/* ---------- Hero media (full bleed, dark) ---------- */
.hero-media {
  margin: 0 0 0 var(--gutter);
  height: min(68vh, 640px);
  background: #0a0d0c;
  position: relative;
  overflow: hidden;
}
.hero-media canvas,
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ---------- Intro ---------- */
.intro {
  padding: 120px var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  max-width: calc(var(--max) + var(--gutter) * 2);
}
.statement {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.25;
  max-width: 560px;
}
.intro__body p {
  font-size: 18px; line-height: 1.65;
  margin-bottom: 22px; max-width: 560px;
}
.intro__body p:last-child { margin-bottom: 0; }

/* ---------- Capabilities ---------- */
.caps { padding: 0 var(--gutter) 120px; max-width: calc(var(--max) + var(--gutter) * 2); }
.caps__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  padding: 72px 0 40px; border-top: 1px solid var(--rule);
}
.caps h2, .team h2, .section-head h2, .related h2 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.12;
}
.caps__head p {
  font-size: 18px; line-height: 1.65; max-width: 520px; align-self: end;
}
.caps__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 48px;
}
.caps__list a,
.related__list a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; line-height: 1.25;
  transition: color 0.2s ease;
}
.caps__list a svg,
.related__list a svg {
  width: 18px; height: 18px; flex: none;
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.caps__list a:hover,
.related__list a:hover { color: var(--green-600); }
.caps__list a:hover svg,
.related__list a:hover svg { opacity: 1; transform: none; }

/* ---------- Meet the team (dark band) ---------- */
.team {
  background: var(--green-900); color: #fff;
  padding: 120px var(--gutter);
}
.team__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  max-width: var(--max);
}
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mint); margin-bottom: 20px;
}
.team__text {
  font-size: 18px; line-height: 1.65; max-width: 520px; margin: 24px 0 32px;
  color: rgba(255, 255, 255, 0.88);
}
.contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact a {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 18px; color: #fff; padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact a:hover { color: var(--mint); border-color: var(--mint); }
.contact svg { width: 18px; height: 18px; flex: none; }

.people { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.person {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}
.person__avatar {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  background: var(--mint); color: var(--green-900);
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.person h3 { font-size: 26px; line-height: 1.15; color: #fff; margin-bottom: 4px; }
.person__role {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mint); margin-bottom: 14px;
}
.person__link { display: block; font-size: 15px; color: rgba(255, 255, 255, 0.85); margin-top: 6px; }
.person__link:hover { color: var(--mint); }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border: 1px solid currentColor; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, gap 0.25s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: #fff; color: var(--green-900); gap: 18px; }

/* ---------- Insights ---------- */
.insights { padding: 120px var(--gutter); max-width: calc(var(--max) + var(--gutter) * 2); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: 48px;
}
.link-caps {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 1px solid currentColor;
  transition: color 0.2s ease;
}
.link-caps:hover { color: var(--green-600); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--ink); padding-top: 24px; min-height: 300px;
}
.card__cat {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 24px;
}
.card h3 {
  font-size: 24px; line-height: 1.25;
  margin-bottom: auto; padding-bottom: 40px;
  transition: color 0.2s ease;
}
.card:hover h3 { color: var(--green-600); }
.card__meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.card__type {
  background: var(--mint); color: var(--ink);
  padding: 6px 10px; border-radius: 4px;
}

/* ---------- Related expertise ---------- */
.related { padding: 0 var(--gutter) 140px; max-width: calc(var(--max) + var(--gutter) * 2); }
.related__list {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px;
}
.related__list a { font-size: 26px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--mint-50);
  padding: 72px var(--gutter) 40px calc(var(--rail) + var(--gutter));
  border-top: 1px solid var(--rule);
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  max-width: var(--max);
}
.footer__brand {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.footer__tag { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 280px; }
.footer__contact { margin-top: 18px !important; }
.footer h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer li a:hover { color: var(--green-600); }
.footer__bottom {
  max-width: var(--max);
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--muted);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .caps__list { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --rail: 0px; }
  .rail { display: none; }

  .header { justify-content: space-between; gap: 16px; padding: 18px var(--gutter); }
  .header__logo {
    display: block; font-family: var(--serif); font-size: 16px; font-weight: 500; white-space: nowrap;
    letter-spacing: 0.12em; text-transform: uppercase;
  }
  .search-btn { display: none; }
  .menu-btn {
    display: inline-flex; flex-direction: column; gap: 6px;
    background: none; border: 0; padding: 8px; cursor: pointer;
  }
  .menu-btn__bar { width: 24px; height: 2px; background: var(--ink); transition: transform 0.25s ease; }
  .menu-btn[aria-expanded="true"] .menu-btn__bar:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bar:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav {
    display: none; position: fixed; inset: 64px 0 0 0;
    background: var(--paper); flex-direction: column; gap: 0;
    padding: 24px var(--gutter);
  }
  .nav.is-open { display: flex; }
  .nav li { width: 100%; }
  .nav a {
    width: 100%; justify-content: space-between;
    font-family: var(--serif); font-weight: 500; font-size: 24px;
    padding: 16px 0; border-bottom: 1px solid var(--rule);
  }

  .hero { padding: 120px var(--gutter) 56px; }
  .hero__grid { margin-top: 48px; }
  .hero__grid, .intro, .caps__head, .team__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { margin-left: 0; height: min(52vh, 440px); }
  .intro, .insights { padding: 80px var(--gutter); }
  .caps { padding-bottom: 80px; }
  .team { padding: 80px var(--gutter); }
  .related { padding-bottom: 96px; }
  .caps__list, .cards, .related__list { grid-template-columns: 1fr; }
  .caps__list a { font-size: 20px; }
  .related__list a { font-size: 22px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .card { min-height: 0; }
  .card h3 { padding-bottom: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}
