:root {
  color-scheme: light;
  --navy: #142638;
  --deep-navy: #10202f;
  --paper: #f8f7f4;
  --white: #fff;
  --muted: #4b5b68;
  --line: #dce1e3;
  --bronze: #80522b;
  --sand: #efc497;
  --sans: "Segoe UI", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font: 1rem/1.65 var(--sans);
}

a { color: inherit; }
p, dl, dd, figure { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.17; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
h1, h2 { font-size: clamp(2.3rem, 4.5vw, 4rem); text-wrap: balance; }
h3 { font-size: 1.18rem; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid #3276a8; outline-offset: 4px; }
.contact-section a:focus-visible, .site-footer :focus-visible { outline-color: var(--sand); }
.wrap { width: min(100% - 3rem, 74rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7.5rem); }
.intro { margin-top: 1.2rem; font-size: 1.11rem; color: var(--muted); }
.eyebrow {
  color: var(--bronze);
  font-size: .875rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.skip-link {
  position: fixed;
  z-index: 3;
  top: .75rem;
  left: .75rem;
  padding: .5rem 1rem;
  background: var(--white);
}
.skip-link:not(:focus) { clip-path: inset(50%); }

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 5.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  width: clamp(15rem, 23vw, 19rem);
}
.brand-logo { width: 100%; height: auto; }
.brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.navigation { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.3rem); }
.navigation a { padding: .55rem 0; font-weight: 650; font-size: .94rem; text-decoration: none; }
.navigation a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.nav-label-compact { display: none; }

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .18rem;
  text-decoration: none;
  text-align: center;
  font-size: .94rem;
  line-height: 1.35;
  font-weight: 750;
  cursor: pointer;
}
.button-outline { border-color: #a6b0b8; }
.button-outline:hover { background: var(--paper); border-color: var(--navy); }
.navigation .button { padding: .55rem 1rem; }
.button:disabled { opacity: .68; cursor: default; }
.text-link { font-weight: 650; text-underline-offset: .25em; }

#resume { position: relative; padding-block: clamp(3rem, 6.5vw, 5.75rem); }
.anchor-alias { position: absolute; top: 0; }
.founder-layout, .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 8vw, 7rem);
}
.founder-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4.25vw, 4rem);
}
.founder-intro { padding-bottom: 1.35rem; border-bottom: 1px solid var(--line); }
.founder-intro h1 { font-size: clamp(2.4rem, 4.1vw, 3.55rem); font-weight: 700; text-wrap: initial; }
.founder-title { margin-top: .65rem; color: var(--navy); font-weight: 700; line-height: 1.45; }
.credential-note { margin-top: 1.55rem; padding-left: 1.15rem; border-left: 3px solid #b78151; }
.credential-note h2 { font: 700 clamp(1.25rem, 2vw, 1.65rem)/1.2 var(--serif); letter-spacing: -.025em; text-wrap: initial; }
.credential-note p, .group-heading p { margin-top: .45rem; color: var(--muted); }
.credential-note p + p { margin-top: .7rem; }
.credential-note strong { color: var(--navy); }
.resume-panel { background: var(--paper); padding: clamp(1.3rem, 3vw, 2.15rem); border-radius: .3rem; }
.resume-panel h2 { font: 700 clamp(1.7rem, 3vw, 2.4rem)/1.15 var(--serif); letter-spacing: -.035em; text-wrap: initial; }
.resume-panel dl { margin-top: .5rem; }
.resume-panel dl > div { border-bottom: 1px solid var(--line); padding-block: 1rem; }
.resume-panel dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-details dt, .contact-qr-list dt { font-weight: 750; }
.resume-panel dt { font: 700 1.25rem/1.25 var(--serif); margin-bottom: .4rem; }
.resume-panel dd { color: var(--muted); margin-top: .18rem; }
.resume-list { margin: .45rem 0 0; padding-left: 1.2rem; }
.resume-list li + li { margin-top: .65rem; }
.resume-list li::marker { color: var(--bronze); }
.resume-list strong { color: var(--navy); }
.resume-panel > a { display: inline-block; margin-top: 1.25rem; }

.services-section { background: var(--paper); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(1rem, 5vw, 4.5rem);
  margin-bottom: 2.4rem;
}
.section-heading h2, .portfolio-section h2, .contact-section h2 { text-wrap: initial; }
.section-heading p { color: var(--muted); max-width: 28rem; }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.service-card {
  padding: clamp(1.1rem, 2.65vw, 1.7rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid #b78151;
}
.service-card p, .project-card p { margin-top: .68rem; color: var(--muted); }

.process-section { border-bottom: 1px solid var(--line); }
.process-section h2 { max-width: 18ch; text-wrap: initial; }
.process-section .intro { max-width: 43rem; }
.process-flow {
  --step-gap: 1.1rem;
  display: grid;
  gap: 1.5rem var(--step-gap);
  margin-top: 2rem;
}
.process-phase {
  --phase-accent: #234f70;
  --phase-background: #eef4f8;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}
.process-phase:nth-child(2) { --phase-accent: var(--bronze); --phase-background: #f8f2ea; }
.process-phase:nth-child(3) { --phase-accent: #315d4b; --phase-background: #eff5f1; }
.process-phase > h3 {
  padding: 0 0 .65rem;
  margin-bottom: .85rem;
  border-bottom: 2px solid var(--phase-accent);
  color: var(--phase-accent);
  font-size: 1.02rem;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--step-gap);
  padding: 0;
  margin: 0;
  list-style: none;
}
.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-width: 0;
  padding: .95rem;
  border-radius: .35rem;
  background: var(--phase-background);
}
.process-step::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset-block-start: 50%;
  inset-inline-start: calc(100% + var(--step-gap) / 2);
  display: none;
  width: .48rem;
  height: .48rem;
  border-right: 2px solid var(--muted);
  border-top: 2px solid var(--muted);
  transform: translate(-65%, -50%) rotate(45deg);
}
.process-step:not(:last-child)::after { display: block; }
.process-number {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--phase-accent);
  color: var(--white);
  font-size: .9rem;
  font-weight: 750;
}
.process-step h4 { margin: 0; font-size: 1.06rem; line-height: 1.23; }
.process-tasks { margin: 0; padding-left: 1.05rem; color: var(--muted); line-height: 1.45; }
.process-tasks li + li { margin-top: .4rem; }
.process-participant {
  align-self: flex-start;
  margin-top: auto;
  padding: .27rem .45rem;
  border: 1px solid currentColor;
  border-radius: .2rem;
  color: var(--phase-accent);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.35;
}
.process-takeaways { margin-top: 1.4rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: .35rem; }
.process-takeaways ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem 1.5rem;
  margin: .55rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.portfolio-group { margin-top: 3rem; }
.group-heading { max-width: 46rem; margin-bottom: 1.2rem; }
.group-heading h3 { font: 400 clamp(1.65rem, 3vw, 2.3rem)/1.16 var(--serif); letter-spacing: -.025em; }
.alterations-grid, .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.alterations-grid { margin: 0; padding: 0; list-style: none; }
.alterations-grid + .portfolio-grid { margin-top: 1.5rem; }
.project-card { min-width: 0; background: var(--paper); border: 1px solid var(--line); }
.project-card img { width: 100%; aspect-ratio: 1.65; object-fit: cover; background: var(--line); }
.project-card .project-image-contain { object-fit: contain; }
.project-card figcaption {
  display: flex;
  flex-wrap: wrap;
  column-gap: .55rem;
  padding: .45rem .7rem;
  color: var(--muted);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  font-size: .81rem;
}
.project-card .photo-caption { flex-basis: 100%; }
.project-card figcaption a { text-underline-offset: .16em; }
.project-card > div { padding: 1.25rem; }
.project-card h4 { font-size: 1.15rem; line-height: 1.3; margin: 0; }
.project-card .project-context { color: var(--bronze); font-weight: 650; font-size: .875rem; margin: 0 0 .45rem; }

.insurance-section { padding-bottom: clamp(3rem, 6vw, 5rem); }
.insurance-panel {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  padding: clamp(1.35rem, 4vw, 3rem);
  border-left: 3px solid #b78151;
  background: var(--paper);
}
.insurance-panel h2 { font-size: clamp(2rem, 3.2vw, 3.15rem); text-wrap: initial; }
.insurance-tagline { margin-top: .8rem; color: var(--bronze); font-weight: 700; }
.insurance-copy { color: var(--muted); }
.insurance-copy p + p { margin-top: .7rem; }
.insurance-copy strong { color: var(--navy); }

.contact-section { background: var(--navy); color: var(--white); }
.contact-section .eyebrow { color: var(--sand); }
.contact-section .intro { color: #dce6ec; }
.contact-details { margin-top: 2rem; }
.contact-details > div { margin-top: .85rem; }
.contact-details dd, .contact-qr-list dd { color: #dce6ec; overflow-wrap: anywhere; }
.contact-details a, .contact-qr-list a { text-underline-offset: .2em; }
.contact-qr-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem 1rem;
  max-width: 29rem;
  margin-top: 1.15rem;
}
.contact-qr-list dt {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .3rem;
  line-height: 1.25;
}
.contact-channel-icon { width: 1.55rem; height: 1.55rem; flex: none; }
.contact-qr {
  width: min(100%, 225px);
  height: auto;
  margin-top: .5rem;
  image-rendering: pixelated;
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  background: var(--white);
  color: var(--navy);
  padding: clamp(1.25rem, 4vw, 2.4rem);
  min-width: 0;
}
.field-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: .38rem; font-size: .94rem; font-weight: 750; }
.field label span { color: var(--bronze); }
.field label .optional { color: var(--muted); font-size: .875rem; font-weight: 400; }
.field-hint { font-size: .91rem; color: var(--muted); margin-bottom: .55rem; }
.field :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 2.85rem;
  border: 1px solid #9ba9b2;
  border-radius: .12rem;
  padding: .5rem .6rem;
  background: var(--white);
  color: var(--navy);
}
.field select {
  appearance: none;
  padding-right: 2rem;
  text-overflow: ellipsis;
  background: linear-gradient(45deg, transparent 50%, var(--navy) 50%) right 1.12rem center / .32rem .32rem no-repeat,
              linear-gradient(135deg, var(--navy) 50%, transparent 50%) right .8rem center / .32rem .32rem no-repeat,
              var(--white);
}
.field textarea { display: block; resize: vertical; }
.form-actions .button { background: var(--navy); color: var(--white); min-width: 9rem; }
.form-actions .button:hover { background: #28455c; }
.form-status { color: var(--muted); font-size: .94rem; }
.form-status:not(:empty) { margin-top: .65rem; }
.form-status.error { color: #9a2c22; }
.form-status.success { color: #1f6947; }
.hidden-field { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }

.site-footer { background: var(--deep-navy); color: #dce6ec; padding-block: 1.65rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .65rem; }
.footer-brand img {
  flex: none;
  width: 2rem;
  height: 2rem;
  border: 1px solid #dce6ec;
  border-radius: 50%;
}

@media (max-width: 74rem) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 60rem) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 2rem; }
  .contact-form { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 70rem) {
  .process-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-phase:not(:last-child) .process-step:last-child::after { display: block; }
}

@media (max-width: 54rem) {
  html { scroll-padding-top: calc(var(--site-header-height, 9rem) + .5rem); }
  .header-inner { min-height: auto; flex-wrap: wrap; gap: .65rem .85rem; padding-top: .85rem; }
  .brand { margin-right: auto; }
  .navigation { width: 100%; flex-wrap: wrap; border-top: 1px solid var(--line); }
  .navigation a { padding-block: .65rem; }
}

@media (max-width: 47rem) {
  .insurance-panel { grid-template-columns: minmax(0, 1fr); }
  .founder-layout, .section-heading, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alterations-grid, .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-takeaways ul { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 32rem) {
  .wrap { width: calc(100% - 2rem); }
  .brand { width: min(100%, 17rem); }
  .navigation { justify-content: space-between; gap: 0 .65rem; }
  .nav-label-full { display: none; }
  .nav-label-compact { display: inline; }
  .services-grid, .alterations-grid, .portfolio-grid, .contact-form { grid-template-columns: minmax(0, 1fr); }
  .process-steps { grid-template-columns: minmax(0, 1fr); }
  .process-step::after {
    inset-block-start: calc(100% + var(--step-gap) / 2);
    inset-inline-start: 50%;
    transform: translate(-50%, -65%) rotate(135deg);
  }
}
