:root {
  --navy: #0F2A43;
  --blue: #1564C0;
  --teal: #207C89;
  --teal-light: #3FA3B1;
  --cream: #FBFAF6;
  --sand: #F4F1EA;
  --line: #D9D3C6;
  --ink: #1B2733;
  --muted: #665F52;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; line-height: 1.12; color: var(--navy); }
h1 { font-size: clamp(34px, 5.2vw, 56px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 20px; }
h3 { font-size: 24px; margin-bottom: 8px; }
p + p { margin-top: 14px; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }
.measure { max-width: 680px; }
.measure-wide { max-width: 860px; }

/* header */
.site-header { background: var(--navy); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 20px; }
.brand { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 26px; color: var(--cream); text-decoration: none; letter-spacing: 0.02em; }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a { color: rgba(251,250,246,.8); text-decoration: none; font-size: 15px; font-weight: 600; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: #fff; border-bottom-color: var(--teal-light); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 2px; }

/* buttons */
.btn { display: inline-block; background: var(--teal); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: 0.07em; text-transform: uppercase; padding: 15px 30px; border-radius: 2px; border: 2px solid var(--teal); cursor: pointer; font-family: inherit; transition: background .2s, border-color .2s; margin-top: 24px; }
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.hero .btn, .cta-band .btn { background: var(--teal-light); border-color: var(--teal-light); color: var(--navy); }
.hero .btn:hover, .cta-band .btn:hover { background: #fff; border-color: #fff; }
.cta-band .btn.ghost, .hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.actions.row { display: flex; gap: 14px; flex-wrap: wrap; }
.actions h2 { margin-top: 40px; }

/* hero */
.hero { background: var(--navy); color: var(--cream); padding: 90px 0 100px; }
.hero.small { padding: 70px 0 80px; }
.hero h1 { color: #fff; max-width: 860px; }
.hero .lead { color: rgba(251,250,246,.88); font-size: 20px; max-width: 640px; margin-top: 22px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.eyebrow.light { color: var(--teal-light); }
.page-title { padding: 64px 0 8px; }
.page-title .lead.dark { font-size: 19px; color: var(--muted); max-width: 640px; margin-top: 14px; }

/* sections */
.section { padding: 72px 0; }
.section.tinted { background: var(--sand); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 44px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0 8px; }
.cards3.two { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 26px 24px 28px; }
.card p { color: var(--ink); }
.card .btn { margin-top: 18px; }
.note { color: var(--muted); font-size: 15px; margin-top: 18px; max-width: 680px; }
.note.small { font-size: 14px; }
.section .btn { margin-top: 28px; }

/* about */
.about-grid { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: center; }
.portrait img { width: 100%; border-radius: 3px; display: block; }
.about-grid:has(.portrait[hidden]) { grid-template-columns: 1fr; }
.numbers { display: flex; gap: 40px; margin-top: 26px; }
.numbers b { display: block; font-family: 'Cormorant Garamond', serif; font-size: 40px; color: var(--teal); line-height: 1; }
.numbers span { font-size: 14px; color: var(--muted); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 30px 0 34px; }
.stat b { display: block; font-family: 'Cormorant Garamond', serif; font-size: 48px; line-height: 1; color: var(--teal); }
.stat span { display: block; margin-top: 8px; font-size: 15px; }
.stat i { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 6px; }
.stats.small { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 26px 0 8px; }
.stats.small b { font-size: 44px; }
.video { margin-top: 40px; max-width: 800px; }
.video video { width: 100%; border-radius: 3px; background: var(--navy); margin-top: 6px; }

/* logos */
.logos { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-end; margin-top: 12px; }
.logos figure { text-align: center; width: 180px; }
.logos img { max-height: 90px; width: auto; }
.logos figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--teal); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; }

/* cta band */
.cta-band { background: var(--navy); color: var(--cream); padding: 72px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(251,250,246,.85); }
.cta-band .actions.row { justify-content: center; }

/* cases */
.case { border-top: 1px solid var(--line); padding: 48px 0 52px; }
.case:first-child { border-top: none; padding-top: 8px; }
.case header h2 { margin-bottom: 4px; }
.case .meta { color: var(--muted); font-size: 15px; }
.triple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 26px; }
.triple h3 { font-family: 'Manrope', sans-serif; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
blockquote { margin-top: 30px; padding: 4px 0 4px 22px; border-left: 3px solid var(--teal-light); max-width: 720px; }
blockquote p { font-family: 'Cormorant Garamond', serif; font-size: 25px; line-height: 1.3; color: var(--navy); font-weight: 600; }
blockquote footer { margin-top: 8px; font-size: 14px; color: var(--muted); }
.closing { font-family: 'Cormorant Garamond', serif; font-size: 28px; color: var(--navy); font-weight: 600; margin-top: 20px; }

/* charts */
.chart { margin-top: 26px; max-width: 960px; }
.plot { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 14px 14px 6px; }
.plot svg { width: 100%; height: 100%; display: block; }
.axis { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; }
.legend { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 22px; height: 3px; vertical-align: middle; margin-right: 8px; border-radius: 2px; }
.k-total { background: rgba(19,41,61,.55); }
.k-ai { background: var(--teal); }
.dot { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--teal); border: 2px solid #fff; transform: translate(-50%, -50%); }
.dotlabel { position: absolute; transform: translate(-50%, -190%); font-size: 12px; font-weight: 600; color: var(--teal); white-space: nowrap; }
.yaxis { position: absolute; left: 20px; top: 14px; bottom: 6px; display: flex; flex-direction: column; justify-content: space-between; }
.yaxis em { font-style: normal; font-size: 12px; color: var(--muted); }

/* form */
.lead-form { max-width: 560px; margin-top: 26px; display: grid; gap: 18px; }
.lead-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--navy); }
.lead-form .opt { font-weight: 500; color: var(--muted); }
.lead-form input, .lead-form textarea { font: inherit; padding: 12px 14px; border: 1px solid #b9b2a2; border-radius: 2px; background: #fff; color: var(--ink); }
.lead-form .btn { justify-self: start; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }

/* contact */
.office { margin-top: 40px; }
.office p { color: var(--ink); }

/* footer */
.site-footer { background: var(--navy); color: rgba(251,250,246,.8); padding: 34px 0; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.site-footer a { color: #fff; }

@media (max-width: 860px) {
  .cols2, .triple, .cards3, .cards3.two { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 220px; }
  .section { padding: 54px 0; }
  .hero { padding: 64px 0 72px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-header nav { gap: 14px; }
  .stats { grid-template-columns: 1fr; }
  .dotlabel { transform: translate(-70%, -190%); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* article + blog list */
.article { padding: 56px 0 24px; }
.article .crumb { font-size: 14px; margin: 0 0 14px; }
.article .crumb a { color: var(--blue); text-decoration: none; }
.article h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(32px, 5vw, 46px); line-height: 1.12; color: var(--navy); margin: 0 0 14px; }
.article .meta { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.prose h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; color: var(--navy); margin: 38px 0 12px; }
.prose p, .prose li { font-size: 18px; line-height: 1.7; }
.prose ul { padding-left: 22px; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-top: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; gap: 6px; padding: 22px 0; text-decoration: none; color: var(--ink); }
.post-list a:hover strong { color: var(--blue); }
.post-list .d { font-size: 14px; color: var(--muted); }
.post-list strong { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; line-height: 1.2; color: var(--navy); }
.post-list .x { color: var(--muted); }

@media (max-width: 520px) {
  .site-header .bar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 0; }
  .site-header nav { gap: 16px; flex-wrap: wrap; }
}
