:root {
  --ink: #1b1c20;
  --muted: #575a63;
  --rule: #dcdee4;
  --accent: #30408c;
  --accent-dark: #24316d;
  --paper: #ffffff;
  --tint: #f5f6f9;
  --btn-bg: #30408c;
  --btn-bg-hover: #24316d;
  --field-bg: #ffffff;
  --field-border: #b9bcc6;
  color-scheme: light;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8e9ed;
    --muted: #a4a8b3;
    --rule: #34373e;
    --accent: #8d9ef2;
    --accent-dark: #b3bef7;
    --paper: #191b1e;
    --tint: #22252a;
    --btn-bg: #3d4fae;
    --btn-bg-hover: #4a5dc2;
    --field-bg: #202328;
    --field-border: #4b4f58;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e8e9ed;
  --muted: #a4a8b3;
  --rule: #34373e;
  --accent: #8d9ef2;
  --accent-dark: #b3bef7;
  --paper: #191b1e;
  --tint: #22252a;
  --btn-bg: #3d4fae;
  --btn-bg-hover: #4a5dc2;
  --field-bg: #202328;
  --field-border: #4b4f58;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
}
h1 { font-size: clamp(32px, 4.6vw, 48px); max-width: 20ch; }
h2 { font-size: clamp(25px, 3.2vw, 33px); margin-bottom: 14px; }
h3 { font-size: 20px; margin-bottom: 8px; }
p { margin: 0 0 14px; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip { position: absolute; left: -9999px; top: 0; background: var(--btn-bg); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { max-width: 1240px; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand img { display: block; height: 30px; width: auto; }
.brand img.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img.logo-light { display: none; } :root:not([data-theme="light"]) .brand img.logo-dark { display: block; } }
:root[data-theme="dark"] .brand img.logo-light { display: none; }
:root[data-theme="dark"] .brand img.logo-dark { display: block; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.nav a { white-space: nowrap; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav .nav-phone { color: var(--accent); white-space: nowrap; }
.menu-btn { display: none; background: none; border: 1px solid var(--rule); border-radius: 2px; padding: 8px 12px; font: 600 14px var(--sans); color: var(--ink); cursor: pointer; }

/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--rule); }
main > section:first-child { border-top: 0; }
.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.lead { font-size: 19px; color: var(--muted); max-width: 62ch; margin-top: 20px; }
.intro { color: var(--muted); max-width: 66ch; margin-bottom: 36px; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-block;
  padding: 13px 24px;
  font: 600 15px var(--sans);
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn-solid { background: var(--btn-bg); border-color: var(--btn-bg); color: #fff; }
.btn-solid:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); color: #fff; }
.btn-line { background: transparent; color: var(--accent); }
.btn-line:hover { background: var(--btn-bg); border-color: var(--btn-bg); color: #fff; }

/* Hero */
.hero { padding: 64px 0; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: end; }
.hero-facts { border-left: 3px solid var(--accent); padding-left: 24px; }
.hero-facts dl { margin: 0; }
.hero-facts dt { font-weight: 600; font-size: 15px; }
.hero-facts dd { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.hero-facts dd:last-child { margin-bottom: 0; }

/* Two-column service grid */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); }
.svc { padding: 26px 28px 22px 0; border-bottom: 1px solid var(--rule); }
.svc:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--rule); }
.svc p { color: var(--muted); margin: 0; font-size: 16px; }
.svc ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 16px; }
.svc li { margin-bottom: 6px; }
.svc li strong { color: var(--ink); font-weight: 600; }

.callout { margin-top: 32px; padding: 20px 24px; background: var(--tint); border-left: 3px solid var(--accent); }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }
.small { font-size: 14px; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--rule); position: relative; }
ul.checks li:first-child { border-top: 1px solid var(--rule); }
ul.checks li::before {
  content: ""; position: absolute; left: 4px; top: 21px;
  width: 10px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
ul.checks strong { display: block; font-weight: 600; }
ul.checks span { color: var(--muted); font-size: 16px; }
ul.checks.compact li { padding: 9px 0 9px 28px; line-height: 1.45; }
ul.checks.compact li::before { top: 16px; }
ul.checks.compact span { font-size: 15px; }

/* Table */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--rule); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { background: var(--tint); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
tbody th { font-family: var(--serif); font-weight: 400; font-size: 16px; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 0 24px 0 0; counter-increment: step; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  color: var(--accent);
  margin-bottom: 10px;
}
.steps p { color: var(--muted); font-size: 16px; margin: 0; }

/* FAQ */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--rule); }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 13px; font-size: 24px; font-weight: 400; color: var(--accent); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); padding-bottom: 6px; }

/* Resource links */
.res h3 { padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 0; }
ul.links { list-style: none; padding: 0; margin: 0; }
ul.links li { border-bottom: 1px solid var(--rule); }
ul.links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; color: var(--ink); text-decoration: none; }
ul.links a::after { content: "\2197"; color: var(--accent); font-size: 15px; }
ul.links a:hover { color: var(--accent); }

