.sr-only {
  position: absolute;
  width: 1px;
  height: 1px; /* taste-skill-ignore: screen-reader-only utility */
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.custom-hero {
  display: grid;
  grid-template-columns: minmax(0, 6.2fr) minmax(0, 5.8fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 5rem) clamp(4rem, 8vw, 7rem);
}

.custom-hero:has(.custom-hero-media[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}

.custom-hero-copy h1 {
  max-width: 15ch;
  font-size: var(--step-display);
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: 0.94;
}

.custom-hero-copy .lead {
  max-width: 46ch;
}

.custom-hero-media {
  overflow: hidden;
  background: var(--surface);
}

.custom-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.custom-hero-media figcaption,
.custom-scope figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: var(--step-small);
}

.custom-scope {
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background: #fff;
}

.custom-section-head,
.custom-wizard-heading {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
}

.custom-section-head h2,
.custom-wizard-heading h2 {
  max-width: 16ch;
  font-size: var(--step-head);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.custom-section-head p,
.custom-wizard-heading p {
  color: var(--muted);
}

.custom-scope-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr);
  grid-auto-rows: minmax(0, 1fr);
  gap: var(--gutter);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.custom-scope-grid figure {
  display: grid;
  align-content: start;
}

.custom-scope-grid .custom-scope-feature {
  grid-row: span 2;
}

.custom-scope-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.custom-scope-grid .custom-scope-feature img {
  aspect-ratio: auto;
  min-height: 100%;
}

.custom-scope-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.custom-scope-list li {
  padding-top: 1rem;
  font-weight: 600;
}

.custom-process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.custom-process-steps h3 {
  font-size: var(--step-lead);
  font-weight: 600;
}

.custom-process-steps p {
  margin-top: 0.55rem;
  color: var(--muted);
}

.custom-process-film {
  width: min(100%, 52rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  margin-inline: auto;
}

.custom-process-film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface);
}

.custom-process-film figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: var(--step-small);
}

.custom-wizard-section {
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background: #eef3f6;
}

.custom-wizard-shell {
  display: grid;
  grid-template-columns: minmax(13rem, 0.3fr) minmax(0, 0.7fr);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  background: #fff;
}

.custom-progress {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #e7eef6;
}

.custom-progress-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.custom-progress-list li {
  position: relative;
  min-height: 3.25rem;
  padding: 0.8rem 0 0.8rem 1.7rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.custom-progress-list li::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 0;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid #9aabb9;
  border-radius: 50%;
  background: #e7eef6;
}

.custom-progress-list li::after {
  content: "";
  position: absolute;
  top: 2rem;
  bottom: -0.25rem;
  left: 0.43rem;
  width: 2px;
  background: #c7d5df;
}

.custom-progress-list li:last-child::after {
  display: none;
}

.custom-progress-list li[aria-current="step"],
.custom-progress-list li.is-complete {
  color: var(--ink);
}

.custom-progress-list li[aria-current="step"]::before,
.custom-progress-list li.is-complete::before {
  border-color: var(--accent);
  background: var(--accent);
}

.custom-progress-note {
  margin-top: 2rem;
  color: var(--muted);
  font-size: var(--step-small);
}

.custom-form {
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 3.25rem);
}

.custom-form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: var(--step-small);
  font-weight: 700;
}

.custom-step {
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
}

.custom-step h3 {
  max-width: 18ch;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.custom-step > p {
  margin-top: 0.85rem;
  color: var(--muted);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding: 0;
  border: 0;
}

.choice-grid legend {
  padding: 0;
}

.choice-card {
  position: relative;
  display: grid;
  min-height: 6.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid #cdd9e2; /* taste-skill-ignore: selectable form option */
  background: #fff;
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px; /* taste-skill-ignore: visually hidden radio input */
  opacity: 0;
}

.choice-card span {
  display: grid;
  gap: 0.35rem;
}

.choice-card strong {
  font-size: 1rem;
}

.choice-card small {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.choice-card:hover,
.choice-card:focus-within {
  border-color: var(--accent);
}

.choice-card:has(input:checked) {
  border-color: var(--accent);
  background: #eaf0ff;
}

.choice-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-check {
  display: flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #cdd9e2; /* taste-skill-ignore: real form control */
  background: #fff;
  cursor: pointer;
}

.choice-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  flex: none;
}

.choice-check:has(input:checked) {
  border-color: var(--accent);
  background: #eaf0ff;
}

.custom-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.custom-field {
  display: grid;
  gap: 0.45rem;
}

.custom-field > span,
.custom-certifications legend {
  color: var(--muted);
  font-size: var(--step-small);
  font-weight: 600;
}

.custom-field input,
.custom-field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cdd9e2; /* taste-skill-ignore: real form control */
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: var(--step-small);
  line-height: 1.5;
  padding: 0.65rem 0.75rem;
}

.custom-field textarea {
  min-height: 18rem;
  resize: vertical;
  line-height: 1.5;
}

.custom-field-wide {
  margin-top: 1rem;
}

