/* Lower-page editorial sections */
.ys-space,
.ys-faq,
.ys-model-inner,
.ys-contact-inner {
  padding-block: clamp(64px, 8.3vw, 144px);
}

.ys-eyebrow,
.ys-receipt-name {
  margin: 0 0 22px;
  font: 600 11px/1.3 var(--mono);
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.ys-eyebrow {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.ys-eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  align-self: center;
  background: currentColor;
}

.ys-heading,
.ys-subheading {
  margin: 0;
  font-family: var(--display);
  font-weight: 740;
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.ys-heading {
  font-size: clamp(38px, 5.1vw, 82px);
}

.ys-subheading {
  font-size: clamp(27px, 3.2vw, 50px);
}

.ys-process,
.ys-foundation,
.ys-faq {
  display: grid;
  grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.17fr);
  gap: clamp(36px, 7vw, 128px);
  align-items: start;
}

.ys-steps,
.ys-component-list,
.ys-fit-cols ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ys-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 2.7vw, 46px);
  border-block-start: 1px solid var(--line);
  padding-block: 20px 22px;
}

.ys-steps li:last-child,
.ys-questions details:last-child {
  border-block-end: 1px solid var(--line);
}

.ys-step-index {
  font: 500 14px/1.3 var(--mono);
  color: var(--muted);
  padding-top: 4px;
}

.ys-steps h3,
.ys-fit-cols h3 {
  margin: 0;
  font: 700 clamp(21px, 2vw, 30px)/1.14 var(--sans);
  letter-spacing: -0.025em;
}

.ys-steps p,
.ys-found-copy,
.ys-intro,
.ys-questions details p,
.ys-fit-cols li {
  font: 400 clamp(15px, 1.15vw, 18px)/1.48 var(--sans);
}

.ys-steps p,
.ys-questions details p {
  margin: 7px 0 0;
  color: var(--muted);
  max-width: 52ch;
}

.ys-foundation {
  border-block-start: 1px solid var(--line);
  padding-block: clamp(32px, 5vw, 76px);
}

.ys-found-copy {
  margin: 0;
  max-width: 52ch;
}

.ys-component-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 0;
  margin-top: 22px;
  font: 500 12px/1.6 var(--mono);
  color: var(--muted);
}

.ys-component-list li {
  white-space: nowrap;
}

.ys-component-list li:not(:last-child)::after {
  content: "/";
  padding-inline: 9px;
}

.ys-model {
  background: color-mix(in srgb, var(--ink) 5%, var(--paper));
  border-block: 1px solid var(--line);
}

.ys-model-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(48px, 9vw, 174px);
  align-items: center;
}

.ys-intro {
  max-width: 44ch;
  margin: 22px 0 0;
}

.ys-model-controls .ys-intro {
  color: var(--muted);
}

.ys-sliders {
  margin-top: 35px;
}

.ys-slider + .ys-slider {
  margin-top: 14px;
}

.ys-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.ys-slider-label label {
  font: 600 clamp(14px, 1.12vw, 18px)/1.25 var(--sans);
}

.ys-slider-label output {
  font: 500 14px/1.4 var(--mono);
  white-space: nowrap;
  color: var(--ink);
}

.ys-slider input {
  --ys-track: linear-gradient(
    to right,
    var(--ink) 0 var(--ys-progress, 50%),
    var(--line) var(--ys-progress, 50%) 100%
  );
  display: block;
  width: 100%;
  height: 30px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  appearance: none;
  cursor: pointer;
}

.ys-slider input::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--ys-track);
}
.ys-slider input::-moz-range-track {
  height: 2px;
  background: var(--ys-track);
}
.ys-slider input::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 50%;
  margin-top: -7px;
  appearance: none;
}
.ys-slider input::-moz-range-thumb {
  width: 13px;
  height: 13px;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.ys-receipt {
  position: relative;
  justify-self: center;
  width: min(100%, 530px);
  padding: clamp(24px, 3.2vw, 57px);
  background: var(--acid);
  color: #191911;
  transform: rotate(1.25deg);
}

.ys-receipt::after {
  position: absolute;
  content: "";
  bottom: -8px;
  left: 0;
  right: 0;
  height: 9px;
  background:
    linear-gradient(135deg, var(--acid) 25%, transparent 25%) -8px 0 / 16px 16px
      repeat-x,
    linear-gradient(225deg, var(--acid) 25%, transparent 25%) -8px 0 / 16px 16px
      repeat-x;
}

.ys-receipt-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ys-receipt-wordmark,
.ys-footer-brand {
  font: 780 clamp(26px, 2.8vw, 42px)/1 var(--display);
  letter-spacing: -0.025em;
}

.ys-receipt-top > span:last-child {
  font: 400 40px/1 var(--sans);
}

.ys-receipt-name {
  margin: 17px 0 0;
  padding-bottom: clamp(22px, 3vw, 44px);
  border-block-end: 1px dashed currentColor;
}

.ys-total p,
.ys-receipt-row {
  font: 500 clamp(12px, 1vw, 15px)/1.4 var(--mono);
}

.ys-total p {
  margin: 26px 0 7px;
}

.ys-total > strong {
  display: block;
  font: 800 clamp(27px, 3.2vw, 52px)/1.14 var(--sans);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.ys-receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin: 18px 0;
  padding-bottom: 20px;
  border-bottom: 1px dashed currentColor;
}

.ys-receipt-note {
  margin: 0;
  color: inherit;
  font: 400 clamp(12px, 0.95vw, 14px)/1.5 var(--sans);
}

.ys-receipt-mark {
  width: min(40%, 104px);
  height: 18px;
  margin-top: 22px;
  background: repeating-linear-gradient(
    90deg,
    currentColor 0 1px,
    transparent 1px 3px,
    currentColor 3px 6px,
    transparent 6px 8px,
    currentColor 8px 10px,
    transparent 10px 15px,
    currentColor 15px 16px,
    transparent 16px 17px
  );
}

.ys-fit-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 6vw, 100px);
  margin-top: clamp(32px, 4.5vw, 66px);
}

