:root {
  color-scheme: light;
  --ink: #08132f;
  --deep: #001837;
  --paper: #fff;
  --white: #fff;
  --muted: #3b3f4a;
  --accent: #f8512f;
  --edge: #ebebeb;
  --hero-background: var(--deep);
  --hero-heading: #ebe8df;
  --hero-emphasis: var(--hero-heading);
  --hero-panel: #dbd0bd;
  --hero-panel-mid: #87959e;
  --hero-panel-dark: #526879;
  --hero-line: rgb(255 255 255 / 26%);
  --portrait-blue: #d8e4ed;
  --portrait-dark: #183a58;
  --portrait-slate: #9db1bf;
  font-family: 'Aptos', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .12em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(88rem, calc(100% - clamp(2rem, 9vw, 10rem))); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: .75rem; left: .75rem; padding: .6rem; background: var(--white); transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }
.site-header { background: var(--paper); border-bottom: 1px solid var(--edge); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 1.2rem; flex-wrap: wrap; }
.brand-block p { margin-top: .24rem; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.brand { display: inline-flex; max-width: 100%; align-items: baseline; gap: .65rem; text-decoration: none; }
.brand-name { font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 600; letter-spacing: -.045em; white-space: nowrap; }
.brand-name strong { font-size: .912em; font-weight: inherit; }
.brand-a {
  display: inline-block;
  width: .8ex;
  height: 1ex;
  margin-inline: .025em;
  color: transparent;
  background-color: #ef4623;
  clip-path: polygon(34% 0, 66% 0, 100% 100%, 71% 100%, 50% 26%, 29% 100%, 0 100%);
  vertical-align: baseline;
  overflow: hidden;
}
.brand small { color: var(--muted); white-space: nowrap; font-size: .75rem; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem clamp(.9rem, 2vw, 1.7rem); font-size: .9rem; font-weight: 620; }
nav a { text-decoration: none; }
nav a:hover, .header-inner nav a[aria-current] { text-decoration: underline; }
.header-inner nav a.bridgeway-portal-link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .42rem .8rem; border: 1px solid var(--deep); border-radius: .3rem; color: var(--deep); }
.header-inner nav a.bridgeway-portal-link:is(:hover, [aria-current="page"]) { background: var(--deep); color: var(--white); text-decoration: none; }
.hero { color: var(--white); background: var(--hero-background); }
.homepage-hero { position: relative; isolation: isolate; }
.homepage-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 0 69%;
  clip-path: polygon(33% 0, 100% 0, 100% 100%, 0 100%);
  background:
    repeating-linear-gradient(43deg, transparent 0 25px, var(--hero-line) 25px 26px),
    linear-gradient(137deg, var(--hero-panel-dark) 0 38%, var(--hero-panel-mid) 38% 57%, var(--hero-panel) 57% 100%);
  pointer-events: none;
}
.homepage-hero .hero-inner > div { max-width: 77%; }
.hero-inner { padding-block: clamp(3.25rem, 7.5vw, 7.1rem); }
h1, h2 { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.045em; }
.hero h1 { color: var(--hero-heading); font-size: clamp(2.45rem, 5.55vw, 5.5rem); line-height: 1.02; }
.hero h1 em { color: var(--hero-emphasis); font-style: italic; }
.audience-links { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; color: var(--hero-heading); }
.audience-links a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem .85rem; border: 1px solid currentColor; border-radius: .25rem; font-weight: 650; text-decoration: none; }
.audience-links a:hover { text-decoration: underline; }
.practices { padding-block: clamp(2.4rem, 5vw, 4.65rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.07; }
.practice-intro { max-width: 58rem; margin-top: .65rem; color: var(--muted); font-size: 1.06rem; line-height: 1.5; }
.practice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; margin-top: 1.35rem; }
.practice { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--edge); border-radius: .35rem; overflow: hidden; }
.practice-image { display: block; text-align: center; text-decoration: none; }
.card-copy a:focus-visible { outline-offset: -3px; }
.practice-image img { display: block; width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; background: var(--edge); }
.practice-image h3 { min-height: 4rem; padding: .9rem .65rem .25rem; font-size: 1.13rem; line-height: 1.24; }
.practice-image h3 span { display: block; margin-top: .25rem; color: var(--muted); font-size: .87rem; font-weight: 500; }
.card-copy { display: flex; flex: 1; flex-direction: column; padding: .15rem .9rem 1.15rem; text-align: center; }
.card-copy p { font-size: .91rem; line-height: 1.48; color: var(--muted); }
.practice-leader { display: flex; flex-direction: column; justify-content: space-between; min-height: 7.75rem; padding-bottom: .65rem; }
.practice-leader a { display: flex; flex-direction: column; align-items: center; gap: .35rem; margin-top: .35rem; color: var(--deep); font-size: 1.05rem; font-weight: 720; }
.practice-leader .portrait-frame { --portrait-size: 4.6rem; --portrait-padding: .35rem; }
.practice-stats, .card-copy .practice-note { flex: 1; margin: 0; padding: .72rem 0 0; border-top: 1px solid var(--edge); }
.practice-stats { list-style: none; color: var(--muted); font-size: .91rem; line-height: 1.45; }
.practice-stats li + li { margin-top: .2rem; }
.practice-stats strong { color: var(--deep); font-weight: 720; }
.practice-reports { display: grid; margin-top: .85rem; border-top: 1px solid var(--edge); padding-top: .45rem; }
.practice-reports a { display: block; padding: .43rem .1rem; color: var(--deep); font-size: .9rem; font-weight: 650; }
.team-section { border-top: 1px solid var(--edge); padding-block: clamp(2rem, 4vw, 3.7rem); }
.team-section > h2 { text-align: center; }
.team-collage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem 1.15rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.team-collage a { display: flex; height: 100%; flex-direction: column; align-items: center; gap: .9rem; padding: .3rem; border-radius: .5rem; text-align: center; font-size: .95rem; font-weight: 650; text-decoration: none; }
.team-collage a:hover { text-decoration: underline; }
:is(.practice-grid, .team-collage) > :nth-child(3n+2) { --portrait-base: #ecdfcc; --portrait-accent: #bc9a75; }
:is(.practice-grid, .team-collage) > :nth-child(3n) { --portrait-base: var(--portrait-slate); --portrait-accent: var(--portrait-blue); }
.portrait-frame {
  display: grid;
  place-items: center;
  width: min(100%, var(--portrait-size, clamp(6.25rem, 11vw, 9rem)));
  aspect-ratio: 1;
  padding: var(--portrait-padding, .58rem);
  border-radius: 50%;
  background: linear-gradient(140deg, var(--portrait-base, var(--portrait-blue)) 0 54%, var(--portrait-accent, var(--portrait-dark)) 54% 100%);
}
.portrait-crop { display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; border: 2px solid var(--white); border-radius: 50%; background: var(--edge); }
.portrait-crop img { display: block; width: 100%; height: 100%; object-fit: cover; transform: translate(var(--studio-x, 0%), var(--studio-y, 0%)) scale(var(--studio-scale, 1)) scaleX(var(--studio-direction, 1)); transform-origin: center; filter: none; }
.team-collage a:is(:hover, :focus-visible) .portrait-frame { outline: 1px solid var(--accent); outline-offset: 3px; }
.team-initials { color: var(--muted); font-size: 1.4rem; }
.interior { padding-block: clamp(2.3rem, 5vw, 4.5rem); }
.interior h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1.08; }
.interior h2 { margin-block: 1.5rem .65rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.interior p { margin-top: .75rem; color: var(--muted); line-height: 1.55; }
.document-list { max-width: 36rem; padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--edge); }
.document-list a { display: block; padding: .9rem .35rem; border-bottom: 1px solid var(--edge); }
.audience-section { margin-top: 2.75rem; scroll-margin-top: 1rem; }
.audience-section > p { margin-bottom: 1rem; }
.report-form { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: start; margin-top: 2rem; max-width: 58rem; }
.report-form:has(fieldset[hidden]) { grid-template-columns: minmax(0, 1fr); max-width: 28rem; }
.report-layout:has(.report-teaser:not([hidden])) { display: grid; grid-template-columns: minmax(0, 28rem) minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: start; max-width: 58rem; margin-top: 2rem; }
.report-layout:has(.report-teaser:not([hidden])) .report-form { margin-top: 0; }
.report-teaser { padding: 1.1rem 1.25rem; border-left: .18rem solid var(--accent); background: #f4f7fa; }
.report-teaser h2 { font: 680 1.24rem/1.3 Aptos, "Segoe UI", sans-serif; letter-spacing: 0; }
.report-teaser p { margin-top: .65rem; color: var(--muted); line-height: 1.55; }
.report-teaser a { color: var(--deep); font-weight: 680; }
.report-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.report-form legend, .report-form h2 { font: 680 1.24rem/1.3 'Aptos', 'Segoe UI', sans-serif; letter-spacing: 0; margin: 0 0 .6rem; padding: 0; }
.report-options { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--edge); }
.report-options li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; border-bottom: 1px solid var(--edge); }
.report-options label { display: flex; flex: 1; align-items: center; min-height: 2.8rem; gap: .65rem; cursor: pointer; }
.report-options input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--deep); }
.report-label { display: grid; gap: .15rem; padding-block: .45rem; }
.report-label small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.report-form section { padding: 1.1rem; border: 1px solid var(--edge); border-radius: .3rem; }
.report-form section label { display: block; margin: .85rem 0 .35rem; font-weight: 650; }
.report-form input[type='email'], .report-form button { min-height: 2.75rem; padding: .45rem .65rem; border: 1px solid var(--muted); border-radius: .25rem; font: inherit; }
.report-form input[type='email'] { width: 100%; }
.report-form button { margin-top: .65rem; background: var(--deep); color: var(--white); cursor: pointer; }
.report-form :is(button, input):focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.report-form .report-help, #report-status { font-size: .9rem; }
#report-status:empty { display: none; }
.practice-detail + .practice-detail { margin-top: 2.2rem; }
.focused-sections > section { scroll-margin-top: .75rem; }
.focused-sections:has(> section:target) > section:not(:target) { display: none; }
.template { max-width: 54rem; padding-block: 2rem 3rem; }
.template section { margin-bottom: 2.5rem; }
.template p, .template li { line-height: 1.65; }
.template p { margin-top: .8rem; }
.template h3 { margin-top: 1rem; }
.template table { width: 100%; border-collapse: collapse; margin-top: 1rem; table-layout: fixed; }
.template td, .template th { text-align: left; border: 1px solid #787d85; padding: .65rem; overflow-wrap: anywhere; }
@media (max-width: 64rem) { .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 53rem) {
  .homepage-hero { padding-bottom: 3.5rem; }
  .homepage-hero::before { inset: auto 0 0 0; height: 3.5rem; clip-path: none; }
  .homepage-hero .hero-inner > div { max-width: none; }
}
@media (max-width: 39rem) {
  .header-inner { gap: .9rem; }
  .header-inner nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: .3rem .55rem; }
  .header-inner nav a:first-child { grid-column: 1 / -1; justify-self: start; }
  .header-inner nav a.bridgeway-portal-link { justify-content: center; padding-inline: .45rem; text-align: center; }
  .header-inner nav a { display: flex; align-items: center; min-height: 2.5rem; }
  .practice-grid { grid-template-columns: 1fr; }
  .report-form, .report-layout:has(.report-teaser:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .team-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .65rem; }
  .team-collage .portrait-frame { --portrait-size: 6.75rem; --portrait-padding: .45rem; }
}
@media print {
  body { background: white; color: black; }
  .template { width: 100%; padding: 0; }
  .template:not(:has(> section:target)) section + section { break-before: page; }
}
@media (forced-colors: active) {
  .brand-a { display: inline; margin: 0; color: inherit; background: none; clip-path: none; }
}

