.contact-page form { gap: 32px; }
.contact-page form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-page form legend { margin-bottom: 12px; padding: 0; }
.contact-interest-hint { margin: -4px 0 16px; color: var(--white-muted,#666); font-size: 12px; line-height: 1.5; }
.contact-choice-list { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.contact-choice { position: relative; flex: 0 0 auto; min-width: 0; max-width: 100%; cursor: pointer; }
.contact-choice input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.contact-choice > span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--white-line,#dedede); border-radius: 3px; color: var(--white-ink,#141414); background: var(--white-surface,#fff); font-size: 13px; line-height: 1.5; white-space: nowrap; transition: color .16s, background-color .16s, border-color .16s; }
.contact-choice-check { display: none; }
.contact-choice-check path { opacity: 0; }
.contact-choice input:checked + span { background: var(--white-ink,#141414); border-color: var(--white-ink,#141414); color: #fff; }
.contact-choice input:checked + span .contact-choice-check { border-color: #fff; }
.contact-choice input:checked + span path { opacity: 1; }
.contact-choice input:focus-visible + span { outline: 2px solid var(--white-ink,#141414); outline-offset: 3px; }
.contact-choice:hover span { border-color: #777; }
.contact-page [data-contact-error] { margin: 8px 0 0; color: #b42318; font-size: 13px; line-height: 1.5; }
.contact-page [data-contact-error][hidden] { display: none; }
.contact-page [aria-invalid="true"] { border-color: #b42318; }
.contact-page form .contact-page-field > :is(input,textarea), .contact-page form select { padding: 12px 0; border-width: 0 0 1px; border-radius: 0; background: transparent; }
.contact-page form .contact-page-field > :is(input,textarea):focus, .contact-page form select:focus { border-bottom-color: var(--white-ink,#141414); outline: none; box-shadow: 0 1px 0 var(--white-ink,#141414); }
.contact-page form select { padding-right: 32px; }
.contact-page form .contact-page-select svg { right: 4px; }
.contact-page form .contact-page-field { gap: 4px; }
.contact-page form textarea { min-height: 150px; }
.contact-optional { font-size: 11px; letter-spacing: 0; text-transform: none; }
.contact-message-count { text-align: right; margin-top: 4px; color: var(--white-muted,#666); font-size: 12px; }
.contact-file-picker { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; width: fit-content; padding: 10px 16px; border: 1px solid var(--white-line,#dedede); border-radius: 3px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.contact-file-picker:hover { border-color: #777; }
.contact-file-picker input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.contact-file-picker:focus-within { outline: 2px solid var(--white-ink,#141414); outline-offset: 3px; }
.contact-file-summary { color: var(--white-muted,#666); font-size: 12px; line-height: 1.6; margin: 8px 0 0; }
.contact-file-list { list-style: none; margin: 12px 0 0; padding: 0; }
.contact-file-list:empty { display: none; }
.contact-file-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--white-line,#dedede); font-size: 13px; }
.contact-file-list li > span { min-width: 0; overflow-wrap: anywhere; }
.contact-file-list button { flex-shrink: 0; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; color: inherit; cursor: pointer; font-size: 23px; }
.contact-file-list button:focus-visible { outline: 2px solid #141414; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-captcha[hidden] { display: none; }
.contact-captcha-note { margin: -16px 0 0; max-width: 56em; color: var(--white-muted,#666); font-size: 12px; line-height: 1.7; }
.contact-captcha-note a { text-decoration: underline; text-underline-offset: 2px; }
.contact-page-submit { padding-top: 8px; }
.contact-page-submit button { white-space: nowrap; }
.contact-result-dialog p { margin: 0 0 24px; font-size: 15px; line-height: 1.7; }
.contact-leave-dialog p { margin: 0 0 24px; font-size: 16px; }
.contact-result-dialog button { width: 100%; }
.contact-page form[aria-busy="true"] > :not(.contact-page-submit) { pointer-events: none; opacity: .7; }
@media(min-width:901px) { .contact-page-details { position: sticky; top: calc(var(--site-header-height,88px) + 40px); align-self: start; } }
@media(max-width:599px) { .contact-page form { gap: 28px; } .contact-page-submit button { width: 100%; } .contact-choice > span { padding: 8px 12px; } }
@media(prefers-reduced-motion:reduce) { .contact-choice > span { transition: none; } }

/* Ributo contact composition, with Daniel Systems branding and the white theme. */
.contact-page-ributo { width: 100%; max-width: none; margin: 0; padding: 16px 32px 32px; min-height: calc(100svh - var(--site-header-height,64px)); }
.contact-page-ributo .contact-page-intro { padding: 0; margin-bottom: 32px; border: 0; }
.contact-page-ributo h1 { margin: 0; font-size: 96px; line-height: 1; letter-spacing: -.04em; font-weight: 300; }
.contact-page-ributo .contact-page-lead { max-width: 672px; margin-top: 16px; font-size: 18px; line-height: 1.55; }
.contact-page-ributo .contact-page-content { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 64px; padding-top: 0; }
.contact-page-ributo .contact-page-details { position: static; top: auto; padding: 0; border: 0; }
.contact-page-ributo .contact-page-details dl { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 0; }
.contact-page-ributo .contact-page-details dt { font-size: 14px; line-height: 1.5; letter-spacing: .06em; }
.contact-page-ributo .contact-page-details dd { margin-top: 8px; font-size: 30px; font-weight: 300; line-height: 1.35; }
/* Wheel gestures over the form continue through the page and footer. */
.contact-page-ributo .contact-page-inquiry { min-width: 0; max-height: none; overflow: visible; overscroll-behavior: auto; padding: 0; margin: 0; border: 0; }
.contact-page-ributo form { gap: 32px; margin-top: 0; padding-bottom: 32px; }
.contact-page-ributo form legend { margin-bottom: 16px; color: var(--white-ink,#141414); font-family: inherit; font-size: 20px; font-weight: 300; line-height: 1.4; text-transform: none; letter-spacing: 0; }
.contact-page-ributo .contact-page-field > label.contact-page-eyebrow,
.contact-page-ributo .contact-interest-hint { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.contact-page-ributo .contact-choice-list { gap: 8px; }
.contact-page-ributo .contact-choice > span { min-height: 40px; padding: 8px 16px; border-width: 2px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.contact-page-ributo .contact-page-fields { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 24px; align-items: start; }
/* Keep each input and the next row in place when validation text appears. */
.contact-page-ributo .contact-page-fields > .contact-page-field { container: contact-field / inline-size; }
.contact-page-ributo .contact-page-fields > .contact-page-field::after,
.contact-page-ributo .contact-page-fields [data-contact-error] { grid-area: 2 / 1; }
.contact-page-ributo .contact-page-fields [data-contact-error] { overflow-wrap: anywhere; }
.contact-page-ributo .contact-page-fields > .contact-page-field::after {
  content: "";
  min-block-size: 3em;
  margin-block-start: 8px;
  font-size: 13px;
  pointer-events: none;
}
@container contact-field (min-width: 300px) {
  .contact-page-ributo .contact-page-fields > .contact-page-field::after { min-block-size: 1.5em; }
}
.contact-page-ributo form .contact-page-field { gap: 0; }
.contact-page-ributo form .contact-page-field > :is(input,textarea),
.contact-page-ributo form select { padding: 0 0 12px; border-width: 0 0 2px; font-size: 18px; font-weight: 300; line-height: 1.5; }
.contact-page-ributo form select { padding-right: 32px; }
.contact-page-ributo #contact-page-job-title { min-block-size: 44px; cursor: pointer; }
.contact-page-ributo #contact-page-job-title:has(option[value=""]:checked) { color: #a3a3a3; }

/* Style the native picker where supported, keeping the OS picker as the fallback. */
@supports (appearance: base-select) and selector(select::picker(select)) {
  .contact-page-ributo #contact-page-job-title,
  .contact-page-ributo #contact-page-job-title::picker(select) {
    appearance: base-select;
  }
  .contact-page-ributo #contact-page-job-title::picker-icon { display: none; }
  .contact-page-ributo #contact-page-job-title:open + svg {
    transform: translateY(-50%) rotate(180deg);
  }
  .contact-page-ributo #contact-page-job-title::picker(select) {
    inline-size: anchor-size(width);
    min-inline-size: 0;
    max-inline-size: calc(100% - 32px);
    max-block-size: min(20rem, calc(100dvh - 32px));
    margin-block-start: 6px;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 4px;
    border: 1px solid var(--ui-line, #383838);
    border-radius: 0;
    background: #111;
    color: var(--white-ink, #fff);
    font-size: 16px;
    line-height: 1.5;
    box-shadow: 0 12px 32px #0006;
  }
  .contact-page-ributo #contact-page-job-title option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-block-size: 44px;
    padding: 8px 12px;
    border-radius: 0;
    background: transparent;
    color: var(--white-ink, #fff);
    cursor: pointer;
  }
  .contact-page-ributo #contact-page-job-title option:checked { background: #282828; }
  .contact-page-ributo #contact-page-job-title option:is(:hover, :focus) { background: #333; }
  .contact-page-ributo #contact-page-job-title option:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
  }
  .contact-page-ributo #contact-page-job-title option::checkmark {
    order: 1;
    margin-inline-start: auto;
  }
}
.contact-page-ributo form textarea { min-height: 150px; font-size: 16px; }
.contact-page-ributo .contact-message-count { margin-top: 8px; }
.contact-page-ributo .contact-file-picker { min-height: 44px; max-width: 100%; padding: 8px 12px; border: 0; border-radius: 0; font-size: 18px; font-weight: 300; gap: 12px; white-space: nowrap; }
.contact-page-ributo .contact-file-picker > svg { width: 20px; height: 20px; flex-shrink: 0; }
.contact-page-ributo .contact-page-submit { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 0; }
.contact-page-ributo .contact-page-submit button { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; width: fit-content; min-height: 40px; padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--white-ink,#141414); border-radius: 0; background: transparent; color: var(--white-ink,#141414); font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.5; }
.contact-page-ributo .contact-page-submit button::after { content: ""; display: block; width: 18px; height: 18px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 8l4 4-4 4M21 12H3' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .16s; }
.contact-page-ributo .contact-page-submit button:not(:disabled):hover::after { transform: translateX(4px); }
.contact-page-ributo .contact-page-submit button:disabled { color: #888; border-color: #aaa; background: transparent; }
.contact-page-ributo .contact-captcha-note { margin-top: -16px; }
@media(max-width:1023px) {
 .contact-page-ributo h1 { font-size: 60px; }
 .contact-page-ributo .contact-page-content { grid-template-columns: 1fr; gap: 32px; }
}
@media(max-width:767px) {
 .contact-page-ributo h1 { font-size: 36px; }
 .contact-page-ributo .contact-page-details dd { font-size: 24px; }
 .contact-page-ributo .contact-page-fields { grid-template-columns: 1fr; }
}
@media(max-width:639px) { .contact-page-ributo { padding-inline: 16px; } }
@media(prefers-reduced-motion:reduce) { .contact-page-ributo .contact-page-submit button::after { transition: none; } }

/* An outward focus ring is clipped at the desktop inquiry scrollport edge. */
.contact-page-ributo .contact-file-picker:focus-within { outline-offset: -2px; }
