/* TMR · cinematic questionnaire: the chosen room opens to full screen, the questions sit on a frosted card,
   the camera drifts through the room from step to step. Loaded after the page's own .qz rules. */
.qz.qc { display: block; background: transparent; transition: none; opacity: 1; --clip: inset(0px 0px 0px 0px round 0px); }
.qz.qc.on { visibility: visible; transition: none; }
.qz.qc:not(.on) { visibility: hidden; }

/* the room */
.qc-bg { position: absolute; inset: 0; overflow: hidden; background: #1E1814;  }
.qc-cam { position: absolute; inset: -6%; transition: transform 2.6s cubic-bezier(.25, .6, .2, 1); will-change: transform; }
.qc-cam img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter 1.4s ease; animation: qcBreath 14s ease-in-out infinite alternate; }
@keyframes qcBreath { from { transform: scale(1) } to { transform: scale(1.035) translate(-.6%, -.4%) } }
.qc-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(30,24,20,.0) 0%, rgba(30,24,20,.0) 38%, rgba(30,24,20,.42) 100%),
  linear-gradient(180deg, rgba(30,24,20,.28) 0%, rgba(30,24,20,0) 30%, rgba(30,24,20,.25) 100%);
  opacity: 0; transition: opacity 1s ease .3s; }
.qz.qc.on:not(.enter) .qc-shade, .qz.qc.ready .qc-shade { opacity: 1; }
.qz.qc.shut .qc-shade { opacity: 0; transition-delay: 0s; }

/* big step number + room name on the open side of the picture */
.qc-big { position: absolute; left: clamp(24px, 5vw, 80px); bottom: clamp(28px, 7vh, 80px); color: #FBF9F6; pointer-events: none; display: grid; gap: 6px;
  opacity: 0; transform: translateY(14px); transition: opacity .8s ease .5s, transform .8s cubic-bezier(.2,.7,.2,1) .5s; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.qz.qc.ready .qc-big { opacity: 1; transform: none; }
.qz.qc.shut .qc-big { opacity: 0; transition-delay: 0s; }
.qc-num { font: 300 clamp(90px, 13vw, 190px)/.8 var(--display); letter-spacing: .01em; }
.qc-room { font: 500 12px/1 var(--sans); letter-spacing: .3em; }

/* the frosted card */
.qc-card { position: absolute; top: clamp(16px, 4vh, 40px); bottom: clamp(16px, 4vh, 40px); right: clamp(16px, 4vw, 56px); width: min(560px, calc(100% - 32px));
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgb(251 249 246 / .86); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-radius: 22px; box-shadow: 0 40px 100px -30px rgba(20,14,10,.55), 0 0 0 1px rgba(255,255,255,.5) inset; overflow: hidden;
  opacity: 0; transform: translateY(40px) scale(.985); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.75,.2,1); }
