/* Contact occupies the same full-screen stage, with a vertical ASCII signal portal. */
.contact { display: block; position: relative; isolation: isolate; overflow: hidden; padding: 0; background: #070707; }
.contact > .wrap { position: relative; display: block; height: 100%; min-height: 0; pointer-events: none; }
.contact .section-kicker { position: absolute; top: var(--edge-y); left: 0; right: 68px; margin: 0; min-height: 20px; }
.contact .contact-asterisk { width: 20px; height: 20px; }
.contact .contact-scene { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 1; }
.contact .contact-scene canvas { mask-image: none; }
.contact-scene::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg,#070707 0%,transparent 30%,transparent 72%,#070707df),linear-gradient(90deg,transparent 24%,#07070744 45%,#070707dc 70%,#070707b0); }

.contact .contact-layout,.contact .contact-intro { display: contents; }
.contact h2 { position: absolute; top: calc(var(--edge-y) + 38px); left: 0; font-size: clamp(34px,min(4.4vw,7.4svh),70px); line-height: .98; max-width: 46%; }
.contact .contact-email { position: absolute; bottom: 90px; left: 0; margin: 0; font-size: 20px; min-height: 44px; pointer-events: auto; }
.contact .topic-picker { position: absolute; top: calc(var(--edge-y) + 42px); left: 49%; right: 0; display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 20px; margin: 0; border-bottom: 1px solid #ffffff25; pointer-events: auto; }
.contact .topic-picker button { border: 0; border-bottom: 1px solid transparent; color: #a0a0a0; background: transparent; padding: 8px 0 14px; min-height: 70px; font-size: clamp(20px,2vw,30px); text-align: left; }
.contact .topic-picker button[aria-pressed="true"],.contact .topic-picker button:hover { color: #fff; border-bottom-color: #fff; background: transparent; }
.contact .contact-form-slot { position: absolute; top: calc(var(--edge-y) + 150px); bottom: 88px; left: 49%; right: 0; display: flex; align-items: center; pointer-events: auto; min-height: 0; }
.contact #contact-form { row-gap: clamp(10px,2svh,22px); }
.contact #contact-form .form-intro { display: none; }
.contact #contact-form input,.contact #contact-form textarea { background: #07070765; }
.contact #contact-form .field textarea { height: clamp(74px,13svh,140px); min-height: 60px; max-height: 140px; }
.contact #contact-form .btn { margin-top: 6px; }
.contact footer { position: absolute; bottom: 0; left: 0; right: 0; padding-bottom: 12px; background: linear-gradient(transparent,#070707); }
.contact .footer-inner { padding-top: 10px; }
.contact .contact-feedback { height: 100%; justify-content: center; }
.contact .contact-feedback canvas { height: min(34svh,300px); }
.contact:has(#contact-form[hidden]) .topic-picker { visibility: hidden; }
@media (max-width:700px), (max-width:900px) and (orientation:portrait) {
  .contact h2 { top: calc(var(--edge-y) + 32px); font-size: clamp(29px,5.1svh,44px); max-width: 80%; }
  .contact h2 br { display: block; }
  .contact .contact-email { top: calc(var(--edge-y) + 32px + clamp(60px,10.5svh,92px)); bottom: auto; font-size: 12px; min-height: 34px; gap: 20px; }
  .contact .topic-picker { top: calc(var(--edge-y) + 32px + clamp(60px,10.5svh,92px) + 44px); left: 0; right: 0; gap: 12px; }
  .contact .topic-picker button { min-height: 44px; padding: 8px 0 10px; font-size: 15px; }
  .contact .contact-form-slot { left: 0; right: 0; top: calc(var(--edge-y) + 32px + clamp(60px,10.5svh,92px) + 108px); bottom: 76px; align-items: end; }
  .contact #contact-form { row-gap: clamp(6px,1.1svh,12px); }
  .contact #contact-form .field textarea { height: clamp(52px,10svh,90px); min-height: 52px; }
  .contact #contact-form input,.contact #contact-form textarea { background: #070707a0; }
  .contact #contact-form .btn { margin-top: 0; }
  .contact .contact-feedback canvas { height: min(26svh,240px); }
  .contact-scene::after { background: linear-gradient(0deg,#070707 0%,#07070770 20%,#07070730 58%,#070707dd 94%); }
  .contact .contact-asterisk { width: 18px; height: 18px; }
  .contact .footer-inner { padding-top: 6px; }
}
@media (max-height:650px) and (max-width:700px) {
  .contact .contact-email { display: none; }
  .contact .topic-picker { top: calc(var(--edge-y) + 32px + clamp(60px,10.5svh,92px) + 8px); }
  .contact .contact-form-slot { top: calc(var(--edge-y) + 32px + clamp(60px,10.5svh,92px) + 60px); bottom: 76px; }
  .contact #contact-form { row-gap: 5px; }
  .contact #contact-form .form-note { display: none; }
  .contact #contact-form .btn { min-height: 44px; }
}
@media (max-height:500px) and (min-width:701px) {
  .contact h2 { top: 44px; font-size: 30px; }
  .contact .topic-picker { top: 40px; }
  .contact .topic-picker button { min-height: 44px; padding-bottom: 8px; font-size: 18px; }
  .contact .contact-form-slot { top: 94px; bottom: 76px; }
  .contact #contact-form { row-gap: 4px; }
  .contact #contact-form .field textarea { height: 40px; min-height: 40px; }
  .contact #contact-form .field input { min-height: 36px; font-size: 14px; }
  .contact #contact-form .btn { margin-top: 0; }
  .contact .contact-email { bottom: 70px; font-size: 16px; }
  .contact .contact-feedback canvas { height: 110px; }
  .contact .contact-feedback h3 { font-size: 24px; }
  .contact .contact-feedback p { font-size: 13px; }
  .contact footer { padding-bottom: 4px; }
}
