.contact-dialog { --contact-progress: 33.33%; width: min(760px,calc(100vw - 40px)); max-width: none; max-height: min(850px,calc(100dvh - 40px)); padding: 0; border: 1px solid #53573c; color: var(--ink); background: #10120d; box-shadow: 0 30px 130px #000b; overflow: auto; overscroll-behavior: contain; }
.contact-dialog::backdrop { background: #050603d9; backdrop-filter: blur(10px); }
.contact-dialog[open] { animation: contact-arrive .32s var(--ease); }
.contact-dialog [hidden] { display: none !important; }
.contact-panel { padding: clamp(22px,4vw,40px); }
.contact-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.contact-kicker,.contact-step,.contact-guide-caption { font: 500 11px/1.4 Geist,system-ui,sans-serif; letter-spacing: .09em; }
.contact-kicker { color: var(--muted); }
.contact-dialog button,.contact-dialog input,.contact-dialog textarea,.contact-dialog select { font: inherit; }
.contact-dialog button { cursor: pointer; }
.contact-close { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.contact-close:hover { border-color: var(--accent); color: var(--accent); }
.contact-dialog :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.contact-conversation { display: grid; grid-template-columns: 304px minmax(0,1fr); gap: clamp(20px,4vw,40px); align-items: center; padding-block: 32px 64px; }
.contact-guide { position: relative; display: grid; place-items: center; color: var(--accent); }
.contact-avatar { position: relative; width: 288px; height: 288px; }
.contact-avatar img { width: 100%; height: 100%; object-fit: contain; }
.contact-avatar canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contact-avatar.has-bloom > img { visibility: hidden; }
.contact-guide-caption { position: absolute; top: calc(100% + 15px); left: 0; width: 100%; color: var(--muted); text-align: center; font-size: 9px; line-height: 1.6; }
.contact-step { color: var(--accent); margin-bottom: 12px; }
.contact-intro h2,.contact-success h3 { font: 400 clamp(36px,5vw,58px)/1.02 var(--display); letter-spacing: -.015em; text-transform: uppercase; margin: 0; }
.contact-intro h2 em,.contact-success h3 em { color: var(--accent); font-style: normal; }
.contact-prompt { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 400px; margin-top: 16px; }
.contact-form { margin: 0; }
.contact-stage { border: 0; margin: 0; padding: 0; min-width: 0; }
.contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.contact-option { position: relative; cursor: pointer; }
.contact-option:last-child { grid-column: 1/-1; }
.contact-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.contact-option span { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 16px; border: 1px solid #3d4130; color: var(--ink); font-size: 14px; transition: border-color .15s,background .15s,color .15s; }
.contact-option b { color: var(--muted); font-size: 10px; font-weight: 400; }
.contact-option i { margin-left: auto; color: var(--muted); font-style: normal; }
.contact-option:hover span { border-color: var(--accent); }
.contact-option input:checked + span { color: var(--accent); border-color: var(--accent); background: #effa340c; }
.contact-option input:checked + span b,.contact-option input:checked + span i { color: var(--accent); }
.contact-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.contact-field { display: block; color: var(--ink); font-size: 13px; line-height: 1.5; margin-bottom: 20px; }
.contact-field input,.contact-field textarea,.contact-field select { display: block; width: 100%; margin-top: 9px; border: 1px solid #454a34; border-radius: 0; background: #090a08; color: var(--ink); padding: 13px 14px; min-height: 48px; }
.contact-field textarea { resize: vertical; min-height: 128px; max-height: 240px; line-height: 1.55; }
.contact-field input::placeholder,.contact-field textarea::placeholder { color: #8e9380; opacity: 1; }
.contact-field input:focus,.contact-field textarea:focus,.contact-field select:focus { outline: 1px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.contact-optional { color: var(--muted); margin-left: 5px; font-size: 11px; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-summary { padding: 13px 0; border-block: 1px solid var(--line); color: var(--accent); font-size: 12px; line-height: 1.6; }
.contact-privacy { margin-top: 13px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.contact-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 26px; }
.contact-back { color: var(--muted); background: transparent; border: 0; padding: 12px 0; margin-right: auto; font-size: 13px !important; }
.contact-next,.contact-send,.contact-done { display: flex; align-items: center; justify-content: space-between; gap: 36px; min-height: 48px; padding: 13px 18px; border: 1px solid var(--accent); background: var(--accent); color: #090a08; font-size: 14px !important; }
.contact-next:hover,.contact-send:hover,.contact-done:hover { background: #f5ff6b; }
.contact-dialog button:disabled { cursor: wait; opacity: .55; }
.contact-progress { margin-top: 24px; height: 2px; background: var(--line); }
.contact-progress span { display: block; width: var(--contact-progress); height: 100%; background: var(--accent); transition: width .3s var(--ease); }
.contact-error { color: #ffb6a5; margin-top: 18px; font-size: 13px; line-height: 1.55; }
.contact-direct { display: inline-block; color: var(--muted); margin-top: 20px; font-size: 11px; line-height: 1.6; }
.contact-direct:hover { color: var(--accent); }
.contact-success { padding: 36px 0 10px; }
.contact-success-mark { display: grid; width: 54px; height: 54px; place-items: center; background: var(--accent); color: #090a08; font-size: 30px; margin-bottom: 24px; }
.contact-success p { max-width: 430px; margin-top: 22px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.contact-done { margin-top: 28px; }
.contact-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes contact-arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media(max-width:600px) {
  .contact-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .contact-panel { padding: 20px; }
  .contact-header { padding-bottom: 16px; }
  .contact-kicker { font-size: 9px; }
  .contact-conversation { grid-template-columns: minmax(0,1fr); gap: 16px; padding-block: 24px; }
  .contact-guide { padding-top: 0; justify-self: center; }
  .contact-avatar { width: 160px; height: 160px; }
  .contact-guide-caption { display: none; }
  .contact-intro h2,.contact-success h3 { font-size: 38px; }
  .contact-prompt { font-size: 12px; margin-top: 12px; }
  .contact-options { grid-template-columns: 1fr; gap: 7px; }
  .contact-option span { min-height: 45px; padding: 12px; font-size: 13px; }
  .contact-fields { grid-template-columns: 1fr; gap: 0; }
  .contact-field input,.contact-field textarea,.contact-field select { font-size: 16px; }
  .contact-actions { margin-top: 20px; }
}
@media(prefers-reduced-motion:reduce) { .contact-dialog[open] { animation: none; } .contact-progress span { transition: none; } }
