:root {
  --ink: #222222;
  --muted: #6f7680;
  --line: #dde4dc;
  --paper: #ffffff;
  --wash: #f3f8f1;
  --green: #4fa85a;
  --green-dark: #2f7639;
  --charcoal: #242222;
  --orange: #f47f21;
  --shadow: 0 22px 55px rgba(33, 42, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Avenir Next, Avenir, "Helvetica Neue", Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 104px;
  padding: 18px clamp(22px, 7vw, 145px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: min(100%, 420px);
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 44px);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.nav a:hover,
.nav a.active {
  color: var(--green);
}

.hero,
.page-hero {
  background:
    linear-gradient(115deg, rgba(79, 168, 90, 0.11), rgba(255, 255, 255, 0) 52%),
    var(--wash);
}

.hero {
  min-height: 350px;
  padding: clamp(38px, 5vw, 68px) clamp(22px, 7vw, 145px);
}

.hero-copy {
  max-width: 850px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(24px, 2.65vw, 36px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.2;
}

p {
  color: var(--muted);
  font-size: clamp(17px, 1.15vw, 21px);
}

.hero-copy p:not(.kicker) {
  max-width: 760px;
  font-size: clamp(17px, 1.25vw, 20px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 22px;
  padding: 0 22px;
  background: var(--green);
  color: #ffffff;
  border: 1px solid var(--green);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.button.ghost {
  background: transparent;
  color: var(--green-dark);
}

.button.ghost:hover {
  background: var(--green);
  color: #ffffff;
}

.hero-panel {
  position: relative;
  padding: clamp(30px, 5vw, 56px);
  border-left: 8px solid var(--orange);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.hero-panel span {
  display: block;
  margin-bottom: 20px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.08;
}

.page-hero {
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 34px 24px;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 0;
}

.section {
  padding: clamp(36px, 5vw, 68px) clamp(22px, 7vw, 145px);
}

.intro {
  padding-top: clamp(28px, 3.4vw, 46px);
  padding-bottom: clamp(28px, 3.4vw, 46px);
}

.intro p {
  max-width: 1120px;
  color: #5d646d;
  font-size: clamp(17px, 1.35vw, 21px);
}

.section-heading {
  max-width: 850px;
  margin-bottom: clamp(24px, 3.2vw, 42px);
}

.focus-grid,
.parameter-grid,
.difference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.focus-grid article,
.parameter-grid article,
.difference-grid article {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.focus-grid article:hover,
.parameter-grid article:hover,
.difference-grid article:hover {
  border-color: rgba(79, 168, 90, 0.48);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.focus-grid span,
.difference-grid span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--green);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.focus-grid p,
.parameter-grid p,
.difference-grid p {
  font-size: 17px;
}

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  background: #ffffff;
}

.services article {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 58px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.services h2 {
  font-size: clamp(22px, 2vw, 30px);
}

.services p {
  font-size: 17px;
}

.parameter-grid {
  padding-top: 30px;
}

.parameter-grid article {
  min-height: 190px;
  border-top: 4px solid var(--green);
}

.parameter-grid h2 {
  font-size: clamp(22px, 2vw, 30px);
  overflow-wrap: anywhere;
}

.license-note {
  padding-top: 0;
  padding-bottom: clamp(38px, 5vw, 70px);
}

.license-note p {
  margin-bottom: 4px;
  font-size: 20px;
}

.difference {
  padding: clamp(36px, 5vw, 68px) clamp(22px, 7vw, 145px);
  background: var(--wash);
}

.difference > h2 {
  max-width: 1180px;
  margin-bottom: clamp(24px, 3.2vw, 42px);
}

.difference-grid {
  margin-bottom: 36px;
}

.signature {
  margin-bottom: 0;
  color: var(--muted);
}

.team-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: start;
}

.team-layout h2 {
  font-size: clamp(28px, 2.5vw, 38px);
}

.team-layout p {
  font-size: clamp(17px, 1.25vw, 20px);
}

.portrait-card {
  position: sticky;
  top: 190px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.portrait-card img {
  width: 100%;
  height: auto;
}

.portrait-card p {
  margin: 28px 0 0;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(36px, 6vw, 76px) clamp(22px, 7vw, 145px);
  border-top: 1px solid var(--line);
}

.contact-band h2 {
  margin-bottom: 0;
}

footer {
  padding: 42px 24px;
  background: var(--charcoal);
  text-align: center;
}

footer p {
  margin: 0;
  color: #a7a4a3;
  font-size: 18px;
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .team-layout,
  .contact-band {
    display: block;
  }

  .site-header {
    min-height: auto;
  }

  .brand img {
    max-width: 420px;
  }

  .nav {
    justify-content: flex-start;
    margin-top: 26px;
  }

  .focus-grid,
  .parameter-grid,
  .difference-grid {
    grid-template-columns: 1fr;
  }

  .services article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .portrait-card {
    position: static;
    max-width: 320px;
    margin-bottom: 34px;
  }

  .contact-band .button {
    margin-top: 20px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 18px 22px;
  }

  .brand img {
    content: url("assets/mofinancial-logo.png");
    width: 190px;
  }

  .nav {
    gap: 14px 18px;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .hero,
  .page-hero {
    min-height: auto;
  }

  .focus-grid article,
  .parameter-grid article,
  .difference-grid article {
    min-height: 0;
    padding: 24px;
  }

  .hero-panel strong {
    font-size: 28px;
  }
}
