.mh__br{display:inline}
@media (max-width:720px){.mh__br{display:none}}
/* open source page */
.os-hero{padding-top:clamp(120px,16vw,200px)}
.os-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:clamp(32px,4vw,56px)}
.os-grid--3{grid-template-columns:repeat(3,1fr)}
.osc{display:flex;flex-direction:column;gap:18px;cursor:default}
.osc__cover{position:relative;aspect-ratio:4/3;border-radius:var(--r-card);overflow:hidden;background:radial-gradient(120% 95% at 15% 0%,hsl(var(--h) 55% 30%),#15161a 72%);display:flex;flex-direction:column;justify-content:flex-end;padding:22px 24px}
.osc__cover img,.osc__cover video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .6s ease}
.osc__cover video{opacity:0}
.osc__cover.is-live video{opacity:1}
.osc__cover.is-live img{opacity:0}
.osc__cover::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(10,11,13,.6),rgba(10,11,13,0) 55%);pointer-events:none}
.osc__ver{position:relative;z-index:1;font:500 clamp(48px,5.2vw,84px)/.95 var(--f-text);letter-spacing:-.05em;color:#fff}
.osc__sub{position:relative;z-index:1;margin-top:8px;font:500 13px/1 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.7)}
.osc h3{font-size:26px;letter-spacing:-.04em}
.osc p{margin:10px 0 0;font-size:16px;line-height:1.5;color:var(--muted)}
.osc__f{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px}
.osc__more{font:500 15px/1 var(--f-text);color:#fff;white-space:nowrap}
.osc__more i{font-style:normal;display:inline-block;transition:transform .3s}
.osc:hover .osc__more i{transform:translate(3px,-3px)}
@media (max-width:1100px){.os-grid,.os-grid--3{grid-template-columns:repeat(2,1fr)}}
@media (max-width:720px){.os-grid,.os-grid--3{grid-template-columns:1fr;gap:36px}}
.osc.card{gap:14px;min-height:260px}
.osc.card p:not(.meta){margin:0}
.osc.card .osc__more{margin-top:auto;padding-top:12px}

/* open source cards: a cover plate and a caption under it */
.osc{display:flex;flex-direction:column;gap:0}
.osc__cover{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;padding:24px;border-radius:var(--r-card);background:var(--surface);text-align:center}
.osc__cover span{font:500 clamp(24px,2.4vw,38px)/1.1 var(--f-text);letter-spacing:-.04em;color:#fff}
.osc h3{margin-top:22px;font-size:24px;line-height:1.15}
.osc p{margin:10px 0 0;font-size:16px;line-height:1.5;color:var(--muted)}
.osc .osc__more{margin-top:16px;padding-top:0}
.osc__cover::after{display:none}

/* aligned rows: cover / title / text / link share the same lines across a row of cards */
.os-grid{row-gap:0}
.osc{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0;margin-bottom:56px}
.osc .osc__more{justify-self:start;align-self:end;margin-top:18px;font-weight:500}
.osc:hover .osc__more::after{transform:scaleX(1);transform-origin:left center}
@media (max-width:1100px){.osc{margin-bottom:44px}}
@media (max-width:720px){.os-grid,.os-grid--3{row-gap:0}.osc{margin-bottom:40px}}

/* open source hero, same rhythm as the API page */
.os-hero{padding:152px 0 56px}
.os-hero .lead{max-width:none}
.os-hero__title{font-size:clamp(44px,6.4vw,104px);margin:18px 0 24px}
.os-hero__btns{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
@media (max-width:1100px){.os-hero{padding:112px 0 40px}}

a.osc{color:inherit;text-decoration:none;cursor:pointer}
a.osc h3{text-decoration:none}
.osc__cover{transition:background .35s ease}
a.osc:hover .osc__cover,a.osc:focus-visible .osc__cover{background:#2a2c31}
.osc__cover span{line-height:1.12}
@media (max-width:720px){.osc__cover{aspect-ratio:16/10}.osc__cover span{font-size:26px}}
.h-mid{font:500 clamp(34px,4.4vw,68px)/1.02 var(--f-text);letter-spacing:-.045em;margin:0}

/* mobile type, matching the home page */
@media (max-width:860px){
  main .os-hero .h-big{font-size:clamp(34px,10vw,40px)}
  main .h-mid{font-size:clamp(30px,9vw,36px)}
  .osc h3{font-size:22px}
  .osc p{font-size:14px}
}

/* ---- Open Source covers: dark plate with the soft green glow of the footer; name and version on the left, mode on the right (like Wan) ---- */
.osc__cover{container-type:inline-size;position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center;gap:10px 18px;padding:24px;overflow:hidden;background:var(--deep,#101113);isolation:isolate}
.osc__cover::before{content:"";position:absolute;inset:-12%;z-index:-2;background:var(--gi,url("../assets/glow-finale.webp")) 50% 100%/cover no-repeat;transform:translate(var(--tx,0%),var(--ty,0%)) rotate(var(--rot,0deg)) scale(calc(var(--fx,1)*var(--sc,1)),var(--sc,1));filter:hue-rotate(var(--hr,0deg));opacity:.9}
.osc__cover::after{content:"";display:block;position:absolute;inset:0;z-index:-1;pointer-events:none;background:url("../assets/noise-grain.png") 0 0/200px 200px;opacity:.35;mix-blend-mode:overlay}
@font-face{font-family:"Druk Wide Cyr";src:url("../fonts/DRUKWIDECYR-BOLD.woff2") format("woff2");font-weight:700;font-display:swap}
.osc__cover .osc__n{color:#fff;font:700 clamp(15px,1.45vw,22px)/1.15 "Druk Wide Cyr","Arial Black",Impact,sans-serif;letter-spacing:.01em;text-transform:uppercase;text-shadow:none;white-space:nowrap}
.osc__cover img.osc__logo{position:static;inset:auto;display:block;width:auto;flex:none;max-width:none;height:min(3.4cqw,24px);object-fit:contain}
.osc__bar{flex:none;display:block;width:1px;height:min(9cqw,44px);background:rgba(255,255,255,.55)}
.osc__cover .osc__mode{color:rgba(255,255,255,.92);font:700 calc(min(3.4cqw,24px)*1.25)/1 "Druk Wide Cyr","Arial Black",Impact,sans-serif;letter-spacing:.02em;text-transform:uppercase;text-shadow:none;text-align:left;white-space:nowrap;flex:none}
a.osc:hover .osc__cover,a.osc:focus-visible .osc__cover{background:var(--deep,#101113)}
a.osc:hover .osc__cover::before{opacity:1}
.osc__cover::before{transition:opacity .35s ease}
@media (max-width:720px){.osc__cover .osc__n{font-size:18px}.osc__cover img.osc__logo{height:3.2cqw}.osc__cover .osc__mode{font-size:calc(3.2cqw*1.25)}}

.osc__cover .osc__mode--2{font-size:calc(min(3.4cqw,24px)*.92);line-height:1}
@media (max-width:720px){.osc__cover .osc__mode--2{font-size:calc(3.2cqw*1.45)}}

/* mobile: no doubled gaps between the release blocks and before the footer */
@media (max-width:720px){
  .os-grid > .osc:last-child{margin-bottom:0}
  #contact.section{padding-bottom:64px}
}

/* desktop: the last row of cards must not add its own bottom gap on top of the section padding (same rhythm as the home page) */
@media (min-width:1101px){.os-grid{margin-bottom:-56px}}
@media (min-width:721px) and (max-width:1100px){.os-grid{margin-bottom:-44px}}

/* mobile: the contact block is as far from the release list as the other blocks are from each other */
@media (max-width:720px){#contact.section{padding-top:64px}}

/* v3: Models page, tighter top */
main.mp .os-hero{padding-top:56px}
@media (max-width:1100px){main.mp .os-hero{padding-top:44px}}
@media (max-width:720px){main.mp .os-hero{padding-top:32px}}

/* the model number stands next to the model name, not next to the Kandinsky wordmark; it is the same drawn italic figures as in the old logos */
.osc__cover img.osc__nimg{position:static;inset:auto;display:inline-block;width:auto;max-width:none;height:.82em;margin-left:.07em;vertical-align:-.035em;object-fit:contain}
