/* The atelier: functional drawings in a single, reversible reading stage. */
#vos-questions {
  --q-gap: clamp(24px, 5vw, 70px);
  --q-accent: var(--accent);
  --q-stroke: color-mix(in srgb, var(--muted) 52%, transparent);
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 32px;
  color: var(--ink);
}
#vos-questions .q-stage { padding: clamp(32px, 8vh, 95px) 0 24px; }
#vos-questions .q-intro { margin-bottom: clamp(20px, 3.2vh, 36px); }
#vos-questions .q-intro h2,
#vos-questions .q-bridge p {
  margin: 0;
  max-width: 22ch;
  font: 700 clamp(36px, 4.15vw, 60px)/1.06 var(--display);
  letter-spacing: -.047em;
  text-wrap: balance;
}
#vos-questions .q-intro span,
#vos-questions .q-bridge-accent { color: var(--q-accent); }
#vos-questions .q-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(34px, 6vh, 60px) var(--q-gap);
  align-items: start;
}
#vos-questions .q-card { min-width: 0; }
#vos-questions .q-card h3 {
  color: var(--ink);
  margin: clamp(9px, 2vh, 18px) 0 0;
  max-width: 22ch;
  font: 700 clamp(23px, 2.45vw, 34px)/1.14 var(--display);
  letter-spacing: -.029em;
  text-wrap: balance;
}
#vos-questions .q-diagram {
  display: block;
  width: 100%;
  max-width: min(100%, 440px);
  height: auto;
  /* Keep the SVG viewport geometry of the previous framed drawings. */
  border: 1px solid transparent;
  overflow: hidden;
}
#vos-questions .q-diagram text {
  font: 600 15px var(--body);
  fill: var(--ink);
}
#vos-questions .q-diagram text.q-caption { fill: var(--q-accent); }
#vos-questions .q-node { fill: var(--surface); stroke: var(--q-stroke); stroke-width: 1.2; }
#vos-questions .q-outline { fill: none; stroke-dasharray: 4 4; }
#vos-questions .q-wire, #vos-questions .q-accent {
  fill: none;
  stroke: var(--q-stroke);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#vos-questions .q-accent { stroke: var(--q-accent); stroke-width: 2.4; }
#vos-questions .q-dashed { stroke-dasharray: 3 4; }
#vos-questions .q-point { fill: var(--q-stroke); }
#vos-questions .q-focus { fill: var(--q-accent); }
#vos-questions .q-patch { fill: color-mix(in srgb, var(--q-accent) 16%, var(--surface)); stroke: var(--q-accent); stroke-width: 1.5; }
#vos-questions .q-bridge { position: relative; padding-block: 24px 20px; }

/* The DOM stays in reading order. Unpainted, non-interactive scenes remain available to a screen reader. */
#vos-questions[data-q-motion] .q-track { height: calc(100svh + var(--q-travel)); }
#vos-questions[data-q-motion] .q-stage {
  position: sticky;
  z-index: 2;
  isolation: isolate;
  top: 0;
  height: 100svh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  padding-top: clamp(52px, 12svh, 108px);
  padding-bottom: 16px;
}
#vos-questions[data-q-motion] .q-card:not([data-q-active]) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  margin: -1px;
}
#vos-questions[data-q-motion] .q-card[data-q-active] {
  transform: translateY(var(--q-shift, 0px));
  opacity: var(--q-card-alpha, 1);
}
#vos-questions[data-q-motion] .q-card h3 { opacity: var(--q-copy-alpha, 1); }
#vos-questions[data-q-motion] .q-signal { opacity: var(--q-ink, 1); }
#vos-questions[data-q-motion] .q-unfold { clip-path: inset(0 var(--q-unfold, 0%) 0 0); }
#vos-questions[data-q-motion] .q-draw { stroke-dasharray: 1; stroke-dashoffset: var(--q-undrawn, 0); }
/* The next section is already in place underneath; the last stage and the solo sentence cover it in turn. */
#vos-questions[data-q-motion] .q-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc((100% - 100vw)/2);
  background: var(--bg);
}
#vos-questions[data-q-bridge-past] .q-stage { opacity: 0; pointer-events: none; }
#vos-questions[data-q-motion] .q-bridge {
  height: var(--q-bridge-span);
  margin-top: -100svh;
  padding: 0;
  pointer-events: none;
}
#vos-questions[data-q-motion]:not([data-q-bridge-live]) .q-bridge p {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#vos-questions[data-q-bridge-live] .q-bridge p {
  position: fixed;
  inset: 0;
  z-index: 110;
  width: auto;
  max-width: none;
  display: grid;
  place-items: center;
  padding-inline: clamp(24px, 7vw, 100px);
  background: var(--bg);
  text-align: center;
  pointer-events: auto;
}
/* iOS can expose more of the visual viewport while its browser bars move.
   Extend the backdrop without enlarging or re-centering the text container. */
#vos-questions[data-q-bridge-live] .q-bridge p::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 -96px;
  min-height: 100vh;
  min-height: 100lvh;
  background: var(--bg);
}
/* Leave the next section in layout, but prevent its sticky descendants from painting. */
#vos-questions:is([data-q-mobile-active], [data-q-bridge-live]) + #animation:not(:has(:focus-visible)) {
  opacity: 0;
  pointer-events: none;
}
#vos-questions[data-q-mobile-active] .q-stage::before {
  inset-block-end: -96px;
  min-height: 100vh;
  min-height: 100lvh;
}
#vos-questions[data-q-mobile-active]:has(+ #animation :focus-visible) .q-stage {
  opacity: 0;
  pointer-events: none;
}
#vos-questions[data-q-bridge-live] .q-bridge-line {
  display: block;
  max-width: 22ch;
  opacity: var(--q-bridge-alpha, 1);
  transform: translateY(var(--q-exit-y, 0px));
}
#vos-questions[data-q-motion] .q-bridge [data-q-word] {
  display: inline-block;
  opacity: var(--q-word-alpha, 1);
  transform: translateY(var(--q-word-y, 0px));
}
/* A keyboard focus or open navigation takes precedence over the cinematic layer. */
body:has(.site-header:focus-within, #menu-toggle[aria-expanded="true"]) #vos-questions[data-q-bridge-live] .q-bridge p { z-index: 90; }
body:has(#animation :focus-visible, .skip:focus-visible) #vos-questions[data-q-bridge-live] .q-bridge p { visibility: hidden; }
@media (max-width: 760px) {
  #vos-questions { padding-inline: 24px; }
  #vos-questions .q-stage { padding-top: 44px; }
  #vos-questions .q-intro h2, #vos-questions .q-bridge p { font-size: clamp(32px, 8.5vw, 44px); }
  #vos-questions .q-cards { grid-template-columns: 1fr; }
  #vos-questions .q-diagram { max-width: 400px; }
  #vos-questions[data-q-motion] .q-stage { padding-top: clamp(60px, 11svh, 92px); }
}
