/*
  Harborstone's standalone visual system. The site intentionally uses system fonts,
  local CSS, and a locally packaged fictional-team image so it has no external asset dependency.
*/

:root {
  --navy-950: #0b202d;
  --navy-900: #102b3a;
  --navy-800: #173c4d;
  --teal-700: #1f716e;
  --teal-500: #4ea8a1;
  --teal-100: #dcefed;
  --sand-200: #e9dcc4;
  --sand-100: #f3ecdf;
  --paper: #fbfaf6;
  --white: #ffffff;
  --ink: #17313c;
  --ink-soft: #52666f;
  --line: #dbe1df;
  --error: #8b2e2e;
  --success: #155f4b;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: 1180px;
  --shadow: 0 24px 60px rgba(11, 32, 45, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #dcae5a;
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy-950);
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.demo-disclosure {
  position: relative;
  z-index: 40;
  color: var(--white);
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.disclosure-inner {
  display: grid;
  min-height: 58px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding-block: 10px;
}

.disclosure-label {
  padding: 5px 8px;
  color: var(--navy-950);
  background: var(--sand-200);
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.disclosure-inner p {
  margin: 0;
  color: #f2f5f3;
  font-size: 0.77rem;
  line-height: 1.45;
}

.disclosure-inner a {
  color: #bce0dc;
  border-bottom: 1px solid #6da9a3;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-header {
  position: relative;
  z-index: 30;
  background: rgba(251, 250, 246, 0.96);
  border-bottom: 1px solid rgba(16, 43, 58, 0.1);
}

.header-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-900);
  border-radius: 3px 3px 14px 14px;
  box-shadow: inset 0 -6px 0 rgba(78, 168, 161, 0.38);
}

.brand-mark::before {
  position: absolute;
  top: 7px;
  left: 8px;
  width: 25px;
  height: 1px;
  background: var(--teal-500);
  content: "";
}

.brand-mark span {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 1.45rem;
}

.brand-name strong,
.brand-name small {
  display: block;
}

.brand-name strong {
  color: var(--navy-900);
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.1;
}

.brand-name small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 720;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.8rem;
  font-weight: 720;
}

.site-nav a:not(.nav-cta) {
  position: relative;
  padding-block: 10px;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--teal-700);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 11px 17px;
  color: var(--white);
  background: var(--navy-900);
  border-radius: 4px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin-block: 4px;
  background: var(--navy-900);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16, 43, 58, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(16, 43, 58, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 80px 80px;
}

.hero::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 100%;
  background: var(--sand-100);
  content: "";
}

.hero::after {
  position: absolute;
  top: 60px;
  right: calc(50% - 690px);
  width: 410px;
  height: 410px;
  border: 1px solid rgba(31, 113, 110, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(31, 113, 110, 0.035), 0 0 0 108px rgba(31, 113, 110, 0.022);
  content: "";
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(0, 0.97fr) minmax(460px, 0.83fr);
  align-items: center;
  gap: 88px;
  padding-block: 84px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 18px;
  color: var(--teal-700);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  color: var(--navy-900);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 690px;
  font-size: clamp(3.9rem, 6.6vw, 6.65rem);
}

.hero-lede {
  max-width: 610px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.03rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 780;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--teal-700);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #185d5b;
}

.button-secondary {
  color: var(--navy-900);
  background: transparent;
  border-color: #b5c1c1;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--white);
  border-color: var(--teal-700);
}

.hero-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 34px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-scope li {
  position: relative;
  padding-left: 14px;
  color: #435b64;
  font-size: 0.71rem;
  font-weight: 700;
}

.hero-scope li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--teal-500);
  border-radius: 50%;
  content: "";
}

