/* Site-wide additions on top of the boards' own styles (see extras.py). */

/* Skip link: out of sight until a keyboard user reaches it. */
.skip{position:absolute;left:16px;top:-60px;z-index:100;background:#3b5bff;color:#fff;padding:10px 14px;font-size:14px;font-weight:600;transition:top .15s}
.skip:focus{top:16px}
#main:focus{outline:none}
a:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #8fa2ff;outline-offset:3px}

/* "Work together" link. */
.cta-row{margin:0}
.cta{display:inline-block;font-size:20px;font-weight:600;letter-spacing:-.01em;box-shadow:inset 0 -8px 0 #3b5bff;transition:box-shadow .2s}
.cta:hover{box-shadow:inset 0 -1.2em 0 #3b5bff}
.cta.dark{color:#f3f3f1}
.cta.dark:hover{color:#fff}
.cta.light{color:#0a0a0a}
.cta.light:hover{color:#fff}
.lead + .cta-row{margin-top:4px}
#post-body + .cta-row{padding-top:8px}

/* Portfolio: brand filter next to the sort menu. */
#works .t[hidden]{display:none}

/* Work page: the 21:9 film strip cuts faces on a phone. */
@media (max-width:767px){#work-film{aspect-ratio:4/3!important}}
@media (max-width:767px){#work-title{overflow-wrap:break-word;hyphens:auto}}

/* Consent banner (app.js): both choices weigh the same. */
.consent{font-family:'Hanken Grotesk',ui-sans-serif,system-ui,sans-serif;position:fixed;left:16px;right:16px;bottom:16px;z-index:90;max-width:560px;margin-left:auto;background:#141414;color:#d8d8d4;border:1px solid #2a2a2a;padding:18px 20px;display:flex;flex-direction:column;gap:14px;font-size:15px;line-height:1.55;box-shadow:0 12px 40px rgba(0,0,0,.45)}
.consent p{margin:0}
.consent a{color:#f3f3f1;text-decoration:underline;text-underline-offset:3px}
.consent-b{display:flex;gap:10px;flex-wrap:wrap}
.consent-b button{font-family:inherit;flex:1 1 140px;padding:11px 14px;border:1px solid #3b5bff;background:transparent;color:#f3f3f1;font-size:12px;letter-spacing:.06em;cursor:pointer}
.consent-b button:hover{background:#3b5bff}

/* ---- Home: the YEHSO story (story.py) ---- */
body[data-page=home] h1{font-size:clamp(40px,6.2vw,80px);line-height:.98;max-width:15ch;margin:0 auto;text-wrap:balance}
.yh{display:flex;flex-direction:column;gap:14px;margin-bottom:28px}
.yh .sh{margin-bottom:0}
.y-p{margin:0 0 48px;max-width:46em;font-size:20px;line-height:1.6;text-wrap:pretty}
.light .y-p{color:var(--tx)}
.dark .y-p{color:#d8d8d4}
.do{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--l2)}
.do-col{display:flex;flex-direction:column;gap:14px;padding:32px 40px 8px 0}
.do-col + .do-col{padding-left:40px;border-left:1px solid var(--l2)}
.do-l{font-size:12px;color:var(--g2)}
.do-col h3{margin:0;font-size:clamp(28px,3vw,40px);line-height:1.05;font-weight:600;letter-spacing:-.03em}
.do-col p{margin:0;font-size:18px;line-height:1.6;color:var(--tx);max-width:34em}
.do-col ul{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column}
.do-col li{padding:11px 0;border-top:1px solid var(--l2);font-size:16px}
.do-a{align-self:flex-start;margin-top:10px;font-size:12px;border-bottom:1px solid currentColor;padding-bottom:2px}
.do-note{margin:36px 0 0;max-width:46em;font-size:15px;line-height:1.6;color:var(--g2)}
/* System picture */
.cis{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:48px;align-items:start}
.cis-fig{margin:0}
.cis-svg{width:100%;height:auto;display:block}
.cis-fig figcaption{margin-top:14px;font-size:12px;color:var(--g1);line-height:1.6;text-transform:none;letter-spacing:.02em}
.cis-spoke{stroke:#3b5bff;stroke-width:1.5;opacity:.45;stroke-dasharray:3 5;animation:cis-call 8s ease-in-out infinite;animation-delay:var(--d)}
.cis-spoke.on{opacity:1;stroke-dasharray:none}
@keyframes cis-call{0%,70%,100%{opacity:.35}10%,20%{opacity:1}}
.cis-dec{font:500 11px 'Hanken Grotesk',sans-serif;letter-spacing:.08em;fill:#8fa2ff}
.cis-node{cursor:pointer;outline:none}
.cis-dot{fill:#0a0a0a;stroke:#3d3d3a;stroke-width:1.5;transition:stroke .2s,fill .2s}
.cis-core{fill:#f3f3f1;transition:fill .2s}
.cis-name{font:600 20px 'Hanken Grotesk',sans-serif;letter-spacing:-.01em;fill:#f3f3f1;transition:fill .2s}
.cis-node:hover .cis-dot,.cis-node:focus-visible .cis-dot,.cis-node.on .cis-dot{stroke:#3b5bff;fill:#10183a}
.cis-node:hover .cis-core,.cis-node.on .cis-core{fill:#3b5bff}
.cis-node:hover .cis-name,.cis-node.on .cis-name{fill:#8fa2ff}
.cis-node:focus-visible .cis-dot{stroke-width:3}
.cis-halo{fill:none;stroke:#3b5bff;stroke-width:1;opacity:.5}
.cis-ring{fill:none;stroke:#f3f3f1;stroke-width:2;opacity:0;transition:opacity .2s}
.cis-human.on .cis-ring,.cis-human:focus-visible .cis-ring{opacity:1}
.cis-hname{font:500 11px 'Hanken Grotesk',sans-serif;letter-spacing:.08em;fill:#9a9a96}
.cis-side{display:flex;flex-direction:column;gap:22px;position:sticky;top:24px}
.cis-panel{display:flex;flex-direction:column;gap:10px;min-height:190px;padding:26px 0 0;border-top:2px solid #3b5bff}
.cis-panel .mono{font-size:12px;color:#8fa2ff}
.cis-panel h3{margin:0;font-size:40px;line-height:1;font-weight:600;letter-spacing:-.035em}
.cis-panel p{margin:0;font-size:18px;line-height:1.6;color:#d8d8d4}
.cis-panel[hidden]{display:none}
.cis-hint{margin:0;font-size:12px;color:var(--g2)}
.cis-list{display:none;list-style:none;margin:0;padding:0;gap:8px;flex-wrap:wrap}
.cis-chip{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 14px;border:1px solid var(--l1);background:transparent;color:var(--paper);font:inherit;cursor:pointer;text-align:left}
.cis-chip b{font-size:17px;font-weight:600}
.cis-chip .mono{font-size:10px;color:var(--g1)}
.cis-chip.on{border-color:#3b5bff;background:#10183a}
.kn{border-top:1px solid var(--l1);padding-top:18px}
.kn-h{font-size:12px;color:var(--g1);text-transform:uppercase}
.kn ul{list-style:none;margin:10px 0 0;padding:0}
.kn li{display:flex;flex-direction:column;gap:3px;padding:12px 0;border-bottom:1px solid var(--l1)}
.kn b{font-size:16px;font-weight:600}
.kn span{font-size:14px;line-height:1.5;color:var(--g1)}
/* Where the decisions sit */
.fm{position:relative}
.fm-lanes{display:none}
.fm-cols{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));position:relative}
.fm-cols::before{content:"";position:absolute;left:0;right:0;top:calc(var(--top,110px) + 23px);height:2px;background:var(--ink)}
.fm-col{display:flex;flex-direction:column;--top:110px}
.fm-top{height:110px;display:flex;align-items:flex-end;padding:0 18px 14px 0}
.fm-h{margin:0;font-size:16px;line-height:1.45;font-weight:500;padding-left:14px;border-left:3px solid #3b5bff}
.fm-h.fm-none{border-left-color:transparent}
.fm-step{position:relative;display:flex;flex-direction:column;gap:6px;padding:16px 16px 18px 0;background:transparent}
.fm-step::before{content:"";position:relative;display:block;width:14px;height:14px;border-radius:50%;background:var(--paper);border:2px solid var(--ink);margin-bottom:6px;z-index:1}
.fm-step .mono{font-size:11px;color:var(--g2)}
.fm-step b{font-size:24px;line-height:1.1;font-weight:600;letter-spacing:-.02em}
.fm-bot{display:flex;flex-wrap:wrap;gap:6px;min-height:34px}
.fm-fn{display:inline-block;padding:5px 10px;border:1px solid var(--l2);font-size:13px;color:var(--tx)}
.fm-band{margin:22px 0 0;padding:12px 14px;border:1px dashed var(--g1);font-size:12px;color:var(--g2)}
/* Products */
.pcs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.pc{display:flex;flex-direction:column;gap:18px}
.pc-img{background:var(--ink);padding:10px 10px 0;border-radius:14px 14px 0 0;overflow:hidden}
.pc-img img{display:block;width:100%;height:auto;border-radius:8px 8px 0 0}
.pc-t{display:flex;flex-direction:column;gap:10px}
.pc-t .mono{font-size:11px;color:var(--g2)}
.pc-t h3{margin:0;font-size:30px;line-height:1;font-weight:600;letter-spacing:-.03em}
.pc-t p{margin:0;font-size:16px;line-height:1.55;color:var(--tx)}
.pc-t .pc-why{color:var(--g2);font-size:15px}
.pc-link{align-self:flex-start;font-size:12px;border-bottom:1px solid currentColor;padding-bottom:2px}
.pc-noimg{border-top:2px solid var(--ink);padding-top:18px}
.y-write .y-p{margin-bottom:28px}
.y-cta h2{margin:0;font-size:clamp(40px,5.5vw,72px);line-height:1;font-weight:600;letter-spacing:-.04em}
.y-cta p{margin:18px 0 0;font-size:20px;color:#d8d8d4}
.y-cta-a{display:flex;flex-wrap:wrap;gap:28px;align-items:baseline;margin-top:30px}
.y-mail{font-size:clamp(24px,3vw,34px);font-weight:600;letter-spacing:-.02em;box-shadow:inset 0 -10px 0 #3b5bff}
.y-cta-a .mono{font-size:12px;border-bottom:1px solid currentColor;padding-bottom:2px}
@media (max-width:980px){
  .cis{grid-template-columns:1fr}
  .cis-side{position:static}
  .pcs{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
  .y-p{font-size:17px;margin-bottom:32px}
  .do{grid-template-columns:1fr}
  .do-col{padding:28px 0 8px}
  .do-col + .do-col{padding-left:0;border-left:0;border-top:1px solid var(--l2);margin-top:28px}
  .cis-fig{display:none}
  .cis-list{display:flex}
  .cis-panel{min-height:0}
  .cis-hint{display:none}
  .cis-panel h3{font-size:32px}
  .fm-cols{grid-template-columns:1fr}
  .fm-cols::before{top:0;bottom:0;left:6px;right:auto;width:2px;height:auto}
  .fm-col{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"step step" ". top" ". bot";padding:0 0 22px}
  .fm-step{grid-area:step;flex-direction:row;align-items:center;gap:12px;padding:0}
  .fm-step::before{margin:0}
  .fm-top{grid-area:top;height:auto;padding:8px 0 8px 30px}
  .fm-h.fm-none{display:none}
  .fm-bot{grid-area:bot;padding-left:30px;min-height:0}
  .pcs{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.cis-spoke{animation:none;opacity:.6}}
.blog-lead{margin:18px 0 0;max-width:40em;font-size:20px;line-height:1.6;color:var(--tx)}
@media (max-width:760px){.blog-lead{font-size:17px}}

/* Header bar stays at the top while the page scrolls. */
html{scroll-padding-top:84px}
.topbar{position:sticky;top:0;z-index:60}
.topbar.dark{border-bottom:1px solid var(--l1)}
.topbar.light{border-bottom:1px solid var(--l2)}
.topbar header{padding:18px 0}
/* System picture, v2: Flow as the ring around the four areas. */
.cis-ring-flow{fill:none;stroke:#3d3d3a;stroke-width:1.5;transition:stroke .2s}
.cis-flow-mark{fill:#0a0a0a;stroke:#9a9a96;stroke-width:1.5;transition:fill .2s,stroke .2s}
.cis-flow-name{font:500 12px 'Hanken Grotesk',sans-serif;letter-spacing:.1em;fill:#9a9a96;transition:fill .2s}
.cis-flow:hover .cis-ring-flow,.cis-flow.on .cis-ring-flow,.cis-flow:focus-visible .cis-ring-flow{stroke:#3b5bff}
.cis-flow:hover .cis-flow-mark,.cis-flow.on .cis-flow-mark{fill:#3b5bff;stroke:#3b5bff}
.cis-flow:hover .cis-flow-name,.cis-flow.on .cis-flow-name{fill:#8fa2ff}
.kn-p{margin:0;padding-top:18px;border-top:1px solid var(--l1);font-size:15px;line-height:1.6;color:var(--g1)}
.band.dark + .band.dark{border-top:1px solid var(--l1)}
/* Hero tags: on the ring, in the same language as the system picture. */
.hero .tag{background:transparent!important;color:var(--g1);padding:0;gap:9px;font-size:11px;letter-spacing:.1em;z-index:2;white-space:nowrap}
.hero .tag i{width:9px;height:9px;border-radius:50%;background:#3b5bff;box-shadow:0 0 0 4px var(--ink);flex:none}
.hero > .tag:nth-of-type(4){left:calc(50% - var(--rg)*.433 + 4.5px)!important;top:calc(var(--cy) - var(--rg)*.25)!important;transform:translate(-100%,-50%);flex-direction:row-reverse}
.hero > .tag:nth-of-type(5){left:calc(50% + var(--rg)*.433 - 4.5px)!important;top:calc(var(--cy) - var(--rg)*.25)!important;right:auto!important;transform:translate(0,-50%)}
.hero .ring .tag,.hero .ring .tag[style]{left:88.3%!important;top:82.1%!important;transform:translate(-4.5px,-50%)!important}
/* The system section has no title; its name is the heading. */
.y-sys-h{margin:0 0 22px;font-weight:500}
@media (max-width:760px){.hero > .tag:nth-of-type(4),.hero > .tag:nth-of-type(5),.hero .ring .tag,.hero .ring .tag[style]{flex-direction:column!important;gap:6px;transform:translate(-50%,-4.5px)!important}}
@media (max-width:760px){.st2{grid-template-columns:1fr!important;gap:28px!important}}
.y-write .ps .ex{display:none}

/* Creative Intelligence System on the home page (brief, 28 Oct 2026). Calm and technical: thin
   lines, one light travelling at a time, the chosen part and its relations come forward. */
.y-sys{border-top:1px solid var(--l1)}
.y-sys-k{margin:0 0 22px}
.y-sys-h2{margin:0;max-width:16ch;font-size:clamp(40px,5.6vw,80px);line-height:1;font-weight:600;letter-spacing:-.045em}
.y-sys-text{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 56px;margin:44px 0 72px;max-width:1100px}
.y-sys-text p{margin:0;font-size:19px;line-height:1.6;color:#d8d8d4;text-wrap:pretty}
.y-sys-text p:last-child{grid-column:1/-1;max-width:38em;color:var(--paper);font-size:22px;line-height:1.5;padding-top:18px;border-top:1px solid var(--l1)}
.y-sys .cis{grid-template-columns:minmax(0,8fr) minmax(0,4fr);gap:40px}
.cis-link{fill:none;stroke:#2c2c2a;stroke-width:1.2;transition:stroke .3s,opacity .3s}
.cis-spoke{stroke:#3b5bff;opacity:.35;stroke-dasharray:3 5;animation:none}
.cis-back{stroke-dasharray:2 6;stroke:#3a3a37}
.cis-link.on{stroke:#3b5bff;opacity:1;stroke-width:1.6;stroke-dasharray:none}
.cis-pulse{fill:#8fa2ff}
.cis-p-back{fill:#f3f3f1}
.cis-ring-flow{stroke:#3d3d3a;stroke-dasharray:1 7;stroke-linecap:round;stroke-width:2}
.cis-flow-dot{fill:#3b5bff}
.cis-flow-name{font:500 12px 'Hanken Grotesk',sans-serif;letter-spacing:.14em;fill:#9a9a96}
.cis-plate-bg{fill:#0d0d0d;stroke:#3d3d3a;stroke-width:1.2;transition:stroke .25s,fill .25s}
.cis-plate-name{font:600 13px 'Hanken Grotesk',sans-serif;letter-spacing:.14em;fill:#d8d8d4;transition:fill .25s}
.cis-plate:hover .cis-plate-bg,.cis-plate.on .cis-plate-bg,.cis-plate:focus-visible .cis-plate-bg{stroke:#3b5bff;fill:#10183a}
.cis-plate:hover .cis-plate-name,.cis-plate.on .cis-plate-name{fill:#f3f3f1}
.cis-aura{opacity:.0;transition:opacity .3s}
.cis-human.on .cis-aura{opacity:1}
.cis-svg .cis-node{transition:opacity .3s}
.cis-svg.focus .cis-node.dim{opacity:.32}
.cis-svg.focus .cis-link:not(.on){opacity:.35}
.cis-panel h3{font-size:44px}
@media (max-width:980px){.y-sys .cis{grid-template-columns:1fr}.y-sys-text{grid-template-columns:1fr}}
@media (max-width:760px){
  .y-sys .cis-fig{display:block;margin:0 -12px}
  .y-sys-text p{font-size:17px}
  .y-sys-text p:last-child{font-size:19px}
  .y-sys .cis-list{display:flex}
  .cis-chip{padding:8px 12px}
}
@media (prefers-reduced-motion:reduce){.cis-pulses,.cis-flow-dot{display:none}}
.lab-sys{margin:18px 0 6px}
.lab-sys a{font-size:15px;border-bottom:1px solid #3b5bff;padding-bottom:2px;color:var(--paper)}
.lab-sys a:hover{color:#8fa2ff}
.cis-link{stroke:#3b3b38;stroke-width:1.5}
.cis-back{stroke:#4a4a46}
.cis-link.on{stroke:#3b5bff;stroke-width:2.2}
.cis-ring-flow{stroke:#5a5a55;stroke-width:2.5}
.cis-flow-name{font-size:14px;fill:#b9b9b4}
.cis-flow.on .cis-ring-flow,.cis-flow:hover .cis-ring-flow{stroke:#3b5bff}
.cis-plate-name{font-size:16px}
.cis-pulse{r:4.5}
.cis-name{font-size:22px}
.cis-flow.on .cis-ring-flow{stroke-width:3.5;stroke-dasharray:6 6}.cis-flow.on .cis-flow-name{fill:#8fa2ff}

/* Home: the short system introduction (brief, 28 Oct 2026, revision 2). */
.y-sys-intro{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:32px 56px;align-items:end;margin-bottom:48px}
.y-sys-intro .y-sys-h2{max-width:14ch}
.y-sys-short{margin:0 0 22px;font-size:19px;line-height:1.6;color:#d8d8d4;text-wrap:pretty}
.y-sys-go{display:inline-block;font-size:15px;color:var(--paper);border-bottom:1px solid #3b5bff;padding-bottom:3px}
.y-sys-go:hover{color:#8fa2ff}
.cis-home{display:block}
.cis-home .cis-fig{max-width:1000px;margin:0 auto}
@media (max-width:980px){.y-sys-intro{grid-template-columns:1fr;align-items:start}}

/* system.html: five sections, one visual language. */
.sx-page{padding-top:24px;padding-bottom:120px}
.sx-head{padding:16px 0 8px}
.sx-head .kick{margin-bottom:18px}
.sx-sec{padding:88px 0 0;margin-top:72px;border-top:1px solid var(--l1)}
.sx-sec:first-of-type{margin-top:32px}
.sx-text{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:24px 56px;align-items:start;margin-bottom:56px}
.sx-n{grid-column:1/-1;font-size:12px;color:#8fa2ff}
.sx-text h2{margin:0;font-size:clamp(34px,4.2vw,58px);line-height:1.04;font-weight:600;letter-spacing:-.035em;text-wrap:balance}
.sx-ps{display:flex;flex-direction:column;gap:18px}
.sx-ps p{margin:0;font-size:19px;line-height:1.6;color:#d8d8d4;text-wrap:pretty}
.sx-vis{min-width:0}
.sx{display:block;width:100%;height:auto;border:1px solid var(--l1);border-radius:20px;background:#0c0c0c}
.sx-know .dg{margin:0}
.sx-specwrap{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:40px;align-items:center}
.sx-cards{display:flex;flex-direction:column;gap:0}
.sx-card{padding:16px 0;border-top:1px solid var(--l1);transition:border-color .2s}
.sx-card:hover{border-top-color:#3b5bff}
.sx-card .mono{font-size:12px;color:#8fa2ff}
.sx-card p{margin:6px 0 0;font-size:16px;line-height:1.55;color:#cfcfca}
.sx-chord{stroke:#262624;stroke-width:1}
.sx-ring{fill:none;stroke:#5a5a55;stroke-width:2.5;stroke-dasharray:1 7;stroke-linecap:round}
.sx-arc,.sx-none{fill:none;stroke:none}
.sx-pulse{fill:#8fa2ff}
.sx-ringname,.sx-corename,.sx-side{font:500 13px 'Hanken Grotesk',sans-serif;letter-spacing:.14em;fill:#9a9a96}
.sx-core{fill:#0d0d0d;stroke:#3d3d3a;stroke-width:1.2}
.sx-corename{font-size:11px}
.sx-feed{stroke:#3b5bff;stroke-opacity:.4;stroke-width:1.2;stroke-dasharray:3 5}
.sx-dot{fill:#0a0a0a;stroke:#3d3d3a;stroke-width:1.6}
.sx-coredot{fill:#f3f3f1}
.sx-name{font:600 24px 'Hanken Grotesk',sans-serif;fill:#f3f3f1}
.sx-node:hover .sx-dot{stroke:#3b5bff;fill:#10183a}
.sx-looparc{fill:none;stroke:#4a4a46;stroke-width:1.6}
.sx-platebg{fill:#0d0d0d;stroke:#3d3d3a;stroke-width:1.4}
.sx-platename{font:600 14px 'Hanken Grotesk',sans-serif;letter-spacing:.12em;fill:#e9e9e5}
.sx-emre{font:600 15px 'Hanken Grotesk',sans-serif;letter-spacing:.16em;fill:#f3f3f1}
.sx-loopwrap{max-width:720px}
.sx-split .sx-text{margin-bottom:40px}
.sx-track{fill:none;stroke:#3d3d3a;stroke-width:2}
.sx-tie{stroke:#3b5bff;stroke-opacity:.35;stroke-dasharray:2 4}
.sx-stage{fill:#0a0a0a;stroke:#9a9a96;stroke-width:1.6}
.sx-mark{fill:#3b5bff;fill-opacity:.35;stroke:#3b5bff;stroke-width:1.4}
.sx-e{font:700 12px 'Hanken Grotesk',sans-serif;fill:#fff}
.sx-stagename{font:600 15px 'Hanken Grotesk',sans-serif;letter-spacing:.1em;fill:#e9e9e5}
.sx-tall{display:none}
.sx-end{text-align:left}
.sx-end h2{margin:0;font-size:clamp(34px,4.2vw,58px);line-height:1.04;font-weight:600;letter-spacing:-.035em}
.sx-end p{margin:20px 0 26px;max-width:38em;font-size:19px;line-height:1.6;color:#d8d8d4}
@media (max-width:980px){.sx-text,.sx-specwrap{grid-template-columns:1fr}}
@media (max-width:760px){
  .sx-sec{padding-top:56px;margin-top:48px}
  .sx-ps p,.sx-end p{font-size:17px}
  .sx-wide{display:none}.sx-tall{display:block;max-width:420px}
  .sx-page .cis-fig{display:block;margin:0 0 8px}
  .sx-page .cis-list{display:flex}
}
@media (prefers-reduced-motion:reduce){.sx-pulse{display:none}}
/* Grey labels on dark grounds were 3.1:1; this grey reaches 4.6:1 (WCAG AA). */
.dark [style*="color:#5f5f5b"],.dark .sh .n{color:#85857f!important}
/* Blog posts' pictures (post_art.py): beside the text in the blog list, as cards on the home page, at the top of a post. */
.ps .art{display:block;width:100%;height:auto;border-radius:14px;background:#0a0a0a;transition:transform .5s ease}
.ps:hover .art{transform:scale(1.015)}
.ps.has-art{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);column-gap:32px;row-gap:8px;align-content:start;max-width:980px}
.ps.has-art .art{grid-column:1;grid-row:1/span 3}
.ps.has-art>span{grid-column:2}
.y-write .tl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:56px 40px;border-left:0;margin-left:0;padding:0}
.y-write .ps,.y-write .ps.has-art{display:flex;flex-direction:column;gap:10px;padding-left:0;max-width:none}
.y-write .ps:before{display:none}
.y-write .ps .art{margin-bottom:12px}
.y-write .ps .tt,.y-write .ps.now .tt{font-size:28px}
.post-art{margin:4px 0 0;display:flex;flex-direction:column;gap:12px}
.post-art img{display:block;width:100%;height:auto;border-radius:16px;background:#0a0a0a}
.post-art figcaption{font-size:12px;letter-spacing:.08em;color:#5f5f5b}
@media (max-width:760px){
.ps.has-art{display:flex;flex-direction:column;gap:8px}
.ps.has-art .art{margin-bottom:8px}
.y-write .tl{grid-template-columns:1fr;gap:44px}
.y-write .ps .tt,.y-write .ps.now .tt{font-size:24px}
}
@media (prefers-reduced-motion:reduce){.ps .art{transition:none}.ps:hover .art{transform:none}}
#work-gallery.board{gap:16px!important;max-width:1480px;margin:0 auto;padding:16px}
#work-gallery.board img.center{grid-column:1/-1;justify-self:center;width:calc(50% - 8px)!important}
@media (max-width:760px){#work-gallery.board{gap:8px!important;padding:8px 0}#work-gallery.board img.center{width:100%!important}}
dialog.zoom{max-width:none;max-height:none;width:100vw;height:100dvh;margin:0;padding:16px;box-sizing:border-box;border:0;background:rgba(10,10,10,.94);cursor:zoom-out}
dialog.zoom::backdrop{background:rgba(10,10,10,.94)}
dialog.zoom img{width:100%;height:100%;object-fit:contain;display:block}
.board-note{grid-column:1/-1;margin:0;font-size:14px;color:#9a9a96}
.board-fig{margin:0;display:flex;flex-direction:column;gap:10px;min-width:0}
.board-fig:has(img.center){grid-column:1/-1;align-items:center}
.board-source{display:block;width:fit-content;border-bottom:1px solid currentColor}
@media (max-width:760px){.board-note{padding:0 20px}}
.film-link{grid-column:1/-1;position:relative;display:flex;align-items:center;justify-content:center;background:#000;height:min(80vh,800px)}
.film-link img{height:100%;width:auto;display:block}
.film-link span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#3b5bff;color:#fff;padding:12px 18px;font-size:12px}
.sort{position:relative;display:inline-block;font-size:12px}
.sort button{font:inherit;letter-spacing:inherit;color:inherit;cursor:pointer}
.sort-btn{display:inline-flex;align-items:center;gap:10px;padding:9px 14px;border:1px solid var(--l1);border-radius:999px;background:transparent;color:var(--paper)!important;transition:border-color .2s}
.sort-btn:hover,.sort-btn[aria-expanded="true"]{border-color:#3b5bff}
.sort-btn i{width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s}
.sort-btn[aria-expanded="true"] i{transform:translateY(1px) rotate(225deg)}
.sort-list{position:absolute;z-index:20;top:calc(100% + 8px);right:0;margin:0;padding:6px;min-width:100%;list-style:none;background:#0c0c0c;border:1px solid var(--l1);border-radius:14px;box-shadow:0 16px 40px rgba(0,0,0,.5)}
.sort-list[hidden]{display:none}
.sort-list button{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:0;border-radius:8px;background:transparent;color:var(--g1);text-align:left;white-space:nowrap}
.sort-list button::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:transparent}
.sort-list button:hover,.sort-list button:focus-visible{background:#181818;color:var(--paper);outline:0}
.sort-list button[aria-selected="true"]{color:var(--paper)}
.sort-list button[aria-selected="true"]::before{background:#3b5bff}
.sort-list.to-right{left:0;right:auto}
