:root {
  --white: #ffffff;
  --neutral: #f4f6f7;
  --navy: #17324d;
  --teal: #007f82;
  --teal-dark: #006568;
  --gold: #d9b56d;
  --line: #d5dee6;
  --sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --header-height: 4.5rem;
  --space: 1.25rem;
  --page: 76rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
h3,
p,
dl,
dd,
dt {
  margin: 0;
}

a {
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space);
  top: 0.5rem;
  z-index: 3;
  padding: 0.5rem 0.75rem;
  background: var(--white);
  color: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(var(--page), calc(100% - (var(--space) * 2)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--white);
  border-top: 4px solid var(--teal);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  min-height: var(--header-height);
  padding-block: 0.8rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.wordmark-mark {
  width: 0.85rem;
  height: 0.85rem;
  background: var(--teal);
  flex: none;
}

.nav-toggle {
  display: none;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  padding: 0.7rem 0.95rem;
  cursor: pointer;
}

html.js .nav-toggle {
  display: inline-flex;
}

#site-nav {
  flex-basis: 100%;
}

#site-nav ul,
.site-footer ul,
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-nav a,
.site-footer a {
  text-decoration: none;
  text-underline-offset: 0.22em;
}

#site-nav a {
  color: var(--navy);
}

#site-nav a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

html.js #site-nav {
  display: none;
}

html.js body.nav-open #site-nav {
  display: block;
  padding-bottom: 0.85rem;
}

#site-nav a {
  display: block;
  padding: 0.6rem 0;
}

.hero {
  background: var(--teal);
  color: var(--white);
  padding: 3.5rem 0 4rem;
}

.hero-copy {
  max-width: 40rem;
}

.hero-photo,
.service-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-photo {
  margin-top: 2rem;
  aspect-ratio: 16 / 9;
  object-position: 78% 48%;
}