.matter-board {
  position: relative;
  padding: 32px;
  background: var(--white);
  border: 1px solid rgba(16, 43, 58, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(12px) rotate(1.15deg);
}

.matter-board::before {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;
  left: 14px;
  pointer-events: none;
  border: 1px solid rgba(16, 43, 58, 0.065);
  border-radius: 4px;
  content: "";
}

.board-heading,
.board-steps,
.board-note,
.board-track {
  position: relative;
  z-index: 1;
}

.board-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.board-heading span,
.board-heading strong {
  display: block;
}

.board-heading div > span {
  color: var(--teal-700);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.board-heading strong {
  margin-top: 7px;
  color: var(--navy-900);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.sample-badge {
  padding: 5px 8px;
  color: var(--navy-900);
  background: var(--sand-100);
  border: 1px solid var(--sand-200);
  border-radius: 3px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-track {
  height: 4px;
  margin: 28px 0 22px;
  overflow: hidden;
  background: #e6ebea;
  border-radius: 999px;
}

.track-fill {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--teal-700);
}

.board-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.board-steps li {
  display: grid;
  min-height: 78px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 2px;
  border-bottom: 1px solid #e5e9e7;
}

.board-steps li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--ink-soft);
  background: #f1f4f2;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 800;
}

.board-steps .is-current > span {
  color: var(--white);
  background: var(--teal-700);
}

.board-steps strong,
.board-steps small {
  display: block;
}

.board-steps strong {
  color: var(--navy-900);
  font-size: 0.83rem;
}

.board-steps small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.board-steps b {
  color: #718187;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.board-steps .is-current b {
  color: var(--teal-700);
}

.board-note {
  margin: 18px 0 0;
  color: #718187;
  font-size: 0.65rem;
  line-height: 1.5;
}

.section {
  padding: 116px 0;
}

.section h2 {
  font-size: clamp(2.75rem, 5vw, 5rem);
}

.section-heading {
  margin-bottom: 58px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
  align-items: end;
  gap: 74px;
}

.split-heading > p {
  margin: 0 0 3px;
  color: var(--ink-soft);
}

.practice-section {
  background: var(--white);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.practice-card {
  position: relative;
  min-height: 290px;
  padding: 32px;
  overflow: hidden;
  background: #f5f4ee;
  border: 1px solid #e6e4dd;
  border-radius: 6px;
}

.practice-card-featured {
  min-height: 450px;
  grid-row: span 2;
  color: var(--white);
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.practice-card-featured::after {
  position: absolute;
  right: -130px;
  bottom: -150px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(120, 197, 188, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(120, 197, 188, 0.04), 0 0 0 76px rgba(120, 197, 188, 0.025);
  content: "";
}

.card-number {
  position: absolute;
  top: 28px;
  right: 28px;
  color: #87969a;
  font-family: var(--serif);
  font-size: 0.85rem;
}

.practice-card-featured .card-number {
  color: #78aaa5;
}

.practice-card .card-kicker {
  margin-right: 48px;
}

.practice-card-featured .card-kicker {
  color: #89c0ba;
}

.practice-card h3 {
  position: relative;
  z-index: 1;
  max-width: 410px;
  margin: 0;
  color: var(--navy-900);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.8vw, 2.5rem);
  font-weight: 550;
  line-height: 1.06;
}

.practice-card-featured h3 {
  color: var(--white);
}

.practice-card p:not(.card-kicker) {
  position: relative;
  z-index: 1;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.practice-card-featured p:not(.card-kicker) {
  color: #b8c8ca;
}

.practice-card ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  margin: 28px 0 0;
  padding: 0;
  color: #dbe6e5;
  font-size: 0.74rem;
  list-style: none;
}

.practice-card li {
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.approach-section {
  color: var(--white);
  background: var(--navy-950);
}

.approach-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.87fr) minmax(520px, 1.13fr);
  align-items: center;
  gap: 100px;
}

.approach-section .eyebrow {
  color: #78bcb5;
}

.approach-section h2 {
  color: var(--white);
}

.approach-intro > p:not(.eyebrow) {
  max-width: 560px;
  margin: 28px 0 0;
  color: #aabfc1;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding-bottom: 5px;
  color: #bfe1dd;
  border-bottom: 1px solid #4e7c79;
  font-size: 0.76rem;
  font-weight: 750;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translateX(4px);
}

.audience-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.audience-panels article {
  min-height: 385px;
  padding: 34px;
  background: #112e3d;
}

.audience-panels article:first-child {
  border-radius: 4px 0 0 4px;
}

.audience-panels article:last-child {
  border-radius: 0 4px 4px 0;
}

.audience-label {
  color: #81bbb6;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.audience-panels h3 {
  margin: 52px 0 0;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.1;
}

.audience-panels ul {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  color: #afc0c2;
  font-size: 0.75rem;
  list-style: none;
}

.audience-panels li {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.principles-section {
  background: var(--sand-100);
}

.centered-heading {
  max-width: 790px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.principles-grid article {
  min-height: 280px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(16, 43, 58, 0.1);
  border-radius: 6px;
}

.principles-grid article > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--white);
  background: var(--teal-700);
  border-radius: 50%;
  font-family: var(--serif);
}

.principles-grid h3 {
  margin: 52px 0 0;
  color: var(--navy-900);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 550;
  line-height: 1.12;
}

.principles-grid p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.team-section {
  position: relative;
  overflow: hidden;
  background: #f7f5ef;
}

.team-section::before {
  position: absolute;
  top: 0;
  right: max(24px, calc((100vw - var(--shell)) / 2));
  width: 96px;
  height: 1px;
  background: var(--teal-500);
  content: "";
}

.team-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.7fr);
  align-items: end;
  gap: 72px;
}