/* Home: about + practice rows */
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.areas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.area { display: grid; grid-template-columns: 240px 1fr 140px; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.area h3 { margin: 0; }
.area p { color: var(--muted); margin: 0; font-size: 16px; }
.area p + p { margin-top: 10px; }
.area .more { justify-self: end; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.area .more::after { content: " \2192"; }
.area .more:hover { text-decoration: underline; }

/* Post lists */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.post-list li { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.post-list .meta { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.post-list h3 { font-size: 21px; margin-bottom: 6px; }
.post-list h3 a { color: var(--ink); text-decoration: none; }
.post-list h3 a:hover { color: var(--accent); }
.post-list p { color: var(--muted); margin: 0; font-size: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filters button { background: none; border: 1px solid var(--rule); border-radius: 2px; padding: 7px 14px; font: 600 14px var(--sans); color: var(--muted); cursor: pointer; }
.filters button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

/* Article */
.page-head { padding: 56px 0 40px; }
.page-head .meta { color: var(--muted); font-size: 15px; margin-top: 16px; }
.crumbs { font-size: 14px; margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.prose { padding: 8px 0 64px; border-top: 0; }
.prose h2 { font-size: 26px; margin: 36px 0 12px; }
.prose h3 { font-size: 21px; margin: 30px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose li > ul, .prose li > ol { margin-top: 8px; }
.prose .disclaimer { font-size: 15px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 32px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
form input, form textarea {
  width: 100%;
  padding: 12px 14px;
  font: 16px var(--sans);
  color: var(--ink);
  border: 1px solid var(--field-border);
  border-radius: 2px;
  background: var(--field-bg);
}
form textarea { min-height: 140px; resize: vertical; }
form .hp { position: absolute; left: -9999px; }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); }
.consent input { width: auto; margin-top: 4px; flex: none; }
.form-note { font-size: 14px; color: var(--muted); }
.form-status { margin-top: 14px; font-weight: 600; }
.contact-card { border-left: 3px solid var(--accent); padding-left: 24px; }
.contact-card address { font-style: normal; line-height: 1.8; }
.contact-card h3 { margin-top: 26px; }

/* CTA band */
.cta { background: var(--tint); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { margin: 0; }
.cta .btns { margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 48px 0 32px; font-size: 15px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer address { font-style: normal; line-height: 1.8; }
.legal { border-top: 1px solid var(--rule); margin-top: 36px; padding-top: 20px; font-size: 13px; }

.wide-photo { margin: 0; }
.side-photo { margin-top: 40px; }
.wide-photo img { display: block; width: 100%; height: auto; }
.wide-photo figcaption { font-size: 14px; color: var(--muted); padding-top: 10px; border-top: 5px solid var(--accent); }

.hero-media { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 48px; }
.hero-media h1 { font-size: clamp(32px, 4vw, 44px); }
.hero-wide-photo { margin: 0; align-self: center; }
.hero-wide-photo img { display: block; width: 100%; height: auto; }
.hero-wide-photo figcaption { font-size: 14px; color: var(--muted); padding-top: 10px; border-top: 5px solid var(--accent); }

/* Home hero */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.home-hero { padding: 64px 0 0; }
.home-hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; }
.home-hero h1 { font-size: clamp(34px, 4.6vw, 54px); max-width: 17ch; line-height: 1.14; text-wrap: balance; }
.home-hero h1 .rotator { text-wrap: nowrap; }
.rotator { display: block; color: var(--accent); }
.rot-word { display: inline-block; padding-bottom: 6px; border-bottom: 5px solid var(--accent); transition: opacity .3s ease, transform .3s ease; }
.rot-word.out { opacity: 0; transform: translateY(-14px); }
.rot-word.in { opacity: 0; transform: translateY(14px); transition: none; }
.hero-photo { margin: 0; position: relative; justify-self: end; width: 100%; max-width: 420px; }
.hero-photo img { display: block; width: 100%; height: auto; }
.hero-photo figcaption { display: flex; justify-content: space-between; align-items: baseline; border-top: 5px solid var(--accent); padding-top: 10px; margin-top: 0; font-size: 15px; }
.hero-photo figcaption span { color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 64px; border-top: 1px solid var(--rule); }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 22px 20px 26px; text-decoration: none; color: var(--ink); border-right: 1px solid var(--rule); position: relative; transition: background-color .2s; }
.tile:first-child { padding-left: 0; }
.tile:last-child { border-right: 0; }
.tile::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.tile:first-child::before { left: 0; }
.tile strong { font-family: var(--serif); font-weight: 400; font-size: 18px; white-space: nowrap; }
.tile strong::after { content: " \2192"; color: var(--accent); font-family: var(--sans); font-size: 16px; display: inline-block; transition: transform .2s; }
.tile span { color: var(--muted); font-size: 14px; }
.tile:hover { background: var(--tint); }
.tile:hover::before { transform: scaleX(1); }
.tile:hover strong::after { transform: translateX(4px); }
.tile:hover:first-child { padding-left: 12px; }
.about-split h2 { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .rot-word, .tile, .tile::before, .tile strong::after { transition: none; } }
@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { border-bottom: 1px solid var(--rule); }
  .tile:first-child { padding-left: 20px; }
}
@media (max-width: 860px) {
  .home-hero { padding-top: 40px; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { justify-self: start; max-width: 340px; }
  .tiles { margin-top: 48px; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile:first-child { padding: 16px 0; border-right: 0; }
  .tile:hover:first-child { padding-left: 0; }
}

@media (max-width: 1180px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--accent); }
  .nav .nav-phone { padding-top: 14px; }
}
@media (max-width: 860px) {
  section { padding: 48px 0; }
  .hero { padding: 44px 0 48px; }
  .hero-grid, .two-col, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc, .svc:nth-child(even) { padding: 22px 0; border-left: 0; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .area { grid-template-columns: 1fr; gap: 10px; }
  .area .more { justify-self: start; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { padding: 8px 16px 20px; }
  .brand img { height: 26px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 0; border-left: 0; }
  .btn { width: 100%; text-align: center; }
  .cta .btns { width: 100%; }
}