/* Portal sign-in and resource libraries */
.interior > .portal-tagline { max-width: 30rem; color: var(--deep); font-size: clamp(1.08rem, 2.1vw, 1.3rem); font-weight: 600; }
.portal-fields { width: min(100%, 25rem); margin-top: 1.6rem; }
.portal-fields label { display: block; font-weight: 650; margin: .7rem 0 .36rem; }
.portal-fields input { width: 100%; min-height: 2.75rem; border: 1px solid #a6b6c6; border-radius: .25rem; padding: .55rem .65rem; font: inherit; background: var(--white); color: var(--ink); }
.portal-fields input:disabled { background: color-mix(in srgb, var(--edge) 42%, var(--white)); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: .85rem; list-style: none; margin: 1.65rem 0 0; padding: 0; }
.guide-choice { display: grid; gap: .46rem; width: 100%; height: 100%; padding: 1.05rem; text-align: left; border: 1px solid var(--edge); border-radius: .35rem; background: var(--white); color: var(--ink); font: inherit; text-decoration: none; }
.guide-choice strong { font-size: 1.07rem; }
.guide-choice span { color: var(--muted); font-size: .94rem; line-height: 1.4; }
.guide-choice:hover { border-color: var(--muted); }
.guide-choice:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.guide-choice { cursor: pointer; }
.guide-dialog { width: min(100% - 2rem, 31rem); max-height: calc(100% - 2rem); padding: 1.25rem; border: 1px solid var(--edge); border-radius: .45rem; color: var(--ink); }
.guide-dialog::backdrop { background: rgb(0 24 55 / 55%); }
.guide-dialog-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .6rem; }
.guide-close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--edge); border-radius: .25rem; background: var(--white); color: var(--deep); font: inherit; font-size: 1.65rem; line-height: 1; cursor: pointer; }
.guide-close:hover { background: var(--edge); }
.guide-dialog h2 { font-size: clamp(1.75rem, 4vw, 2.45rem); }
.guide-dialog label { display: block; margin: .7rem 0 .35rem; font-weight: 650; }
.guide-dialog input { width: 100%; min-height: 2.75rem; padding: .55rem .65rem; border: 1px solid #a6b6c6; border-radius: .25rem; font: inherit; }
.guide-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.guide-actions button { min-height: 2.75rem; padding: .52rem .8rem; border: 1px solid var(--deep); border-radius: .25rem; background: var(--white); color: var(--ink); font: inherit; }
.guide-actions button:disabled { border-color: var(--edge); background: var(--edge); }
.guide-delivery-status { margin-top: .65rem; color: var(--muted); font-size: .9rem; }
.guide-dialog :is(input, button):focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
