/* The contact sheet (Nov 2026): includes/contact.php, opened by assets/js/contact.js from the band's Work with me pill. The material is the
   deck's glass (deck3/assets/landing/glass.css, linked before this file): the sheet and the chips are the clear pill's ground, border, inset
   highlights and corner shine at their own sizes; a chip that is on is the bright pill's ground; Send and Done are .gx pills under .home-cta
   so glass.css draws them, sized here for the sheet. Tokens (--sans, --d-*, --ease-*, --ld-orange) come from deck3/assets/landing/tokens.css.
   Design: docs/superpowers/specs/2026-11-24-contact-sheet-design.md */

#contact{position:fixed;inset:0;z-index:4000;display:none;align-items:center;justify-content:center;font-family:var(--sans);color:#fff;-webkit-font-smoothing:antialiased}
#contact.open,#contact.moving{display:flex}
html.ct-lock,html.ct-lock body{overflow:hidden}

/* the page behind: ink at .55 over a 24px blur; the blur rides the backdrop's opacity, which transitions everywhere backdrop-filter itself does not */
.ct-back{position:absolute;inset:0;background:rgba(20,21,24,.55);-webkit-backdrop-filter:blur(24px) saturate(1.05);backdrop-filter:blur(24px) saturate(1.05);opacity:0;transition:opacity var(--d-6) var(--ease-io)}
#contact.open .ct-back{opacity:1}
@supports not (backdrop-filter:blur(1px)){.ct-back{background:rgba(20,21,24,.82)}}

/* the sheet: the clear glass at 560 wide */
.ct-sheet{--ux:1;--uy:-1;--sh:1;--sa:45deg;--tr:7%;
  position:relative;z-index:1;box-sizing:border-box;display:flex;flex-direction:column;width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);padding:40px;border-radius:28px;
  color:#fff;background:rgba(255,255,255,.05);border:1px double rgba(255,255,255,.1);
  -webkit-backdrop-filter:blur(12px) saturate(1.15);backdrop-filter:blur(12px) saturate(1.15);
  box-shadow:inset calc(2px*var(--ux)) calc(2px*var(--uy)) 1px -1px rgba(255,255,255,calc(.585*var(--sh))),inset calc(-2px*var(--ux)) calc(-2px*var(--uy)) 1px -1px rgba(255,255,255,calc(.585*var(--sh))),inset calc(6px*var(--ux)) calc(6px*var(--uy)) 1px -6px rgba(255,255,255,calc(.36*var(--sh))),inset calc(-6px*var(--ux)) calc(-6px*var(--uy)) 1px -6px rgba(255,255,255,calc(.36*var(--sh))),inset 0 0 2px rgba(0,0,0,.8),0 4px 8px rgba(0,0,0,.3),0 24px 80px rgba(0,0,0,.45);
  overflow:hidden}
.ct-sheet::after{content:"";position:absolute;z-index:3;inset:0;border-radius:inherit;filter:blur(7px);pointer-events:none;
  background:linear-gradient(calc(45deg + (var(--sa) - 45deg)*.3),rgba(255,255,255,calc(.33*var(--sh))) 0%,transparent var(--tr),transparent calc(100% - var(--tr)),rgba(255,255,255,calc(.33*var(--sh))) 100%)}
.ct-co{position:absolute;z-index:2;inset:4.5px;border-radius:inherit;border:1px solid rgba(255,255,255,.2);filter:blur(1px);pointer-events:none}
.ct-sheet>*{position:relative;z-index:4}
.ct-head,.ct-lede,.ct-done{flex:none}   /* only the form gives way when the window is short */
.ct-sheet>.ct-co,.ct-sheet>.ct-x{position:absolute}