h1 {
  max-width: 11em;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-copy p {
  max-width: 36rem;
  margin-top: 1.1rem;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero :focus-visible,
.story-start :focus-visible,
.service-office :focus-visible {
  outline-color: var(--white);
}

.button,
button {
  display: inline-block;
  border: 0;
  padding: 0.95rem 1.3rem;
  background: var(--teal);
  color: var(--white);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button:hover {
  background: var(--teal-dark);
}

.hero .button {
  background: var(--white);
  color: var(--navy);
}

.hero .button:hover {
  background: var(--neutral);
}

.button-secondary {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--teal);
}

.hero .button-secondary {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px var(--white);
}

.button-secondary:hover,
.hero .button-secondary:hover {
  background: transparent;
}

.band {
  padding: 3.25rem 0;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.85rem;
  background: var(--teal);
}

h3,
.group-label {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}

.service-kinds {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.service-home,
.service-office {
  background: var(--white);
  color: var(--navy);
}

.service-home {
  border-top: 6px solid var(--teal);
}

.service-photo {
  aspect-ratio: 16 / 9;
}

.home-photo {
  object-position: center;
}

.service-home h3 {
  color: var(--teal);
}

.service-office {
  background: var(--navy);
  color: var(--white);
}

.office-photo {
  object-position: center 58%;
}

.service-home h3,
.service-home p,
.service-office h3,
.service-office p {
  margin-inline: 1.5rem;
}

.service-home h3,
.service-office h3 {
  margin-top: 1.35rem;
}

.service-home p,
.service-office p {
  margin-bottom: 1.6rem;
}

.service-office h3::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 2px;
  margin-top: 0.75rem;
  background: var(--gold);
}

.service-kinds p,
.lede,
.subhead,
.options dd {
  margin-top: 0.7rem;
}

.subhead {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
}

.lede + .lede {
  margin-top: 0.9rem;
}

.group-label {
  margin-top: 2.5rem;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.options {
  display: grid;
  gap: 0;
  margin-top: 0.75rem;
}

.options div {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.options dt {
  font-size: 1rem;
  font-weight: 600;
}

.options dd {
  margin-top: 0.3rem;
  font-size: 1rem;
  font-weight: 400;
}

.story-about,
.story-start {
  padding: 3.25rem var(--space);
}

.story-inner {
  max-width: 36rem;
}

.story-start {
  background: var(--teal);
  color: var(--white);
}

.story-start h2::after {
  background: var(--white);
}

.steps {
  margin-top: 1.35rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.steps li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--white);
  font-weight: 600;
}

.steps h3 {
  font-size: 1.15rem;
}

.steps p {
  margin-top: 0.3rem;
}

.band-neutral {
  background: var(--neutral);
}

.contact-layout {
  display: grid;
  gap: 1.75rem;
}

#contact {
  overflow-x: clip;
}

.contact-invite {
  position: relative;
}

.contact-ripples,
.contact-ripples:not(:defined) {
  display: none;
}

.form-status {
  font-weight: 600;
}

.form-status:empty,
[data-fs-success],
[data-fs-error] {
  display: none;
}

[data-fs-success][data-fs-active],
[data-fs-error][data-fs-active] {
  display: block;
}

[data-fs-error]:not([data-fs-error=""])[data-fs-active] {
  margin-top: 0.35rem;
  font-weight: 600;
}

form {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 1.35rem 1.25rem 1.5rem;
  background: var(--white);
  border-top: 6px solid var(--teal);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-row {
  display: grid;
  gap: 1rem;
}

label {
  font-size: 0.98rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #5f7386;
  border-radius: 0;
  padding: 0.8rem 0.85rem;
  background: var(--white);
  color: var(--navy);
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 8.5rem;
}

button[disabled] {
  background: var(--white);
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--navy);
  cursor: not-allowed;
}

button[disabled]:hover {
  background: var(--white);
}

#services,
#about,
#getting-started,
#contact,
#main {
  scroll-margin-top: 5.5rem;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  border-top: 3px solid var(--gold);
}

.footer-inner {
  display: grid;
  gap: 1rem;
  padding-block: 2.1rem 2.6rem;
}

.wordmark-on-dark,
.footer-area,
.site-footer a {
  color: var(--white);
}

.site-footer a {
  text-decoration: underline;
}

.site-footer :focus-visible {
  outline-color: var(--gold);
}

.footer-area {
  margin-top: -0.25rem;
}

.site-footer li + li {
  margin-top: 0.4rem;
}

@media (min-width: 800px) {
  :root {
    --space: 2rem;
  }

  html.js .nav-toggle {
    display: none;
  }

  .header-bar {
    flex-wrap: nowrap;
  }

  #site-nav {
    flex-basis: auto;
  }

  html.js #site-nav,
  html.js body.nav-open #site-nav {
    display: block;
    padding: 0;
  }

  #site-nav ul,
  .site-footer ul {
    display: flex;
    gap: 1.5rem;
  }

  #site-nav a {
    display: inline-block;
    padding: 0.25rem 0;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    align-items: center;
    gap: 2.75rem;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-photo {
    margin-top: 0;
    aspect-ratio: 4 / 3;
    object-position: right center;
  }

  .band {
    padding: 4.5rem 0 5rem;
  }

  .service-kinds {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .options {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .options div {
    padding-right: 1rem;
  }

  .story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .story-about,
  .story-start {
    padding: 4.75rem 3rem;
  }

  .contact-layout {
    grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.15fr);
    gap: 3rem;
    align-items: start;
  }

  .contact-invite h2,
  .contact-invite .lede {
    position: relative;
    z-index: 1;
  }

  .contact-ripples:defined {
    display: block;
    position: absolute;
    z-index: 0;
    left: -4.5rem;
    top: 4.5rem;
    opacity: 0.1;
    pointer-events: none;
    user-select: none;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
  }

  .footer-area {
    margin-top: 0;
  }

  .site-footer li + li {
    margin-top: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .contact-ripples,
  .contact-ripples:defined {
    display: none;
  }
}
