/* My garage: the walls and lights stay put, only the shutter rolls up. */
body { background: #000; }
.stage { position: relative; width: 100%; overflow: hidden; background: #000; }
.wall { display: block; width: 100%; height: auto; }
.opening { position: absolute; overflow: hidden; background: #000; }
.bay { position: absolute; inset: 0; background: radial-gradient(120% 60% at 50% 0%, rgba(255,150,40,.16), transparent 60%), linear-gradient(#070707, #000); }
.shutter { position: absolute; inset: 0; z-index: 3; transition: transform 1s cubic-bezier(.65, 0, .35, 1), visibility 0s; will-change: transform; }
.shutter > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.stage.open .shutter { transform: translateY(-100%); visibility: hidden; transition: transform 1s cubic-bezier(.65, 0, .35, 1), visibility 0s linear 1s; }
/* The wall switch drives the shutter: up opens, down closes. */
.sw { position: absolute; z-index: 4; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sw::before { content: ""; position: absolute; inset: 0 -12px; } /* wider tap target */

.stage:not(.open) .sw-up { animation: nudge 1.8s ease-in-out infinite; }
.stage.open .sw-down { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,183,5,0); } 50% { box-shadow: 0 0 0 6px rgba(242,183,5,.55); } }

/* Form */
.form, .done { margin: 0; }
.form[hidden], .done[hidden], .park[hidden] { display: none; }
.park .form, .park .done { padding: 22px 16px 10px; }
.form h2, .done h2 { font-size: clamp(30px, 6vw, 44px); margin-bottom: 4px; }
.note { margin: 0 0 16px; color: var(--mut); font-size: 14px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
label { display: flex; flex-direction: column; gap: 5px; font: 600 14px var(--head); letter-spacing: .12em; text-transform: uppercase; color: #d8d5dc; }
label em { font-style: normal; color: var(--mut); text-transform: none; letter-spacing: .02em; font-family: system-ui, sans-serif; font-weight: 400; font-size: 12px; }
input, select, textarea { width: 100%; font: 16px system-ui, sans-serif; color: var(--fg); background: #0d0d10; border: 1px solid #3a3a42; border-radius: 6px; padding: 11px 12px; text-transform: none; letter-spacing: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input[aria-invalid='true'], select[aria-invalid='true'] { border-color: #ff5a4f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; margin: 14px 0 0; font: 400 13px/1.4 system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: #bdbac2; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.err { margin: 12px 0 0; padding: 10px 12px; border: 1px solid #ff5a4f; border-radius: 6px; color: #ffb4ae; font-size: 14px; }
.err[hidden] { display: none; }
.form .btns { margin: 16px 0 24px; }
.done { text-align: left; padding-bottom: 28px; }
.done p { color: #d8d5dc; }
.done dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 16px 0 20px; font-size: 15px; }
.done dt { font: 600 13px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding-top: 2px; }
.done dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 560px) { .grid { grid-template-columns: 1fr 1fr; } .grid .wide { grid-column: 1 / -1; } }
@media (min-width: 900px) {
}
@media (prefers-reduced-motion: reduce) { .shutter, .stage.open .shutter { transition: none; } .sw { animation: none !important; } }
.form, .done { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { .spill { transition: none; } }


/* With the door up, the doorway is a dark bay that holds the form and runs down over the floor, so no reflection is left. */
.spill { position: absolute; z-index: 1; pointer-events: none; background: #000; opacity: 0; transition: opacity .6s ease .35s; }
.stage.open .spill { opacity: 1; }
.stage:not(.open) .spill { transition-delay: 0s; transition-duration: .2s; }
.park { position: absolute; z-index: 2; overflow-y: auto; background: radial-gradient(120% 40% at 50% 0%, rgba(255,150,40,.14), transparent 70%), #000; visibility: hidden; opacity: 0; transition: opacity .5s ease .5s, visibility 0s linear 1s; }
.stage.open .park { visibility: visible; opacity: 1; transition: opacity .6s ease .45s, visibility 0s; }
.stage:not(.open) .park { transition: opacity .2s ease, visibility 0s linear .2s; }
.park .form, .park .done { max-width: 760px; margin: 0 auto; }
.park .form { padding-top: 26px; }
@media (min-width: 900px) { .park .form, .park .done { padding: 40px 32px 20px; } }
@media (prefers-reduced-motion: reduce) { .spill, .park { transition: none !important; } }

/* Audit: shutter control, form states, tap targets, contrast */
html { scroll-padding-top: 84px; }
.ctl { position: absolute; z-index: 5; left: 50%; bottom: 14px; transform: translateX(-50%); min-height: 44px; white-space: nowrap; box-shadow: 0 0 0 2px rgba(0,0,0,.6), 0 6px 22px rgba(0,0,0,.6); }
.ctl:focus-visible, .btn:focus-visible, .check input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.sw:disabled { cursor: default; pointer-events: none; }
.park[inert] { visibility: hidden; }
.privacy { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: #bdbac2; }
.check { min-height: 44px; align-items: center; margin-top: 10px; }
.check input { width: 22px; height: 22px; }
input::placeholder, textarea::placeholder { color: #8b8992; opacity: 1; }
.fe { font: 400 13px/1.35 system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: #ffb4ae; }
.fe::before { content: '\26A0\00a0'; }
.err { font-size: 15px; }
.done h2:focus, .form h2:focus { outline: none; }
.done[data-state='sent'] h2 { color: #6fd98f; }
.done[data-state='off'] h2, .done[data-state='busy'] h2, .done[data-state='fail'] h2 { color: #ffc857; }
.done[data-state='off'], .done[data-state='busy'], .done[data-state='fail'] { border-left: 4px solid #ffc857; padding-left: 14px; }
.done .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { min-height: 44px; }
.sw::before { inset: -6px -12px; }
@media (prefers-reduced-motion: reduce) { .shutter, .stage.open .shutter { transition: none !important; } .sw, .ctl { animation: none !important; } html { scroll-behavior: auto; } }
[hidden] { display: none !important; }
