/* How it works: five-stage slide show (page-only styles) */
.hiw{--ink:#111113;--grey:#4A4A52;--green:#0F7B5F;--green-d:#0B5E49;--tint:#E3F1EC;--wash:#EAF4EF;--line:#E4E2DC;--stone:#EFEDE6;--bar:72px;--hd:72px;font-family:'Plus Jakarta Sans',system-ui,sans-serif;color:var(--ink)}
.hiw [hidden]{display:none!important}
.hiw[data-who=student] [data-for=professional],.hiw[data-who=professional] [data-for=student]{display:none!important}

/* Stage bar */
.hw-bar{position:sticky;top:0;z-index:4;background:#FFFFFF;border-bottom:1px solid var(--line)}
.hw-bar-in{max-width:1240px;margin:0 auto;padding:10px 24px;display:flex;align-items:center;gap:16px}
.hw-title{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.hw-tabs{flex:1 1 auto;display:flex;gap:4px;min-width:0}
.hw-tabs a{flex:1 1 0;min-width:0;display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:12px;color:var(--grey);text-decoration:none;font-size:14px;font-weight:600;line-height:1.2}
.hw-tabs a b{flex:0 0 26px;height:26px;border-radius:50%;border:1.5px solid currentColor;display:flex;align-items:center;justify-content:center;font:700 14px 'Bricolage Grotesque',sans-serif}
.hw-tabs a b.b-book::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.hw-tabs a:hover{color:var(--ink);background:#F6F5F1}
.hw-tabs a[aria-current]{color:var(--green-d);background:var(--tint)}
.hw-tabs a[aria-current] b{background:var(--green);border-color:var(--green);color:#FFFFFF}
.who{flex:0 0 auto;display:flex;background:var(--stone);border-radius:999px;padding:4px}
.who button{min-height:36px;padding:0 16px;border:0;border-radius:999px;background:transparent;font:inherit;font-size:14px;font-weight:600;color:var(--grey);cursor:pointer}
.who button[aria-pressed=true]{background:#FFFFFF;color:var(--ink);box-shadow:0 1px 3px rgba(17,17,19,.12)}

/* Stages: one layout for every stage (stacked on phones and with JavaScript off) */
.stage{scroll-margin-top:var(--bar);border-bottom:1px solid var(--line)}
.st-in{max-width:1240px;margin:0 auto;padding:48px 24px;display:flex;flex-wrap:wrap;gap:32px 48px;align-items:flex-start}
.st-text{flex:1 1 380px;min-width:0;display:flex;flex-direction:column;gap:14px}
.st-vis{flex:1 1 520px;min-width:0;display:flex;flex-direction:column;gap:12px}
.st-kicker{margin:0;font-size:14px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--green-d)}
.stage h2{margin:0;font-family:'Bricolage Grotesque',sans-serif;font-size:clamp(28px,2.7vw,36px);line-height:1.08;letter-spacing:-.8px;outline:none}
.st-value{margin:0;font-size:20px;line-height:1.45;font-weight:600}
.st-story{margin:0;font-size:17px;line-height:1.6;color:var(--grey)}
.st-nav{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:4px}
.st-nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:12px;font-weight:600;font-size:15px;text-decoration:none}
.st-nav .nx{background:var(--green);color:#FFFFFF}
.st-nav .nx:hover{background:var(--green-d);color:#FFFFFF}
.st-nav .bk{border:1px solid var(--line);color:var(--ink);background:#FFFFFF}

/* The picture frame: the person, with product cards in the empty space */
.scene{position:relative;height:400px;background:#FFFFFF;border:1px solid var(--line);border-radius:24px;overflow:hidden}
.sc-art{position:absolute;left:3%;bottom:0;height:86%;width:auto;max-width:56%;object-fit:contain;object-position:left bottom}
.sc-0 .sc-art{height:84%;max-width:58%}
.sc-2 .sc-art,.sc-4 .sc-art{left:5%;height:92%}
.ov{position:absolute}
.ov-stack{top:16px;right:16px;bottom:16px;width:min(46%,320px);display:flex;flex-direction:column;justify-content:center;gap:10px}
.sc-4 .ov-stack{width:min(60%,390px)}
.sc-4 .sc-art{height:68%}
.sc-0 .sc-art[data-for=professional]{max-width:50%}
.oc{background:#FFFFFF;border:1px solid var(--line);border-radius:16px;padding:12px 14px;box-shadow:0 8px 24px rgba(17,17,19,.08);display:flex;flex-direction:column;gap:8px}
.oc p{margin:0}
.oc-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px}
.oc-name{font-size:13px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--green-d)}
.oc-label{font-size:13px;font-weight:700;color:var(--grey)}
.v-helper{width:64px;height:70px;flex:0 0 auto}
.v-helper.sm{width:30px;height:33px}
.v-seg{display:flex;gap:6px}.v-seg i{flex:1;height:10px;border-radius:5px;background:var(--stone)}.v-seg i.f{background:var(--green)}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chips i{font-style:normal;font-size:13px;font-weight:600;line-height:1;padding:6px 10px;border-radius:999px;border:1.5px solid var(--ink);background:#FFFFFF}
.chips i.g{border-color:var(--green);background:var(--tint);color:var(--green-d)}
.v-sky{display:block;width:100%;height:auto;max-height:76px}
.v-sky .sky-lines path{fill:none;stroke:#C9C6BE;stroke-width:2}
.v-path{fill:none;stroke:var(--green-d);stroke-width:4;stroke-linecap:round;stroke-dasharray:2 12}
.k1 circle,.v-legend .k1{fill:#14B87D;background:#14B87D}.k2 circle,.v-legend .k2{fill:#F59E0B;background:#F59E0B}.k3 circle,.v-legend .k3{fill:#3B82F6;background:#3B82F6}.k4 circle,.v-legend .k4{fill:#A855F7;background:#A855F7}
.v-flag circle{fill:var(--green-d)}.v-flag path{fill:none;stroke:var(--green-d);stroke-width:4;stroke-linejoin:round}
.v-legend{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 12px;font-size:13px;font-weight:500}
.v-legend li{display:flex;align-items:center;gap:5px}.v-legend i{width:9px;height:9px;border-radius:50%}

/* Stage 0: thoughts */
.ov-thoughts{top:18px;right:18px;width:min(50%,330px);display:flex;flex-direction:column;align-items:flex-end;gap:14px}
.thought{position:relative;margin:0;background:#FFFFFF;border:2px solid var(--ink);border-radius:22px;padding:10px 16px;font-size:14px;font-weight:600;line-height:1.35}
.thought:nth-child(2){margin-right:14%}
.thought:nth-child(3){margin-right:4%}
.thought::before,.thought::after{content:"";position:absolute;background:#FFFFFF;border:2px solid var(--ink);border-radius:50%}
.thought::before{width:11px;height:11px;left:-9px;bottom:-9px}
.thought::after{width:6px;height:6px;left:-20px;bottom:-18px}

/* Stage 2: flags for the roles she can reach */
.ov-trails{position:absolute;inset:0;width:100%;height:100%}
.ov-trails path{fill:none;stroke:var(--green);stroke-width:3;stroke-linecap:round;stroke-dasharray:2 9;vector-effect:non-scaling-stroke}
.ov-flags{list-style:none;margin:0;padding:0}
.ov-flags li{position:absolute;padding:0 0 58px 3px}
.ov-flags li::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;border-radius:2px;background:var(--ink)}
.ov-flags li::after{content:"";position:absolute;left:-4px;bottom:-4px;width:11px;height:11px;border-radius:50%;background:var(--green)}
.f-role,.f-path{display:block;background:var(--tint);border:1.5px solid var(--green);border-left:0;padding:0 14px 0 10px}
.f-role{font-size:14px;font-weight:700;line-height:1.25;padding-top:7px;border-bottom:0;border-radius:0 12px 0 0}
.f-path{font-size:13px;font-weight:600;color:var(--green-d);padding-bottom:7px;border-top:0;border-radius:0 0 12px 0}

/* Stage 3: workflow steps */
.steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px}
.steps li{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:500;color:var(--grey)}
.steps li::before{content:"";flex:0 0 16px;height:16px;border-radius:50%;border:2px solid #C9C6BE;box-sizing:border-box}
.steps li.d{color:var(--ink)}
.steps li.d::before{background:var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;border-color:var(--green)}
.steps li.c{color:var(--green-d);font-weight:700}
.steps li.c::before{border-color:var(--green);border-width:4px}
.oc-note{display:flex;align-items:center;gap:8px;align-self:flex-start;margin:0;background:#FFFFFF;border:1px solid var(--line);border-radius:999px;padding:8px 14px;font-size:14px;font-weight:600;box-shadow:0 8px 24px rgba(17,17,19,.08)}
.oc-note i{width:8px;height:8px;border-radius:50%;background:var(--green)}

/* Stage 4: profile and the Hive */
.profile{gap:7px}
.pf-for{font-size:13px;font-weight:700;color:var(--green-d);background:var(--tint);border-radius:8px;padding:5px 10px;align-self:flex-start}
.pf-head{display:flex;align-items:center;gap:12px}
.pf-head img{width:48px;height:48px;border-radius:50%;border:2px solid var(--ink);object-fit:cover;background:#FFFFFF}
.pf-head p{display:flex;flex-direction:column}
.pf-head b{font-size:16px;line-height:1.2}.pf-head span{font-size:14px;color:var(--grey)}
.pf-proj{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.pf-proj li{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600}
.pf-proj li::before{content:"";flex:0 0 8px;height:8px;border-radius:2px;background:var(--green)}
.hive{top:14px;left:14px;width:min(34%,210px);gap:4px;padding:10px 12px}
.hive svg{display:block;width:100%;height:auto}
.hive .hl path{fill:none;stroke:#C9C6BE;stroke-width:2}

/* Tiles under every picture */
.tiles{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.t2{grid-template-columns:1fr 1fr}
.t4{grid-template-columns:repeat(4,1fr)}
.tiles li{background:var(--wash);border-radius:16px;padding:12px 14px;display:flex;flex-direction:column;gap:4px}
.tiles b{font:700 16px/1.25 'Bricolage Grotesque',sans-serif}
.tiles span{font-size:14px;line-height:1.45;color:#3E3E44}
.tiles .stat b{font-size:24px;line-height:1.1;color:var(--green-d)}
.tiles .stat small{margin-top:auto;padding-top:4px;font-size:13px;line-height:1.4;color:var(--grey)}
.st-book .book-box{max-width:520px}

/* Slide mode (desktop, JavaScript on): every stage fills the screen the same way */
.hiw.slides .hw-stages{height:calc(100vh - var(--hd) - var(--bar));min-height:460px;position:relative}
.hiw.slides .stage{display:none;height:100%;overflow-y:auto;border-bottom:0;background:#FFFFFF}
.hiw.slides .stage.on{display:block}
.hiw.slides .st-in{height:100%;box-sizing:border-box;padding:24px;flex-wrap:nowrap;align-items:stretch}
.hiw.slides .st-text{flex:0 1 460px;padding-top:12px}
.hiw.slides .st-vis{flex:1 1 0;max-width:700px;margin-left:auto}
.hiw.slides .scene{height:auto;flex:1 1 auto;min-height:280px;max-height:480px}
.hiw.slides .st-book .st-vis{justify-content:flex-start;padding-top:12px}

@media (prefers-reduced-motion:no-preference){
  .hiw.slides .stage.on .st-in{animation:hwin .35s ease-out}
  .bob{animation:hwbob 2.4s ease-in-out infinite}
  .v-path,.ov-trails path{animation:hwflow 1.6s linear infinite}
  .hiw.slides .stage.on .thought{animation:hwthink .5s ease-out both}
  .hiw.slides .stage.on .thought:nth-child(2){animation-delay:.5s}
  .hiw.slides .stage.on .thought:nth-child(3){animation-delay:1s}
}
@keyframes hwin{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes hwbob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes hwflow{to{stroke-dashoffset:-22}}
@keyframes hwthink{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:none}}

@media (max-width:1180px){.t4{grid-template-columns:1fr 1fr}}
@media (max-width:959px){
  .hw-bar-in{flex-wrap:wrap;padding:8px 16px;gap:8px}
  .who{margin-left:auto}
  .hw-tabs{flex:1 1 100%;overflow-x:auto;scrollbar-width:none;order:2}
  .hw-tabs a{flex:0 0 auto}
  .hw-tabs a:not([aria-current]) span{display:none}
  .st-in{padding:40px 16px}
  .st-nav{display:none}
}
/* Phones: the picture, then its cards, one under another */
@media (max-width:640px){
  .scene{height:auto;display:flex;flex-direction:column;gap:12px;padding:16px}
  .sc-art{position:static;height:auto;width:auto;max-width:72%;max-height:240px;align-self:center}
  .ov,.ov-stack,.ov-thoughts{position:static;width:auto}
  .ov-thoughts{align-items:stretch}
  .thought,.thought:nth-child(n){margin:0 0 0 18px}
  .ov-trails{display:none}
  .ov-flags{display:flex;flex-direction:column;gap:10px}
  .ov-flags li{position:static;padding:0 0 0 3px}
  .ov-flags li::after{display:none}
  .sc-4 .ov-stack{width:auto;gap:10px}
  .hive{order:3}
  .t2,.t4{grid-template-columns:1fr}
}
