@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Work+Sans:wght@300;400;500;600;700&display=swap');

:root{
  --paper:#fdfbf7;
  --shell:#f5f5f5;
  --ink:#1a1a1a;
  --line:#e0e0e0;
  --mute:#6b675f;
  --head:104px;
  --r:28px;
}

@media (min-width:760px){
  :root{ --head:122px; }
}

*,*::before,*::after{ box-sizing:border-box; }

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"Work Sans",system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.75;
  font-weight:400;
  letter-spacing:.005em;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:200;
  pointer-events:none;
  opacity:.45;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

img{ max-width:100%; height:auto; }

a{ color:inherit; }

:focus-visible{ outline:2px solid var(--ink); outline-offset:3px; }

/* header */
.masthead{
  position:sticky;
  top:0;
  z-index:50;
  background:var(--paper);
  border-bottom:1px solid var(--line);
}

.brandline{
  max-width:1180px;
  margin:0 auto;
  padding:8px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  min-width:0;
  text-decoration:none;
  font-family:"Outfit",sans-serif;
  font-weight:600;
  font-size:1.02rem;
  letter-spacing:-.01em;
}

.brandname{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.mark{
  width:28px;
  height:28px;
  border-radius:8px;
  display:block;
  flex:0 0 auto;
}

.contact{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 16px;
  border:1px solid var(--ink);
  border-radius:999px;
  text-decoration:none;
  font-family:"Outfit",sans-serif;
  font-size:.94rem;
}

.contact:hover{ background:var(--ink); color:var(--paper); }

.navbar{
  max-width:1180px;
  margin:0 auto;
  padding:0 20px 8px;
}

.menu-wrap{ border-top:1px solid var(--line); }

.menu-btn{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:46px;
  padding:6px 0;
  font-family:"Outfit",sans-serif;
  font-size:.94rem;
  letter-spacing:.08em;
}

.menu-btn::-webkit-details-marker{ display:none; }

.menu-btn::before{
  content:"";
  width:20px;
  height:2px;
  background:var(--ink);
  box-shadow:0 6px 0 var(--ink),0 -6px 0 var(--ink);
}

.menu{
  list-style:none;
  margin:0;
  padding:2px 0 6px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.menu li{ flex:0 1 auto; }

.menu a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 15px;
  border-radius:999px;
  background:var(--shell);
  text-decoration:none;
  font-family:"Outfit",sans-serif;
  font-size:.94rem;
  line-height:1.3;
}

.menu a:hover{ background:var(--ink); color:var(--paper); }

@media (max-width:759px){
  .menu{ flex-direction:column; }
  .menu li{ flex:1 1 auto; }
  .menu a{ width:100%; padding:10px 16px; }
}

/* hero */
.hero{
  position:relative;
  overflow:hidden;
  max-width:1180px;
  margin:0 auto;
  padding:30px 20px 0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  gap:26px;
}

@supports (min-height:100svh){
  .hero{ min-height:100svh; }
}

.hero-bg{
  position:absolute;
  left:20px;
  top:0;
  bottom:0;
  width:60%;
  display:flex;
  align-items:center;
  pointer-events:none;
  transform:translate3d(0,var(--py,0px),0);
}

.hero-bg span{
  position:absolute;
  left:0;
  opacity:0;
  font-family:"Outfit",sans-serif;
  font-weight:700;
  font-size:clamp(2.5rem,11vw,6.2rem);
  line-height:.94;
  letter-spacing:-.045em;
  color:#e6e1d6;
  animation:rot 21s step-end infinite;
}

@keyframes rot{
  0%{ opacity:1; }
  14.29%{ opacity:0; }
  100%{ opacity:0; }
}

.hero-text{
  position:relative;
  margin-left:auto;
  text-align:right;
  max-width:min(100%,34rem);
}

.hero-text h1{
  margin:0;
  font-family:"Outfit",sans-serif;
  font-weight:600;
  font-size:clamp(2rem,7.2vw,4rem);
  line-height:1.07;
  letter-spacing:-.03em;
}

.hero-media{
  position:relative;
  margin-top:auto;
  width:100%;
}

.hero-media img{
  display:block;
  width:100%;
  max-height:42vh;
  object-fit:cover;
  border-radius:var(--r) var(--r) 0 0;
}

/* main grid */
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:18px 20px 0;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:30px;
}

