:root {
  --ink: #15171a;
  --muted: #5e6670;
  --paper: #fbfbfa;
  --white: #ffffff;
  --line: #dfe3e7;
  --soft-blue: #eaf1f7;
  --blue: #174c93;
  --red: #c52235;
  --green: #2d6e62;
  --gold: #9a6c20;
  --display: Baskerville, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: Aptos, "Segoe UI", Helvetica, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; }
svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.site-header {
  position: relative;
  z-index: 30;
  min-height: 78px;
  padding: 0 max(24px, calc((100% - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(21,23,26,.1);
}
.brand { display: inline-flex; align-items: center; width: 176px; flex: 0 0 auto; }
.brand img { width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: .91rem; font-weight: 650; }
.site-nav a { text-decoration: none; padding: 27px 0 25px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--red); border-color: var(--red); }
.site-nav .nav-action { padding: 9px 16px; border: 1px solid var(--ink); border-radius: 4px; }
.site-nav .nav-action:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.menu-button { display: none; border: 0; background: transparent; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.menu-button svg { width: 24px; height: 24px; }
.menu-close { display: none; }

.hero {
  position: relative;
  min-height: min(680px, calc(100vh - 78px));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #1a2633;
  color: var(--white);
}
.hero-image, .hero-wash { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center; }
.hero-wash { background: rgba(13, 24, 37, .64); clip-path: polygon(0 0, 64% 0, 50% 100%, 0 100%); }
.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 48px));
  margin-left: max(24px, calc((100% - var(--max)) / 2));
  padding: 72px 0 96px;
}
.eyebrow { margin: 0 0 13px; color: var(--red); font-size: .77rem; line-height: 1.3; font-weight: 780; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: #ff7584; }
.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 6.3rem);
  line-height: .92;
  font-weight: 500;
  letter-spacing: 0;
  text-wrap: balance;
}
.hero-content > p:not(.eyebrow) { max-width: 590px; margin: 27px 0 0; font-size: 1.14rem; color: rgba(255,255,255,.84); }
.hero-actions { margin-top: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 20px; border: 1px solid transparent; border-radius: 4px; font-size: .92rem; font-weight: 750; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: var(--white); }
.button-primary:hover { background: #a7192a; }
.button-light { background: var(--white); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--white); font-weight: 700; }
.hero-note { position: absolute; z-index: 2; right: max(24px, calc((100% - var(--max)) / 2)); bottom: 24px; margin: 0; color: rgba(255,255,255,.66); font-size: .77rem; letter-spacing: .11em; text-transform: uppercase; writing-mode: vertical-rl; }

.practice-library {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 78px 0 84px;
  display: grid;
  grid-template-columns: minmax(230px, .7fr) minmax(0, 1.6fr);
  gap: clamp(40px, 7vw, 100px);
  border-bottom: 1px solid var(--line);
}
.section-intro { max-width: 700px; }
.section-intro h2 { margin: 0; font-family: var(--display); font-size: clamp(2.35rem, 5vw, 4.4rem); line-height: 1; font-weight: 500; letter-spacing: 0; text-wrap: balance; }
.section-intro > p:last-child { margin: 20px 0 0; color: var(--muted); }
.library-intro { position: sticky; top: 24px; align-self: start; }
.library-shell { border-top: 2px solid var(--ink); }
.library-group { border-bottom: 1px solid var(--line); }
.library-group summary { list-style: none; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font-weight: 780; }
.library-group summary::-webkit-details-marker { display: none; }
.summary-mark { position: relative; width: 16px; height: 16px; flex: 0 0 auto; }
.summary-mark::before, .summary-mark::after { content: ""; position: absolute; background: var(--ink); }
.summary-mark::before { left: 0; top: 7px; width: 16px; height: 1px; }
.summary-mark::after { left: 7px; top: 0; width: 1px; height: 16px; transition: transform .2s ease; }
.library-group[open] .summary-mark::after { transform: rotate(90deg); }
.library-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding: 0 0 18px; }
.library-link { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; color: #30353a; border-top: 1px solid #edf0f2; text-decoration: none; font-size: .93rem; line-height: 1.35; }
.library-link span { overflow-wrap: anywhere; }
.library-link svg { flex: 0 0 auto; color: var(--red); transition: transform .2s ease; }
.library-link:hover { color: var(--red); }
.library-link:hover svg { transform: translateX(4px); }
.published-list:empty { display: none; }

.solutions { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 110px 0; }
.solutions > .section-intro { margin-bottom: 56px; }
.solution-list { border-top: 1px solid var(--ink); }
.solution-row { --accent: var(--blue); min-height: 138px; display: grid; grid-template-columns: 72px minmax(0,1fr) 60px; align-items: center; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative; }
.solution-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .25s ease; }
.solution-row:hover::before { transform: scaleY(1); }
.solution-blue { --accent: var(--blue); }.solution-red { --accent: var(--red); }.solution-green { --accent: var(--green); }.solution-gold { --accent: var(--gold); }
.solution-index { color: var(--accent); font-family: var(--display); font-size: 1.1rem; }
.solution-row h3 { margin: 0; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 500; }
.solution-row p { margin: 5px 0 0; color: var(--muted); }
.solution-arrow { justify-self: end; color: var(--accent); }
.solution-arrow svg { width: 28px; height: 28px; }

