.home-process {
  background: var(--paper);
}

.home-process-frame {
  margin-top: clamp(24px, 3vw, 42px);
}

.home-process-slides {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  overflow-x: auto;
  border-radius: clamp(14px, 2.5vw, 32px);
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.home-process-slides::-webkit-scrollbar { display: none; }

.home-process-slide {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.home-process-media {
  position: relative;
  min-width: 0;
  min-height: clamp(310px, 34vw, 460px);
  overflow: hidden;
  background: var(--lilac);
}

.home-process-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-process-slide:nth-child(2) img { object-position: center 55%; }
.home-process-slide:nth-child(3) img { object-position: center 62%; }

.home-process-panel {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 66px);
  color: #fff;
  background: var(--ink);
}

.home-process-number {
  color: #aeb9ff;
  font-family: var(--display);
  font-size: clamp(3.1rem, 7.4vw, 7.1rem);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.075em;
  line-height: .83;
}

.home-process-panel h3 {
  max-width: 19ch;
  margin: 6px 0 11px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.1vw, 3.15rem);
  font-weight: 740;
  letter-spacing: -.048em;
  line-height: 1.02;
}

.home-process-panel p {
  max-width: 41ch;
  margin: 0;
  color: #e1e5ff;
  font-size: clamp(.95rem, 1.3vw, 1.12rem);
  line-height: 1.55;
}

.home-process-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: clamp(10px, 1.3vw, 18px) 3px 3px;
}

.home-process-segments, .home-process-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-process-controls button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 9px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.home-process-segments button {
  min-width: clamp(44px, 5.6vw, 76px);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 750;
}

.home-process-segments button[aria-current='step'] {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.home-process-controls button:hover:not(:disabled):not([aria-current='step']) { border-color: var(--accent); color: var(--accent-dark); }
.home-process-controls button:disabled { color: #72758c; background: #f1f2fa; }
.home-process-arrows button { border-radius: 50%; }
.home-process-arrows button:first-child .icon { transform: rotate(180deg); }
.home-process-link { margin-top: 17px; }

.home-flow-screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.home-contact { background: var(--accent); color: white; }
.home-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: stretch;
  gap: clamp(24px, 5vw, 82px);
}

.home-contact-copy { min-width: 0; }
.home-contact .section-head h2 { max-width: 16ch; font-size: clamp(2.25rem, 4.4vw, 4.6rem); }
.home-contact .section-head > p { color: #f2f3ff; }
.home-contact-shortcut { margin-top: 16px; }
.home-contact-shortcut:focus-visible { outline-color: white; }
.home-contact-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  padding: clamp(15px, 2.2vw, 29px);
  border: 1px solid var(--line);
  border-radius: clamp(16px, 2.4vw, 28px);
  color: var(--ink);
  background: var(--paper);
}

.home-contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; width: 100%; }
.home-contact-fields > label, .home-contact-types legend { color: var(--ink); font-size: .82rem; font-weight: 700; line-height: 1.35; }
.home-contact-fields > label, .home-contact-types { min-width: 0; }
.home-contact-fields > label { display: grid; grid-template-columns: 1fr; align-content: space-between; }
.home-contact-fields > label b, .home-contact-types legend > span { color: var(--accent-dark); }
.home-contact-fields > label > :is(input, textarea) {
  width: 100%;
  min-height: 43px;
  margin-top: 5px;
  padding: 9px 10px;
  border: 1px solid #d3d6e7;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
  font-weight: 500;
}
.home-contact-fields > label > :is(input, textarea)::placeholder { color: #686c83; font-weight: 400; }
.home-contact-fields textarea { min-height: 110px; resize: vertical; }
.home-contact-full { grid-column: 1 / -1; }
.home-contact-types { margin: 0; padding: 0; border: 0; }
.home-contact-types legend { padding: 0; }
.home-contact-options { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.home-contact-options label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafaff;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 650;
}
.home-contact-options label:has(:checked) { border-color: var(--accent); background: var(--lilac); }
.home-contact-options input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.home-contact-types small { display: block; margin-top: 5px; color: var(--muted); font-size: .74rem; }
.home-contact-help { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.home-contact-help a { color: var(--accent-dark); text-underline-offset: .2em; }

.home-contact-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
  max-height: 870px;
  margin: 0;
  padding-bottom: 27px;
  border-radius: 14px;
  overflow: hidden;
}
.home-contact-mosaic img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 8px;
  background: #dce0fa;
  object-fit: cover;
}
.home-contact-mosaic img:nth-child(even) { transform: translateY(18px); }

@media (max-width: 900px) {
  .home-contact-layout { grid-template-columns: minmax(0, 1fr); }
  .home-contact-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); height: clamp(230px, 51vw, 420px); }
}

@media (max-width: 650px) {
  .home-process-slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .home-process-media { min-height: 0; aspect-ratio: 1.53; }
  .home-process-panel { align-content: start; padding: 20px 17px 24px; gap: 10px; }
  .home-process-panel h3 { margin-top: 4px; }
  .home-contact-form .button { width: 100%; }
}

@media (max-width: 430px) {
  .home-process-controls button { min-width: 40px; min-height: 41px; }
  .home-process-segments, .home-process-arrows { gap: 5px; }
  .home-contact-fields { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .home-process-slides { scroll-behavior: auto; }
}
