:root {
  --navy: #14213d;
  --navy-deep: #0e1830;
  --gold: #b08d57;
  --gold-light: #d4b88a;
  --gold-ink: #7d5f2e; /* gold dark enough for small text on light backgrounds */
  --paper: #f7f5f0;
  --white: #fff;
  --ink: #1c1f26;
  --muted: #5b6170;
  --line: #e3ddd1;
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { margin: 0; font: 400 1.0625rem/1.7 var(--sans); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.6rem; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--gold); color: var(--navy-deep); font: 600 .95rem/1 var(--sans); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(212, 184, 138, .5); }
.btn-ghost:hover { background: rgba(212, 184, 138, .12); color: var(--paper); }
.btn-sm { padding: .6rem 1rem; font-size: .875rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 240, .94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(20, 33, 61, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5rem; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--navy); line-height: 1.1; }
.brand img { display: block; height: 52px; width: auto; }
.brand-name { font: 500 1.6rem/1 var(--serif); }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; padding: .25rem 0; border-bottom: 1px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--navy); border-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--navy); transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1rem 1.5rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(20, 33, 61, .08); }
  .nav-open .nav { display: flex; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; justify-content: center; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--paper); padding: clamp(4rem, 10vw, 8rem) 0; }
.hero::after { content: "§"; position: absolute; right: -2rem; bottom: -6rem; font: 400 32rem/1 var(--serif); color: var(--gold); opacity: .06; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; align-items: center; }
.hero h1 { color: var(--paper); margin-bottom: .3em; }
.hero .title { font: 400 clamp(1.1rem, 2vw, 1.35rem)/1.5 var(--serif); color: var(--gold-light); margin-bottom: 1.5rem; }
.hero .lead { color: rgba(247, 245, 240, .82); max-width: 38rem; font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-photo { position: relative; margin: 0 0 2rem 1.5rem; max-width: 420px; justify-self: end; }
.hero-photo::before { content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border: 1px solid var(--gold); pointer-events: none; }
.hero-photo img { position: relative; display: block; width: 100%; height: auto; }
.hero-panel { position: absolute; left: -1.5rem; bottom: -2rem; padding: 1.25rem 1.5rem; background: var(--navy-deep); border: 1px solid rgba(212, 184, 138, .35); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.hero-panel a { display: block; color: var(--paper); font: 500 1.25rem/1.5 var(--serif); text-decoration: none; }
.hero-panel a:hover { color: var(--gold-light); }
.hero-panel small { display: block; font: 600 .66rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: .5rem; }

.page-hero { background: var(--navy); color: var(--paper); padding: clamp(3rem, 7vw, 5rem) 0; }
.page-hero h1 { color: var(--paper); font-size: clamp(2.2rem, 5vw, 3.5rem); margin: 0; }
.page-hero p { color: rgba(247, 245, 240, .78); margin: .75rem 0 0; max-width: 42rem; }
.page-hero .meta { font-size: .9rem; }
.page-hero .meta a { color: var(--gold-light); }

/* Sections */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-white { background: var(--white); }
.kicker { display: flex; align-items: center; gap: .75rem; font: 600 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 1.25rem; }
.kicker::before { content: ""; width: 2rem; height: 1px; background: var(--gold); }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head p { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.muted { color: var(--muted); }

.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.values li { background: var(--white); padding: 1.5rem; }
.values strong { display: block; font: 500 1.2rem/1.3 var(--serif); color: var(--navy); margin-bottom: .35rem; }
.values span { font-size: .925rem; color: var(--muted); }

.chips { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li, .chips a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .4rem 1rem; font-size: .9rem; color: var(--navy); background: var(--white); text-decoration: none; }
.chips a:hover { border-color: var(--gold); color: var(--navy); }
.chips .count { color: var(--muted); font-size: .8rem; margin-left: .25rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.card { position: relative; display: block; padding: 2rem 1.75rem; background: var(--white); border: 1px solid var(--line); border-top: 2px solid transparent; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-top-color: var(--gold); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20, 33, 61, .07); color: var(--ink); }
.card .num { font: 400 1rem/1 var(--serif); color: var(--gold-ink); }
.card h3 { margin: .9rem 0 .5rem; }
.card p { margin: 0; font-size: .95rem; color: var(--muted); }
.cards-note { margin-top: 2rem; color: var(--muted); }

.band { background: var(--navy-deep); color: var(--paper); text-align: center; padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.band h2 { color: var(--paper); }
.band p { color: rgba(247, 245, 240, .75); margin-bottom: 2rem; }

/* Posts */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.post-card { display: flex; flex-direction: column; padding: 1.75rem; background: var(--white); border: 1px solid var(--line); }
.post-card time { font-size: .8rem; letter-spacing: .06em; color: var(--gold-ink); text-transform: uppercase; }
.post-card h3 { font-size: 1.2rem; margin: .6rem 0; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.post-card p { margin: 0; font-size: .925rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-group + .post-group { margin-top: 4rem; }
.post-group h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.post-group h2 a { font: 500 .9rem var(--sans); }

/* Services */
.services-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.services-layout > * { min-width: 0; } /* lets the mobile chip row scroll instead of widening the page */
.services-nav { position: sticky; top: 7rem; }
.services-nav ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.services-nav a { display: block; padding: .45rem 0 .45rem 1.25rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .95rem; }
.services-nav a:hover { color: var(--navy); border-color: var(--gold); }
.service { padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line); }
.service:last-child { border-bottom: 0; margin-bottom: 0; }
.service .num { font: 400 1rem/1 var(--serif); color: var(--gold-ink); display: block; margin-bottom: .75rem; }
.service > p { font-size: 1.1rem; color: var(--muted); max-width: 44rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .25rem 2.5rem; }
.ticks li { position: relative; padding: .45rem 0 .45rem 1.5rem; border-bottom: 1px solid var(--line); font-size: .975rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .65rem; height: 1px; background: var(--gold); }

/* Contact */
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.office { background: var(--white); border: 1px solid var(--line); }
.office-body { padding: 2rem; }
.office iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; filter: grayscale(.3); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact-list span { color: var(--muted); font-size: .9rem; }
.contact-list a { font-weight: 500; text-decoration: none; }
.notice { margin-top: 2rem; padding: 1.25rem 1.5rem; border-left: 2px solid var(--gold); background: var(--white); }

/* Article */
.prose { max-width: 46rem; font-size: 1.075rem; }
.prose h2, .prose h3 { margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .4em; }
.prose .u { text-decoration: underline; }
.prose img { display: block; margin: 0 0 1.5rem; }
.article-foot { max-width: 46rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(247, 245, 240, .7); padding: 4.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer h2 { font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.25rem; }
.site-footer .brand-name { color: var(--paper); font-size: 1.75rem; display: block; margin-bottom: 1rem; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer p { margin: 0 0 .4rem; }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(247, 245, 240, .12); font-size: .85rem; }

@media (max-width: 900px) {
  .hero-grid, .two-col, .offices, .services-layout { grid-template-columns: 1fr; }
  .hero::after { font-size: 20rem; }
  .hero-photo { justify-self: center; margin: 1rem 1.25rem 2rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-nav { position: static; }
  .services-nav ol { display: flex; gap: .5rem; overflow-x: auto; border: 0; padding-bottom: .5rem; }
  .services-nav a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: .4rem 1rem; margin: 0; background: var(--white); }
}
@media (max-width: 560px) {
  .values, .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
