:root {
  color-scheme: light;
  --ink: #0F172A;
  --muted: #334155;
  --paper: #F8FAFC;
  --white: #fff;
  --line: #CBD5E1;
  --wash: #EFF6FF;
  --navy: #0B1220;
  --blue: #1D4ED8;
  --cyan: #22D3EE;
  --blue-hover: #1E40AF;
  --dark-line: #475569;
  --dark-muted: #CBD5E1;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
main { overflow-x: clip; }
h1, h2, h3, p { margin: 0; }
p { color: var(--muted); }
p + p { margin-top: 1rem; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[id] { scroll-margin-top: 1.5rem; }
.wrap { width: min(100% - 3rem, 73rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 1; background: var(--white); padding: .5rem 1rem; transform: translateY(-200%); }
.skip:focus { transform: none; }

.site-header, footer { background: var(--navy); color: var(--white); }
.site-header { border-bottom: 1px solid var(--dark-line); }
.site-header .button, .hero .button.secondary { border-color: #94A3B8; }
.site-header .button:hover, .hero .button.secondary:hover { background: #1E293B; }
.site-header a:hover, footer a:hover { color: var(--cyan); }
.site-header :focus-visible, .hero :focus-visible, footer :focus-visible { outline-color: var(--cyan); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.15rem; }
.wordmark { font-weight: 800; font-size: 1.15rem; letter-spacing: -.045em; text-decoration: none; }
.header-inner nav { display: flex; flex-wrap: wrap; gap: .45rem 1.5rem; }
.header-inner nav a { font-size: .9rem; font-weight: 650; text-decoration: none; }
.header-inner nav a:hover, .wordmark:hover { text-decoration: underline; text-underline-offset: .25em; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-height: 2.75rem;
  padding: .7rem 1rem;
  border: 1px solid var(--navy);
  border-radius: .45rem;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  line-height: 1.35;
}
.button:hover { background: var(--wash); }
.button.small { font-size: .875rem; }
.button.primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.button.primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.button.secondary { border-color: var(--line); }

.hero {
  --hero-image: url("images/hero.png");
  position: relative;
  isolation: isolate;
  color: var(--white);
  padding-block: clamp(3rem, 9vw, 7rem);
}
.hero > div { max-width: 46rem; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0 calc((100% - 100vw) / 2);
  z-index: -1;
  background:
    linear-gradient(115deg, rgb(11 18 32 / 96%) 28%, rgb(20 43 83 / 55%)),
    var(--hero-image) center / cover no-repeat #142B53;
}
.hero p { color: var(--dark-muted); }
.eyebrow { display: flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--blue); }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); letter-spacing: -.065em; margin-block: .8rem 1.25rem; }
h1 em { display: block; color: #BFDBFE; font-style: normal; }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); letter-spacing: -.055em; }
h3 { font-size: clamp(1.16rem, 2vw, 1.5rem); letter-spacing: -.025em; }
.hero p { max-width: 58ch; }
.lead { font-size: 1.08rem; }
.reveal-text { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .is-revealing > .reveal-text { animation: reveal-text 600ms ease-out; }
  @keyframes reveal-text {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.6rem; }

.image-slot {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--wash);
}
.image-slot img { display: block; width: 100%; height: 100%; object-fit: cover; }
#about h2 + p { margin-top: .65rem; }

.band { background: var(--paper); border-block: 1px solid var(--line); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.services, .steps { display: grid; gap: 1rem; margin-top: 1.75rem; }
.services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.service {
  --service-lift: -3px;
  padding: clamp(1.2rem, 3vw, 2.15rem);
  background: #F9FCFF;
  border: 1px solid var(--line);
  border-radius: .65rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.service:has(a:focus-visible) {
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgb(34 211 238 / 16%);
  background-color: var(--white);
  transform: translateY(var(--service-lift));
}
@media (hover: hover) {
  .service:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 14px rgb(34 211 238 / 16%);
    background-color: var(--white);
    transform: translateY(var(--service-lift));
  }
}
@media (prefers-reduced-motion: reduce) {
  .service {
    --service-lift: 0px;
    transition: none;
  }
}
.service-interactive { cursor: pointer; }
.service-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: start;
  cursor: pointer;
}
.service-contact { display: flex; width: min(100%, 15rem); margin: 1rem auto 0; }
.service-contact[hidden] { display: none; }
.service .image-slot { margin-bottom: 1.15rem; }
.service h3 + p, .steps h3 + p, #contact h2 + p { margin-top: .65rem; }
.service ul { margin: 1.25rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.service ul + p { margin-top: 1rem; }
.service li + li { margin-top: .55rem; }
.service li strong { color: var(--ink); }

#how-it-works {
  position: relative;
  isolation: isolate;
  color: var(--white);
}
#how-it-works::before {
  content: "";
  position: absolute;
  inset: 0 calc((100% - 100vw) / 2);
  z-index: -1;
  background: var(--navy) linear-gradient(115deg, var(--navy) 20%, #173765);
}
#how-it-works p { color: var(--dark-muted); }
.steps {
  --step-gap: 1rem;
  --step-marker: 2.5rem;
  --step-line-start: 0% 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--step-gap);
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { position: relative; counter-increment: step; padding-right: .45rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--step-marker);
  height: var(--step-marker);
  margin-bottom: .75rem;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  background: var(--navy);
  color: var(--cyan);
  font-size: .875rem;
  font-weight: 800;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset: calc(var(--step-marker) / 2 - 1px) calc(-1 * var(--step-gap)) auto calc(var(--step-marker) / 2);
  height: 2px;
  background: linear-gradient(90deg, #60A5FA, var(--cyan)) left top / 100% 100% no-repeat var(--dark-line);
}
@media (prefers-reduced-motion: no-preference) {
  .steps li:nth-child(2) { --step-delay: 280ms; }
  .steps li:nth-child(3) { --step-delay: 560ms; }
  .steps li:nth-child(4) { --step-delay: 840ms; }
  .steps-visible li::before { animation: step-marker 300ms ease-out var(--step-delay, 0ms) both; }
  .steps-visible li::after { animation: step-line 300ms ease-out var(--step-delay, 0ms) both; }
  @keyframes step-marker {
    from { color: var(--dark-muted); border-color: #94A3B8; }
  }
  @keyframes step-line {
    from { background-size: var(--step-line-start); }
  }
}
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.faqs { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 1rem .3rem; font-weight: 750; }
summary:hover { color: var(--blue); }
details p { padding: 0 .3rem 1rem; }

#contact { position: relative; isolation: isolate; }
#contact::before {
  content: "";
  position: absolute;
  inset: 0 calc((100% - 100vw) / 2);
  z-index: -1;
  background:
    linear-gradient(120deg, rgb(219 234 254 / 94%), rgb(239 246 255 / 80%) 58%, rgb(236 254 255 / 65%)),
    url("images/contact.png") center / cover no-repeat #EFF6FF;
}
#contact h2 { margin-top: .55rem; }
.contact-form {
  display: grid;
  padding: clamp(1.15rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid #BFDBFE;
  border-radius: 1rem;
  box-shadow: 0 6px 12px -6px rgb(11 18 32 / 14%), 0 24px 48px -22px rgb(29 78 216 / 30%);
}
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
label { display: block; margin-bottom: .25rem; font-size: .9rem; font-weight: 750; }
label span, .hint { color: var(--muted); font-weight: 400; }
.hint { font-size: .85rem; margin-bottom: .35rem; }
input, select, textarea { width: 100%; min-width: 0; padding: .6rem .7rem; margin-bottom: .9rem; color: var(--ink); background: var(--paper); border: 1px solid #64748B; border-radius: .35rem; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: vertical; }
.contact-form button { justify-self: start; }

.contact-details { font-style: normal; overflow-wrap: anywhere; }
.contact-cards {
  display: grid;
  gap: .8rem;
  margin-top: 1.5rem;
}
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: .75rem;
  padding: .85rem clamp(.85rem, 2.5vw, 1.25rem);
  background: linear-gradient(110deg, var(--white) 60%, var(--wash));
  border: 1px solid #BFDBFE;
  border-inline-start: 3px solid var(--blue);
  border-radius: .75rem;
  box-shadow: 0 5px 18px rgb(11 18 32 / 8%);
  color: var(--ink);
  text-decoration: none;
}
.contact-card-label { color: var(--blue); font-size: .8rem; font-weight: 750; }
.contact-card strong { grid-column: 1; }
.contact-card::after {
  content: "";
  grid-area: 1 / 2 / span 2;
  width: .48rem;
  height: .48rem;
  margin-inline: .2rem;
  border-block-start: 2px solid var(--blue);
  border-inline-end: 2px solid var(--blue);
  transform: rotate(45deg);
}
.contact-card:is(:hover, :focus-visible) strong {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: .18em;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(2.25rem, 5vw, 4rem);
}
.footer-inner h2 { font-size: 1.15rem; letter-spacing: -.02em; }
.footer-inner p { margin-top: .55rem; }
.footer-inner p, .footer-list, .footer-bottom p { color: var(--dark-muted); }
.footer-list { margin: .65rem 0 0; padding: 0; list-style: none; }
.footer-list li + li { margin-top: .55rem; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer-inner .contact-details a { color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--dark-line); padding-block: 1.2rem; }
.footer-bottom p { font-size: .9rem; }
.confirmation { max-width: 43rem; margin-inline: auto; padding: clamp(1.5rem, 6vw, 4rem); background: var(--wash); border-radius: .85rem; }
.confirmation h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-top: 0; }
.confirmation .button { margin-top: 1.25rem; }

.header-inner .mobile-menu-toggle { display: none; }

@media (max-width: 52rem) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { flex-wrap: wrap; }
  .header-inner nav { order: 1; width: 100%; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (38rem < width <= 52rem) {
  .steps li:nth-child(2)::after { content: none; }
}

@media (max-width: 38rem) {
  html { scroll-padding-top: 4.5rem; }
  .site-header { position: sticky; top: 0; z-index: 2; }
  .skip:focus { z-index: 3; }
  .wrap { width: calc(100% - 2rem); }
  .section { padding-block: 2.75rem; }
  .header-inner { gap: .65rem; padding-block: .75rem; }
  .header-inner .wordmark { font-size: 1rem; }
  .header-inner .button { padding-inline: .65rem; }
  .header-inner .mobile-menu-toggle:not([hidden]) {
    display: inline-flex;
    margin-inline-start: auto;
    color: inherit;
    background: transparent;
  }
  .header-inner .mobile-menu-toggle:not([hidden])[aria-expanded="false"] + nav { display: none; }
  .header-inner .mobile-menu-toggle:hover { background: #1E293B; }
  .header-inner nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .25rem;
    padding-top: .5rem;
    border-top: 1px solid var(--dark-line);
  }
  .header-inner nav a {
    display: grid;
    place-items: center;
    min-height: 2.75rem;
    padding: .25rem;
    border-radius: .35rem;
    text-align: center;
  }
  .header-inner nav a:is(:hover, :focus-visible) { background: #1E293B; }
  .hero { padding-block: 2.75rem 3.25rem; }
  .hero h1 { font-size: clamp(2.15rem, 8.8vw, 3.25rem); }
  .hero::before {
    background-image:
      linear-gradient(180deg, rgb(11 18 32 / 92%), rgb(20 43 83 / 78%)),
      var(--hero-image);
  }
  .actions .button { flex: 1 1 10rem; }
  .services, .fields, .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .service .image-slot { aspect-ratio: 16 / 10; }
  .contact-form { min-width: 0; padding: 1rem; }
  .contact-form :is(input, select, textarea) { font-size: 1rem; }
  .contact-form :is(input, select) { min-height: 2.75rem; }
  .contact-form button { justify-self: stretch; }
  .footer-inner > * + * { border-top: 1px solid var(--dark-line); padding-top: 1rem; }
  .footer-list a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .footer-list li + li { margin-top: .25rem; }
  .steps {
    --step-line-start: 100% 0%;
    grid-template-columns: 1fr;
  }
  .steps li { min-height: var(--step-marker); padding: .3rem 0 .3rem calc(var(--step-marker) + .85rem); }
  .steps li::before { position: absolute; top: 0; left: 0; }
  .steps li:not(:last-child)::after {
    inset: calc(var(--step-marker) / 2) auto calc(-1 * var(--step-gap) - var(--step-marker) / 2) calc(var(--step-marker) / 2 - 1px);
    width: 2px;
    height: auto;
    background-image: linear-gradient(180deg, #60A5FA, var(--cyan));
  }
}
