/* Contact side panel. A cream sheet that slides in from the right over the home page (layout and voice borrowed from eduardbodak.com/connect:
   oversized headline, plain "Close" label, quiet sections). Opened by any link to #contact or book-a-call.html. */
.contact { position: fixed; inset: 0; z-index: 120; visibility: hidden; pointer-events: none; }
.contact.is-open { visibility: visible; pointer-events: auto; }
.contact__scrim { position: absolute; inset: 0; background: rgb(11 11 12 / .42); opacity: 0; transition: opacity .5s var(--ease-expo); }
.contact.is-open .contact__scrim { opacity: 1; }
.contact__sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, clamp(30rem, 54vw, 54rem)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); color: var(--ink); padding: clamp(1.25rem, 1rem + 1.2vw, 2rem) clamp(1.25rem, .5rem + 3vw, 3rem) 3rem;
  transform: translateX(102%); transition: transform .7s var(--ease-expo); box-shadow: -1.5rem 0 4rem rgb(0 0 0 / .12);
}
.contact.is-open .contact__sheet { transform: none; }
.contact__bar { display: flex; justify-content: space-between; align-items: center; font-size: .9375rem; }
.contact__tag { font: 12px/1 var(--font-mono); text-transform: uppercase; opacity: .55; }
.contact__close { appearance: none; border: 0; background: none; font: inherit; font-weight: 500; opacity: .5; cursor: pointer; padding: .4rem 0 .4rem .8rem; transition: opacity .25s linear; }
.contact__close:hover, .contact__close:focus-visible { opacity: 1; }
.contact__close:focus-visible, .contact__sheet a:focus-visible, .contact__sheet button:focus-visible { outline: 2px solid var(--ink-dark); outline-offset: 3px; }
.contact__title { margin: clamp(2rem, 5vh, 3.5rem) 0 1.25rem; font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.75rem); line-height: .96; letter-spacing: -.055em; font-weight: 700; text-wrap: balance; }
.contact__lead { max-width: 34ch; font-size: 1.125rem; line-height: 1.3; letter-spacing: -.02em; opacity: .75; }
.contact__quick { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 2rem 0 0; }
.contact__quick > * { display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--surface); color: inherit; text-decoration: none; text-align: left; border: 0; font: inherit; cursor: pointer; transition: background-color .3s var(--ease-expo); }
.contact__quick > *:hover { background: hsl(39 28% 85%); }
.contact__quick small { font: 11px/1 var(--font-mono); text-transform: uppercase; opacity: .55; }
.contact__quick b { font-size: 1.0625rem; letter-spacing: -.03em; font-weight: 700; }
.contact__quick .is-primary { background: var(--accent); }
.contact__quick .is-primary:hover { background: #ffb83f; }
.contact__form { display: grid; gap: 1.75rem; margin-top: clamp(2rem, 5vh, 3.25rem); }
.contact__sep { font: 12px/1 var(--font-mono); text-transform: uppercase; opacity: .5; margin-top: clamp(2rem, 4vh, 3rem); }
.cfield { display: grid; gap: .35rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.cfield > label, .cfield > legend { padding: 0; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.03em; }
.cfield__opt { margin-left: .5rem; font: 11px/1 var(--font-mono); text-transform: uppercase; font-weight: 400; opacity: .5; }
.cfield input[type="text"], .cfield input[type="email"], .cfield textarea {
  width: 100%; border: 0; border-bottom: 1.5px solid rgb(0 0 0 / .28); border-radius: 0; background: transparent; padding: .55rem 0 .7rem; font: inherit; font-size: 1.375rem; letter-spacing: -.03em; color: inherit; outline: 0; transition: border-color .25s linear;
}
.cfield textarea { resize: none; min-height: 3.25rem; }
@supports (field-sizing: content) { .cfield textarea { field-sizing: content; max-height: 14lh; overflow-y: auto; } }
.cfield input::placeholder, .cfield textarea::placeholder { color: rgb(0 0 0 / .32); }
.cfield input:hover, .cfield textarea:hover { border-color: rgb(0 0 0 / .55); }
.cfield input:focus, .cfield textarea:focus { border-color: var(--ink-dark); }
.cfield input[aria-invalid="true"] { border-color: #c0392b; }
.cfield__err { font-size: .875rem; font-weight: 500; color: #c0392b; }
.cfield__err[hidden], .contact__form[hidden], .contact__done[hidden] { display: none; }
.cchips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.cchip { position: relative; display: inline-flex; }
.cchip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.cchip span { display: inline-flex; align-items: center; padding: .7rem 1rem; border: 1.5px solid rgb(0 0 0 / .28); border-radius: 8px; font-size: .9375rem; font-weight: 500; letter-spacing: -.02em; line-height: 1; transition: background-color .2s linear, color .2s linear, border-color .2s linear; }
@media (hover: hover) and (pointer: fine) { .cchip:hover span { border-color: var(--ink-dark); } }
.cchip input:checked + span { background: var(--ink-dark); border-color: var(--ink-dark); color: var(--bg); }
.cchip input:focus-visible + span { outline: 2px solid var(--ink-dark); outline-offset: 3px; }
.contact__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact__submit { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: .5rem; }
.contact__send { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .6rem; padding: 1.05rem 1.6rem; border-radius: 8px; background: var(--ink-dark); color: var(--bg); font: inherit; font-weight: 700; font-size: 1rem; letter-spacing: -.02em; transition: background-color .35s var(--ease-expo); }
.contact__send:hover { background: #2a2a2d; }
.contact__send[aria-busy="true"] { opacity: .65; cursor: progress; }
.contact__fine { font-size: .8125rem; opacity: .6; max-width: 28ch; line-height: 1.35; }
.contact__done { display: grid; gap: 1.25rem; margin-top: clamp(2rem, 5vh, 3rem); justify-items: start; }
.contact__done h3 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); line-height: 1; letter-spacing: -.05em; font-weight: 700; }
.contact__done p { max-width: 36ch; font-size: 1.125rem; line-height: 1.3; opacity: .78; }
.contact__done:focus { outline: none; }
@media (max-width: 640px) { .contact__quick { grid-template-columns: 1fr; } .cfield input[type="text"], .cfield input[type="email"], .cfield textarea { font-size: 1.2rem; } }
@media (prefers-reduced-motion: reduce) { .contact__sheet, .contact__scrim { transition: none; } }

/* internal pages are parked in _hidden/ for now: their links on the home page do nothing */
[data-hidden-page] { cursor: default; }
[data-hidden-page][hidden] { display: none !important; }
.showcase__cursor { display: none !important; }
