/* ============ Deck shell ============ */
:root{
  --purple:#6b1fd8;
  --purple-soft:#8b5cf6;
  --blue-text:#4a7fe8;
  --ink:#1a1030;
  --muted:#6b6880;
  --line:#ece7f7;
  --nav-h:68px;
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
html,body{height:100%;}
body{
  font-family:'Poppins',system-ui,sans-serif;
  background:#fff;
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  display:flex;
  flex-direction:column;
  min-height:100vh;
  min-height:100dvh;
  overflow:hidden;              /* desktop: no scroll */
}

/* ---------- Nav ---------- */
.nav{
  flex:0 0 auto;
  height:var(--nav-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 40px;
  border-bottom:1px solid var(--line);
  background:#fff;
  position:relative;
  z-index:50;
}
.brand{
  display:flex;
  align-items:baseline;
  gap:10px;
  text-decoration:none;
  white-space:nowrap;
}
.brand .name{
  font-weight:700;
  font-size:17px;
  color:var(--ink);
  letter-spacing:-0.2px;
}
.brand .sep{color:#d6cfe8;font-weight:300;font-size:16px;}
.brand .role{
  font-weight:500;
  font-size:14px;
  color:var(--purple);
  letter-spacing:.1px;
}

.menu{display:flex;align-items:center;gap:4px;}
.menu a{
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  color:var(--muted);
  padding:8px 14px;
  border-radius:20px;
  transition:color .15s ease, background .15s ease;
  white-space:nowrap;
}
.menu a:hover{color:var(--purple);background:#f7f3ff;}
.menu a.active{color:#fff;background:var(--purple);font-weight:600;}

/* hamburger */
.burger{
  display:none;
  width:42px;height:42px;
  border:none;background:none;cursor:pointer;
  padding:10px;
}
.burger span{
  display:block;height:2px;width:100%;
  background:var(--ink);border-radius:2px;
  transition:transform .25s ease, opacity .25s ease;
}
.burger span+span{margin-top:5px;}
.burger.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.burger.open span:nth-child(2){opacity:0;}
.burger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* ---------- Main ---------- */
.main{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:28px 40px 34px;
  min-height:0;
  position:relative;
}
/* pages whose content should sit up near the nav */
.main.main-top{
  justify-content:flex-start;
  padding-top:40px;
}
.main.main-top .page-title{margin-bottom:26px;}
.page-title{
  font-size:clamp(19px, 3.1vw, 34px);
  font-weight:800;
  letter-spacing:.26em;
  color:var(--purple);
  margin:0 0 20px;
  text-align:center;
  line-height:1.25;
  flex:0 0 auto;
  max-width:100%;
  text-wrap:balance;
}

/* ---------- Stage (Canva-faithful) ---------- */
#wrap{
  position:relative;
  width:100%;
  max-width:1132px;
  flex:1 1 auto;
  min-height:0;
}
#stage{
  position:absolute;top:0;left:50%;
  width:1132px;height:545px;
  transform-origin:top center;
  background:#fff;
}

.deco{position:absolute;pointer-events:none;user-select:none;}
#deco-sphere{left:2px;top:0;width:78px;}
#deco-swirl{right:-4px;top:-14px;width:150px;}
#deco-hand{left:-14px;bottom:-4px;width:186px;}

#lines{position:absolute;inset:0;width:1132px;height:545px;pointer-events:none;}

.pill{
  position:absolute;
  width:509px;height:89px;
  border:1.5px solid var(--purple);
  border-radius:26px;
  background:#fff;
  display:flex;align-items:center;
  padding:0 26px;
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
  z-index:2;
}
.pill:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 28px rgba(107,31,216,.22);
  background:#fcfaff;
}
.pill:focus-visible{outline:3px solid var(--purple);outline-offset:4px;}
.pill .logo{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:150px;}
.pill .logo img{max-width:100%;max-height:40px;display:block;}
.pill .role{flex:1;text-align:center;font-weight:700;font-size:21px;line-height:1.24;}
.role .a{color:var(--blue-text);display:block;}
.role .b{color:var(--purple-soft);display:block;}
/* long role lines: shrink instead of wrapping */
.pill .role.long{font-size:17.5px;}
.pill .role.long .a,.pill .role.long .b{white-space:nowrap;}
.pill .logo.narrow{width:126px;}

.hint{
  position:absolute;top:-10px;right:18px;
  background:#f4edff;
  color:var(--purple);
  border:1px solid #dcccf8;
  font-size:8.5px;font-weight:600;letter-spacing:.7px;
  padding:3px 9px;border-radius:20px;
  transition:background .16s ease, color .16s ease,
             border-color .16s ease, box-shadow .16s ease, transform .16s ease;
  pointer-events:none;white-space:nowrap;
  z-index:3;
}
.pill:hover .hint{
  background:var(--purple);
  color:#fff;
  border-color:var(--purple);
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(107,31,216,.32);
}

#pill-deloitte{left:49px;top:27px;}
#pill-apax{left:597px;top:100px;}
#pill-profiline{left:49px;top:194px;}
#pill-chess{left:597px;top:298px;}
#pill-aitransform{left:335px;top:441px;}

/* logos that carry their own background box */
/* per-logo sizing — each trimmed of whitespace, so tuned by aspect ratio
   for equal optical weight inside the 84px pill interior */
.logo img.lg-deloitte {max-height:34px; max-width:150px;}
.logo img.lg-apax     {max-height:48px; max-width:124px;}
.logo img.lg-profiline{max-height:64px; max-width:132px; border-radius:8px;}
.logo img.lg-chess    {max-height:58px; max-width:140px;}
.logo img.lg-ai       {max-height:72px; max-width:105px;}

/* ---------- Mobile stacked list ---------- */
.stack{display:none;width:100%;max-width:560px;margin:0 auto;}
.stack .card{
  display:flex;align-items:center;gap:16px;
  border:1.5px solid var(--purple);
  border-radius:22px;
  padding:16px 20px;
  margin-bottom:16px;
  background:#fff;
  cursor:pointer;
  width:100%;
  text-align:left;
  font-family:inherit;
}
.stack .card:active{background:#faf7ff;}
.stack .card img{max-height:44px;width:auto;flex:0 0 auto;max-width:104px;object-fit:contain;}
.stack .card .role{flex:1;font-weight:700;font-size:16px;line-height:1.3;text-align:left;}
.stack .chev{color:var(--purple);font-size:20px;flex:0 0 auto;}

/* ---------- Modal ---------- */
.overlay{
  position:fixed;inset:0;
  background:rgba(24,10,48,.55);
  display:flex;align-items:center;justify-content:center;
  opacity:0;visibility:hidden;
  transition:opacity .22s ease;
  z-index:999;padding:24px;
}
.overlay.on{opacity:1;visibility:visible;}
.modal{
  background:#fff;border:3px solid var(--purple);border-radius:26px;
  max-width:560px;width:100%;max-height:86vh;overflow-y:auto;
  padding:34px 40px 32px;position:relative;
  transform:scale(.93) translateY(12px);
  transition:transform .22s ease;
  box-shadow:0 24px 70px rgba(76,15,158,.4);
}
.overlay.on .modal{transform:scale(1) translateY(0);}
.x{
  position:absolute;top:12px;right:16px;
  background:none;border:none;font-size:28px;
  color:var(--purple);cursor:pointer;line-height:1;padding:4px;
}
.mhead{display:flex;align-items:center;gap:20px;margin-bottom:20px;padding-right:30px;}
.mhead img{height:36px;width:auto;max-width:140px;}
.mrole{font-weight:700;font-size:18px;line-height:1.25;}
.mrole .a{color:var(--blue-text);display:block;}
.mrole .b{color:var(--purple-soft);display:block;}
.modal p{font-size:15px;line-height:1.6;color:#333;margin:0 0 14px;}
.modal ul{margin:0;padding-left:20px;}
.modal li{font-size:14.5px;line-height:1.6;color:#333;margin-bottom:8px;}

/* ---------- Responsive ---------- */
@media (max-width:1000px){
  .nav{padding:0 20px;}
  .brand .role{display:none;}
  .brand .sep{display:none;}
}
@media (max-width:820px){
  body{overflow:auto;}                      /* mobile: scroll */
  .burger{display:block;}
  .menu{
    position:absolute;top:var(--nav-h);left:0;right:0;
    flex-direction:column;align-items:stretch;
    background:#fff;
    border-bottom:1px solid var(--line);
    padding:10px 16px 16px;
    gap:2px;
    box-shadow:0 14px 30px rgba(26,16,48,.10);
    display:none;
  }
  .menu.open{display:flex;}
  .menu a{padding:13px 16px;font-size:15px;border-radius:12px;}

  .main{padding:26px 20px 40px;justify-content:flex-start;}
  .page-title{letter-spacing:.16em;margin-bottom:20px;}

  #wrap{display:none;}
  .stack{display:block;}
}

/* ============ Education page ============ */
.edu-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
  width:100%;
  max-width:980px;
  margin:0 auto;
}
.edu-card{
  position:relative;
  border:1.5px solid #e2dcf0;
  border-radius:22px;
  background:#fff;
  padding:30px 22px 26px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:22px;
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  font-family:inherit;
  text-align:center;
  width:100%;
}
.edu-card:focus-visible{outline:3px solid var(--purple);outline-offset:4px;}
.edu-logo{
  flex:0 0 auto;
  height:120px;
  display:flex;align-items:center;justify-content:center;
  width:100%;
}
.edu-logo img{max-height:120px;max-width:100%;width:auto;display:block;}
.edu-caption{
  font-weight:700;font-size:16px;line-height:1.35;
}
.edu-caption .a{color:var(--blue-text);display:block;}
.edu-caption .b{color:var(--purple-soft);display:block;}

.page-title,.edu-grid,#wrap,.stack{position:relative;z-index:1;}

/* keep 3-across down to 620px, just tighter */
@media (max-width:900px){
  .edu-grid{gap:16px;}
  .edu-card{padding:22px 14px 20px;gap:16px;}
  .edu-logo{height:92px;}
  .edu-logo img{max-height:92px;}
  .edu-caption{font-size:14px;}
}
@media (max-width:700px){
  .edu-grid{gap:12px;}
  .edu-card{padding:16px 10px 14px;gap:12px;border-radius:16px;}
  .edu-logo{height:66px;}
  .edu-logo img{max-height:66px;}
  .edu-caption{font-size:12px;line-height:1.3;}
  .edu-card .hint{display:none;}
}
/* only stack on true phone widths */
@media (max-width:560px){
  .edu-grid{grid-template-columns:1fr;gap:16px;max-width:560px;}
  .edu-card{flex-direction:row;align-items:center;gap:18px;text-align:left;padding:18px 20px;}
  .edu-logo{height:62px;width:110px;flex:0 0 110px;}
  .edu-logo img{max-height:62px;}
  .edu-caption{font-size:15px;}
  .edu-caption .a,.edu-caption .b{text-align:left;}
}
