:root {
  --ink: #0f1a4a;
  --ink-soft: #3e4976;
  --muted: #7c83a0;
  --line: #dcdfea;
  --line-soft: #eeeff6;
  --bg: #ffffff;
  --bg-alt: #f4f4f0;
  --bg-deep: #111a7a;
  --bg-deeper: #0a1060;
  --gold: #b58a3d;
  --gold-soft: #f1e7d3;
  --accent: #b58a3d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', 'Times New Roman', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.02rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold); }

ul { margin: 0; padding-left: 1.1rem; }
li { color: var(--ink-soft); margin-bottom: 4px; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ---- Top bar ---- */
.topbar {
  background: var(--bg-deep);
  color: #c2cbdb;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 28px;
}
.topbar .sep { opacity: 0.4; }
.topbar-right {
  margin-left: auto;
}
.topbar-right a {
  color: #e8ecf3;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 1px;
}
.topbar-right a:hover { color: var(--gold-soft); border-color: var(--gold); }

/* ---- Primary nav ---- */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}
.brand-logo.small {
  height: 38px;
}
.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-name {
  font-family: 'Source Serif 4', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}
.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  gap: 34px;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--gold); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--bg-deep);
  color: #fff;
  border-color: var(--bg-deep);
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-lg { padding: 16px 34px; font-size: 0.98rem; }

/* ---- Hero ---- */
.hero {
  padding: 140px 0 130px;
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(135deg, rgba(10, 16, 96, 0.88) 0%, rgba(17, 26, 122, 0.82) 60%, rgba(10, 16, 96, 0.95) 100%),
    url('https://images.unsplash.com/photo-1524678714210-9917a6c619c2?w=1800&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(181, 138, 61, 0.18), transparent 45%),
    radial-gradient(ellipse at 85% 90%, rgba(181, 138, 61, 0.12), transparent 40%);
  pointer-events: none;
}
.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-inner .kicker {
  display: inline-block;
  padding: 0;
  border: none;
  color: var(--gold);
}
.hero-inner h1 {
  margin-top: 22px;
  margin-bottom: 28px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.hero-rule {
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 28px;
}
.hero .lede {
  margin: 0 auto;
  font-size: 1.12rem;
  color: #d9dff0;
  max-width: 660px;
}
.hero-actions {
  justify-content: center;
}
.hero .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}
.hero .btn-secondary:hover {
  background: #fff;
  color: var(--bg-deep);
  border-color: #fff;
}
.hero .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
}
.hero .btn-primary:hover {
  background: #fff;
  color: var(--bg-deep);
  border-color: #fff;
}
.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.lede {
  font-size: 1.12rem;
  max-width: 680px;
  color: var(--ink-soft);
  margin-top: 22px;
  line-height: 1.7;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- Metrics bar ---- */
.metrics {
  background: var(--bg-deep);
  color: #dde3ee;
  padding: 36px 0;
}
.metrics-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.metric {
  padding: 8px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.metric:last-child { border-right: none; }
.metric-num {
  display: block;
  font-family: 'Source Serif 4', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.metric-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9eacc4;
  margin-top: 6px;
}

/* ---- Sections ---- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  max-width: 680px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.section-kicker.light { color: var(--gold-soft); }
.section-sub {
  margin-top: 14px;
  font-size: 1.02rem;
}

/* ---- Services ---- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  padding: 40px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: background 0.2s;
}
.service:hover { background: var(--bg-alt); }
.service h3 {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  margin-bottom: 18px;
}
.service p { font-size: 0.97rem; }
.service ul {
  margin-top: 16px;
  padding-left: 0;
  list-style: none;
}
.service ul li {
  font-size: 0.92rem;
  padding-left: 18px;
  position: relative;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.service ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* ---- About ---- */
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-top: 3px solid var(--gold);
  box-shadow: 0 18px 40px -20px rgba(15, 30, 51, 0.3);
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85);
}
.about-copy p {
  font-size: 1.02rem;
  line-height: 1.75;
}
.principles {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 32px 30px;
}
.principles h4 {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.principles dl { margin: 0; }
.principles dt {
  font-family: 'Source Serif 4', serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.principles dd {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.principles dd:last-child { margin-bottom: 0; }

/* ---- Practice areas ---- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.practice {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.practice:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(15, 30, 51, 0.25);
}
.practice-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 2px solid var(--gold);
}
.practice-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.82) contrast(1.02);
  transition: transform 0.5s ease;
}
.practice:hover .practice-img img { transform: scale(1.04); }
.practice h4 {
  font-family: 'Source Serif 4', serif;
  font-size: 1.12rem;
  margin: 22px 22px 8px;
  color: var(--ink);
}
.practice p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 22px 22px;
  line-height: 1.6;
}

/* ---- Contact ---- */
.contact {
  background: var(--bg-deep);
  color: #d8dee9;
  text-align: center;
}
.contact h2 {
  color: #fff;
  font-weight: 600;
}
.contact-lede {
  color: #b8c2d4;
  max-width: 620px;
  margin: 14px auto 40px;
  font-size: 1.02rem;
}
.contact-inner { max-width: 720px; margin: 0 auto; }
.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 2px solid var(--gold);
  padding: 28px 32px;
  margin: 0 auto 36px;
  text-align: left;
  max-width: 560px;
}
.contact-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: center;
}
.contact-row:last-child { border-bottom: none; }
.contact-label {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
}
.contact-value {
  color: #fff;
  font-size: 0.98rem;
}
a.contact-value {
  color: var(--gold-soft);
  border-bottom: 1px dashed rgba(241, 231, 211, 0.4);
  padding-bottom: 1px;
  width: fit-content;
}
a.contact-value:hover { color: #fff; border-color: #fff; }
.contact .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
}
.contact .btn-primary:hover {
  background: #fff;
  color: var(--bg-deep);
  border-color: #fff;
}
.contact-note {
  margin-top: 26px;
  font-size: 0.88rem;
  color: #8f9ab1;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Footer ---- */
.footer {
  background: #0a1524;
  color: #9eaabf;
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand strong {
  color: #fff;
  font-family: 'Source Serif 4', serif;
  font-size: 1.02rem;
  display: block;
}
.footer-brand .muted {
  font-size: 0.78rem;
  color: #7c8699;
}
.footer p { margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .brand-tag { display: none; }
  .hero { padding: 64px 0 50px; }
  .metrics-inner { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .metric { border-right: none; }
  .metric:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.12); }
  .service-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 64px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 440px; aspect-ratio: 4 / 3; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .topbar-inner { flex-wrap: wrap; font-size: 0.76rem; }
}
@media (max-width: 520px) {
  .practice-grid { grid-template-columns: 1fr; }
  .metrics-inner { grid-template-columns: 1fr; }
  .metric { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 18px; }
  .metric:last-child { border-bottom: none; }
}
