/* The contact panel continues the chapters' ocean, typography and spacing. */
html #contact{padding:24px;align-items:center}
html #contact .cx-card{width:min(660px,100%);max-height:calc(100dvh - 48px);padding:36px 40px 32px;border-radius:24px;scrollbar-gutter:stable;scroll-padding-block:24px;background:radial-gradient(ellipse at 10% 0,rgba(98,227,210,.08),transparent 65%),linear-gradient(160deg,#0b3040,#041620)}
html #contact .cx-toolbar{position:sticky;top:0;height:0;z-index:2}
html #contact .cx-close{width:44px;height:44px;top:0;right:-24px;border-color:transparent;font-size:26px;z-index:2;background:#092733}
html #contact .cx-close:hover{background:rgba(230,246,243,.08)}
html #contact .cx-pre{font-family:var(--f-mono);font-size:10px;letter-spacing:.16em;padding-right:44px}
html #contact :is(h1,h2){font-family:var(--f-display);font-size:clamp(34px,4vw,48px);line-height:1.1;letter-spacing:-.025em;margin:12px 40px 14px 0;text-wrap:balance}
html #contact .cx-lead{font-size:16px;line-height:1.6;max-width:48ch;margin-bottom:28px}
html #contact fieldset{margin-bottom:24px;min-width:0}
html #contact legend,html #contact label{font-size:14px;line-height:1.5;margin-bottom:8px;color:var(--foam)}
html #contact label small{font-size:12px;color:var(--dim)}
html #contact .cx-kinds{gap:8px}
html #contact .cx-kinds button{min-height:44px;padding-inline:16px;font-size:14px;background:transparent}
html #contact .cx-row{gap:18px}
html #contact .cx-f{margin-bottom:20px;min-width:0}
html #contact input,html #contact textarea{border-radius:10px;min-height:48px;font-size:16px;line-height:1.5;border-color:rgba(230,246,243,.24)}
html #contact textarea{min-height:120px}
html #contact .cx-ctx{padding:12px 0;gap:12px;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:none;margin:0 0 24px;align-items:center}
html #contact .cx-ctx span{min-width:0;overflow-wrap:anywhere;line-height:1.6}
html #contact .cx-ctx button{min-height:44px;min-width:64px}
html #contact .cx-err{line-height:1.5;margin:8px 0 20px}
html #contact .cx-send{gap:16px;margin-top:8px}
html #contact .cx-go{min-height:48px;letter-spacing:0;padding:12px 24px;box-sizing:border-box}
html #contact .cx-note{font-size:13px;line-height:1.5}
html #contact .cx-alt{margin:24px 0 0;padding-top:20px;border-top:1px solid var(--line);font-size:14px;line-height:1.6}
html #contact .cx-alt a{display:inline-block;padding-block:4px;text-underline-offset:4px;overflow-wrap:anywhere}
html #contact.sending .cx-form{display:none}
html #contact .cx-done{position:relative;inset:auto;min-height:min(480px,calc(100dvh - 170px));padding:24px 0;gap:20px;box-sizing:border-box}
html #contact .cx-done h3{font-family:var(--f-display);font-size:clamp(30px,3.8vw,42px);line-height:1.15;letter-spacing:-.025em;text-wrap:balance;margin:0;opacity:1}
html #contact .cx-done p{font-size:16px;line-height:1.6;opacity:1;overflow-wrap:anywhere}
html #contact .cx-done .cx-acts{opacity:1;gap:12px;margin-top:8px}
html #contact .cx-bottle{flex:none}
html #contact :is(button,input,textarea,a):focus-visible{outline:2px solid var(--aqua);outline-offset:4px}
@media(max-width:600px){
  html #contact{padding:10px;align-items:center}
  html #contact .cx-card{max-height:calc(100dvh - 20px);padding:26px 22px 24px;border-radius:20px}
  html #contact .cx-close{right:-12px}
  html #contact .cx-row{grid-template-columns:1fr;gap:0}
  html #contact .cx-lead{margin-bottom:24px}
  html #contact :is(h1,h2){margin-right:24px}
  html #contact .cx-kinds{display:grid;grid-template-columns:1fr 1fr}
  html #contact .cx-kinds button{padding-inline:10px}
  html #contact .cx-send{align-items:flex-start;flex-direction:column;gap:12px}
  html #contact .cx-send .cx-go{width:100%}
  html #contact .cx-note br{display:initial}
  html #contact .cx-done{min-height:min(440px,calc(100dvh - 100px));padding-top:40px}
}
@media(max-height:500px){
  html #contact .cx-card{padding:24px}
  html #contact .cx-done{min-height:0;padding-top:32px;gap:16px}
  html #contact .cx-bottle{width:40px;height:65px}
}
@media(prefers-reduced-motion:reduce){html #contact *,html #contact *::before{transition:none!important;animation:none!important}}
