/* 42 LMS · Proctored Exams (/proctored-exams). Builds on site.css: header, buttons, type, FAQ, form and footer.
   Every section is finished without motion. The three scroll scenes (the exam that assembles itself, the
   proctoring wall, the second camera) take their pinned layout only under .mo plus .live, which exams.js
   adds once it has set the scene up. */
:root{--navh:65px;--wash:#EEF5F6;--wash2:#E7F1F2;--line2:#C4D8DB;--soft:#7C9097;--good:#1C9A6C;--bad:#D24B4B;--mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace}

/* ---------- header: 42 LMS | Proctored Exams ---------- */
/* Two links: the logo goes to the 42 LMS home page, the product name back to the top of this page. The divider
   sits between them, outside both. */
.top__brand{display:flex;align-items:center;gap:25px;flex:0 0 auto}
.top__home{display:flex;flex:0 0 auto;border-radius:6px}
.top__brand .logo{width:118px;height:auto}
.top__brand .prod{position:relative;padding:10px 0;border-radius:6px;font:700 15px/1 var(--sans);color:var(--text2);text-decoration:none;white-space:nowrap}
.top__brand .prod:before{content:"";position:absolute;left:-13px;top:10px;bottom:10px;border-left:1.5px solid var(--line2)}
.top__brand .prod:hover{color:var(--ink)}
@media (max-width:1060px){html:not(.js) .top .btn{margin-left:auto}}
@media (max-width:520px){html:not(.js) .top .btn{display:none}}
@media (max-width:480px){.top__brand{gap:21px}.top__brand .logo{width:98px}.top__brand .prod{font-size:13.5px}.top__brand .prod:before{left:-11px}}

/* ---------- shared ---------- */
.ico{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.btn .ico{width:18px;height:18px}
.tint{color:var(--blue)}
.ctas{display:flex;flex-wrap:wrap;gap:12px}
.qcol{display:grid;gap:14px}

/* ---------- hero: the exam assembles itself ---------- */
.asm{position:relative;background:var(--paper)}
.asm-pin{position:relative;display:flex;flex-direction:column;align-items:center;padding:56px 0 88px;overflow:hidden}
.asm .deco--disc{bottom:-1px}
.asm-head{position:relative;z-index:3;text-align:center}
.asm-head h1{font-size:clamp(40px,5.6vw,80px);line-height:1;letter-spacing:-.035em;text-wrap:balance}
.asm-head h1 span{display:block;color:var(--blue)}
.asm-head .lead{margin:20px auto 0;max-width:34em}
.asm-head .ctas{justify-content:center;margin-top:28px}
.asm-win{position:relative;z-index:2;width:min(1080px,calc(100% - 2 * var(--pad)));height:clamp(430px,62vh,540px);margin-top:48px;display:flex;flex-direction:column;--f:1}
.aw-bg{position:absolute;inset:0;background:#fff;border-radius:24px;box-shadow:0 30px 70px rgba(16,40,52,.16),inset 0 0 0 1px var(--line);opacity:var(--f)}
.aw-top{position:relative;display:flex;align-items:center;gap:10px;min-height:60px;padding:12px 18px}
.aw-title{display:flex;align-items:center;gap:9px;font:700 16px/1.2 var(--serif);margin-right:auto;opacity:var(--f);white-space:nowrap}
.aw-title .ico{width:18px;height:18px;color:var(--blue)}
.aw-pub{position:relative;display:inline-grid;padding:10px 16px;border-radius:999px;background:var(--ink);color:#fff;font:700 14px/1 var(--sans);opacity:var(--f);transition:background .35s;white-space:nowrap}
.aw-pub > span{grid-area:1/1;display:flex;align-items:center;gap:7px;justify-content:center;transition:opacity .3s,transform .3s var(--ease)}
.aw-pub .t2{opacity:0;transform:translateY(6px)}
.aw-pub .t2 i{width:8px;height:8px;border-radius:50%;background:#7EE0B4}
.asm.published .aw-pub{background:var(--good)}
.asm.published .aw-pub .t1{opacity:0;transform:translateY(-6px)}
.asm.published .aw-pub .t2{opacity:1;transform:none}
.aw-cols{position:relative;flex:1;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:0 18px 18px}
.aw-col{display:grid;grid-template-rows:auto repeat(3,minmax(64px,1fr));gap:10px;min-height:0}
.aw-col h4{display:flex;align-items:center;gap:7px;font:700 13px/1 var(--sans);color:var(--text2);letter-spacing:0;opacity:var(--f)}
.aw-col h4 .ico{width:15px;height:15px;color:var(--blue)}
.slot{position:relative;min-height:0;border-radius:14px;outline:1.5px dashed rgba(124,144,151,calc(var(--f) * .55));outline-offset:-1.5px}
.slot.s2{grid-row:span 2}
.slot.cslot{display:inline-block;border-radius:999px}
.frag{position:relative;z-index:4;width:100%;height:100%;transform-origin:center}
.slot.cslot .frag{display:inline-block;width:auto;height:auto}
.frag .fb{width:100%;height:100%;display:flex;flex-direction:column;padding:9px 11px 8px;overflow:hidden;background:#fff;border-radius:14px;box-shadow:inset 0 0 0 1.5px var(--line2),0 10px 22px rgba(16,40,52,.07)}
.slot.cslot .fb{flex-direction:row;align-items:center;gap:7px;padding:8px 13px;border-radius:999px;background:var(--mist);box-shadow:none;font:700 13.5px/1 var(--sans);white-space:nowrap}
.slot.cslot .fb .ico{width:15px;height:15px;color:var(--blue)}
.frag .fl{display:flex;align-items:center;gap:6px;font:700 12px/1.1 var(--sans);white-space:nowrap}
.frag .fl .ico{width:14px;height:14px;color:var(--blue)}
.frag .fp{flex:1;min-height:0;width:100%;margin-top:6px;border-radius:8px}
.asm .pointer{position:absolute;left:0;top:0;z-index:6;width:32px;height:32px;opacity:0;pointer-events:none;transition:transform .9s cubic-bezier(.65,0,.35,1),opacity .3s}
.asm .pointer.click{animation:pclick .3s var(--ease)}
@keyframes pclick{50%{scale:.8}}
.asm-hint{display:none}
/* the scroll scene */
.mo .asm.live{height:270vh}
.mo .asm.live .asm-pin{position:sticky;top:var(--navh);height:calc(100vh - var(--navh));height:calc(100svh - var(--navh));padding:clamp(24px,4.5vh,52px) 0 clamp(22px,4vh,40px)}
.mo .asm.live .asm-win{height:auto;flex:1;min-height:0;margin-top:clamp(18px,3.5vh,36px)}
.mo .asm.live .frag:not(.landed) .fb{animation:bob 5s ease-in-out infinite;animation-delay:var(--d,0s)}
@keyframes bob{50%{translate:0 -7px}}
.mo .asm.live .asm-hint{position:absolute;left:50%;bottom:14px;z-index:5;translate:-50% 0;display:flex;align-items:center;gap:8px;font:700 13px/1 var(--sans);color:var(--text2);transition:opacity .3s}
.asm-hint i{width:14px;height:22px;border-radius:8px;box-shadow:inset 0 0 0 2px var(--soft);position:relative}
.asm-hint i::after{content:"";position:absolute;left:5px;top:4px;width:4px;height:5px;border-radius:2px;background:var(--soft);animation:wheel 1.6s ease-in-out infinite}
@keyframes wheel{60%{transform:translateY(6px);opacity:0}61%{transform:none;opacity:0}100%{opacity:1}}

/* ---------- one platform ---------- */
.xplat{background:#fff}
.flow{list-style:none;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(20px,3vw,40px);margin-top:clamp(44px,5vw,64px)}
.tico{position:relative;width:64px;height:64px;display:grid;place-items:center;background:var(--mist);border-radius:0 22px 0 0}
.tico .ico{width:28px;height:28px;color:var(--blue)}
.tico::after{content:"";position:absolute;right:-6px;top:-6px;width:14px;height:14px;border-radius:50%;background:var(--sun)}
.fstep h3{font-size:24px;margin-top:22px}
.fstep p{margin-top:8px;color:var(--text2);font-size:16px;max-width:26ch}
.mo .flow .fstep{opacity:0;transform:translateY(18px);transition:opacity .6s var(--ease),transform .7s var(--ease);transition-delay:calc(var(--i) * 90ms)}
.mo .flow.is-in .fstep{opacity:1;transform:none}

/* ---------- formats ---------- */
.fg{display:grid;grid-template-columns:1.3fr 1fr .6fr;gap:clamp(24px,3vw,44px);margin-top:clamp(44px,5vw,64px)}
.fgi h3{font:700 13px/1.3 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--soft)}
.fch{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.fch li{display:inline-flex;align-items:center;gap:8px;padding:10px 15px;background:#fff;border-radius:999px;box-shadow:inset 0 0 0 1.5px var(--line);font:700 15px/1 var(--sans);white-space:nowrap}
.fch .ico{width:17px;height:17px;color:var(--blue)}

/* ---------- practical skills ---------- */
.xskills{background:#fff}
.sk3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2vw,24px);margin-top:clamp(44px,5vw,64px)}
.skv{position:relative;height:220px;border-radius:22px;overflow:hidden;padding:18px;display:flex;flex-direction:column}
.skv.code{background:var(--ink)}
.skv.code pre{margin:0;font:13px/1.7 var(--mono);color:#E8F2F3;white-space:pre;overflow:hidden}
.tk-k{color:var(--aqua)}.tk-f{color:var(--sun)}.tk-s{color:#A9E5BE}.tk-n{color:#F4A987}.tk-c{color:#6F8E97;font-style:italic}.tk-p{color:#9FB8BF}
.skv.nb,.skv.spk{background:var(--wash2)}
.skv .bars{flex:1;display:grid;grid-template-columns:repeat(3,1fr);gap:18%;align-items:end;padding:6px 12% 0;box-shadow:0 2px 0 var(--line2)}
.skv .bars i{display:block;border-radius:4px 4px 0 0}
.skv .dims{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px}
.skv .dims span{font:700 12.5px/1.2 var(--sans)}
.skv .dims b{position:relative;display:block;height:7px;margin-top:6px;border-radius:4px;background:#fff;overflow:hidden}
.skv .dims b::before{content:"";position:absolute;left:0;top:0;bottom:0;width:var(--w);border-radius:4px;background:var(--teal)}
.skv .dims span:nth-child(3n+2) b::before{background:var(--blue)}
.skv .res{margin-top:auto;align-self:flex-start;display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:999px;background:#D3F1E5;color:#0E6446;font:700 13px/1 var(--sans)}
.skv .res .ico{width:15px;height:15px}
.skv.code .res{background:#25404A;color:#7EE0B4}
.skv.spk .res{background:#fff;color:var(--ink)}
.sk h3{font-size:24px;margin-top:20px}
.sk p{margin-top:8px;color:var(--text2);font-size:16px}
.mo .skv .bars i{transform:scaleY(.08);transform-origin:50% 100%;transition:transform .9s var(--ease) .2s}
.mo .sk.is-in .skv .bars i{transform:none}
.mo .skv .dims b::before{transform:scaleX(0);transform-origin:0 50%;transition:transform .9s var(--ease) .25s}
.mo .sk.is-in .skv .dims b::before{transform:none}

/* ---------- proctoring: the wall ---------- */
.wall{position:relative;background:var(--ink);color:#fff}
.wall:before{content:"";position:absolute;left:0;right:0;top:0;height:12px;z-index:5;background:linear-gradient(90deg,#C2EBEB 0 16.66%,#97DDE1 16.66% 33.33%,#26B3C0 33.33% 50%,#3B80A6 50% 66.66%,#196080 66.66% 83.33%,#F2C94C 83.33% 100%)}
.wall-pin{position:relative;overflow:hidden;padding:132px 0 120px}
.wall-grid{display:none}
.wall .eyebrow{color:var(--aqua)}
.wall .h2{color:#fff}
.wall .h2 .tint{color:var(--aqua)}
.wall .lead{color:#C9DDE1}
.wall-row{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:56px;align-items:center;margin-top:72px}
.wall .wc2 .h2{font-size:clamp(30px,3.4vw,50px)}
.wall-focus{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:20px;align-items:center}
.wf-cam{border-radius:14px;overflow:hidden;box-shadow:inset 0 0 0 4px var(--bad);position:relative}
.wf-cam svg{width:100%;height:auto;aspect-ratio:160/112;display:block}
.wf-cam:after{content:"";position:absolute;inset:0;border-radius:14px;box-shadow:inset 0 0 0 4px var(--bad);pointer-events:none}
.wf-card{background:#fff;color:var(--ink);border-radius:22px;padding:22px 24px}
.wf-card .sv{display:inline-block;padding:5px 9px;border-radius:6px;background:var(--bad);color:#fff;font:700 12px/1 var(--sans);letter-spacing:.08em;text-transform:uppercase}
.wf-card h3{font-size:28px;margin-top:14px}
.wf-card p{margin-top:6px;color:var(--text2);font-size:15px}
.wf-act{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.wf-act .btn{pointer-events:none;padding:10px 15px}
.wf-act .btn .ico{width:15px;height:15px}
/* the scroll scene: hundreds of webcams, one alert, a zoom into the evidence */
.mo .wall.live{height:300vh}
.mo .wall.live .wall-pin{position:sticky;top:var(--navh);height:calc(100vh - var(--navh));height:calc(100svh - var(--navh));padding:0}
.mo .wall.live .wall-grid{display:grid;position:absolute;left:0;top:0;gap:8px;transform-origin:0 0;transition:opacity .45s}
.wall-grid .t{position:relative;border-radius:6px;overflow:hidden;opacity:.34;transition:opacity .4s,box-shadow .3s}
.wall-grid .t svg{width:100%;height:auto;aspect-ratio:160/112;display:block}
.wall-grid .t::after{content:"";position:absolute;right:6px;bottom:6px;width:7px;height:7px;border-radius:50%;background:#7EE0B4}
.wall-grid .t.hit{opacity:1;box-shadow:inset 0 0 0 3px var(--bad)}
.wall-grid .t.hit::after{background:var(--bad)}
.mo .wall.live .wall-in{position:absolute;left:0;right:0;top:0;bottom:0;z-index:3;pointer-events:none}
.mo .wall.live .wc1{position:absolute;left:var(--pad);top:clamp(36px,8vh,84px);max-width:760px;padding:24px 36px 30px 0;background:var(--ink);box-shadow:-60vw 0 0 var(--ink);transition:opacity .5s,transform .5s var(--ease)}
.mo .wall.live.z .wc1{opacity:0;transform:translateY(-12px)}
.mo .wall.live .wall-row{position:absolute;left:var(--pad);right:var(--pad);top:50%;margin:0;transform:translateY(-50%)}
.mo .wall.live .wc2{opacity:0;transform:translateY(12px);transition:opacity .5s,transform .5s var(--ease)}
.mo .wall.live.final .wc2{opacity:1;transform:none}
.mo .wall.live.focus-on .wall-grid{opacity:0}
.mo .wall.live .wall-focus{opacity:0;transition:opacity .45s}
.mo .wall.live.focus-on .wall-focus{opacity:1}
.mo .wall.live .wf-card{opacity:0;transform:translateX(16px);transition:opacity .45s .15s,transform .45s .15s var(--ease)}
.mo .wall.live.focus-on .wf-card{opacity:1;transform:none}

/* ---------- the second camera ---------- */
.cam2{position:relative;background:#fff}
.cam2 .pin{padding:120px 0}
.cam2 .wrap{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);gap:clamp(20px,4vw,56px);align-items:center}
.c3{list-style:none;padding:0;margin-top:30px;display:grid;gap:10px;counter-reset:c}
.c3 li{counter-increment:c;display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:12px;align-items:start;padding:12px 16px;border-radius:16px;background:var(--wash);transition:background .35s,color .35s}
.c3 li::before{content:counter(c);grid-row:span 2;display:grid;place-items:center;width:30px;height:30px;border-radius:0 12px 0 0;background:var(--mist);color:var(--blue);font:700 14px/1 var(--sans);transition:inherit}
.c3 li b{font:700 17px/1.3 var(--serif)}
.c3 li span{font-size:15px;color:var(--text2);transition:color .35s}
.room{position:relative;width:100%;aspect-ratio:1340/720}
.room svg{width:100%;height:100%;overflow:visible}
.mo .cam2.live{height:260vh}
.mo .cam2.live .pin{position:sticky;top:var(--navh);height:calc(100vh - var(--navh));height:calc(100svh - var(--navh));display:flex;align-items:center;overflow:hidden;padding:0}
.mo .cam2.live .pin > .wrap{width:100%}
.mo .cam2.live .c3 li.on{background:var(--ink);color:#fff}
.mo .cam2.live .c3 li.on::before{background:#fff}
.mo .cam2.live .c3 li.on span{color:#C9DDE1}

/* ---------- results ---------- */
.xres{background:var(--mist)}
.xrc{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(0,1.6fr);gap:14px;align-items:stretch;margin-top:clamp(44px,5vw,64px);padding:clamp(16px,2vw,24px);background:#fff;border-radius:24px;box-shadow:0 30px 70px rgba(16,40,52,.12)}
.rk{padding:16px;background:var(--wash);border-radius:14px}
.rk span{font:700 13px/1.2 var(--sans);color:var(--text2)}
.rk b{display:block;margin-top:8px;font:700 clamp(26px,2.6vw,34px)/1 var(--serif)}
.rk.flag b{color:var(--bad)}
.rh{position:relative;display:flex;align-items:flex-end;gap:5px;min-height:110px;padding:30px 14px 0;background:var(--wash);border-radius:14px}
.rh i{flex:1;background:var(--aqua);border-radius:3px 3px 0 0}
.rh i.p{background:var(--blue)}
.rh .pm{position:absolute;left:calc(14px + (100% - 28px) * .6 - 1px);top:10px;bottom:0;box-shadow:inset 2px 0 0 var(--ink);padding-left:6px;font:700 11px/1 var(--sans);white-space:nowrap}
.mo .rh i{transform:scaleY(.06);transform-origin:50% 100%;transition:transform .8s var(--ease)}
.mo .xrc.is-in .rh i{transform:none}
.mo .xrc.is-in .rh i:nth-child(2){transition-delay:.04s}.mo .xrc.is-in .rh i:nth-child(3){transition-delay:.08s}.mo .xrc.is-in .rh i:nth-child(4){transition-delay:.12s}.mo .xrc.is-in .rh i:nth-child(5){transition-delay:.16s}.mo .xrc.is-in .rh i:nth-child(6){transition-delay:.2s}.mo .xrc.is-in .rh i:nth-child(7){transition-delay:.24s}.mo .xrc.is-in .rh i:nth-child(8){transition-delay:.28s}.mo .xrc.is-in .rh i:nth-child(9){transition-delay:.32s}.mo .xrc.is-in .rh i:nth-child(10){transition-delay:.36s}

/* ---------- responsive ---------- */
@media (max-width:1100px){
  .fg{grid-template-columns:1fr 1fr}
  .fg .fgi:first-child{grid-column:1/-1}
  .xrc{grid-template-columns:repeat(4,minmax(0,1fr))}
  .rh{grid-column:1/-1}
}
@media (max-width:900px){
  .flow{grid-template-columns:1fr 1fr;row-gap:40px}
  .sk3{grid-template-columns:minmax(0,1fr);max-width:560px}
  .cam2 .wrap{grid-template-columns:minmax(0,1fr);gap:20px}
  .wall-row{grid-template-columns:minmax(0,1fr);gap:32px;margin-top:48px}
  .wall-focus{grid-template-columns:minmax(0,1fr);gap:12px;max-width:520px}
  .wf-card{padding:16px 18px}
  .wf-card h3{font-size:22px;margin-top:10px}
  .mo .wall.live .wall-row{top:auto;bottom:clamp(16px,4vh,40px);transform:none;gap:14px}
  .mo .wall.live .wall-focus{margin:0 auto;width:100%}
  .mo .wall.live .wc2 .lead{display:none}
  .mo .wall.live .wc2 .h2{font-size:clamp(26px,6.4vw,38px);margin-top:12px}
  .mo .cam2.live .c3{margin-top:18px}
  .mo .cam2.live .c3 li:not(.on) span{display:none}
  .mo .cam2.live .h2{font-size:clamp(30px,7vw,44px)}
}
@media (max-width:700px){
  .aw-cols{grid-template-columns:1fr 1fr;gap:10px;padding:0 10px 10px}
  .aw-col{grid-template-rows:auto repeat(2,minmax(64px,1fr));gap:7px}
  .slot.m-hide{display:none}
  .aw-top{flex-wrap:wrap;gap:8px;padding:12px;min-height:0}
  .aw-title{width:100%;font-size:14px}
  .slot.cslot .fb{padding:6px 10px;font-size:12.5px}
  .aw-pub{margin-left:auto;padding:8px 12px;font-size:13px}
  .frag .fb{padding:7px 8px 5px}
  .frag .fl{font-size:11px}
  .asm-win{height:auto;min-height:420px}
  .mo .asm.live .asm-head .lead{display:none}
}
@media (max-width:640px){
  .sec,.wall-pin,.cam2 .pin{padding:88px 0}
  .flow{grid-template-columns:minmax(0,1fr)}
  .fg{grid-template-columns:minmax(0,1fr)}
  .fch li{font-size:14px;padding:9px 12px}
  .xrc{grid-template-columns:1fr 1fr}
  .skv{height:200px}
  .asm-pin{padding:40px 0 64px}
  .asm-head .ctas .btn{flex:1 1 auto}
}
@media (max-height:760px) and (min-width:701px){
  .mo .asm.live .asm-head .lead{display:none}
  .mo .asm.live .asm-head h1{font-size:clamp(36px,4.6vw,62px)}
}
.flow > *,.fg > *,.sk3 > *,.xrc > *,.cam2 .wrap > *,.wall-row > *{min-width:0}
@media (max-width:420px){.skv{padding:14px}.skv.code pre{font-size:11px}}
