/* Skills motion on CASS (owner, 28 Sep 2026), built by src/content/skills-motion.mjs and played by
   public/scripts/skills-motion.js. Every element sits in the story's last frame by default (the finished profile), so the
   page reads fully without the script or with reduced motion; the script animates from the first frame to it. */
@property --pct{syntax:'<integer>';inherits:false;initial-value:0}
.programme-skills[data-skills-story-section]{--sm-ink:#203432;--sm-muted:#526d64;--sm-forest:#244140;--sm-teal:#258f79;--sm-lime:#c1f99b;--sm-line:#dfe8e2;--sm-track:#dce8e0;--sm-pad:36px;--sm-name:380px;--sm-score:150px}

/* One light heading: the label and heading beside the CASS statement and the count of mapped skills. */
.sm-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px 70px;align-items:end;margin:0 0 36px}
.sm-intro .ps-eyebrow{margin:0 0 12px;font-size:14px;line-height:1.5;font-weight:500;color:var(--sm-muted)}
.sm-intro h2{margin:0;max-width:13em;font-size:var(--ds-font-section,clamp(32px,3.1vw,44px));line-height:var(--ds-leading-heading,1.15);letter-spacing:var(--ds-tracking-heading,-.04em);font-weight:600;color:var(--sm-ink)}
.sm-intro>div:last-child>p:first-child{margin:0;max-width:34em;font-size:16px;line-height:1.65;color:var(--sm-muted)}
.sm-intro .ps-grid-stat{display:flex;align-items:baseline;gap:10px;margin:14px 0 0;font-size:15px;line-height:1.4;color:var(--sm-muted)}

