:root {
  --blue: #0A35C4;
  --blue-deep: #08278F;
  --orange: #F76300;
  --orange-text: #B84900; /* darker orange for small text on white (contrast) */
  --ink: #17212B;
  --muted: #55626E;
  --line: #D5DCE3;
  --wash: #F1F4F8;
  --white: #FFFFFF;

  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.6rem 0; flex-wrap: wrap; }
.brand img { display: block; height: 54px; width: auto; }
.site-nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--orange); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--blue); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); color: var(--blue-deep); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.08; margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.15; margin: 0 0 1rem; }
h3 { font-size: 1.3rem; line-height: 1.25; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.descriptor { font-weight: 600; color: var(--orange-text); margin: 0 0 1rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 0.85rem 1.6rem; border-radius: 3px; font-weight: 600; text-decoration: none; font-family: var(--sans); font-size: 1rem; cursor: pointer; border: 2px solid var(--blue); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-secondary { background: transparent; color: var(--blue); }
.btn-secondary:hover { background: var(--wash); }
.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: 4.5rem; padding: 5rem 0 3rem; align-items: center; }
.tagline { margin: 0; padding: 0 0 0 1.75rem; border-left: 5px solid var(--orange); list-style: none; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.25; color: var(--blue-deep); font-weight: 600; }
.tagline li + li { margin-top: 0.5rem; }

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }
.measure { max-width: 40em; }

/* Services */
.service { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; padding: 2.5rem 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service .kicker { color: var(--muted); margin: 0; }
.checks { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; columns: 2; column-gap: 2rem; }
.checks li { padding: 0.3rem 0 0.3rem 1.4rem; position: relative; break-inside: avoid; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 0.55rem; height: 0.55rem; background: var(--orange); border-radius: 50%; }
.outcome { font-weight: 600; color: var(--blue-deep); }
.more { font-weight: 600; }

/* Expertise */
.areas { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.areas li { padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.2rem; color: var(--blue-deep); font-weight: 600; }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
.why h3 { padding-top: 0.9rem; border-top: 3px solid var(--blue); }
.why p { color: var(--muted); margin: 0; }

/* Mission band: the one bold moment */
.mission { background: var(--blue); color: var(--white); border-top: 0; padding: 5rem 0; }
.mission h2 { color: var(--white); }
.mission p { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; max-width: 30em; margin: 0; }
.mission .rule { width: 4rem; height: 5px; background: var(--orange); margin-bottom: 1.5rem; }

/* Sub-pages */
.page-head { padding: 4rem 0 3rem; }
.items { margin: 0; padding: 0; list-style: none; }
.items li { padding: 1.5rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; }
.items li:last-child { border-bottom: 1px solid var(--line); }
.items p { margin: 0; color: var(--muted); }
.closing { background: var(--wash); }

/* Contact */
.contact-lines { color: var(--muted); }
form { display: grid; gap: 1.1rem; max-width: 36rem; }
label { font-weight: 600; font-size: 0.95rem; display: block; margin-bottom: 0.3rem; }
input[type=text], input[type=email], textarea { width: 100%; padding: 0.75rem 0.85rem; border: 1px solid #8795A3; border-radius: 3px; background: var(--white); font: inherit; color: var(--ink); }
textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { display: none; padding: 1rem 1.2rem; border-radius: 3px; margin-bottom: 1.2rem; max-width: 36rem; }
.notice.ok { display: block; background: #E3F3E8; border: 1px solid #8CC7A0; }
.notice.err { display: block; background: #FBE7E4; border: 1px solid #E0A49B; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: 0.95rem; }
.foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 800px) {
  .hero, .split, .service, .items li { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero { padding: 3rem 0; }
  .checks { columns: 1; }
  .areas { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr; }
  .site-nav { gap: 1rem; }
  section { padding: 3rem 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* About / person */
.person-role { color: var(--orange-text); font-weight: 600; margin-bottom: 1.25rem; }
.form-note { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* Footer links */
.foot-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--blue); }

/* Legal pages */
.legal { max-width: 46rem; padding-bottom: 4rem; }
.legal h2 { font-size: 1.45rem; margin: 2.25rem 0 0.6rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.legal li { margin-bottom: 0.3rem; }
.legal address { font-style: normal; margin-bottom: 1rem; }
.updated { color: var(--muted); }
.notice-box { background: var(--wash); border-left: 4px solid var(--orange); padding: 1rem 1.25rem; margin: 1.25rem 0; }
.notice-box h2 { margin-top: 0; }
.notice-box p:last-child { margin-bottom: 0; }

/* Insights page */
.page-head + section { border-top: 1px solid var(--line); }
.measure h3 { margin-top: 2rem; }
.measure h3:first-child { margin-top: 0; }
.checks.one-col { columns: 1; }
.checks.one-col li { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.checks.one-col li::before { top: 1.1rem; }
table.dates { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1rem; }
table.dates th, table.dates td { text-align: left; vertical-align: top; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--line); }
table.dates thead th { border-bottom: 2px solid var(--blue); color: var(--blue-deep); }
table.dates tbody th { width: 13rem; font-weight: 600; color: var(--blue-deep); }
.sources { padding-left: 1.2rem; margin: 1rem 0 0; }
.sources li { margin-bottom: 0.4rem; }
@media (max-width: 800px) {
  table.dates tbody th { width: 8rem; }
}

/* Page picture (one per page): full-width panorama */
.banner { margin: 0 0 3rem; }
.banner img { display: block; width: 100%; height: auto; min-height: 110px; max-height: 480px; object-fit: cover; object-position: 30% 50%; }

/* Accessibility */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--blue); color: var(--white); padding: 0.75rem 1.1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.items h2 { font-size: 1.3rem; line-height: 1.25; margin: 0 0 0.4rem; }
