/* Project sheet: five questions fill a drawing sheet's title block while an engraved elevation changes to match.
   Works without script (every question shows, the drawing still changes); with script it becomes a stepper. */
.sheet { display: grid; gap: 22px; }
@media (min-width: 1000px) { .sheet { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; } .sheet-paper { position: sticky; top: 96px; } }

.sheet-paper { background: var(--paper); color: var(--ink); padding: 10px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.sheet-frame { border: 1.5px solid var(--ink); }
.sheet-art { position: relative; aspect-ratio: 640 / 296; overflow: hidden; border-bottom: 1.5px solid var(--ink); }
.sheet-art img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; clip-path: inset(0 100% 0 0); transition: opacity .35s ease, clip-path 1.1s cubic-bezier(.6, .05, .2, 1); }
.sheet-art .art-new { opacity: 1; clip-path: inset(0); }
.sheet:has(input[name="type"]:checked) .sheet-art .art-new { opacity: 0; clip-path: inset(0 100% 0 0); }
.sheet:has(input[value="New home"]:checked) .sheet-art .art-new,
.sheet:has(input[value="Renovation"]:checked) .sheet-art .art-reno,
.sheet:has(input[value="Renovate and extend"]:checked) .sheet-art .art-extend,
.sheet:has(input[value="Unit or apartment"]:checked) .sheet-art .art-unit,
.sheet:has(input[value="Commercial fit-out"]:checked) .sheet-art .art-fitout,
.sheet:has(input[value="Deck or outdoor room"]:checked) .sheet-art .art-deck { opacity: 1; clip-path: inset(0); }
.sheet-tag { position: absolute; left: 10px; top: 8px; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

.tb { display: grid; grid-template-columns: 1fr 1fr; font-size: 13px; }
.tb > div { padding: 6px 10px; border-bottom: 1px solid var(--ink); min-width: 0; }
.tb > div:nth-child(odd) { border-right: 1px solid var(--ink); }
.tb dt { font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tb dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; min-height: 1.25em; }
.tb dd.empty { color: #8d8a80; font-weight: 400; }
.tb .tb-wide { grid-column: 1 / -1; border-right: 0 !important; }
.tb-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.tb-foot img { width: 92px; height: auto; }
.tb dd.flash { animation: tb-ink .7s ease; }
@keyframes tb-ink { from { background: var(--sand); } to { background: transparent; } }

.sheet-qs { min-width: 0; }
.q { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.q legend { padding: 0; margin-bottom: 14px; font-size: clamp(24px, 5.6vw, 34px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; text-transform: uppercase; }
.q legend .qn { display: block; font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--sand); margin-bottom: 8px; }
.q .hint { font-size: 14px; color: var(--muted-dark); margin: -4px 0 14px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 15px; border: 1.5px solid rgba(250,248,235,.55); font-size: 14px; font-weight: 600; letter-spacing: .04em; transition: background .2s, color .2s, border-color .2s; }
.opt span::before { content: ""; width: 9px; height: 9px; border: 1.5px solid currentColor; flex: none; transition: background .2s; }
.opt input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.opt input:checked + span::before { background: currentColor; }
.opt input:focus-visible + span { outline: 2px solid var(--sand); outline-offset: 3px; }
.opt:hover span { border-color: var(--paper); }

.size { display: grid; gap: 12px; }
.size output { font-size: clamp(40px, 10vw, 64px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.size output small { font-size: .4em; letter-spacing: 0; margin-left: 4px; }
.size input[type="range"] { width: 100%; height: 44px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.size input[type="range"]::-webkit-slider-runnable-track { height: 8px; background: repeating-linear-gradient(90deg, var(--paper) 0 1.5px, transparent 1.5px 10%) , rgba(250,248,235,.18); }
.size input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; background: var(--sand); border: 2px solid var(--ink); }
.size input[type="range"]::-moz-range-track { height: 8px; background: rgba(250,248,235,.18); }
.size input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; background: var(--sand); border: 2px solid var(--ink); border-radius: 0; }
.size input[type="range"]:focus-visible { outline: 2px solid var(--sand); outline-offset: 4px; }
.size .scale { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); }

.q-nav { display: none; }
.sheet-done { border-top: 4px solid var(--paper); padding-top: 22px; }
.sheet-done h3 { font-size: clamp(26px, 6vw, 38px); letter-spacing: -.03em; margin-bottom: 12px; }
.sheet-done .ready { color: var(--muted-dark); margin-bottom: 20px; }
.sheet-done .ready b { color: var(--paper); font-weight: 600; }
.sheet-done .acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* stepper, once the script is running */
.sheet.is-step .q[hidden], .sheet.is-step .sheet-done[hidden] { display: none; }
.sheet.is-step .q, .sheet.is-step .sheet-done { animation: q-in .5s var(--ease, ease) both; }
@keyframes q-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sheet.is-step .q-nav[hidden] { display: none; }
.sheet.is-step .q-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.q-dots { display: flex; gap: 6px; align-items: center; }
.q-dots i { width: 10px; height: 10px; border: 1.5px solid var(--paper); transition: background .25s; }
.q-dots i.on { background: var(--paper); }
.q-btns { display: flex; gap: 8px; }
.q-btns button { min-height: 46px; min-width: 46px; padding: 0 16px; background: none; color: var(--paper); border: 1.5px solid rgba(250,248,235,.55); cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.q-btns button.next { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.q-btns button:disabled { opacity: .35; cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .sheet-art img { transition: none; }
  .sheet.is-step .q, .sheet.is-step .sheet-done { animation: none; }
}
