/* Companion integration: the artwork has its own grid cell, never a fixed overlay. */
.home-page .hero{height:auto;min-height:0;background-position:center center}
.home-page .hero-inner{display:grid;grid-template-columns:minmax(0,1.07fr) minmax(0,.93fr);grid-template-rows:auto auto auto;align-items:center;column-gap:42px;row-gap:24px;max-width:1180px;min-height:0;height:auto;margin:0 auto;padding:124px 42px 62px;direction:ltr}
.home-page .hero-copy{position:relative;inset:auto;width:100%;grid-column:1;grid-row:1;align-self:center;margin:0;padding:0 0 14px;z-index:1}
.home-page .hero-copy h1{font-size:clamp(42px,4.5vw,60px);line-height:1.42;letter-spacing:-2px;margin-bottom:20px}
.home-page .hero-copy p{font-size:15px;line-height:2.1;color:#656779}
.home-page .hero-companion{position:relative;inset:auto;grid-column:2;grid-row:1;width:100%;max-width:460px;height:auto;transform:none;justify-self:center;z-index:1}
.home-page .hero-companion .hologram{display:none}
.home-page .question-area{position:relative;inset:auto;width:min(100%,850px);grid-column:1/-1;grid-row:2;justify-self:center;z-index:2;margin:0}
.home-page .suggestions{position:relative;inset:auto;grid-column:1/-1;grid-row:3;width:100%;margin:0;direction:rtl}
.home-page .sample-label,.home-page .scroll-cue{display:none}
.home-page .sample-pills{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}
.home-page .sample-pill{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.home-page .privacy-hint{margin:12px 0 0;font-size:10px}
.jtd-companion{width:100%;position:relative;isolation:isolate;text-align:center;direction:rtl;contain:style;--face-mask:radial-gradient(ellipse 19% 18% at 61% 48%,#000 78%,transparent 100%),radial-gradient(ellipse 11% 17% at 89% 41%,#000 78%,transparent 100%),radial-gradient(ellipse 8% 5% at 81% 53%,#000 70%,transparent 100%)}
.jtd-character-stage{position:relative;width:100%;aspect-ratio:1;isolation:isolate;overflow:visible;touch-action:pan-y}
.jtd-character-aura{position:absolute;inset:8% -2% 4%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 60% 55%,#dde7ff8c 0,#e9ddfa64 39%,transparent 71%);border-radius:50%}
.jtd-character-shadow{position:absolute;bottom:1.7%;left:27%;width:60%;height:6%;background:radial-gradient(ellipse,#75678b30,transparent 69%);pointer-events:none}
.jtd-character-pose{position:absolute;inset:0 2%;transform-origin:64% 94%;transform:translateY(var(--lean,0px)) rotate(calc(var(--state-tilt,0deg) + var(--look,0deg)));transition:transform 650ms cubic-bezier(.22,.7,.25,1)}
.jtd-character-breath{position:absolute;inset:0;transform-origin:64% 94%;animation:jtd-breathe 5.8s ease-in-out infinite;animation-play-state:paused}
.jtd-character-image{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain;display:block;pointer-events:none;user-select:none;-webkit-user-select:none}
.jtd-character-expression{opacity:0;transition:opacity 220ms ease;-webkit-mask-image:var(--face-mask);mask-image:var(--face-mask)}
.jtd-character-blink{opacity:0;transition:opacity 65ms ease;-webkit-mask-image:radial-gradient(ellipse 17% 13% at 61% 49%,#000 86%,transparent),radial-gradient(ellipse 9% 12% at 89% 42%,#000 82%,transparent);mask-image:radial-gradient(ellipse 17% 13% at 61% 49%,#000 86%,transparent),radial-gradient(ellipse 9% 12% at 89% 42%,#000 82%,transparent)}
.jtd-companion[data-face=thinking] [data-face=thinking],.jtd-companion[data-face=concern] [data-face=concern],.jtd-companion[data-face=blink] [data-face=blink],.jtd-companion.jtd-is-blinking .jtd-character-blink{opacity:1}
.jtd-companion[data-motion=on] .jtd-character-breath{animation-play-state:running}
.jtd-companion[data-state=Curious]{--state-tilt:-1.1deg}
.jtd-companion[data-state=Thinking]{--state-tilt:-1.3deg}
.jtd-companion[data-state=Typing],.jtd-companion[data-state=Reading]{--state-tilt:.6deg}
.jtd-companion[data-state=Uncertain]{--state-tilt:1deg}
.jtd-companion[data-state=Warning]{--state-tilt:0deg}
.jtd-companion[data-state=Sleepy]{--state-tilt:1.1deg}
.jtd-companion[data-motion=on].jtd-greeting .jtd-character-breath{animation:jtd-recognize 1.8s ease-in-out 1,jtd-breathe 5.8s ease-in-out infinite}
.jtd-character-touch{position:absolute;left:42%;top:29%;width:54%;height:46%;z-index:2;border:0;border-radius:45%;background:transparent;cursor:pointer;padding:0;touch-action:pan-y}
.jtd-character-touch:focus-visible{outline:2px solid #7c86cf;outline-offset:4px}
.jtd-character-feedback{min-height:24px;margin:5px 0 0;padding:0 4px;font-size:11px;line-height:1.8;color:#626980}
.research-companion .jtd-companion{max-width:240px}
.research-companion>p{display:none}
.research-companion>a{display:inline-block;margin-top:14px}
.research-companion .jtd-character-feedback{font-size:10px}
@keyframes jtd-breathe{0%,100%{transform:translateY(0) scale(1,1)}50%{transform:translateY(-1.2px) scale(1.002,1.005)}}
@keyframes jtd-recognize{0%,100%{transform:translateY(0) rotate(0)}32%{transform:translateY(-2px) rotate(-1.2deg)}65%{transform:translateY(-.5px) rotate(.4deg)}}
@media(min-width:1600px){.home-page .hero-inner{max-width:1250px;padding-top:144px}.home-page .hero-companion{max-width:475px}}
@media(max-width:1000px) and (min-width:761px){.home-page .hero-inner{gap:22px;padding:122px 32px 50px}.home-page .hero-copy h1{font-size:43px}.home-page .hero-copy p{font-size:13px}.home-page .desktop-break{display:none}}
@media(max-width:760px){
 .home-page .hero{min-height:0;height:auto;background-position:60% center}
 .home-page .hero-inner{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto;gap:15px;padding:108px 22px 42px;margin:0;min-height:0}
 .home-page .hero-copy{grid-row:1;grid-column:1;text-align:center;padding:0;max-width:560px;justify-self:center}
 .home-page .hero-copy h1{font-size:clamp(31px,6.7vw,44px);line-height:1.55;letter-spacing:-1.4px;margin-bottom:12px}
 .home-page .hero-copy h1 br{display:none}.home-page .hero-copy p{font-size:12px;line-height:2;max-width:420px;padding:0;margin:0 auto}.home-page .desktop-break{display:none}
 .home-page .hero-companion{grid-row:2;grid-column:1;width:min(100%,330px);height:auto;max-width:330px;margin:-5px 0 0;transform:none}
 .home-page .question-area{grid-row:3;grid-column:1;width:100%;margin:0}
 .home-page .suggestions{grid-row:4;grid-column:1;margin-top:4px}
 .home-page .privacy-hint{font-size:9px;padding:0 4px;line-height:1.9;margin-top:10px}
 .home-page .question-form{height:66px}.home-page .question-form input{font-size:16px}
 .home-page .sample-pills{gap:8px}.home-page .sample-pill{font-size:10px;padding:8px 12px;min-height:40px}
 .home-page .jtd-character-feedback{min-height:20px;font-size:10px;margin-top:0}
 .research-companion{display:flex;align-items:center;justify-content:center;gap:20px;position:static;width:100%;grid-row:1;margin:0 0 10px}
 .research-companion .jtd-companion{width:120px;flex:none}.research-companion .jtd-character-feedback{display:none}.research-companion>a{font-size:12px;margin:0}
}
@media(max-width:380px){.home-page .hero-inner{padding-inline:16px}.home-page .hero-companion{max-width:290px}.home-page .hero-copy h1{font-size:30px}.home-page .question-form{padding-left:10px;gap:7px}.home-page .question-form .search-symbol{display:none}}
@media(prefers-reduced-motion:reduce){.jtd-character-pose,.jtd-character-expression,.jtd-character-blink{transition:none!important}.jtd-character-breath{animation:none!important}}
/* v5 frontal character: independently animated head + matching body silhouette. */
.jtd-companion{--face-mask:radial-gradient(ellipse 15% 13% at 43% 47%,#000 83%,transparent 100%),radial-gradient(ellipse 15% 13% at 71% 47%,#000 83%,transparent 100%),radial-gradient(ellipse 10% 7% at 57% 56%,#000 75%,transparent 100%)}
.jtd-character-stage{touch-action:pan-y pinch-zoom}
.jtd-character-body{clip-path:polygon(0 51%,28% 51%,28% 66%,100% 66%,100% 100%,0 100%)}
.jtd-head,.jtd-head-idle{position:absolute;inset:0;transform-origin:57% 65%}
.jtd-head{transform:translateY(var(--gaze-y,0px)) rotate(var(--gaze-x,0deg));transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.jtd-head-idle{clip-path:polygon(0 0,100% 0,100% 66%,28% 66%,28% 51%,0 51%);animation:jtd-head-live 7s ease-in-out infinite;animation-play-state:paused}
.jtd-character-breath{animation:jtd-breathe-v5 4.4s ease-in-out infinite;animation-play-state:paused;transform-origin:57% 92%}
.jtd-companion[data-motion=on] .jtd-head-idle,.jtd-companion[data-motion=on] .jtd-character-breath{animation-play-state:running}
.jtd-companion[data-state=Happy][data-motion=on] .jtd-head-idle{animation-name:jtd-happy-head;animation-duration:1.6s}
.jtd-companion[data-state=Curious][data-motion=on] .jtd-head-idle,.jtd-companion[data-state=Thinking][data-motion=on] .jtd-head-idle{animation-name:jtd-thoughtful-head;animation-duration:4s}
.jtd-companion[data-state=Sleepy][data-motion=on] .jtd-head-idle{animation-name:jtd-sleep-head;animation-duration:6s}
.jtd-character-pose{transform:none!important}
.jtd-character-blink{-webkit-mask-image:radial-gradient(ellipse 13% 11% at 43% 47%,#000 87%,transparent),radial-gradient(ellipse 13% 11% at 71% 47%,#000 87%,transparent);mask-image:radial-gradient(ellipse 13% 11% at 43% 47%,#000 87%,transparent),radial-gradient(ellipse 13% 11% at 71% 47%,#000 87%,transparent)}
.jtd-companion[data-face=happy] [data-face=happy]{opacity:1}
.jtd-character-mouth{opacity:0;-webkit-mask-image:radial-gradient(ellipse 6% 5% at 57% 56%,#000 68%,transparent 100%);mask-image:radial-gradient(ellipse 6% 5% at 57% 56%,#000 68%,transparent 100%)}
.jtd-speaking[data-motion=on] .jtd-character-mouth{animation:jtd-mouth .55s ease-in-out infinite}
.jtd-character-touch{top:29%;left:28%;width:59%;height:40%;touch-action:pan-y pinch-zoom}
.jtd-dialogue-slot{min-height:76px;display:flex;align-items:center;justify-content:center;margin-top:-4px}
.jtd-dialogue{position:relative;width:min(100%,340px);border:1px solid #fff;background:#ffffffdc;box-shadow:0 7px 25px #616b9f0d;border-radius:19px;padding:13px 17px 13px 35px;direction:rtl}
.jtd-dialogue::before{content:'';position:absolute;top:-7px;right:42%;width:12px;height:12px;background:#fffffff0;transform:rotate(45deg);border-top:1px solid #fff;border-left:1px solid #fff}
.jtd-character-feedback{margin:0;min-height:0;padding:0;font-size:12px;line-height:1.95;color:#4e5675}
.jtd-dismiss{position:absolute;left:7px;top:6px;min-width:30px;min-height:30px;font-size:19px;color:#9297aa;line-height:1;border-radius:50%;padding:0}
.jtd-chat-hint{font-size:10px;line-height:1.9;color:#7c8299;margin:0 0 8px}
.research-companion .jtd-character-feedback{font-size:11px}.research-companion .jtd-dialogue-slot{min-height:80px}
@keyframes jtd-breathe-v5{0%,100%{transform:translateY(0) scale(1,1)}50%{transform:translateY(-2px) scale(1.006,1.012)}}
@keyframes jtd-head-live{0%,100%{transform:rotate(-1.2deg) translateY(0)}45%{transform:rotate(1.4deg) translateY(-1.7px)}75%{transform:rotate(.3deg) translateY(-.5px)}}
@keyframes jtd-happy-head{0%,100%{transform:rotate(0) translateY(0)}30%{transform:rotate(-2.5deg) translateY(-3px)}65%{transform:rotate(2deg) translateY(-1px)}}
@keyframes jtd-thoughtful-head{0%,100%{transform:rotate(-2.7deg)}50%{transform:rotate(-.5deg) translateY(-1px)}}
@keyframes jtd-sleep-head{0%,100%{transform:rotate(2deg) translateY(2px)}50%{transform:rotate(3deg) translateY(3px)}}
@keyframes jtd-mouth{0%,100%{opacity:0}30%,65%{opacity:1}}
@media(max-width:800px){.research-companion{display:block!important;position:static;width:100%;grid-row:1;margin-bottom:20px}.research-companion .jtd-companion{width:min(100%,280px);max-width:280px;margin:auto}.research-companion .jtd-character-feedback{display:block}.research-companion>a{display:block;text-align:center;margin-top:12px}}
@media(max-width:760px){.home-page .hero-companion{max-width:300px;width:min(100%,300px)}.home-page .jtd-character-feedback{font-size:11px;min-height:0}.jtd-character-feedback{font-size:11px}.jtd-dialogue-slot{min-height:76px}.jtd-dialogue{padding-block:10px}}
@media(prefers-reduced-motion:reduce){.jtd-head,.jtd-head-idle,.jtd-character-breath,.jtd-character-mouth{animation:none!important;transition:none!important}}
.jtd-message-fallback{padding:12px 16px;font-size:13px;line-height:1.9;color:#4e5675;border-radius:16px;background:#ffffffd9;direction:rtl}