.team-intro h2 {
  max-width: 760px;
}

.team-disclosure {
  padding: 22px 24px;
  background: var(--white);
  border-top: 3px solid var(--teal-700);
  box-shadow: 0 12px 34px rgba(11, 32, 45, 0.07);
}

.team-disclosure span {
  color: var(--navy-900);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-disclosure p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.55;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 56px;
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(210px, 0.82fr) minmax(250px, 1fr);
  min-height: 480px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(16, 43, 58, 0.11);
  border-radius: 5px;
  box-shadow: 0 18px 44px rgba(11, 32, 45, 0.08);
}

.profile-photo {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--navy-900);
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(0.98);
}

.profile-photo-left img {
  object-position: left center;
}

.profile-photo-right img {
  object-position: right center;
}

.profile-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 66%, rgba(11, 32, 45, 0.66));
  content: "";
  pointer-events: none;
}

.profile-photo figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 1;
  color: var(--white);
  font-size: 0.61rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.profile-body {
  display: flex;
  flex-direction: column;
  padding: 34px 30px 28px;
}

.profile-role {
  margin: 0;
  color: var(--teal-700);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.profile-role span {
  display: block;
  margin-top: 7px;
  color: #6b7779;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.profile-body h3 {
  margin: 20px 0 0;
  color: var(--navy-900);
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.85rem);
  font-weight: 550;
  line-height: 1.02;
}

.profile-body > p:not(.profile-role, .profile-boundary) {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.profile-focus {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--ink);
  font-size: 0.7rem;
  list-style: none;
}

.profile-focus li {
  position: relative;
  padding-left: 17px;
}

.profile-focus li::before {
  position: absolute;
  top: 0.69em;
  left: 0;
  width: 7px;
  height: 1px;
  background: var(--teal-500);
  content: "";
}

.profile-boundary {
  margin: auto 0 0;
  padding-top: 24px;
  color: #748183;
  border-top: 1px solid var(--line);
  font-size: 0.62rem;
  line-height: 1.5;
}

.process-section {
  background: var(--white);
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(520px, 1.25fr);
  align-items: start;
  gap: 110px;
}

.process-heading {
  position: sticky;
  top: 38px;
}