.ys-fit-cols > div {
  border-block-start: 2px solid var(--ink);
  padding-top: 20px;
}

.ys-fit-cols h3 {
  margin-bottom: 20px;
}

.ys-fit-cols li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-block: 9px;
  border-top: 1px solid var(--line);
}

.ys-fit-cols li span {
  font: 500 14px/1 var(--mono);
}

.ys-faq {
  padding-top: 0;
}

.ys-questions details {
  border-block-start: 1px solid var(--line);
}

.ys-questions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 18px;
  list-style: none;
  cursor: pointer;
  font: 600 clamp(16px, 1.35vw, 22px)/1.25 var(--sans);
  letter-spacing: -0.025em;
}
.ys-questions summary::-webkit-details-marker {
  display: none;
}
.ys-questions summary > span {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  background:
    linear-gradient(currentColor, currentColor) center/100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center/1px 100% no-repeat;
}
.ys-questions [open] summary > span {
  background: linear-gradient(currentColor, currentColor) center/100% 1px
    no-repeat;
}

.ys-questions details p {
  margin: -3px 32px 20px 0;
}

.ys-contact {
  background: color-mix(in srgb, var(--accent) 84%, #fff1da);
  color: #181713;
}

.ys-contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: end;
  gap: clamp(36px, 5.5vw, 96px);
}

.ys-contact .ys-heading {
  font-size: clamp(45px, 6.4vw, 108px);
  line-height: 0.99;
}

.ys-contact-body .ys-intro {
  max-width: 38ch;
  margin: 0;
}

.ys-fields {
  display: grid;
  grid-template-columns: minmax(100px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  margin-top: 28px;
}

.ys-fields label,
.ys-prepared label {
  min-width: 0;
  font: 600 12px/1.4 var(--sans);
}

.ys-fields input,
.ys-fields select,
.ys-prepared textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 9px 0;
  border: none;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font: 500 16px/1.35 var(--sans);
  color-scheme: light;
}
.ys-fields input::placeholder {
  color: currentColor;
  opacity: 1;
}
.ys-fields option {
  background: #fff;
  color: #171712;
}

.ys-contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 22px;
}

.ys-action {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid #191911;
  border-radius: 0;
  background: #191911;
  color: #fffbed;
  font: 650 15px/1.25 var(--sans);
  cursor: pointer;
}

.ys-action:hover {
  background: var(--acid);
  color: #191911;
}

.ys-action span {
  font-size: 19px;
}

.ys-contact-note,
.ys-field-error {
  font: 500 13px/1.4 var(--sans);
  margin: 12px 0 0;
}

.ys-contact-note a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  color: inherit;
}

.ys-field-error:empty,
.ys-contact-note:empty {
  display: none;
}

.ys-field-error {
  font-weight: 700;
}

.ys-prepared {
  margin-top: 20px;
  border: 1px solid currentColor;
  padding: 14px;
}

.ys-prepared textarea {
  border: 0;
  padding: 0;
  resize: vertical;
  min-height: 4em;
}

.ys-copy {
  color: inherit;
  font: 650 14px/1.3 var(--sans);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 12px 0;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.ys-contact :focus-visible,
.ys-questions summary:focus-visible,
.ys-slider input:focus-visible,
.ys-footer a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.ys-footer {
  background: var(--paper);
  color: var(--ink);
}
.ys-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 24px;
  font: 500 12px/1.45 var(--mono);
}
.ys-footer a {
  color: inherit;
  text-decoration: none;
}
.ys-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.ys-footer-brand span {
  color: var(--accent);
}
.ys-back {
  white-space: nowrap;
}

@media (max-width: 800px) {
  .ys-process,
  .ys-foundation,
  .ys-faq {
    grid-template-columns: minmax(0, 0.77fr) minmax(0, 1.23fr);
    gap: 30px;
  }
  .ys-model-inner,
  .ys-contact-inner {
    gap: 26px;
  }

  .ys-heading {
    font-size: clamp(34px, 5.3vw, 44px);
  }

  .ys-steps li {
    gap: 14px;
  }
}

@media (max-width: 650px) {
  .ys-process,
  .ys-foundation,
  .ys-model-inner,
  .ys-fit-cols,
  .ys-faq,
  .ys-contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .ys-model-inner {
    gap: 36px;
  }

  .ys-receipt {
    width: min(95%, 430px);
    justify-self: center;
  }

  .ys-total > strong {
    font-size: clamp(30px, 8vw, 47px);
  }

  .ys-contact .ys-heading {
    font-size: clamp(38px, 11.8vw, 69px);
  }

  .ys-foundation {
    gap: 20px;
  }

  .ys-fit-cols {
    gap: 30px;
  }

  .ys-footer-inner {
    flex-wrap: wrap;
    gap: 10px 14px;
  }
  .ys-footer-inner > span {
    order: 1;
    flex-basis: 100%;
  }
}

@media (max-width: 370px) {
  .ys-fields {
    gap: 10px;
    grid-template-columns: 99px minmax(0, 1fr);
  }
  .ys-slider-label output {
    font-size: 12px;
  }
  .ys-heading {
    font-size: 34px;
  }
}

@media (forced-colors: active) {
  .ys-slider input {
    appearance: auto;
  }
  .ys-questions summary > span::before {
    content: "+";
  }
  .ys-questions [open] summary > span::before {
    content: "−";
  }
}