@media (min-width:960px){
  .wrap{
    grid-template-columns:minmax(0,1fr) 254px;
    gap:46px;
    align-items:start;
  }
}

/* article */
.paper{ max-width:70ch; }

.paper section{
  padding:36px 0;
  border-top:1px solid var(--line);
  scroll-margin-top:calc(var(--head) + 18px);
}

.paper section:first-child{
  border-top:0;
  padding-top:20px;
}

.paper h2,.paper h3{
  font-family:"Outfit",sans-serif;
  font-weight:600;
  line-height:1.26;
  letter-spacing:-.02em;
  margin:1.8em 0 .55em;
}

.paper h2{ font-size:1.58rem; }

.paper h3{ font-size:1.22rem; }

.paper h2>span,.paper h3>span{ display:inline; }

.paper h2>span::before{
  content:"";
  display:inline-block;
  width:22px;
  height:2px;
  background:currentColor;
  vertical-align:.3em;
  margin-right:.5em;
}

.paper p{ margin:0 0 1.05em; }

.paper ul,.paper ol{ margin:0 0 1.15em; padding-left:1.35em; }

.paper li{ margin:.35em 0; }

.paper a{
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:1px;
}

.paper a:hover{ background:var(--ink); color:var(--paper); text-decoration:none; }

.paper strong{ font-weight:600; }

.paper blockquote{
  margin:1.4em 0;
  padding:2px 0 2px 18px;
  border-left:2px solid var(--ink);
}

.paper img{
  display:block;
  margin:1.4em 0;
  border-radius:var(--r);
}

.paper table{ width:100%; border-collapse:collapse; font-size:.95rem; }

.paper th,.paper td{
  border-bottom:1px solid var(--line);
  padding:10px 8px;
  text-align:left;
  vertical-align:top;
}

/* aside */
.side{
  background:var(--shell);
  border-radius:var(--r);
  padding:20px 16px;
}

@media (min-width:960px){
  .side{ position:sticky; top:calc(var(--head) + 18px); }
}

.side-title{
  margin:0 0 10px;
  font-family:"Outfit",sans-serif;
  font-size:.98rem;
  font-weight:600;
  letter-spacing:.08em;
}

.side-title>span::before{
  content:"";
  display:inline-block;
  width:16px;
  height:2px;
  background:currentColor;
  vertical-align:.28em;
  margin-right:.5em;
}

.side-list{
  list-style:none;
  margin:0;
  padding:0;
}

.side-list li + li{ border-top:1px solid #eae7e0; }

.side-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:8px 6px;
  text-decoration:none;
  font-size:.94rem;
  line-height:1.4;
}

.side-list a:hover{ background:var(--paper); }

/* footer */
.foot{
  margin-top:58px;
  padding:32px 20px 26px;
  border-top:1px solid var(--line);
}

.foot-cta,.foot-bar{
  max-width:1180px;
  margin:0 auto;
}

.foot-cta{
  background:var(--ink);
  color:var(--paper);
  border-radius:var(--r);
  padding:38px 24px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.foot-cta h2{
  margin:0;
  font-family:"Outfit",sans-serif;
  font-weight:600;
  font-size:clamp(1.45rem,4.4vw,2.3rem);
  letter-spacing:-.02em;
  line-height:1.2;
}

.foot-cta h2>span::before{
  content:"";
  display:inline-block;
  width:24px;
  height:2px;
  background:currentColor;
  vertical-align:.32em;
  margin-right:.5em;
}

.to-top{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:0 22px;
  border:1px solid var(--paper);
  border-radius:999px;
  color:var(--paper);
  text-decoration:none;
  font-size:.94rem;
}

.to-top:hover{ background:var(--paper); color:var(--ink); }

.foot-bar{
  padding-top:20px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px 18px;
  font-size:.9rem;
  color:var(--mute);
}

.copy{ margin:0; }

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .hero-bg{ transform:none; }
  .hero-bg span{ animation:none; opacity:0; }
  .hero-bg span:first-child{ opacity:1; }
}

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