.process-heading p:not(.eyebrow) {
  margin: 28px 0 0;
  color: var(--ink-soft);
}

.process-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.process-list li > span {
  color: var(--teal-700);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.process-list h3 {
  margin: 0;
  color: var(--navy-900);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 550;
  line-height: 1.15;
}

.process-list p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.demo-contact-section {
  padding-top: 0;
  background: var(--white);
}

.demo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.72fr);
  align-items: center;
  gap: 80px;
  padding: 68px;
  color: var(--white);
  background: var(--navy-900);
  border-radius: 8px;
}

.demo-panel .eyebrow {
  color: #8cc8c2;
}

.demo-panel h2 {
  max-width: 650px;
  color: var(--white);
}

.demo-copy > p:not(.eyebrow) {
  max-width: 630px;
  margin: 26px 0 0;
  color: #b8c9ca;
}

.retilaw-note {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.retilaw-note > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--navy-900);
  background: var(--teal-100);
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 700;
}

.retilaw-note p {
  margin: 0;
  color: #afc2c4;
  font-size: 0.75rem;
}

.retilaw-note a {
  color: #d5efec;
  border-bottom: 1px solid #6da9a3;
  font-weight: 750;
}

.demo-form {
  display: grid;
  gap: 9px;
  padding: 30px;
  color: var(--ink);
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 22px 55px rgba(4, 19, 28, 0.26);
}

.form-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.form-heading h3 {
  margin: 0;
  color: var(--navy-900);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
}

.form-heading span {
  padding: 4px 7px;
  color: #1a5f59;
  background: var(--teal-100);
  border-radius: 3px;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-transform: uppercase;
}

.demo-form label {
  margin-top: 7px;
  color: var(--navy-900);
  font-size: 0.68rem;
  font-weight: 780;
}

.demo-form input,
.demo-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f8f8f4;
  border: 1px solid #ccd5d3;
  border-radius: 3px;
  outline: none;
}

.demo-form input:focus,
.demo-form select:focus {
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px rgba(31, 113, 110, 0.14);
}

.demo-form [aria-invalid="true"] {
  border-color: var(--error);
}

.demo-form .button {
  width: 100%;
  margin-top: 16px;
}

.form-help,
.form-status {
  margin: 2px 0 0;
  font-size: 0.65rem;
  line-height: 1.45;
}

.form-help {
  color: #738187;
}

.form-status {
  padding: 10px;
  color: var(--success);
  background: #e8f4ee;
  border: 1px solid #bfddcf;
  border-radius: 3px;
}

.form-status.is-error {
  color: var(--error);
  background: #f8e9e7;
  border-color: #e7c5bf;
}

.site-footer {
  color: #b7c5c7;
  background: var(--navy-950);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: end;
  gap: 80px;
  padding-block: 66px 52px;
}

.brand-footer .brand-mark {
  color: var(--navy-950);
  background: #9dcfc9;
}

.brand-footer .brand-name strong {
  color: var(--white);
}

.brand-footer .brand-name small {
  color: #8ea3a6;
}

.footer-main > div > p {
  max-width: 470px;
  margin: 22px 0 0;
  color: #83989b;
  font-size: 0.76rem;
}

.footer-main nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  justify-self: end;
}

.footer-main nav a {
  color: #a9babd;
  font-size: 0.72rem;
}

.footer-main nav a:hover,
.footer-main nav a:focus-visible {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #6f8588;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.64rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1040px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.78fr);
    gap: 48px;
  }

  .approach-layout,
  .process-layout {
    gap: 64px;
  }

  .profile-card {
    grid-template-columns: minmax(180px, 0.72fr) minmax(220px, 1fr);
  }

  .profile-body {
    padding: 30px 25px 26px;
  }

  .demo-panel {
    gap: 50px;
    padding: 52px;
  }
}

