/* Kumi case study (Oct 17). Builds on cmused.css (the cm-* page frame) and glimpse.css (brief,
   problems, sources). Kumi's screens are desktop windows, so pictures here are wide plates
   instead of phones. */

.km .km-plate{margin:26px 0 0;padding:clamp(18px,3vw,40px);background:#fafafb;border:1px solid rgba(29,29,31,.07);border-radius:14px}
.km .cm-sub+.km-plate{margin-top:18px}
.km-shot{margin:0}
.km-shot img,.km-shot video{display:block;width:100%;height:auto;border-radius:10px;box-shadow:0 0 0 1px rgba(29,29,31,.06),0 14px 30px rgba(17,20,24,.10)}
.km-shot figcaption{margin-top:10px;text-align:center;font:500 var(--km-type-small)/1.4 var(--cm-mono);letter-spacing:.08em;color:var(--cm-mute)}

/* Hero: the intro video, 16:9, on Kumi's own cream so the frame reads as the product's. */
.km-hero{margin-top:clamp(28px,4vw,48px);padding:0;background:#FFF8EE;border:1px solid rgba(29,29,31,.07);border-radius:14px;overflow:hidden}
.km-hero video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#FFF8EE}
.km-note{max-width:720px;margin:10px 0 0;font:450 var(--km-type-small)/1.5 var(--cm-text);color:var(--cm-mute)}

/* Two pictures side by side (morning / night; matcha / window). */
.km-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(14px,2.4vw,32px);align-items:start}

/* Wherever you look: wallpaper and dark on the left, the phone light and dark on the right. */
.km-anywhere{display:grid;gap:clamp(18px,2.6vw,34px)}
.km-row{display:flex;gap:clamp(14px,2.4vw,32px);align-items:flex-start}
.km-row .km-shot{flex:var(--ar) 1 0;min-width:0}
.km-row .km-shot img{aspect-ratio:var(--ar);object-fit:cover}
.km-anywhere .km-phone img{border-radius:14px}

/* Colour that means something: six kinds, then three levels of urgency. */
.km-kinds{list-style:none;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:0;padding:0}
.km-kinds li{padding:10px 10px 12px;border-radius:10px;background:var(--k);color:#1E1A16;box-shadow:inset 0 0 0 1.5px rgba(30,26,22,.85)}
.km-kinds b{display:block;font:650 var(--km-type-small)/1.2 var(--cm-display);letter-spacing:-.01em}
.km-kinds span{display:block;margin-top:4px;font:450 var(--km-type-small)/1.35 var(--cm-text)}
.km-levels{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0 0;padding:0}
.km-levels li{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;font:450 var(--km-type-small)/1.35 var(--cm-text);color:#1E1A16}
.km-levels b{font-weight:650}
.km-levels .is-now{background:linear-gradient(180deg,#FF9A6E,#FF6B4A);box-shadow:inset 0 0 0 1.5px #1E1A16,2px 2px 0 #1E1A16}
.km-levels .is-soon{background:#FFE7D1;box-shadow:inset 3px 0 0 #FF6B4A}
.km-levels .is-later{background:#FFFDF8;box-shadow:inset 0 0 0 1px #EADFCF}
.km-levels .is-later:before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:#FF6B4A}

/* Widgets, Sources, Notes (Oct 17): small diagrams in Kumi's own paper and ink. */
.km-cap{max-width:640px;margin:16px 0 0;font:450 var(--km-type-small)/1.5 var(--cm-text);color:var(--cm-mute)}
.km-sizes{list-style:none;display:grid;grid-template-columns:272fr 504fr 504fr 736fr;gap:14px;align-items:end;margin:0;padding:0}
.km-sizes li{display:grid;gap:8px}
/* the real Inbox widget at each size (captured from the app, transparent around the card); columns in the
   captures' own widths, so every card is drawn at the same scale */
.km-sizes img{display:block;width:100%;height:auto}
.km-sizes small{font:500 var(--km-type-small)/1.4 var(--cm-mono);white-space:nowrap;letter-spacing:.06em;color:var(--cm-mute)}
.km-ways{list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0;padding:0}
.km-ways li{display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:12px;background:#FFFDF8;box-shadow:0 0 0 1px #EADFCF}
.km-ways b{margin-bottom:4px;font:650 var(--km-type-small)/1.25 var(--cm-display);color:#1E1A16}
.km-ways span{align-self:flex-start;padding:4px 8px;border-radius:999px;background:#E1E9FF;font:450 var(--km-type-small)/1.2 var(--cm-text);color:#1E1A16}
.km-ways li:nth-child(2) span{background:#FFE7D1}.km-ways li:nth-child(3) span{background:#FCE3F4}.km-ways li:nth-child(4) span{background:#DCF4E4}.km-ways li:nth-child(5) span{background:#ECE5FF}
.km-steps{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0;padding:0}
.km-steps li{position:relative;padding:12px;border-radius:12px;background:#FFFDF8;box-shadow:0 0 0 1px #EADFCF}
.km-steps li:nth-child(3){background:#FFF1C6;box-shadow:inset 0 0 0 1.5px #1E1A16,2px 2px 0 #1E1A16}
.km-steps li+li:before{content:"\2192";position:absolute;left:-9px;top:50%;transform:translate(-50%,-50%);font:450 var(--km-type-small)/1 var(--cm-text);color:#6e6e73}
.km-steps span{display:block;margin-bottom:8px;font:600 var(--km-type-small)/1 var(--cm-mono);letter-spacing:.08em;color:var(--cm-mute)}
.km-steps b{display:block;margin-bottom:4px;font:650 var(--km-type-small)/1.2 var(--cm-display);color:#1E1A16}
.km-steps p{margin:0;font:450 var(--km-type-small)/1.45 var(--cm-text);color:#3a3a3c}

/* Explorations: one plate per step, earlier on the left, chosen on the right. */
.km-evo{list-style:none;margin:22px 0 0;padding:0;display:grid;gap:clamp(36px,5vw,64px)}
.km-evo .km-plate{margin:0 0 14px}
.km-evo b{display:block;margin-bottom:4px;font:650 var(--km-type-body)/1.2 var(--cm-display);letter-spacing:-.01em}
.km-evo p{margin:0;max-width:640px;font:450 var(--km-type-small)/1.55 var(--cm-text);color:#3a3a3c}
.km-arrow{position:relative}
.km-arrow:after{content:"→";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font:450 var(--km-type-heading)/1 var(--cm-text);color:#6e6e73}
.km-trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,2vw,24px);align-items:start}
.km-trio .is-picked img{box-shadow:0 0 0 2px #1d1d1f,0 14px 30px rgba(17,20,24,.10)}
/* Oct 17 (Alobi: misalignments): pictures side by side share one shape, so their tops, bottoms and captions line up
   (the board crop is 1.69 and the matcha capture 1.6; the poster study is 460 px tall, the other two 468) */
.km-pair .km-shot img{aspect-ratio:1.6;object-fit:cover}
.km-trio .km-shot img{aspect-ratio:572/468;object-fit:cover}

@media(max-width:760px){
  .km-pair,.km-trio{grid-template-columns:1fr}
  .km-kinds{grid-template-columns:repeat(3,minmax(0,1fr))}
  .km-levels{grid-template-columns:1fr}
  .km-sizes{grid-template-columns:272fr 504fr}.km-sizes .s3{grid-column:1/-1;width:65%}.km-sizes .s4{grid-column:1/-1}
  .km-ways,.km-steps{grid-template-columns:1fr}
  .km-steps li+li:before{content:"\2193";left:50%;top:-9px}
  .km-arrow:after{content:"↓"}
}

/* Local layout study. All overrides belong to the Kumi case study. */
/* Inherit the original .cm.cm-doc layout: centered 820px column and 150px left directory. */
.km-page .km.km-story{--km-paper:#f5f5f7;--km-rule:#d5d5d9;--km-muted:#5c5c62;color:#1d1d1f}
.km-story :is(h1,h2,h3,h4,p,figure){margin-top:0}
.km-story p{font-family:var(--cm-text);font-size:var(--km-type-body);line-height:1.6;letter-spacing:0;text-wrap:pretty}
.km-story :is(h1,h2,h3,h4){font-family:var(--cm-display);letter-spacing:-.03em;text-wrap:balance}
.km-story a{text-underline-offset:4px}
.km-story :is(a,button,summary):focus-visible{outline:2px solid #1d1d1f;outline-offset:5px}
.km-story ::selection{background:#dce4fc;color:#1d1d1f}
.km-back{display:inline-block;margin-bottom:38px;font:500 var(--km-type-body)/1.5 var(--cm-text);text-decoration:none}
.km-back:hover{text-decoration:underline}
.km-opening{display:grid;grid-template-columns:1.25fr 1fr;gap:64px;align-items:start}
.km-story .km-opening h1{margin:0 0 17px;font-size:var(--km-type-heading);font-weight:600;line-height:1.1;letter-spacing:-.03em}
.km-story .km-promise{max-width:650px;margin:0;font-size:var(--km-type-section);font-weight:600;line-height:1.06;letter-spacing:-.035em;text-wrap:balance}
.km-introduction{max-width:410px;padding-bottom:2px}
.km-introduction p{margin:0 0 12px;color:#404044}
.km-introduction p:last-child{margin-bottom:0}
.km-introduction .km-status{font-size:var(--km-type-small);line-height:1.55;color:var(--km-muted)}
.km-story .cm-facts{display:grid;grid-template-columns:1.4fr 1.6fr .65fr .5fr 1fr;gap:24px;max-width:none;margin:38px 0 0;padding:22px 0;border-top:1px solid var(--km-rule);border-bottom:0}
.km-story .cm-facts div{display:block;padding:0;min-width:0}
.km-story .cm-facts dt{font-size:var(--km-type-small);line-height:1.5;font-weight:500;color:var(--km-muted)}
.km-story .cm-facts dt:after{content:none}
.km-story .cm-facts dd{margin:7px 0 0;font-size:var(--km-type-body);line-height:1.5;color:#1d1d1f}
.km-lead{margin:32px 0 0}
.km-lead img{display:block;width:100%;height:auto;border-radius:14px}
.km-lead figcaption{display:flex;justify-content:space-between;gap:20px;margin-top:12px;font:450 var(--km-type-small)/1.5 var(--cm-text);color:var(--km-muted)}
.km-lead figcaption a{flex:none;text-decoration:none;color:#1d1d1f}
.km-lead figcaption a:hover{text-decoration:underline}
.km-intro-film{margin:20px 0 58px}
.km-intro-film>summary,.km-detail>summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 0;cursor:pointer;list-style:none;font:500 var(--km-type-body)/1.5 var(--cm-text)}
.km-intro-film>summary::-webkit-details-marker,.km-detail>summary::-webkit-details-marker{display:none}
.km-intro-film>summary span,.km-detail>summary span{font-size:var(--km-type-heading);line-height:1;transition:transform .2s ease}
.km-intro-film[open]>summary span,.km-detail[open]>summary span{transform:rotate(45deg)}
.km-story .km-intro-film .km-hero{max-width:800px;margin:10px auto 0}
.km-intro-film .km-note{max-width:800px;margin:12px auto 0;font-size:var(--km-type-small)}
.km-page .km-story>.km-section-nav{position:sticky;top:52px;z-index:40;display:flex;flex-direction:row;align-items:stretch;justify-content:space-between;justify-self:auto;gap:20px;width:100%;margin:0;padding:0;background:#f5f5f7;border-top:1px solid var(--km-rule);border-bottom:1px solid var(--km-rule);isolation:isolate}
.km-story .km-section-nav a{display:block;position:relative;flex:1 0 auto;padding:20px 0;font:500 var(--km-type-body)/1.3 var(--cm-text);text-decoration:none;white-space:nowrap;color:var(--km-muted);text-align:center}
.km-story .km-section-nav a:before{display:none}
.km-story .km-section-nav a:after{content:"";position:absolute;right:0;bottom:-1px;left:0;height:2px;background:#1d1d1f;transform:scaleX(0);transition:transform .2s ease}
.km-story .km-section-nav a.is-current{color:#1d1d1f;font-weight:600}
.km-story .km-section-nav a.is-current:after{transform:scaleX(1)}
.km-story .cm-main{min-width:0}
.km-story section[id]{scroll-margin-top:134px}
.km-context{padding:68px 0 0}
.km-story .km-context>h2{margin:0 0 14px;font-size:var(--km-type-heading);font-weight:600;line-height:1.2}
.km-section-intro{max-width:65ch;margin:0 0 28px;color:#4a4a4f}
.km-glance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px;list-style:none;padding:0;margin:34px 0 0}
.km-glance li{padding-top:18px;border-top:1px solid var(--km-rule)}
.km-glance li>span{display:block;margin-bottom:24px;font:500 var(--km-type-heading)/1 var(--cm-text);font-variant-numeric:tabular-nums;color:var(--km-muted)}
.km-story .km-glance h3{margin:0 0 12px;font-size:var(--km-type-heading);font-weight:600;line-height:1.2;letter-spacing:-.025em}
.km-glance p{margin:0;color:#4a4a4f}
.km-story-section{margin-top:108px;padding-top:35px;border-top:1px solid #bcbcc2}
.km-section-heading{margin:0 0 32px}
.km-story .km-section-heading h2{display:flex;align-items:baseline;gap:18px;margin:0 0 30px;font-size:var(--km-type-heading);line-height:1.3;font-weight:600;letter-spacing:-.015em}
.km-section-heading h2>span{font-weight:450;color:var(--km-muted);font-variant-numeric:tabular-nums}
.km-story .km-section-heading>p{max-width:850px;margin:0;font-size:var(--km-type-section);font-weight:550;line-height:1.13;letter-spacing:-.03em;text-wrap:pretty;color:#1d1d1f}
.km-problem-copy{font-size:var(--km-type-body);max-width:75ch}
.km-problem-copy p{margin:0 0 16px;color:#404044}
.km-pains{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px;margin:38px 0 0;padding:0}
.km-pains li{padding-top:20px;border-top:1px solid var(--km-rule)}
.km-story .km-pains h3{margin:0 0 12px;font-size:var(--km-type-heading);font-weight:600;line-height:1.25}
.km-pains p{margin:0;color:#4a4a4f}
.km-question{max-width:900px;margin-top:48px;padding:0}
.km-story .km-question p{margin:0;font-size:var(--km-type-section);font-weight:500;line-height:1.35;letter-spacing:-.02em;color:#1d1d1f}
.km-feature{margin-top:72px}
.km-feature+.km-feature{margin-top:90px;padding-top:40px;border-top:1px solid var(--km-rule)}
.km-feature-heading{display:grid;grid-template-columns:48px minmax(0,1fr);gap:20px;max-width:900px;margin-bottom:30px}
.km-feature-number{padding-top:2px;font:450 var(--km-type-heading)/1.2 var(--cm-text);letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--km-muted)}
.km-story .km-feature-heading h3{margin:0 0 16px;font-size:var(--km-type-heading);font-weight:600;line-height:1.18;letter-spacing:-.025em}
.km-feature-heading p{max-width:65ch;margin:0;color:#404044}
.km-story .km-plate{margin:24px 0 0;padding:0;background:transparent;border:0;border-radius:0}
.km-story .km-shot :is(img,video){border-radius:10px;box-shadow:none}
.km-story .km-shot figcaption{font-family:var(--cm-text);font-size:var(--km-type-small);line-height:1.5;letter-spacing:0;text-transform:none;color:var(--km-muted)}
.km-story .km-cap{font-size:var(--km-type-body);line-height:1.5;color:var(--km-muted)}
.km-story .km-media-label{margin:30px 0 0;font-size:var(--km-type-body);font-weight:500}
.km-story .km-kinds b{font-size:var(--km-type-body)}
.km-story .km-kinds span{font-size:var(--km-type-small);line-height:1.45}
.km-story .km-levels li{font-size:var(--km-type-body)}
.km-story .km-sizes small{display:block;width:100%;text-align:center;font-family:var(--cm-text);font-size:var(--km-type-small);letter-spacing:0;white-space:normal;color:var(--km-muted)}
.km-demo-pair{display:grid;grid-template-columns:minmax(0,1fr);gap:32px}
.km-demo-pair>div{min-width:0}
.km-story .km-demo-pair h4{margin:0;font-size:var(--km-type-body);font-weight:500;line-height:1.4;letter-spacing:-.01em}
.km-story .km-demo-pair .km-plate{margin-top:15px;padding:0}
.km-detail{margin-top:24px;border-bottom:1px solid var(--km-rule)}
.km-detail>.km-plate{margin-bottom:20px}
.km-story .km-ways b{font-size:var(--km-type-body)}
.km-story .km-ways span{font-size:var(--km-type-small)}
.km-story .km-steps b{font-size:var(--km-type-body);line-height:1.25}
.km-story .km-steps p{font-size:var(--km-type-small);line-height:1.5}
.km-story .km-steps span{font-family:var(--cm-text);font-size:var(--km-type-small);letter-spacing:0;color:var(--km-muted)}
.km-accessibility{max-width:65ch;margin-top:32px}
.km-story .km-accessibility h4{margin:0 0 10px;font-size:var(--km-type-heading);font-weight:600;line-height:1.3}
.km-accessibility p{margin:0;color:#4a4a4f}
.km-story .km-evo{gap:64px;margin-top:48px}
.km-process-heading{display:grid;grid-template-columns:48px minmax(0,1fr);gap:20px;max-width:900px;margin-bottom:26px}
.km-process-heading>span{font:450 var(--km-type-heading)/1.2 var(--cm-text);color:var(--km-muted);font-variant-numeric:tabular-nums}
.km-story .km-process-heading h3{margin:0 0 14px;font-size:var(--km-type-heading);font-weight:600;line-height:1.2}
.km-story .km-process-heading p{max-width:65ch;font-size:var(--km-type-body);color:#404044}
.km-story .km-evo .km-plate{margin-bottom:0}
.km-story .km-trio .is-picked img{box-shadow:0 0 0 2px #1d1d1f}
.km-takeaways{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px}
.km-story .km-takeaways h3{margin:0 0 16px;font-size:var(--km-type-heading);font-weight:600;line-height:1.2}
.km-takeaways p{margin:0;color:#404044}
.km-story .km-next-heading{margin:52px 0 0;font-size:var(--km-type-heading);font-weight:600}
.km-story .cm-notes{gap:40px}
.km-story .cm-notes li{border-color:var(--km-rule)}
.km-story .cm-notes span{font-family:var(--cm-text);font-size:var(--km-type-body);letter-spacing:0;color:var(--km-muted)}
.km-story .cm-notes b{font-size:var(--km-type-heading);line-height:1.25;letter-spacing:-.02em}
.km-story .cm-notes p{font-size:var(--km-type-body)}
.km-story .cm-end{gap:24px;margin-top:100px;padding-top:24px;font-family:var(--cm-text);font-size:var(--km-type-body);line-height:1.5;letter-spacing:0;text-transform:none;border-color:var(--km-rule)}
.km-story .cm-end a:hover{text-decoration:underline}
.km-image-expand{display:block;width:100%;margin:0;padding:0;border:0;background:transparent;cursor:zoom-in}
.km-image-dialog{width:min(1440px,94vw);max-width:94vw;max-height:94vh;margin:auto;padding:50px 24px 20px;background:#fafafb;border:0;border-radius:14px;color:#1d1d1f;box-shadow:0 20px 70px rgba(0,0,0,.25)}
.km-image-dialog::backdrop{background:rgba(17,17,20,.75)}
.km-image-dialog>img{display:block;width:100%;height:auto}
.km-image-dialog>p{margin:18px 0 0;font:450 var(--km-type-body)/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.km-dialog-close{position:absolute;top:12px;right:18px;min-height:32px;padding:6px 10px;border:0;border-radius:6px;background:#e8e8ec;color:#1d1d1f;cursor:pointer;font:500 var(--km-type-body)/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.km-dialog-close:focus-visible{outline:2px solid #1d1d1f;outline-offset:3px}
@media(max-width:1050px){
 .km-opening{gap:32px;grid-template-columns:1.1fr 1fr}
 .km-story .cm-facts{grid-template-columns:1.3fr 1.8fr .7fr;gap:20px 30px}
 .km-demo-pair{grid-template-columns:1fr}
 .km-glance,.km-pains{gap:24px}
 .km-story .cm-notes{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
}
@media(max-width:760px){
 .km-overview{display:flex;flex-direction:column}
 .km-overview .km-back{align-self:flex-start;order:0}
 .km-overview .km-opening{order:1}
 .km-overview .km-lead{order:2}
 .km-overview .cm-facts{order:3}
 .km-overview .km-intro-film{order:4}
 .km-back{margin-bottom:28px;font-size:var(--km-type-small)}
 .km-opening{grid-template-columns:1fr;gap:22px}
 .km-story .km-opening h1{font-size:var(--km-type-heading);margin-bottom:14px}
 .km-story .km-promise{font-size:var(--km-type-display);line-height:1.08}
 .km-desktop-break{display:none}
 .km-introduction{max-width:65ch}
 .km-introduction p{font-size:var(--km-type-body);margin-bottom:10px}
 .km-story .cm-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px;margin-top:28px;padding:22px 0}
 .km-story .cm-facts dd{font-size:var(--km-type-small);margin-top:5px}
 .km-lead{margin-top:24px}
 .km-lead figcaption{flex-direction:column;gap:8px;font-size:var(--km-type-small)}
 .km-intro-film{margin-bottom:32px}
 .km-intro-film>summary{font-size:var(--km-type-small);min-height:44px}
 .km-page .km-story>.km-section-nav{top:48px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;overflow:visible}
 .km-story .km-section-nav a{min-width:0;padding:16px 0;font-size:var(--km-type-small);white-space:normal}
 .km-nav-number{display:none}
 .km-context{padding-top:40px}
 .km-story .km-context>h2{font-size:var(--km-type-heading)}
 .km-section-intro{font-size:var(--km-type-body)}
 .km-glance{grid-template-columns:1fr;gap:25px;margin-top:28px}
 .km-glance li{display:block;padding-top:18px}
 .km-glance li>span{grid-row:1/3;margin:2px 0 0;font-size:var(--km-type-body)}
 .km-story .km-glance h3{font-size:var(--km-type-heading);margin-bottom:9px}
 .km-glance p{font-size:var(--km-type-body)}
 .km-story-section{margin-top:64px;padding-top:25px}
 .km-story .km-section-heading h2{font-size:var(--km-type-body);margin-bottom:24px;gap:14px}
 .km-story .km-section-heading>p{font-size:var(--km-type-section);line-height:1.15}
 .km-section-heading{margin-bottom:25px}
 .km-problem-copy p{font-size:var(--km-type-body)}
 .km-pains{grid-template-columns:1fr;gap:22px;margin-top:28px}
 .km-story .km-pains h3{font-size:var(--km-type-heading);margin-bottom:8px}
 .km-pains p{font-size:var(--km-type-body)}
 .km-question{margin-top:32px}
 .km-story .km-question p{font-size:var(--km-type-heading)}
 .km-feature{margin-top:42px}
 .km-feature+.km-feature{margin-top:54px;padding-top:28px}
 .km-feature-heading,.km-process-heading{grid-template-columns:28px minmax(0,1fr);gap:13px;margin-bottom:22px}
 .km-feature-number,.km-process-heading>span{font-size:var(--km-type-heading)}
 .km-story .km-feature-heading h3{font-size:var(--km-type-heading);margin-bottom:13px;line-height:1.2}
 .km-feature-heading p{font-size:var(--km-type-body);line-height:1.6}
 .km-story .km-plate{margin-top:20px;padding:0;border-radius:0}
 .km-story .km-kinds{gap:8px}
 .km-story .km-kinds li{padding:10px 8px}
 .km-story .km-kinds b{font-size:var(--km-type-small)}
 .km-story .km-kinds span{font-size:var(--km-type-small)}
 .km-story .km-levels li{font-size:var(--km-type-small);padding:11px}
 .km-story .km-media-label{font-size:var(--km-type-body)}
 .km-story .km-sizes{gap:18px 14px}
 .km-story .km-sizes small{font-size:var(--km-type-small)}
 .km-story .km-ways{grid-template-columns:1fr}
 .km-story .km-ways li{flex-direction:row;flex-wrap:wrap;align-items:center;gap:7px}
 .km-story .km-ways b{flex-basis:100%;margin-bottom:4px}
 .km-story .km-row{gap:12px}
 .km-story .km-phone figcaption{font-size:var(--km-type-small)}
 .km-story .km-accessibility p{font-size:var(--km-type-body)}
 .km-story .km-evo{gap:40px;margin-top:35px}
 .km-story .km-process-heading h3{font-size:var(--km-type-heading)}
 .km-story .km-process-heading p{font-size:var(--km-type-body)}
 .km-story .km-pair,.km-story .km-trio{gap:25px}
 .km-story .km-arrow:after{top:50%;transform:translate(-50%,-50%)}
 .km-takeaways{grid-template-columns:1fr;gap:30px}
 .km-story .km-takeaways h3{font-size:var(--km-type-heading);margin-bottom:12px}
 .km-takeaways p{font-size:var(--km-type-body)}
 .km-story .cm-notes{grid-template-columns:1fr;gap:28px}
 .km-story .cm-next-heading{margin-top:38px}
 .km-story .cm-end{margin-top:64px;font-size:var(--km-type-small)}
 .km-image-dialog{padding:48px 12px 16px}
}
@media(prefers-reduced-motion:reduce){
 .km-story :is(summary span,.km-section-nav a:after){transition:none}
}


/* Requested edits on the restored first layout. */
.km-lead .km-logo-intro{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;border-radius:14px;background:#fff8ee}
.km-lead{margin-bottom:48px}
.km-app-board{width:100%;margin:0 0 36px}
.km-app-board-stage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;padding:24px;background:#eef3f7;border-radius:14px;align-items:start}
.km-app-example{min-width:0}
.km-app-example>img,.km-app-example>.km-image-expand{display:block;width:100%;height:auto;aspect-ratio:8/5;overflow:hidden;border-radius:4px}
.km-app-example img{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:cover;object-position:left top;border-radius:4px}
.km-story .km-app-label{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:10px 0 0;line-height:1.45}
.km-story .km-app-label b{font-size:var(--km-type-body);font-weight:600}
.km-story .km-app-label span{font-size:var(--km-type-small);color:#5c5c62}
.km-story .km-app-board>figcaption{margin-top:12px;font-size:var(--km-type-small);line-height:1.55;color:#5c5c62}
.km-app-board>figcaption a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.km-story video[data-autoplay-only]{pointer-events:none;user-select:none}
.km-story video[data-autoplay-only]::-webkit-media-controls{display:none!important}
.km-story #process .km-section-heading{margin-bottom:14px}
.km-story #process .km-section-heading h2{margin-bottom:20px}
.km-story #process .km-section-heading>p{font-size:var(--km-type-section);line-height:1.2}
.km-story #process>.km-section-intro{font-size:var(--km-type-body);margin-bottom:20px}
.km-story #process .km-evo{width:100%;max-width:none;box-sizing:border-box;gap:32px;margin-top:26px}
.km-story #process .km-evo>li{width:100%;max-width:none;min-width:0}
.km-story #process .km-process-heading{grid-template-columns:30px minmax(0,1fr);gap:14px;margin-bottom:14px}
.km-story #process .km-process-heading>span{font-size:var(--km-type-heading)}
.km-story #process .km-process-heading h3{font-size:var(--km-type-heading);margin-bottom:8px}
.km-story #process .km-process-heading p{max-width:65ch;font-size:var(--km-type-body);line-height:1.5;margin:0}
.km-story #process .km-evo .km-plate{width:100%;max-width:none;box-sizing:border-box;margin-top:12px;padding:0}
.km-story #process .km-evo>li:last-child>.km-plate{max-width:none}
@media(max-width:760px){
 .km-lead{margin-bottom:32px}
 .km-app-board-stage{padding:16px;gap:22px 18px}
 .km-story .km-app-label{display:block}
 .km-app-label b,.km-app-label span{display:block}
 .km-story #process .km-section-heading>p{font-size:var(--km-type-heading)}
 .km-story #process .km-evo{gap:26px;margin-top:22px}
 .km-story #process .km-process-heading h3{font-size:var(--km-type-heading)}
 .km-story #process .km-process-heading p{font-size:var(--km-type-body)}
 .km-story #process .km-evo .km-plate{padding:0}
 .km-story #process .km-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .km-story #process .km-trio{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 .km-story #process .km-arrow:after{content:'→'}
}
@media(max-width:540px){.km-app-board-stage{grid-template-columns:1fr}}

.km-story .km-connections>h4{margin:0;padding:15px 0;font:500 var(--km-type-body)/1.5 var(--cm-text);letter-spacing:0}

/* Opening typography is defined in the reading-column scale below. */
.km-story .km-promise{font-size:var(--km-type-section)}
@media(max-width:760px){.km-story .km-promise{font-size:var(--km-type-display)}}


/* Reading-column type scale: five roles for the restored 820px case-study column. */
.km-page{--km-type-small:13px;--km-type-body:14px;--km-type-heading:18px;--km-type-section:32px;--km-type-display:40px}
.km-story p{font-size:var(--km-type-body);line-height:1.6}
.km-opening{gap:40px}
.km-story .km-opening h1{font-size:var(--km-type-heading);line-height:1.25;letter-spacing:-.02em;margin-bottom:12px}
.km-story .km-promise{font-size:var(--km-type-display);line-height:1.08;letter-spacing:-.03em}
.km-story .km-section-heading>p{font-size:var(--km-type-section);line-height:1.2;letter-spacing:-.025em}
.km-story .km-section-heading h2{font-size:var(--km-type-body);line-height:1.4;letter-spacing:-.01em;margin-bottom:22px}
.km-story .km-section-heading h2>span{font-size:var(--km-type-small)}
.km-story :is(.km-feature-heading h3,.km-glance h3,.km-pains h3,.km-takeaways h3,.km-next-heading){font-size:var(--km-type-heading);line-height:1.25;letter-spacing:-.02em}
.km-story :is(.km-feature-number,.km-process-heading>span,.km-glance li>span,.cm-notes>li>span){font-size:var(--km-type-small);line-height:1.5;letter-spacing:0}
.km-story .cm-facts :is(dt,dd){font-size:var(--km-type-small);line-height:1.5}
.km-story .km-introduction p:not(.km-status){font-size:var(--km-type-body);line-height:1.6}
.km-story :is(.km-status,.km-shot figcaption,.km-sizes small,.km-app-board>figcaption,.km-app-label span,.km-ways span,.km-kinds span,.km-levels li,.km-steps span,.cm-end){font-size:var(--km-type-small);line-height:1.5}
.km-story .km-lead figcaption{display:block;font-size:var(--km-type-small);line-height:1.5;text-align:left}
.km-story :is(.km-demo-pair h4,.km-connections>h4,.km-ways b,.km-kinds b,.km-steps b,.cm-notes b,.km-media-label){font-size:var(--km-type-body);line-height:1.4}
.km-story .km-steps p{font-size:var(--km-type-body);line-height:1.6}
.km-story .km-feature-heading p,.km-story .km-accessibility{max-width:65ch}
.km-story #process .km-section-heading>p{font-size:var(--km-type-section);line-height:1.2}
.km-story #process .km-process-heading h3{font-size:var(--km-type-heading);line-height:1.25;letter-spacing:-.02em}
.km-story #process .km-process-heading>span{font-size:var(--km-type-small);line-height:1.5}
.km-story #process .km-process-heading p{font-size:var(--km-type-body);line-height:1.6}
.km-story .km-feature-heading{margin-bottom:24px}
.km-story .km-glance h3,.km-story .km-pains h3{margin-bottom:10px}
@media(max-width:1050px){.km-opening{gap:28px}}
@media(max-width:760px){
 .km-page{--km-type-section:28px;--km-type-display:34px}
 .km-opening{gap:20px}
 .km-story .km-opening h1{margin-bottom:10px}
}

/* Balance the expanded connection examples without changing the reading width. */
.km-story .km-ways b{min-height:2.8em}
.km-story .km-connection-note{margin:16px 0 0;max-width:65ch;font-size:var(--km-type-small);line-height:1.5;color:#5c5c62}
@media(max-width:760px){.km-story .km-ways b{min-height:0}}

/* Opening film uses its own artwork without an added presentation panel. */
.km-story .km-lead{box-sizing:border-box;width:100%;padding:0;background:transparent;border-radius:0}

/* Keep the final app tags on a shared bottom edge in the desktop columns. */
@media(min-width:761px){.km-story .km-ways li>span:last-child{margin-top:auto}}

.km-story .km-feature-explanation{margin:0 0 20px;max-width:75ch;color:#404044}

/* Reading-column paragraphs use their full available width. */
.km-story :is(.km-introduction,.km-promise,.km-section-intro,.km-section-heading>p,.km-problem-copy,.km-feature-heading p,.km-accessibility,.km-connection-note,.km-feature-explanation,.km-note,.km-cap,.km-question){max-width:none}
.km-story .km-problem-copy,.km-story .km-accessibility{width:100%}
.km-story .km-feature-heading,.km-story .km-process-heading{row-gap:12px;max-width:none}
.km-story .km-feature-heading>div,.km-story .km-process-heading>div{display:contents}
.km-story .km-feature-heading h3,.km-story .km-process-heading h3{grid-column:2;grid-row:1;margin-bottom:0}
.km-story .km-feature-heading p,.km-story .km-process-heading p{grid-column:1/-1;margin:0;width:100%;max-width:none}
.km-story #process .km-process-heading{row-gap:8px}
.km-story #process .km-process-heading p{max-width:none}
.km-story .km-image-credits{margin:36px 0 0;font:400 var(--km-type-small)/1.5 var(--cm-text);color:var(--km-muted)}
.km-story .km-image-credits summary{cursor:pointer}
.km-story .km-image-credits p{margin:12px 0 0;max-width:none;font-size:var(--km-type-small)}

/* Static app connections need no disclosure border; the next feature owns the divider. */
.km-story .km-connections{margin-top:24px}
.km-story .km-feature-apps+.km-feature{margin-top:48px;padding-top:32px}
@media(max-width:760px){.km-story .km-feature-apps+.km-feature{margin-top:32px;padding-top:28px}}

/* Balance the opening film between the project facts and the next section. */
.km-story .km-lead{margin-top:56px;margin-bottom:0}
@media(max-width:760px){.km-story .km-lead{margin-top:32px}}

/* Soften only the six summary headings identified in the reference screenshots. */
.km-story .km-glance h3,.km-story .km-pains h3{font-weight:500}

/* Oct 19: project facts values in the same grey as Glimpse and CMUsed. */
.km-story .cm-facts dd{color:#6e6e73}

/* Oct 19: on desktop the introduction sits level with the large line, not with the small name. */
@media(min-width:761px){.km-story .km-opening{align-items:end}}

/* Oct 21: "One small window, any size." as a live demo (kumi-sizes-demo.js). The list on the left sends the window to
   a size; it also plays through them on its own. One change: the contents go, the frame travels, the new contents come. */
.km-sd{--sd-bg:#f3e8d8;display:grid;grid-template-columns:minmax(0,230fr) minmax(0,1331fr);aspect-ratio:1561/882;background:var(--sd-bg);border-radius:10px;overflow:hidden}
.km-sd-side{position:relative;align-self:center;margin-left:clamp(12px,2.2cqw,34px);container-type:normal}
.km-sd-list{position:relative;list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.km-sd-group{height:26px;display:flex;align-items:flex-end;padding:0 0 4px;font-size:13px;font-weight:500;color:#8a8178}
.km-sd-group:not(:first-child){margin-top:14px}
.km-sd-list li:has([data-size="wall"]),.km-sd-list li:has([data-size="float"]){margin-top:14px}
.km-sd-list button{appearance:none;display:flex;align-items:center;width:100%;height:36px;margin:0;padding:0;border:0;background:none;font:inherit;font-size:clamp(13px,1.15vw,17px);font-weight:600;letter-spacing:-.01em;color:#8a8178;text-align:left;cursor:pointer;transition:color .4s ease}
.km-sd-list button[aria-pressed=true]{color:#1e1a16}
.km-sd-list button:focus-visible{outline:2px solid #1e1a16;outline-offset:2px;border-radius:8px}
.km-sd-pill{position:absolute;left:-12px;top:0;width:min(150px,100%);height:36px;border-radius:10px;background:rgb(30 26 22 / .07);transition:transform .55s cubic-bezier(.4,0,.2,1)}
.km-sd-hint{margin:18px 0 0;font-size:12px;color:#a39a90}
.km-sd-stage{position:relative;container-type:inline-size}
.km-sd-win{--sd-w:100cqw;position:absolute;overflow:hidden;background:#fff8ee;box-shadow:0 6px 14px rgba(30,26,22,.1),0 22px 40px rgba(30,26,22,.12);
  transition:left .55s cubic-bezier(.4,0,.2,1) .1s,top .55s cubic-bezier(.4,0,.2,1) .1s,width .55s cubic-bezier(.4,0,.2,1) .1s,height .55s cubic-bezier(.4,0,.2,1) .1s,border-radius .55s cubic-bezier(.4,0,.2,1) .1s,box-shadow .55s ease .1s}
.km-sd-win[data-kind=wall]{box-shadow:none}
.km-sd-win[data-kind=float]{box-shadow:0 0 0 1px rgb(30 26 22 / .08),0 8px 20px rgb(30 26 22 / .14),0 24px 48px rgb(30 26 22 / .12)}
.km-story .km-sd-win img{position:absolute;inset:0;width:100%;height:100%;border-radius:0;box-shadow:none;opacity:0;transition:opacity .1s ease}
.km-story .km-sd-win img.is-on{opacity:1;transition:opacity .25s ease .6s}
@media (prefers-reduced-motion:reduce){.km-sd-win,.km-sd-pill{transition-duration:.01s!important;transition-delay:0s!important}.km-story .km-sd-win img.is-on{transition:opacity .2s ease}}
/* phones: the sizes become a row of buttons above the window */
@media (max-width:640px){
  .km-sd{grid-template-columns:1fr;aspect-ratio:auto}
  .km-sd-side{margin:12px 12px 0}
  .km-sd-pill,.km-sd-group,.km-sd-hint{display:none}
  .km-sd-list{flex-direction:row;flex-wrap:wrap;gap:6px}
  .km-sd-list li:has([data-size]){margin:0!important}
  .km-sd-list button{width:auto;height:30px;padding:0 10px;border-radius:999px;font-size:13px}
  .km-sd-list button[data-size=lm]::before,.km-sd-list button[data-size=ls]::before,.km-sd-list button[data-size=ll]::before{content:"Landscape\00a0·\00a0"}
  .km-sd-list button[data-size=pm]::before,.km-sd-list button[data-size=ps]::before,.km-sd-list button[data-size=pl]::before{content:"Portrait\00a0·\00a0"}
  .km-sd-list button[aria-pressed=true]{background:rgb(30 26 22 / .08)}
  .km-sd-stage{aspect-ratio:1331/882}
}

/* Oct 21 (later): the demo runs the real app (app/, in a frame scaled to fit). The frame below is only there for
   Wallpaper and Floating, so it starts hidden and shows over the app while one of those is picked. */
.km-sd-stage{overflow:hidden}
.km-sd-app{position:absolute;left:0;top:0;width:1331px;height:882px;border:0;pointer-events:none;transform-origin:0 0;transform:scale(var(--sd-s,.75));background:transparent;color-scheme:normal}
.km-sd-win{z-index:2;opacity:0;pointer-events:none}
.km-sd-win.is-on{opacity:1;transition-property:left,top,width,height,border-radius,box-shadow,opacity;transition-duration:.55s,.55s,.55s,.55s,.55s,.55s,.12s;transition-delay:.1s,.1s,.1s,.1s,.1s,.1s,0s}
.km-sd-win:not(.is-on){transition:opacity .2s ease}
.km-sd-win.is-instant{transition:none!important}
/* the app is a preview here, not something to use: no pointer, no focus (kumi-sizes-demo.js, index.html inert) */
/* Oct 21 (Alobi): in the size list the four kinds are bold (Landscape, Portrait, Wallpaper, Floating) and the
   sizes under Landscape and Portrait are regular. The "Point at a size" hint is gone. */
.km-sd-group{font-size:clamp(13px,1.15vw,17px);font-weight:600;letter-spacing:-.01em}
.km-sd-list button[data-size=ls],.km-sd-list button[data-size=lm],.km-sd-list button[data-size=ll],
.km-sd-list button[data-size=pl],.km-sd-list button[data-size=pm],.km-sd-list button[data-size=ps]{font-weight:400}
/* Oct 21 (later): the list's type follows the plate, not the window, so "Landscape" and "Wallpaper" fit their column */
.km-sd{container-type:inline-size}
.km-sd-group,.km-sd-list button{font-size:clamp(11px,2.1cqw,15px)}
@media (max-width:640px){.km-sd-list button{font-size:13px}}