/* The story's chapters: each fills its line while it plays. */
.sm-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;list-style:none;margin:0 0 20px;padding:0}
.sm-rail>li{position:relative;margin:0;padding-top:15px}
.sm-step-line{position:absolute;left:0;right:0;top:0;height:3px;border-radius:2px;background:#cddcd1;overflow:hidden}
.sm-step-line b{display:block;height:100%;background:var(--sm-forest);transform-origin:left}
.sm-rail strong{display:block;font-size:15px;line-height:1.4;font-weight:600;color:var(--sm-ink)}
.sm-rail strong span{margin-right:8px;font-size:13px;font-weight:500;color:var(--sm-muted);font-variant-numeric:tabular-nums}
.sm-step-note{display:block;margin-top:2px;font-size:13px;line-height:1.5;color:var(--sm-muted)}

.sm{position:relative;margin:0}
.sm-stage{position:relative}
.sm-card{position:relative;overflow:hidden;background:#fff;border-radius:20px;padding:24px var(--sm-pad) 6px;color:var(--sm-ink)}
.sm-card p{margin:0;max-width:none}
.sm-head{display:grid;grid-template-columns:var(--sm-name) minmax(0,1fr) var(--sm-score);gap:0 24px;align-items:end;padding-bottom:14px;border-bottom:1px solid var(--sm-line)}
.sm-label{font-size:13px;line-height:1.4;color:var(--sm-muted);margin-bottom:4px!important}
.sm-title{font-size:20px;line-height:1.2;font-weight:600;letter-spacing:-.02em}
.sm-scale{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;font-size:12px;line-height:1.35;color:var(--sm-muted)}
.sm-scale b{display:block;font-size:13px;font-weight:600;color:var(--sm-ink)}
.sm-level{justify-self:end;text-align:right}
.sm-level>span:first-child{display:block;margin-bottom:5px;font-size:13px;color:var(--sm-muted)}
.sm-chip{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 12px 0 6px;border-radius:9px;background:var(--sm-forest);color:#fff;font-size:14px;font-weight:600}
.sm-chip-icon{position:relative;width:22px;height:28px}
.sm-chip-icon img{position:absolute;inset:0;width:22px;height:28px;object-fit:contain}
.sm-chip-name{position:relative;display:inline-block;min-width:88px;height:20px;line-height:20px;text-align:left}
.sm-chip-name em{position:absolute;left:0;top:0;font-style:normal;white-space:nowrap}
.sm-was{opacity:0}

.sm-rows{list-style:none;margin:0;padding:0}
.sm-row{position:relative;display:grid;grid-template-columns:var(--sm-name) minmax(0,1fr) var(--sm-score);gap:0 24px;align-items:center;min-height:82px;margin:0;padding:10px 0;border-bottom:1px solid var(--sm-line)}
.sm-row:last-child{border-bottom:0}
.sm-tint{position:absolute;inset:0 calc(var(--sm-pad) * -1);background:#f2f8ec;opacity:0}
.sm-lowest .sm-tint{opacity:1}
.sm-area{position:relative;min-width:0}
.sm-name{display:flex;gap:10px;align-items:baseline;font-size:17px;line-height:1.3;font-weight:600;letter-spacing:-.015em}
.sm-name span{font-size:13px;font-weight:500;letter-spacing:0;color:var(--sm-muted);font-variant-numeric:tabular-nums}
.sm-outcome{margin-top:3px!important;padding-left:27px;font-size:14px;line-height:1.45;color:var(--sm-muted)}
.sm-bars{position:relative;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.sm-bars i{position:relative;display:block;height:24px;background:var(--sm-track);transform:skew(-24deg);overflow:hidden}
.sm-bars u,.sm-bars b{position:absolute;inset:0;transform-origin:left;transform:scaleX(var(--f,0))}
.sm-bars b{background:var(--sm-teal)}
.sm-bars u{background:var(--sm-lime);transform:scaleX(0)}
.sm-lowest .sm-bars b{background:var(--sm-forest)}
.sm-score{position:relative;display:grid;justify-items:end;gap:1px}
.sm-pct{font-size:21px;line-height:1.2;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums;counter-reset:pct var(--pct)}
.sm-pct::after{content:counter(pct) "%"}
.sm-lv{position:relative;display:block;width:100%;height:18px;font-size:13px;line-height:18px;color:var(--sm-muted)}
.sm-lv em{position:absolute;right:0;top:0;font-style:normal;white-space:nowrap}
.sm-flag{position:absolute;right:62px;top:3px;display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:6px;background:var(--sm-lime);color:var(--sm-forest);font-size:12px;font-style:normal;font-weight:600;white-space:nowrap}
.sm-flag.sm-was{opacity:0}

/* Chapters play over the bars, so the skill being practised stays in view. */
.sm-scrim{position:absolute;top:0;bottom:0;right:0;left:calc(var(--sm-pad) + var(--sm-name));background:rgba(255,255,255,.82);opacity:0}
.sm-scene{position:absolute;top:20px;bottom:20px;right:28px;left:calc(var(--sm-pad) + var(--sm-name) + 8px);display:flex;flex-direction:column;padding:24px 28px;border-radius:16px;background:var(--sm-forest);color:#eef5ef;box-shadow:0 24px 60px -24px rgba(20,40,38,.45);opacity:0}
.sm-kind{display:flex;align-items:center;gap:10px;margin-bottom:6px!important;font-size:13px;color:#b9d0c4}
.sm-kind svg{width:15px;height:12px;fill:var(--sm-lime)}
.sm-scene-title{margin-bottom:18px!important;font-size:24px;line-height:1.2;font-weight:600;letter-spacing:-.025em;color:#fff}
.sm-checks{display:grid;gap:12px;list-style:none;margin:0;padding:0}
.sm-checks li{display:flex;align-items:center;gap:12px;margin:0;font-size:16px;line-height:1.4;color:#e4efe7}
.sm-checks i{position:relative;flex:none;width:22px;height:22px;border-radius:50%;border:1.5px solid #6f8f84}
.sm-checks i b{position:absolute;inset:-1.5px;border-radius:50%;background:var(--sm-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='m6.5 11.2 3 3 6-6.4' fill='none' stroke='%23244140' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat}
.sm-progress{display:grid;gap:8px;margin-top:auto;font-size:13px;color:#b9d0c4}
.sm-track{display:block;height:6px;border-radius:3px;background:#3b5a55;overflow:hidden}
.sm-track b{display:block;height:100%;background:var(--sm-lime);transform-origin:left}
/* The draft reads as writing: a page of word-sized blocks, ragged lines, key facts in lime, a caret and a word count;
   beside it the quality checks, which are the skill's ways of working. */
@property --words{syntax:'<integer>';inherits:false;initial-value:0}
.sm-work{display:grid;grid-template-columns:minmax(0,1fr) 188px;gap:20px}
.sm-page{position:relative;padding:14px 18px 12px;border-radius:10px;background:#f4f8f3}
.sm-page-head{display:flex;justify-content:space-between;gap:12px;margin:0 0 10px!important;font-size:11px;line-height:1.4;color:#6a837a}
.sm-count{white-space:nowrap;counter-reset:words var(--words)}
.sm-count::after{content:counter(words) " words"}
.sm-sec{margin:0 0 8px}
.sm-sec:last-of-type{margin-bottom:0}
.sm-sec small{display:block;margin:0 0 3px;font-size:11.5px;line-height:1.3;font-weight:600;color:var(--sm-ink)}
.sm-line{display:flex;gap:5px;align-items:center;height:17px}
.sm-line i{flex:none;width:calc(var(--u) * 1%);height:7px;border-radius:2px;background:#bccdc5;transform-origin:left}
.sm-line i.sm-key{background:#9ee57a}
.sm-caret{position:absolute;left:0;top:0;width:2px;height:13px;border-radius:1px;background:var(--sm-forest);opacity:0}
.sm-quality{display:grid;align-content:start;gap:10px;padding-top:4px}
.sm-quality p{margin:0 0 2px!important;font-size:12px;color:#b9d0c4}
.sm-quality span{display:flex;align-items:center;gap:10px;font-size:13.5px;line-height:1.35;color:#e4efe7}
.sm-quality i{position:relative;flex:none;width:20px;height:20px;border-radius:50%;border:1.5px solid #6f8f84}
.sm-quality i b{position:absolute;inset:-1.5px;border-radius:50%;background:var(--sm-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='m6.5 11.2 3 3 6-6.4' fill='none' stroke='%23244140' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat}
.sm-act{position:relative;min-height:82px;margin-top:16px}
.sm-submit{position:absolute;left:0;top:0;display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 18px;border-radius:10px;background:var(--sm-lime);color:var(--sm-forest);font-size:15px;font-weight:600;opacity:0}
.sm-submit svg{width:16px;height:16px}
.sm-ripple{position:absolute;left:50%;top:50%;width:60px;height:60px;margin:-30px 0 0 -30px;border-radius:50%;background:rgba(255,255,255,.55);opacity:0}
.sm-result{position:absolute;left:0;top:0;display:grid;justify-items:start;gap:10px;transform-origin:left top}
.sm-pass{display:inline-flex;align-items:center;gap:10px;height:48px;padding:0 18px 0 12px;border-radius:12px;background:var(--sm-lime);color:var(--sm-forest);font-size:20px;font-weight:600;letter-spacing:-.01em}
.sm-pass svg{width:26px;height:26px}
.sm-evidence{font-size:13px;color:#cfe0d6}

/* The award: arrives locked, the lock opens, colour and a sheen follow, then it settles into the portfolio level. */
.sm-veil{position:absolute;inset:0;background:rgba(21,43,41,.97);opacity:0}
.sm-glow{position:absolute;left:50%;top:50%;width:420px;height:420px;margin:-240px 0 0 -210px;border-radius:50%;background:radial-gradient(circle,rgba(193,249,155,.42),rgba(193,249,155,0) 62%);opacity:0}
.sm-award{position:absolute;left:50%;top:50%;width:190px;height:241px;margin:-150px 0 0 -95px;opacity:0}
.sm-award img{position:absolute;inset:0;width:100%;height:100%}
.sm-sheen{position:absolute;inset:0;overflow:hidden;-webkit-mask:var(--badge) center/contain no-repeat;mask:var(--badge) center/contain no-repeat}
.sm-sheen i{position:absolute;top:-20%;bottom:-20%;left:-60%;width:40%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.85),transparent);transform:skew(-18deg)}
.sm-lock{position:absolute;left:50%;top:50%;width:54px;height:66px;margin:-58px 0 0 -27px;opacity:0}
.sm-lock svg{display:block;width:100%;height:100%;overflow:visible}
.sm-shackle{transform-origin:40px 26px}
.sm-unlocked{position:absolute;left:0;right:0;top:calc(50% + 104px);display:grid;justify-items:center;gap:6px;text-align:center;color:#fff;opacity:0}
.sm-unlocked small{font-size:14px;color:var(--sm-lime)}
.sm-unlocked strong{font-size:30px;line-height:1.2;font-weight:600;letter-spacing:-.03em}
.sm-unlocked span{font-size:15px;color:#c9dcd2}

/* Narration under the card, and the control beside it */
.sm-caption{position:relative;height:24px;margin:16px 0 0!important;padding-right:52px;font-size:16px;line-height:24px;color:var(--sm-ink);max-width:none!important}
.sm-caption span{position:absolute;left:0;top:0;white-space:nowrap;opacity:0}
.sm-caption span.sm-now{opacity:1}
.sm-caption b{font-weight:600}
.sm-control{position:absolute;right:0;bottom:-6px;display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:4px 0;border:0;background:none;color:var(--sm-ink);font:inherit;font-size:14px;font-weight:500;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.sm-control:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:4px}

/* The one disclosure: where each area is learned and practised, flat rows above the 22 mapped skills. */
.programme-skills .sm-map{display:grid;list-style:none;margin:4px 0 26px;padding:0}
.programme-skills .sm-map>li{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:14px 40px;margin:0;padding:20px 0;border-top:1px solid #d3e0d6}
.programme-skills .sm-map>li:first-child{border-top:0;padding-top:6px}
.sm-map-name{display:flex;gap:10px;align-items:baseline;margin:0 0 4px!important;font-size:17px;line-height:1.35;font-weight:600;color:var(--sm-ink)}
.sm-map-name span{font-size:13px;font-weight:500;color:var(--sm-muted);font-variant-numeric:tabular-nums}
.sm-map-outcome{margin:0 0 6px!important;font-size:15px;line-height:1.5;font-weight:500;color:var(--sm-ink)}
.sm-map-text{margin:0 0 12px!important;max-width:60ch;font-size:14px;line-height:1.6;color:var(--sm-muted)}
.programme-skills .sm-map .ps-card-evidence{align-content:start;padding-top:2px;border-top:0}
.programme-skills .ps-coverage-title{margin:0 0 15px;font-size:14px;line-height:1.4;font-weight:600;color:var(--sm-ink)}
.programme-skills[data-skills-story-section] .ps-coverage-columns{grid-template-columns:3fr 1fr}
/* The subject skills fill three columns top to bottom on a grid, so every row lines up (multi-column layout carried a
   margin across the column break and dropped the middle column at some widths). */
.programme-skills[data-skills-story-section] .ps-coverage-columns ul{gap:12px}
.programme-skills[data-skills-story-section] .ps-coverage-columns>div:first-child ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(var(--rows-3,7),auto);grid-auto-flow:column;gap:12px 32px}
.programme-skills[data-skills-story-section] .ps-coverage-columns>div:first-child li{margin:0}

/* Achievements: each award's threshold sits under its badge, with the rule and its caveat in one line below. */
.cass-portfolio-award .cass-portfolio-rule{display:block;margin-top:2px;font-size:13px;line-height:1.4;color:#526d64}
.cass-learning-achievements .cass-portfolio-rules{max-width:760px;margin:28px 0 0;font-size:14px;line-height:1.6;color:#526d64}

@media(max-width:1100px){.programme-skills[data-skills-story-section]{--sm-name:300px;--sm-score:120px}.sm-scale{gap:6px;font-size:11px}.sm-scale b{font-size:12px}.sm-flag{right:56px}}
@media(max-width:760px){
 .programme-skills[data-skills-story-section]{--sm-pad:18px}
 .sm-card{padding:18px var(--sm-pad) 4px;border-radius:16px}
 .sm-head{grid-template-columns:minmax(0,1fr) auto;gap:14px 12px}
 .sm-head .sm-scale{grid-column:1/-1;grid-row:2}
 .sm-row{grid-template-columns:minmax(0,1fr) auto;gap:10px 14px;padding:14px 0}
 .sm-area{grid-column:1/-1}
 .sm-name{font-size:15px}
 .sm-outcome{display:none}
 .programme-skills[data-skills-story-section] .ps-coverage-columns{grid-template-columns:minmax(0,1fr)}
 .programme-skills[data-skills-story-section] .ps-coverage-columns>div:first-child ul{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(var(--rows-2,10),auto);column-gap:20px}
 .sm-intro{grid-template-columns:minmax(0,1fr);gap:14px;margin-bottom:26px}
 .sm-rail{gap:12px}
 .sm-rail strong{font-size:13px}
 .sm-rail strong span{display:block;margin:0 0 2px}
 .sm-step-note{display:none}
 .programme-skills .sm-map>li{grid-template-columns:minmax(0,1fr)}
 .sm-bars{gap:6px}.sm-bars i{height:18px}
 .sm-pct{font-size:17px}
 .sm-flag{display:none}
 .sm-scrim{left:0}
 .sm-scene{left:10px;right:10px;top:10px;bottom:10px;height:fit-content;margin:auto 0;padding:20px}
 .sm-progress{margin-top:24px}
 .sm-act{min-height:124px;margin-top:14px}
 .sm-work{grid-template-columns:minmax(0,1fr);gap:14px}
 .sm-quality{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:0}
 .sm-quality p{display:none}
 .sm-quality span{flex-direction:column;align-items:flex-start;gap:6px;font-size:12px}
 .sm-scene-title{font-size:20px}
 .sm-checks li{font-size:14px}
 .sm-award{width:150px;height:190px;margin:-130px 0 0 -75px}
 .sm-glow{width:320px;height:320px;margin:-195px 0 0 -160px}
 .sm-lock{margin-top:-48px}
 .sm-unlocked{top:calc(50% + 72px)}
 .sm-unlocked strong{font-size:26px}
 .sm-caption{height:auto;min-height:44px;padding-right:48px;font-size:14px;line-height:22px}
 .sm-caption span{white-space:normal;right:48px}
 .sm-control{position:static;margin-top:8px}
}
@media(forced-colors:active){.sm-bars b{background:CanvasText}.sm-bars i{border:1px solid CanvasText}}
