/* the working parts Denzel's CSS leaves out: the Worker's film switch, the form's states, the done panel, the footer's social links */
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
html:not([data-film="true"]) #clipwall,html:not([data-film="true"]) a[href="#clipwall"]{display:none}

.hint b{color:var(--mist);font-weight:500}
.form label > input[aria-invalid="true"],.form label > select[aria-invalid="true"],
.form label > input[aria-invalid="true"]:focus,.form label > select[aria-invalid="true"]:focus,.roles[aria-invalid="true"] span{border-color:var(--error)}
.ts{margin:0 0 6px}
.submit{width:100%;height:52px}
.btn:disabled{opacity:.6;cursor:progress}
.err{margin:12px 0 0;font-size:14px;line-height:1.4;color:var(--error)}
.err:empty{margin:0}

/* "You're on the list": takes the form's place once the POST succeeds. Scoped to .panel: the demo's results grid gets
   a .done class of its own (.grid.done) */
.panel.done{padding:clamp(22px,3vw,34px)}
.panel.done h3{font:600 clamp(26px,3vw,34px)/1.1 var(--display);letter-spacing:-.03em;margin-bottom:6px;outline:none}
.steps{list-style:none;margin:22px 0 0;padding:20px 0 0;border-top:1px solid var(--glass-line);display:grid;gap:14px}
.steps li{display:grid;grid-template-columns:20px 1fr;gap:12px;font-size:15px;line-height:20px;color:var(--fog)}
.steps li::before{content:"";width:20px;height:20px;border-radius:50%;border:1px solid var(--edge)}
.steps .st-done{color:var(--mist)}
.steps .st-done::before{border-color:#5D6372;background:#5D6372 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C0E13' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat}
.steps .st-now{color:var(--cloud)}
.steps .st-now::before{border-color:var(--sky);background:var(--sky);box-shadow:inset 0 0 0 4px rgb(10,13,22)}
.steps b{font-weight:600}
.vh{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* footer: the logo with the four social links under it */
footer .foot-brand{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
footer .foot-soc{gap:2px;margin:0 0 0 -10px}
footer .soc{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;transition:color .2s,background .2s}
footer .soc:hover{background:rgba(255,255,255,.06)}
footer .soc svg{width:20px;height:20px}

/* keyboard focus: one 2px Sky outline, offset, on everything you can tab to (the white pills, the chips, links, selects, the menu
   button). What the script focuses by hand (tabindex -1) stays quiet, and the film's video draws it inside its clipped box. */
:is(a,button,input,select,summary,[tabindex]:not([tabindex="-1"])):focus-visible{outline:2px solid var(--sky);outline-offset:3px}
.form label > input:focus-visible,.form label > select:focus-visible{box-shadow:none}
[tabindex="-1"]:focus{outline:none}
video:focus-visible{outline:2px solid var(--sky);outline-offset:-4px}

/* a field's error line sits right after it: in the grid it takes the row under the pair, whichever side the field is on */
.row{grid-auto-flow:row dense}
.row > .err{grid-column:1 / -1;margin:0}
.form fieldset > .err{margin:12px 0 0}

/* the targets that sit under the nav when it is showing (scrolling up) get room above them */
#cost,#reelBox{scroll-margin-top:96px}

/* iOS zooms into a field set below 16 px */
@media (max-width:640px),(pointer:coarse){
  .form label > input,.form label > select{font-size:16px}
}

/* with no blur behind them (phones, light mode), the bar and menu must hide the page's words themselves */
html.no-blur .nav.solid{background:rgba(3,5,12,.97)}
html.no-blur .nav-drop{background:rgb(3,5,12)}

/* his phone rule spans the footer's img; the logo now sits inside .foot-brand */
footer .foot-soc{display:flex}
@media (max-width:760px){footer .foot-brand{grid-column:1 / -1}}

/* his phone menu starts at 760 px, but the links need about 900 px to stay on one line; and below 1240 the hero is centred, so its buttons are too */
@media (max-width:900px){.nav-links,.nav-plain{display:none}.nav-menu{display:inline-flex}}
@media (max-width:1239px){.hero-ctas{justify-content:center}}