.qz.qc.ready .qc-card { opacity: 1; transform: none; }
.qz.qc.shut .qc-card { opacity: 0; transform: translateY(30px); transition-duration: .4s; }
.qz.qc .qz-top { padding: 16px 18px 10px; }
.qz.qc .qz-x { background: transparent; }
.qz.qc .qz-bar { height: 1.5px; background: rgba(46,38,34,.12); }
.qz.qc .qz-bar i { background: linear-gradient(90deg, #C9B29B, #6B5B4E); transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.qz.qc .qz-body { max-width: none; padding: clamp(16px, 3vh, 34px) 30px 24px; }
.qz.qc .qz-foot { background: transparent; border-top: 1px solid rgba(46,38,34,.08); }
.qz.qc h2 { font-size: clamp(40px, 4.6vw, 64px); }

/* between questions: the old one rises and blurs away, the new one comes up line by line, the answers one after another */
.qz.qc .qz-body.in > * { animation: none; }
.qz.qc .qz-body.out { transition: opacity .32s ease, transform .34s ease, filter .34s ease; opacity: 0; transform: translateY(-22px); filter: blur(6px); }
.qz.qc .qz-body.in .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.qz.qc .qz-body.in .ln > span { display: inline-block; animation: qcLine .9s cubic-bezier(.2,.75,.2,1) both; animation-delay: calc(.12s + var(--n, 0) * .1s); }
@keyframes qcLine { from { transform: translateY(105%); } to { transform: none; } }
.qz.qc .qz-body.in .qz-k, .qz.qc .qz-body.in .qz-hint, .qz.qc .qz-body.in .qz-g h3, .qz.qc .qz-body.in .qz-other, .qz.qc .qz-body.in .qz-fields, .qz.qc .qz-body.in .qz-sub, .qz.qc .qz-body.in .qz-sum, .qz.qc .qz-body.in .qz-send, .qz.qc .qz-body.in .qz-priv
  { animation: qcFade .8s ease both .25s; }
.qz.qc .qz-body.in .qz-o { animation: qcChip .7s cubic-bezier(.2,.75,.2,1) both; animation-delay: calc(.35s + var(--i, 0) * .045s); }
.qz.qc .qz-body.in .qz-g:nth-of-type(2) .qz-o { animation-delay: calc(.5s + var(--i, 0) * .045s); }
.qz.qc .qz-body.in .qz-g:nth-of-type(3) .qz-o { animation-delay: calc(.65s + var(--i, 0) * .045s); }
@keyframes qcFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes qcChip { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.qz.qc .qz-o { background: rgb(255 255 255 / .7); }
.qz.qc .qz-o.on { background: var(--accent); }

/* phones: the room on top, the card as a sheet from below */
@media (max-width: 760px) {
  .qc-card { top: auto; right: 0; left: 0; bottom: 0; width: 100%; height: min(74vh, calc(100% - 120px)); height: min(74svh, calc(100% - 120px)); border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .qc-shade { background: linear-gradient(180deg, rgba(30,24,20,.25) 0%, rgba(30,24,20,0) 20%, rgba(30,24,20,.45) 60%); }
  .qc-big { left: 20px; right: 20px; top: calc(18px + env(safe-area-inset-top, 0px)); bottom: auto; grid-auto-flow: column; justify-content: space-between; align-items: end; }
  .qc-num { font-size: 64px; }
  .qz.qc h2 { font-size: clamp(36px, 10vw, 48px); }
  .qz.qc .qz-body { padding: 14px 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .qc-bg, .qc-cam, .qc-cam img, .qc-card, .qc-big { transition: opacity .3s ease !important; animation: none !important; }
  .qz.qc .qz-body.in *, .qz.qc .qz-body.out { animation: none !important; transition: none !important; filter: none !important; transform: none !important; }
}
.qz.qc h2:focus, .qz.qc h2:focus-visible { outline: none; }

/* 2026-11-08 notes: the room stays still (no camera, no breathing, no colour grade), the steps only cross-fade,
   and everything sits at the top of the card (the page's own grid rows pushed the body down a row) */
.qc-card .qz-top { grid-row: 1; } .qc-card .qz-body { grid-row: 2; align-self: start; height: 100%; } .qc-card .qz-foot { grid-row: 3; }
.qc-cam { transition: none !important; transform: none !important; inset: 0; }
.qc-cam img { animation: none !important; filter: none !important; }
.qz.qc .qz-body.out { transition: opacity .22s ease; opacity: 0; transform: none; filter: none; }
.qz.qc .qz-body.in .ln > span, .qz.qc .qz-body.in .qz-o,
.qz.qc .qz-body.in .qz-k, .qz.qc .qz-body.in .qz-hint, .qz.qc .qz-body.in .qz-g h3, .qz.qc .qz-body.in .qz-other, .qz.qc .qz-body.in .qz-fields, .qz.qc .qz-body.in .qz-sub, .qz.qc .qz-body.in .qz-sum, .qz.qc .qz-body.in .qz-send, .qz.qc .qz-body.in .qz-priv
  { animation: qcFadeOnly .35s ease both !important; animation-delay: 0s !important; }
@keyframes qcFadeOnly { from { opacity: 0; } to { opacity: 1; } }
.qz.qc .qz-body { padding-top: 22px; }

/* footer: back (outline pill, arrow →) · skip (quiet link, centred) · next (solid pill, arrow ←), all on one line */
.qz.qc .qz-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)) !important; }
.qz.qc .qz-foot button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; margin: 0; white-space: nowrap; cursor: pointer; }
.qz.qc .qz-foot svg { width: 16px; height: 16px; flex: none; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.qz.qc .qz-back { padding: 0 18px; border-radius: 999px; border: 1px solid rgba(46,38,34,.2); background: rgb(255 255 255 / .55); color: var(--ink); font: 500 15px/1 var(--sans); transition: border-color .25s, background .25s; }
.qz.qc .qz-back:hover { border-color: var(--accent); background: #fff; }
.qz.qc .qz-back:hover svg { transform: translateX(3px); }
.qz.qc .qz-skip { flex: 1; padding: 0 6px; border: 0; background: none; color: var(--muted); font: 400 14px/1 var(--sans); text-decoration: underline; text-decoration-color: rgba(46,38,34,.25); text-underline-offset: 4px; transition: color .25s; }
.qz.qc .qz-skip:hover { color: var(--ink); }
.qz.qc .qz-next { padding: 0 24px 0 26px; border-radius: 999px; font: 500 16px/1 var(--sans); min-width: 132px; box-shadow: 0 10px 24px -12px rgba(46,38,34,.55); }
.qz.qc .qz-next:hover svg { transform: translateX(-4px); }
.qz.qc .qz-foot [hidden] { display: none !important; }
.qz.qc .qz-foot .qz-skip[hidden] + .qz-next { margin-inline-start: auto; }
@media (max-width: 760px) { .qz.qc .qz-foot { padding-inline: 80px 14px !important; gap: 8px; } .qz.qc .qz-back { padding: 0 14px; } .qz.qc .qz-next { min-width: 112px; padding: 0 18px 0 20px; } .qz.qc .qz-skip { font-size: 13px; } }
@media (max-width: 760px) {
  .qz.qc .qz-foot .qz-skip { min-width: 0; white-space: normal; line-height: 1.25; font-size: 13px; height: auto; }
  .qz.qc .qz-foot .qz-next { min-width: 0; padding: 0 16px 0 18px; }
  .qz.qc .qz-foot .qz-back { padding: 0 12px; }
  .qz.qc .qz-foot button { height: 46px; }
}

/* 2026-11-09: Tamar's own questions, many with a free line */
.qz.qc .qz-tg { display: grid; gap: 6px; margin-top: 22px; }
.qz.qc .qz-tg h3 { margin: 0; }
.qz.qc .qz-tg .qz-gh { font: 400 13px/1.45 var(--sans); color: var(--muted); letter-spacing: 0; }
.qz.qc .qz-tg textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 52px; border: 1px solid rgba(46,38,34,.18); border-radius: 12px; background: rgb(255 255 255 / .75); padding: 10px 14px; font: 400 16px/1.5 var(--sans); color: var(--ink); }
.qz.qc .qz-tg textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

/* 2026-11-10: the process (was its own section on the page) as a small "what happens next" box on the summary step */
.qz .qz-proc { margin: 22px 0 18px; padding: 16px 18px 14px; border: 1px solid var(--line, rgba(46,38,34,.13)); border-radius: 14px; background: rgb(255 255 255 / .5); }
.qz .qz-proc h3 { margin: 0 0 10px; font: 500 11.5px/1 var(--sans, Heebo, sans-serif); letter-spacing: .2em; color: var(--muted, #6F6357); }
.qz .qz-proc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: none; }
.qz .qz-proc li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; padding: 7px 0; border-top: 1px solid var(--line, rgba(46,38,34,.13)); }
.qz .qz-proc li:first-child { border-top: 0; }
.qz .qz-proc li i { grid-row: span 2; font: 400 20px/1 var(--display, Karantina, sans-serif); font-style: normal; color: #8A7360; padding-top: 2px; }
.qz .qz-proc li b { font: 400 21px/1.05 var(--display, Karantina, sans-serif); color: var(--ink, #2E2622); font-weight: 700; }
.qz .qz-proc li span { font-size: 13.5px; line-height: 1.45; color: var(--ink-2, #5E524A); }
.qz .qz-proc p { margin: 8px 0 0; font-size: 12.5px; color: var(--muted, #6F6357); }
