:root {
  --navy: #102a43;
  --navy-deep: #0b2034;
  --teal: #168d7a;
  --ink: #182532;
  --muted: #61707d;
  --line: #dde4e9;
  --soft: #f5f7f8;
  --white: #ffffff;
  --page: min(1160px, calc(100% - 56px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--white);
  color: var(--navy);
}

.skip-link:focus { top: 16px; }

.site-header {
  width: var(--page);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand,
.footer-brand { display: inline-flex; }

.brand img { width: 96px; height: auto; }

nav { display: flex; align-items: center; gap: 30px; }
nav a { color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
.nav-contact { padding: 9px 15px; border: 1px solid var(--navy); color: var(--navy); }
.nav-contact:hover, .nav-contact:focus-visible { background: var(--navy); color: var(--white); outline: none; }

.hero {
  width: var(--page);
  min-height: 610px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 110px;
  align-items: center;
  padding: 84px 0 92px;
  border-bottom: 1px solid var(--line);
}

.service-line { margin-bottom: 24px; color: var(--teal); font-size: .9rem; font-weight: 600; }

h1 {
  max-width: 720px;
  margin-bottom: 25px;
  color: var(--navy-deep);
  font-size: clamp(3.7rem, 6vw, 5.45rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.055em;
}

.hero-intro { max-width: 650px; margin-bottom: 34px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; align-items: center; gap: 24px; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
}

.button:hover, .button:focus-visible { background: var(--navy-deep); outline: 3px solid rgba(16, 42, 67, .18); outline-offset: 3px; }
.text-link { color: var(--navy); font-size: .92rem; font-weight: 600; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.hero-principles {
  position: relative;
  padding: 8px 0 8px 28px;
  border-left: 2px solid var(--teal);
}

.hero-principles p { margin-bottom: 0; padding: 15px 0; color: var(--navy); font-size: 1.12rem; font-weight: 500; }
.hero-principles p + p { border-top: 1px solid var(--line); }

.services {
  width: var(--page);
  margin: 0 auto;
  padding: 104px 0 112px;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 110px;
}

.section-heading h2,
.approach h2,
.contact h2 {
  color: var(--navy-deep);
  font-size: clamp(2.3rem, 4vw, 3.65rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.section-heading h2 { max-width: 480px; margin-bottom: 22px; }
.section-heading p { max-width: 480px; margin-bottom: 0; color: var(--muted); }
.service-list { border-top: 1px solid var(--navy); }
.service-list article { display: grid; grid-template-columns: minmax(180px, .7fr) 1fr; gap: 34px; padding: 29px 0; border-bottom: 1px solid var(--line); }
.service-list h3 { margin-bottom: 0; color: var(--navy); font-size: 1rem; font-weight: 600; }
.service-list p { margin-bottom: 0; color: var(--muted); }

.approach {
  padding: 88px max(28px, calc((100vw - min(1160px, calc(100vw - 56px))) / 2));
  display: grid;
  grid-template-columns: .6fr 1.4fr;
  gap: 110px;
  align-items: start;
  background: var(--navy);
  color: var(--white);
}

.ledger-visual {
  width: min(100%, 250px);
  color: rgba(255, 255, 255, .32);
}

.ledger-visual svg { display: block; width: 100%; height: auto; }
.ledger-visual path, .ledger-visual circle { vector-effect: non-scaling-stroke; }
.ledger-rule { fill: none; stroke: currentColor; stroke-width: 1; }
.ledger-entry { fill: none; stroke: #80cab9; stroke-width: 4; stroke-linecap: round; }
.ledger-amount { fill: none; stroke: rgba(255, 255, 255, .88); stroke-width: 4; stroke-linecap: round; }
.ledger-total { fill: none; stroke: #80cab9; stroke-width: 1.5; }
.ledger-check-ring { fill: none; stroke: #80cab9; stroke-width: 1.5; }
.ledger-check { fill: none; stroke: #80cab9; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.approach h2 { margin-bottom: 20px; color: var(--white); }
.approach div > p { max-width: 650px; margin-bottom: 0; color: rgba(255, 255, 255, .7); }

.contact {
  width: var(--page);
  margin: 0 auto;
  padding: 98px 0;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 90px;
  align-items: end;
}

.contact h2 { max-width: 660px; margin-bottom: 18px; }
.contact p { max-width: 520px; margin-bottom: 0; color: var(--muted); }
.contact-links { display: grid; gap: 12px; justify-items: end; }
.contact-links a { color: var(--navy); font-weight: 600; text-underline-offset: 6px; text-decoration-thickness: 1px; }

footer {
  width: var(--page);
  min-height: 98px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}

.footer-brand img { width: 88px; height: auto; }
footer p { margin-bottom: 0; }

@media (max-width: 820px) {
  :root { --page: min(100% - 36px, 680px); }
  .site-header { min-height: 74px; }
  .brand img { width: 88px; }
  nav { gap: 16px; }
  nav a:not(.nav-contact) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 58px; padding: 68px 0 72px; }
  h1 { max-width: 620px; font-size: clamp(3.25rem, 13.5vw, 4.5rem); }
  .hero-principles { max-width: 440px; }
  .services { grid-template-columns: 1fr; gap: 50px; padding: 82px 0 88px; }
  .approach { grid-template-columns: 1fr; gap: 34px; padding-top: 72px; padding-bottom: 76px; }
  .contact { grid-template-columns: 1fr; gap: 38px; padding: 82px 0; }
  .contact-links { justify-items: start; }
}

@media (max-width: 520px) {
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .service-list article { grid-template-columns: 1fr; gap: 8px; padding: 25px 0; }
  .section-heading h2, .approach h2, .contact h2 { font-size: 2.55rem; }
  footer { padding: 24px 0; align-items: flex-start; flex-direction: column; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
