/* The quiz is a complete journey; intro and results keep their own layouts. */
body.is-running .experience{display:block;grid-template-columns:minmax(0,1fr);min-height:calc(100svh - 148px)}
body.is-running .visual-panel{display:none}
body.is-running .content-panel{display:block;max-width:1244px;margin:0 auto;padding:32px;width:100%;min-height:calc(100svh - 148px)}
body.is-running .quiz{width:100%;max-width:1180px;margin:0 auto}
body.is-running .question-view{padding-top:24px;width:100%;margin-inline:auto}
body.is-running .question-view:not(.has-photos){max-width:1050px}
body.is-running .question-view h2{max-width:1010px;margin:0 auto;text-align:center;font-size:clamp(24px,2.6vw,38px);line-height:1.27;letter-spacing:-.045em;text-wrap:balance}
body.is-running .question-help{max-width:670px;margin:12px auto 0;text-align:center;font-size:14px;line-height:1.5;color:#62655f;text-wrap:pretty}
body.is-running .progress-meta{max-width:1050px;margin-inline:auto;font-size:10px}
body.is-running .progress{max-width:1050px;margin:12px auto 0;height:3px;border-radius:5px}

.journey-top{display:flex;align-items:center;justify-content:center;gap:16px;min-height:30px}
.journey-pill{display:inline-flex;align-items:center;gap:9px;min-height:30px;padding:8px 13px;background:#080909;border-radius:20px;color:#fff;font-size:9px;font-weight:700;letter-spacing:.13em;line-height:1.2}
.journey-pill::before{content:'';width:6px;height:6px;background:#ed242a;border-radius:50%;box-shadow:0 0 0 3px #ed242a20;animation:journey-signal 3.8s ease-in-out infinite}
.journey-route{list-style:none;display:flex;align-items:flex-start;justify-content:center;width:100%;max-width:720px;gap:0;margin:20px auto 0;padding:0}
.route-step{position:relative;flex:1;display:flex;align-items:center;flex-direction:column;gap:8px;min-width:0;color:#858781}
.route-step::before{content:'';position:absolute;z-index:0;top:15px;right:calc(50% + 19px);width:calc(100% - 38px);height:1px;background:#d9d9d3;transition:background .4s ease}
.route-step:first-child::before{display:none}
.route-dot{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #d4d6cf;background:#fff;border-radius:50%;font-size:11px;font-weight:700;line-height:1;color:#858781;transition:color .3s,background .3s,border-color .3s,box-shadow .3s}
.route-dot svg{width:13px;height:13px}
.route-name{display:block;max-width:100%;font-size:9px;font-weight:700;letter-spacing:.045em;line-height:1.3;text-align:center;overflow-wrap:anywhere}
.route-step[data-state=done]{color:#343832}
.route-step[data-state=done] .route-dot{border-color:#080909;background:#080909;color:#fff}
.route-step[data-state=current]{color:#b91820}
.route-step[data-state=current] .route-dot{border-color:#d71c23;background:#d71c23;color:#fff;box-shadow:0 0 0 5px #ed242a0d}
.route-step[data-state=done]::before,.route-step[data-state=current]::before{background:#d71c23}

body.is-running .visual-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:26px 0 0;width:100%}
body.is-running .visual-choices[data-count='5'],body.is-running .visual-choices[data-count='6']{grid-template-columns:repeat(3,minmax(0,1fr))}
body.is-running .has-photos .visual-choices{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
body.is-running .visual-choice{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;min-height:0;padding:0;border:1px solid #daddd5;border-radius:14px;background:#fff;color:#080909;overflow:hidden;text-align:center;box-shadow:0 3px 12px #08090903;animation:journey-card-enter .45s var(--ease) both;animation-delay:calc(var(--i)*55ms);transition:background .25s,border-color .25s,box-shadow .25s,transform .25s}
body.is-running .visual-choice:hover{border-color:#a3a69f;background:#fff;box-shadow:0 8px 23px #08090909;transform:translateY(-2px)}
body.is-running .visual-choice:focus-visible{outline:3px solid #d71c23;outline-offset:4px}
body.is-running .visual-choice[aria-pressed=true],body.is-running .visual-choice.is-selected{border-color:#d71c23;background:#fff9f9;box-shadow:0 0 0 1px #d71c23,0 7px 22px #a21c2510;transform:none}
body.is-running .visual-choice:disabled:not(.is-selected){opacity:.63;transform:none}
body.is-running .choice-art{display:flex;align-items:center;justify-content:center;flex:none;width:calc(100% - 32px);height:120px;min-height:0;margin:18px 16px 0;padding:0;pointer-events:none;background:transparent}
body.is-running .choice-art>svg{display:block;width:190px;height:120px;max-width:100%;overflow:visible}
body.is-running .choice-art--photo{display:block;position:relative;width:100%;height:auto;min-height:0;aspect-ratio:4/3;margin:0;padding:0;overflow:hidden;background:#f5f5ef}
body.is-running .choice-art--photo img,body.is-running .visual-choice:hover .choice-art--photo img{display:block;width:100%;height:auto;aspect-ratio:4/3;max-width:100%;object-fit:contain;object-position:center;transform:none;transition:none;padding:0;margin:0}
body.is-running .visual-choice .choice-copy{display:flex;flex:1;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-height:66px;padding:14px 13px 16px;font-size:15px;line-height:1.33;font-weight:700;overflow-wrap:normal;text-wrap:pretty}
body.is-running .choice-hint,body.is-running .choice-detail{display:block;margin:0;font-size:12px;font-weight:400;line-height:1.4;color:#62655f;text-wrap:pretty}
.choice-index{position:absolute;top:12px;left:12px;z-index:2;display:flex;align-items:center;justify-content:center;min-width:25px;height:25px;padding:0 7px;border:1px solid #ffffffa6;border-radius:7px;background:#fffffff0;color:#30352e;box-shadow:0 2px 5px #08090908;font-size:10px;font-weight:700;line-height:1;pointer-events:none}
body.is-running .choice-mark{right:12px;top:12px;width:25px;height:25px;z-index:3;box-shadow:0 2px 5px #08090908}
body.is-running .choice-mark::after{width:9px;height:5px;margin:7px 0 0 7px}

.choice-feedback{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;max-width:720px;min-height:45px;margin:18px auto 0;padding:10px 15px 13px;border-radius:8px;background:#ed242a06;color:#42483f;font-size:12px;line-height:1.5;text-align:center;visibility:hidden;opacity:0;transform:translateY(4px);transition:opacity .22s ease,transform .22s ease,visibility .22s ease;overflow:hidden}
.choice-feedback::before{content:'';display:block;flex:none;width:7px;height:4px;margin-top:-3px;border:2px solid #d71c23;border-top:0;border-right:0;transform:rotate(-45deg)}
.choice-feedback::after{content:'';position:absolute;left:0;bottom:0;width:100%;height:2px;background:#d71c23;transform:scaleX(0);transform-origin:left center}
.choice-feedback.is-visible{visibility:visible;opacity:1;transform:none}
.choice-feedback.is-visible::after{animation:journey-feedback .7s linear both}
.journey-summary{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;margin:16px auto 0;max-width:1050px;padding:0;list-style:none}
.journey-summary:empty{display:none}
.journey-summary>span,.journey-summary>li,.journey-summary .summary-tag{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:7px 10px;border:1px solid #e2e4dd;border-radius:6px;background:#fff;color:#62655f;font-size:10px;line-height:1.35}
.journey-summary svg{width:11px;height:11px;color:#d71c23}
body.is-running .quiz-nav{max-width:1050px;min-height:44px;margin:16px auto 0;gap:18px}
body.is-running .quiz-nav .back{min-height:44px;padding:11px 5px;font-size:12px;gap:8px}
body.is-running .nav-hint{gap:7px;font-size:11px;line-height:1.4;text-align:right}
body.is-running .nav-hint svg{width:15px;height:15px}
body.is-running .contact{max-width:640px;margin:0 auto}
body.is-running .contact>.eyebrow{justify-content:center}
body.is-running .contact h2{max-width:640px;margin-inline:auto;text-align:center;font-size:clamp(25px,2.8vw,38px);line-height:1.28;text-wrap:balance}
body.is-running .contact-copy{max-width:520px;margin-inline:auto;text-align:center}
body.is-running .contact .journey-summary{justify-content:center;margin-top:20px}

@keyframes journey-signal{0%,75%,100%{opacity:1;box-shadow:0 0 0 3px #ed242a20}85%{opacity:.65;box-shadow:0 0 0 5px #ed242a08}}
@keyframes journey-card-enter{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
@keyframes journey-feedback{from{transform:scaleX(0)}to{transform:scaleX(1)}}

@media(max-width:1000px) and (min-width:761px){
  body.is-running .content-panel{padding:27px 25px}
  body.is-running .has-photos .visual-choices{gap:12px}
  body.is-running .visual-choice .choice-copy{font-size:14px;padding-inline:10px}
  body.is-running .choice-hint{font-size:11px}
}
@media(max-width:760px){
  body.is-running .experience{min-height:calc(100svh - 124px)}
  body.is-running .content-panel{padding:23px 20px 24px;min-height:calc(100svh - 124px)}
  body.is-running .quiz{max-width:620px;margin:0 auto}
  .journey-top{gap:10px;min-height:28px}
  .journey-pill{min-height:28px;font-size:8px;padding:7px 11px;letter-spacing:.11em}
  .journey-route{margin-top:18px}
  .route-step{gap:7px}
  .route-dot{width:27px;height:27px;font-size:10px}
  .route-step::before{top:13px;right:calc(50% + 17px);width:calc(100% - 34px)}
  .route-name{font-size:8px;letter-spacing:0;padding:0 2px;line-height:1.3}
  body.is-running .progress-meta{font-size:8px}
  body.is-running .question-view{padding-top:23px}
  body.is-running .question-view h2{font-size:clamp(21px,5.4vw,29px);line-height:1.32;letter-spacing:-.045em}
  body.is-running .question-help{font-size:12px;line-height:1.5;margin-top:10px}
  body.is-running .visual-choices,body.is-running .visual-choices[data-count='5'],body.is-running .visual-choices[data-count='6'],body.is-running .has-photos .visual-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:21px}
  body.is-running .visual-choice{border-radius:12px;min-height:0;padding:0}
  body.is-running .choice-art{width:calc(100% - 16px);height:102px;margin:15px 8px 0}
  body.is-running .choice-art>svg{width:155px;height:102px}
  body.is-running .choice-art--photo{width:100%;height:auto;min-height:0;margin:0;padding:0;aspect-ratio:4/3}
  body.is-running .choice-art--photo img,body.is-running .visual-choice:hover .choice-art--photo img{height:auto;width:100%;aspect-ratio:4/3;object-fit:contain;transform:none}
  body.is-running .visual-choice .choice-copy{min-height:62px;padding:12px 9px 13px;font-size:13px;line-height:1.35;gap:4px}
  body.is-running .choice-hint,body.is-running .choice-detail{font-size:11px;line-height:1.35}
  .choice-index{top:9px;left:9px;min-width:23px;height:23px;font-size:9px}
  body.is-running .choice-mark{top:9px;right:9px;width:23px;height:23px}
  body.is-running .choice-mark::after{margin:6px 0 0 6px}
  .choice-feedback{min-height:44px;margin-top:14px;padding:9px 10px 12px;font-size:11px;line-height:1.45;gap:8px}
  .journey-summary{gap:6px;margin-top:13px}
  .journey-summary>span,.journey-summary>li,.journey-summary .summary-tag{padding:6px 8px;font-size:9px}
  body.is-running .quiz-nav{margin-top:10px;gap:14px}
  body.is-running .quiz-nav .back{font-size:11px}
  body.is-running .nav-hint{font-size:10px;gap:6px}
  body.is-running .contact h2{font-size:clamp(23px,5.9vw,31px)}
  body.is-running .contact-copy{font-size:13px}
}
@media(max-height:760px){
  body.is-running .content-panel{padding-top:20px;padding-bottom:20px}
  .journey-route{margin-top:16px}
  body.is-running .question-view{padding-top:19px}
  body.is-running .visual-choices{margin-top:20px}
  body.is-running .choice-art:not(.choice-art--photo){height:108px;margin-top:12px}
  body.is-running .choice-art:not(.choice-art--photo)>svg{height:108px}
  .choice-feedback{margin-top:12px}
}
@media(max-width:760px) and (max-height:760px){
  body.is-running .content-panel{padding-top:18px;padding-bottom:18px}
  .journey-route{margin-top:14px}
  body.is-running .question-view{padding-top:18px}
  body.is-running .visual-choices,body.is-running .has-photos .visual-choices{margin-top:18px}
  body.is-running .choice-art:not(.choice-art--photo){height:91px;margin-top:12px}
  body.is-running .choice-art:not(.choice-art--photo)>svg{height:91px}
  body.is-running .visual-choice .choice-copy{padding-block:11px;min-height:58px}
}
@media(max-width:370px){
  body.is-running .content-panel{padding-left:16px;padding-right:16px}
  body.is-running .question-view h2{font-size:20px}
  body.is-running .visual-choices,body.is-running .has-photos .visual-choices{gap:9px}
  body.is-running .visual-choice .choice-copy{font-size:12px;padding-inline:8px}
  .route-name{font-size:7px}
  body.is-running .nav-hint{font-size:9px}
}
@media(hover:none){body.is-running .visual-choice:hover{transform:none;box-shadow:0 3px 12px #08090903}}
@media(prefers-reduced-motion:reduce){
  .journey-pill::before,.choice-feedback.is-visible::after,body.is-running .visual-choice{animation:none!important}
  .route-dot,.route-step::before,.choice-feedback,body.is-running .visual-choice{transition:none!important}
  .choice-feedback.is-visible::after{transform:scaleX(1)}
  body.is-running .visual-choice:hover{transform:none}
}

/* One visible progress system keeps the conversation light. */
body.is-running .progress-meta{display:none}
body.is-running .progress{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0;padding:0}
.journey-count{font-size:10px;font-weight:700;letter-spacing:.08em;color:#62655f}
.choice-feedback{min-height:32px;margin-top:10px;padding-top:6px;padding-bottom:7px;font-size:11px}
@media(max-width:760px){body.is-running .question-view{padding-top:20px}.journey-route{margin-top:14px}.journey-count{font-size:9px}.choice-feedback{margin-top:8px;min-height:30px}}

.choice-feedback:not(.is-visible){height:0;min-height:0;margin:0;padding:0}
@media(min-width:761px) and (max-height:850px){
 body.is-running .header{height:72px}body.is-running .brand{width:255px}
 body.is-running .experience,body.is-running .content-panel{min-height:calc(100svh - 114px)}
 body.is-running .content-panel{padding:20px 32px}
 body.is-running .journey-top{display:none}
 body.is-running .journey-route{margin:0 auto 12px}
 body.is-running .route-dot{width:26px;height:26px;font-size:10px}
 body.is-running .route-step{gap:5px}
 body.is-running .route-step::before{top:12px}
 body.is-running .route-name{font-size:8px}
 body.is-running .journey-summary{margin-top:7px;gap:5px}
 body.is-running .journey-summary>span{padding:4px 8px;font-size:9px}
 body.is-running .question-view{padding-top:15px}
 body.is-running .question-view h2{font-size:28px}
 body.is-running .question-help{margin-top:8px;font-size:12px}
 body.is-running .visual-choices{margin-top:18px;gap:12px}
 body.is-running .question-view:not(.has-photos) .choice-art{height:84px;margin-top:10px}
 body.is-running .question-view:not(.has-photos) .choice-art>svg{height:84px;width:150px}
 body.is-running .visual-choice .choice-copy{min-height:48px;padding:10px 12px 12px;font-size:14px}
 body.is-running .quiz-nav{margin-top:10px;min-height:40px}
 body.is-running .footer{min-height:42px;padding-top:11px;padding-bottom:11px}
}

/* Start by getting to know the visitor, with the same visual language as the site. */
body:not(.is-running):not(.is-result) .content-panel{padding-block:38px}
.intro{max-width:620px}
.intro h1{font-size:clamp(27px,2.65vw,48px);line-height:1.28;margin-top:22px;text-wrap:balance}
.intro .intro-copy{max-width:480px;margin-top:20px;font-size:15px;line-height:1.65}
.intro-form{width:100%;max-width:460px;margin-top:26px}
.intro-form .field label{font-size:12px}
.intro-form .field input{min-height:58px;padding:16px 17px;border-radius:9px;font-size:16px;transition:border-color .2s,box-shadow .2s}
.intro-form .field input:focus{border-color:#d71c23;box-shadow:0 0 0 4px #d71c2309}
.intro-form .field input::placeholder{font-size:14px;color:#7a7d75}
.intro-form .field input[aria-invalid=true]{border-color:#c91820}
.intro-status{font-size:12px;color:#a9171d;line-height:1.5;margin-top:9px}
.intro-status:empty{display:none}
.intro .start-button{width:100%;margin-top:14px;border-radius:9px;min-height:54px}
.intro .start-note{max-width:460px;text-align:center}
.intro .intro-bottom{margin-top:30px;padding-top:21px}
.visitor-greeting{text-align:center;font-size:17px;line-height:1.5;color:#b91820;margin:23px auto 0;font-weight:700;overflow-wrap:anywhere}
body.is-running[data-stage=sector] .question-view{padding-top:9px}
@media(min-width:761px) and (max-height:850px){
 body:not(.is-running):not(.is-result) .header{height:72px}
 body:not(.is-running):not(.is-result) .brand{width:255px}
 body:not(.is-running):not(.is-result) .experience{min-height:calc(100svh - 114px)}
 body:not(.is-running):not(.is-result) .content-panel{padding-block:25px}
 body:not(.is-running):not(.is-result) .visual-panel{min-height:calc(100svh - 114px)}
 body:not(.is-running):not(.is-result) .footer{min-height:42px;padding-block:11px}
 .intro h1{font-size:33px;margin-top:18px}
 .intro .intro-copy{font-size:14px;margin-top:16px}
 .intro-form{margin-top:21px}
 .intro .intro-bottom{margin-top:24px;padding-top:17px}
 .visitor-greeting{margin-top:13px;font-size:15px}
}
@media(max-width:760px){
 body:not(.is-running):not(.is-result) .content-panel{padding:33px 24px 28px}
 .intro h1{font-size:clamp(24px,5.9vw,36px);margin-top:20px;line-height:1.35}
 .intro .intro-copy{font-size:14px;margin-top:17px}
 .intro-form{margin-top:23px;max-width:none}
 .intro-form .field input{min-height:56px}
 .intro-form .field input::placeholder{font-size:13px}
 .intro .intro-bottom{margin-top:26px;padding-top:18px;font-size:8px}
 .visitor-greeting{font-size:15px;margin-top:17px}
 body.is-running[data-stage=sector] .question-view{padding-top:8px}
}

@media(max-width:760px){
 body.is-running:not([data-stage=sector]) .quiz .journey-top{display:none}
 body.is-running:not([data-stage=sector]) .quiz>.journey-summary{display:none}
 body.is-running:not([data-stage=sector]) .quiz .journey-route{margin-top:0}
 body.is-running .question-view:not(.has-photos) .choice-art{height:72px;margin-top:7px}
 body.is-running .question-view:not(.has-photos) .choice-art>svg{height:72px;width:120px}
 body.is-running .question-view:not(.has-photos) .visual-choice .choice-copy{min-height:48px;padding:8px 7px 10px;font-size:12px;line-height:1.3}
 body.is-running .question-view:not(.has-photos) .visual-choices{gap:10px;margin-top:18px}
 body.is-running:not([data-stage=sector]) .question-view{padding-top:18px}
 body.is-running:not([data-stage=sector]) .choice-index{top:7px;left:7px;min-width:19px;height:19px;font-size:8px}
}
