:root {
  --ink: #10253b;
  --navy: #0b2942;
  --blue: #164d74;
  --green: #88a93a;
  --green-dark: #5f7f24;
  --cream: #f6f5ed;
  --paper: #fcfbf7;
  --line: rgba(16, 37, 59, 0.16);
  --font-sans: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans), Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.hero {
  min-height: 790px;
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 73% 20%, rgba(255,255,255,.13), transparent 26%),
    linear-gradient(112deg, #173e39 0%, #2d5f50 45%, #164d74 45%, #092a44 100%);
}

.veil {
  position: absolute;
  inset: 0;
  opacity: .42;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 42%, rgba(255,255,255,.09) 50%, transparent 61%),
    repeating-linear-gradient(122deg, rgba(255,255,255,.025) 0 1px, transparent 1px 8px);
  mix-blend-mode: screen;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-block: 32px;
  border-bottom: 1px solid rgba(255,255,255,.2);
}

.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name { font: 700 clamp(1.55rem, 2.6vw, 2.15rem)/1 var(--font-serif), Georgia, serif; letter-spacing: -.04em; }
.brand-name span { color: #b6ce66; }
.hero .brand-name span { color: #fff; }
.brand-role { margin-top: 7px; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; opacity: .78; }
.brand.compact .brand-name { font-size: 1.72rem; }

.main-nav { display: flex; align-items: center; gap: 34px; font-size: .84rem; font-weight: 700; letter-spacing: .06em; }
.main-nav a { position: relative; padding-block: 9px; }
.main-nav a:not(.nav-contact)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: #b6ce66; transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.nav-contact { padding: 12px 18px !important; border: 1px solid rgba(255,255,255,.58); border-radius: 99px; transition: background .2s, color .2s; }
.nav-contact:hover, .nav-contact:focus-visible { background: white; color: var(--navy); }

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 685px;
  display: grid;
  grid-template-columns: minmax(320px, .88fr) minmax(390px, 1.12fr);
  align-items: center;
  gap: clamp(58px, 8vw, 120px);
  padding-block: 52px 74px;
}

.portrait-wrap { position: relative; justify-self: end; width: min(100%, 430px); }
.portrait-frame { position: relative; aspect-ratio: .82; overflow: hidden; border: 1px solid rgba(255,255,255,.24); border-radius: 12px; box-shadow: 0 38px 90px rgba(0,0,0,.3); }
.portrait-frame::before { content: ""; position: absolute; inset: 13px; z-index: 1; border: 1px solid rgba(255,255,255,.32); border-radius: 5px; pointer-events: none; }
.portrait { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(.82) contrast(1.04); }

.hero-copy { max-width: 630px; }
.eyebrow, .section-kicker, .service-kicker { margin: 0 0 20px; color: #c3d783; font-size: .72rem; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.hero h1 { margin: 0; font: 600 clamp(4.2rem, 8.1vw, 7.35rem)/.88 var(--font-serif), Georgia, serif; letter-spacing: -.065em; }
.intro { max-width: 590px; margin: 32px 0 36px; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.8; }
.primary-button { display: inline-flex; align-items: center; gap: 34px; padding: 15px 19px 15px 23px; background: #a8c74e; color: #122d25; border-radius: 99px; font-size: .82rem; font-weight: 800; transition: transform .2s, background .2s; }
.primary-button span { display: grid; place-items: center; width: 29px; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.38); }
.primary-button:hover, .primary-button:focus-visible { background: #bfdc6c; transform: translateY(-2px); }

.services { display: grid; grid-template-columns: 1fr 1fr; }
.service-panel { position: relative; min-height: 580px; padding: 90px max(7vw, 40px); overflow: hidden; }
.service-panel::after { content: ""; position: absolute; width: 310px; height: 310px; border: 1px solid currentColor; opacity: .09; border-radius: 50%; right: -105px; bottom: -120px; }
.service-panel.legal { background: var(--cream); color: var(--navy); }
.service-panel.tax { background: #e6eed2; color: #254217; }
.service-inner { position: relative; z-index: 1; max-width: 510px; margin-inline: auto; }
.service-number { display: block; margin-bottom: 58px; font: italic 1rem var(--font-serif), Georgia, serif; opacity: .48; }
.service-kicker { color: var(--green-dark); }
.service-panel h2 { margin: 0 0 36px; font: 600 clamp(2.9rem, 5vw, 5rem)/.98 var(--font-serif), Georgia, serif; letter-spacing: -.05em; }
.service-label { margin: 0 0 10px; font-weight: 800; }
.service-panel ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid currentColor; }
.service-panel li { position: relative; padding: 16px 8px 16px 26px; border-bottom: 1px solid currentColor; font-size: 1.05rem; }
.service-panel li::before { content: "↗"; position: absolute; left: 0; color: var(--green-dark); }

.contact { padding: 100px 0; background: var(--navy); color: white; }
.contact-inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: 90px; align-items: start; }
.contact h2 { max-width: 510px; margin: 0; font: 600 clamp(3.1rem, 6vw, 5.6rem)/.98 var(--font-serif), Georgia, serif; letter-spacing: -.055em; }
.contact-links { border-top: 1px solid rgba(255,255,255,.2); }
.contact-links > * { display: grid; grid-template-columns: 110px 1fr; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.2); font-size: 1.04rem; font-style: normal; }
.contact-links span { color: #b6ce66; font-size: .67rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.contact-links a:hover { color: #cadd87; }

.footer { background: #071d2d; color: rgba(255,255,255,.64); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; padding-block: 26px; font-size: .72rem; }
.footer-inner p { margin: 0; }
.footer-inner a { color: white; font-weight: 700; }
.footer-inner a:hover { color: #b6ce66; }

.legal-page { min-height: 100vh; background: var(--paper); }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.legal-header .brand-role { color: var(--blue); opacity: .72; }
.back-link { font-size: .82rem; font-weight: 800; color: var(--blue); }
.legal-content { max-width: 850px; padding-block: 84px 110px; }
.legal-content > .section-kicker { color: var(--green-dark); }
.legal-content > h1 { margin: 0 0 70px; font: 600 clamp(3.6rem, 8vw, 6.8rem)/.9 var(--font-serif), Georgia, serif; letter-spacing: -.06em; }
.legal-content section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal-content h2 { margin: 0 0 16px; font: 600 clamp(1.35rem, 3vw, 1.8rem) var(--font-serif), Georgia, serif; }
.legal-content p, .legal-content li { color: #3d4d5e; line-height: 1.75; }
.legal-content p { margin: 0 0 13px; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content ul { margin: 12px 0 0; padding-left: 20px; }
.legal-content a { color: var(--blue); font-weight: 700; overflow-wrap: anywhere; }
.legal-content a:hover { text-decoration: underline; }
.legal-footer { margin-top: 0; }

:focus-visible { outline: 3px solid #d6eb8d; outline-offset: 4px; }

@media (max-width: 820px) {
  .shell { width: min(100% - 34px, 680px); }
  .site-header { align-items: flex-start; padding-block: 24px; }
  .main-nav { gap: 18px; }
  .main-nav a:not(.nav-contact) { display: none; }
  .hero { min-height: auto; }
  .hero-content { grid-template-columns: 1fr; gap: 42px; padding-block: 40px 64px; }
  .portrait-wrap { justify-self: center; width: min(78vw, 380px); order: 2; }
  .hero-copy { order: 1; }
  .hero h1 { font-size: clamp(3.9rem, 18vw, 6.8rem); }
  .intro { margin-block: 24px 28px; }
  .services { grid-template-columns: 1fr; }
  .service-panel { min-height: auto; padding: 70px 32px 78px; }
  .service-number { margin-bottom: 42px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 520px) {
  .shell { width: calc(100% - 28px); }
  .brand-name { font-size: 1.45rem; }
  .brand-role { font-size: .59rem; }
  .nav-contact { padding: 10px 14px !important; font-size: .72rem; }
  .hero-content { padding-top: 32px; }
  .hero h1 { font-size: clamp(3.45rem, 19vw, 5.3rem); }
  .portrait-wrap { width: 86vw; }
  .service-panel { padding-inline: 24px; }
  .contact { padding: 76px 0; }
  .contact-links > * { grid-template-columns: 1fr; gap: 8px; }
  .footer-inner { flex-direction: column; }
  .legal-header { align-items: flex-start; }
  .legal-header .brand-role { display: none; }
  .back-link { margin-top: 4px; }
  .legal-content { padding-block: 64px 90px; }
  .legal-content > h1 { margin-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