.practice-focus { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 560px; background: #173854; color: var(--white); }
.focus-image { min-height: 440px; overflow: hidden; }
.focus-image img { width: 100%; height: 100%; object-fit: cover; }
.focus-copy { align-self: center; padding: clamp(48px, 8vw, 120px); }
.focus-copy .eyebrow { color: #ff7d8a; }
.focus-copy h2 { margin: 0; font-family: var(--display); font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1; font-weight: 500; }
.focus-copy p:not(.eyebrow) { margin: 24px 0 0; color: rgba(255,255,255,.78); }
.focus-links { margin-top: 30px; display: grid; gap: 13px; }
.focus-links a { width: fit-content; display: inline-flex; align-items: center; gap: 10px; font-weight: 730; }
.closing-band { padding: 38px max(24px, calc((100% - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--red); color: var(--white); }
.closing-band p { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.15; }

.site-footer { padding: 72px max(24px, calc((100% - var(--max)) / 2)) 28px; display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 60px; background: #111417; color: rgba(255,255,255,.78); }
.site-footer img { width: 165px; filter: invert(1); }
.site-footer h2 { margin: 0 0 14px; color: var(--white); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer a { display: block; width: fit-content; margin: 8px 0; text-decoration: none; }
.site-footer a:hover { color: #ff7d8a; }
.footer-brand p { max-width: 360px; margin-top: 20px; }
.copyright { grid-column: 1 / -1; margin: 20px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .78rem; }

.article-hero, .page-hero { padding: clamp(72px, 10vw, 140px) max(24px, calc((100% - var(--max)) / 2)); background: var(--soft-blue); border-bottom: 1px solid #cdd8e1; }
.article-hero > div, .page-hero > div { max-width: 920px; }
.article-hero h1, .page-hero h1 { margin: 13px 0 0; font-family: var(--display); font-size: clamp(2.65rem, 6vw, 5.7rem); line-height: .98; font-weight: 500; text-wrap: balance; }
.article-hero > div > p:last-child, .page-hero > div > p:last-child { max-width: 760px; margin: 25px 0 0; color: var(--muted); font-size: 1.08rem; }
.back-link { display: inline-block; margin-bottom: 36px; color: var(--blue); font-size: .87rem; font-weight: 730; }
.article-layout { width: min(1040px, calc(100% - 48px)); margin: 0 auto; padding: 82px 0 110px; display: grid; grid-template-columns: 180px minmax(0, 730px); justify-content: space-between; gap: 70px; }
.article-aside { align-self: start; position: sticky; top: 24px; padding-top: 14px; border-top: 3px solid var(--red); }
.article-aside span { font-family: var(--display); font-size: 1.6rem; }
.article-aside p { margin: 5px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.article-body { min-width: 0; font-family: var(--display); font-size: 1.11rem; line-height: 1.75; }
.article-body > :first-child { margin-top: 0; }
.article-body h2, .article-body h3, .page-content h2, .page-content h3 { margin: 2.3em 0 .65em; color: var(--ink); font-family: var(--body); line-height: 1.2; font-weight: 780; }
.article-body h2, .page-content h2 { font-size: 1.7rem; }
.article-body h3, .page-content h3 { font-size: 1.25rem; }
.article-body p, .article-body li { color: #31353a; }
.article-body a, .page-content a { color: var(--blue); }
.article-body blockquote { margin: 2.2em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--red); color: #343a40; font-size: 1.25rem; font-style: italic; }
.article-body img, .page-content img { max-height: 620px; width: auto; margin: 34px auto; border: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; font-family: var(--body); font-size: .92rem; }
.data-table th, .data-table td { padding: 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-next, .page-callout { padding: 38px max(24px, calc((100% - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #e9ecef; }
.article-next p, .page-callout p { margin: 0; font-family: var(--display); font-size: 1.5rem; }
.page-content { width: min(920px, calc(100% - 48px)); margin: 0 auto; padding: 82px 0 110px; }
.page-content > :first-child { margin-top: 0; }
.page-content p, .page-content li { color: #343a40; }
.archive-list { border-top: 2px solid var(--ink); }

@media (max-width: 900px) {
  .site-header { min-height: 70px; padding-inline: 20px; }
  .brand { width: 150px; }
  .menu-button { display: inline-flex; }
  .site-nav { display: none; position: fixed; inset: 70px 0 0; padding: 28px 24px 48px; background: var(--white); align-items: stretch; flex-direction: column; gap: 0; overflow-y: auto; }
  .menu-open .site-nav { display: flex; }
  .menu-open .menu-open { display: none; }
  .menu-open .menu-close { display: inline-flex; }
  .site-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 1.65rem; font-weight: 500; }
  .site-nav .nav-action { margin-top: 18px; padding: 12px 16px; text-align: center; font-family: var(--body); font-size: 1rem; }
  .hero { min-height: 670px; }
  .hero-image { object-position: 41% center; }
  .hero-wash { background: rgba(13,24,37,.69); clip-path: none; }
  .hero-content { width: calc(100% - 40px); margin-left: 20px; padding: 76px 0 110px; }
  .hero h1 { font-size: clamp(3rem, 12vw, 5rem); max-width: 690px; }
  .hero-note { display: none; }
  .practice-library { grid-template-columns: 1fr; gap: 35px; padding: 64px 0 72px; }
  .library-intro { position: static; }
  .practice-focus { grid-template-columns: 1fr; }
  .focus-image { min-height: 360px; }
  .site-footer { grid-template-columns: 1.5fr 1fr 1fr; gap: 35px; }
  .article-layout { grid-template-columns: 1fr; gap: 34px; }
  .article-aside { position: static; max-width: 260px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { min-height: 660px; }
  .hero-content > p:not(.eyebrow) { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .practice-library, .solutions, .article-layout, .page-content { width: calc(100% - 36px); }
  .practice-library { padding-block: 54px 60px; }
  .section-intro h2 { font-size: 2.65rem; }
  .library-links { grid-template-columns: 1fr; gap: 0; }
  .library-group summary { min-height: 56px; }
  .solution-row { min-height: 116px; grid-template-columns: 42px minmax(0,1fr) 28px; gap: 10px; }
  .solution-row p { font-size: .88rem; line-height: 1.45; }
  .solution-arrow svg { width: 22px; height: 22px; }
  .focus-image { min-height: 300px; }
  .focus-copy { padding: 54px 20px; }
  .closing-band, .article-next, .page-callout { align-items: flex-start; flex-direction: column; padding-inline: 20px; }
  .site-footer { grid-template-columns: 1fr 1fr; padding-inline: 20px; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .article-hero, .page-hero { padding: 70px 18px; }
  .article-hero h1, .page-hero h1 { font-size: 2.75rem; overflow-wrap: anywhere; }
  .article-layout { padding: 58px 0 80px; }
  .article-body { font-size: 1.05rem; }
  .data-table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
