*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;overflow-x:hidden;background:#fff;color:#000;font-family:"DM Sans","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;font-size:17px;line-height:1.75;font-weight:400;letter-spacing:.004em}
a{color:inherit}
img{max-width:100%}
a:focus-visible{outline:3px solid #000;outline-offset:3px}

.topbar{background:#000;color:#fff}
.topbar p{margin:0;padding:.55rem 1rem;text-align:center;font-size:1rem;letter-spacing:.14em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.site-head{position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:.5rem;background:#fff;border-bottom:2px solid #000;padding:.4rem clamp(.6rem,3vw,1.6rem)}

.brand{flex:0 0 auto;display:grid;place-items:center;width:44px;height:44px;background:#000;color:#fff;border-radius:14px;text-decoration:none;font-weight:700;font-size:1.25rem;line-height:1}
.brand img{width:44px;height:44px;object-fit:contain;border-radius:14px}
.brand:hover{background:#1c1c1c}
.brand:focus-visible{outline-color:#000}

.nav{flex:1 1 auto;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.nav ol{display:flex;align-items:center;list-style:none;margin:0;padding:0;counter-reset:n}
.nav li{counter-increment:n;flex:0 0 auto}
.nav a{position:relative;display:inline-flex;align-items:center;gap:.4rem;min-height:44px;padding:0 .7rem;font-size:1rem;font-weight:500;white-space:nowrap;text-decoration:none}
.nav a::before{content:counter(n,decimal-leading-zero);font-size:.75rem;font-weight:500;color:#8a8a8a}
.nav a::after{content:"";position:absolute;left:.7rem;right:.7rem;bottom:8px;height:2px;background:#000;transform:scaleX(0);transform-origin:left;transition:transform .25s ease}
.nav a:hover::after,.nav a:focus-visible::after{transform:scaleX(1)}

.main{display:grid;grid-template-columns:minmax(0,1fr) 300px;column-gap:clamp(2rem,4vw,4rem);max-width:1180px;margin:0 auto;padding:0 clamp(1rem,4vw,2rem) clamp(3rem,8vw,6rem)}
.hero,.band{grid-column:1 / -1}
.prose{grid-column:1;min-width:0}
.side{grid-column:2;min-width:0}

.hero{min-height:45vh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:clamp(2rem,7vw,4.5rem) 0 clamp(1.6rem,5vw,3rem)}
.hero h1{margin:0 0 clamp(1.2rem,3vw,2rem);font-size:clamp(2.1rem,8vw,6rem);line-height:.95;letter-spacing:-.045em;font-weight:700;overflow-wrap:anywhere}
.hero-foot{display:flex;align-items:center;justify-content:center;gap:1.1rem;flex-wrap:wrap}
.hero-fig{margin:0;flex:0 0 auto;line-height:0}
.hero-fig img,.glyph{width:84px;height:84px;border-radius:18px;object-fit:contain}
.glyph{display:grid;place-items:center;background:#000;color:#fff;font-size:2.1rem;font-weight:700;line-height:1}
.lede{margin:0;max-width:32ch;text-align:left;color:#3a3a3a;font-size:1rem}

.band{height:clamp(26px,4.5vw,44px);background:#000;clip-path:polygon(0 0,100% 0,100% 55%,0 100%)}

.prose div{padding:clamp(2rem,5vw,3.5rem) 0}
.prose div + div{border-top:2px solid #000}
.prose div:nth-of-type(even){border-top:0;background:#f2f2f2;border-radius:18px;padding-block:clamp(1.6rem,4vw,2.8rem);padding-inline:clamp(1rem,3vw,2rem)}
.prose div[id]{scroll-margin-top:92px}
.prose h2{margin:0 0 1rem;font-size:clamp(1.6rem,4vw,2.8rem);line-height:1.08;letter-spacing:-.035em;font-weight:700;overflow-wrap:anywhere}
.prose h3{margin:0 0 .8rem;font-size:1.3rem;line-height:1.25;letter-spacing:-.02em;font-weight:700}
.prose hr{width:64px;height:0;margin:0 0 1.5rem;border:0;border-top:3px solid #000}
.prose p{margin:0 0 1.1rem;max-width:64ch}
.prose ul,.prose ol{margin:0 0 1.2rem;padding-left:1.4rem;max-width:64ch}
.prose li{margin:.35rem 0}
.prose a{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.prose a:hover{background:#000;color:#fff;text-decoration:none}
.prose img{height:auto;border-radius:18px}
.prose figure{margin:0 0 1.2rem}
.prose blockquote{margin:0 0 1.2rem;padding:1.1rem 1.3rem;background:#000;color:#fff;border-radius:18px;max-width:64ch}
.prose blockquote p:last-child{margin:0}
.prose strong{font-weight:700}

.panel{position:sticky;top:92px;background:#000;color:#fff;border-radius:18px;padding:1.4rem 1.2rem}
.panel h2{margin:0 0 .7rem;font-size:1.05rem;letter-spacing:.06em;font-weight:700}
.panel hr{width:40px;height:0;margin:0 0 1rem;border:0;border-top:2px solid #fff}
.panel ol{list-style:none;margin:0;padding:0;counter-reset:s}
.panel li{counter-increment:s}
.panel a{display:flex;align-items:center;gap:.6rem;min-height:42px;font-size:1rem;text-decoration:none;border-bottom:1px solid #2e2e2e}
.panel a::before{content:counter(s,decimal-leading-zero);font-size:.75rem;color:#9a9a9a}
.panel a:hover{background:#161616}
.panel li:last-child a{border-bottom:0}
.panel a:focus-visible{outline-color:#fff}

.foot{background:#000;color:#fff;padding:clamp(3rem,9vw,6rem) clamp(1rem,5vw,3rem) 2rem;text-align:center}
.foot-mark{margin:0 0 clamp(2rem,6vw,3.5rem);font-size:clamp(2rem,10vw,7rem);line-height:.9;letter-spacing:-.055em;font-weight:700;overflow-wrap:anywhere}
.foot-copy{display:block;max-width:1100px;margin:0 auto;padding-top:1.4rem;border-top:1px solid #2e2e2e;font-size:1rem;letter-spacing:.04em;color:#b8b8b8}

.js-reveal .rv{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
.js-reveal .rv.on{opacity:1;transform:none}

@media (max-width:900px){
.main{grid-template-columns:1fr}
.prose,.side{grid-column:1}
.panel{position:static;margin-top:2.2rem}
}

@media (max-width:600px){
.site-head{padding:.4rem .6rem}
.nav a{padding:0 .55rem}
.nav a::after{left:.55rem;right:.55rem}
.lede{text-align:center;max-width:36ch}
.hero-fig img,.glyph{width:72px;height:72px}
.foot-mark{letter-spacing:-.04em}
}

@media (prefers-reduced-motion:reduce){
html{scroll-behavior:auto}
.js-reveal .rv{opacity:1;transform:none;transition:none}
.nav a::after{transition:none}
}

button[aria-expanded]{min-width:44px;min-height:44px}