/* the head */
.ct-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;min-height:40px;padding-right:56px}
.ct-title{margin:0;font:500 32px/1.15 var(--sans);letter-spacing:-.01em;color:#fff}
.ct-lede{margin:10px 0 24px;font:400 18px/1.4 var(--sans);color:#a6aebf}
.ct-x{all:unset;box-sizing:border-box;position:absolute;top:-1px;right:0;z-index:5;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:#2e2f33;color:#f5f5f5;box-shadow:0 0 6px rgba(0,0,0,.3);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform var(--d-hover) var(--ease-hover),background-color var(--d-hover) var(--ease-hover)}
.ct-x svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round}
.ct-x:hover{transform:scale(1.1);background:#383c43}
.ct-x:active{transform:scale(.94)}
.ct-x:focus-visible{outline:2px solid #fff;outline-offset:4px}

/* the form scrolls inside the sheet when the window is short */
.ct-form{display:block;margin:0 -40px;padding:2px 40px 0;overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.2) transparent;-webkit-overflow-scrolling:touch}

/* a field: the label in the fog grey, a dark glass well, the line under it only when it is wrong */
.ct-field,.ct-chipset{margin:0 0 20px}
.ct-row{display:flex;gap:14px}
.ct-row .ct-field{flex:1;min-width:0}
.ct-field label,.ct-label{display:block;margin:0 0 10px;font:400 16px/1 var(--sans);color:#a6aebf;letter-spacing:0;text-transform:none}
.ct-field input,.ct-field textarea{all:unset;box-sizing:border-box;display:block;width:100%;height:56px;padding:0 18px;border-radius:14px;
  background:rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.1);box-shadow:inset 0 2px 6px rgba(0,0,0,.35);
  font:400 19px/1.3 var(--sans);color:#fff;caret-color:#fff;
  transition:border-color var(--d-hover) var(--ease-hover),box-shadow var(--d-hover) var(--ease-hover),background-color var(--d-hover) var(--ease-hover)}
.ct-field input::placeholder,.ct-field textarea::placeholder{color:#727a88;opacity:1}
.ct-field textarea{height:auto;min-height:120px;padding:16px 18px;resize:none}
.ct-field input:hover,.ct-field textarea:hover{border-color:rgba(255,255,255,.18)}
.ct-field input:focus,.ct-field textarea:focus{border-color:rgba(255,255,255,.4);background:rgba(0,0,0,.34);box-shadow:inset 0 2px 6px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.12)}
.ct-field input:-webkit-autofill,.ct-field input:-webkit-autofill:focus{-webkit-text-fill-color:#fff;-webkit-box-shadow:inset 0 0 0 1000px #1c1d21;transition:background-color 9999s}
.ct-field.bad input,.ct-field.bad textarea{border-color:var(--ld-orange)}
.ct-err{display:none;margin:8px 0 0;font:400 15px/1.3 var(--sans);color:var(--ld-orange)}
.ct-field.bad .ct-err{display:block}

/* the chips: the clear pill at 44, the bright pill when on */
.ct-chips{display:flex;flex-wrap:wrap;gap:10px}
.ct-chip{all:unset;--ux:1;--uy:-1;--sh:1;--sa:45deg;box-sizing:border-box;display:inline-flex;align-items:center;height:44px;padding:0 18px;border-radius:9999px;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;
  font:500 17px/1 var(--sans);letter-spacing:-.01em;color:#fff;background:rgba(255,255,255,.05);border:1px double rgba(255,255,255,.1);
  box-shadow:inset calc(2px*var(--ux)) calc(2px*var(--uy)) 1px -1px rgba(255,255,255,calc(.585*var(--sh))),inset calc(-2px*var(--ux)) calc(-2px*var(--uy)) 1px -1px rgba(255,255,255,calc(.585*var(--sh))),inset calc(6px*var(--ux)) calc(6px*var(--uy)) 1px -6px rgba(255,255,255,calc(.36*var(--sh))),inset calc(-6px*var(--ux)) calc(-6px*var(--uy)) 1px -6px rgba(255,255,255,calc(.36*var(--sh))),inset 0 0 2px rgba(0,0,0,.8),0 4px 8px rgba(0,0,0,.3);
  transition:transform var(--d-hover) var(--ease-hover),background-color var(--d-hover) var(--ease-hover),color var(--d-hover) var(--ease-hover),--sa var(--d-shine) var(--ease-shine)}
@supports (width:calc(1px*sin(45deg))){.ct-sheet,.ct-chip{--ux:calc(1.4142*sin(var(--sa)));--uy:calc(-1.4142*cos(var(--sa)))}}
.ct-chip:hover{transform:scale(1.04);background:rgba(255,255,255,.08);--sa:75deg}
.ct-chip:active{transform:scale(.94);transition-duration:var(--d-1)}
.ct-chip:focus-visible{outline:2px solid #fff;outline-offset:4px}
.ct-chip[aria-pressed=true]{--sh:1.6;color:#1f2023;background:radial-gradient(120% 160% at 50% 25%,rgba(245,245,248,.87),rgba(220,220,227,.87));border-color:rgba(51,51,51,.08);
  box-shadow:inset calc(2px*var(--ux)) calc(2px*var(--uy)) 1px -1px rgba(255,255,255,calc(.585*var(--sh))),inset calc(-2px*var(--ux)) calc(-2px*var(--uy)) 1px -1px rgba(255,255,255,calc(.585*var(--sh))),inset calc(6px*var(--ux)) calc(6px*var(--uy)) 1px -6px rgba(255,255,255,calc(.36*var(--sh))),inset calc(-6px*var(--ux)) calc(-6px*var(--uy)) 1px -6px rgba(255,255,255,calc(.36*var(--sh))),inset 0 0 2px rgba(0,0,0,.8),0 4px 8px rgba(0,0,0,.2),0 14px 40px rgba(0,0,0,.35)}
.ct-chip[aria-pressed=true]:hover{background:radial-gradient(120% 160% at 50% 25%,rgba(245,245,248,.94),rgba(220,220,227,.94))}

/* the honeypot, off the page */
.ct-hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}

/* the foot: Send at the right, the bright pill sized for the sheet; the fail line beside it */
.ct-foot{display:flex;align-items:center;justify-content:flex-end;gap:18px;margin:8px 0 0;padding-bottom:2px}
html.btn-glass2 .ct-sheet .home-cta{gap:18px}
html.btn-glass2 .ct-sheet .home-cta .gx{height:60px;padding:0 14px 0 28px;gap:16px;font-size:19px;text-decoration:none}
html.btn-glass2 .ct-sheet .home-cta .gx .bi{width:32px;height:32px}
html.btn-glass2 .ct-sheet .home-cta .gx svg{width:15px;height:15px}
html.btn-glass2 .ct-sheet .home-cta .gx.s{gap:10px;padding-right:24px}
html.btn-glass2 .ct-sheet .home-cta .gx.s svg{width:17px;height:17px}
.ct-send[disabled]{opacity:.6;pointer-events:none}
.ct-fail{display:none;flex:1;margin:0;font:400 15px/1.3 var(--sans);color:var(--ld-orange)}
.ct-fail.on{display:block}

/* the sent state: the form goes, the thanks takes the sheet */
.ct-done{display:none}
#contact.sent .ct-form,#contact.sent .ct-lede.first,#contact.sent .ct-head{display:none}
#contact.sent .ct-done{display:block}
.ct-done .ct-lede{margin-bottom:30px}
.ct-done .ct-title{padding-right:0}

/* the heading in flight between the pill's label and the sheet's title (contact.js) */
.ct-fly{position:fixed;z-index:4001;left:0;top:0;margin:0;pointer-events:none;white-space:nowrap;font:500 17px/1 var(--sans);letter-spacing:-.01em;color:#fff;transform-origin:0 0;will-change:transform}
.ct-fly-arrow{display:block;flex:none}

/* phones (the band's own condition): a bottom sheet, full width, the keyboard's height under the foot */
@media (max-aspect-ratio:1/1),(max-width:760px){
  #contact.open,#contact.moving{align-items:flex-end}
  .ct-sheet{width:100%;max-height:calc(100% - 24px);padding:28px 20px calc(28px + var(--ct-kb,0px));border-radius:24px 24px 0 0;border-bottom:0}
  .ct-co{bottom:-2px}
  .ct-form{margin:0 -20px;padding:2px 20px 0}
  .ct-row{display:block}
  .ct-title{font-size:26px}
  .ct-lede{margin:8px 0 22px;font-size:16px}
  .ct-x{top:-2px;right:0;width:36px;height:36px}
  .ct-head{padding-right:48px}
  .ct-field input,.ct-field textarea{height:52px;font-size:17px;padding:0 16px}
  .ct-field textarea{min-height:112px;padding:14px 16px}
  .ct-field,.ct-chipset{margin-bottom:18px}
  .ct-chip{height:40px;padding:0 16px;font-size:15px}
  .ct-foot{flex-direction:column-reverse;align-items:stretch;gap:12px}
  html.btn-glass2 .ct-sheet .home-cta .gx{display:flex;width:100%;height:56px;justify-content:space-between;padding:0 12px 0 24px}
  html.btn-glass2 .ct-sheet .home-cta .gx.s{justify-content:center}
}
