:root{
  --ink:#000;
  --paper:#fff;
  --radius:18px;
  --dock:7.5rem;
  --edge:clamp(1.25rem,5vw,4rem);
  --rule:2px solid var(--ink);
  --font:"Noto Sans KR","PingFang SC","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",sans-serif;
}

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

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

body{
  margin:0;
  padding-bottom:calc(var(--dock) + 1.5rem);
  font-family:var(--font);
  font-size:1.0625rem;
  line-height:1.78;
  font-weight:400;
  color:var(--ink);
  background-color:var(--paper);
  background-image:radial-gradient(circle, rgba(0,0,0,.17) 1px, transparent 1px);
  background-size:22px 22px;
  background-attachment:fixed;
  overflow-x:hidden;
  overflow-wrap:break-word;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;display:block}
a{color:inherit}

/* ---------- hero ---------- */
.hero{
  position:relative;
  display:grid;
  align-content:end;
  justify-items:end;
  min-height:calc(100vh - var(--dock));
  min-height:calc(100svh - var(--dock));
  padding:clamp(2.5rem,7vw,6rem) var(--edge) clamp(2rem,6vw,5rem);
  background:#000;
  color:#fff;
  overflow:hidden;
  isolation:isolate;
}

.hero-media{
  position:absolute;
  inset:-10% 0 -14%;
  z-index:-2;
}

.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:grayscale(1) contrast(1.18);
  transform:scale(1.06);
  will-change:transform;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(0,0,0,.28) 0%,rgba(0,0,0,.62) 52%,rgba(0,0,0,.9) 100%);
}

.hero-title{
  margin:0;
  max-width:17ch;
  font-size:clamp(3rem,10vw,12rem);
  font-weight:900;
  line-height:.92;
  letter-spacing:-.05em;
  text-align:right;
  text-wrap:balance;
  text-shadow:0 2px 28px rgba(0,0,0,.45);
}

/* ---------- 正文 ---------- */
.doc{
  counter-reset:sec;
  max-width:1120px;
  margin:clamp(2.25rem,6vw,5.5rem) auto 0;
  padding:0 var(--edge);
}

.doc > div{
  counter-increment:sec;
  position:relative;
  margin:0 0 clamp(2rem,5vw,4rem);
  padding:clamp(1.6rem,4.6vw,4.25rem);
  background:var(--paper);
  border:var(--rule);
  border-bottom-width:8px;
  border-radius:var(--radius);
  scroll-margin-top:clamp(1rem,4vw,3rem);
  transition:transform .32s ease, border-bottom-color .32s ease;
}

.doc > div:hover{transform:translateY(-4px)}

.doc > div::before{
  content:counter(sec,decimal-leading-zero);
  display:block;
  margin-bottom:clamp(.9rem,3vw,1.9rem);
  font-size:1rem;
  font-weight:700;
  letter-spacing:.3em;
  line-height:1;
}

.doc > div:last-child{margin-bottom:0}

.doc h2{
  margin:0 0 1.15em;
  font-size:clamp(1.7rem,5vw,3.4rem);
  font-weight:900;
  line-height:1.08;
  letter-spacing:-.045em;
  text-wrap:balance;
}

.doc h2 span{
  box-shadow:inset 0 -.16em 0 rgba(0,0,0,.14);
}

.doc h3{
  margin:1.6em 0 .7em;
  font-size:clamp(1.25rem,3.2vw,1.7rem);
  font-weight:700;
  line-height:1.25;
  letter-spacing:-.03em;
}

.doc h3 span{box-shadow:inset 0 -.14em 0 rgba(0,0,0,.12)}

.doc p{
  margin:.95em 0;
  max-width:64ch;
}

.doc ul,.doc ol{
  margin:1em 0;
  padding-left:1.35em;
  max-width:62ch;
}

.doc li{margin:.45em 0}
.doc li::marker{font-weight:700}

.doc a{
  color:var(--ink);
  font-weight:500;
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:1.5px;
}

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

.doc strong,.doc b{font-weight:700}

.doc blockquote{
  margin:1.6em 0;
  padding:.35em 0 .35em 1.2em;
  border-left:6px solid var(--ink);
  font-size:1.1em;
  line-height:1.7;
}

