/* Character Studies intake, scoped to /ape/ and the BAYC invitation. */
body[data-page="ape"] .ape-page{padding-block:0 12px}
body[data-page="ape"] .ape-kicker{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--ink);padding:12px 0 8px}
body[data-page="ape"] .ape-content{display:grid;grid-template-columns:minmax(0,.84fr) minmax(0,1fr);gap:clamp(28px,5vw,80px);align-items:start;padding-block:clamp(18px,2.3vw,32px) 12px}
body[data-page="ape"] .ape-left,body[data-page="ape"] .ape-right{min-width:0}
body[data-page="ape"] .ape-intro-title{grid-area:title;min-width:0}
body[data-page="ape"] .ape-study-example{width:min(100%,250px);height:145px;overflow:hidden;margin-top:clamp(22px,3vw,40px)}
body[data-page="ape"] .ape-study-example img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 7%}
body[data-page="ape"] .ape-intro-title h1{font-size:clamp(38px,4.2vw,62px);font-weight:760;line-height:.98;letter-spacing:-.04em;margin:8px 0 0}
body[data-page="ape"] .ape-intro-title h1::after{content:"";display:block;width:84px;border-top:5px solid var(--accent);margin-top:25px}
body[data-page="ape"] .ape-description{max-width:56ch;font-size:clamp(1rem,1.3vw,1.15rem);line-height:1.55;padding-top:clamp(24px,2.8vw,40px);margin:0}
body[data-page="ape"] .ape-form-area{width:100%;margin-top:clamp(17px,2.2vw,28px);border-top:1px solid var(--ink);padding-top:12px}
body[data-page="ape"] .ape-form-heading{display:flex;justify-content:space-between;gap:16px;margin-bottom:12px}
body[data-page="ape"] .ape-form{display:grid;gap:12px}
body[data-page="ape"] .ape-field{display:grid;gap:7px}
body[data-page="ape"] .ape-field label,body[data-page="ape"] .ape-optin label{font:600 .77rem/1.35 var(--mono);letter-spacing:.02em}
body[data-page="ape"] .ape-field input{display:block;width:100%;min-width:0;min-height:48px;border:1px solid var(--ink);border-radius:0;padding:10px 12px;background:transparent;color:var(--ink);font:inherit}
body[data-page="ape"] .ape-field input:focus-visible,body[data-page="ape"] .ape-optin input:focus-visible,body[data-page="ape"] .ape-submit:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
body[data-page="ape"] .ape-field input[aria-invalid="true"]{border-color:#a42e16}
body[data-page="ape"] .ape-helper,body[data-page="ape"] .ape-privacy,body[data-page="ape"] .ape-optin-copy{font:400 .78rem/1.45 var(--mono);color:var(--muted);margin:0}
body[data-page="ape"] .ape-field-error{color:#8d2411;font:.78rem/1.4 var(--mono);margin:0}
body[data-page="ape"] .ape-optin{border-top:1px solid var(--ink);padding-top:14px;margin-top:5px}
body[data-page="ape"] .ape-optin-control{display:flex;align-items:flex-start;gap:11px}
body[data-page="ape"] .ape-optin input{width:19px;height:19px;flex:none;margin:0;accent-color:var(--accent)}
body[data-page="ape"] .ape-optin-copy{padding-left:30px;margin-top:6px}
body[data-page="ape"] .ape-submit{justify-self:start;min-height:44px;padding:6px 0;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--ink);font:700 .83rem/1.3 var(--mono);cursor:pointer}
body[data-page="ape"] .ape-submit:hover,body[data-page="ape"] .ape-submit:focus-visible{color:var(--accent);border-bottom-color:var(--accent)}
body[data-page="ape"] .ape-submit:disabled{opacity:.55;cursor:wait}
body[data-page="ape"] .ape-status{font:.83rem/1.5 var(--mono);margin:0}
body[data-page="ape"] .ape-success{border-top:3px solid var(--accent);padding-top:18px}
body[data-page="ape"] .ape-success h2{font-size:clamp(1.5rem,3vw,2.25rem);margin:0 0 10px}
body[data-page="ape"] .ape-success p{margin:0;max-width:42ch}
body[data-page="ape"] .ape-honeypot{display:none!important}
body[data-page="ape"] [hidden],.bayc-page [hidden]{display:none!important}
.bayc-page .bayc-character-record{border-bottom:0}
.bayc-page .ape-invitation{border-top:1px solid var(--line);padding-block:clamp(28px,3.5vw,44px);display:grid;grid-template-columns:minmax(145px,.38fr) minmax(0,2.1fr);gap:clamp(20px,4vw,58px)}
.bayc-page .ape-invitation-copy{min-width:0}
.bayc-page .ape-invitation h2{font-size:clamp(24px,3vw,38px);font-weight:550;letter-spacing:-.025em;line-height:1.05;margin:9px 0 16px}
.bayc-page .ape-invitation p{max-width:76ch;font-size:.95rem;line-height:1.55;margin:0 0 20px}
.bayc-page .ape-invitation a{display:inline-block;color:var(--ink);border-bottom:2px solid transparent;font:700 .8rem/1.4 var(--mono);text-decoration:none;padding-bottom:6px}
.bayc-page .ape-invitation a:hover,.bayc-page .ape-invitation a:focus-visible{color:var(--accent);border-bottom-color:var(--accent)}
@media(max-width:700px){.bayc-page .ape-invitation{grid-template-columns:minmax(0,1fr)}body[data-page="ape"] .ape-kicker{flex-wrap:wrap}body[data-page="ape"] .ape-content{grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "description" "study" "form";gap:24px}body[data-page="ape"] .ape-left,body[data-page="ape"] .ape-right{display:contents}body[data-page="ape"] .ape-intro-title{grid-area:title}body[data-page="ape"] .ape-description{grid-area:description;padding-top:0}body[data-page="ape"] .ape-study-example{grid-area:study;width:min(48vw,190px);height:110px;margin-top:0}body[data-page="ape"] .ape-form-area{grid-area:form;margin-top:0;padding-top:18px}}