@media (max-width: 860px) {
  .disclosure-inner {
    grid-template-columns: auto 1fr;
  }

  .disclosure-inner a {
    grid-column: 2;
    justify-self: start;
    margin-top: -6px;
  }

  .js .menu-toggle {
    display: block;
  }

  .site-nav {
    gap: 18px;
  }

  .js .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: min(84vw, 360px);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    padding: 34px;
    background: var(--paper);
    box-shadow: -22px 0 55px rgba(7, 26, 36, 0.22);
    transform: translateX(110%);
    transition: transform 220ms ease;
  }

  .js .site-nav.is-open {
    transform: translateX(0);
    transition: none;
  }

  .js .site-nav a {
    padding: 14px 12px;
  }

  .menu-toggle[aria-expanded="true"] {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 45;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-of-type(2) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] > span:nth-of-type(3) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-of-type(4) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero::before {
    width: 100%;
    height: 42%;
    top: auto;
    bottom: 0;
  }

  .hero-layout,
  .approach-layout,
  .process-layout,
  .demo-panel {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    padding-block: 78px;
  }

  .matter-board {
    max-width: 620px;
    transform: none;
  }

  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .practice-card-featured {
    grid-row: auto;
    grid-column: span 2;
  }

  .approach-layout {
    gap: 54px;
  }

  .team-intro {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .team-disclosure {
    max-width: 640px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1fr);
    min-height: 440px;
  }

  .process-heading {
    position: static;
  }

  .demo-panel {
    padding: 56px;
  }

  .demo-form {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 30px), var(--shell));
  }

  .disclosure-inner {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding-block: 13px;
  }

  .disclosure-inner a {
    margin-top: 0;
  }

  .header-inner {
    min-height: 74px;
  }

  .brand-mark {
    width: 37px;
    height: 42px;
  }

  .brand-name strong {
    font-size: 1rem;
  }

  .brand-name small {
    font-size: 0.56rem;
  }

  .site-nav:not(.is-open) {
    flex-wrap: wrap;
  }

  .hero {
    min-height: 0;
  }

  .hero-layout {
    min-height: 0;
    gap: 60px;
    padding-block: 66px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 15.6vw, 5.25rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-scope {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .matter-board {
    padding: 25px 23px;
  }

  .board-steps li {
    grid-template-columns: 30px 1fr;
  }

  .board-steps b {
    display: none;
  }

  .section {
    padding: 82px 0;
  }

  .section h2 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .practice-grid,
  .audience-panels,
  .principles-grid,
  .profile-card,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .practice-card,
  .practice-card-featured {
    min-height: 0;
    grid-column: auto;
    padding: 27px;
  }

  .practice-card-featured {
    min-height: 420px;
  }

  .audience-panels article {
    min-height: 0;
    padding: 28px;
  }

  .audience-panels article:first-child,
  .audience-panels article:last-child {
    border-radius: 3px;
  }

  .audience-panels h3 {
    margin-top: 40px;
  }

  .principles-grid article {
    min-height: 0;
  }

  .principles-grid h3 {
    margin-top: 38px;
  }

  .team-grid {
    margin-top: 42px;
  }

  .team-disclosure {
    padding: 20px;
  }

  .profile-card {
    min-height: 0;
  }

  .profile-photo {
    min-height: 430px;
  }

  .profile-body {
    min-height: 430px;
    padding: 32px 25px 26px;
  }

  .process-list li {
    grid-template-columns: 40px 1fr;
    gap: 14px;
  }

  .demo-contact-section {
    padding-bottom: 0;
  }

  .demo-panel {
    width: 100%;
    gap: 44px;
    padding: 62px 22px;
    border-radius: 0;
  }

  .demo-form {
    padding: 24px 20px;
  }

  .form-heading {
    display: grid;
  }

  .form-heading span {
    justify-self: start;
  }

  .footer-main {
    align-items: start;
    gap: 42px;
  }

  .footer-main nav {
    justify-self: start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-block: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