.doc img{
  margin:1.5em 0;
  border-radius:12px;
  border:var(--rule);
}

.doc figure{margin:1.5em 0}
.doc figcaption{font-size:1rem;line-height:1.6;margin-top:.6em}

.doc table{
  width:100%;
  margin:1.4em 0;
  border-collapse:collapse;
  font-size:1rem;
}

.doc th,.doc td{
  border:1px solid var(--ink);
  padding:.6em .7em;
  text-align:left;
  vertical-align:top;
}

.doc th{background:var(--ink);color:var(--paper);font-weight:700}

.doc hr{border:0;border-top:var(--rule);margin:2em 0}
.doc code,.doc pre{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.95em}

/* ---------- 底部固定导航 ---------- */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  background:#000;
  color:#fff;
  border-top:2px solid #fff;
  padding:.55rem 0 .4rem;
  box-shadow:0 -10px 30px rgba(0,0,0,.3);
}

.dock-brand{
  padding:0 var(--edge) .3rem;
  font-size:1.3rem;
  font-weight:900;
  line-height:1.2;
  letter-spacing:-.04em;
}

.dock-brand a{
  display:inline-block;
  padding:.3rem 0;
  min-height:40px;
  color:#fff;
  text-decoration:none;
}

.dock nav{
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
}

.dock nav::-webkit-scrollbar{display:none}

.dock ul{
  display:flex;
  gap:.3rem;
  margin:0;
  padding:0 var(--edge) .1rem;
  list-style:none;
}

.dock li{flex:0 0 auto}

.dock a{
  display:flex;
  align-items:center;
  min-height:46px;
  padding:0 .85rem;
  font-size:1rem;
  line-height:1.2;
  white-space:nowrap;
  color:#fff;
  text-decoration:none;
  border:1.5px solid transparent;
  border-radius:999px;
  transition:background .2s ease,color .2s ease,border-color .2s ease;
}

.dock a:hover,
.dock a:focus-visible,
.dock a.on{
  background:#fff;
  color:#000;
  border-color:#fff;
}

.dot{
  flex:0 0 auto;
  width:7px;
  height:7px;
  margin-right:.55rem;
  border:1.5px solid currentColor;
  border-radius:50%;
}

/* ---------- 页脚 ---------- */
.foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:1rem 2rem;
  max-width:1120px;
  margin:clamp(3rem,8vw,7rem) auto 0;
  padding:clamp(2.5rem,7vw,5rem) var(--edge) clamp(2rem,5vw,3.5rem);
  border-top:var(--rule);
}

.foot-brand{
  flex:1 1 100%;
  font-size:clamp(2.4rem,9vw,6rem);
  font-weight:900;
  line-height:.95;
  letter-spacing:-.055em;
}

.foot-brand a{text-decoration:none}

.foot nav{flex:1 1 auto;min-width:0}

.foot-list{
  display:flex;
  flex-wrap:wrap;
  gap:.2rem 1.1rem;
  margin:0;
  padding:0;
  list-style:none;
}

.foot-list a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:1rem;
  text-decoration:none;
  border-bottom:1.5px solid transparent;
}

.foot-list a:hover,
.foot-list a:focus-visible{border-bottom-color:var(--ink)}

.foot-copy{
  flex:0 0 auto;
  font-size:1rem;
  line-height:1.5;
  letter-spacing:.02em;
}

/* ---------- 断点 ---------- */
@media (max-width:760px){
  :root{--dock:8.6rem}
  .hero{min-height:calc(100vh - var(--dock));padding-top:clamp(4rem,16vw,6rem)}
  .hero-title{max-width:100%}
  .doc > div{padding:1.4rem 1.15rem;border-bottom-width:7px}
  .doc > div:hover{transform:none}
  .doc h2{margin-bottom:1em}
  .doc p,.doc ul,.doc ol,.doc blockquote{max-width:100%}
  .foot{gap:.8rem 1.2rem}
  .foot-copy{flex:1 1 100%}
}

@media (max-width:420px){
  .hero-title{font-size:clamp(2.6rem,13vw,4rem)}
  .dock-brand{font-size:1.15rem}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important;animation:none!important}
  .doc > div:hover{transform:none}
  .hero-media img{transform:none!important}
}

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