.custom-field-note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: var(--step-small);
  line-height: 1.5;
}

.custom-certifications {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.custom-certifications legend {
  margin-bottom: 0.6rem;
}

.custom-form-error {
  margin-top: 1rem !important;
  color: #b42318 !important;
  font-weight: 600;
}

.custom-form-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e9ef; /* taste-skill-ignore: separates form navigation from fields */
}

.custom-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  align-items: center;
  margin-top: 1.5rem;
}

.custom-summary-actions .text-link {
  margin-left: auto;
}

.custom-form-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: var(--step-small);
}

.custom-noscript {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fff;
}

.custom-copy-status {
  min-height: 1.3em;
  margin-top: 0.6rem;
  color: var(--accent);
  font-size: var(--step-small);
  font-weight: 600;
}

@media (max-width: 1050px) {
  .custom-hero,
  .custom-section-head,
  .custom-wizard-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .custom-scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .custom-scope-grid .custom-scope-feature {
    grid-column: span 2;
    grid-row: auto;
  }

  .custom-scope-grid .custom-scope-feature img {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .custom-scope-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custom-wizard-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .custom-progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
  }

  .custom-progress-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .custom-progress-list li {
    min-height: 0;
    padding: 0.6rem 0.6rem 0.6rem 1.5rem;
  }

  .custom-progress-list li::after {
    display: none;
  }

  .custom-progress-note {
    max-width: 15rem;
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .custom-hero {
    gap: 1.15rem;
    padding-block: 1.4rem 2.5rem;
  }

  .custom-hero-copy h1 {
    font-size: clamp(2.25rem, 9.8vw, 2.75rem);
  }

  .custom-scope,
  .custom-wizard-section {
    padding-block: 2.5rem;
  }

  .custom-section-head {
    gap: 0.75rem;
  }

  .custom-section-head p,
  .custom-wizard-heading p {
    font-size: 1rem;
  }

  .custom-scope-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .custom-scope-grid figure,
  .custom-scope-grid .custom-scope-feature {
    min-width: 0;
  }

  .custom-scope-grid .custom-scope-feature {
    grid-column: 1 / -1;
  }

  .custom-scope-grid figure:not(.custom-scope-feature) img {
    height: 100%;
  }

  .custom-scope-grid img,
  .custom-scope-grid .custom-scope-feature img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .custom-scope-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.8rem;
    margin-top: 1.25rem;
    font-size: 0.875rem;
  }

  .custom-scope-list li {
    padding-top: 0.5rem;
  }

  .custom-process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    margin-top: 1.5rem;
  }

  .custom-process-steps h3 {
    font-size: 1rem;
  }

  .custom-process-steps p {
    margin-top: 0.3rem;
    font-size: 1rem;
    line-height: 1.4;
  }

  .custom-process-film {
    margin-top: 1.35rem;
  }

  .custom-wizard-heading {
    gap: 0.75rem;
  }

  .custom-wizard-shell {
    margin-top: 1.5rem;
  }

  .custom-progress {
    padding: 0.8rem 1rem;
  }

  .custom-progress-list {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
  }

  .custom-progress-list li {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0.45rem 0.65rem 0.45rem 1.35rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .custom-progress-list li::before {
    top: 0.9rem;
    width: 0.5rem;
    height: 0.5rem;
  }

  .custom-progress-note {
    display: none;
  }

  .custom-form {
    padding: 1rem;
  }

  .custom-step {
    padding-top: 1.1rem;
  }

  .custom-step h3 {
    font-size: 1.55rem;
  }

  .custom-step > p {
    margin-top: 0.55rem;
    font-size: 1rem;
  }

  .choice-grid,
  .choice-grid-compact,
  .custom-certifications {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .choice-card {
    min-height: 4.6rem;
    padding: 0.7rem;
  }

  .choice-card strong {
    font-size: 0.95rem;
  }

  .choice-card small {
    font-size: 0.8125rem;
  }

  .choice-check {
    min-height: 44px;
    padding: 0.5rem 0.6rem;
    font-size: 0.8125rem;
  }

  .custom-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 1rem;
  }

  .custom-field > span {
    font-size: 0.8125rem;
  }

  .custom-field input {
    padding: 0.55rem 0.65rem;
  }

  .custom-field textarea {
    min-height: 8rem;
  }

  .custom-field-wide {
    margin-top: 0.6rem;
  }

  .custom-form-nav {
    position: sticky;
    bottom: calc(70px + env(safe-area-inset-bottom));
    z-index: 4;
    margin: 1rem -1rem -1rem;
    padding: 0.8rem 1rem;
    background: #fff;
  }

  .custom-form-nav .button {
    min-height: 46px;
  }

  .custom-summary-actions {
    gap: 0.55rem;
  }

  .custom-summary-actions .button {
    min-height: 48px;
  }

  .custom-scope-grid .custom-scope-feature {
    grid-column: auto;
  }

  .custom-summary-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .custom-summary-actions .button {
    width: 100%;
  }

  .custom-summary-actions .text-link {
    justify-content: center;
    margin-left: 0;
  }
}
