:root {
  --navy: #0a2550;
  --blue: #0068d6;
  --blue-dark: #0054ad;
  --tint: #f2f6fb;
  --ink: #1c2633;
  --muted: #566273;
  --line: #d8e0ea;
  --white: #fff;
  --font: Aptos, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17.5px/1.65 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 600; letter-spacing: -.012em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.1; max-width: 21ch; }
h1.h1-long { font-size: clamp(1.8rem, 3.4vw, 2.75rem); line-height: 1.18; max-width: 30ch; }
h2 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); line-height: 1.2; }
h3 { font-size: 1.16rem; line-height: 1.3; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(1180px, 100% - 64px); margin-inline: auto; }
.section { padding: clamp(56px, 7vw, 92px) 0; }
.section-tight { padding: 0 0 clamp(56px, 7vw, 88px); }
.page-top { padding: clamp(48px, 6vw, 84px) 0 clamp(32px, 4vw, 48px); }
.tint { background: var(--tint); }
.band { background: var(--navy); color: #e8eef7; }
.band h2 { color: var(--white); }
.band a { color: var(--white); }
.band a:hover { color: #cfe2fb; }

.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: .95rem; font-weight: 600; letter-spacing: .01em; }
.eyebrow-below { margin: 16px 0 0; }
.lede { color: var(--navy); font-size: 1.18em; line-height: 1.5; }
.lede-bold { font-weight: 600; }
.prose { max-width: 66ch; }
.prose-wide { max-width: 76ch; }
.strong { font-weight: 600; }
.statement { color: var(--white); font-size: 1.28em; font-weight: 600; line-height: 1.35; }
.statement-large { margin: 0; font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -.01em; }
.big-link { font-size: 1.2em; font-weight: 600; overflow-wrap: anywhere; }

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split-media { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.in-service { margin: 0 0 26px; }
.in-service img { aspect-ratio: auto; object-fit: initial; }
.in-service-small { max-width: 400px; }

.grid { display: grid; gap: 20px; margin-top: 32px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; padding: 30px 30px 32px; background: var(--white); border: 1px solid var(--line); }
.card::before { content: ""; display: block; width: 22px; height: 22px; margin-bottom: 18px; background: linear-gradient(135deg, var(--navy) 50%, var(--blue) 50%); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card-link { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.card-link:hover { color: inherit; border-color: var(--blue); transform: translateY(-2px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.logo { flex: 0 0 auto; }
.logo img { width: 236px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { padding: 7px 12px; color: var(--ink); font-size: .98rem; text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { background: var(--blue); color: var(--white); }
.nav-links a.brief-link { margin-left: 10px; background: var(--blue); color: var(--white); }
.nav-links a.brief-link:hover { background: var(--blue-dark); color: var(--white); }
.nav-links a.brief-link.active { background: var(--navy); }
.search-link { display: flex; flex: 0 0 auto; margin-left: -16px; padding: 8px; color: var(--ink); }
.search-link:hover, .search-link.active { color: var(--blue); }
.search-link svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu { display: none; padding: 8px 14px; background: none; border: 1px solid var(--navy); color: var(--navy); font: inherit; font-size: .95rem; cursor: pointer; }

/* Services */
.services-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 60px); align-items: start; }
.service-index { position: sticky; top: 112px; }
.service-index ul { margin: 0; padding: 0; list-style: none; }
.service-index li { border-top: 1px solid var(--line); }
.service-index li:last-child { border-bottom: 1px solid var(--line); }
.service-index a { display: block; padding: 13px 0; color: var(--navy); font-size: .97rem; line-height: 1.35; text-decoration: none; }
.service-index a:hover { color: var(--blue); }
.service { padding: clamp(28px, 4vw, 44px); background: var(--white); border: 1px solid var(--line); }
.service + .service { margin-top: 24px; }
.service-sub { margin: 16px 0 24px; color: var(--blue); font-size: 1.08em; font-weight: 600; line-height: 1.4; }
.list-label { margin-bottom: 12px; color: var(--navy); font-weight: 600; }
.prose p + .list-label { margin-top: 30px; }
.check-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0 0 18px; align-items: start; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin-bottom: 8px; padding-left: 20px; font-size: .96em; line-height: 1.45; }
.check-list li::before { content: ""; position: absolute; top: .52em; left: 0; width: 8px; height: 8px; background: var(--blue); }
.note { padding: 16px 20px; background: var(--tint); font-size: .96em; }
.prose + .note { margin-top: 22px; }

/* About */
.book { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; align-items: start; padding: 26px; background: var(--white); border: 1px solid var(--line); }
.book img { width: 132px; box-shadow: 0 6px 16px rgba(10, 37, 80, .18); }

/* Weekly brief */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { display: inline-block; padding: 13px 24px; background: var(--blue); border: 1px solid var(--blue); color: var(--white); font: 600 .98rem/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.button:disabled { opacity: .65; cursor: wait; }
.button.secondary { background: var(--white); border-color: var(--navy); color: var(--navy); }
.button.secondary:hover { background: var(--navy); color: var(--white); }
.insights-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 32px; }
.insight { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); }
.insight-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.insight-art { aspect-ratio: 16 / 9; background: var(--navy); }
.insight-image.is-wide, .home-insight-box img.is-wide { object-fit: contain; background: var(--white); }
.insight-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 20px 22px 22px; }
.tag { margin-bottom: 8px; color: var(--muted); font-size: .86rem; }
.insight h3 { margin-bottom: 14px; font-size: 1.04rem; }
.insight h3 a { color: inherit; text-decoration: none; }
.insight h3 a:hover { color: var(--blue); }
.text-link { margin-top: auto; font-size: .95rem; font-weight: 600; }
.feed-more { margin-top: 32px; }

/* Search */
.search-box { display: flex; gap: 10px; margin: 0 0 12px; }
.search-box input { flex: 1; min-width: 0; padding: 14px 16px; font-size: 1.05rem; }
.search-box .button { flex: none; }
#search-status { min-height: 1.6em; margin: 0 0 18px; color: var(--muted); font-size: .95rem; }
.search-list { margin: 0; padding: 0 0 clamp(56px, 7vw, 88px); list-style: none; }
.search-result { padding: 24px 0; border-top: 1px solid var(--line); }
.search-meta { margin: 0 0 8px; color: var(--blue); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.search-result h2 { margin: 0 0 8px; font-size: 1.3rem; line-height: 1.3; }
.search-result h2 a { color: inherit; text-decoration: none; }
.search-result h2 a:hover { color: var(--blue); }
.search-snippet { margin: 0; color: var(--muted); }
.search-result mark { background: none; color: var(--ink); font-weight: 700; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 84px); align-items: start; }
.contact-intro h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 26px; }
.contact-form { padding: clamp(24px, 3.5vw, 40px); background: var(--tint); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
label { display: block; margin-bottom: 6px; color: var(--navy); font-size: .94rem; font-weight: 600; }
input, select, textarea { width: 100%; padding: 12px 13px; background: var(--white); border: 1px solid #b8c4d3; border-radius: 0; color: var(--ink); font: 400 1rem/1.4 var(--font); }
textarea { resize: vertical; }
.form-note { margin: 16px 0 0; color: var(--muted); font-size: .92rem; }
.contact-status:empty { display: none; }
.contact-status { margin: 12px 0 0; font-size: .95rem; font-weight: 600; }
.contact-status.is-ok { color: #17693a; }
.contact-status.is-error { color: #a32020; }
.hidden-field { position: absolute; left: -9999px; }

/* Footer */
.site-footer { padding: 52px 0 44px; border-top: 1px solid var(--line); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 36px; align-items: start; }
.footer-logo { width: 212px; }
.footer-tagline { margin: 14px 0 0; color: var(--navy); font-weight: 600; }
.footer-links { display: grid; gap: 6px; }
.footer-links a { width: fit-content; color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--blue); }
.footer-links a.active { color: var(--blue); }
.footer-contact a { font-weight: 600; overflow-wrap: anywhere; }
.footer-privacy { margin: 14px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }

@media (max-width: 1080px) {
  .logo img { width: 200px; }
  .nav-links a { padding: 7px 8px; font-size: .92rem; }
  .nav-links a.brief-link { margin-left: 4px; }
  .insights-grid, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  html { scroll-padding-top: 84px; }
  .menu { display: block; }
  .search-link { order: 2; margin-left: auto; }
  .menu { order: 3; }
  .nav { position: relative; min-height: 72px; }
  .nav-links { display: none; position: absolute; top: 100%; left: -32px; right: -32px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 32px 20px; background: var(--white); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 1rem; }
  .nav-links a.brief-link { margin: 8px 0 0; text-align: center; }
  .split, .split-media, .services-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .service-index { position: static; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { width: calc(100% - 32px); }
  .nav-links { left: -16px; right: -16px; padding-inline: 16px; }
  .logo img { width: 176px; }
  .grid-2, .grid-3, .insights-grid, .field-row { grid-template-columns: minmax(0, 1fr); }
  .check-cols { grid-template-columns: minmax(0, 1fr); }
  .in-service-small { max-width: none; }
  .book { grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .book img { width: 92px; }
  .card { padding: 24px; }
  .actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-link { transition: none; }
}
