/* ABOUT: the desktop assistant's speech bubble plus the Info and Profile windows. Click a window to bring it forward,
   drag its titlebar to move it. Each window takes its content's height, so nothing is cut off;
   about.js measures them and places them for the current desktop size. */
.about-stage{position:relative;height:100%;min-height:0}
.about-stage .window{position:absolute;margin:0;left:var(--x,0%);top:var(--y,0%);width:var(--w);height:auto;max-height:calc(100% - var(--y,0%));min-height:0;transition:left .4s cubic-bezier(.22,.7,.2,1),top .4s cubic-bezier(.22,.7,.2,1),box-shadow .2s}
/* the window's own max-height limits the content; #about outranks the shared :is(#detail-content,.section-content) cap */
#about .about-stage .document-window>.section-content{flex:1 1 auto;min-height:0;max-height:none;padding:20px 24px}
.about-stage .window.is-active{box-shadow:inset 1px 1px #fff,6px 8px 0 #354e7030,16px 26px 48px #26313c42}
.about-stage .window:not(.is-active){box-shadow:inset 1px 1px #fff,3px 4px 0 #354e7020,8px 12px 24px #26313c18}
.about-stage .window.maximized{z-index:999!important;max-height:none}
.about-stage .titlebar{cursor:grab;user-select:none;-webkit-user-select:none;touch-action:none}
.about-stage .window.is-dragging{transition:box-shadow .2s}
.about-stage .window.is-dragging .titlebar{cursor:grabbing}
body.window-dragging{user-select:none;-webkit-user-select:none}
/* Bubble and Info share the left column, Profile (with the tool list at its foot) sits on the right.
   Widths are capped so the pair stays compact (and centred by about.js) on wide screens. */
.about-stage .w-info{--w:min(35%,540px)}
.about-stage .w-profile{--w:min(63%,900px)}
.about-stage .desktop-welcome{position:absolute;margin:0;left:var(--x,0%);top:var(--y,0%);max-width:min(35%,540px);transition:left .4s cubic-bezier(.22,.7,.2,1),top .4s cubic-bezier(.22,.7,.2,1)}

/* Desktop assistant speech bubble */
.desktop-welcome{display:flex;align-items:center;gap:15px;padding:0 0 4px 4px}
.welcome-avatar{display:grid;place-items:center;width:52px;height:57px;flex-shrink:0;font-size:36px;line-height:1;transform:rotate(-9deg);filter:drop-shadow(2px 3px 0 #354e7018)}
.welcome-avatar svg{display:block;width:100%;height:auto}
.welcome-bubble{position:relative;padding:10px 17px 11px;background:#f4f3e9;border:1px solid #8799b0;box-shadow:inset 1px 1px #fff,3px 3px #354e701a;color:#354e70}
.welcome-bubble:before{content:'';position:absolute;width:10px;height:10px;left:-6px;top:33px;background:#f4f3e9;border-left:1px solid #8799b0;border-bottom:1px solid #8799b0;transform:rotate(45deg)}
.welcome-system-label{display:flex;align-items:center;gap:6px;font:8px monospace;letter-spacing:1.3px;color:#5c6f87}
.welcome-system-label i{display:block;width:5px;height:5px;background:#809b80;box-shadow:1px 1px #fff}
.welcome-bubble p{font:24px/1.15 'Jersey 10',monospace;letter-spacing:.3px;margin:5px 0}
.welcome-title{min-height:1.15em}
.welcome-bubble p>span{color:#9b7453}
.welcome-message{font-size:11px;color:#5f6e83;line-height:1.5}
.welcome-step{font-size:inherit;color:#9aa8ba}
.welcome-next{margin:-7px -6px -7px auto;padding:8px 6px 8px 14px;font:8px monospace;letter-spacing:.6px;color:#4c698e;cursor:pointer}
.welcome-next:hover,.welcome-next:focus-visible{color:#354e70;text-decoration:underline}
/* the assistant rotates tips: a fixed width and two message lines keep the bubble's size steady */
.about-stage .welcome-bubble{width:320px;max-width:100%}
.welcome-title,.welcome-message{transition:opacity .2s}
.welcome-bubble.is-swapping .welcome-title,.welcome-bubble.is-swapping .welcome-message{opacity:0}
.welcome-message{display:block;min-height:3em}
@media(max-height:800px) and (min-width:621px){
  .desktop-welcome{gap:12px;padding-bottom:0}
  .welcome-avatar{font-size:29px;width:42px;height:45px}
  .welcome-bubble{padding:7px 13px 8px}
  .welcome-system-label{font-size:7px}
  .welcome-bubble p{font-size:21px;margin:3px 0}
  .welcome-message{font-size:10px}
  .welcome-bubble:before{top:25px}
}

/* Info */
.w-info .welcome-copy{padding:0;background:transparent}
.w-info .screen-kicker{margin:0}
.w-info .welcome-copy h1{font-size:clamp(26px,2.3vw,36px);margin:8px 0 0;line-height:1.16;letter-spacing:-1.5px}
.w-info .welcome-description{font-size:15px;margin:14px 0}
.w-info .primary{display:none}
.w-info .identity-properties{margin-top:14px;padding:10px 12px}
.w-info .identity-properties-heading{margin-bottom:9px}
.w-info .identity-properties-heading h2{font-size:13px!important;letter-spacing:0;line-height:1.5}
.w-info .identity-keywords li{padding:9px 6px}
.w-info .identity-keywords strong{font-size:15px}
/* Profile: photo + basics on the left, education / award / service on the right */
.w-profile .profile-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr)!important;gap:22px;align-items:start}
.w-profile .profile-identity{display:flex;align-items:center;gap:14px}
.w-profile .profile-photo{width:72px;flex:0 0 72px}
.w-profile .profile-photo img{width:72px;height:72px!important}
.w-profile .profile-name{margin:0!important;font-size:20px!important}
.w-profile .meta-list{margin-top:10px}
.w-profile .meta-list li{padding:7px 0}
.w-profile .profile-copy{padding-top:0}
.w-profile .profile-copy .kicker,.w-profile .profile-copy .section-title{display:none}
.w-profile .profile-copy .profile-headline{font-size:14px;margin:0 0 8px;line-height:1.6}
.w-profile .profile-facts{grid-template-columns:1fr!important;gap:7px}
.w-profile .profile-fact{padding:9px 12px}
.w-profile .profile-fact-head{display:none}
.w-profile .profile-fact h3{margin:0 0 3px;font-size:13px}
.w-profile .profile-fact-list li{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:0 10px;margin:4px 0}
.w-profile .profile-fact-list span{margin:0}
/* Tools at the foot of Profile: one card per tool, three across.
   #about outranks the shared :is(#detail-content,.section-content) p rule. */
#about .w-profile .tools-panel{margin-top:14px;padding-top:12px;border-top:1px dashed #c9d3e0}
#about .w-profile .tools-title{margin:0 0 8px;font-size:13px;font-weight:700;line-height:1.5;color:#2f3d52}
#about .w-profile .tool-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0;padding:0;list-style:none}
#about .w-profile .tool-item{display:flex;align-items:flex-start;gap:9px;padding:7px 10px;border:1px solid #c8d1df;background:#edf1f6;min-width:0}
#about .w-profile .tool-icon{width:18px!important;height:18px;flex:0 0 18px;margin:1px 0 0!important}
#about .w-profile .tool-item>div{min-width:0}
#about .w-profile .tool-name{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 7px;margin:0;font-size:12.5px;line-height:1.4}
#about .w-profile .tool-name b{font-weight:700;color:#2f3d52}
#about .w-profile .tool-name small{font:9px monospace;letter-spacing:.8px;color:#576e8b}
#about .w-profile .tool-use{margin:2px 0 0;font-size:11px;line-height:1.5;color:#616d80;word-break:keep-all}
#about .w-profile .tool-legal{margin:7px 0 0;line-height:1.5}

/* Short desktops: tighter spacing so Profile still fits without scrolling */
@media(min-width:1201px) and (max-height:760px){
  #about .about-stage .document-window>.section-content{padding:14px 22px}
  .w-profile .profile-photo{width:56px;flex-basis:56px}
  .w-profile .profile-photo img{width:56px;height:56px!important}
  .w-profile .meta-list{margin-top:6px}
  .w-profile .meta-list li{padding:5px 0}
  .w-profile .profile-fact{padding:7px 11px}
  #about .w-profile .tools-panel{margin-top:10px;padding-top:9px}
  #about .w-profile .tool-item{padding:5px 9px}
  #about .w-profile .tool-legal{margin-top:5px}
}

/* Narrow screens: the bubble and windows simply stack, Info first */
@media(max-width:1200px){
  .about-page{overflow-y:auto}
  .about-stage{height:auto;display:flex;flex-direction:column;gap:14px}
  .about-stage .window,.about-stage .desktop-welcome{position:static;width:auto;max-width:none;max-height:none;transition:none}
  #about .about-stage .document-window>.section-content{overflow:visible}
  .about-stage .titlebar{cursor:default}
  .w-info{order:1}.w-profile{order:2}
  .w-info .status{display:none}
  .w-profile .profile-grid{grid-template-columns:1fr!important}
  .w-profile .tool-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .desktop-welcome{gap:11px;padding:2px 0 2px 2px}
  .welcome-avatar{width:35px;height:45px;font-size:28px}
  .about-stage .welcome-bubble{width:auto;padding:9px 11px;min-width:0;flex:1}
  .welcome-bubble p{font-size:22px;letter-spacing:0}
  .welcome-system-label{font-size:7px;letter-spacing:1px}
  .welcome-message{font-size:10px}
  .welcome-bubble:before{top:28px}
}
@media(max-width:420px){.w-profile .tool-list{grid-template-columns:1fr}}
@media(max-width:350px){.welcome-bubble p{font-size:20px}.welcome-message{font-size:9px}.desktop-welcome{gap:8px}.welcome-avatar{width:28px;font-size:25px}}
/* boot: the first time ABOUT opens, Profile then Info open in turn and the assistant types its greeting */
@keyframes boot-open{from{opacity:0;translate:0 16px;scale:.975}to{opacity:1;translate:0;scale:1}}
@keyframes assist-pop{from{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:none}}
@keyframes caret{50%{opacity:0}}
#about.is-current .about-stage.is-booting .w-profile{animation:boot-open .42s .1s backwards}
#about.is-current .about-stage.is-booting .w-info{animation:boot-open .42s .3s backwards}
#about.is-current .about-stage.is-booting .desktop-welcome{animation:assist-pop .45s .62s backwards}
.welcome-title.is-typing:after{content:'_';animation:caret .7s steps(1) infinite}
@media(prefers-reduced-motion:reduce){.about-stage .window,.about-stage .desktop-welcome,.welcome-title,.welcome-message{transition:none}#about.is-current .about-stage.is-booting .window,#about.is-current .about-stage.is-booting .desktop-welcome{animation:none}}

/* Info: a wider window with room to breathe, so it holds its own next to Profile */
@media(min-width:1201px){
  .about-stage .w-info{--w:min(40%,640px)}
  .about-stage .w-profile{--w:min(58%,900px)}
  #about .about-stage .w-info.document-window>.section-content{padding:34px 38px 32px}
  .w-info .welcome-copy h1{font-size:clamp(32px,2.7vw,46px);line-height:1.18;margin-top:12px}
  .w-info .welcome-description{font-size:16px;line-height:1.8;margin:22px 0 0;padding:4px 0 4px 18px}
  .w-info .identity-properties{margin-top:28px;padding:16px 18px}
  .w-info .identity-properties-heading{margin-bottom:14px}
  .w-info .identity-keywords{gap:10px}
  .w-info .identity-keywords li{padding:16px 10px}
  .w-info .identity-keywords strong{font-size:17px}
}
@media(min-width:1201px){
  #about .about-stage .w-info.document-window>.section-content{min-height:min(560px,calc(100vh - 380px));display:flex;flex-direction:column}
  #about .w-info .welcome-copy{flex:1;display:flex;flex-direction:column}
  #about .w-info .identity-properties{margin-top:auto}
  #about .w-info .welcome-description{margin-bottom:28px}
}
@media(min-width:1201px) and (max-height:820px){
  #about .about-stage .w-info.document-window>.section-content{padding:22px 30px 22px}
  .w-info .welcome-copy h1{font-size:clamp(28px,2.3vw,36px)}
  .w-info .welcome-description{margin:14px 0 18px;font-size:15px;line-height:1.7}
  .w-info .identity-properties{padding:12px 14px}
  .w-info .identity-keywords li{padding:11px 8px}
}
