/* Home tour: a first-person walk through a QLIC home */
#tour{background:radial-gradient(80% 50% at 50% 0%,#0b3aa8 0%,#021440 75%)}
.tstage{position:relative;border-radius:28px;overflow:hidden;background:#050b1f;box-shadow:0 40px 80px -40px #000c,0 0 0 1px #ffffff1f;aspect-ratio:16/9;isolation:isolate}
.tstage svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.tsc{opacity:0;transition:opacity .9s ease;pointer-events:none}.tsc.on{opacity:1;pointer-events:auto}
#tcam{transition:transform 1.5s cubic-bezier(.6,0,.2,1)}
.tmv{transition:transform 1.6s cubic-bezier(.55,0,.25,1),opacity .8s}
.tfast{transition:transform .9s cubic-bezier(.55,0,.25,1),opacity .5s}
.tcur{transform-box:fill-box;transition:transform 1.8s cubic-bezier(.6,0,.2,1)}
#tcl{transform-origin:left center}#tcr{transform-origin:right center}
.tcur.open{transform:scaleX(.16)}
#tLeaf{transform-box:fill-box;transform-origin:left center;transition:transform 1.8s cubic-bezier(.5,0,.2,1)}
#tLeaf.open{transform:scaleX(.13) skewY(-6deg)}
.tglow{transition:opacity .6s,fill .6s}
.tscan{fill:none;stroke:#4da3ff;stroke-width:4;stroke-dasharray:190;stroke-dashoffset:190;opacity:0}
.tscan.go{animation:tscan 1s ease-in-out forwards}
@keyframes tscan{0%{opacity:1;stroke-dashoffset:190}100%{opacity:1;stroke-dashoffset:0}}
.tair path{stroke-dasharray:14 16;animation:tflow 1.1s linear infinite;opacity:0;transition:opacity .6s}
.tair.on path{opacity:.85}
@keyframes tflow{to{stroke-dashoffset:-60}}
.tflap{transform-box:fill-box;transform-origin:top center;transition:transform .8s}
.tflap.on{transform:rotate(28deg)}
.tspray path{stroke-dasharray:4 10;animation:tflow .6s linear infinite;opacity:0;transition:opacity .8s}
.tspray.on path{opacity:.9}
.tblink{animation:tblk 1s steps(2) infinite}
@keyframes tblk{50%{opacity:.15}}
.tkey{cursor:pointer}.tkey rect.i{transition:fill .3s,opacity .3s}
/* overlays */
.twrap{position:relative}
.tcap{position:absolute;z-index:2;left:clamp(12px,3vw,32px);bottom:clamp(12px,3vw,30px);max-width:min(440px,60%);background:#021440cc;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-radius:20px;padding:14px 18px;box-shadow:inset 0 0 0 1px #ffffff26;transition:opacity .4s,transform .4s}
.tcap.swap{opacity:0;transform:translateY(8px)}
.tcap small{display:block;font-size:12px;font-weight:600;letter-spacing:.06em;color:#9ec2ff;text-transform:uppercase}
.tcap b{display:block;font:500 clamp(18px,2.2vw,26px)/1.2 Outfit,sans-serif;margin:4px 0}
.tcap span{font-size:14px;color:#dbe7ff;line-height:1.45;display:block}
.tphone{position:absolute;right:clamp(12px,3vw,34px);top:50%;width:clamp(180px,24%,270px);transform:translate(130%,-50%);transition:transform .8s cubic-bezier(.3,1.2,.5,1);background:linear-gradient(145deg,#2a3142,#0d111b);border-radius:30px;padding:7px;box-shadow:0 30px 60px -20px #000}
.tphone.on{transform:translate(0,-50%)}
.tphone .sc{border-radius:24px;background:linear-gradient(180deg,#eef3fc,#f8faff);min-height:clamp(220px,34vw,400px);padding:30px 9px 12px;display:grid;gap:8px;align-content:start}
.tphone .ph{font:500 13px Outfit,sans-serif;color:#0b1633;padding:0 4px 2px;display:flex;justify-content:space-between}
.tnote{background:#fff;color:#0b1633;border-radius:14px;padding:9px 10px;display:flex;gap:9px;align-items:center;box-shadow:0 6px 14px -8px #0b163366;opacity:0;transform:translateY(-10px);transition:.45s}
.tnote.in{opacity:1;transform:none}
.tnote i{flex:none;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font-style:normal;font-size:16px;background:#e8f0ff}
.tnote b{display:block;font-size:12.5px;line-height:1.25}.tnote span{font-size:11px;color:#5b6579;line-height:1.3;display:block}
/* controls */
.tchap{display:flex;gap:6px;margin-top:16px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.tchap::-webkit-scrollbar{display:none}
.tchap button{flex:1 0 auto;min-width:86px;border:0;background:#ffffff12;box-shadow:inset 0 0 0 1px #ffffff1f;color:#cfdcf7;border-radius:12px;padding:8px 10px 10px;font:600 12.5px "Plus Jakarta Sans",sans-serif;text-align:left;position:relative;overflow:hidden;cursor:pointer}
.tchap button i{position:absolute;left:0;bottom:0;height:3px;width:0;background:#7fb0ff}
.tchap button.done i{width:100%}
.tchap button.cur{background:#fff;color:#004ED0}.tchap button.cur i{background:#004ED0}
.tchap button small{display:block;font-weight:500;opacity:.7;font-size:11px}
.tbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px}
.tbar .btn{min-height:44px;padding:10px 18px;font-size:14.5px}
.tdock{display:flex;flex-wrap:wrap;gap:10px;align-items:center;flex:1;min-height:44px}
.tdock .lbl{font-size:13.5px;color:#cfdcf7;font-weight:600}
.tdock button{border:0;border-radius:999px;padding:10px 16px;min-height:44px;font-weight:600;font-size:14px;background:#ffffff1a;box-shadow:inset 0 0 0 1px #ffffff33;color:#fff;cursor:pointer}
.tdock button[aria-pressed=true]{background:#fff;color:#004ED0}
.tdock label{display:grid;gap:2px;font-size:12.5px;color:#cfdcf7;font-weight:600;min-width:150px;flex:1;max-width:260px}
.tdock input[type=range]{width:100%;accent-color:#fff;height:28px;min-height:0;padding:0;box-shadow:none;background:transparent}
.tnav{display:flex;gap:8px;margin-left:auto}
.tnav button{width:44px;height:44px;border-radius:50%;border:0;background:#ffffff1a;box-shadow:inset 0 0 0 1px #ffffff33;color:#fff;font-size:18px;cursor:pointer}
.tnav button.pl{width:auto;padding:0 16px;border-radius:999px;font-size:14px;font-weight:600;background:#fff;color:#004ED0}
.tnote2{font-size:13px;color:#9fb4dc;margin-top:12px}
@media(max-width:700px){.tstage{border-radius:18px;aspect-ratio:16/9}.tcap{position:static;max-width:none;border-radius:0 0 18px 18px;background:#021440}
 .tphone{width:44%;border-radius:22px;padding:5px}.tphone .sc{border-radius:18px;min-height:0;padding:20px 6px 8px;gap:5px}.tnote{padding:6px 7px;gap:6px}.tnote i{width:22px;height:22px;font-size:12px}.tnote b{font-size:10.5px}.tnote span{display:none}.tnav{margin-left:0;justify-content:center;width:100%}.tbar{flex-direction:column;align-items:stretch}.tdock{justify-content:center}.tdock .lbl{text-align:center;width:100%}.tdock label{max-width:none}}
@media(prefers-reduced-motion:reduce){#tcam,.tmv,.tfast,.tcur,#tleaf,.tphone,.tnote,.tglow,.tsc{transition-duration:.01s!important}.tair path,.tspray path,.tblink{animation:none}}
/* menu: one line; with "Home tour" added, drop two links on medium screens (they stay in the footer) */
nav ul a{white-space:nowrap}
@media(max-width:1240px){nav ul li:nth-child(5),nav ul li:nth-child(6){display:none}}
@media(max-width:1000px){nav ul li:nth-child(4){display:none}}

/* tablets: keep the header button inside the screen */
@media(max-width:900px){nav .btn span{display:none}nav ul{gap:4px 18px}}
