/* Compact navigation is progressive: links remain available without JavaScript. */
.mobile-menu-toggle{display:none}
@media(max-width:1000px){
 body .unified-header,body.glass-home .unified-header{position:relative;inset:auto;width:calc(100% - 28px);margin:14px auto;min-height:64px;padding:12px 18px;gap:12px;border-radius:24px;flex-wrap:wrap}
 body .unified-header .unified-logo{font-size:23px;margin-right:auto}
 .has-mobile-menu .mobile-menu-toggle{display:flex;align-items:center;justify-content:center;gap:10px;min-height:42px;padding:8px 14px;border:1px solid #ffffffd9;border-radius:22px;background:#ffffff55;color:#20242c;font:600 14px/1.2 Manrope,system-ui,sans-serif;cursor:pointer}
 body .unified-header.has-mobile-menu nav{display:none;width:100%;flex-basis:100%}
 body .unified-header.has-mobile-menu.menu-open nav{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:12px;border-top:1px solid #ffffff90}
 body .unified-header nav a{padding:12px!important;min-height:44px;font-size:14px;white-space:normal;display:flex;align-items:center}
 body .unified-header nav a:last-child{border-radius:18px}
}
/* The same mission card appears on the homepage and in the lesson catalogue. */
body .agent-card,body.lobby.glass-public .featured.agent-card{box-sizing:border-box;display:block;position:relative;isolation:isolate;align-self:center;justify-self:center;width:100%;max-width:440px;min-height:0;height:auto;margin:10px auto;padding:25px 28px 28px;border:1px solid #ffffff99;border-radius:30px;overflow:hidden;color:#edf5f3;background:linear-gradient(125deg,#3c4c55,#1f2b32);box-shadow:inset 0 1px 3px #ffffff85,0 18px 38px #25364524;text-decoration:none;transform:rotate(2deg);transition:transform .4s,box-shadow .4s}
body .agent-card .file-top{display:flex;justify-content:space-between;gap:10px;padding-bottom:14px;border-bottom:1px solid #507164;font:11px/1.5 ui-monospace,monospace;letter-spacing:1.6px;color:#a4c4b5}
body .agent-card .file-top span:first-child{color:#99ffc8}
body .agent-card .stamp{display:block;position:absolute;top:80px;left:28px;padding:7px 10px;border:1px solid #e5b273;color:#e5b273;font:12px/1.4 ui-monospace,monospace;letter-spacing:3px;transform:rotate(-14deg);z-index:2}
body .agent-card .feature-text{position:relative;z-index:2;padding-top:86px}
body .agent-card .feature-text h2{font:400 40px/1.03 Manrope,system-ui,sans-serif;letter-spacing:-.04em;margin:16px 0}
body .agent-card .feature-text strong{font:400 70px/1.1 Manrope,system-ui,sans-serif;letter-spacing:-.065em;color:#99ffc8}
body .agent-card .feature-text>p,body .agent-card .file-bottom{font:13px/1.6 Manrope,system-ui,sans-serif;letter-spacing:.025em;color:#dde2e6;margin:0}
body .agent-card .file-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px;font-size:11px}
body .agent-card .circle-arrow{display:none}
body .agent-card .mini-radar{position:absolute;top:100px;right:-80px;bottom:auto;width:260px;height:260px;border:1px solid #71c7a445;border-radius:50%;opacity:.65;background:repeating-radial-gradient(circle,transparent 0 42px,#84dda52c 43px 44px);z-index:0;pointer-events:none}
body .agent-card .mini-radar:before,body .agent-card .mini-radar:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 49.8%,#82dbaa40 50%,transparent 50.2%)}
body .agent-card .mini-radar:after{transform:rotate(90deg)}
body .agent-card .mini-radar i{position:absolute;inset:0;border-radius:50%;background:conic-gradient(transparent 68%,#8af9b349 96%,#adffd9c0);animation:agent-sweep 7s linear infinite}
body .agent-card .mini-radar b,body .agent-card .mini-radar span{position:absolute;left:31%;top:37%;width:8px;height:8px;background:#99ffc8;border-radius:50%}
body .agent-card .mini-radar span{left:70%;top:60%;width:5px;height:5px}
@keyframes agent-sweep{to{transform:rotate(360deg)}}
@media(hover:hover) and (prefers-reduced-motion:no-preference){body .agent-card:hover,body.lobby.glass-public .featured.agent-card:hover{transform:rotate(0) translateY(-4px);box-shadow:inset 0 1px 3px #ffffff85,0 24px 44px #25364530}}
@media(max-width:1000px){
 body.glass-home #top{background:radial-gradient(ellipse at 80% 0%,#d9e1e5,transparent 60%),#f2f5f7}
 body.glass-home .glass-hero{display:flex;flex-direction:column;margin:0;padding:0 20px 36px;min-height:0;overflow:visible;background:radial-gradient(ellipse at 70% 20%,#dbe1e4,#bac5cb 95%)}
 body.glass-home .portrait-layer{position:relative;inset:auto;width:100%;height:350px;max-width:620px;margin:0 auto;overflow:hidden;z-index:1}
 body.glass-home .portrait-layer img{height:440px;width:auto;max-width:none;bottom:-70px;right:50%;transform:translateX(50%);object-fit:contain}
 body.glass-home .portrait-caption{right:12px;bottom:42px;padding:10px 15px;font-size:12px;gap:14px;background:#25313d80;white-space:nowrap}
 body.glass-home .hero-content{width:100%;max-width:640px;margin:-20px auto 0;position:relative;z-index:3}
 body.glass-home .glass-intro{padding:25px 28px;border-radius:28px;background:linear-gradient(125deg,#ffffffbf,#eef2f490)}
 body.glass-home .glass-intro h1{font-size:clamp(30px,6.5vw,40px);white-space:normal;margin:0 0 14px}
 body.glass-home .wine-line{margin-bottom:16px;width:34px}
 body.glass-home .glass-lead{font-size:16px;line-height:1.6;margin:0}
 body.glass-home .glass-intro .glass-actions{max-width:none;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
 body.glass-home .glass-actions .btn{font-size:14px;min-height:48px;padding:12px 10px;white-space:normal;text-align:center}
 body.glass-home .glass-note{font-size:11px;line-height:1.5;margin-top:16px}
 body.glass-home .mission-gateway{margin:24px 20px 40px;grid-template-columns:1fr 1fr;padding:22px;gap:28px}
}
@media(max-width:600px){
 body.glass-home .glass-hero{padding:0 16px 28px}
 body.glass-home .portrait-layer{height:300px}
 body.glass-home .portrait-layer img{height:390px;bottom:-65px}
 body.glass-home .glass-intro{padding:22px}
 body.glass-home .glass-lead{font-size:15px}
 body.glass-home .glass-actions .btn{font-size:13px}
 body.glass-home .mission-gateway{grid-template-columns:1fr;margin:22px 16px 36px;padding:20px;gap:22px}
 body.glass-home .gateway-copy{padding:4px}
 body.glass-home .gateway-copy h2{font-size:30px;margin:14px 0}
 body.glass-home .gateway-copy .btn{margin-top:18px}
 body .agent-card,body.lobby.glass-public .featured.agent-card{max-width:370px;padding:22px;transform:rotate(1.5deg);border-radius:26px}
 body .agent-card .file-top{font-size:9px;letter-spacing:1px}
 body .agent-card .stamp{top:70px;left:23px;font-size:10px}
 body .agent-card .feature-text{padding-top:73px}
 body .agent-card .feature-text h2{font-size:34px}
 body .agent-card .feature-text strong{font-size:60px}
 body .agent-card .feature-text>p{font-size:12px}
 body .agent-card .file-bottom{font-size:10px;margin-top:20px}
 body .agent-card .mini-radar{top:105px;right:-95px;width:235px;height:235px}
 body.lobby.glass-public .lobby-hero{padding-bottom:34px;gap:26px}
}
@media(prefers-reduced-motion:reduce){body .agent-card,body.lobby.glass-public .featured.agent-card{transition:none;transform:none}body .agent-card .mini-radar i{animation:none}}
/* Mobile hero: the portrait sits in front of the glass, beside the controls. */
@media(max-width:600px){
 body.glass-home .glass-hero{display:block;position:relative;height:500px;min-height:500px;padding:42px 16px 0;overflow:hidden;border-bottom:1px solid #aebbc3}
 body.glass-home .hero-content{position:relative;width:100%;max-width:none;margin:0;z-index:1}
 body.glass-home .glass-intro{box-sizing:border-box;width:calc(100% - 42px);min-height:350px;padding:22px 80px 22px 18px;border-radius:26px;background:linear-gradient(125deg,#ffffffa8,#eef2f465)}
 body.glass-home .glass-intro h1{font-size:27px;line-height:1.12;margin-bottom:14px;letter-spacing:-.045em}
 body.glass-home .glass-lead{font-size:12px;line-height:1.55}
 body.glass-home .glass-intro .glass-actions{grid-template-columns:1fr;gap:9px;margin-top:18px}
 body.glass-home .glass-actions .btn{font-size:11px;padding:10px 6px;min-height:42px;border-radius:18px}
 body.glass-home .glass-note{font-size:9px;line-height:1.5;margin-top:14px}
 body.glass-home .portrait-layer{position:absolute;inset:0;width:100%;max-width:none;height:100%;margin:0;z-index:2;overflow:hidden;pointer-events:none}
 body.glass-home .portrait-layer img{height:490px;right:-125px;bottom:0;transform:none}
 body.glass-home .portrait-caption{right:15px;bottom:18px;padding:9px 13px;font-size:11px;gap:12px}
 body.glass-home .portrait-caption span{width:28px}
}
@media(max-width:360px){
 body.glass-home .glass-hero{height:510px;min-height:510px;padding-left:12px;padding-right:12px}
 body.glass-home .glass-intro{width:calc(100% - 20px);padding:20px 75px 20px 15px}
 body.glass-home .glass-intro h1{font-size:24px}
 body.glass-home .portrait-layer img{right:-148px}
}
@media(max-width:600px){body.glass-home .portrait-layer img{height:460px;right:-75px}}
@media(max-width:360px){body.glass-home .portrait-layer img{height:430px;right:-90px}}
@media(max-width:600px){
 body.glass-home .glass-intro{min-height:320px}
 body.glass-home .glass-intro .glass-actions{max-width:185px}
 body.glass-home .glass-note{max-width:170px}
}
@media(max-width:360px){body.glass-home .glass-intro .glass-actions{max-width:160px}body.glass-home .glass-note{max-width:150px}}
@media(max-width:600px){
 body.glass-home .approach-grid{min-width:0;grid-template-columns:minmax(0,1fr);padding:24px}
 body.glass-home .approach-grid>div{min-width:0}
 body.glass-home .approach h2{font-size:clamp(25px,7vw,32px);line-height:1.18;overflow-wrap:normal}
 body.glass-home .approach h2 .accent-mark{display:block}
}

/* Tablet portrait keeps the teacher beside the glass panel. */
@media(min-width:601px) and (max-width:1000px){
 body.glass-home .glass-hero{display:block;position:relative;min-height:650px;padding:125px 26px 75px;overflow:hidden}
 body.glass-home .portrait-layer{position:absolute;inset:auto -30px 0 auto;width:58%;height:100%;max-width:none;margin:0;z-index:2}
 body.glass-home .portrait-layer img{height:105%;right:0;bottom:0;transform:none}
 body.glass-home .hero-content{width:77%;max-width:none;margin:0;z-index:auto}
 body.glass-home .glass-intro{padding:30px 36% 30px 26px}
 body.glass-home .glass-intro h1{font-size:clamp(28px,3.8vw,38px)}
 body.glass-home .glass-intro .glass-actions{grid-template-columns:1fr}
 body.glass-home .portrait-caption{right:40px;bottom:20px}
}
